oh-my-opencode 4.18.2 → 4.19.1

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.
Files changed (307) hide show
  1. package/.agents/command/omomomo.md +1 -1
  2. package/.agents/skills/omomomo/SKILL.md +1 -1
  3. package/.opencode/command/omomomo.md +1 -1
  4. package/README.ja.md +6 -6
  5. package/README.ko.md +6 -6
  6. package/README.md +8 -8
  7. package/README.ru.md +6 -6
  8. package/README.zh-cn.md +6 -6
  9. package/dist/agents/atlas/agent.d.ts +7 -6
  10. package/dist/agents/gpt-prompt-identity.d.ts +3 -0
  11. package/dist/agents/sisyphus/gpt-5-5.d.ts +1 -1
  12. package/dist/agents/sisyphus/gpt-task-system-guide.d.ts +1 -0
  13. package/dist/agents/sisyphus/index.d.ts +5 -0
  14. package/dist/agents/sisyphus/kimi-k3.d.ts +19 -0
  15. package/dist/agents/sisyphus-agent-factory.d.ts +1 -1
  16. package/dist/agents/sisyphus-junior/agent.d.ts +8 -4
  17. package/dist/agents/sisyphus-junior/gpt-5-5.d.ts +2 -2
  18. package/dist/agents/sisyphus-junior/index.d.ts +2 -0
  19. package/dist/agents/sisyphus-junior/kimi-k3.d.ts +12 -0
  20. package/dist/agents/types.d.ts +2 -2
  21. package/dist/cli/index.js +781 -215
  22. package/dist/cli-node/index.js +781 -215
  23. package/dist/config/index.d.ts +1 -1
  24. package/dist/config/schema/agent-overrides.d.ts +48 -48
  25. package/dist/config/schema/browser-automation.d.ts +1 -0
  26. package/dist/config/schema/categories.d.ts +6 -6
  27. package/dist/config/schema/codegraph.d.ts +2 -0
  28. package/dist/config/schema/commands.d.ts +1 -3
  29. package/dist/config/schema/default-mode.d.ts +1 -1
  30. package/dist/config/schema/fallback-models.d.ts +5 -5
  31. package/dist/config/schema/goal.d.ts +7 -0
  32. package/dist/config/schema/hooks.d.ts +1 -1
  33. package/dist/config/schema/oh-my-opencode-config.d.ts +56 -58
  34. package/dist/config/schema/ralph-loop.d.ts +1 -1
  35. package/dist/config/schema.d.ts +1 -1
  36. package/dist/create-hooks.d.ts +1 -1
  37. package/dist/features/builtin-commands/templates/goal.d.ts +1 -0
  38. package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -1
  39. package/dist/features/builtin-commands/types.d.ts +1 -1
  40. package/dist/hooks/auto-slash-command/executor.d.ts +1 -0
  41. package/dist/hooks/codegraph-bootstrap/hook.d.ts +3 -2
  42. package/dist/hooks/goal/command-arguments.d.ts +13 -0
  43. package/dist/hooks/goal/controller.d.ts +26 -0
  44. package/dist/hooks/goal/index.d.ts +23 -0
  45. package/dist/hooks/goal/prompt.d.ts +3 -0
  46. package/dist/hooks/goal/store.d.ts +8 -0
  47. package/dist/hooks/goal/tools.d.ts +10 -0
  48. package/dist/hooks/goal/types.d.ts +93 -0
  49. package/dist/hooks/goal/validation.d.ts +4 -0
  50. package/dist/hooks/index.d.ts +1 -0
  51. package/dist/hooks/keyword-detector/hook.d.ts +1 -2
  52. package/dist/hooks/ralph-loop/types.d.ts +1 -1
  53. package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +1 -1
  54. package/dist/hooks/start-work/notepad-scaffold.d.ts +10 -0
  55. package/dist/index.js +5398 -5109
  56. package/dist/oh-my-opencode.schema.json +34 -19
  57. package/dist/plugin/chat-message/loop-commands.d.ts +1 -1
  58. package/dist/plugin/chat-message/types.d.ts +23 -10
  59. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -1
  60. package/dist/plugin/hooks/create-session-hooks.d.ts +3 -2
  61. package/dist/plugin/hooks/create-transform-hooks.d.ts +0 -2
  62. package/dist/plugin/stop-continuation.d.ts +2 -2
  63. package/dist/shared/omo-process-sweep.d.ts +18 -0
  64. package/dist/shared/system-directive.d.ts +0 -1
  65. package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +87 -0
  66. package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.ts +35 -5
  67. package/dist/skills/ulw-plan/SKILL.md +31 -8
  68. package/dist/skills/ulw-plan/references/full-workflow.md +117 -6
  69. package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +46 -10
  70. package/dist/skills/ulw-research/SKILL.md +3 -3
  71. package/dist/testing/create-plugin-module.d.ts +1 -0
  72. package/dist/tools/delegate-task/types.d.ts +0 -1
  73. package/dist/tui.js +138 -80
  74. package/package.json +14 -14
  75. package/packages/git-bash-mcp/dist/cli.js +54 -8
  76. package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +60 -0
  77. package/packages/lsp-core/src/lsp/client.ts +14 -1
  78. package/packages/lsp-core/src/lsp/fixtures/diagnostics-freshness-contract-probe.ts +2 -2
  79. package/packages/lsp-core/src/mcp.ts +9 -0
  80. package/packages/lsp-daemon/dist/cli.js +319 -51
  81. package/packages/lsp-daemon/dist/client.js +136 -48
  82. package/packages/lsp-daemon/dist/daemon-client.d.ts +0 -10
  83. package/packages/lsp-daemon/dist/daemon-client.js +4 -34
  84. package/packages/lsp-daemon/dist/daemon-failure-result.d.ts +3 -0
  85. package/packages/lsp-daemon/dist/daemon-failure-result.js +38 -0
  86. package/packages/lsp-daemon/dist/daemon-request-error.d.ts +14 -0
  87. package/packages/lsp-daemon/dist/daemon-request-error.js +26 -0
  88. package/packages/lsp-daemon/dist/daemon-server.js +5 -1
  89. package/packages/lsp-daemon/dist/index.js +137 -48
  90. package/packages/lsp-daemon/dist/proxy.d.ts +2 -0
  91. package/packages/lsp-daemon/dist/proxy.js +1 -0
  92. package/packages/lsp-daemon/dist/version-reap.d.ts +26 -0
  93. package/packages/lsp-daemon/dist/version-reap.js +182 -0
  94. package/packages/lsp-tools-mcp/dist/cli.js +61 -10
  95. package/packages/lsp-tools-mcp/dist/lsp/manager.js +6 -1
  96. package/packages/lsp-tools-mcp/dist/mcp.js +61 -10
  97. package/packages/lsp-tools-mcp/dist/tools.js +6 -1
  98. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  99. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +416 -25
  100. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  101. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  102. package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +22 -2
  103. package/packages/omo-codex/plugin/components/codegraph/AGENTS.md +7 -6
  104. package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +638 -267
  105. package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +178 -89
  106. package/packages/omo-codex/plugin/components/codegraph/package.json +2 -2
  107. package/packages/omo-codex/plugin/components/codegraph/src/hook-types.ts +3 -1
  108. package/packages/omo-codex/plugin/components/codegraph/src/hook.ts +3 -1
  109. package/packages/omo-codex/plugin/components/codegraph/src/mcp-bridge.ts +98 -32
  110. package/packages/omo-codex/plugin/components/codegraph/src/mcp-unavailable.ts +5 -0
  111. package/packages/omo-codex/plugin/components/codegraph/src/serve.ts +15 -6
  112. package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker.ts +6 -2
  113. package/packages/omo-codex/plugin/components/codegraph/src/sweep-cli.ts +1 -0
  114. package/packages/omo-codex/plugin/components/codegraph/test/hook-exclusion.test.ts +1 -1
  115. package/packages/omo-codex/plugin/components/codegraph/test/hook-store-upgrade.test.ts +148 -0
  116. package/packages/omo-codex/plugin/components/codegraph/test/mcp-bridge-fixtures.ts +31 -2
  117. package/packages/omo-codex/plugin/components/codegraph/test/package-runtime.test.ts +1 -1
  118. package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-bridge-lifecycle.test.ts +65 -1
  119. package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-bridge.test.ts +3 -7
  120. package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-facade.test.ts +1 -1
  121. package/packages/omo-codex/plugin/components/codegraph/test/serve-provision.test.ts +57 -3
  122. package/packages/omo-codex/plugin/components/codegraph/test/serve-unavailable.test.ts +41 -0
  123. package/packages/omo-codex/plugin/components/codegraph/test/serve.test.ts +109 -8
  124. package/packages/omo-codex/plugin/components/codegraph/test/session-start-node-support.test.ts +2 -2
  125. package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-flow.test.ts +43 -0
  126. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  127. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  128. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  129. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  130. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  131. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  132. package/packages/omo-codex/plugin/components/lsp/AGENTS.md +1 -0
  133. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
  134. package/packages/omo-codex/plugin/components/lsp/dist/cli.js +80 -40
  135. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  136. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  137. package/packages/omo-codex/plugin/components/rules/dist/cli.js +11 -0
  138. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  139. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  140. package/packages/omo-codex/plugin/components/rules/src/post-compact-budget.ts +11 -0
  141. package/packages/omo-codex/plugin/components/rules/test/post-compact-budget.test.ts +60 -0
  142. package/packages/omo-codex/plugin/components/start-work-continuation/AGENTS.md +8 -0
  143. package/packages/omo-codex/plugin/components/start-work-continuation/dist/cli.js +147 -60
  144. package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
  145. package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
  146. package/packages/omo-codex/plugin/components/start-work-continuation/src/boulder-reader.ts +3 -71
  147. package/packages/omo-codex/plugin/components/start-work-continuation/src/plan-checklist.ts +171 -0
  148. package/packages/omo-codex/plugin/components/start-work-continuation/test/boulder-reader.test.ts +198 -23
  149. package/packages/omo-codex/plugin/components/start-work-continuation/test/cli.test.ts +4 -3
  150. package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +6 -5
  151. package/packages/omo-codex/plugin/components/start-work-continuation/test/fixtures/plan-scaffold.md +15 -0
  152. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  153. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  154. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  155. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  156. package/packages/omo-codex/plugin/components/ultrawork/AGENTS.md +10 -10
  157. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-clone-fidelity-reviewer.toml +2 -2
  158. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-code-reviewer.toml +2 -2
  159. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-gate-reviewer.toml +1 -1
  160. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-high.toml +1 -1
  161. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-medium.toml +2 -2
  162. package/packages/omo-codex/plugin/components/ultrawork/agents/momus.toml +3 -3
  163. package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +1 -1
  164. package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +1 -1
  165. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  166. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  167. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +31 -8
  168. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +117 -6
  169. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/scripts/scaffold-plan.mjs +46 -10
  170. package/packages/omo-codex/plugin/components/ultrawork/src/codex-hook.ts +1 -1
  171. package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-trigger-policy.test.ts +42 -0
  172. package/packages/omo-codex/plugin/components/ulw-loop/README.md +6 -4
  173. package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint-continuation.d.ts +21 -0
  174. package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint-continuation.js +64 -0
  175. package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint.js +15 -2
  176. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-arg-parser.js +1 -1
  177. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-commands.js +2 -1
  178. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.d.ts +1 -1
  179. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.js +3 -3
  180. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-steering.d.ts +3 -0
  181. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-steering.js +85 -0
  182. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.d.ts +0 -1
  183. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.js +13 -33
  184. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +998 -593
  185. package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-instruction.js +1 -0
  186. package/packages/omo-codex/plugin/components/ulw-loop/dist/constants.d.ts +1 -1
  187. package/packages/omo-codex/plugin/components/ulw-loop/dist/constants.js +2 -0
  188. package/packages/omo-codex/plugin/components/ulw-loop/dist/domain-types.d.ts +6 -0
  189. package/packages/omo-codex/plugin/components/ulw-loop/dist/goal-status.d.ts +1 -0
  190. package/packages/omo-codex/plugin/components/ulw-loop/dist/goal-status.js +3 -0
  191. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.d.ts +1 -0
  192. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.js +4 -0
  193. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-io.d.ts +1 -0
  194. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-io.js +10 -2
  195. package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-verdicts.js +1 -1
  196. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering-batch.d.ts +15 -0
  197. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering-batch.js +84 -0
  198. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering-mutations.d.ts +5 -0
  199. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering-mutations.js +81 -0
  200. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering.js +7 -59
  201. package/packages/omo-codex/plugin/components/ulw-loop/dist/stop-resume-hook.js +12 -4
  202. package/packages/omo-codex/plugin/components/ulw-loop/dist/validation-batch.d.ts +9 -0
  203. package/packages/omo-codex/plugin/components/ulw-loop/dist/validation-batch.js +122 -0
  204. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
  205. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  206. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +8 -6
  207. package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint-continuation.ts +84 -0
  208. package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint.ts +13 -2
  209. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-arg-parser.ts +1 -1
  210. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-commands.ts +1 -1
  211. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-output.ts +3 -3
  212. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-steering.ts +49 -0
  213. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-subcommands.ts +13 -45
  214. package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-instruction.ts +1 -0
  215. package/packages/omo-codex/plugin/components/ulw-loop/src/constants.ts +2 -0
  216. package/packages/omo-codex/plugin/components/ulw-loop/src/domain-types.ts +7 -0
  217. package/packages/omo-codex/plugin/components/ulw-loop/src/goal-status.ts +4 -0
  218. package/packages/omo-codex/plugin/components/ulw-loop/src/plan-crud.ts +4 -1
  219. package/packages/omo-codex/plugin/components/ulw-loop/src/plan-io.ts +20 -2
  220. package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate-verdicts.ts +1 -1
  221. package/packages/omo-codex/plugin/components/ulw-loop/src/steering-batch.ts +125 -0
  222. package/packages/omo-codex/plugin/components/ulw-loop/src/steering-mutations.ts +59 -0
  223. package/packages/omo-codex/plugin/components/ulw-loop/src/steering.ts +6 -58
  224. package/packages/omo-codex/plugin/components/ulw-loop/src/stop-resume-hook.ts +12 -4
  225. package/packages/omo-codex/plugin/components/ulw-loop/src/validation-batch.ts +122 -0
  226. package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint-continuation.test.ts +76 -0
  227. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-checkpoint-continuation.test.ts +111 -0
  228. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-steering-batch.test.ts +67 -0
  229. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-validation-batch.test.ts +57 -0
  230. package/packages/omo-codex/plugin/components/ulw-loop/test/paths.test.ts +1 -0
  231. package/packages/omo-codex/plugin/components/ulw-loop/test/steering-batch.test.ts +152 -0
  232. package/packages/omo-codex/plugin/components/ulw-loop/test/stop-resume-hook.test.ts +29 -0
  233. package/packages/omo-codex/plugin/components/ulw-loop/test/validation-batch-checkpoint.test.ts +147 -0
  234. package/packages/omo-codex/plugin/components/ulw-loop/test/validation-batch.test.ts +73 -0
  235. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  236. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  237. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  238. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
  239. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  240. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  241. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  242. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  243. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  244. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  245. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  246. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +2 -2
  247. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  248. package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +2 -2
  249. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  250. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +2 -2
  251. package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
  252. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  253. package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
  254. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  255. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  256. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  257. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  258. package/packages/omo-codex/plugin/package-lock.json +41 -41
  259. package/packages/omo-codex/plugin/package.json +1 -1
  260. package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-v2-guard.mjs +32 -28
  261. package/packages/omo-codex/plugin/scripts/migrate-codex-config/subagent-limit-guard.mjs +17 -45
  262. package/packages/omo-codex/plugin/scripts/migrate-codex-config/toml-section-editor.mjs +455 -0
  263. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +3 -18
  264. package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +43 -0
  265. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-no-excuse-rules.ts +35 -5
  266. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +8 -6
  267. package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +31 -8
  268. package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +117 -6
  269. package/packages/omo-codex/plugin/skills/ulw-plan/scripts/scaffold-plan.mjs +46 -10
  270. package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +11 -11
  271. package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +26 -0
  272. package/packages/omo-codex/plugin/test/bootstrap-setup.test.mjs +41 -0
  273. package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +2 -2
  274. package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +6 -6
  275. package/packages/omo-codex/plugin/test/multi-agent-v2-regression.test.mjs +3 -3
  276. package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +62 -0
  277. package/packages/omo-codex/plugin/test/subagent-limit-migration.test.mjs +271 -14
  278. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +3 -18
  279. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +0 -5
  280. package/packages/omo-codex/plugin/test/ulw-plan-review-state-contract.test.mjs +293 -0
  281. package/packages/omo-codex/scripts/install-config.test.mjs +10 -10
  282. package/packages/omo-codex/scripts/install-dist/install-local.mjs +401 -22
  283. package/packages/omo-codex/scripts/install-generated-bundle.test.mjs +39 -2
  284. package/packages/omo-codex/scripts/install-marketplace-cache.test.mjs +4 -1
  285. package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +87 -0
  286. package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.ts +35 -5
  287. package/packages/shared-skills/skills/ulw-plan/SKILL.md +31 -8
  288. package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +117 -6
  289. package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +46 -10
  290. package/packages/shared-skills/skills/ulw-research/SKILL.md +3 -3
  291. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +0 -3
  292. package/dist/skills/ultraresearch/SKILL.md +0 -10
  293. package/packages/shared-skills/skills/lcx-contribute-bug-fix/SKILL.md +0 -273
  294. package/packages/shared-skills/skills/lcx-contribute-bug-fix/agents/openai.yaml +0 -12
  295. package/packages/shared-skills/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +0 -107
  296. package/packages/shared-skills/skills/lcx-doctor/SKILL.md +0 -128
  297. package/packages/shared-skills/skills/lcx-doctor/agents/openai.yaml +0 -11
  298. package/packages/shared-skills/skills/lcx-report-bug/SKILL.md +0 -268
  299. package/packages/shared-skills/skills/lcx-report-bug/agents/openai.yaml +0 -11
  300. package/packages/shared-skills/skills/ultraresearch/SKILL.md +0 -10
  301. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-contribute-bug-fix/SKILL.md +0 -0
  302. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-contribute-bug-fix/agents/openai.yaml +0 -0
  303. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +0 -0
  304. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-doctor/SKILL.md +0 -0
  305. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-doctor/agents/openai.yaml +0 -0
  306. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-report-bug/SKILL.md +0 -0
  307. /package/{dist → packages/omo-codex/plugin/components/lcx}/skills/lcx-report-bug/agents/openai.yaml +0 -0
