fix(agents): remove isMainThread flag and update agent descriptions and tool restrictions
This commit is contained in:
parent
75c510cb9d
commit
28b0ecfaf2
|
|
@ -258,5 +258,6 @@ export const STRICT_PLAN_AGENT: BuiltInAgentDefinition = {
|
|||
// 通过斜杠命令从主线程启动时,使 resolveAgentTools 跳过 filterToolsForAgent,
|
||||
// 从而保留主线程完整工具集(包括 Agent 工具)。
|
||||
isMainThread: true,
|
||||
visibleTo: ['None'],
|
||||
getSystemPrompt: () => getStrictPlanSystemPrompt(),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,10 +117,10 @@ Start by confirming the user requirements, then proceed with test case generatio
|
|||
export const TDD_AGENT: BuiltInAgentDefinition = {
|
||||
agentType: 'TDD',
|
||||
whenToUse:
|
||||
'根据用户的需求创建具体可实施的计划。Use this when you need to create structured, actionable implementation plans based on user requirements. This agent follows a strict workflow: understand requirements → QuickExplore project → clarify requirements → create proposal → implement proposal.',
|
||||
'execute comprehensive testing workflow: confirm requirements, generate test cases, and execute tests with automated fixes',
|
||||
tools:[
|
||||
"AskUserQuestion",
|
||||
"Agent(QuickExplore,TaskCheck,SubCoding)",
|
||||
"Agent",
|
||||
"Read",
|
||||
"Write",
|
||||
"Edit",
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ function getWikiSystemPrompt(): string {
|
|||
export const WIKI_AGENT: BuiltInAgentDefinition = {
|
||||
agentType: 'WIKI',
|
||||
whenToUse:
|
||||
'根据用户的需求创建具体可实施的计划。Use this when you need to create structured, actionable implementation plans based on user requirements. This agent follows a strict workflow: understand requirements → QuickExplore project → clarify requirements → create proposal → implement proposal.',
|
||||
'为项目生成完整的技术文档体系,包括项目分析、文档结构设计、技术文档生成和索引文件创建。',
|
||||
tools:[
|
||||
"Agent(WikiCatalogueDesign,WikiDocumentGenerate,WikiIndexGeneration,WikiProjectAnalyze)",
|
||||
"Read",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export function registerProjectWikiSkill(): void {
|
|||
return [
|
||||
{
|
||||
type: 'text',
|
||||
text: '请提供需要规划的需求描述。用法: /strict-project-wiki <需求描述>',
|
||||
text: '请提供技术文档的需求描述。用法: /strict-project-wiki',
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export function registerStrictPlanSkill(): void {
|
|||
disableModelInvocation: true,
|
||||
allowedTools:[
|
||||
"AskUserQuestion",
|
||||
"Agent",
|
||||
"Agent(QuickExplore,TaskCheck,SubCoding)",
|
||||
"Read",
|
||||
"Write",
|
||||
"Edit",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function registerTddSkill(): void {
|
|||
return [
|
||||
{
|
||||
type: 'text',
|
||||
text: '请提供需要规划的需求描述。用法: /strict-test <需求描述>',
|
||||
text: '请提供需要测试描述。用法: /strict-test <需求描述>',
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user