doukui 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +85 -18
- package/README.md +8 -8
- package/bin/commands/help.js +2 -0
- package/bin/commands/plan-lint.js +105 -0
- package/bin/commands/verify.js +263 -0
- package/bin/doukui.js +2 -0
- package/package.json +1 -1
- package/plugins/core/hook-session-start/index.js +1 -1
- package/plugins/core/hook-skill-gate/index.js +64 -15
- package/plugins/core/hook-skill-gate/plugin.json +1 -1
- package/plugins/core/skill-agent-dispatcher/cleanup-reference.md +7 -28
- package/plugins/core/skill-agent-dispatcher/monitoring-reference.md +5 -177
- package/plugins/core/skill-agent-dispatcher/plugin.json +1 -1
- package/plugins/core/skill-agent-dispatcher/recovery-reference.md +99 -58
- package/plugins/core/skill-agent-dispatcher/roles-reference.md +9 -22
- package/plugins/core/skill-agent-dispatcher/skill.md +112 -524
- package/plugins/core/skill-agentic-loop/mirror-rules.md +15 -3
- package/plugins/core/skill-agentic-loop/plugin.json +1 -1
- package/plugins/core/skill-agentic-loop/skill.md +123 -324
- package/plugins/core/skill-batch-task-creator/plugin.json +1 -1
- package/plugins/core/skill-checklist/skill.md +15 -141
- package/plugins/core/skill-completion-report/plugin.json +1 -1
- package/plugins/core/skill-doukui-plan/plugin.json +1 -1
- package/plugins/core/skill-doukui-plan/skill.md +22 -22
- package/plugins/core/skill-experience-logger/plugin.json +1 -1
- package/plugins/core/skill-human-checkpoint/skill.md +1 -0
- package/plugins/core/skill-split-work-package/plugin.json +1 -1
- package/plugins/core/skill-task-creator/plugin.json +1 -1
- package/plugins/core/skill-task-creator/skill.md +1 -139
- package/plugins/core/skill-workflow-orchestrator/plugin.json +1 -1
- package/plugins/plugin-registry.json +0 -36
- package/plugins/runtime/harness-build.js +5 -5
- package/plugins/runtime/plan-reader.js +21 -3
- package/plugins/runtime/resolve-plugin-path.js +2 -2
- package/plugins/contracts/capabilities.js +0 -268
- package/plugins/core/provider-memory-store/index.js +0 -510
- package/plugins/core/provider-memory-store/plugin.json +0 -9
- package/plugins/core/provider-state-store/index.js +0 -244
- package/plugins/core/provider-state-store/plugin.json +0 -9
- package/plugins/core/provider-watchdog/assets/daemon-config.template.json +0 -32
- package/plugins/core/provider-watchdog/assets/lib/watchdog-multi-window.js +0 -676
- package/plugins/core/provider-watchdog/assets/watchdog.js +0 -754
- package/plugins/core/provider-watchdog/index.js +0 -151
- package/plugins/core/provider-watchdog/plugin.json +0 -13
- package/plugins/core/skill-agent-dispatcher/daemon-helpers-reference.md +0 -249
- package/plugins/core/skill-watchdog-manager/plugin.json +0 -10
- package/plugins/core/skill-watchdog-manager/skill.md +0 -143
- package/plugins/core/validator-doc-sync/index.js +0 -248
- package/plugins/core/validator-doc-sync/plugin.json +0 -12
- package/plugins/core/validator-work-package/index.js +0 -300
- package/plugins/core/validator-work-package/plugin.json +0 -12
- package/plugins/runtime/audit-logger.js +0 -311
- package/plugins/runtime/build-cli.js +0 -89
- package/plugins/runtime/event-bus.js +0 -207
- package/plugins/runtime/hook-dispatcher.js +0 -315
- package/plugins/runtime/plugin-loader.js +0 -798
- package/plugins/runtime/plugin-trust.js +0 -182
- package/plugins/runtime/sandbox-context.js +0 -235
- package/plugins/runtime/sandbox-manager.js +0 -609
- package/plugins/runtime/sandbox-worker.js +0 -215
- package/plugins/runtime/text-tokenize.js +0 -24
- package/plugins/runtime/validator-pipeline.js +0 -475
|
@@ -139,7 +139,7 @@ for task in tasks:
|
|
|
139
139
|
|
|
140
140
|
## Teamee Prompt 模板
|
|
141
141
|
|
|
142
|
-
以下模板用于 `build_single_task_prompt()` 函数,在 Step 6 / Step 6.5
|
|
142
|
+
以下模板用于 `build_single_task_prompt()` 函数,在 Step 6 / Step 6.5 / Step 8(重派发)创建 Teamee 时使用。
|
|
143
143
|
|
|
144
144
|
```markdown
|
|
145
145
|
# [角色名称] - 单一任务专用执行
|
|
@@ -184,36 +184,23 @@ TaskGet(taskId="{task_id}") — 验证 owner 是你、status 是 pending 或 in_
|
|
|
184
184
|
### 3. 完成任务
|
|
185
185
|
TaskUpdate(taskId="{task_id}", status="completed")
|
|
186
186
|
|
|
187
|
-
### 4.
|
|
187
|
+
### 4. 完成报告 (🔴 必须执行)
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
当收到 `shutdown_request` 消息时,**必须**发送响应:
|
|
189
|
+
TaskUpdate(completed) 后,用 SendMessage 向 Lead 发一条**纯文本**完成报告(含 summary),然后停止工作,等待 Lead 逻辑销毁:
|
|
192
190
|
|
|
193
191
|
```
|
|
194
192
|
SendMessage(
|
|
195
193
|
to="team-lead",
|
|
196
|
-
summary="
|
|
197
|
-
message={
|
|
198
|
-
"type": "shutdown_response",
|
|
199
|
-
"request_id": "{从 shutdown_request 中提取的 request_id}",
|
|
200
|
-
"approve": true
|
|
201
|
-
}
|
|
194
|
+
summary="Task {task_id} 完成,等待销毁",
|
|
195
|
+
message="任务 {task_id} 已完成。变更文件:...;验收标准:全部通过 / 未通过项:..."
|
|
202
196
|
)
|
|
203
197
|
```
|
|
204
198
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
**⚠️ SendMessage 使用注意**:
|
|
208
|
-
所有 SendMessage 调用都必须提供 `summary` 参数:
|
|
209
|
-
- 使用 object 类型 message:`summary="...", message={"type": "status_update", ...}`
|
|
210
|
-
- 使用 string message:`summary="...", message="..."`
|
|
211
|
-
- 禁止任何 SendMessage 调用不提供 summary
|
|
199
|
+
**⚠️ SendMessage 使用注意**: 只发纯文本 + summary;**禁止发送任何 protocol frame**(shutdown_request / shutdown_response / permission / mode / plan 的 JSON)——harness 会直接拦截报错。
|
|
212
200
|
|
|
213
201
|
**⚠️ 禁止事项**:
|
|
214
202
|
- 不要认领或执行其他任务(可以查看 TaskList 了解进度,但不可对其他任务执行 TaskUpdate)
|
|
215
|
-
-
|
|
216
|
-
- 必须等待 Lead 的 shutdown_request,不要主动退出
|
|
203
|
+
- 不要在完成后继续工作,也不要主动查找新任务;完成报告发出后即等待 Lead 逻辑销毁
|
|
217
204
|
|
|
218
205
|
## 相关经验(从历史中学习)
|
|
219
206
|
|
|
@@ -244,10 +231,10 @@ SendMessage(
|
|
|
244
231
|
⚠️ 如果不执行状态同步,工作包将被视为未完成!
|
|
245
232
|
|
|
246
233
|
## 重要提醒
|
|
247
|
-
- **你只处理一个任务** —
|
|
234
|
+
- **你只处理一个任务** — 完成报告后等待逻辑销毁,不要查找其他任务
|
|
248
235
|
- 完成后必须执行测试验证
|
|
249
236
|
- 如遇阻塞问题,在任务描述中说明阻塞原因
|
|
250
237
|
- 不要跳过任何验收标准
|
|
251
238
|
- 任务完成后立即更新状态为 completed,方便 Lead 检测并解锁依赖任务
|
|
252
|
-
-
|
|
239
|
+
- 完成报告发出后不要再做任何事,Lead 会逻辑销毁你
|
|
253
240
|
```
|