@@ -0,0 +1,171 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+
3
+ export type PlanChecklist = {
4
+ readonly completed: number;
5
+ readonly remaining: number;
6
+ readonly total: number;
7
+ readonly nextTaskLabel: string | null;
8
+ };
9
+
10
+ const TODO_HEADING_PATTERN = /^##[ \t]+TODOs(?:[ \t]+#+)?[ \t]*$/i;
11
+ const FINAL_VERIFICATION_HEADING_PATTERN = /^##[ \t]+Final Verification Wave(?:[ \t]+#+)?[ \t]*$/i;
12
+ const SECTION_BOUNDARY_HEADING_PATTERN = /^#{1,2}(?:[ \t]+|$)/;
13
+ const FENCE_PATTERN = /^[ \t]{0,3}(`{3,}|~{3,})(.*)$/;
14
+ const SIMPLE_CHECKBOX_PATTERN = /^[-*][ \t]*\[[ \t]*([xX]?)[ \t]*\][ \t]+(.+)$/;
15
+ const TODO_CHECKBOX_PATTERN = /^- \[([ xX])\] ([1-9]\d*\. .+)$/;
16
+ const FINAL_WAVE_CHECKBOX_PATTERN = /^- \[([ xX])\] (F[1-9]\d*\. .+)$/i;
17
+
18
+ type ChecklistSection = "todo" | "final-wave" | "other";
19
+
20
+ type ParsedCheckbox = {
21
+ readonly checked: boolean;
22
+ readonly label: string;
23
+ };
24
+
25
+ type MarkdownFence = {
26
+ readonly marker: "`" | "~";
27
+ readonly length: number;
28
+ };
29
+
30
+ export function getPlanChecklist(planPath: string): PlanChecklist {
31
+ if (!existsSync(planPath)) return emptyChecklist();
32
+
33
+ try {
34
+ return parsePlanChecklist(readFileSync(planPath, "utf8"));
35
+ } catch (error) {
36
+ if (error instanceof Error) return emptyChecklist();
37
+ throw error;
38
+ }
39
+ }
40
+
41
+ export function parsePlanChecklist(markdown: string): PlanChecklist {
42
+ const lines = markdown.split(/\r?\n/);
43
+ if (!hasStructuredSection(lines)) return parseSimpleChecklist(lines);
44
+
45
+ let completed = 0;
46
+ let remaining = 0;
47
+ let nextTaskLabel: string | null = null;
48
+ let section: ChecklistSection = "other";
49
+ let fence: MarkdownFence | null = null;
50
+
51
+ for (const line of lines) {
52
+ if (fence !== null) {
53
+ if (isClosingFence(line, fence)) fence = null;
54
+ continue;
55
+ }
56
+ const openingFence = parseOpeningFence(line);
57
+ if (openingFence !== null) {
58
+ fence = openingFence;
59
+ continue;
60
+ }
61
+
62
+ if (SECTION_BOUNDARY_HEADING_PATTERN.test(line)) {
63
+ section = parseStructuredSectionHeading(line);
64
+ continue;
65
+ }
66
+ if (section === "other") continue;
67
+
68
+ const checkbox = parseStructuredCheckbox(line, section);
69
+ if (checkbox === null) continue;
70
+ if (checkbox.checked) completed += 1;
71
+ else {
72
+ remaining += 1;
73
+ nextTaskLabel = nextTaskLabel ?? checkbox.label;
74
+ }
75
+ }
76
+
77
+ return { completed, remaining, total: completed + remaining, nextTaskLabel };
78
+ }
79
+
80
+ function hasStructuredSection(lines: readonly string[]): boolean {
81
+ let fence: MarkdownFence | null = null;
82
+ for (const line of lines) {
83
+ if (fence !== null) {
84
+ if (isClosingFence(line, fence)) fence = null;
85
+ continue;
86
+ }
87
+ const openingFence = parseOpeningFence(line);
88
+ if (openingFence !== null) {
89
+ fence = openingFence;
90
+ continue;
91
+ }
92
+ if (parseStructuredSectionHeading(line) !== "other") return true;
93
+ }
94
+ return false;
95
+ }
96
+
97
+ function parseSimpleChecklist(lines: readonly string[]): PlanChecklist {
98
+ let completed = 0;
99
+ let remaining = 0;
100
+ let nextTaskLabel: string | null = null;
101
+ let fence: MarkdownFence | null = null;
102
+
103
+ for (const line of lines) {
104
+ if (fence !== null) {
105
+ if (isClosingFence(line, fence)) fence = null;
106
+ continue;
107
+ }
108
+ const openingFence = parseOpeningFence(line);
109
+ if (openingFence !== null) {
110
+ fence = openingFence;
111
+ continue;
112
+ }
113
+
114
+ const checkbox = parseSimpleTopLevelCheckbox(line);
115
+ if (checkbox === null) continue;
116
+ if (checkbox.checked) completed += 1;
117
+ else {
118
+ remaining += 1;
119
+ nextTaskLabel = nextTaskLabel ?? checkbox.label;
120
+ }
121
+ }
122
+
123
+ return { completed, remaining, total: completed + remaining, nextTaskLabel };
124
+ }
125
+
126
+ function parseStructuredSectionHeading(line: string): ChecklistSection {
127
+ if (TODO_HEADING_PATTERN.test(line)) return "todo";
128
+ if (FINAL_VERIFICATION_HEADING_PATTERN.test(line)) return "final-wave";
129
+ return "other";
130
+ }
131
+
132
+ function parseStructuredCheckbox(line: string, section: "todo" | "final-wave"): ParsedCheckbox | null {
133
+ const pattern = section === "todo" ? TODO_CHECKBOX_PATTERN : FINAL_WAVE_CHECKBOX_PATTERN;
134
+ const match = line.match(pattern);
135
+ const marker = match?.[1];
136
+ const label = match?.[2];
137
+ if (marker === undefined || label === undefined) return null;
138
+ return { checked: marker.toLowerCase() === "x", label };
139
+ }
140
+
141
+ function parseSimpleTopLevelCheckbox(line: string): ParsedCheckbox | null {
142
+ const match = line.match(SIMPLE_CHECKBOX_PATTERN);
143
+ const marker = match?.[1];
144
+ const label = match?.[2];
145
+ if (marker === undefined || label === undefined) return null;
146
+ return { checked: marker.toLowerCase() === "x", label };
147
+ }
148
+
149
+ function parseOpeningFence(line: string): MarkdownFence | null {
150
+ const match = line.match(FENCE_PATTERN);
151
+ const run = match?.[1];
152
+ const info = match?.[2];
153
+ const marker = run?.charAt(0);
154
+ if (
155
+ run === undefined ||
156
+ info === undefined ||
157
+ (marker !== "`" && marker !== "~") ||
158
+ (marker === "`" && info.includes("`"))
159
+ )
160
+ return null;
161
+ return { marker, length: run.length };
162
+ }
163
+
164
+ function isClosingFence(line: string, fence: MarkdownFence): boolean {
165
+ const run = line.match(/^[ \t]{0,3}(`{3,}|~{3,})[ \t]*$/)?.[1];
166
+ return run?.charAt(0) === fence.marker && run.length >= fence.length;
167
+ }
168
+
169
+ function emptyChecklist(): PlanChecklist {
170
+ return { completed: 0, remaining: 0, total: 0, nextTaskLabel: null };
171
+ }
@@ -1,40 +1,44 @@
1
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
1
+ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { tmpdir } from "node:os";
3
3
  import { join } from "node:path";
4
4
  import { afterEach, describe, expect, it } from "vitest";
5
5
  import { getPlanChecklist, readContinuationState } from "../src/boulder-reader.js";
6
6
 
7
7
  const cleanupRoots: string[] = [];
8
+ const SCAFFOLD_PLAN_MARKDOWN = readFileSync(new URL("./fixtures/plan-scaffold.md", import.meta.url), "utf8");
8
9
 
9
10
  afterEach(() => {
10
11
  for (const root of cleanupRoots.splice(0)) rmSync(root, { recursive: true, force: true });
11
12
  });
12
13
 
13
14
  describe("start-work plan checklist consumption", () => {
14
- it("#given top-level completed and incomplete checkboxes #when parsed #then counts remaining and total", () => {
15
+ it("#given scaffold headings and canonical numbered rows #when parsed #then structured totals and next label match", () => {
15
16
  // given
16
- const planPath = createPlan(
17
- ["# Plan", "", "## TODOs", "- [ ] First", "- [x] Done", "- [X] Also done", "- [ ] Second"].join("\n"),
18
- );
17
+ const planPath = createPlan(SCAFFOLD_PLAN_MARKDOWN);
19
18
 
20
19
  // when
21
20
  const checklist = getPlanChecklist(planPath);
22
21
 
23
22
  // then
24
- expect(checklist).toEqual({ completed: 2, remaining: 2, total: 4, nextTaskLabel: "First" });
23
+ expect(checklist).toEqual({
24
+ completed: 2,
25
+ remaining: 2,
26
+ total: 4,
27
+ nextTaskLabel: "1. Implement checklist parser parity",
28
+ });
25
29
  });
26
30
 
27
31
  it("#given nested checkboxes #when parsed #then ignores non-column-zero items", () => {
28
32
  // given
29
33
  const planPath = createPlan(
30
- ["## TODOs", "- [ ] Top-level", " - [ ] Nested", "\t- [ ] Tab nested", "- [x] Complete"].join("\n"),
34
+ ["## TODOs", "- [ ] 1. Top-level", " - [ ] Nested", "\t- [ ] Tab nested", "- [x] 2. Complete"].join("\n"),
31
35
  );
32
36
 
33
37
  // when
34
38
  const checklist = getPlanChecklist(planPath);
35
39
 
36
40
  // then
37
- expect(checklist).toEqual({ completed: 1, remaining: 1, total: 2, nextTaskLabel: "Top-level" });
41
+ expect(checklist).toEqual({ completed: 1, remaining: 1, total: 2, nextTaskLabel: "1. Top-level" });
38
42
  });
39
43
 
40
44
  it("#given checkboxes outside counted sections #when parsed #then ignores unrelated top-level tasks", () => {
@@ -44,12 +48,12 @@ describe("start-work plan checklist consumption", () => {
44
48
  "# Plan",
45
49
  "- [ ] Preamble task",
46
50
  "## TODOs",
47
- "- [ ] Build hook",
51
+ "- [ ] 1. Build hook",
48
52
  "## Acceptance Criteria",
49
53
  "- [ ] Acceptance item",
50
54
  "## Final Verification Wave",
51
- "- [x] Run tests",
52
- "- [ ] Run smoke",
55
+ "- [x] F1. Run tests",
56
+ "- [ ] F2. Run smoke",
53
57
  ].join("\n"),
54
58
  );
55
59
 
@@ -57,18 +61,184 @@ describe("start-work plan checklist consumption", () => {
57
61
  const checklist = getPlanChecklist(planPath);
58
62
 
59
63
  // then
60
- expect(checklist).toEqual({ completed: 1, remaining: 2, total: 3, nextTaskLabel: "Build hook" });
64
+ expect(checklist).toEqual({ completed: 1, remaining: 2, total: 3, nextTaskLabel: "1. Build hook" });
61
65
  });
62
66
 
63
67
  it("#given all top-level tasks complete #when parsed #then next task is null", () => {
64
68
  // given
65
- const planPath = createPlan(["## TODOs", "- [x] First", "- [X] Second"].join("\n"));
69
+ const planPath = createPlan(
70
+ ["## Todos", "- [x] 1. First", "- [X] 2. Second", "## Final verification wave", "- [x] F1. Final"].join("\n"),
71
+ );
72
+
73
+ // when
74
+ const checklist = getPlanChecklist(planPath);
75
+
76
+ // then
77
+ expect(checklist).toEqual({ completed: 3, remaining: 0, total: 3, nextTaskLabel: null });
78
+ });
79
+
80
+ it("#given no structured headings #when parsed #then legacy top-level checkbox fallback remains", () => {
81
+ // given
82
+ const planPath = createPlan(["# Plan", "- [ ] First", "- [x] Done", " - [ ] Nested"].join("\n"));
83
+
84
+ // when
85
+ const checklist = getPlanChecklist(planPath);
86
+
87
+ // then
88
+ expect(checklist).toEqual({ completed: 1, remaining: 1, total: 2, nextTaskLabel: "First" });
89
+ });
90
+
91
+ it("#given a heading-free legacy star checklist #when parsed #then fallback behavior is preserved", () => {
92
+ // given
93
+ const planPath = createPlan(["# Plan", "* [ ] First", "* [x] Done", " * [ ] Nested"].join("\n"));
94
+
95
+ // when
96
+ const checklist = getPlanChecklist(planPath);
97
+
98
+ // then
99
+ expect(checklist).toEqual({ completed: 1, remaining: 1, total: 2, nextTaskLabel: "First" });
100
+ });
101
+
102
+ it("#given noncanonical structured rows #when parsed #then only exact positive-number grammar is counted", () => {
103
+ // given
104
+ const planPath = createPlan(
105
+ [
106
+ "## Todos",
107
+ "- [ ] 0. Zero is invalid",
108
+ "- [ ] 01. Leading zero is invalid",
109
+ "* [ ] 2. Star marker is invalid",
110
+ "-[ ] 3. Missing spaces are invalid",
111
+ "- [ ] 4. Canonical implementation",
112
+ "## Final verification wave",
113
+ "- [ ] F0. Zero final verifier is invalid",
114
+ "- [ ] F01. Leading zero final verifier is invalid",
115
+ "- [x] F2. Canonical final verifier",
116
+ ].join("\n"),
117
+ );
118
+
119
+ // when
120
+ const checklist = getPlanChecklist(planPath);
121
+
122
+ // then
123
+ expect(checklist).toEqual({
124
+ completed: 1,
125
+ remaining: 1,
126
+ total: 2,
127
+ nextTaskLabel: "4. Canonical implementation",
128
+ });
129
+ });
130
+
131
+ it("#given fenced examples and a higher-level heading #when parsed #then section scope excludes them", () => {
132
+ // given
133
+ const planPath = createPlan(
134
+ [
135
+ "## Todos",
136
+ "- [ ] 1. Counted implementation",
137
+ "```md",
138
+ "- [ ] 2. Fenced example",
139
+ "```",
140
+ "# Appendix",
141
+ "- [ ] 3. Appendix checkbox",
142
+ "## Final verification wave",
143
+ "- [x] F1. Counted verifier",
144
+ ].join("\n"),
145
+ );
146
+
147
+ // when
148
+ const checklist = getPlanChecklist(planPath);
149
+
150
+ // then
151
+ expect(checklist).toEqual({
152
+ completed: 1,
153
+ remaining: 1,
154
+ total: 2,
155
+ nextTaskLabel: "1. Counted implementation",
156
+ });
157
+ });
158
+
159
+ it("#given a child heading inside TODOs #when parsed #then canonical rows remain in the parent section", () => {
160
+ // given
161
+ const planPath = createPlan(["## TODOs", "- [x] 1. First task", "### Notes", "- [ ] 2. Second task"].join("\n"));
162
+
163
+ // when
164
+ const checklist = getPlanChecklist(planPath);
165
+
166
+ // then
167
+ expect(checklist).toEqual({ completed: 1, remaining: 1, total: 2, nextTaskLabel: "2. Second task" });
168
+ });
169
+
170
+ it("#given a four-backtick fence containing triple-backtick examples #when parsed #then shorter fences do not close it", () => {
171
+ // given
172
+ const planPath = createPlan(
173
+ [
174
+ "## Todos",
175
+ "- [x] 1. Counted implementation",
176
+ "````md",
177
+ "```ts",
178
+ "- [ ] 2. Fenced example",
179
+ "```",
180
+ "````",
181
+ "## Final verification wave",
182
+ "- [ ] F1. Counted verifier",
183
+ ].join("\n"),
184
+ );
185
+
186
+ // when
187
+ const checklist = getPlanChecklist(planPath);
188
+
189
+ // then
190
+ expect(checklist).toEqual({
191
+ completed: 1,
192
+ remaining: 1,
193
+ total: 2,
194
+ nextTaskLabel: "F1. Counted verifier",
195
+ });
196
+ });
197
+
198
+ it("#given structured headings with ATX closing markers #when parsed #then canonical tasks remain structured", () => {
199
+ // given
200
+ const planPath = createPlan(
201
+ ["## TODOs ##", "- [ ] 1. Implement", "## Final Verification Wave ###", "- [ ] F1. Verify"].join("\n"),
202
+ );
203
+
204
+ // when
205
+ const checklist = getPlanChecklist(planPath);
206
+
207
+ // then
208
+ expect(checklist).toEqual({
209
+ completed: 0,
210
+ remaining: 2,
211
+ total: 2,
212
+ nextTaskLabel: "1. Implement",
213
+ });
214
+ });
215
+
216
+ it("#given inline backtick code before a canonical task #when parsed #then it does not open a fence", () => {
217
+ // given
218
+ const planPath = createPlan(["## TODOs", "```example```", "- [ ] 1. Implement"].join("\n"));
219
+
220
+ // when
221
+ const checklist = getPlanChecklist(planPath);
222
+
223
+ // then
224
+ expect(checklist.total).toBe(1);
225
+ expect(checklist.nextTaskLabel).toBe("1. Implement");
226
+ });
227
+
228
+ it("#given a heading-free fenced checkbox example #when parsed #then legacy fallback ignores it", () => {
229
+ // given
230
+ const planPath = createPlan(["````md", "- [ ] 1. Example only", "````"].join("\n"));
66
231
 
67
232
  // when
68
233
  const checklist = getPlanChecklist(planPath);
69
234
 
70
235
  // then
71
- expect(checklist).toEqual({ completed: 2, remaining: 0, total: 2, nextTaskLabel: null });
236
+ expect(checklist).toEqual({
237
+ completed: 0,
238
+ remaining: 0,
239
+ total: 0,
240
+ nextTaskLabel: null,
241
+ });
72
242
  });
