Skip to content

refactor(api): always export App packages as version 2 - #45353

Merged
laipz8200 merged 1 commit into
mainfrom
laipz8200/export-ifpkg-v2
Nov 3, 2026
Merged

laipz8200 merged 1 commit into
mainfrom
laipz8200/export-ifpkg-v2

Conversation

@laipz8200

Copy link
Copy Markdown
Member

Summary

App (dify.app) .ifpkg exports currently emit version 1 without bundled workflow tools and version 2 with them. Always emit version 2, including for nested workflow packages, and allow version 2 manifests without workflow tools. Existing version 1 imports remain supported; version 1 packages containing workflow tools remain invalid.

Older builds with the previous strict manifest rule require the importer update to accept tool-free version 2 packages. The separate dify.roster-agent format is outside this change.

Fixes #45352

Screenshots

Not applicable; this changes package serialization.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've updated the documentation accordingly.

Remove conditional package version selection for App exports, including nested workflow packages. Accept version 2 manifests without workflow tools while preserving legacy version 1 imports and rejecting version 1 workflow tool bundles.
@github-actions github-actions Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 82.88% 82.88% +0.00%
Strict coverage 82.54% 82.54% +0.00%
Typed symbols 85,444 85,446 +2
Untyped symbols 17,723 17,723 0
Modules 4372 4372 0

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.77%. Comparing base (5e3edb5) to head (4bc6c78).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #45353   +/-   ##
=======================================
  Coverage   89.77%   89.77%           
=======================================
  Files        6239     6239           
  Lines      390902   390902           
  Branches    79285    79285           
=======================================
+ Hits       350933   350937    +4     
+ Misses      33870    33868    -2     
+ Partials     6099     6097    -2     
Flag Coverage Δ
api 89.64% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@laipz8200
laipz8200 marked this pull request as ready for review November 2, 2026 19:12
@laipz8200
laipz8200 enabled auto-merge November 2, 2026 19:12
@laipz8200
laipz8200 added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit b98a134 Nov 3, 2026
52 checks passed
@laipz8200
laipz8200 deleted the laipz8200/export-ifpkg-v2 branch November 3, 2026 03:27
@laipz8200 laipz8200 mentioned this pull request Nov 3, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor/Chore] Always export App ifpkg packages as version 2

2 participants