dify/api/core/app/entities
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
..
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
app_asset_entities.py refactor: unify download item types and eliminate extension-based branching 2026-03-10 17:12:15 +08:00
app_bundle_entities.py feat(bundle): manifest-driven import with sandbox upload 2026-01-29 22:33:31 +08:00
app_invoke_entities.py Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-09 17:00:56 +08:00
llm_generation_entities.py fix: add message tool call icon 2026-01-20 16:59:53 +08:00
queue_entities.py feat: enhance model event handling with new identity and metrics fields 2026-03-05 14:08:37 +08:00
rag_pipeline_invoke_entities.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
task_entities.py feat: enhance model event handling with new identity and metrics fields 2026-03-05 14:08:37 +08:00