refactor(core): 简化 Agent 提示词系统,移除 provider 动态加载

- 直接在 build.ts 和 plan.ts 中定义 prompt 字段
- 简化 system-prompt.ts,移除 provider/forProvider/plan 函数
- 简化 agent.ts 中的 resolveSystemPrompt 方法
- 删除不再需要的提示词文件 (anthropic/beast/gemini/qwen/plan.txt)
- 更新 package.json build 脚本,移除复制 prompts 目录
This commit is contained in:
2025-12-16 13:48:56 +08:00
parent 7f51d33319
commit f7b934a69e
10 changed files with 159 additions and 701 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
}
},
"scripts": {
"build": "tsc && cp -r src/tools/descriptions dist/tools/ && cp -r src/agent/prompts dist/agent/",
"build": "tsc && cp -r src/tools/descriptions dist/tools/",
"dev": "tsc --watch",
"test": "vitest run",
"test:watch": "vitest",