{
  "schemaVersion": "1.0",
  "schemaUrl": "https://www.yingxueyuan.cn/ai-directory.schema.json#/$defs/newsContentDocument",
  "name": "Dify 1.18.0：Agent 可选工作流分支，应用资源可打包迁移｜映雪网资讯机器可读正文",
  "description": "单篇 AI 资讯结构化内容，含正文、逐节引用来源和编辑分析边界。",
  "siteUrl": "https://www.yingxueyuan.cn",
  "lastContentUpdate": "2026-10-25",
  "articles": [
    {
      "id": "dify-1-18-agent-routing-portable-apps",
      "contentUrl": "https://www.yingxueyuan.cn/ai-content/news/dify-1-18-agent-routing-portable-apps.json",
      "category": "AI 与开发",
      "title": "Dify 1.18.0：Agent 可选工作流分支，应用资源可打包迁移",
      "description": "Dify 1.18.0 增加 Agent 输出路由、.ifpkg 应用包和嵌套工作流运行追踪；自部署升级需要组件与运行时镜像配套。",
      "summary": "Dify 1.18.0 于 2026 年 10 月 23 日发布。Agent 可按条件选择工作流后续分支，Workflow/Chatflow 可通过 .ifpkg 包携带内联 Agent、Skills 和文件，运行历史也能深入查看嵌套工作流步骤。自部署者须先读升级指南：API、Worker、Agent Backend 与 Agent 运行时镜像应一起升级；源码部署还涉及 Python 3.13 等要求。",
      "searchAliases": [
        "Dify 1.18.0 更新",
        "Dify Agent 输出路由",
        "Dify ifpkg 应用打包",
        "Dify 工作流嵌套追踪",
        "Dify 1.18 自部署升级"
      ],
      "publishedAt": "2026-10-23",
      "updatedAt": "2026-10-25",
      "url": "https://www.yingxueyuan.cn/news/dify-1-18-agent-routing-portable-apps/",
      "relatedTools": [
        {
          "name": "Dify",
          "url": "https://www.yingxueyuan.cn/tools/dify/",
          "kind": "ai-product-entry"
        }
      ],
      "relatedGuides": [
        {
          "title": "Dify 怎么创建 AI Agent？从任务定义到测试发布",
          "url": "https://www.yingxueyuan.cn/docs/create-agent-with-dify/"
        }
      ],
      "source": {
        "name": "Dify 官方 GitHub Release",
        "url": "https://github.com/langgenius/dify/releases/tag/1.18.0"
      },
      "sources": [
        {
          "label": "Dify 官方 GitHub Release",
          "url": "https://github.com/langgenius/dify/releases/tag/1.18.0"
        }
      ],
      "author": {
        "@type": "Organization",
        "@id": "https://www.yingxueyuan.cn/#editorial-team",
        "name": "映雪网编辑部",
        "url": "https://www.yingxueyuan.cn/editorial-policy/",
        "parentOrganization": {
          "@id": "https://www.yingxueyuan.cn/#organization"
        }
      },
      "publisher": {
        "@type": "Organization",
        "@id": "https://www.yingxueyuan.cn/#organization",
        "name": "映雪园智能科技",
        "alternateName": "映雪网",
        "brand": {
          "@type": "Brand",
          "@id": "https://www.yingxueyuan.cn/#brand-yingxuewang",
          "name": "映雪网",
          "url": "https://www.yingxueyuan.cn/"
        },
        "url": "https://www.yingxueyuan.cn/company/"
      },
      "sections": [
        {
          "id": "dify-118-features",
          "heading": "三个和 Agent 项目开发有关的变化",
          "detailsUrl": "https://www.yingxueyuan.cn/news/dify-1-18-agent-routing-portable-apps/#dify-118-features",
          "paragraphs": [
            "Dify 官方于 2026 年 10 月 23 日发布 1.18.0，重点是让 Agent 更容易参与流程分支、迁移应用资源，以及排查复杂工作流运行。"
          ],
          "bullets": [
            "Agent Knowledge Base 在该版本以可选 Beta 体验提供，涉及单独服务与数据库，不应视为默认已启用。",
            "发布说明称部分云端能力将稍后提供；Cloud、自部署及不同账号的实际开放状态应分别核对。"
          ],
          "table": {
            "headers": [
              "能力",
              "更新内容",
              "适合关注的场景"
            ],
            "rows": [
              [
                "Agent 输出路由",
                "Agent 可按选择条件输出到不同 workflow branch，再连接对应步骤。",
                "一个入口需要判断直接答复还是转交专用流程。"
              ],
              [
                ".ifpkg 应用包",
                "Workflow/Chatflow 可将内联 Agent、Skills 和相关文件一起打包；导入时重建资源并映射引用。",
                "在工作区间迁移或交付应用时减少手动遗漏。"
              ],
              [
                "嵌套运行追踪",
                "运行记录可打开 Workflow Tool 调用，查看子工作流的具体步骤。",
                "排查多层工作流中哪一步产生异常或耗时。"
              ]
            ]
          },
          "sources": [
            {
              "label": "Dify 官方 GitHub Release",
              "url": "https://github.com/langgenius/dify/releases/tag/1.18.0"
            }
          ],
          "editorialNote": false
        },
        {
          "id": "dify-118-upgrade",
          "heading": "自部署升级前要核对组件兼容",
          "detailsUrl": "https://www.yingxueyuan.cn/news/dify-1-18-agent-routing-portable-apps/#dify-118-upgrade",
          "paragraphs": [
            "Dify 官方将 1.18.0 标注为需要先阅读升级指南的版本。升级 API、Worker、Agent Backend 与 Agent 运行时镜像时应按同一版本配套；旧 Agent Backend 使用的运行协议已变化，旧运行时也不能读取新版本保存的 v2 快照。"
          ],
          "bullets": [
            "先备份数据库、向量库、上传文件、Agent 工作区和部署密钥。",
            "Local Agent sandbox 需要配置非空认证令牌，并部署匹配的 Agent Backend 和 sandbox 镜像。",
            "源码部署要求 API 使用 Python 3.13；保持已配置的 PASSWORD_PEPPER 原值，不要把新 pepper 当作普通升级项临时加入。",
            "difyctl 使用新的 v2 客户端登录状态，部署脚本若调用旧 API 路径也需按官方 operation catalog 调整。"
          ],
          "sources": [
            {
              "label": "Dify 官方 GitHub Release",
              "url": "https://github.com/langgenius/dify/releases/tag/1.18.0"
            }
          ],
          "editorialNote": false
        },
        {
          "id": "dify-118-scope",
          "heading": "本文核验范围",
          "detailsUrl": "https://www.yingxueyuan.cn/news/dify-1-18-agent-routing-portable-apps/#dify-118-scope",
          "paragraphs": [
            "本文于 2026 年 10 月 25 日核对 Dify 1.18.0 官方发布说明与升级指南；未执行实际升级，也未验证某个云端账号的功能开放状态。升级前应结合自己的部署版本、插件和定制配置评估，并遵循官方备份与迁移步骤。"
          ],
          "sources": [
            {
              "label": "Dify 官方 GitHub Release",
              "url": "https://github.com/langgenius/dify/releases/tag/1.18.0"
            }
          ],
          "editorialNote": true
        }
      ]
    }
  ]
}