73
243
  });
74
244
 
@@ -77,7 +247,7 @@ describe("start-work boulder state reader", () => {
77
247
  // given
78
248
  const workspace = createWorkspace({
79
249
  boulderJson: createBoulderJson({ status: "active", sessionIds: ["codex:sess_abc"] }),
80
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n- [x] Done\n- [ ] Second\n",
250
+ planMarkdown: SCAFFOLD_PLAN_MARKDOWN,
81
251
  });
82
252
 
83
253
  // when
@@ -90,7 +260,12 @@ describe("start-work boulder state reader", () => {
90
260
  boulderPath: join(workspace, ".omo", "boulder.json"),
91
261
  ledgerPath: join(workspace, ".omo", "start-work", "ledger.jsonl"),
92
262
  worktreePath: null,
93
- checklist: { completed: 1, remaining: 2, total: 3, nextTaskLabel: "First" },
263
+ checklist: {
264
+ completed: 2,
265
+ remaining: 2,
266
+ total: 4,
267
+ nextTaskLabel: "1. Implement checklist parser parity",
268
+ },
94
269
  });
95
270
  });
96
271
 
@@ -98,7 +273,7 @@ describe("start-work boulder state reader", () => {
98
273
  // given
99
274
  const workspace = createWorkspace({
100
275
  boulderJson: createBoulderJson({ status: "completed", sessionIds: ["codex:sess_abc"] }),
101
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n",
276
+ planMarkdown: "# Plan\n\n## TODOs\n- [ ] 1. First\n",
102
277
  });
103
278
 
104
279
  // when
@@ -112,7 +287,7 @@ describe("start-work boulder state reader", () => {
112
287
  // given
113
288
  const workspace = createWorkspace({
114
289
  boulderJson: createBoulderJson({ status: "paused", sessionIds: ["codex:sess_abc"] }),
115
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n",
290
+ planMarkdown: "# Plan\n\n## TODOs\n- [ ] 1. First\n",
116
291
  });
117
292
 
118
293
  // when
@@ -120,14 +295,14 @@ describe("start-work boulder state reader", () => {
120
295
 
121
296
  // then
122
297
  expect(state?.planName).toBe("launch-plan");
123
- expect(state?.checklist).toEqual({ completed: 0, remaining: 1, total: 1, nextTaskLabel: "First" });
298
+ expect(state?.checklist).toEqual({ completed: 0, remaining: 1, total: 1, nextTaskLabel: "1. First" });
124
299
  });
125
300
 
126
301
  it("#given active codex work with no remaining checklist items #when state is read #then final gate continuation remains present", () => {
127
302
  // given
128
303
  const workspace = createWorkspace({
129
304
  boulderJson: createBoulderJson({ status: "active", sessionIds: ["codex:sess_abc"] }),
130
- planMarkdown: "# Plan\n\n## TODOs\n- [x] First\n",
305
+ planMarkdown: "# Plan\n\n## TODOs\n- [x] 1. First\n",
131
306
  });
132
307
 
133
308
  // when
@@ -155,7 +330,7 @@ describe("start-work boulder state reader", () => {
155
330
  // given
156
331
  const workspace = createWorkspace({
157
332
  boulderJson: "{",
158
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n",
333
+ planMarkdown: "# Plan\n\n## TODOs\n- [ ] 1. First\n",
159
334
  });
160
335
 
161
336
  // when
@@ -169,7 +344,7 @@ describe("start-work boulder state reader", () => {
169
344
  // given
170
345
  const workspace = createWorkspace({
171
346
  boulderJson: createBoulderJson({ status: "active", sessionIds: ["sess_abc"] }),
172
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n",
347
+ planMarkdown: "# Plan\n\n## TODOs\n- [ ] 1. First\n",
173
348
  });
174
349
 
175
350
  // when
@@ -201,7 +376,7 @@ describe("start-work boulder state reader", () => {
201
376
  started_at: "2026-06-12T00:00:00.000Z",
202
377
  session_ids: ["codex:sess_abc"],
203
378
  }),
204
- planMarkdown: "# Plan\n\n## TODOs\n- [ ] First\n",
379
+ planMarkdown: "# Plan\n\n## TODOs\n- [ ] 1. First\n",
205
380
  });
206
381
 
207
382
  // when
@@ -6,6 +6,7 @@ import { execPath } from "node:process";
6
6
  import { afterEach, describe, expect, it } from "vitest";
7
7
 
8
8
  const cleanupRoots: string[] = [];
9
+ const SCAFFOLD_PLAN_MARKDOWN = readFileSync(new URL("./fixtures/plan-scaffold.md", import.meta.url), "utf8");
9
10
 
10
11
  afterEach(() => {
11
12
  for (const root of cleanupRoots.splice(0)) rmSync(root, { recursive: true, force: true });
@@ -25,8 +26,8 @@ describe("start-work continuation CLI", () => {
25
26
  expect(result.status).toBe(0);
26
27
  const output = parseStopHookOutput(result.stdout);
27
28
  expect(output.decision).toBe("block");
28
- expect(output.reason).toContain("Remaining top-level checkboxes: `2` of `3`");
29
- expect(output.reason).toContain("Next incomplete task: `Task one`");
29
+ expect(output.reason).toContain("Remaining top-level checkboxes: `2` of `4`");
30
+ expect(output.reason).toContain("Next incomplete task: `1. Implement checklist parser parity`");
30
31
  expect(output.reason).toContain("Your session id in boulder.json: `codex:s1`");
31
32
  });
32
33
 
@@ -106,7 +107,7 @@ function createWorkspace(sessionIds: readonly string[]): string {
106
107
  const root = mkdtempSync(join(tmpdir(), "codex-continuation-cli-"));
107
108
  cleanupRoots.push(root);
108
109
  mkdirSync(join(root, ".omo", "plans"), { recursive: true });
109
- writeFileSync(join(root, ".omo", "plans", "plan.md"), "## TODOs\n\n- [ ] Task one\n- [x] Done\n- [ ] Task two\n");
110
+ writeFileSync(join(root, ".omo", "plans", "plan.md"), SCAFFOLD_PLAN_MARKDOWN);
110
111
  const work = {
111
112
  work_id: "w1",
112
113
  active_plan: ".omo/plans/plan.md",
@@ -1,4 +1,4 @@
1
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
1
+ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { tmpdir } from "node:os";
3
3
  import { join } from "node:path";
4
4
  import { afterEach, describe, expect, it } from "vitest";
@@ -8,6 +8,7 @@ import type { ReadonlyFileSystem, StopInput } from "../src/types.js";
8
8
 
9
9
  const DEFAULT_WORKSPACE = "/repo";
10
10
  const cleanupRoots: string[] = [];
11
+ const SCAFFOLD_PLAN_MARKDOWN = readFileSync(new URL("./fixtures/plan-scaffold.md", import.meta.url), "utf8");
11
12
 
12
13
  afterEach(() => {
13
14
  for (const root of cleanupRoots.splice(0)) rmSync(root, { recursive: true, force: true });
@@ -49,7 +50,7 @@ describe("start-work Stop hook", () => {
49
50
  status: "active",
50
51
  worktreePath: "/tmp/worktree",
51
52
  }),
52
- planMarkdown: ["# Plan", "", "## TODOs", "- [ ] First", "- [x] Done", "- [ ] Second"].join("\n"),
53
+ planMarkdown: SCAFFOLD_PLAN_MARKDOWN,
53
54
  });
54
55
  const fs = createMemoryFs();
55
56
 
@@ -62,8 +63,8 @@ describe("start-work Stop hook", () => {
62
63
  expect(parsed.reason).toContain("- Plan: `launch-plan`");
63
64
  expect(parsed.reason).toContain(`- Plan file: \`${join(workspace, ".omo", "plans", "plan.md")}\``);
64
65
  expect(parsed.reason).toContain(`- Boulder state: \`${join(workspace, ".omo", "boulder.json")}\``);
65
- expect(parsed.reason).toContain("- Remaining top-level checkboxes: `2` of `3`");
66
- expect(parsed.reason).toContain("- Next incomplete task: `First`");
66
+ expect(parsed.reason).toContain("- Remaining top-level checkboxes: `2` of `4`");
67
+ expect(parsed.reason).toContain("- Next incomplete task: `1. Implement checklist parser parity`");
67
68
  expect(parsed.reason).toContain("- Worktree: `/tmp/worktree`");
68
69
  expect(parsed.reason).toContain(`- Ledger: \`${join(workspace, ".omo", "start-work", "ledger.jsonl")}\``);
69
70
  expect(parsed.reason).toContain("- Your session id in boulder.json: `codex:sess_abc`");
@@ -73,7 +74,7 @@ describe("start-work Stop hook", () => {
73
74
  // given
74
75
  const workspace = createWorkspace({
75
76
  boulderJson: createBoulderJson({ sessionIds: ["codex:sess_abc"], status: "active" }),
76
- planMarkdown: ["# Plan", "", "## TODOs", "- [x] Done"].join("\n"),
77
+ planMarkdown: ["# Plan", "", "## TODOs", "- [x] 1. Done"].join("\n"),
77
78
  });
78
79
  const fs = createMemoryFs();
79
80
 
@@ -0,0 +1,15 @@
1
+ # Scaffold Parser Parity
2
+
3
+ ## Todos
4
+ - [ ] 1. Implement checklist parser parity
5
+ - [ ] Nested acceptance detail
6
+ - [x] 2. Preserve completed implementation rows
7
+ - [ ] Missing numeric prefix must be ignored
8
+
9
+ ## Acceptance Criteria
10
+ - [ ] Outside tracked sections must be ignored
11
+
12
+ ## Final verification wave
13
+ - [ ] F1. Exercise the Codex Stop surface
14
+ - [X] F2. Preserve completed final verification rows
15
+ - [ ] 3. Wrong final-wave label must be ignored
@@ -8,7 +8,7 @@
8
8
  "type": "command",
9
9
  "command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook post-tool-use",
10
10
  "timeout": 10,
11
- "statusMessage": "(OmO 4.18.2) Checking Thread Title Hygiene"
11
+ "statusMessage": "(OmO 4.19.1) Checking Thread Title Hygiene"
12
12
  }
13
13
  ]
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sisyphuslabs/codex-teammode",
3
- "version": "4.18.2",
3
+ "version": "4.19.1",
4
4
  "description": "Codex team-mode hook component that keeps background thread titles descriptive after create_thread.",
5
5
  "type": "module",
6
6
  "private": true,
@@ -7,7 +7,7 @@
7
7
  "type": "command",
8
8
  "command": "node \"${PLUGIN_ROOT}/dist/cli.js\" hook session-start",
9
9
  "timeout": 5,
10
- "statusMessage": "(OmO 4.18.2) Recording Session Telemetry"
10
+ "statusMessage": "(OmO 4.19.1) Recording Session Telemetry"
11
11
  }
12
12
  ]
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-yeongyu/codex-telemetry",
3
- "version": "4.18.2",
3
+ "version": "4.19.1",
4
4
  "description": "Codex plugin component that emits omo-codex anonymous daily-active telemetry on SessionStart.",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.12.1",
@@ -13,19 +13,19 @@ Conventions for human contributors and AI agents working on this repository.
13
13
 
14
14
  ## Layout
15
15
 
16
- - `src/cli.ts` `UserPromptSubmit` hook CLI. Reads JSON on stdin, writes a compact `<ultrawork-mode>` skill pointer to stdout when the keyword matches (full directive as fallback), exits 0 otherwise.
17
- - `src/codex-hook.ts` pure detector/hook behavior; skips on context-pressure/recovery transcripts and when the directive is already in the transcript.
18
- - `src/skill-pointer.ts` `buildUltraworkAdditionalContext()`: emits the <4096-byte pointer (Codex App truncates large hook output) directing the model to `create_goal` then read the bundled `ultrawork` skill; falls back to the full `ULTRAWORK_DIRECTIVE` when the plugin skills tree is absent. Pointer size + `ulw-loop` mirror byte-identity pinned by `plugin/test/ultrawork-skill-pointer.test.mjs`.
19
- - `directive.md` bundled ultrawork directive text.
20
- - `skills/ultrawork/SKILL.md` full directive as a skill, generated by `scripts/sync-directive.mjs`; pinned byte-for-byte to `directive.md` by `test/directive-source.test.ts`. `plugin/scripts/sync-skills.mjs` materializes it into the aggregate `plugin/skills/` tree the pointer path targets.
21
- - `skills/ulw-plan/` dual-maintained copy of the ulw-plan skill (component copy wins over `packages/shared-skills/skills/ulw-plan/` in sync-skills; keep both in step by hand).
22
- - `agents/*.toml` bundled Codex agent role files. Installed as regular files into `CODEX_HOME/agents/` by `src/cli/install-codex/link-cached-plugin-agents.ts` at install time. Public `sisyphuslabs` installs source them from Codex's installed-marketplace snapshot, not the versioned plugin cache, so they survive Codex auto-update cache pruning and temporary snapshot cleanup. No runtime `SessionStart` hook is involved.
23
- - `hooks/hooks.json` registers the prompt-detector hook only.
24
- - `.codex-plugin/plugin.json` Codex plugin manifest. Marketplace metadata lives here, not in `package.json`.
16
+ - `src/cli.ts`: `UserPromptSubmit` hook CLI. Reads JSON on stdin, writes a compact `<ultrawork-mode>` skill pointer to stdout when the keyword matches (full directive as fallback), exits 0 otherwise.
17
+ - `src/codex-hook.ts`: pure detector/hook behavior; skips on context-pressure/recovery transcripts and when the directive is already in the transcript.
18
+ - `src/skill-pointer.ts`: `buildUltraworkAdditionalContext()`: emits the <4096-byte pointer (Codex App truncates large hook output) directing the model to `create_goal` then read the bundled `ultrawork` skill; falls back to the full `ULTRAWORK_DIRECTIVE` when the plugin skills tree is absent. Pointer size + `ulw-loop` mirror byte-identity pinned by `plugin/test/ultrawork-skill-pointer.test.mjs`.
19
+ - `directive.md`: bundled ultrawork directive text.
20
+ - `skills/ultrawork/SKILL.md`: full directive as a skill, generated by `scripts/sync-directive.mjs`; pinned byte-for-byte to `directive.md` by `test/directive-source.test.ts`. `plugin/scripts/sync-skills.mjs` materializes it into the aggregate `plugin/skills/` tree the pointer path targets.
21
+ - `skills/ulw-plan/`: dual-maintained copy of the ulw-plan skill (component copy wins over `packages/shared-skills/skills/ulw-plan/` in sync-skills; keep both in step by hand).
22
+ - `agents/*.toml`: bundled Codex agent role files. Installed as regular files into `CODEX_HOME/agents/` by `src/cli/install-codex/link-cached-plugin-agents.ts` at install time. Public `sisyphuslabs` installs source them from Codex's installed-marketplace snapshot, not the versioned plugin cache, so they survive Codex auto-update cache pruning and temporary snapshot cleanup. No runtime `SessionStart` hook is involved.
23
+ - `hooks/hooks.json`: registers the prompt-detector hook only.
24
+ - `.codex-plugin/plugin.json`: Codex plugin manifest. Marketplace metadata lives here, not in `package.json`.
25
25
 
26
26
  ## Constraints
27
27
 
28
- - Never let the hook block a turn exit code is always 0.
28
+ - Never let the hook block a turn. Exit code is always 0.
29
29
  - Never make a network call from the hook.
30
30
  - Keep the directive in `directive.md`. Do not inline it into TypeScript files.
31
31
  - Keep bundled agent role prompts concise and model-specific; measure prompt length when changing them.