Skip to content

Conversation

@c121914yu
Copy link
Collaborator

No description provided.

c121914yu and others added 30 commits January 8, 2026 21:04
* add role and tools filling

* add: file-upload

---------

Co-authored-by: xxyyh <2289112474@qq>
Co-authored-by: xxyyh <2289112474@qq>
* cp skill chat

* rebase fdf933d
 and add skill chat

* 1. skill 的 CRUD
2. skill 的信息渲染到前端界面

* solve comment

* remove chatid and chatItemId

* skill match

* perf: skill manage

* fix: ts

---------

Co-authored-by: xxyyh <2289112474@qq>
Co-authored-by: archer <[email protected]>
Co-authored-by: xxyyh <2289112474@qq>
Co-authored-by: xxyyh <2289112474@qq>
c121914yu and others added 6 commits January 8, 2026 21:14
* feat:top box fill

* prompt fix

---------

Co-authored-by: xxyyh <2289112474@qq>
* have-replan

* agent

---------

Co-authored-by: xxyyh <2289112474@qq>
Copilot AI review requested due to automatic review settings January 8, 2026 13:33
@gru-agent
Copy link
Contributor

gru-agent bot commented Jan 8, 2026

There is too much information in the pull request to test.

@cla-assistant
Copy link

cla-assistant bot commented Jan 8, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ c121914yu
❌ YYH211
You have signed the CLA already but the status is still pending? Let us recheck it.

@c121914yu c121914yu merged commit a415ea8 into agent-dev Jan 8, 2026
3 of 4 checks passed
@cla-assistant
Copy link

cla-assistant bot commented Jan 8, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ c121914yu
❌ YYH211
You have signed the CLA already but the status is still pending? Let us recheck it.

@c121914yu c121914yu deleted the test-agent branch January 8, 2026 13:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a comprehensive Agent system for autonomous task planning and execution. The agent can automatically decompose complex tasks into executable steps, supporting intelligent tool selection, dynamic planning, and interactive user feedback.

Key Changes:

  • Introduces a new "Chat Agent V2" workflow type with autonomous task planning capabilities
  • Adds skill-based tool selection system with visual editor support
  • Implements Plan Agent for multi-step task decomposition
  • Adds support for skill nodes in prompt editor with {{@skillId@}} syntax

Reviewed changes

Copilot reviewed 200 out of 434 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/web/i18n/zh-Hant/common.json Added Traditional Chinese translations for agent-related UI strings including skill configuration, prompt tips, and exit confirmations
packages/web/i18n/zh-Hant/chat.json Added translations for agent planning features like "agent_call", "plan_agent", "context_pick", and "step_summary"
packages/web/i18n/zh-Hant/app.json Added translations for agent intro, skills management, tool configuration, and empty folder displays
packages/web/i18n/zh-CN/common.json Added Simplified Chinese translations matching the Traditional Chinese additions
packages/web/i18n/zh-CN/chat.json Added Simplified Chinese translations for agent features
packages/web/i18n/zh-CN/app.json Added Simplified Chinese translations for skills and tools
packages/web/i18n/en/common.json Added English translations for all agent-related UI elements
packages/web/i18n/en/chat.json Added English translations for agent planning features
packages/web/i18n/en/app.json Added English translations for skills, tools, and agent configuration
packages/web/hooks/useScrollPagination.tsx Updated import paths for pagination types from deprecated location
packages/web/components/common/Textarea/PromptEditor/utils.ts Extended type support to include SkillNode in text entity registration
packages/web/components/common/Textarea/PromptEditor/plugins/VariablePickerPlugin/index.tsx Fixed flushSync warning by deferring menu closure
packages/web/components/common/Textarea/PromptEditor/plugins/SkillPickerPlugin/index.tsx New plugin for skill selection with keyboard navigation and folder support
packages/web/components/common/Textarea/PromptEditor/plugins/SkillLabelPlugin/utils.ts Added utility for parsing skill label regex patterns
packages/web/components/common/Textarea/PromptEditor/plugins/SkillLabelPlugin/node.tsx Implemented SkillNode decorator for rendering skill labels
packages/web/components/common/Textarea/PromptEditor/plugins/SkillLabelPlugin/index.tsx Plugin for transforming skill text patterns into visual skill nodes
packages/web/components/common/Textarea/PromptEditor/Editor.tsx Integrated skill picker and label plugins into editor
packages/web/components/common/MySelect/MultipleRowSelect.tsx Fixed styling issue with open state background color
packages/web/components/common/Icon/constants.ts Added warningFill icon for skill configuration warnings
packages/web/components/common/Icon/button.tsx Added MyDeleteIconButton component with pre-configured delete styling
packages/service/support/user/audit/util.ts Added support for chatAgent app type in i18n translations
packages/service/support/permission/teamLimit.ts Included chatAgent type in app count limits
packages/service/support/permission/app/auth.ts Fixed import path for AppDetailType
packages/service/core/workflow/utils.ts Relaxed type constraints for tool runtime node generation
packages/service/core/workflow/dispatch/utils.ts Refactored workflow response writer with stepId support and child response handling
packages/service/core/workflow/dispatch/type.ts Updated WorkflowResponseType with zod schema validation
packages/service/core/workflow/dispatch/tools/readFiles.ts Updated file reading utility function names
packages/service/core/workflow/dispatch/index.ts Major refactor to support agent node responses, usage tracking, and interactive workflows
packages/service/core/workflow/dispatch/ai/agent/index.ts Core agent dispatch logic with plan iteration and master agent coordination
packages/service/core/workflow/dispatch/ai/agent/master/call.ts Master agent call handler for tool execution and plan delegation
packages/service/core/workflow/dispatch/ai/agent/sub/plan/index.ts Plan agent implementation for task decomposition
packages/service/core/workflow/dispatch/ai/agent/sub/tool/index.ts Tool execution dispatcher for system and MCP tools
packages/service/core/workflow/dispatch/ai/agent/sub/file/index.ts File reading implementation for agent file access
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/service/core/workflow/dispatch/ai/agent/master/call.ts:1

  • Debug console.log statement with magic number should be removed or replaced with proper logging using the addLog utility.
