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
+3
View File
@@ -57,3 +57,6 @@ export {
buildAgent,
planAgent,
} from './presets/index.js';
// System Prompt
export { SystemPrompt } from './system-prompt.js';