docs: update AGENTS.md v11 and workflow config
This commit is contained in:
parent
d80122e9da
commit
9bb9b0f411
|
|
@ -434,3 +434,17 @@ documentation_sync = true # 强制文档同步
|
||||||
输出示例结构(仅作结构参考,实际请填真实内容):
|
输出示例结构(仅作结构参考,实际请填真实内容):
|
||||||
{"ts":"2025-12-24T10:30:00+08:00","id":"BUG-20251224-001","title":"...","symptom":"...","root_cause":"...","fix":["..."],"files_changed":["..."],"repro_steps":["..."],"verification":{"commands":["..."],"result":"..."},"impact":"...","prevention":["..."],"tags":["..."],"followups":["..."]}
|
{"ts":"2025-12-24T10:30:00+08:00","id":"BUG-20251224-001","title":"...","symptom":"...","root_cause":"...","fix":["..."],"files_changed":["..."],"repro_steps":["..."],"verification":{"commands":["..."],"result":"..."},"impact":"...","prevention":["..."],"tags":["..."],"followups":["..."]}
|
||||||
</bugs>
|
</bugs>
|
||||||
|
|
||||||
|
<context7>
|
||||||
|
Context7 MCP - 实时官方文档获取工具
|
||||||
|
作用:从源头拉取最新的、版本特定的文档和代码示例到上下文中
|
||||||
|
触发方式:在提示词末尾添加 "use context7"
|
||||||
|
使用示例:
|
||||||
|
- "创建 Next.js app router 项目。use context7"
|
||||||
|
- "用 React Query 获取数据。use context7"
|
||||||
|
- "PostgreSQL 删除空行脚本。use context7"
|
||||||
|
提供工具:
|
||||||
|
- resolve-library-id:搜索库并返回 Context7 库 ID
|
||||||
|
- get-library-docs:获取指定库的最新文档
|
||||||
|
何时使用:需要最新 API、框架文档、避免过时代码时
|
||||||
|
</context7>
|
||||||
|
|
@ -6,38 +6,11 @@
|
||||||
"allowedPaths": ["./**"]
|
"allowedPaths": ["./**"]
|
||||||
},
|
},
|
||||||
"fs_write": {
|
"fs_write": {
|
||||||
"allowedPaths": [
|
"allowedPaths": ["./workflow_engine/**"]
|
||||||
"./workflow_engine/**",
|
|
||||||
"./artifacts/**"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"execute_bash": {
|
"execute_bash": {
|
||||||
"allowedCommands": [
|
"allowedCommands": ["python3 workflow_engine/runner.py.*"],
|
||||||
"python3 workflow_engine/runner.py.*",
|
|
||||||
"cat workflow_engine/state/.*"
|
|
||||||
],
|
|
||||||
"autoAllowReadonly": true
|
"autoAllowReadonly": true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"hooks": [
|
|
||||||
{
|
|
||||||
"event": "agentSpawn",
|
|
||||||
"command": "cat workflow_engine/state/current_step.json 2>/dev/null || echo '{\"status\":\"idle\"}'",
|
|
||||||
"timeout_ms": 3000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"event": "stop",
|
|
||||||
"command": "python3 workflow_engine/runner.py status 2>/dev/null || true",
|
|
||||||
"timeout_ms": 5000
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": [
|
|
||||||
"file://README.md",
|
|
||||||
"file://workflow_engine/README.md",
|
|
||||||
"file://step1_需求输入.jsonl",
|
|
||||||
"file://step2_执行计划.jsonl",
|
|
||||||
"file://step3_实施变更.jsonl",
|
|
||||||
"file://step4_验证发布.jsonl",
|
|
||||||
"file://step5_总控与循环.jsonl"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue