claudecode-omc 4.4.10 → 4.7.4

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 (1091) hide show
  1. package/.claude-plugin/marketplace.json +18 -4
  2. package/.claude-plugin/plugin.json +14 -1
  3. package/.mcp.json +0 -4
  4. package/README.de.md +260 -0
  5. package/README.es.md +27 -41
  6. package/README.fr.md +260 -0
  7. package/README.it.md +260 -0
  8. package/README.ja.md +27 -41
  9. package/README.ko.md +45 -54
  10. package/README.md +247 -14
  11. package/README.pt.md +23 -6
  12. package/README.ru.md +260 -0
  13. package/README.tr.md +260 -0
  14. package/README.vi.md +23 -6
  15. package/README.zh.md +27 -41
  16. package/agents/harsh-critic.md +254 -0
  17. package/bridge/cli.cjs +67181 -0
  18. package/bridge/gyoshu_bridge.py +69 -19
  19. package/bridge/mcp-server.cjs +846 -526
  20. package/bridge/runtime-cli.cjs +2861 -367
  21. package/bridge/team-bridge.cjs +216 -60
  22. package/bridge/team-mcp.cjs +493 -255
  23. package/bridge/team.js +1460 -0
  24. package/dist/__tests__/agent-registry.test.js +13 -3
  25. package/dist/__tests__/agent-registry.test.js.map +1 -1
  26. package/dist/__tests__/auto-slash-aliases.test.js +12 -20
  27. package/dist/__tests__/auto-slash-aliases.test.js.map +1 -1
  28. package/dist/__tests__/auto-update.test.js +1 -1
  29. package/dist/__tests__/auto-update.test.js.map +1 -1
  30. package/dist/__tests__/bash-history.test.js.map +1 -1
  31. package/dist/__tests__/cleanup-validation.test.d.ts +2 -0
  32. package/dist/__tests__/cleanup-validation.test.d.ts.map +1 -0
  33. package/dist/__tests__/cleanup-validation.test.js +44 -0
  34. package/dist/__tests__/cleanup-validation.test.js.map +1 -0
  35. package/dist/__tests__/config-force-inherit-env.test.d.ts +5 -0
  36. package/dist/__tests__/config-force-inherit-env.test.d.ts.map +1 -0
  37. package/dist/__tests__/config-force-inherit-env.test.js +35 -0
  38. package/dist/__tests__/config-force-inherit-env.test.js.map +1 -0
  39. package/dist/__tests__/consolidation-contracts.test.js +4 -7
  40. package/dist/__tests__/consolidation-contracts.test.js.map +1 -1
  41. package/dist/__tests__/daemon-module-path.test.d.ts +2 -0
  42. package/dist/__tests__/daemon-module-path.test.d.ts.map +1 -0
  43. package/dist/__tests__/daemon-module-path.test.js +29 -0
  44. package/dist/__tests__/daemon-module-path.test.js.map +1 -0
  45. package/dist/__tests__/delegation-enforcement-levels.test.js.map +1 -1
  46. package/dist/__tests__/delegation-enforcer.test.js +172 -0
  47. package/dist/__tests__/delegation-enforcer.test.js.map +1 -1
  48. package/dist/__tests__/doctor-conflicts.test.js +144 -1
  49. package/dist/__tests__/doctor-conflicts.test.js.map +1 -1
  50. package/dist/__tests__/file-lock.test.d.ts +2 -0
  51. package/dist/__tests__/file-lock.test.d.ts.map +1 -0
  52. package/dist/__tests__/file-lock.test.js +209 -0
  53. package/dist/__tests__/file-lock.test.js.map +1 -0
  54. package/dist/__tests__/hooks.test.js +27 -56
  55. package/dist/__tests__/hooks.test.js.map +1 -1
  56. package/dist/__tests__/hud/defaults.test.js +3 -0
  57. package/dist/__tests__/hud/defaults.test.js.map +1 -1
  58. package/dist/__tests__/hud/limits-error.test.d.ts +5 -0
  59. package/dist/__tests__/hud/limits-error.test.d.ts.map +1 -0
  60. package/dist/__tests__/hud/limits-error.test.js +43 -0
  61. package/dist/__tests__/hud/limits-error.test.js.map +1 -0
  62. package/dist/__tests__/hud/max-width.test.d.ts +2 -0
  63. package/dist/__tests__/hud/max-width.test.d.ts.map +1 -0
  64. package/dist/__tests__/hud/max-width.test.js +149 -0
  65. package/dist/__tests__/hud/max-width.test.js.map +1 -0
  66. package/dist/__tests__/hud/rate-limits-error.test.d.ts +5 -0
  67. package/dist/__tests__/hud/rate-limits-error.test.d.ts.map +1 -0
  68. package/dist/__tests__/hud/rate-limits-error.test.js +76 -0
  69. package/dist/__tests__/hud/rate-limits-error.test.js.map +1 -0
  70. package/dist/__tests__/hud/render.test.js +245 -1
  71. package/dist/__tests__/hud/render.test.js.map +1 -1
  72. package/dist/__tests__/hud/state.test.js +15 -0
  73. package/dist/__tests__/hud/state.test.js.map +1 -1
  74. package/dist/__tests__/hud/usage-api.test.js +19 -5
  75. package/dist/__tests__/hud/usage-api.test.js.map +1 -1
  76. package/dist/__tests__/hud/version-display.test.js +3 -1
  77. package/dist/__tests__/hud/version-display.test.js.map +1 -1
  78. package/dist/__tests__/hud-agents.test.js.map +1 -1
  79. package/dist/__tests__/hud-api-key-source.test.d.ts +7 -0
  80. package/dist/__tests__/hud-api-key-source.test.d.ts.map +1 -0
  81. package/dist/__tests__/hud-api-key-source.test.js +112 -0
  82. package/dist/__tests__/hud-api-key-source.test.js.map +1 -0
  83. package/dist/__tests__/hud-build-guidance.test.d.ts +2 -0
  84. package/dist/__tests__/hud-build-guidance.test.d.ts.map +1 -0
  85. package/dist/__tests__/hud-build-guidance.test.js +26 -0
  86. package/dist/__tests__/hud-build-guidance.test.js.map +1 -0
  87. package/dist/__tests__/installer-hooks-merge.test.js +1 -1
  88. package/dist/__tests__/installer-hooks-merge.test.js.map +1 -1
  89. package/dist/__tests__/installer.test.js +4 -0
  90. package/dist/__tests__/installer.test.js.map +1 -1
  91. package/dist/__tests__/job-management.test.js +1 -1
  92. package/dist/__tests__/job-management.test.js.map +1 -1
  93. package/dist/__tests__/live-data.test.js +11 -5
  94. package/dist/__tests__/live-data.test.js.map +1 -1
  95. package/dist/__tests__/mcp-default-config.test.d.ts +2 -0
  96. package/dist/__tests__/mcp-default-config.test.d.ts.map +1 -0
  97. package/dist/__tests__/mcp-default-config.test.js +13 -0
  98. package/dist/__tests__/mcp-default-config.test.js.map +1 -0
  99. package/dist/__tests__/model-routing.test.js.map +1 -1
  100. package/dist/__tests__/non-claude-provider-detection.test.d.ts +11 -0
  101. package/dist/__tests__/non-claude-provider-detection.test.d.ts.map +1 -0
  102. package/dist/__tests__/non-claude-provider-detection.test.js +303 -0
  103. package/dist/__tests__/non-claude-provider-detection.test.js.map +1 -0
  104. package/dist/__tests__/omc-tools-server.test.js +5 -5
  105. package/dist/__tests__/package-dir-resolution-regression.test.d.ts +2 -0
  106. package/dist/__tests__/package-dir-resolution-regression.test.d.ts.map +1 -0
  107. package/dist/__tests__/package-dir-resolution-regression.test.js +63 -0
  108. package/dist/__tests__/package-dir-resolution-regression.test.js.map +1 -0
  109. package/dist/__tests__/pipeline-orchestrator.test.d.ts +5 -0
  110. package/dist/__tests__/pipeline-orchestrator.test.d.ts.map +1 -0
  111. package/dist/__tests__/pipeline-orchestrator.test.js +244 -0
  112. package/dist/__tests__/pipeline-orchestrator.test.js.map +1 -0
  113. package/dist/__tests__/plugin-setup-deps.test.d.ts +2 -0
  114. package/dist/__tests__/plugin-setup-deps.test.d.ts.map +1 -0
  115. package/dist/__tests__/plugin-setup-deps.test.js +64 -0
  116. package/dist/__tests__/plugin-setup-deps.test.js.map +1 -0
  117. package/dist/__tests__/pre-tool-agent-prefix.test.d.ts +8 -0
  118. package/dist/__tests__/pre-tool-agent-prefix.test.d.ts.map +1 -0
  119. package/dist/__tests__/pre-tool-agent-prefix.test.js +131 -0
  120. package/dist/__tests__/pre-tool-agent-prefix.test.js.map +1 -0
  121. package/dist/__tests__/project-memory-merge.test.d.ts +2 -0
  122. package/dist/__tests__/project-memory-merge.test.d.ts.map +1 -0
  123. package/dist/__tests__/project-memory-merge.test.js +342 -0
  124. package/dist/__tests__/project-memory-merge.test.js.map +1 -0
  125. package/dist/__tests__/ralph-prd-mandatory.test.d.ts +2 -0
  126. package/dist/__tests__/ralph-prd-mandatory.test.d.ts.map +1 -0
  127. package/dist/__tests__/ralph-prd-mandatory.test.js +316 -0
  128. package/dist/__tests__/ralph-prd-mandatory.test.js.map +1 -0
  129. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts +2 -0
  130. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts.map +1 -0
  131. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js +94 -0
  132. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js.map +1 -0
  133. package/dist/__tests__/rate-limit-wait/daemon.test.js.map +1 -1
  134. package/dist/__tests__/rate-limit-wait/integration.test.js +33 -25
  135. package/dist/__tests__/rate-limit-wait/integration.test.js.map +1 -1
  136. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js +34 -26
  137. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js.map +1 -1
  138. package/dist/__tests__/rate-limit-wait/tmux-detector.test.js.map +1 -1
  139. package/dist/__tests__/resolve-node.test.js.map +1 -1
  140. package/dist/__tests__/resolve-transcript-path.test.d.ts +12 -0
  141. package/dist/__tests__/resolve-transcript-path.test.d.ts.map +1 -0
  142. package/dist/__tests__/resolve-transcript-path.test.js +167 -0
  143. package/dist/__tests__/resolve-transcript-path.test.js.map +1 -0
  144. package/dist/__tests__/routing-force-inherit.test.d.ts +8 -0
  145. package/dist/__tests__/routing-force-inherit.test.d.ts.map +1 -0
  146. package/dist/__tests__/routing-force-inherit.test.js +180 -0
  147. package/dist/__tests__/routing-force-inherit.test.js.map +1 -0
  148. package/dist/__tests__/run-cjs-graceful-fallback.test.js +2 -2
  149. package/dist/__tests__/run-cjs-graceful-fallback.test.js.map +1 -1
  150. package/dist/__tests__/shared-memory-concurrency.test.d.ts +8 -0
  151. package/dist/__tests__/shared-memory-concurrency.test.d.ts.map +1 -0
  152. package/dist/__tests__/shared-memory-concurrency.test.js +132 -0
  153. package/dist/__tests__/shared-memory-concurrency.test.js.map +1 -0
  154. package/dist/__tests__/shared-memory.test.d.ts +2 -0
  155. package/dist/__tests__/shared-memory.test.d.ts.map +1 -0
  156. package/dist/__tests__/shared-memory.test.js +345 -0
  157. package/dist/__tests__/shared-memory.test.js.map +1 -0
  158. package/dist/__tests__/shell-path.test.d.ts +5 -0
  159. package/dist/__tests__/shell-path.test.d.ts.map +1 -0
  160. package/dist/__tests__/shell-path.test.js +70 -0
  161. package/dist/__tests__/shell-path.test.js.map +1 -0
  162. package/dist/__tests__/skills.test.js +13 -10
  163. package/dist/__tests__/skills.test.js.map +1 -1
  164. package/dist/__tests__/slack-socket.test.d.ts +5 -0
  165. package/dist/__tests__/slack-socket.test.d.ts.map +1 -0
  166. package/dist/__tests__/slack-socket.test.js +252 -0
  167. package/dist/__tests__/slack-socket.test.js.map +1 -0
  168. package/dist/__tests__/smoke-functional.test.d.ts +8 -0
  169. package/dist/__tests__/smoke-functional.test.d.ts.map +1 -0
  170. package/dist/__tests__/smoke-functional.test.js +450 -0
  171. package/dist/__tests__/smoke-functional.test.js.map +1 -0
  172. package/dist/__tests__/smoke-pipeline-edge.test.d.ts +8 -0
  173. package/dist/__tests__/smoke-pipeline-edge.test.d.ts.map +1 -0
  174. package/dist/__tests__/smoke-pipeline-edge.test.js +435 -0
  175. package/dist/__tests__/smoke-pipeline-edge.test.js.map +1 -0
  176. package/dist/__tests__/smoke-slack-and-state.test.d.ts +13 -0
  177. package/dist/__tests__/smoke-slack-and-state.test.d.ts.map +1 -0
  178. package/dist/__tests__/smoke-slack-and-state.test.js +632 -0
  179. package/dist/__tests__/smoke-slack-and-state.test.js.map +1 -0
  180. package/dist/__tests__/smoke-team-worker.test.d.ts +15 -0
  181. package/dist/__tests__/smoke-team-worker.test.d.ts.map +1 -0
  182. package/dist/__tests__/smoke-team-worker.test.js +483 -0
  183. package/dist/__tests__/smoke-team-worker.test.js.map +1 -0
  184. package/dist/__tests__/ssrf-guard.test.d.ts +2 -0
  185. package/dist/__tests__/ssrf-guard.test.d.ts.map +1 -0
  186. package/dist/__tests__/ssrf-guard.test.js +96 -0
  187. package/dist/__tests__/ssrf-guard.test.js.map +1 -0
  188. package/dist/__tests__/task-continuation.test.js +1 -1
  189. package/dist/__tests__/task-continuation.test.js.map +1 -1
  190. package/dist/__tests__/tier0-contracts.test.js +5 -1
  191. package/dist/__tests__/tier0-contracts.test.js.map +1 -1
  192. package/dist/__tests__/tier0-docs-consistency.test.js +3 -4
  193. package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
  194. package/dist/__tests__/tools/trace-tools.test.js +7 -3
  195. package/dist/__tests__/tools/trace-tools.test.js.map +1 -1
  196. package/dist/__tests__/types.test.js +4 -4
  197. package/dist/__tests__/types.test.js.map +1 -1
  198. package/dist/__tests__/worker-adapter.test.d.ts +5 -0
  199. package/dist/__tests__/worker-adapter.test.d.ts.map +1 -0
  200. package/dist/__tests__/worker-adapter.test.js +211 -0
  201. package/dist/__tests__/worker-adapter.test.js.map +1 -0
  202. package/dist/agents/definitions.d.ts +6 -5
  203. package/dist/agents/definitions.d.ts.map +1 -1
  204. package/dist/agents/definitions.js +11 -6
  205. package/dist/agents/definitions.js.map +1 -1
  206. package/dist/agents/harsh-critic.d.ts +14 -0
  207. package/dist/agents/harsh-critic.d.ts.map +1 -0
  208. package/dist/agents/harsh-critic.js +42 -0
  209. package/dist/agents/harsh-critic.js.map +1 -0
  210. package/dist/agents/index.d.ts +1 -3
  211. package/dist/agents/index.d.ts.map +1 -1
  212. package/dist/agents/index.js +1 -4
  213. package/dist/agents/index.js.map +1 -1
  214. package/dist/agents/prompt-helpers.d.ts.map +1 -1
  215. package/dist/agents/prompt-helpers.js +21 -16
  216. package/dist/agents/prompt-helpers.js.map +1 -1
  217. package/dist/agents/prompt-sections/index.d.ts.map +1 -1
  218. package/dist/agents/prompt-sections/index.js +7 -3
  219. package/dist/agents/prompt-sections/index.js.map +1 -1
  220. package/dist/agents/utils.d.ts.map +1 -1
  221. package/dist/agents/utils.js +22 -13
  222. package/dist/agents/utils.js.map +1 -1
  223. package/dist/cli/__tests__/ask.test.d.ts +2 -0
  224. package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
  225. package/dist/cli/__tests__/ask.test.js +282 -0
  226. package/dist/cli/__tests__/ask.test.js.map +1 -0
  227. package/dist/cli/__tests__/cli-boot.test.d.ts +8 -0
  228. package/dist/cli/__tests__/cli-boot.test.d.ts.map +1 -0
  229. package/dist/cli/__tests__/cli-boot.test.js +82 -0
  230. package/dist/cli/__tests__/cli-boot.test.js.map +1 -0
  231. package/dist/cli/__tests__/launch.test.js +11 -2
  232. package/dist/cli/__tests__/launch.test.js.map +1 -1
  233. package/dist/cli/__tests__/team-command-branding.test.d.ts +2 -0
  234. package/dist/cli/__tests__/team-command-branding.test.d.ts.map +1 -0
  235. package/dist/cli/__tests__/team-command-branding.test.js +14 -0
  236. package/dist/cli/__tests__/team-command-branding.test.js.map +1 -0
  237. package/dist/cli/__tests__/team-help.test.d.ts +2 -0
  238. package/dist/cli/__tests__/team-help.test.d.ts.map +1 -0
  239. package/dist/cli/__tests__/team-help.test.js +19 -0
  240. package/dist/cli/__tests__/team-help.test.js.map +1 -0
  241. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts +2 -0
  242. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts.map +1 -0
  243. package/dist/cli/__tests__/team-runtime-boundary.test.js +11 -0
  244. package/dist/cli/__tests__/team-runtime-boundary.test.js.map +1 -0
  245. package/dist/cli/__tests__/team.test.d.ts +2 -0
  246. package/dist/cli/__tests__/team.test.d.ts.map +1 -0
  247. package/dist/cli/__tests__/team.test.js +335 -0
  248. package/dist/cli/__tests__/team.test.js.map +1 -0
  249. package/dist/cli/__tests__/tmux-utils.test.d.ts +11 -0
  250. package/dist/cli/__tests__/tmux-utils.test.d.ts.map +1 -0
  251. package/dist/cli/__tests__/tmux-utils.test.js +145 -0
  252. package/dist/cli/__tests__/tmux-utils.test.js.map +1 -0
  253. package/dist/cli/ask.d.ts +13 -0
  254. package/dist/cli/ask.d.ts.map +1 -0
  255. package/dist/cli/ask.js +202 -0
  256. package/dist/cli/ask.js.map +1 -0
  257. package/dist/cli/commands/__tests__/team.test.d.ts +2 -0
  258. package/dist/cli/commands/__tests__/team.test.d.ts.map +1 -0
  259. package/dist/cli/commands/__tests__/team.test.js +177 -0
  260. package/dist/cli/commands/__tests__/team.test.js.map +1 -0
  261. package/dist/cli/commands/__tests__/teleport.test.js.map +1 -1
  262. package/dist/cli/commands/doctor-conflicts.d.ts +14 -1
  263. package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
  264. package/dist/cli/commands/doctor-conflicts.js +126 -12
  265. package/dist/cli/commands/doctor-conflicts.js.map +1 -1
  266. package/dist/cli/commands/team.d.ts +19 -0
  267. package/dist/cli/commands/team.d.ts.map +1 -0
  268. package/dist/cli/commands/team.js +510 -0
  269. package/dist/cli/commands/team.js.map +1 -0
  270. package/dist/cli/commands/teleport.d.ts.map +1 -1
  271. package/dist/cli/commands/teleport.js +6 -4
  272. package/dist/cli/commands/teleport.js.map +1 -1
  273. package/dist/cli/index.js +58 -17
  274. package/dist/cli/index.js.map +1 -1
  275. package/dist/cli/launch.d.ts.map +1 -1
  276. package/dist/cli/launch.js +12 -6
  277. package/dist/cli/launch.js.map +1 -1
  278. package/dist/cli/team.d.ts +76 -0
  279. package/dist/cli/team.d.ts.map +1 -0
  280. package/dist/cli/team.js +1117 -0
  281. package/dist/cli/team.js.map +1 -0
  282. package/dist/cli/tmux-utils.d.ts +10 -0
  283. package/dist/cli/tmux-utils.d.ts.map +1 -1
  284. package/dist/cli/tmux-utils.js +20 -1
  285. package/dist/cli/tmux-utils.js.map +1 -1
  286. package/dist/config/loader.d.ts.map +1 -1
  287. package/dist/config/loader.js +134 -48
  288. package/dist/config/loader.js.map +1 -1
  289. package/dist/config/models.d.ts +36 -14
  290. package/dist/config/models.d.ts.map +1 -1
  291. package/dist/config/models.js +94 -0
  292. package/dist/config/models.js.map +1 -1
  293. package/dist/constants/names.d.ts +6 -3
  294. package/dist/constants/names.d.ts.map +1 -1
  295. package/dist/constants/names.js +7 -3
  296. package/dist/constants/names.js.map +1 -1
  297. package/dist/features/auto-update.js +5 -5
  298. package/dist/features/auto-update.js.map +1 -1
  299. package/dist/features/boulder-state/storage.d.ts +1 -1
  300. package/dist/features/boulder-state/storage.d.ts.map +1 -1
  301. package/dist/features/boulder-state/storage.js +20 -22
  302. package/dist/features/boulder-state/storage.js.map +1 -1
  303. package/dist/features/delegation-enforcer.d.ts +5 -0
  304. package/dist/features/delegation-enforcer.d.ts.map +1 -1
  305. package/dist/features/delegation-enforcer.js +58 -5
  306. package/dist/features/delegation-enforcer.js.map +1 -1
  307. package/dist/features/model-routing/router.d.ts.map +1 -1
  308. package/dist/features/model-routing/router.js +11 -0
  309. package/dist/features/model-routing/router.js.map +1 -1
  310. package/dist/features/model-routing/types.d.ts +6 -0
  311. package/dist/features/model-routing/types.d.ts.map +1 -1
  312. package/dist/features/model-routing/types.js.map +1 -1
  313. package/dist/features/rate-limit-wait/daemon.d.ts +5 -0
  314. package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -1
  315. package/dist/features/rate-limit-wait/daemon.js +38 -9
  316. package/dist/features/rate-limit-wait/daemon.js.map +1 -1
  317. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts.map +1 -1
  318. package/dist/features/rate-limit-wait/rate-limit-monitor.js +3 -2
  319. package/dist/features/rate-limit-wait/rate-limit-monitor.js.map +1 -1
  320. package/dist/features/rate-limit-wait/tmux-detector.d.ts.map +1 -1
  321. package/dist/features/rate-limit-wait/tmux-detector.js +8 -2
  322. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -1
  323. package/dist/features/state-manager/__tests__/cache.test.js +161 -1
  324. package/dist/features/state-manager/__tests__/cache.test.js.map +1 -1
  325. package/dist/features/state-manager/index.d.ts +2 -0
  326. package/dist/features/state-manager/index.d.ts.map +1 -1
  327. package/dist/features/state-manager/index.js +167 -51
  328. package/dist/features/state-manager/index.js.map +1 -1
  329. package/dist/hooks/__tests__/bridge-routing.test.js +124 -1
  330. package/dist/hooks/__tests__/bridge-routing.test.js.map +1 -1
  331. package/dist/hooks/__tests__/bridge-security.test.js +1 -1
  332. package/dist/hooks/__tests__/bridge-security.test.js.map +1 -1
  333. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts +2 -0
  334. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts.map +1 -0
  335. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js +52 -0
  336. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js.map +1 -0
  337. package/dist/hooks/__tests__/bridge.test.js.map +1 -1
  338. package/dist/hooks/__tests__/codebase-map.test.js.map +1 -1
  339. package/dist/hooks/__tests__/compaction-concurrency.test.js.map +1 -1
  340. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts +2 -0
  341. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts.map +1 -0
  342. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js +65 -0
  343. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js.map +1 -0
  344. package/dist/hooks/auto-slash-command/live-data.d.ts.map +1 -1
  345. package/dist/hooks/auto-slash-command/live-data.js +54 -25
  346. package/dist/hooks/auto-slash-command/live-data.js.map +1 -1
  347. package/dist/hooks/autopilot/__tests__/cancel.test.js +1 -1
  348. package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -1
  349. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts +2 -0
  350. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts.map +1 -0
  351. package/dist/hooks/autopilot/__tests__/pipeline.test.js +375 -0
  352. package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -0
  353. package/dist/hooks/autopilot/__tests__/state.test.js +2 -2
  354. package/dist/hooks/autopilot/__tests__/state.test.js.map +1 -1
  355. package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -1
  356. package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -1
  357. package/dist/hooks/autopilot/__tests__/validation.test.js +3 -3
  358. package/dist/hooks/autopilot/__tests__/validation.test.js.map +1 -1
  359. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts +12 -0
  360. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -0
  361. package/dist/hooks/autopilot/adapters/execution-adapter.js +110 -0
  362. package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -0
  363. package/dist/hooks/autopilot/adapters/index.d.ts +22 -0
  364. package/dist/hooks/autopilot/adapters/index.d.ts.map +1 -0
  365. package/dist/hooks/autopilot/adapters/index.js +32 -0
  366. package/dist/hooks/autopilot/adapters/index.js.map +1 -0
  367. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts +12 -0
  368. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts.map +1 -0
  369. package/dist/hooks/autopilot/adapters/qa-adapter.js +33 -0
  370. package/dist/hooks/autopilot/adapters/qa-adapter.js.map +1 -0
  371. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts +15 -0
  372. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts.map +1 -0
  373. package/dist/hooks/autopilot/adapters/ralph-adapter.js +102 -0
  374. package/dist/hooks/autopilot/adapters/ralph-adapter.js.map +1 -0
  375. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts +14 -0
  376. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -0
  377. package/dist/hooks/autopilot/adapters/ralplan-adapter.js +81 -0
  378. package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -0
  379. package/dist/hooks/autopilot/enforcement.d.ts.map +1 -1
  380. package/dist/hooks/autopilot/enforcement.js +162 -0
  381. package/dist/hooks/autopilot/enforcement.js.map +1 -1
  382. package/dist/hooks/autopilot/index.d.ts +4 -0
  383. package/dist/hooks/autopilot/index.d.ts.map +1 -1
  384. package/dist/hooks/autopilot/index.js +5 -0
  385. package/dist/hooks/autopilot/index.js.map +1 -1
  386. package/dist/hooks/autopilot/pipeline-types.d.ts +133 -0
  387. package/dist/hooks/autopilot/pipeline-types.d.ts.map +1 -0
  388. package/dist/hooks/autopilot/pipeline-types.js +44 -0
  389. package/dist/hooks/autopilot/pipeline-types.js.map +1 -0
  390. package/dist/hooks/autopilot/pipeline.d.ts +124 -0
  391. package/dist/hooks/autopilot/pipeline.d.ts.map +1 -0
  392. package/dist/hooks/autopilot/pipeline.js +407 -0
  393. package/dist/hooks/autopilot/pipeline.js.map +1 -0
  394. package/dist/hooks/autopilot/state.d.ts +6 -6
  395. package/dist/hooks/autopilot/state.d.ts.map +1 -1
  396. package/dist/hooks/autopilot/state.js +71 -129
  397. package/dist/hooks/autopilot/state.js.map +1 -1
  398. package/dist/hooks/autopilot/types.d.ts +21 -0
  399. package/dist/hooks/autopilot/types.d.ts.map +1 -1
  400. package/dist/hooks/autopilot/types.js.map +1 -1
  401. package/dist/hooks/bridge-normalize.d.ts.map +1 -1
  402. package/dist/hooks/bridge-normalize.js +13 -2
  403. package/dist/hooks/bridge-normalize.js.map +1 -1
  404. package/dist/hooks/bridge.d.ts.map +1 -1
  405. package/dist/hooks/bridge.js +151 -27
  406. package/dist/hooks/bridge.js.map +1 -1
  407. package/dist/hooks/comment-checker/index.js +1 -1
  408. package/dist/hooks/comment-checker/index.js.map +1 -1
  409. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js +2 -2
  410. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js.map +1 -1
  411. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts +7 -0
  412. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts.map +1 -0
  413. package/dist/hooks/factcheck/__tests__/factcheck.test.js +153 -0
  414. package/dist/hooks/factcheck/__tests__/factcheck.test.js.map +1 -0
  415. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts +5 -0
  416. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts.map +1 -0
  417. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js +159 -0
  418. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js.map +1 -0
  419. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts +7 -0
  420. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts.map +1 -0
  421. package/dist/hooks/factcheck/__tests__/sentinel.test.js +117 -0
  422. package/dist/hooks/factcheck/__tests__/sentinel.test.js.map +1 -0
  423. package/dist/hooks/factcheck/checks.d.ts +36 -0
  424. package/dist/hooks/factcheck/checks.d.ts.map +1 -0
  425. package/dist/hooks/factcheck/checks.js +144 -0
  426. package/dist/hooks/factcheck/checks.js.map +1 -0
  427. package/dist/hooks/factcheck/config.d.ts +25 -0
  428. package/dist/hooks/factcheck/config.d.ts.map +1 -0
  429. package/dist/hooks/factcheck/config.js +125 -0
  430. package/dist/hooks/factcheck/config.js.map +1 -0
  431. package/dist/hooks/factcheck/index.d.ts +34 -0
  432. package/dist/hooks/factcheck/index.d.ts.map +1 -0
  433. package/dist/hooks/factcheck/index.js +120 -0
  434. package/dist/hooks/factcheck/index.js.map +1 -0
  435. package/dist/hooks/factcheck/sentinel.d.ts +32 -0
  436. package/dist/hooks/factcheck/sentinel.d.ts.map +1 -0
  437. package/dist/hooks/factcheck/sentinel.js +153 -0
  438. package/dist/hooks/factcheck/sentinel.js.map +1 -0
  439. package/dist/hooks/factcheck/types.d.ts +99 -0
  440. package/dist/hooks/factcheck/types.d.ts.map +1 -0
  441. package/dist/hooks/factcheck/types.js +27 -0
  442. package/dist/hooks/factcheck/types.js.map +1 -0
  443. package/dist/hooks/keyword-detector/__tests__/index.test.js +29 -80
  444. package/dist/hooks/keyword-detector/__tests__/index.test.js.map +1 -1
  445. package/dist/hooks/keyword-detector/index.d.ts +1 -1
  446. package/dist/hooks/keyword-detector/index.d.ts.map +1 -1
  447. package/dist/hooks/keyword-detector/index.js +11 -21
  448. package/dist/hooks/keyword-detector/index.js.map +1 -1
  449. package/dist/hooks/learner/bridge.d.ts.map +1 -1
  450. package/dist/hooks/learner/bridge.js +8 -0
  451. package/dist/hooks/learner/bridge.js.map +1 -1
  452. package/dist/hooks/learner/index.d.ts +15 -15
  453. package/dist/hooks/learner/index.d.ts.map +1 -1
  454. package/dist/hooks/learner/index.js +44 -38
  455. package/dist/hooks/learner/index.js.map +1 -1
  456. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js +4 -2
  457. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js.map +1 -1
  458. package/dist/hooks/mode-registry/index.d.ts +2 -13
  459. package/dist/hooks/mode-registry/index.d.ts.map +1 -1
  460. package/dist/hooks/mode-registry/index.js +77 -174
  461. package/dist/hooks/mode-registry/index.js.map +1 -1
  462. package/dist/hooks/mode-registry/types.d.ts +1 -1
  463. package/dist/hooks/mode-registry/types.d.ts.map +1 -1
  464. package/dist/hooks/notepad/index.d.ts.map +1 -1
  465. package/dist/hooks/notepad/index.js +83 -73
  466. package/dist/hooks/notepad/index.js.map +1 -1
  467. package/dist/hooks/omc-orchestrator/index.d.ts.map +1 -1
  468. package/dist/hooks/omc-orchestrator/index.js +2 -1
  469. package/dist/hooks/omc-orchestrator/index.js.map +1 -1
  470. package/dist/hooks/permission-handler/__tests__/index.test.js +2 -2
  471. package/dist/hooks/permission-handler/__tests__/index.test.js.map +1 -1
  472. package/dist/hooks/permission-handler/index.d.ts +1 -1
  473. package/dist/hooks/permission-handler/index.d.ts.map +1 -1
  474. package/dist/hooks/permission-handler/index.js +4 -8
  475. package/dist/hooks/permission-handler/index.js.map +1 -1
  476. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js +23 -0
  477. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js.map +1 -1
  478. package/dist/hooks/persistent-mode/__tests__/skill-state-stop.test.js.map +1 -1
  479. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js +1 -1
  480. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js.map +1 -1
  481. package/dist/hooks/persistent-mode/index.d.ts +3 -3
  482. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  483. package/dist/hooks/persistent-mode/index.js +25 -12
  484. package/dist/hooks/persistent-mode/index.js.map +1 -1
  485. package/dist/hooks/persistent-mode/session-isolation.test.js +20 -4
  486. package/dist/hooks/persistent-mode/session-isolation.test.js.map +1 -1
  487. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts +2 -0
  488. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts.map +1 -0
  489. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js +367 -0
  490. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js.map +1 -0
  491. package/dist/hooks/pre-compact/index.d.ts +2 -14
  492. package/dist/hooks/pre-compact/index.d.ts.map +1 -1
  493. package/dist/hooks/pre-compact/index.js +8 -49
  494. package/dist/hooks/pre-compact/index.js.map +1 -1
  495. package/dist/hooks/preemptive-compaction/index.js +1 -1
  496. package/dist/hooks/preemptive-compaction/index.js.map +1 -1
  497. package/dist/hooks/project-memory/__tests__/integration.test.js +4 -2
  498. package/dist/hooks/project-memory/__tests__/integration.test.js.map +1 -1
  499. package/dist/hooks/project-memory/index.d.ts +9 -9
  500. package/dist/hooks/project-memory/index.d.ts.map +1 -1
  501. package/dist/hooks/project-memory/index.js +25 -25
  502. package/dist/hooks/project-memory/index.js.map +1 -1
  503. package/dist/hooks/project-memory/learner.d.ts.map +1 -1
  504. package/dist/hooks/project-memory/learner.js +92 -86
  505. package/dist/hooks/project-memory/learner.js.map +1 -1
  506. package/dist/hooks/project-memory/storage.d.ts +9 -0
  507. package/dist/hooks/project-memory/storage.d.ts.map +1 -1
  508. package/dist/hooks/project-memory/storage.js +15 -0
  509. package/dist/hooks/project-memory/storage.js.map +1 -1
  510. package/dist/hooks/ralph/index.d.ts +1 -1
  511. package/dist/hooks/ralph/index.d.ts.map +1 -1
  512. package/dist/hooks/ralph/index.js +2 -0
  513. package/dist/hooks/ralph/index.js.map +1 -1
  514. package/dist/hooks/ralph/loop.d.ts +10 -2
  515. package/dist/hooks/ralph/loop.d.ts.map +1 -1
  516. package/dist/hooks/ralph/loop.js +64 -113
  517. package/dist/hooks/ralph/loop.js.map +1 -1
  518. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  519. package/dist/hooks/ralph/prd.js +3 -2
  520. package/dist/hooks/ralph/prd.js.map +1 -1
  521. package/dist/hooks/ralph/progress.d.ts.map +1 -1
  522. package/dist/hooks/ralph/progress.js +6 -5
  523. package/dist/hooks/ralph/progress.js.map +1 -1
  524. package/dist/hooks/ralph/verifier.d.ts +3 -1
  525. package/dist/hooks/ralph/verifier.d.ts.map +1 -1
  526. package/dist/hooks/ralph/verifier.js +19 -7
  527. package/dist/hooks/ralph/verifier.js.map +1 -1
  528. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts +2 -0
  529. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts.map +1 -0
  530. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js +86 -0
  531. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js.map +1 -0
  532. package/dist/hooks/session-end/index.d.ts.map +1 -1
  533. package/dist/hooks/session-end/index.js +17 -17
  534. package/dist/hooks/session-end/index.js.map +1 -1
  535. package/dist/hooks/setup/index.d.ts.map +1 -1
  536. package/dist/hooks/setup/index.js +0 -2
  537. package/dist/hooks/setup/index.js.map +1 -1
  538. package/dist/hooks/skill-bridge.cjs +13 -4
  539. package/dist/hooks/skill-state/__tests__/skill-state.test.js.map +1 -1
  540. package/dist/hooks/skill-state/index.d.ts +0 -5
  541. package/dist/hooks/skill-state/index.d.ts.map +1 -1
  542. package/dist/hooks/skill-state/index.js +9 -55
  543. package/dist/hooks/skill-state/index.js.map +1 -1
  544. package/dist/hooks/subagent-tracker/__tests__/flush-race.test.js.map +1 -1
  545. package/dist/hooks/subagent-tracker/__tests__/index.test.js.map +1 -1
  546. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js +1 -1
  547. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js.map +1 -1
  548. package/dist/hooks/subagent-tracker/index.d.ts.map +1 -1
  549. package/dist/hooks/subagent-tracker/index.js +10 -22
  550. package/dist/hooks/subagent-tracker/index.js.map +1 -1
  551. package/dist/hooks/subagent-tracker/session-replay.d.ts.map +1 -1
  552. package/dist/hooks/subagent-tracker/session-replay.js +3 -2
  553. package/dist/hooks/subagent-tracker/session-replay.js.map +1 -1
  554. package/dist/hooks/task-size-detector/__tests__/index.test.js +7 -7
  555. package/dist/hooks/task-size-detector/__tests__/index.test.js.map +1 -1
  556. package/dist/hooks/task-size-detector/index.d.ts.map +1 -1
  557. package/dist/hooks/task-size-detector/index.js +0 -3
  558. package/dist/hooks/task-size-detector/index.js.map +1 -1
  559. package/dist/hooks/team-dispatch-hook.d.ts +65 -0
  560. package/dist/hooks/team-dispatch-hook.d.ts.map +1 -0
  561. package/dist/hooks/team-dispatch-hook.js +663 -0
  562. package/dist/hooks/team-dispatch-hook.js.map +1 -0
  563. package/dist/hooks/team-leader-nudge-hook.d.ts +36 -0
  564. package/dist/hooks/team-leader-nudge-hook.d.ts.map +1 -0
  565. package/dist/hooks/team-leader-nudge-hook.js +218 -0
  566. package/dist/hooks/team-leader-nudge-hook.js.map +1 -0
  567. package/dist/hooks/team-worker-hook.d.ts +45 -0
  568. package/dist/hooks/team-worker-hook.d.ts.map +1 -0
  569. package/dist/hooks/team-worker-hook.js +415 -0
  570. package/dist/hooks/team-worker-hook.js.map +1 -0
  571. package/dist/hooks/think-mode/__tests__/index.test.js.map +1 -1
  572. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts +2 -0
  573. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts.map +1 -0
  574. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js +33 -0
  575. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js.map +1 -0
  576. package/dist/hooks/todo-continuation/index.d.ts +12 -0
  577. package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
  578. package/dist/hooks/todo-continuation/index.js +37 -1
  579. package/dist/hooks/todo-continuation/index.js.map +1 -1
  580. package/dist/hooks/ultrapilot/decomposer.d.ts.map +1 -1
  581. package/dist/hooks/ultrapilot/decomposer.js +3 -1
  582. package/dist/hooks/ultrapilot/decomposer.js.map +1 -1
  583. package/dist/hooks/ultrapilot/index.d.ts.map +1 -1
  584. package/dist/hooks/ultrapilot/index.js +3 -1
  585. package/dist/hooks/ultrapilot/index.js.map +1 -1
  586. package/dist/hooks/ultrapilot/state.d.ts +1 -1
  587. package/dist/hooks/ultrapilot/state.d.ts.map +1 -1
  588. package/dist/hooks/ultrapilot/state.js +45 -77
  589. package/dist/hooks/ultrapilot/state.js.map +1 -1
  590. package/dist/hooks/ultraqa/index.d.ts.map +1 -1
  591. package/dist/hooks/ultraqa/index.js +4 -77
  592. package/dist/hooks/ultraqa/index.js.map +1 -1
  593. package/dist/hooks/ultrawork/index.d.ts.map +1 -1
  594. package/dist/hooks/ultrawork/index.js +40 -82
  595. package/dist/hooks/ultrawork/index.js.map +1 -1
  596. package/dist/hooks/ultrawork/session-isolation.test.js +1 -1
  597. package/dist/hooks/ultrawork/session-isolation.test.js.map +1 -1
  598. package/dist/hud/elements/api-key-source.d.ts +30 -0
  599. package/dist/hud/elements/api-key-source.d.ts.map +1 -0
  600. package/dist/hud/elements/api-key-source.js +70 -0
  601. package/dist/hud/elements/api-key-source.js.map +1 -0
  602. package/dist/hud/elements/index.d.ts +1 -0
  603. package/dist/hud/elements/index.d.ts.map +1 -1
  604. package/dist/hud/elements/index.js +1 -0
  605. package/dist/hud/elements/index.js.map +1 -1
  606. package/dist/hud/elements/limits.d.ts +9 -1
  607. package/dist/hud/elements/limits.d.ts.map +1 -1
  608. package/dist/hud/elements/limits.js +18 -0
  609. package/dist/hud/elements/limits.js.map +1 -1
  610. package/dist/hud/index.d.ts.map +1 -1
  611. package/dist/hud/index.js +40 -25
  612. package/dist/hud/index.js.map +1 -1
  613. package/dist/hud/omc-state.d.ts.map +1 -1
  614. package/dist/hud/omc-state.js +6 -4
  615. package/dist/hud/omc-state.js.map +1 -1
  616. package/dist/hud/render.d.ts +9 -0
  617. package/dist/hud/render.d.ts.map +1 -1
  618. package/dist/hud/render.js +166 -15
  619. package/dist/hud/render.js.map +1 -1
  620. package/dist/hud/state.d.ts.map +1 -1
  621. package/dist/hud/state.js +23 -14
  622. package/dist/hud/state.js.map +1 -1
  623. package/dist/hud/stdin.d.ts.map +1 -1
  624. package/dist/hud/stdin.js +5 -2
  625. package/dist/hud/stdin.js.map +1 -1
  626. package/dist/hud/types.d.ts +34 -3
  627. package/dist/hud/types.d.ts.map +1 -1
  628. package/dist/hud/types.js +19 -0
  629. package/dist/hud/types.js.map +1 -1
  630. package/dist/hud/usage-api.d.ts +9 -6
  631. package/dist/hud/usage-api.d.ts.map +1 -1
  632. package/dist/hud/usage-api.js +115 -46
  633. package/dist/hud/usage-api.js.map +1 -1
  634. package/dist/index.d.ts +3 -1
  635. package/dist/index.d.ts.map +1 -1
  636. package/dist/index.js +6 -2
  637. package/dist/index.js.map +1 -1
  638. package/dist/installer/__tests__/claude-md-merge.test.js +29 -0
  639. package/dist/installer/__tests__/claude-md-merge.test.js.map +1 -1
  640. package/dist/installer/__tests__/safe-installer.test.js +1 -1
  641. package/dist/installer/__tests__/safe-installer.test.js.map +1 -1
  642. package/dist/installer/hooks.d.ts.map +1 -1
  643. package/dist/installer/hooks.js +11 -12
  644. package/dist/installer/hooks.js.map +1 -1
  645. package/dist/installer/index.d.ts.map +1 -1
  646. package/dist/installer/index.js +20 -16
  647. package/dist/installer/index.js.map +1 -1
  648. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts +2 -0
  649. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts.map +1 -0
  650. package/dist/interop/__tests__/worker-adapter-integration.test.js +219 -0
  651. package/dist/interop/__tests__/worker-adapter-integration.test.js.map +1 -0
  652. package/dist/interop/__tests__/worker-adapter.test.d.ts +2 -0
  653. package/dist/interop/__tests__/worker-adapter.test.d.ts.map +1 -0
  654. package/dist/interop/__tests__/worker-adapter.test.js +408 -0
  655. package/dist/interop/__tests__/worker-adapter.test.js.map +1 -0
  656. package/dist/interop/adapter-types.d.ts +39 -0
  657. package/dist/interop/adapter-types.d.ts.map +1 -0
  658. package/dist/interop/adapter-types.js +9 -0
  659. package/dist/interop/adapter-types.js.map +1 -0
  660. package/dist/interop/worker-adapter.d.ts +116 -0
  661. package/dist/interop/worker-adapter.d.ts.map +1 -0
  662. package/dist/interop/worker-adapter.js +324 -0
  663. package/dist/interop/worker-adapter.js.map +1 -0
  664. package/dist/lib/__tests__/mode-state-io.test.d.ts +2 -0
  665. package/dist/lib/__tests__/mode-state-io.test.d.ts.map +1 -0
  666. package/dist/lib/__tests__/mode-state-io.test.js +194 -0
  667. package/dist/lib/__tests__/mode-state-io.test.js.map +1 -0
  668. package/dist/lib/__tests__/payload-limits.test.d.ts +2 -0
  669. package/dist/lib/__tests__/payload-limits.test.d.ts.map +1 -0
  670. package/dist/lib/__tests__/payload-limits.test.js +124 -0
  671. package/dist/lib/__tests__/payload-limits.test.js.map +1 -0
  672. package/dist/lib/__tests__/worktree-paths.test.js +5 -4
  673. package/dist/lib/__tests__/worktree-paths.test.js.map +1 -1
  674. package/dist/lib/file-lock.d.ts +75 -0
  675. package/dist/lib/file-lock.d.ts.map +1 -0
  676. package/dist/lib/file-lock.js +246 -0
  677. package/dist/lib/file-lock.js.map +1 -0
  678. package/dist/lib/mode-names.d.ts +10 -3
  679. package/dist/lib/mode-names.d.ts.map +1 -1
  680. package/dist/lib/mode-names.js +12 -17
  681. package/dist/lib/mode-names.js.map +1 -1
  682. package/dist/lib/mode-state-io.d.ts +41 -0
  683. package/dist/lib/mode-state-io.d.ts.map +1 -0
  684. package/dist/lib/mode-state-io.js +127 -0
  685. package/dist/lib/mode-state-io.js.map +1 -0
  686. package/dist/lib/payload-limits.d.ts +31 -0
  687. package/dist/lib/payload-limits.d.ts.map +1 -0
  688. package/dist/lib/payload-limits.js +82 -0
  689. package/dist/lib/payload-limits.js.map +1 -0
  690. package/dist/lib/project-memory-merge.d.ts +36 -0
  691. package/dist/lib/project-memory-merge.d.ts.map +1 -0
  692. package/dist/lib/project-memory-merge.js +154 -0
  693. package/dist/lib/project-memory-merge.js.map +1 -0
  694. package/dist/lib/shared-memory.d.ts +82 -0
  695. package/dist/lib/shared-memory.d.ts.map +1 -0
  696. package/dist/lib/shared-memory.js +305 -0
  697. package/dist/lib/shared-memory.js.map +1 -0
  698. package/dist/lib/worktree-paths.d.ts +31 -3
  699. package/dist/lib/worktree-paths.d.ts.map +1 -1
  700. package/dist/lib/worktree-paths.js +147 -12
  701. package/dist/lib/worktree-paths.js.map +1 -1
  702. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts +2 -0
  703. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts.map +1 -0
  704. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js +84 -0
  705. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js.map +1 -0
  706. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts +2 -0
  707. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts.map +1 -0
  708. package/dist/mcp/__tests__/team-server-deprecation.test.js +54 -0
  709. package/dist/mcp/__tests__/team-server-deprecation.test.js.map +1 -0
  710. package/dist/mcp/omc-tools-server.d.ts +2 -0
  711. package/dist/mcp/omc-tools-server.d.ts.map +1 -1
  712. package/dist/mcp/omc-tools-server.js +9 -2
  713. package/dist/mcp/omc-tools-server.js.map +1 -1
  714. package/dist/mcp/team-job-convergence.d.ts +20 -0
  715. package/dist/mcp/team-job-convergence.d.ts.map +1 -0
  716. package/dist/mcp/team-job-convergence.js +101 -0
  717. package/dist/mcp/team-job-convergence.js.map +1 -0
  718. package/dist/mcp/team-server.d.ts +33 -10
  719. package/dist/mcp/team-server.d.ts.map +1 -1
  720. package/dist/mcp/team-server.js +219 -109
  721. package/dist/mcp/team-server.js.map +1 -1
  722. package/dist/notifications/__tests__/config.test.js +100 -6
  723. package/dist/notifications/__tests__/config.test.js.map +1 -1
  724. package/dist/notifications/__tests__/custom-integration.test.d.ts +8 -0
  725. package/dist/notifications/__tests__/custom-integration.test.d.ts.map +1 -0
  726. package/dist/notifications/__tests__/custom-integration.test.js +297 -0
  727. package/dist/notifications/__tests__/custom-integration.test.js.map +1 -0
  728. package/dist/notifications/__tests__/dispatcher.test.js +195 -0
  729. package/dist/notifications/__tests__/dispatcher.test.js.map +1 -1
  730. package/dist/notifications/__tests__/redact.test.d.ts +2 -0
  731. package/dist/notifications/__tests__/redact.test.d.ts.map +1 -0
  732. package/dist/notifications/__tests__/redact.test.js +111 -0
  733. package/dist/notifications/__tests__/redact.test.js.map +1 -0
  734. package/dist/notifications/__tests__/reply-listener.test.js +8 -1
  735. package/dist/notifications/__tests__/reply-listener.test.js.map +1 -1
  736. package/dist/notifications/__tests__/slack-socket.test.d.ts +2 -0
  737. package/dist/notifications/__tests__/slack-socket.test.d.ts.map +1 -0
  738. package/dist/notifications/__tests__/slack-socket.test.js +293 -0
  739. package/dist/notifications/__tests__/slack-socket.test.js.map +1 -0
  740. package/dist/notifications/__tests__/template-engine.test.js +32 -0
  741. package/dist/notifications/__tests__/template-engine.test.js.map +1 -1
  742. package/dist/notifications/config.d.ts +40 -0
  743. package/dist/notifications/config.d.ts.map +1 -1
  744. package/dist/notifications/config.js +201 -4
  745. package/dist/notifications/config.js.map +1 -1
  746. package/dist/notifications/dispatcher.d.ts +20 -1
  747. package/dist/notifications/dispatcher.d.ts.map +1 -1
  748. package/dist/notifications/dispatcher.js +183 -7
  749. package/dist/notifications/dispatcher.js.map +1 -1
  750. package/dist/notifications/hook-config-types.d.ts +1 -1
  751. package/dist/notifications/hook-config-types.d.ts.map +1 -1
  752. package/dist/notifications/index.d.ts +11 -2
  753. package/dist/notifications/index.d.ts.map +1 -1
  754. package/dist/notifications/index.js +13 -3
  755. package/dist/notifications/index.js.map +1 -1
  756. package/dist/notifications/presets.d.ts +43 -0
  757. package/dist/notifications/presets.d.ts.map +1 -0
  758. package/dist/notifications/presets.js +122 -0
  759. package/dist/notifications/presets.js.map +1 -0
  760. package/dist/notifications/redact.d.ts +21 -0
  761. package/dist/notifications/redact.d.ts.map +1 -0
  762. package/dist/notifications/redact.js +33 -0
  763. package/dist/notifications/redact.js.map +1 -0
  764. package/dist/notifications/reply-listener.d.ts +54 -2
  765. package/dist/notifications/reply-listener.d.ts.map +1 -1
  766. package/dist/notifications/reply-listener.js +178 -15
  767. package/dist/notifications/reply-listener.js.map +1 -1
  768. package/dist/notifications/session-registry.d.ts +1 -1
  769. package/dist/notifications/session-registry.d.ts.map +1 -1
  770. package/dist/notifications/slack-socket.d.ts +242 -0
  771. package/dist/notifications/slack-socket.d.ts.map +1 -0
  772. package/dist/notifications/slack-socket.js +603 -0
  773. package/dist/notifications/slack-socket.js.map +1 -0
  774. package/dist/notifications/template-engine.d.ts.map +1 -1
  775. package/dist/notifications/template-engine.js +4 -0
  776. package/dist/notifications/template-engine.js.map +1 -1
  777. package/dist/notifications/template-variables.d.ts +26 -0
  778. package/dist/notifications/template-variables.d.ts.map +1 -0
  779. package/dist/notifications/template-variables.js +139 -0
  780. package/dist/notifications/template-variables.js.map +1 -0
  781. package/dist/notifications/types.d.ts +75 -2
  782. package/dist/notifications/types.d.ts.map +1 -1
  783. package/dist/notifications/validation.d.ts +24 -0
  784. package/dist/notifications/validation.d.ts.map +1 -0
  785. package/dist/notifications/validation.js +167 -0
  786. package/dist/notifications/validation.js.map +1 -0
  787. package/dist/openclaw/__tests__/dispatcher.test.js +0 -1
  788. package/dist/openclaw/__tests__/dispatcher.test.js.map +1 -1
  789. package/dist/openclaw/__tests__/index.test.js +82 -0
  790. package/dist/openclaw/__tests__/index.test.js.map +1 -1
  791. package/dist/openclaw/index.d.ts.map +1 -1
  792. package/dist/openclaw/index.js +24 -1
  793. package/dist/openclaw/index.js.map +1 -1
  794. package/dist/openclaw/types.d.ts +12 -0
  795. package/dist/openclaw/types.d.ts.map +1 -1
  796. package/dist/shared/types.d.ts +84 -20
  797. package/dist/shared/types.d.ts.map +1 -1
  798. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts +2 -0
  799. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts.map +1 -0
  800. package/dist/team/__tests__/api-interop.command-dialect.test.js +26 -0
  801. package/dist/team/__tests__/api-interop.command-dialect.test.js.map +1 -0
  802. package/dist/team/__tests__/api-interop.compatibility.test.d.ts +2 -0
  803. package/dist/team/__tests__/api-interop.compatibility.test.d.ts.map +1 -0
  804. package/dist/team/__tests__/api-interop.compatibility.test.js +93 -0
  805. package/dist/team/__tests__/api-interop.compatibility.test.js.map +1 -0
  806. package/dist/team/__tests__/cli-path-resolution.test.d.ts +2 -0
  807. package/dist/team/__tests__/cli-path-resolution.test.d.ts.map +1 -0
  808. package/dist/team/__tests__/cli-path-resolution.test.js +281 -0
  809. package/dist/team/__tests__/cli-path-resolution.test.js.map +1 -0
  810. package/dist/team/__tests__/index.compat-exports.test.d.ts +2 -0
  811. package/dist/team/__tests__/index.compat-exports.test.d.ts.map +1 -0
  812. package/dist/team/__tests__/index.compat-exports.test.js +20 -0
  813. package/dist/team/__tests__/index.compat-exports.test.js.map +1 -0
  814. package/dist/team/__tests__/layout-stabilizer.test.d.ts +2 -0
  815. package/dist/team/__tests__/layout-stabilizer.test.d.ts.map +1 -0
  816. package/dist/team/__tests__/layout-stabilizer.test.js +217 -0
  817. package/dist/team/__tests__/layout-stabilizer.test.js.map +1 -0
  818. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js +8 -4
  819. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js.map +1 -1
  820. package/dist/team/__tests__/mcp-team-bridge.usage.test.js +4 -2
  821. package/dist/team/__tests__/mcp-team-bridge.usage.test.js.map +1 -1
  822. package/dist/team/__tests__/model-contract.test.js +84 -8
  823. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  824. package/dist/team/__tests__/pane-readiness.test.d.ts +2 -0
  825. package/dist/team/__tests__/pane-readiness.test.d.ts.map +1 -0
  826. package/dist/team/__tests__/pane-readiness.test.js +185 -0
  827. package/dist/team/__tests__/pane-readiness.test.js.map +1 -0
  828. package/dist/team/__tests__/prompt-sanitization.test.js +1 -1
  829. package/dist/team/__tests__/prompt-sanitization.test.js.map +1 -1
  830. package/dist/team/__tests__/runtime-cli.test.d.ts +2 -0
  831. package/dist/team/__tests__/runtime-cli.test.d.ts.map +1 -0
  832. package/dist/team/__tests__/runtime-cli.test.js +159 -0
  833. package/dist/team/__tests__/runtime-cli.test.js.map +1 -0
  834. package/dist/team/__tests__/runtime-done-recovery.test.d.ts +2 -0
  835. package/dist/team/__tests__/runtime-done-recovery.test.d.ts.map +1 -0
  836. package/dist/team/__tests__/runtime-done-recovery.test.js +77 -0
  837. package/dist/team/__tests__/runtime-done-recovery.test.js.map +1 -0
  838. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts +2 -0
  839. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts.map +1 -0
  840. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js +139 -0
  841. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js.map +1 -0
  842. package/dist/team/__tests__/runtime-prompt-mode.test.js +167 -14
  843. package/dist/team/__tests__/runtime-prompt-mode.test.js.map +1 -1
  844. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts +2 -0
  845. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts.map +1 -0
  846. package/dist/team/__tests__/runtime-v2.feature-flag.test.js +20 -0
  847. package/dist/team/__tests__/runtime-v2.feature-flag.test.js.map +1 -0
  848. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts +2 -0
  849. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts.map +1 -0
  850. package/dist/team/__tests__/runtime-watchdog-retry.test.js +408 -0
  851. package/dist/team/__tests__/runtime-watchdog-retry.test.js.map +1 -0
  852. package/dist/team/__tests__/shell-path.test.d.ts +2 -0
  853. package/dist/team/__tests__/shell-path.test.d.ts.map +1 -0
  854. package/dist/team/__tests__/shell-path.test.js +193 -0
  855. package/dist/team/__tests__/shell-path.test.js.map +1 -0
  856. package/dist/team/__tests__/state-paths.test.d.ts +2 -0
  857. package/dist/team/__tests__/state-paths.test.d.ts.map +1 -0
  858. package/dist/team/__tests__/state-paths.test.js +16 -0
  859. package/dist/team/__tests__/state-paths.test.js.map +1 -0
  860. package/dist/team/__tests__/task-file-ops.test.js +8 -2
  861. package/dist/team/__tests__/task-file-ops.test.js.map +1 -1
  862. package/dist/team/__tests__/tmux-session.create-team.test.js +15 -17
  863. package/dist/team/__tests__/tmux-session.create-team.test.js.map +1 -1
  864. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts +2 -0
  865. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts.map +1 -0
  866. package/dist/team/__tests__/tmux-session.kill-team-session.test.js +56 -0
  867. package/dist/team/__tests__/tmux-session.kill-team-session.test.js.map +1 -0
  868. package/dist/team/__tests__/tmux-session.spawn.test.js +9 -0
  869. package/dist/team/__tests__/tmux-session.spawn.test.js.map +1 -1
  870. package/dist/team/__tests__/tmux-session.test.js +83 -5
  871. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  872. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts +2 -0
  873. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts.map +1 -0
  874. package/dist/team/__tests__/wait-for-shell-ready.test.js +242 -0
  875. package/dist/team/__tests__/wait-for-shell-ready.test.js.map +1 -0
  876. package/dist/team/__tests__/worker-bootstrap.test.js +11 -0
  877. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  878. package/dist/team/api-interop.d.ts +20 -0
  879. package/dist/team/api-interop.d.ts.map +1 -0
  880. package/dist/team/api-interop.js +601 -0
  881. package/dist/team/api-interop.js.map +1 -0
  882. package/dist/team/contracts.d.ts +14 -0
  883. package/dist/team/contracts.d.ts.map +1 -0
  884. package/dist/team/contracts.js +32 -0
  885. package/dist/team/contracts.js.map +1 -0
  886. package/dist/team/dispatch-queue.d.ts +64 -0
  887. package/dist/team/dispatch-queue.d.ts.map +1 -0
  888. package/dist/team/dispatch-queue.js +288 -0
  889. package/dist/team/dispatch-queue.js.map +1 -0
  890. package/dist/team/events.d.ts +49 -0
  891. package/dist/team/events.d.ts.map +1 -0
  892. package/dist/team/events.js +113 -0
  893. package/dist/team/events.js.map +1 -0
  894. package/dist/team/index.d.ts +15 -2
  895. package/dist/team/index.d.ts.map +1 -1
  896. package/dist/team/index.js +14 -1
  897. package/dist/team/index.js.map +1 -1
  898. package/dist/team/layout-stabilizer.d.ts +23 -0
  899. package/dist/team/layout-stabilizer.d.ts.map +1 -0
  900. package/dist/team/layout-stabilizer.js +117 -0
  901. package/dist/team/layout-stabilizer.js.map +1 -0
  902. package/dist/team/mcp-comm.d.ts +99 -0
  903. package/dist/team/mcp-comm.d.ts.map +1 -0
  904. package/dist/team/mcp-comm.js +235 -0
  905. package/dist/team/mcp-comm.js.map +1 -0
  906. package/dist/team/mcp-team-bridge.d.ts +2 -2
  907. package/dist/team/mcp-team-bridge.d.ts.map +1 -1
  908. package/dist/team/mcp-team-bridge.js +263 -144
  909. package/dist/team/mcp-team-bridge.js.map +1 -1
  910. package/dist/team/model-contract.d.ts +28 -1
  911. package/dist/team/model-contract.d.ts.map +1 -1
  912. package/dist/team/model-contract.js +143 -5
  913. package/dist/team/model-contract.js.map +1 -1
  914. package/dist/team/monitor.d.ts +45 -0
  915. package/dist/team/monitor.d.ts.map +1 -0
  916. package/dist/team/monitor.js +339 -0
  917. package/dist/team/monitor.js.map +1 -0
  918. package/dist/team/runtime-cli.d.ts +24 -0
  919. package/dist/team/runtime-cli.d.ts.map +1 -1
  920. package/dist/team/runtime-cli.js +230 -12
  921. package/dist/team/runtime-cli.js.map +1 -1
  922. package/dist/team/runtime-v2.d.ts +122 -0
  923. package/dist/team/runtime-v2.d.ts.map +1 -0
  924. package/dist/team/runtime-v2.js +766 -0
  925. package/dist/team/runtime-v2.js.map +1 -0
  926. package/dist/team/runtime.d.ts +2 -0
  927. package/dist/team/runtime.d.ts.map +1 -1
  928. package/dist/team/runtime.js +145 -52
  929. package/dist/team/runtime.js.map +1 -1
  930. package/dist/team/scaling.d.ts +59 -0
  931. package/dist/team/scaling.d.ts.map +1 -0
  932. package/dist/team/scaling.js +311 -0
  933. package/dist/team/scaling.js.map +1 -0
  934. package/dist/team/sentinel-gate.d.ts +23 -0
  935. package/dist/team/sentinel-gate.d.ts.map +1 -0
  936. package/dist/team/sentinel-gate.js +127 -0
  937. package/dist/team/sentinel-gate.js.map +1 -0
  938. package/dist/team/shell-path.d.ts +21 -0
  939. package/dist/team/shell-path.d.ts.map +1 -0
  940. package/dist/team/shell-path.js +73 -0
  941. package/dist/team/shell-path.js.map +1 -0
  942. package/dist/team/state/tasks.d.ts +48 -0
  943. package/dist/team/state/tasks.d.ts.map +1 -0
  944. package/dist/team/state/tasks.js +184 -0
  945. package/dist/team/state/tasks.js.map +1 -0
  946. package/dist/team/state-paths.d.ts +20 -4
  947. package/dist/team/state-paths.d.ts.map +1 -1
  948. package/dist/team/state-paths.js +29 -6
  949. package/dist/team/state-paths.js.map +1 -1
  950. package/dist/team/task-file-ops.d.ts +2 -1
  951. package/dist/team/task-file-ops.d.ts.map +1 -1
  952. package/dist/team/task-file-ops.js +19 -0
  953. package/dist/team/task-file-ops.js.map +1 -1
  954. package/dist/team/team-ops.d.ts +44 -0
  955. package/dist/team/team-ops.d.ts.map +1 -0
  956. package/dist/team/team-ops.js +547 -0
  957. package/dist/team/team-ops.js.map +1 -0
  958. package/dist/team/tmux-comm.d.ts.map +1 -1
  959. package/dist/team/tmux-comm.js +107 -44
  960. package/dist/team/tmux-comm.js.map +1 -1
  961. package/dist/team/tmux-session.d.ts +5 -0
  962. package/dist/team/tmux-session.d.ts.map +1 -1
  963. package/dist/team/tmux-session.js +81 -10
  964. package/dist/team/tmux-session.js.map +1 -1
  965. package/dist/team/types.d.ts +303 -8
  966. package/dist/team/types.d.ts.map +1 -1
  967. package/dist/team/types.js +2 -1
  968. package/dist/team/types.js.map +1 -1
  969. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  970. package/dist/team/worker-bootstrap.js +73 -21
  971. package/dist/team/worker-bootstrap.js.map +1 -1
  972. package/dist/tools/__tests__/cancel-integration.test.d.ts +2 -0
  973. package/dist/tools/__tests__/cancel-integration.test.d.ts.map +1 -0
  974. package/dist/tools/__tests__/cancel-integration.test.js +248 -0
  975. package/dist/tools/__tests__/cancel-integration.test.js.map +1 -0
  976. package/dist/tools/__tests__/memory-tools.test.d.ts +2 -0
  977. package/dist/tools/__tests__/memory-tools.test.d.ts.map +1 -0
  978. package/dist/tools/__tests__/memory-tools.test.js +66 -0
  979. package/dist/tools/__tests__/memory-tools.test.js.map +1 -0
  980. package/dist/tools/__tests__/state-tools.test.js +73 -5
  981. package/dist/tools/__tests__/state-tools.test.js.map +1 -1
  982. package/dist/tools/lsp/__tests__/client-eviction.test.js +6 -6
  983. package/dist/tools/lsp/__tests__/client-eviction.test.js.map +1 -1
  984. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts +2 -0
  985. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts.map +1 -0
  986. package/dist/tools/lsp/__tests__/client-timeout-env.test.js +39 -0
  987. package/dist/tools/lsp/__tests__/client-timeout-env.test.js.map +1 -0
  988. package/dist/tools/lsp/client.d.ts +2 -0
  989. package/dist/tools/lsp/client.d.ts.map +1 -1
  990. package/dist/tools/lsp/client.js +11 -1
  991. package/dist/tools/lsp/client.js.map +1 -1
  992. package/dist/tools/lsp/index.d.ts +1 -1
  993. package/dist/tools/lsp/index.d.ts.map +1 -1
  994. package/dist/tools/lsp/index.js +1 -1
  995. package/dist/tools/lsp/index.js.map +1 -1
  996. package/dist/tools/memory-tools.d.ts.map +1 -1
  997. package/dist/tools/memory-tools.js +2 -1
  998. package/dist/tools/memory-tools.js.map +1 -1
  999. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts +2 -0
  1000. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts.map +1 -0
  1001. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js +138 -0
  1002. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js.map +1 -0
  1003. package/dist/tools/python-repl/bridge-manager.d.ts.map +1 -1
  1004. package/dist/tools/python-repl/bridge-manager.js +104 -24
  1005. package/dist/tools/python-repl/bridge-manager.js.map +1 -1
  1006. package/dist/tools/python-repl/paths.d.ts +8 -0
  1007. package/dist/tools/python-repl/paths.d.ts.map +1 -1
  1008. package/dist/tools/python-repl/paths.js +10 -0
  1009. package/dist/tools/python-repl/paths.js.map +1 -1
  1010. package/dist/tools/python-repl/socket-client.d.ts.map +1 -1
  1011. package/dist/tools/python-repl/socket-client.js +9 -2
  1012. package/dist/tools/python-repl/socket-client.js.map +1 -1
  1013. package/dist/tools/shared-memory-tools.d.ts +55 -0
  1014. package/dist/tools/shared-memory-tools.d.ts.map +1 -0
  1015. package/dist/tools/shared-memory-tools.js +250 -0
  1016. package/dist/tools/shared-memory-tools.js.map +1 -0
  1017. package/dist/tools/state-tools.d.ts.map +1 -1
  1018. package/dist/tools/state-tools.js +126 -101
  1019. package/dist/tools/state-tools.js.map +1 -1
  1020. package/dist/utils/daemon-module-path.d.ts +9 -0
  1021. package/dist/utils/daemon-module-path.d.ts.map +1 -0
  1022. package/dist/utils/daemon-module-path.js +23 -0
  1023. package/dist/utils/daemon-module-path.js.map +1 -0
  1024. package/dist/utils/jsonc.d.ts +16 -0
  1025. package/dist/utils/jsonc.d.ts.map +1 -0
  1026. package/dist/utils/jsonc.js +64 -0
  1027. package/dist/utils/jsonc.js.map +1 -0
  1028. package/dist/utils/paths.js +1 -1
  1029. package/dist/utils/paths.js.map +1 -1
  1030. package/dist/utils/ssrf-guard.d.ts +26 -0
  1031. package/dist/utils/ssrf-guard.d.ts.map +1 -0
  1032. package/dist/utils/ssrf-guard.js +103 -0
  1033. package/dist/utils/ssrf-guard.js.map +1 -0
  1034. package/dist/verification/tier-selector.d.ts +1 -1
  1035. package/dist/verification/tier-selector.js +1 -1
  1036. package/docs/ANALYTICS-SYSTEM.md +2 -5
  1037. package/docs/CLAUDE.md +88 -212
  1038. package/docs/MIGRATION.md +138 -161
  1039. package/docs/PERFORMANCE-MONITORING.md +5 -5
  1040. package/docs/REFERENCE.md +351 -286
  1041. package/docs/fixes/agent-prefix-routing-fix.md +105 -0
  1042. package/docs/ko/ARCHITECTURE.md +152 -0
  1043. package/docs/ko/FEATURES.md +582 -0
  1044. package/docs/ko/MIGRATION.md +1027 -0
  1045. package/docs/ko/REFERENCE.md +745 -0
  1046. package/docs/partials/mode-selection-guide.md +22 -12
  1047. package/docs/shared/mode-selection-guide.md +22 -12
  1048. package/package.json +11 -6
  1049. package/scripts/ask-codex.sh +24 -0
  1050. package/scripts/ask-gemini.sh +24 -0
  1051. package/scripts/build-cli.mjs +47 -0
  1052. package/scripts/build-runtime-cli.mjs +2 -0
  1053. package/scripts/context-guard-stop.mjs +66 -3
  1054. package/scripts/context-safety.mjs +67 -2
  1055. package/scripts/keyword-detector.mjs +14 -36
  1056. package/scripts/persistent-mode.cjs +106 -1
  1057. package/scripts/persistent-mode.mjs +88 -2
  1058. package/scripts/plugin-setup.mjs +46 -4
  1059. package/scripts/pre-tool-enforcer.mjs +1 -0
  1060. package/scripts/qa-tests/test-custom-integration.mjs +144 -0
  1061. package/scripts/run-provider-advisor.js +220 -0
  1062. package/scripts/session-start.mjs +42 -2
  1063. package/skills/AGENTS.md +16 -20
  1064. package/skills/ask-codex/SKILL.md +47 -0
  1065. package/skills/ask-gemini/SKILL.md +47 -0
  1066. package/skills/autopilot/SKILL.md +39 -5
  1067. package/skills/cancel/SKILL.md +23 -105
  1068. package/skills/ccg/SKILL.md +58 -75
  1069. package/skills/configure-notifications/SKILL.md +276 -0
  1070. package/skills/configure-openclaw/SKILL.md +63 -0
  1071. package/skills/deep-interview/SKILL.md +551 -0
  1072. package/skills/deepinit/SKILL.md +1 -1
  1073. package/skills/hud/SKILL.md +35 -3
  1074. package/skills/omc-doctor/SKILL.md +30 -13
  1075. package/skills/omc-help/SKILL.md +1 -1
  1076. package/skills/omc-setup/SKILL.md +20 -20
  1077. package/skills/omc-teams/SKILL.md +60 -112
  1078. package/skills/plan/SKILL.md +5 -5
  1079. package/skills/quick-init-project/SKILL.md +333 -0
  1080. package/skills/ralph/SKILL.md +96 -70
  1081. package/skills/ralplan/SKILL.md +7 -7
  1082. package/skills/security-review/SKILL.md +2 -2
  1083. package/skills/team/SKILL.md +36 -2
  1084. package/skills/ultrawork/SKILL.md +7 -7
  1085. package/templates/hooks/keyword-detector.mjs +20 -28
  1086. package/templates/hooks/persistent-mode.mjs +89 -2
  1087. package/templates/hooks/pre-tool-use.mjs +79 -0
  1088. package/templates/hooks/session-start.mjs +3 -3
  1089. package/skills/pipeline/SKILL.md +0 -434
  1090. package/skills/review/SKILL.md +0 -30
  1091. package/skills/ultrapilot/SKILL.md +0 -632
@@ -1,3 +1,66 @@
1
+ ---
2
+ name: configure-openclaw
3
+ description: DEPRECATED - Use configure-notifications with Custom Integration instead
4
+ triggers:
5
+ - "configure openclaw"
6
+ - "setup openclaw"
7
+ - "openclaw gateway"
8
+ - "openclaw setup"
9
+ ---
10
+
11
+ # Configure OpenClaw (DEPRECATED)
12
+
13
+ > **DEPRECATED**: This skill is deprecated and will be removed in a future version.
14
+ > Please use `/oh-my-claudecode:configure-notifications` and select "Custom Integration (OpenClaw, n8n, CLI, etc.)" instead.
15
+ >
16
+ > The new approach provides:
17
+ > - Same OpenClaw functionality
18
+ > - Additional presets (n8n, ClawdBot)
19
+ > - Generic webhook and CLI support
20
+ > - Migration tool for existing configs
21
+
22
+ ---
23
+
24
+ ## Migration Notice
25
+
26
+ When this skill is invoked, show the deprecation warning and redirect:
27
+
28
+ **Message to display:**
29
+ ```
30
+ ⚠️ DEPRECATION NOTICE
31
+
32
+ The /configure-openclaw skill is deprecated and will be removed in a future version.
33
+
34
+ Please use instead:
35
+ /oh-my-claudecode:configure-notifications
36
+
37
+ Then select: "Custom Integration (OpenClaw, n8n, CLI, etc.)" → "OpenClaw Gateway"
38
+
39
+ The new wizard will:
40
+ 1. Detect your existing OpenClaw config (if any)
41
+ 2. Offer to migrate it automatically
42
+ 3. Provide the same functionality with better UX
43
+ ```
44
+
45
+ **AskUserQuestion:**
46
+
47
+ **Question:** "The configure-openclaw skill is deprecated. How would you like to proceed?"
48
+
49
+ **Options:**
50
+ 1. **Open the new configure-notifications wizard (Recommended)** - Redirect to the new skill
51
+ 2. **Continue with legacy setup** - Use this deprecated skill anyway
52
+ 3. **Learn more about the migration** - Show detailed migration information
53
+
54
+ If option 1: Redirect to `/oh-my-claudecode:configure-notifications`
55
+ If option 2: Continue with legacy instructions below
56
+ If option 3: Show detailed migration guide
57
+
58
+ ---
59
+
60
+ ## Legacy Instructions
61
+
62
+ The following instructions are kept for backward compatibility but will be removed.
63
+
1
64
  ---
2
65
  name: configure-openclaw
3
66
  description: Configure OpenClaw gateway integration for waking external automations and AI agents on hook events
@@ -0,0 +1,551 @@
1
+ ---
2
+ name: deep-interview
3
+ description: Socratic deep interview with mathematical ambiguity gating before autonomous execution
4
+ argument-hint: "<idea or vague description>"
5
+ ---
6
+
7
+ <Purpose>
8
+ Deep Interview implements Ouroboros-inspired Socratic questioning with mathematical ambiguity scoring. It replaces vague ideas with crystal-clear specifications by asking targeted questions that expose hidden assumptions, measuring clarity across weighted dimensions, and refusing to proceed until ambiguity drops below a configurable threshold (default: 20%). The output feeds into a 3-stage pipeline: **deep-interview → ralplan (consensus refinement) → autopilot (execution)**, ensuring maximum clarity at every stage.
9
+ </Purpose>
10
+
11
+ <Use_When>
12
+ - User has a vague idea and wants thorough requirements gathering before execution
13
+ - User says "deep interview", "interview me", "ask me everything", "don't assume", "make sure you understand"
14
+ - User says "ouroboros", "socratic", "I have a vague idea", "not sure exactly what I want"
15
+ - User wants to avoid "that's not what I meant" outcomes from autonomous execution
16
+ - Task is complex enough that jumping to code would waste cycles on scope discovery
17
+ - User wants mathematically-validated clarity before committing to execution
18
+ </Use_When>
19
+
20
+ <Do_Not_Use_When>
21
+ - User has a detailed, specific request with file paths, function names, or acceptance criteria -- execute directly
22
+ - User wants to explore options or brainstorm -- use `omc-plan` skill instead
23
+ - User wants a quick fix or single change -- delegate to executor or ralph
24
+ - User says "just do it" or "skip the questions" -- respect their intent
25
+ - User already has a PRD or plan file -- use ralph or autopilot with that plan
26
+ </Do_Not_Use_When>
27
+
28
+ <Why_This_Exists>
29
+ AI can build anything. The hard part is knowing what to build. OMC's autopilot Phase 0 expands ideas into specs via analyst + architect, but this single-pass approach struggles with genuinely vague inputs. It asks "what do you want?" instead of "what are you assuming?" Deep Interview applies Socratic methodology to iteratively expose assumptions and mathematically gate readiness, ensuring the AI has genuine clarity before spending execution cycles.
30
+
31
+ Inspired by the [Ouroboros project](https://github.com/Q00/ouroboros) which demonstrated that specification quality is the primary bottleneck in AI-assisted development.
32
+ </Why_This_Exists>
33
+
34
+ <Execution_Policy>
35
+ - Ask ONE question at a time -- never batch multiple questions
36
+ - Target the WEAKEST clarity dimension with each question
37
+ - Gather codebase facts via `explore` agent BEFORE asking the user about them
38
+ - Score ambiguity after every answer -- display the score transparently
39
+ - Do not proceed to execution until ambiguity ≤ threshold (default 0.2)
40
+ - Allow early exit with a clear warning if ambiguity is still high
41
+ - Persist interview state for resume across session interruptions
42
+ - Challenge agents activate at specific round thresholds to shift perspective
43
+ </Execution_Policy>
44
+
45
+ <Steps>
46
+
47
+ ## Phase 1: Initialize
48
+
49
+ 1. **Parse the user's idea** from `{{ARGUMENTS}}`
50
+ 2. **Detect brownfield vs greenfield**:
51
+ - Run `explore` agent (haiku): check if cwd has existing source code, package files, or git history
52
+ - If source files exist AND the user's idea references modifying/extending something: **brownfield**
53
+ - Otherwise: **greenfield**
54
+ 3. **For brownfield**: Run `explore` agent to map relevant codebase areas, store as `codebase_context`
55
+ 4. **Initialize state** via `state_write(mode="deep-interview")`:
56
+
57
+ ```json
58
+ {
59
+ "active": true,
60
+ "current_phase": "deep-interview",
61
+ "state": {
62
+ "interview_id": "<uuid>",
63
+ "type": "greenfield|brownfield",
64
+ "initial_idea": "<user input>",
65
+ "rounds": [],
66
+ "current_ambiguity": 1.0,
67
+ "threshold": 0.2,
68
+ "codebase_context": null,
69
+ "challenge_modes_used": []
70
+ }
71
+ }
72
+ ```
73
+
74
+ 5. **Announce the interview** to the user:
75
+
76
+ > Starting deep interview. I'll ask targeted questions to understand your idea thoroughly before building anything. After each answer, I'll show your clarity score. We'll proceed to execution once ambiguity drops below 20%.
77
+ >
78
+ > **Your idea:** "{initial_idea}"
79
+ > **Project type:** {greenfield|brownfield}
80
+ > **Current ambiguity:** 100% (we haven't started yet)
81
+
82
+ ## Phase 2: Interview Loop
83
+
84
+ Repeat until `ambiguity ≤ threshold` OR user exits early:
85
+
86
+ ### Step 2a: Generate Next Question
87
+
88
+ Build the question generation prompt with:
89
+ - The user's original idea
90
+ - All prior Q&A rounds (conversation history)
91
+ - Current clarity scores per dimension (which is weakest?)
92
+ - Challenge agent mode (if activated -- see Phase 3)
93
+ - Brownfield codebase context (if applicable)
94
+
95
+ **Question targeting strategy:**
96
+ - Identify the dimension with the LOWEST clarity score
97
+ - Generate a question that specifically improves that dimension
98
+ - Questions should expose ASSUMPTIONS, not gather feature lists
99
+
100
+ **Question styles by dimension:**
101
+ | Dimension | Question Style | Example |
102
+ |-----------|---------------|---------|
103
+ | Goal Clarity | "What exactly happens when...?" | "When you say 'manage tasks', what specific action does a user take first?" |
104
+ | Constraint Clarity | "What are the boundaries?" | "Should this work offline, or is internet connectivity assumed?" |
105
+ | Success Criteria | "How do we know it works?" | "If I showed you the finished product, what would make you say 'yes, that's it'?" |
106
+ | Context Clarity (brownfield) | "How does this fit?" | "The existing auth uses JWT in src/auth/. Should we extend that or add a separate flow?" |
107
+
108
+ ### Step 2b: Ask the Question
109
+
110
+ Use `AskUserQuestion` with the generated question. Present it clearly with the current ambiguity context:
111
+
112
+ ```
113
+ Round {n} | Targeting: {weakest_dimension} | Ambiguity: {score}%
114
+
115
+ {question}
116
+ ```
117
+
118
+ Options should include contextually relevant choices plus free-text.
119
+
120
+ ### Step 2c: Score Ambiguity
121
+
122
+ After receiving the user's answer, score clarity across all dimensions.
123
+
124
+ **Scoring prompt** (use opus model, temperature 0.1 for consistency):
125
+
126
+ ```
127
+ Given the following interview transcript for a {greenfield|brownfield} project, score clarity on each dimension from 0.0 to 1.0:
128
+
129
+ Original idea: {idea}
130
+
131
+ Transcript:
132
+ {all rounds Q&A}
133
+
134
+ Score each dimension:
135
+ 1. Goal Clarity (0.0-1.0): Is the primary objective unambiguous? Can you state it in one sentence without qualifiers?
136
+ 2. Constraint Clarity (0.0-1.0): Are the boundaries, limitations, and non-goals clear?
137
+ 3. Success Criteria Clarity (0.0-1.0): Could you write a test that verifies success? Are acceptance criteria concrete?
138
+ {4. Context Clarity (0.0-1.0): [brownfield only] Do we understand the existing system well enough to modify it safely?}
139
+
140
+ For each dimension provide:
141
+ - score: float (0.0-1.0)
142
+ - justification: one sentence explaining the score
143
+ - gap: what's still unclear (if score < 0.9)
144
+
145
+ Respond as JSON.
146
+ ```
147
+
148
+ **Calculate ambiguity:**
149
+
150
+ Greenfield: `ambiguity = 1 - (goal × 0.40 + constraints × 0.30 + criteria × 0.30)`
151
+ Brownfield: `ambiguity = 1 - (goal × 0.35 + constraints × 0.25 + criteria × 0.25 + context × 0.15)`
152
+
153
+ ### Step 2d: Report Progress
154
+
155
+ After scoring, show the user their progress:
156
+
157
+ ```
158
+ Round {n} complete.
159
+
160
+ | Dimension | Score | Weight | Weighted | Gap |
161
+ |-----------|-------|--------|----------|-----|
162
+ | Goal | {s} | {w} | {s*w} | {gap or "Clear"} |
163
+ | Constraints | {s} | {w} | {s*w} | {gap or "Clear"} |
164
+ | Success Criteria | {s} | {w} | {s*w} | {gap or "Clear"} |
165
+ | Context (brownfield) | {s} | {w} | {s*w} | {gap or "Clear"} |
166
+ | **Ambiguity** | | | **{score}%** | |
167
+
168
+ {score <= threshold ? "Clarity threshold met! Ready to proceed." : "Focusing next question on: {weakest_dimension}"}
169
+ ```
170
+
171
+ ### Step 2e: Update State
172
+
173
+ Update interview state with the new round and scores via `state_write`.
174
+
175
+ ### Step 2f: Check Soft Limits
176
+
177
+ - **Round 3+**: Allow early exit if user says "enough", "let's go", "build it"
178
+ - **Round 10**: Show soft warning: "We're at 10 rounds. Current ambiguity: {score}%. Continue or proceed with current clarity?"
179
+ - **Round 20**: Hard cap: "Maximum interview rounds reached. Proceeding with current clarity level ({score}%)."
180
+
181
+ ## Phase 3: Challenge Agents
182
+
183
+ At specific round thresholds, shift the questioning perspective:
184
+
185
+ ### Round 4+: Contrarian Mode
186
+ Inject into the question generation prompt:
187
+ > You are now in CONTRARIAN mode. Your next question should challenge the user's core assumption. Ask "What if the opposite were true?" or "What if this constraint doesn't actually exist?" The goal is to test whether the user's framing is correct or just habitual.
188
+
189
+ ### Round 6+: Simplifier Mode
190
+ Inject into the question generation prompt:
191
+ > You are now in SIMPLIFIER mode. Your next question should probe whether complexity can be removed. Ask "What's the simplest version that would still be valuable?" or "Which of these constraints are actually necessary vs. assumed?" The goal is to find the minimal viable specification.
192
+
193
+ ### Round 8+: Ontologist Mode (if ambiguity still > 0.3)
194
+ Inject into the question generation prompt:
195
+ > You are now in ONTOLOGIST mode. The ambiguity is still high after 8 rounds, suggesting we may be addressing symptoms rather than the core problem. Ask "What IS this, really?" or "If you could only describe this in one sentence to a colleague, what would you say?" The goal is to find the essence.
196
+
197
+ Challenge modes are used ONCE each, then return to normal Socratic questioning. Track which modes have been used in state.
198
+
199
+ ## Phase 4: Crystallize Spec
200
+
201
+ When ambiguity ≤ threshold (or hard cap / early exit):
202
+
203
+ 1. **Generate the specification** using opus model with the full interview transcript
204
+ 2. **Write to file**: `.omc/specs/deep-interview-{slug}.md`
205
+
206
+ Spec structure:
207
+
208
+ ```markdown
209
+ # Deep Interview Spec: {title}
210
+
211
+ ## Metadata
212
+ - Interview ID: {uuid}
213
+ - Rounds: {count}
214
+ - Final Ambiguity Score: {score}%
215
+ - Type: greenfield | brownfield
216
+ - Generated: {timestamp}
217
+ - Threshold: {threshold}
218
+ - Status: {PASSED | BELOW_THRESHOLD_EARLY_EXIT}
219
+
220
+ ## Clarity Breakdown
221
+ | Dimension | Score | Weight | Weighted |
222
+ |-----------|-------|--------|----------|
223
+ | Goal Clarity | {s} | {w} | {s*w} |
224
+ | Constraint Clarity | {s} | {w} | {s*w} |
225
+ | Success Criteria | {s} | {w} | {s*w} |
226
+ | Context Clarity | {s} | {w} | {s*w} |
227
+ | **Total Clarity** | | | **{total}** |
228
+ | **Ambiguity** | | | **{1-total}** |
229
+
230
+ ## Goal
231
+ {crystal-clear goal statement derived from interview}
232
+
233
+ ## Constraints
234
+ - {constraint 1}
235
+ - {constraint 2}
236
+ - ...
237
+
238
+ ## Non-Goals
239
+ - {explicitly excluded scope 1}
240
+ - {explicitly excluded scope 2}
241
+
242
+ ## Acceptance Criteria
243
+ - [ ] {testable criterion 1}
244
+ - [ ] {testable criterion 2}
245
+ - [ ] {testable criterion 3}
246
+ - ...
247
+
248
+ ## Assumptions Exposed & Resolved
249
+ | Assumption | Challenge | Resolution |
250
+ |------------|-----------|------------|
251
+ | {assumption} | {how it was questioned} | {what was decided} |
252
+
253
+ ## Technical Context
254
+ {brownfield: relevant codebase findings from explore agent}
255
+ {greenfield: technology choices and constraints}
256
+
257
+ ## Ontology (Key Entities)
258
+ | Entity | Fields | Relationships |
259
+ |--------|--------|---------------|
260
+ | {entity} | {field1, field2} | {relates to...} |
261
+
262
+ ## Interview Transcript
263
+ <details>
264
+ <summary>Full Q&A ({n} rounds)</summary>
265
+
266
+ ### Round 1
267
+ **Q:** {question}
268
+ **A:** {answer}
269
+ **Ambiguity:** {score}% (Goal: {g}, Constraints: {c}, Criteria: {cr})
270
+
271
+ ...
272
+ </details>
273
+ ```
274
+
275
+ ## Phase 5: Execution Bridge
276
+
277
+ After the spec is written, present execution options via `AskUserQuestion`:
278
+
279
+ **Question:** "Your spec is ready (ambiguity: {score}%). How would you like to proceed?"
280
+
281
+ **Options:**
282
+
283
+ 1. **Ralplan → Autopilot (Recommended)**
284
+ - Description: "3-stage pipeline: consensus-refine this spec with Planner/Architect/Critic, then execute with full autopilot. Maximum quality."
285
+ - Action: Invoke `Skill("oh-my-claudecode:omc-plan")` with `--consensus --direct` flags and the spec file path as context. The `--direct` flag skips the omc-plan skill's interview phase (the deep interview already gathered requirements), while `--consensus` triggers the Planner/Architect/Critic loop. When consensus completes and produces a plan in `.omc/plans/`, invoke `Skill("oh-my-claudecode:autopilot")` with the consensus plan as Phase 0+1 output — autopilot skips both Expansion and Planning, starting directly at Phase 2 (Execution).
286
+ - Pipeline: `deep-interview spec → omc-plan --consensus --direct → autopilot execution`
287
+
288
+ 2. **Execute with autopilot (skip ralplan)**
289
+ - Description: "Full autonomous pipeline — planning, parallel implementation, QA, validation. Faster but without consensus refinement."
290
+ - Action: Invoke `Skill("oh-my-claudecode:autopilot")` with the spec file path as context. The spec replaces autopilot's Phase 0 — autopilot starts at Phase 1 (Planning).
291
+
292
+ 3. **Execute with ralph**
293
+ - Description: "Persistence loop with architect verification — keeps working until all acceptance criteria pass"
294
+ - Action: Invoke `Skill("oh-my-claudecode:ralph")` with the spec file path as the task definition.
295
+
296
+ 4. **Execute with team**
297
+ - Description: "N coordinated parallel agents — fastest execution for large specs"
298
+ - Action: Invoke `Skill("oh-my-claudecode:team")` with the spec file path as the shared plan.
299
+
300
+ 5. **Refine further**
301
+ - Description: "Continue interviewing to improve clarity (current: {score}%)"
302
+ - Action: Return to Phase 2 interview loop.
303
+
304
+ **IMPORTANT:** On execution selection, **MUST** invoke the chosen skill via `Skill()`. Do NOT implement directly. The deep-interview agent is a requirements agent, not an execution agent.
305
+
306
+ ### The 3-Stage Pipeline (Recommended Path)
307
+
308
+ ```
309
+ Stage 1: Deep Interview Stage 2: Ralplan Stage 3: Autopilot
310
+ ┌─────────────────────┐ ┌───────────────────────────┐ ┌──────────────────────┐
311
+ │ Socratic Q&A │ │ Planner creates plan │ │ Phase 2: Execution │
312
+ │ Ambiguity scoring │───>│ Architect reviews │───>│ Phase 3: QA cycling │
313
+ │ Challenge agents │ │ Critic validates │ │ Phase 4: Validation │
314
+ │ Spec crystallization│ │ Loop until consensus │ │ Phase 5: Cleanup │
315
+ │ Gate: ≤20% ambiguity│ │ ADR + RALPLAN-DR summary │ │ │
316
+ └─────────────────────┘ └───────────────────────────┘ └──────────────────────┘
317
+ Output: spec.md Output: consensus-plan.md Output: working code
318
+ ```
319
+
320
+ **Why 3 stages?** Each stage provides a different quality gate:
321
+ 1. **Deep Interview** gates on *clarity* — does the user know what they want?
322
+ 2. **Ralplan** gates on *feasibility* — is the approach architecturally sound?
323
+ 3. **Autopilot** gates on *correctness* — does the code work and pass review?
324
+
325
+ Skipping any stage is possible but reduces quality assurance:
326
+ - Skip Stage 1 → autopilot may build the wrong thing (vague requirements)
327
+ - Skip Stage 2 → autopilot may plan poorly (no Architect/Critic challenge)
328
+ - Skip Stage 3 → no execution (just a refined plan)
329
+
330
+ </Steps>
331
+
332
+ <Tool_Usage>
333
+ - Use `AskUserQuestion` for each interview question — provides clickable UI with contextual options
334
+ - Use `Task(subagent_type="oh-my-claudecode:explore", model="haiku")` for brownfield codebase exploration (run BEFORE asking user about codebase)
335
+ - Use opus model (temperature 0.1) for ambiguity scoring — consistency is critical
336
+ - Use `state_write` / `state_read` for interview state persistence
337
+ - Use `Write` tool to save the final spec to `.omc/specs/`
338
+ - Use `Skill()` to bridge to execution modes — never implement directly
339
+ - Challenge agent modes are prompt injections, not separate agent spawns
340
+ </Tool_Usage>
341
+
342
+ <Examples>
343
+ <Good>
344
+ Targeting weakest dimension:
345
+ ```
346
+ Scores: Goal=0.9, Constraints=0.4, Criteria=0.7
347
+ Next question targets Constraints (lowest at 0.4):
348
+ "You mentioned this should 'work on mobile'. Does that mean a native app,
349
+ a responsive web app, or a PWA? And are there specific devices or OS versions
350
+ you need to support?"
351
+ ```
352
+ Why good: Identifies weakest dimension, asks specific question to improve it, doesn't batch multiple topics.
353
+ </Good>
354
+
355
+ <Good>
356
+ Gathering codebase facts before asking:
357
+ ```
358
+ [spawns explore agent: "find authentication implementation"]
359
+ [receives: "Auth is in src/auth/ using JWT with passport.js"]
360
+
361
+ Question: "I see your project uses JWT authentication with passport.js in src/auth/.
362
+ For this new feature, should we extend the existing auth middleware or create
363
+ a separate authentication flow?"
364
+ ```
365
+ Why good: Explored first, then asked an informed question. Never asks the user what the code already reveals.
366
+ </Good>
367
+
368
+ <Good>
369
+ Contrarian mode activation:
370
+ ```
371
+ Round 5 | Contrarian Mode | Ambiguity: 42%
372
+
373
+ You've said this needs to support 10,000 concurrent users. What if it only
374
+ needed to handle 100? Would the architecture change fundamentally, or is
375
+ the 10K number an assumption rather than a measured requirement?
376
+ ```
377
+ Why good: Challenges a specific assumption (scale requirement) that could dramatically simplify the solution.
378
+ </Good>
379
+
380
+ <Good>
381
+ Early exit with warning:
382
+ ```
383
+ User: "That's enough, just build it"
384
+ System: "Current ambiguity is 35% (threshold: 20%). Areas still unclear:
385
+ - Success Criteria: 0.5 (How do we verify the search ranking algorithm works correctly?)
386
+ - Constraints: 0.6 (No performance targets defined yet)
387
+
388
+ Proceeding may require rework. Continue anyway?"
389
+ [Yes, proceed] [Ask 2-3 more questions] [Cancel]
390
+ ```
391
+ Why good: Respects user's desire to stop but transparently shows the risk.
392
+ </Good>
393
+
394
+ <Bad>
395
+ Batching multiple questions:
396
+ ```
397
+ "What's the target audience? And what tech stack? And how should auth work?
398
+ Also, what's the deployment target?"
399
+ ```
400
+ Why bad: Four questions at once — causes shallow answers and makes scoring inaccurate.
401
+ </Bad>
402
+
403
+ <Bad>
404
+ Asking about codebase facts:
405
+ ```
406
+ "What database does your project use?"
407
+ ```
408
+ Why bad: Should have spawned explore agent to find this. Never ask the user what the code already tells you.
409
+ </Bad>
410
+
411
+ <Bad>
412
+ Proceeding despite high ambiguity:
413
+ ```
414
+ "Ambiguity is at 45% but we've done 5 rounds, so let's start building."
415
+ ```
416
+ Why bad: 45% ambiguity means nearly half the requirements are unclear. The mathematical gate exists to prevent exactly this.
417
+ </Bad>
418
+ </Examples>
419
+
420
+ <Escalation_And_Stop_Conditions>
421
+ - **Hard cap at 20 rounds**: Proceed with whatever clarity exists, noting the risk
422
+ - **Soft warning at 10 rounds**: Offer to continue or proceed
423
+ - **Early exit (round 3+)**: Allow with warning if ambiguity > threshold
424
+ - **User says "stop", "cancel", "abort"**: Stop immediately, save state for resume
425
+ - **Ambiguity stalls** (same score +-0.05 for 3 rounds): Activate Ontologist mode to reframe
426
+ - **All dimensions at 0.9+**: Skip to spec generation even if not at round minimum
427
+ - **Codebase exploration fails**: Proceed as greenfield, note the limitation
428
+ </Escalation_And_Stop_Conditions>
429
+
430
+ <Final_Checklist>
431
+ - [ ] Interview completed (ambiguity ≤ threshold OR user chose early exit)
432
+ - [ ] Ambiguity score displayed after every round
433
+ - [ ] Challenge agents activated at correct thresholds (round 4, 6, 8)
434
+ - [ ] Spec file written to `.omc/specs/deep-interview-{slug}.md`
435
+ - [ ] Spec includes: goal, constraints, acceptance criteria, clarity breakdown, transcript
436
+ - [ ] Execution bridge presented via AskUserQuestion
437
+ - [ ] Selected execution mode invoked via Skill() (never direct implementation)
438
+ - [ ] If 3-stage pipeline selected: omc-plan --consensus --direct invoked, then autopilot with consensus plan
439
+ - [ ] State cleaned up after execution handoff
440
+ </Final_Checklist>
441
+
442
+ <Advanced>
443
+ ## Configuration
444
+
445
+ Optional settings in `.claude/settings.json`:
446
+
447
+ ```json
448
+ {
449
+ "omc": {
450
+ "deepInterview": {
451
+ "ambiguityThreshold": 0.2,
452
+ "maxRounds": 20,
453
+ "softWarningRounds": 10,
454
+ "minRoundsBeforeExit": 3,
455
+ "enableChallengeAgents": true,
456
+ "autoExecuteOnComplete": false,
457
+ "defaultExecutionMode": "autopilot",
458
+ "scoringModel": "opus"
459
+ }
460
+ }
461
+ }
462
+ ```
463
+
464
+ ## Resume
465
+
466
+ If interrupted, run `/deep-interview` again. The skill reads state from `.omc/state/deep-interview-state.json` and resumes from the last completed round.
467
+
468
+ ## Integration with Autopilot
469
+
470
+ When autopilot receives a vague input (no file paths, function names, or concrete anchors), it can redirect to deep-interview:
471
+
472
+ ```
473
+ User: "autopilot build me a thing"
474
+ Autopilot: "Your request is quite open-ended. Would you like to run a deep interview first to clarify requirements?"
475
+ [Yes, interview first] [No, expand directly]
476
+ ```
477
+
478
+ If the user chooses interview, autopilot invokes `/deep-interview`. When the interview completes and the user selects "Execute with autopilot", the spec becomes Phase 0 output and autopilot continues from Phase 1 (Planning).
479
+
480
+ ## The 3-Stage Pipeline: deep-interview → ralplan → autopilot
481
+
482
+ The recommended execution path chains three quality gates:
483
+
484
+ ```
485
+ /deep-interview "vague idea"
486
+ → Socratic Q&A until ambiguity ≤ 20%
487
+ → Spec written to .omc/specs/deep-interview-{slug}.md
488
+ → User selects "Ralplan → Autopilot"
489
+ → /omc-plan --consensus --direct (spec as input, skip interview)
490
+ → Planner creates implementation plan from spec
491
+ → Architect reviews for architectural soundness
492
+ → Critic validates quality and testability
493
+ → Loop until consensus (max 5 iterations)
494
+ → Consensus plan written to .omc/plans/
495
+ → /autopilot (plan as input, skip Phase 0+1)
496
+ → Phase 2: Parallel execution via Ralph + Ultrawork
497
+ → Phase 3: QA cycling until tests pass
498
+ → Phase 4: Multi-perspective validation
499
+ → Phase 5: Cleanup
500
+ ```
501
+
502
+ **The omc-plan skill receives the spec with `--consensus --direct` flags** because the deep interview already did the requirements gathering. The `--direct` flag (supported by the omc-plan skill, which ralplan aliases) skips the interview phase and goes straight to Planner → Architect → Critic consensus. The consensus plan includes:
503
+ - RALPLAN-DR summary (Principles, Decision Drivers, Options)
504
+ - ADR (Decision, Drivers, Alternatives, Why chosen, Consequences)
505
+ - Testable acceptance criteria (inherited from deep-interview spec)
506
+ - Implementation steps with file references
507
+
508
+ **Autopilot receives the ralplan consensus plan** and skips both Phase 0 (Expansion) and Phase 1 (Planning) since ralplan already produced a Critic-approved plan. Autopilot starts directly at Phase 2 (Execution).
509
+
510
+ ## Integration with Ralplan Gate
511
+
512
+ The ralplan pre-execution gate already redirects vague prompts to planning. Deep interview can serve as an alternative redirect target for prompts that are too vague even for ralplan:
513
+
514
+ ```
515
+ Vague prompt → ralplan gate → deep-interview (if extremely vague) → ralplan (with clear spec) → autopilot
516
+ ```
517
+
518
+ ## Brownfield vs Greenfield Weights
519
+
520
+ | Dimension | Greenfield | Brownfield |
521
+ |-----------|-----------|------------|
522
+ | Goal Clarity | 40% | 35% |
523
+ | Constraint Clarity | 30% | 25% |
524
+ | Success Criteria | 30% | 25% |
525
+ | Context Clarity | N/A | 15% |
526
+
527
+ Brownfield adds Context Clarity because modifying existing code safely requires understanding the system being changed.
528
+
529
+ ## Challenge Agent Modes
530
+
531
+ | Mode | Activates | Purpose | Prompt Injection |
532
+ |------|-----------|---------|-----------------|
533
+ | Contrarian | Round 4+ | Challenge assumptions | "What if the opposite were true?" |
534
+ | Simplifier | Round 6+ | Remove complexity | "What's the simplest version?" |
535
+ | Ontologist | Round 8+ (if ambiguity > 0.3) | Find essence | "What IS this, really?" |
536
+
537
+ Each mode is used exactly once, then normal Socratic questioning resumes. Modes are tracked in state to prevent repetition.
538
+
539
+ ## Ambiguity Score Interpretation
540
+
541
+ | Score Range | Meaning | Action |
542
+ |-------------|---------|--------|
543
+ | 0.0 - 0.1 | Crystal clear | Proceed immediately |
544
+ | 0.1 - 0.2 | Clear enough | Proceed (default threshold) |
545
+ | 0.2 - 0.4 | Some gaps | Continue interviewing |
546
+ | 0.4 - 0.6 | Significant gaps | Focus on weakest dimensions |
547
+ | 0.6 - 0.8 | Very unclear | May need reframing (Ontologist) |
548
+ | 0.8 - 1.0 | Almost nothing known | Early stages, keep going |
549
+ </Advanced>
550
+
551
+ Task: {{ARGUMENTS}}
@@ -151,7 +151,7 @@ grep -r "<!-- Parent:" --include="AGENTS.md" .
151
151
  | Task | Agent |
152
152
  |------|-------|
153
153
  | Directory mapping | `explore` |
154
- | File analysis | `architect-low` |
154
+ | File analysis | `architect` |
155
155
  | Content generation | `writer` |
156
156
  | AGENTS.md writes | `writer` |
157
157