feat: upgrade investigation and presentation runtime
Generic Container CI/CD / test-build-publish (push) Successful in 1m6s
Agent CI/CD / build-test-publish-and-deploy (push) Successful in 1m7s

This commit is contained in:
2026-10-30 17:30:19 +08:00
parent 3b52a0ddab
commit 6336157ff4
104 changed files with 6541 additions and 961 deletions
+15 -12
View File
@@ -10,6 +10,12 @@
"config_builder": "../src/runtime/opencode2-config.ts"
},
"agents": [
{
"id": "prompt-suggestions",
"description": "一次性推荐问题文本生成角色,仅输出 JSON,禁止所有工具,不继承业务聊天收尾协议。",
"path": "agents/prompt-suggestions.md",
"mode": "primary"
},
{
"id": "instruction",
"description": "普通聊天与任务协作主 Agent:通过 mcp_tjwater 查询授权资料或执行受控分析,用插件组织回答、地图展示和业务写入;不启动子代理。此文件的公共规则也供后台调查继承。",
@@ -24,36 +30,32 @@
},
{
"id": "investigation-reader",
"description": "独立只读指令,仅使用已核验父任务授权的 25 项项目查询,返回证据编号、发现与局限;可读已有分析结果,但无计算、宿主查询、消息、发布、文件、Shell 或递归权限。任务查询仍由 Server 保存证据快照。",
"path": "agents/investigation-reader.md",
"description": "运行时只读子代理配置。具体核查提示由 investigation 主代理在每次 subagent 调用中提供;运行时仅开放已核验父任务授权的项目查询,无计算、宿主查询、消息、发布、文件、Shell 或递归权限。",
"prompt_source": "parent-subagent-call",
"config": "../src/runtime/opencode2-config.ts",
"mode": "subagent"
}
],
"plugins": [
{
"id": "tjwater.tools",
"description": "注册 21 个回答、展示、调查写入、通信、记忆/技能管理及待办工具;安装会话 Shell 沙箱、原生 MCP 连接和权限策略。查询由 MCP 提供,公开网页搜索使用原生 websearch。",
"description": "注册 16 个提问、回答、展示、调查写入、通信、记忆/技能管理及待办工具;安装会话 Shell 沙箱、原生 MCP 连接和权限策略。查询由 MCP 提供,公开网页搜索使用原生 websearch。",
"package": "tjwater-plugin",
"entrypoint": "tjwater-plugin/index.ts",
"implementation": "plugins/tjwater-tools.ts",
"tool_groups": [
{
"description": "本地交互式回答与完整最终答复;不代表后台任务完成。",
"description": "聊天内容按阅读任务主动选择表格、趋势等交互组件,简单问答保留文字;最终答复引用已发布的 final 块,不代表后台任务完成。",
"tools": [
"present_answer",
"ask_user",
"present_answer",
"final_answer"
]
},
{
"description": "地图定位、缩放、图表、历史面板及 SCADA 覆盖层展示;保留各工具的前端执行回执语义。",
"description": "工作台地图、独立图表窗口、证据图层及 SCADA 展示动作;聊天内趋势优先使用 present_answer,通过 frontend-action@2 等待实际动作回执。",
"tools": [
"locate_features",
"zoom_to_map",
"show_chart",
"view_history",
"render_scada_analysis",
"clear_scada_analysis"
"present_view"
]
},
{
@@ -62,6 +64,7 @@
"publish_task_progress",
"publish_task_presentation",
"publish_task_report",
"ask_task_user",
"publish_execution_plan",
"propose_task_action",
"add_task_human_evidence",