Skip to content

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

Closed

Description

@laipz8200

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactors or chores; if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Description

App (dify.app) .ifpkg exports currently select format version 2 only when workflow tools are bundled; otherwise they emit version 1. Use version 2 for every App package, including nested workflow packages, and allow version 2 manifests without workflow tools. Continue accepting existing version 1 packages and rejecting version 1 packages that bundle workflow tools.

Motivation

Version 2 can represent the same content as version 1. Selecting the export version based on the presence of workflow tools adds an unnecessary distinction and makes the manifest version depend on package contents.

Additional Context

Related: #44597 introduced the need to bundle called workflows. Older builds with the current strict manifest rule reject tool-free version 2 packages, so the reader must be updated alongside the exporter. The separate dify.roster-agent format is outside this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions