feat(core): 实现动态系统提示词加载
- 创建 SystemPrompt 模块,根据模型类型动态加载对应的提示词 - 从 OpenCode 拷贝提示词文件 (anthropic/beast/gemini/qwen/plan.txt) - 修改 Build/Plan Agent 预设,移除内联 prompt - Agent 类新增 resolveSystemPrompt 方法处理提示词加载逻辑 - 构建脚本自动复制 prompts 目录到 dist
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user