import type { ChatCompletionMessageParam, ChatCompletionTool } from '@fastgpt/global/core/ai/type';

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"delete_folder": "Delete Folder",
"delete_success": "Deleted Successfully",
"delete_warning": "Deletion Warning",
"descripton": "describe",
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'descripton' to 'description'.

Suggested change
"descripton": "describe",
"description": "describe",

Copilot uses AI. Check for mistakes.
"skill_editor": "技能辅助生成",
"skill_empty_name": "未命名的技能",
"skill_local_removed": "本地技能已移除",
"skill_name_placeholder": "请输入技能明,仅用于展示",
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder text appears to have a typo. It should likely be "请输入技能名,仅用于展示" (skill name) instead of "技能明".

Suggested change
"skill_name_placeholder": "请输入技能明,仅用于展示",
"skill_name_placeholder": "请输入技能名,仅用于展示",

Copilot uses AI. Check for mistakes.
"skill_editor": "技能輔助生成",
"skill_empty_name": "未命名的技能",
"skill_local_removed": "本地技能已移除",
"skill_name_placeholder": "請輸入技能明,僅用於展示",
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder text appears to have a typo. It should likely be "請輸入技能名,僅用於展示" (skill name) instead of "技能明".

Suggested change
"skill_name_placeholder": "請輸入技能明,僅用於展示",
"skill_name_placeholder": "請輸入技能名,僅用於展示",

Copilot uses AI. Check for mistakes.
Comment on lines +195 to +197
console.log('Plan request messages');
console.dir({ requestMessages }, { depth: null });
console.log('userInput:', userInput, 'mode:', mode, 'interactive?.type:', interactive?.type);
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug console.log statements should be removed or replaced with proper logging using the addLog utility that's already imported in this file.

Suggested change
console.log('Plan request messages');
console.dir({ requestMessages }, { depth: null });
console.log('userInput:', userInput, 'mode:', mode, 'interactive?.type:', interactive?.type);
// console.log('Plan request messages');
// console.dir({ requestMessages }, { depth: null });
// console.log('userInput:', userInput, 'mode:', mode, 'interactive?.type:', interactive?.type);

