opencode-empirical-plan 0.3.7 → 0.3.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-empirical-plan",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "OpenCode lifecycle plugin for empirical plan orchestration.",
5
5
  "author": "chuck",
6
6
  "license": "MIT",
@@ -44,18 +44,23 @@ const REMINDER_TEXT = `## [Empirical Plan Reminder]
44
44
  skill(name="empirical-plan")
45
45
  \`\`\`
46
46
 
47
- **重要**:通过专职 Coordinator Sub-Session 运行生命周期,禁止在当前 session 内联执行:
47
+ **重要**:通过三个阻断性 task() 运行生命周期,禁止在当前 session 内联执行:
48
48
  \`\`\`
49
49
  // 1. 初始化生命周期
50
50
  lifecycle_start(run_dir="<绝对路径>/.opencode/plans/YYYYMMDD-<主题>")
51
51
 
52
- // 2. 启动 Coordinatorblocking)
53
- task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是生命周期 Coordinator...\\nrun_dir: <绝对路径>\\n目标:<描述>")
54
- \`\`\`
52
+ // 2. 创建三个 todoPLAN / EXECUTE / REFLECT),依序阻断执行:
53
+ // [TODO 1] Phase 1-3 PLAN
54
+ task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan PLAN 阶段执行者(Phase 1-3)。\\nrun_dir: <绝对路径>\\n目标:<描述>\\n完成后仅输出:PLAN COMPLETE")
55
+
56
+ // [TODO 2] Phase 4 EXECUTE(TODO 1 返回后)
57
+ task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan EXECUTE 阶段执行者(Phase 4)。\\nrun_dir: <绝对路径>\\n读 plan.md 执行,完成后调用 lifecycle_record_execution。")
55
58
 
56
- Coordinator 内为每个阶段(PLAN / EXECUTE / REFLECT)各自启动独立 task() 子 session。详见 empirical-plan skill。
59
+ // [TODO 3] Phase 5 REFLECT(TODO 2 返回后,强制,不可跳过)
60
+ task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan REFLECT 阶段执行者(Phase 5)。\\nrun_dir: <绝对路径>\\n读 plan.md 和 execution.md,与 Oracle 讨论,write reflect.md,调用 lifecycle_record_reflection。")
61
+ \`\`\`
57
62
 
58
- 如果你已经在 Coordinator 或其子 session 中,直接执行当前阶段的工作,不要再启动新的 Coordinator。
63
+ 如果你已经在某个阶段子 session 中,直接执行当前阶段工作,不要再嵌套启动新的生命周期。
59
64
 
60
65
  如果这只是一个澄清问题(非任务),或本 session 已加载过 empirical-plan,可跳过。`;
61
66