feat(core): 实现动态系统提示词加载

- 创建 SystemPrompt 模块,根据模型类型动态加载对应的提示词
- 从 OpenCode 拷贝提示词文件 (anthropic/beast/gemini/qwen/plan.txt)
- 修改 Build/Plan Agent 预设,移除内联 prompt
- Agent 类新增 resolveSystemPrompt 方法处理提示词加载逻辑
- 构建脚本自动复制 prompts 目录到 dist
This commit is contained in:
2025-12-15 23:05:08 +08:00
parent 013e9a2712
commit f3995d158c
11 changed files with 732 additions and 72 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
}
},
"scripts": {
"build": "tsc && cp -r src/tools/descriptions dist/tools/",
"build": "tsc && cp -r src/tools/descriptions dist/tools/ && cp -r src/agent/prompts dist/agent/",
"dev": "tsc --watch",
"test": "vitest run",
"test:watch": "vitest",