Copilot uses AI. Check for mistakes.
if (!userQuery) {
const toolArgs = parseJsonArgs(call.function.arguments);
finalUserInput = toolArgs?.description || '';
console.log('[Plan Tool] finalUserInput', finalUserInput);
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple debug console.log statements should be removed or replaced with proper logging using the addLog utility that's already used elsewhere in this file.

Copilot uses AI. Check for mistakes.
planTool?.function?.description || '请基于上述历史记录来规划当前任务';
}

console.log('[Plan Tool] userQuery 为空,使用备用输入:', finalUserInput);
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple debug console.log statements should be removed or replaced with proper logging using the addLog utility that's already used elsewhere in this file.

Copilot uses AI. Check for mistakes.
stop: true
};
} catch (error) {
console.log(error, 111);
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple debug console.log statements should be removed or replaced with proper logging using the addLog utility that's already used elsewhere in this file.

Copilot uses AI. Check for mistakes.
}

if (agentPlan) {
console.log(`Start step call`, {
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug console.log statement should be removed or replaced with addLog.debug() for consistency with the logging pattern used elsewhere in the codebase.

Suggested change
console.log(`Start step call`, {
addLog.debug('Start step call', {

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Preview mcp_server Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_mcp_server_d3c7f9979bfd780418036fee8b7391750aead94e

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Preview sandbox Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_sandbox_d3c7f9979bfd780418036fee8b7391750aead94e

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.9% 19233 / 77231
🔵 Statements 24.9% 19233 / 77231
🔵 Functions 37.34% 589 / 1577
🔵 Branches 71.04% 1960 / 2759
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/global/common/file/tools.ts 11.94% 100% 0% 11.94% 8-15, 18-19, 22-36, 40-90
packages/global/common/i18n/type.ts 100% 100% 100% 100%
packages/global/common/parentFolder/type.ts 0% 0% 0% 0% 1-3
packages/global/common/secret/type.ts 0% 0% 0% 0% 1-9
packages/global/common/string/tools.ts 62.17% 58.62% 46.66% 62.17% 6-9, 49-50, 73-74, 80-81, 102-103, 111-116, 137-142, 177-187, 199-205, 208-234
packages/global/common/system/utils.ts 83.33% 88.88% 100% 83.33% 13-18
packages/global/core/ai/constants.ts 100% 100% 100% 100%
packages/global/core/ai/model.ts 0% 0% 0% 0% 1-111
packages/global/core/ai/agent/type.ts 100% 100% 100% 100%
packages/global/core/ai/prompt/AIChat.ts 87.96% 100% 0% 87.96% 300-303, 306-312, 316-325
packages/global/core/ai/skill/type.ts 0% 0% 0% 0% 1-6
packages/global/core/app/constants.ts 72.34% 100% 0% 72.34% 94-125
packages/global/core/app/jsonschema.ts 50.24% 89.74% 50% 50.24% 120-132, 134-207, 209-229
packages/global/core/app/type.ts 0% 0% 0% 0% 1-172
packages/global/core/app/utils.ts 62.22% 100% 33.33% 62.22% 32-46, 49-54
packages/global/core/app/formEdit/type.ts 0% 0% 0% 0% 1-39
packages/global/core/app/formEdit/utils.ts 0% 0% 0% 0% 1-135
packages/global/core/app/tool/httpTool/type.ts 0% 0% 0% 0% 1-42
packages/global/core/app/tool/httpTool/utils.ts 6.12% 100% 0% 6.12% 13-48, 51-87, 90-172
packages/global/core/app/tool/mcpTool/type.ts 0% 0% 0% 0% 1-24
packages/global/core/app/type/config.ts 100% 100% 100% 100%
packages/global/core/chat/adapt.ts 7.34% 50% 14.28% 7.34% 32-33, 36-40, 43-204, 207-408, 417, 428-445, 448-455
packages/global/core/chat/constants.ts 100% 100% 100% 100%
packages/global/core/chat/type.ts 100% 100% 100% 100%
packages/global/core/chat/utils.ts 13.43% 40% 11.11% 13.43% 16-23, 27-34, 38-84, 88-132, 136-166, 169-181, 184-187, 190-206, 222-242, 247-248
packages/global/core/chat/helperBot/adaptor.ts 0% 0% 0% 0% 1-119
packages/global/core/chat/helperBot/type.ts 100% 100% 100% 100%
packages/global/core/chat/helperBot/topAgent/type.ts 0% 0% 0% 0% 1-10
packages/global/core/dataset/training/utils.ts 47.33% 100% 0% 47.33% 17-18, 23-25, 28-30, 34-38, 40-44, 105-106, 110-183
packages/global/core/plugin/admin/tool/type.ts 0% 0% 0% 0% 1-41
packages/global/core/plugin/tool/type.ts 0% 0% 0% 0% 1-58
packages/global/core/workflow/constants.ts 100% 100% 100% 100%
packages/global/core/workflow/utils.ts 35.71% 27.77% 22.22% 35.71% 55-60, 63-67, 75, 90, 176-186, 194-195, 198-235, 238-315, 318-325, 328-337, 340-346, 350-351, 358-365, 373-379, 382-383, 387-425, 436-442
packages/global/core/workflow/node/constant.ts 100% 100% 100% 100%
packages/global/core/workflow/runtime/constants.ts 100% 100% 100% 100%
packages/global/core/workflow/runtime/utils.ts 40.61% 80.7% 41.17% 40.61% 34-36, 41-55, 149-152, 157-158, 167-219, 222-233, 236-259, 262-285, 288-293, 351-356, 359-360, 397-398, 401-402, 410, 412-413, 424-471, 499-599, 602-632, 636-658
packages/global/core/workflow/template/constants.ts 100% 100% 100% 100%
packages/global/core/workflow/template/output.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/assignedAnswer.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/comment.ts 0% 0% 0% 0% 1-39
packages/global/core/workflow/template/system/customFeedback.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/datasetConcat.ts 79.62% 100% 0% 79.62% 19-31
packages/global/core/workflow/template/system/http468.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/laf.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/pluginConfig.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/queryExtension.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/systemConfig.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/textEditor.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/workflowStart.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/agent/index.ts 0% 0% 0% 0% 1-75
packages/global/core/workflow/template/system/interactive/type.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/interactive/userSelect.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/loop/loopStart.ts 100% 100% 100% 100%
packages/global/core/workflow/template/system/readFiles/type.ts 0% 0% 0% 0% 1-8
packages/global/core/workflow/type/edge.ts 100% 100% 100% 100%
packages/global/core/workflow/type/index.ts 0% 0% 0% 0% 1-53
packages/global/core/workflow/type/io.ts 0% 0% 0% 0% 1-164
packages/global/core/workflow/type/node.ts 0% 0% 0% 0% 1-213
packages/global/openapi/index.ts 0% 0% 0% 0% 1-74
packages/global/openapi/tag.ts 0% 0% 0% 0% 1-51
packages/global/openapi/type.ts 0% 0% 0% 0% 1-48
packages/global/openapi/core/ai/index.ts 0% 100% 100% 0% 3
packages/global/openapi/core/chat/index.ts 0% 100% 100% 0% 2-36
packages/global/openapi/core/chat/helperBot/api.ts 0% 0% 0% 0% 1-63
packages/global/openapi/core/chat/helperBot/index.ts 0% 0% 0% 0% 1-79
packages/global/openapi/core/plugin/marketplace/api.ts 0% 0% 0% 0% 1-67
packages/global/openapi/support/wallet/discountCoupon/api.ts 0% 0% 0% 0% 1-35
packages/global/support/user/type.ts 0% 0% 0% 0% 1-45
packages/service/common/file/read/utils.ts 8.43% 100% 0% 8.43% 26-46, 49-228
packages/service/common/mongo/sessionRun.ts 76.92% 66.66% 100% 76.92% 21-26
packages/service/common/response/index.ts 8.55% 100% 0% 8.55% 35-94, 97-135, 138-172, 175-191, 194-208, 211-227
packages/service/common/s3/type.ts 100% 100% 100% 100%
packages/service/common/s3/utils.ts 27.77% 77.77% 25% 27.77% 26-53, 62-67, 70-80, 103-111, 114-141, 144-160, 165-175, 178-186, 190-207, 210-226, 230-241, 244-249, 252-253
packages/service/common/s3/sources/dataset/index.ts 0% 0% 0% 0% 1-182
packages/service/common/s3/sources/helperbot/index.ts 0% 0% 0% 0% 1-121
packages/service/common/s3/sources/helperbot/type.ts 0% 0% 0% 0% 1-17
packages/service/common/vectorDB/controller.ts 95.55% 95.23% 100% 95.55% 22-26
packages/service/core/ai/model.ts 58.82% 75% 37.5% 58.82% 31-33, 37-39, 43-45, 49-51, 54-61, 63-64
packages/service/core/ai/utils.ts 74.23% 93.18% 30% 74.23% 12-24, 28-39, 44-57, 141-147, 238-244, 309-316, 319-320, 322-323, 334-339
packages/service/core/ai/audio/transcriptions.ts 0% 100% 100% 0% 2-46
packages/service/core/ai/config/utils.ts 0% 100% 100% 0% 2-300
packages/service/core/ai/embedding/index.ts 23.01% 100% 66.66% 23.01% 17-127
packages/service/core/ai/functions/createQuestionGuide.ts 0% 100% 100% 0% 2-76
packages/service/core/ai/llm/request.ts 3.47% 100% 0% 3.47% 72-206, 219-435, 438-517, 544-636, 638-716
packages/service/core/ai/llm/utils.ts 91.48% 80.28% 100% 91.48% 43-44, 64-65, 173-179, 192-195, 203-205, 208-209, 307, 312, 321, 324, 335, 348, 416-417
packages/service/core/ai/llm/agentCall/index.ts 3.86% 100% 0% 3.86% 101-397
packages/service/core/ai/llm/compress/constants.ts 38.46% 100% 0% 38.46% 81-102
packages/service/core/ai/llm/compress/index.ts 4.33% 100% 0% 4.33% 20-144, 148-358
packages/service/core/ai/llm/compress/prompt.ts 11.76% 100% 0% 11.76% 6-296
packages/service/core/ai/rerank/index.ts 10.16% 100% 0% 10.16% 27-88
packages/service/core/app/controller.ts 64.04% 86.66% 71.42% 64.04% 35-87, 120-121, 127-140, 232
packages/service/core/app/http.ts 5.22% 100% 0% 5.22% 28-125, 128-169
packages/service/core/app/mcp.ts 6.62% 100% 0% 6.62% 14-155, 158-187
packages/service/core/app/schema.ts 100% 100% 100% 100%
packages/service/core/app/utils.ts 0% 0% 0% 0% 1-276
packages/service/core/app/delete/processor.ts 90% 80% 100% 90% 35-37, 74-76
packages/service/core/app/tool/controller.ts 5.54% 100% 0% 5.54% 68-111, 114-558, 562-654, 657-664
packages/service/core/app/version/controller.ts 7.24% 100% 0% 7.24% 6-31, 34-62, 65-84
packages/service/core/chat/chatSchema.ts 98.26% 66.66% 100% 98.26% 200-202
packages/service/core/chat/pushChatLog.ts 13.07% 25% 50% 13.07% 34-42, 61-186
packages/service/core/chat/saveChat.ts 87.8% 79.56% 100% 87.8% 91-100, 105-115, 124, 131-139, 397-398, 400-401, 460-461, 499-513, 524-525, 531-534, 541, 545-549, 672-673
packages/service/core/chat/utils.ts 8.13% 100% 0% 8.13% 11-66, 70-105
packages/service/core/chat/HelperBot/chatItemSchema.ts 0% 0% 0% 0% 1-42
packages/service/core/chat/HelperBot/chatSchema.ts 100% 100% 0% 100%
packages/service/core/chat/HelperBot/constants.ts 100% 100% 100% 100%
packages/service/core/chat/HelperBot/utils.ts 0% 100% 100% 0% 6-103
packages/service/core/chat/HelperBot/dispatch/index.ts 0% 0% 0% 0% 1-6
packages/service/core/chat/HelperBot/dispatch/type.ts 0% 0% 0% 0% 1-58
packages/service/core/chat/HelperBot/dispatch/utils.ts 0% 100% 100% 0% 4-36
packages/service/core/chat/HelperBot/dispatch/topAgent/index.ts 0% 100% 100% 0% 2-185
packages/service/core/chat/HelperBot/dispatch/topAgent/prompt.ts 0% 100% 100% 0% 2-605
packages/service/core/chat/HelperBot/dispatch/topAgent/type.ts 0% 0% 0% 0% 1-59
packages/service/core/chat/HelperBot/dispatch/topAgent/utils.ts 0% 100% 100% 0% 2-185
packages/service/core/dataset/read.ts 22.72% 80% 20% 22.72% 22-150, 158-251, 254-278, 306-320, 323-324
packages/service/core/dataset/search/controller.ts 3.46% 100% 0% 3.46% 95-137, 139-923, 931-968
packages/service/core/workflow/utils.ts 8.82% 100% 0% 8.82% 12-83
packages/service/core/workflow/dispatch/constants.ts 100% 100% 0% 100%
packages/service/core/workflow/dispatch/index.ts 2.93% 100% 0% 2.93% 84-250, 260-1143, 1147-1200, 1204-1227
packages/service/core/workflow/dispatch/utils.ts 12.2% 80% 10% 12.2% 32-74, 76-88, 91-102, 119-127, 131-174, 177-185, 188-196, 205-301, 304-340
packages/service/core/workflow/dispatch/abandoned/runApp.ts 11.49% 100% 0% 11.49% 33-118
packages/service/core/workflow/dispatch/ai/chat.ts 5.82% 100% 0% 5.82% 64-497
packages/service/core/workflow/dispatch/ai/classifyQuestion.ts 9.84% 100% 0% 9.84% 36-102, 105-170
packages/service/core/workflow/dispatch/ai/extract.ts 5.86% 100% 0% 5.86% 49-159, 162-182, 185-284, 287-365
packages/service/core/workflow/dispatch/ai/utils.ts 8.51% 100% 0% 8.51% 22-38, 41-42, 45-50, 57-107, 110-141
packages/service/core/workflow/dispatch/ai/agent/constants.ts 7.69% 100% 0% 7.69% 12-248
packages/service/core/workflow/dispatch/ai/agent/index.ts 3.74% 100% 0% 3.74% 60-466
packages/service/core/workflow/dispatch/ai/agent/type.ts 0% 100% 100% 0% 4-28
packages/service/core/workflow/dispatch/ai/agent/utils.ts 8.62% 100% 0% 8.62% 13-39, 42-92
packages/service/core/workflow/dispatch/ai/agent/master/call.ts 5.39% 100% 0% 5.39% 45-530
packages/service/core/workflow/dispatch/ai/agent/master/dependon.ts 10.52% 100% 0% 10.52% 14-121
packages/service/core/workflow/dispatch/ai/agent/master/prompt.ts 100% 100% 100% 100%
packages/service/core/workflow/dispatch/ai/agent/master/responseSummary.ts 14.81% 100% 0% 14.81% 13-75
packages/service/core/workflow/dispatch/ai/agent/master/taskComplexity.ts 0% 0% 0% 0% 1-98
packages/service/core/workflow/dispatch/ai/agent/sub/constants.ts 100% 100% 100% 100%
packages/service/core/workflow/dispatch/ai/agent/sub/type.ts 0% 0% 0% 0%
packages/service/core/workflow/dispatch/ai/agent/sub/app/index.ts 0% 100% 100% 0% 3-194
packages/service/core/workflow/dispatch/ai/agent/sub/dataset/index.ts 0% 0% 0% 0%
packages/service/core/workflow/dispatch/ai/agent/sub/file/index.ts 9.27% 100% 0% 9.27% 20-124
packages/service/core/workflow/dispatch/ai/agent/sub/file/utils.ts 30.69% 100% 0% 30.69% 35-120, 123-136
packages/service/core/workflow/dispatch/ai/agent/sub/model/constants.ts 0% 100% 100% 0% 2-24
packages/service/core/workflow/dispatch/ai/agent/sub/model/index.ts 0% 100% 100% 0% 2-83
packages/service/core/workflow/dispatch/ai/agent/sub/plan/constants.ts 100% 100% 100% 100%
packages/service/core/workflow/dispatch/ai/agent/sub/plan/index.ts 9.03% 100% 0% 9.03% 59-70, 72-116, 119-254
packages/service/core/workflow/dispatch/ai/agent/sub/plan/prompt.ts 9.83% 100% 0% 9.83% 9-23, 28-148, 152-448, 452-834
packages/service/core/workflow/dispatch/ai/agent/sub/plan/ask/constants.ts 100% 100% 100% 100%
packages/service/core/workflow/dispatch/ai/agent/sub/tool/index.ts 8.17% 100% 0% 8.17% 44-201
packages/service/core/workflow/dispatch/ai/agent/sub/tool/utils.ts 7.32% 100% 0% 7.32% 27-228
packages/service/core/workflow/dispatch/ai/tool/toolCall.ts 3.97% 100% 0% 3.97% 17-317
packages/service/core/workflow/dispatch/ai/tool/utils.ts 10.9% 100% 0% 10.9% 8-18, 21-37, 40-45, 49-54, 57-69
packages/service/core/workflow/dispatch/child/runApp.ts 8.67% 100% 0% 8.67% 39-215
packages/service/core/workflow/dispatch/child/runTool.ts 6.09% 100% 0% 6.09% 46-338
packages/service/core/workflow/dispatch/dataset/search.ts 4.8% 100% 0% 4.8% 47-287
packages/service/core/workflow/dispatch/plugin/runOutput.ts 22.22% 100% 0% 22.22% 11-18
packages/service/core/workflow/dispatch/tools/queryExternsion.ts 9.87% 100% 0% 9.87% 24-105
packages/service/core/workflow/dispatch/tools/readFiles.ts 9.54% 100% 0% 9.54% 34-52, 55-103, 106-123, 126-312
packages/service/support/permission/teamLimit.ts 34.09% 15.38% 33.33% 34.09% 13-25, 28-41, 64-65, 69-77, 79-100, 104-123, 136-137, 141-147, 151-158
packages/service/support/permission/app/auth.ts 73.94% 90.62% 66.66% 73.94% 25-43, 79-91, 118-119, 150-151
packages/service/support/permission/model/controller.ts 40.54% 66.66% 100% 40.54% 20-47
packages/service/support/user/audit/util.ts 23.72% 75% 40% 23.72% 16-24, 27-35, 40-46, 49-53, 79-97
packages/web/components/common/Icon/constants.ts 0% 100% 100% 0% 3-568
packages/web/components/common/Textarea/PromptEditor/utils.ts 0% 100% 100% 0% 11-581
packages/web/components/common/Textarea/PromptEditor/plugins/SkillLabelPlugin/utils.ts 0% 0% 0% 0% 1-31
projects/app/src/components/core/chat/ChatContainer/ChatBox/utils.ts 0% 100% 100% 0% 3-201
projects/app/src/components/core/chat/HelperBot/api.ts 0% 0% 0% 0% 1-21
projects/app/src/global/core/chat/utils.ts 83.33% 89.65% 100% 83.33% 62-74
projects/app/src/pageComponents/app/constants.ts 0% 0% 0% 0% 1-53
projects/app/src/pageComponents/app/detail/Edit/ChatAgent/utils.ts 0% 100% 100% 0% 8-286
projects/app/src/pageComponents/app/detail/Edit/SimpleApp/utils.ts 52.29% 91.66% 77.77% 52.29% 44-176, 502-700
projects/app/src/pageComponents/app/detail/WorkflowComponents/utils.ts 82.25% 69.56% 100% 82.25% 132, 135-156
projects/app/src/pageComponents/dashboard/constant.ts 0% 0% 0% 0% 1-36
projects/app/src/pages/api/admin/initv4141.ts 0% 0% 0% 0% 1-214
projects/app/src/pages/api/admin/initv4820.ts 0% 0% 0% 0% 1-77
projects/app/src/pages/api/core/ai/optimizePrompt.ts 0% 100% 100% 0% 2-162
projects/app/src/pages/api/core/ai/model/list.ts 0% 100% 100% 0% 2-56
projects/app/src/pages/api/core/ai/model/test.ts 0% 100% 100% 0% 2-140
projects/app/src/pages/api/core/ai/model/updateDefault.ts 0% 100% 100% 0% 2-101
projects/app/src/pages/api/core/app/create.ts 88.66% 66.66% 100% 88.66% 57-58, 99, 161-162, 164-165, 172, 175, 177-192
projects/app/src/pages/api/core/app/httpTools/runTool.ts 0% 0% 0% 0% 1-53
projects/app/src/pages/api/core/app/httpTools/update.ts 0% 100% 100% 0% 2-70
projects/app/src/pages/api/core/app/template/list.ts 0% 100% 100% 0% 2-93
projects/app/src/pages/api/core/app/tool/getPreviewNode.ts 0% 100% 100% 0% 4-31
projects/app/src/pages/api/core/app/tool/getSystemToolTemplates.ts 0% 100% 100% 0% 2-62
projects/app/src/pages/api/core/chat/chatTest.ts 0% 100% 100% 0% 2-278
projects/app/src/pages/api/core/chat/getPaginationRecords.ts 0% 100% 100% 0% 2-107
projects/app/src/pages/api/core/chat/getRecords_v2.ts 0% 100% 100% 0% 2-126
projects/app/src/pages/api/core/chat/helperBot/completions.ts 0% 100% 100% 0% 2-96
projects/app/src/pages/api/core/chat/helperBot/deleteRecord.ts 0% 100% 100% 0% 2-28
projects/app/src/pages/api/core/chat/helperBot/getFilePresign.ts 0% 100% 100% 0% 2-36
projects/app/src/pages/api/core/chat/helperBot/getFilePreviewUrl.ts 0% 100% 100% 0% 2-24
projects/app/src/pages/api/core/chat/helperBot/getRecords.ts 0% 100% 100% 0% 2-43
projects/app/src/pages/api/core/chat/item/delete.ts 0% 100% 100% 0% 2-52
projects/app/src/pages/api/core/dataset/createWithFiles.ts 0% 0% 0% 0% 1-204
projects/app/src/pages/api/core/dataset/collection/update.ts 0% 0% 0% 0% 1-153
projects/app/src/pages/api/v1/chat/completions.ts 0% 100% 100% 0% 2-673
projects/app/src/pages/api/v2/chat/completions.ts 0% 100% 100% 0% 2-668
projects/app/src/service/core/app/utils.ts 0% 0% 0% 0% 1-170
projects/app/src/service/core/app/workflow.ts 0% 0% 0% 0% 1-14
projects/app/src/service/core/dataset/queues/generateQA.ts 0% 0% 0% 0% 1-243
projects/app/src/service/support/mcp/utils.ts 49.79% 75.86% 75% 49.79% 51, 96, 136-137, 160, 169-312
projects/app/src/service/support/permission/auth/chat.ts 91.62% 84.84% 66.66% 91.62% 198-206, 278-290
projects/app/src/service/support/wallet/usage/push.ts 0% 0% 0% 0% 1-374
projects/app/src/web/common/api/fetch.ts 0% 0% 0% 0% 1-374
projects/app/src/web/common/system/useSystemStore.ts 37.23% 100% 6.66% 37.23% 93-96, 99-102, 105-108, 111-114, 117-120, 123-127, 131-139, 177-185, 187-204, 207-208, 210-211, 213-217, 219-254, 259-277
projects/app/src/web/common/system/utils.ts 0% 100% 100% 0% 2-69
projects/app/src/web/common/utils/voice.ts 0% 100% 100% 0% 3-444
projects/app/src/web/core/app/api.ts 0% 0% 0% 0% 1-52
projects/app/src/web/core/app/constants.ts 100% 100% 100% 100%
projects/app/src/web/core/app/templates.ts 0% 0% 0% 0% 1-795
projects/app/src/web/core/app/utils.ts 100% 100% 100% 100%
projects/app/src/web/core/app/api/tool.ts 0% 0% 0% 0% 1-148
projects/app/src/web/core/chat/api.ts 0% 0% 0% 0% 1-88
projects/app/src/web/core/chat/utils.ts 0% 0% 0% 0% 1-47
projects/app/src/web/core/dataset/api.ts 0% 0% 0% 0% 1-319
projects/app/src/web/core/dataset/constants.ts 0% 0% 0% 0% 1-101
projects/app/src/web/core/workflow/adapt.ts 16.29% 100% 0% 16.29% 27-66, 235-496
projects/app/src/web/core/workflow/utils.ts 35.29% 64.58% 35.71% 35.29% 86, 127-132, 173-193, 197-207, 211-224, 228-266, 337-386, 411-412, 421-422, 425-445, 447-457, 466-542, 557-558, 566-637, 642-643, 649-664, 668-780, 785-835
Generated in workflow #3432 for commit d3c7f99 by the Vitest Coverage Report Action

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants