Harry
65e89520c0
refactor: unify download item types and eliminate extension-based branching
Merge AssetDownloadItem, AssetInlineItem into SandboxDownloadItem with
optional 'content' field. All consumers now follow a clean pipeline:
get items → accessor.resolve_items() → AppAssetService.to_download_items() → download
Key changes:
- SandboxDownloadItem gains content: bytes | None (entities.py)
- ZipSandbox.download_items() handles both inline (base64 heredoc) and
remote (curl) via a single pipeline — no structural branching
- AssetDownloadService.build_download_script() takes unified list
- CachedContentAccessor.resolve_items() batch-enriches items from DB
(extension-agnostic, no 'if md' checks needed)
- AppAssetService.to_download_items() converts AssetItem → SandboxDownloadItem
- DraftAppAssetsInitializer, package_and_upload, export_bundle simplified
- file_upload/node.py switched to SandboxDownloadItem
- Deleted AssetDownloadItem and AssetInlineItem classes
2026-03-10 17:12:15 +08:00
..
2026-03-10 17:12:15 +08:00
2026-03-10 17:12:15 +08:00
2026-03-10 17:12:15 +08:00
2026-01-29 22:33:31 +08:00
2025-09-18 12:49:10 +08:00
2025-12-18 10:09:31 +08:00
2026-01-27 10:48:42 +08:00
2026-01-06 15:23:50 +08:00
2026-02-09 14:57:23 +08:00
2025-09-15 13:06:33 +08:00
2025-10-10 23:41:16 +08:00
2025-09-15 13:06:33 +08:00
2026-02-04 13:15:49 +08:00
2026-02-11 21:10:48 +08:00
2026-02-12 14:22:15 +08:00
2026-01-04 11:46:46 +08:00
2026-01-30 02:38:57 +08:00
2026-01-16 17:01:44 +08:00
2026-02-04 13:15:49 +08:00
2025-11-13 15:21:44 +08:00
2026-02-09 14:57:23 +08:00
2026-02-13 15:17:52 +08:00
2026-01-13 14:13:43 +08:00
2026-02-13 09:48:55 +08:00
2026-02-09 17:00:56 +08:00
2026-03-10 17:12:15 +08:00
2026-01-31 18:00:56 +09:00
2026-01-27 14:19:26 +08:00
2026-03-10 17:12:14 +08:00
2026-02-10 18:12:41 +08:00
2026-01-30 16:05:02 +08:00
2026-02-06 14:40:44 +08:00
2026-03-10 17:12:15 +08:00
2026-03-10 17:12:15 +08:00
2026-03-10 17:12:15 +08:00
2025-09-10 01:54:26 +08:00
2026-01-08 13:17:30 +08:00
2026-02-02 19:07:30 +09:00
2025-12-09 14:41:46 +08:00
2026-01-08 13:17:30 +08:00