From 8f3424cea1c7327227e5cbf6b7712e5ec3244e49 Mon Sep 17 00:00:00 2001 From: Ctrlz <143257420+ctrlz526@users.noreply.github.com> Date: Thu, 14 Aug 2025 16:00:35 +0800 Subject: [PATCH] feat: enhance SystemPluginTemplateItemType to include user instructions (#5455) --- packages/service/core/app/plugin/controller.ts | 1 + .../src/pages/api/core/app/plugin/getSystemPluginTemplates.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/service/core/app/plugin/controller.ts b/packages/service/core/app/plugin/controller.ts index eb509373a..e232e1065 100644 --- a/packages/service/core/app/plugin/controller.ts +++ b/packages/service/core/app/plugin/controller.ts @@ -558,6 +558,7 @@ export const getSystemTools = async (): Promise intro: item.description, author: item.author, courseUrl: item.courseUrl, + instructions: dbPluginConfig?.customConfig?.userGuide, weight: item.weight, workflow: { nodes: [], diff --git a/projects/app/src/pages/api/core/app/plugin/getSystemPluginTemplates.ts b/projects/app/src/pages/api/core/app/plugin/getSystemPluginTemplates.ts index 5e12dbad5..14997a003 100644 --- a/projects/app/src/pages/api/core/app/plugin/getSystemPluginTemplates.ts +++ b/projects/app/src/pages/api/core/app/plugin/getSystemPluginTemplates.ts @@ -35,7 +35,8 @@ async function handler( templateType: plugin.templateType ?? FlowNodeTemplateTypeEnum.other, flowNodeType: plugin.isFolder ? FlowNodeTypeEnum.toolSet : FlowNodeTypeEnum.tool, name: parseI18nString(plugin.name, lang), - intro: parseI18nString(plugin.intro ?? '', lang) + intro: parseI18nString(plugin.intro ?? '', lang), + instructions: parseI18nString(plugin.userGuide ?? '', lang) })) .filter((item) => { if (searchKey) {