claudecode-omc 4.5.7 → 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 (1085) 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__/project-memory-merge.test.d.ts +2 -0
  118. package/dist/__tests__/project-memory-merge.test.d.ts.map +1 -0
  119. package/dist/__tests__/project-memory-merge.test.js +342 -0
  120. package/dist/__tests__/project-memory-merge.test.js.map +1 -0
  121. package/dist/__tests__/ralph-prd-mandatory.test.d.ts +2 -0
  122. package/dist/__tests__/ralph-prd-mandatory.test.d.ts.map +1 -0
  123. package/dist/__tests__/ralph-prd-mandatory.test.js +316 -0
  124. package/dist/__tests__/ralph-prd-mandatory.test.js.map +1 -0
  125. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts +2 -0
  126. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts.map +1 -0
  127. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js +94 -0
  128. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js.map +1 -0
  129. package/dist/__tests__/rate-limit-wait/daemon.test.js.map +1 -1
  130. package/dist/__tests__/rate-limit-wait/integration.test.js +33 -25
  131. package/dist/__tests__/rate-limit-wait/integration.test.js.map +1 -1
  132. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js +34 -26
  133. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js.map +1 -1
  134. package/dist/__tests__/rate-limit-wait/tmux-detector.test.js.map +1 -1
  135. package/dist/__tests__/resolve-node.test.js.map +1 -1
  136. package/dist/__tests__/resolve-transcript-path.test.d.ts +12 -0
  137. package/dist/__tests__/resolve-transcript-path.test.d.ts.map +1 -0
  138. package/dist/__tests__/resolve-transcript-path.test.js +167 -0
  139. package/dist/__tests__/resolve-transcript-path.test.js.map +1 -0
  140. package/dist/__tests__/routing-force-inherit.test.d.ts +8 -0
  141. package/dist/__tests__/routing-force-inherit.test.d.ts.map +1 -0
  142. package/dist/__tests__/routing-force-inherit.test.js +180 -0
  143. package/dist/__tests__/routing-force-inherit.test.js.map +1 -0
  144. package/dist/__tests__/run-cjs-graceful-fallback.test.js +2 -2
  145. package/dist/__tests__/run-cjs-graceful-fallback.test.js.map +1 -1
  146. package/dist/__tests__/shared-memory-concurrency.test.d.ts +8 -0
  147. package/dist/__tests__/shared-memory-concurrency.test.d.ts.map +1 -0
  148. package/dist/__tests__/shared-memory-concurrency.test.js +132 -0
  149. package/dist/__tests__/shared-memory-concurrency.test.js.map +1 -0
  150. package/dist/__tests__/shared-memory.test.d.ts +2 -0
  151. package/dist/__tests__/shared-memory.test.d.ts.map +1 -0
  152. package/dist/__tests__/shared-memory.test.js +345 -0
  153. package/dist/__tests__/shared-memory.test.js.map +1 -0
  154. package/dist/__tests__/shell-path.test.d.ts +5 -0
  155. package/dist/__tests__/shell-path.test.d.ts.map +1 -0
  156. package/dist/__tests__/shell-path.test.js +70 -0
  157. package/dist/__tests__/shell-path.test.js.map +1 -0
  158. package/dist/__tests__/skills.test.js +13 -10
  159. package/dist/__tests__/skills.test.js.map +1 -1
  160. package/dist/__tests__/slack-socket.test.d.ts +5 -0
  161. package/dist/__tests__/slack-socket.test.d.ts.map +1 -0
  162. package/dist/__tests__/slack-socket.test.js +252 -0
  163. package/dist/__tests__/slack-socket.test.js.map +1 -0
  164. package/dist/__tests__/smoke-functional.test.d.ts +8 -0
  165. package/dist/__tests__/smoke-functional.test.d.ts.map +1 -0
  166. package/dist/__tests__/smoke-functional.test.js +450 -0
  167. package/dist/__tests__/smoke-functional.test.js.map +1 -0
  168. package/dist/__tests__/smoke-pipeline-edge.test.d.ts +8 -0
  169. package/dist/__tests__/smoke-pipeline-edge.test.d.ts.map +1 -0
  170. package/dist/__tests__/smoke-pipeline-edge.test.js +435 -0
  171. package/dist/__tests__/smoke-pipeline-edge.test.js.map +1 -0
  172. package/dist/__tests__/smoke-slack-and-state.test.d.ts +13 -0
  173. package/dist/__tests__/smoke-slack-and-state.test.d.ts.map +1 -0
  174. package/dist/__tests__/smoke-slack-and-state.test.js +632 -0
  175. package/dist/__tests__/smoke-slack-and-state.test.js.map +1 -0
  176. package/dist/__tests__/smoke-team-worker.test.d.ts +15 -0
  177. package/dist/__tests__/smoke-team-worker.test.d.ts.map +1 -0
  178. package/dist/__tests__/smoke-team-worker.test.js +483 -0
  179. package/dist/__tests__/smoke-team-worker.test.js.map +1 -0
  180. package/dist/__tests__/ssrf-guard.test.d.ts +2 -0
  181. package/dist/__tests__/ssrf-guard.test.d.ts.map +1 -0
  182. package/dist/__tests__/ssrf-guard.test.js +96 -0
  183. package/dist/__tests__/ssrf-guard.test.js.map +1 -0
  184. package/dist/__tests__/task-continuation.test.js +1 -1
  185. package/dist/__tests__/task-continuation.test.js.map +1 -1
  186. package/dist/__tests__/tier0-contracts.test.js +5 -1
  187. package/dist/__tests__/tier0-contracts.test.js.map +1 -1
  188. package/dist/__tests__/tier0-docs-consistency.test.js +3 -4
  189. package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
  190. package/dist/__tests__/tools/trace-tools.test.js +7 -3
  191. package/dist/__tests__/tools/trace-tools.test.js.map +1 -1
  192. package/dist/__tests__/types.test.js +4 -4
  193. package/dist/__tests__/types.test.js.map +1 -1
  194. package/dist/__tests__/worker-adapter.test.d.ts +5 -0
  195. package/dist/__tests__/worker-adapter.test.d.ts.map +1 -0
  196. package/dist/__tests__/worker-adapter.test.js +211 -0
  197. package/dist/__tests__/worker-adapter.test.js.map +1 -0
  198. package/dist/agents/definitions.d.ts +6 -5
  199. package/dist/agents/definitions.d.ts.map +1 -1
  200. package/dist/agents/definitions.js +11 -6
  201. package/dist/agents/definitions.js.map +1 -1
  202. package/dist/agents/harsh-critic.d.ts +14 -0
  203. package/dist/agents/harsh-critic.d.ts.map +1 -0
  204. package/dist/agents/harsh-critic.js +42 -0
  205. package/dist/agents/harsh-critic.js.map +1 -0
  206. package/dist/agents/index.d.ts +1 -3
  207. package/dist/agents/index.d.ts.map +1 -1
  208. package/dist/agents/index.js +1 -4
  209. package/dist/agents/index.js.map +1 -1
  210. package/dist/agents/prompt-helpers.d.ts.map +1 -1
  211. package/dist/agents/prompt-helpers.js +21 -16
  212. package/dist/agents/prompt-helpers.js.map +1 -1
  213. package/dist/agents/prompt-sections/index.d.ts.map +1 -1
  214. package/dist/agents/prompt-sections/index.js +7 -3
  215. package/dist/agents/prompt-sections/index.js.map +1 -1
  216. package/dist/agents/utils.d.ts.map +1 -1
  217. package/dist/agents/utils.js +22 -13
  218. package/dist/agents/utils.js.map +1 -1
  219. package/dist/cli/__tests__/ask.test.d.ts +2 -0
  220. package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
  221. package/dist/cli/__tests__/ask.test.js +282 -0
  222. package/dist/cli/__tests__/ask.test.js.map +1 -0
  223. package/dist/cli/__tests__/cli-boot.test.d.ts +8 -0
  224. package/dist/cli/__tests__/cli-boot.test.d.ts.map +1 -0
  225. package/dist/cli/__tests__/cli-boot.test.js +82 -0
  226. package/dist/cli/__tests__/cli-boot.test.js.map +1 -0
  227. package/dist/cli/__tests__/launch.test.js +11 -2
  228. package/dist/cli/__tests__/launch.test.js.map +1 -1
  229. package/dist/cli/__tests__/team-command-branding.test.d.ts +2 -0
  230. package/dist/cli/__tests__/team-command-branding.test.d.ts.map +1 -0
  231. package/dist/cli/__tests__/team-command-branding.test.js +14 -0
  232. package/dist/cli/__tests__/team-command-branding.test.js.map +1 -0
  233. package/dist/cli/__tests__/team-help.test.d.ts +2 -0
  234. package/dist/cli/__tests__/team-help.test.d.ts.map +1 -0
  235. package/dist/cli/__tests__/team-help.test.js +19 -0
  236. package/dist/cli/__tests__/team-help.test.js.map +1 -0
  237. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts +2 -0
  238. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts.map +1 -0
  239. package/dist/cli/__tests__/team-runtime-boundary.test.js +11 -0
  240. package/dist/cli/__tests__/team-runtime-boundary.test.js.map +1 -0
  241. package/dist/cli/__tests__/team.test.d.ts +2 -0
  242. package/dist/cli/__tests__/team.test.d.ts.map +1 -0
  243. package/dist/cli/__tests__/team.test.js +335 -0
  244. package/dist/cli/__tests__/team.test.js.map +1 -0
  245. package/dist/cli/__tests__/tmux-utils.test.d.ts +11 -0
  246. package/dist/cli/__tests__/tmux-utils.test.d.ts.map +1 -0
  247. package/dist/cli/__tests__/tmux-utils.test.js +145 -0
  248. package/dist/cli/__tests__/tmux-utils.test.js.map +1 -0
  249. package/dist/cli/ask.d.ts +13 -0
  250. package/dist/cli/ask.d.ts.map +1 -0
  251. package/dist/cli/ask.js +202 -0
  252. package/dist/cli/ask.js.map +1 -0
  253. package/dist/cli/commands/__tests__/team.test.d.ts +2 -0
  254. package/dist/cli/commands/__tests__/team.test.d.ts.map +1 -0
  255. package/dist/cli/commands/__tests__/team.test.js +177 -0
  256. package/dist/cli/commands/__tests__/team.test.js.map +1 -0
  257. package/dist/cli/commands/__tests__/teleport.test.js.map +1 -1
  258. package/dist/cli/commands/doctor-conflicts.d.ts +14 -1
  259. package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
  260. package/dist/cli/commands/doctor-conflicts.js +126 -12
  261. package/dist/cli/commands/doctor-conflicts.js.map +1 -1
  262. package/dist/cli/commands/team.d.ts +19 -0
  263. package/dist/cli/commands/team.d.ts.map +1 -0
  264. package/dist/cli/commands/team.js +510 -0
  265. package/dist/cli/commands/team.js.map +1 -0
  266. package/dist/cli/commands/teleport.d.ts.map +1 -1
  267. package/dist/cli/commands/teleport.js +6 -4
  268. package/dist/cli/commands/teleport.js.map +1 -1
  269. package/dist/cli/index.js +58 -17
  270. package/dist/cli/index.js.map +1 -1
  271. package/dist/cli/launch.d.ts.map +1 -1
  272. package/dist/cli/launch.js +12 -6
  273. package/dist/cli/launch.js.map +1 -1
  274. package/dist/cli/team.d.ts +76 -0
  275. package/dist/cli/team.d.ts.map +1 -0
  276. package/dist/cli/team.js +1117 -0
  277. package/dist/cli/team.js.map +1 -0
  278. package/dist/cli/tmux-utils.d.ts +10 -0
  279. package/dist/cli/tmux-utils.d.ts.map +1 -1
  280. package/dist/cli/tmux-utils.js +20 -1
  281. package/dist/cli/tmux-utils.js.map +1 -1
  282. package/dist/config/loader.d.ts.map +1 -1
  283. package/dist/config/loader.js +134 -48
  284. package/dist/config/loader.js.map +1 -1
  285. package/dist/config/models.d.ts +36 -14
  286. package/dist/config/models.d.ts.map +1 -1
  287. package/dist/config/models.js +94 -0
  288. package/dist/config/models.js.map +1 -1
  289. package/dist/constants/names.d.ts +6 -3
  290. package/dist/constants/names.d.ts.map +1 -1
  291. package/dist/constants/names.js +7 -3
  292. package/dist/constants/names.js.map +1 -1
  293. package/dist/features/auto-update.js +5 -5
  294. package/dist/features/auto-update.js.map +1 -1
  295. package/dist/features/boulder-state/storage.d.ts +1 -1
  296. package/dist/features/boulder-state/storage.d.ts.map +1 -1
  297. package/dist/features/boulder-state/storage.js +20 -22
  298. package/dist/features/boulder-state/storage.js.map +1 -1
  299. package/dist/features/delegation-enforcer.d.ts +5 -0
  300. package/dist/features/delegation-enforcer.d.ts.map +1 -1
  301. package/dist/features/delegation-enforcer.js +58 -5
  302. package/dist/features/delegation-enforcer.js.map +1 -1
  303. package/dist/features/model-routing/router.d.ts.map +1 -1
  304. package/dist/features/model-routing/router.js +11 -0
  305. package/dist/features/model-routing/router.js.map +1 -1
  306. package/dist/features/model-routing/types.d.ts +6 -0
  307. package/dist/features/model-routing/types.d.ts.map +1 -1
  308. package/dist/features/model-routing/types.js.map +1 -1
  309. package/dist/features/rate-limit-wait/daemon.d.ts +5 -0
  310. package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -1
  311. package/dist/features/rate-limit-wait/daemon.js +38 -9
  312. package/dist/features/rate-limit-wait/daemon.js.map +1 -1
  313. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts.map +1 -1
  314. package/dist/features/rate-limit-wait/rate-limit-monitor.js +3 -2
  315. package/dist/features/rate-limit-wait/rate-limit-monitor.js.map +1 -1
  316. package/dist/features/rate-limit-wait/tmux-detector.d.ts.map +1 -1
  317. package/dist/features/rate-limit-wait/tmux-detector.js +8 -2
  318. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -1
  319. package/dist/features/state-manager/__tests__/cache.test.js +161 -1
  320. package/dist/features/state-manager/__tests__/cache.test.js.map +1 -1
  321. package/dist/features/state-manager/index.d.ts +2 -0
  322. package/dist/features/state-manager/index.d.ts.map +1 -1
  323. package/dist/features/state-manager/index.js +167 -51
  324. package/dist/features/state-manager/index.js.map +1 -1
  325. package/dist/hooks/__tests__/bridge-routing.test.js +124 -1
  326. package/dist/hooks/__tests__/bridge-routing.test.js.map +1 -1
  327. package/dist/hooks/__tests__/bridge-security.test.js +1 -1
  328. package/dist/hooks/__tests__/bridge-security.test.js.map +1 -1
  329. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts +2 -0
  330. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts.map +1 -0
  331. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js +52 -0
  332. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js.map +1 -0
  333. package/dist/hooks/__tests__/bridge.test.js.map +1 -1
  334. package/dist/hooks/__tests__/codebase-map.test.js.map +1 -1
  335. package/dist/hooks/__tests__/compaction-concurrency.test.js.map +1 -1
  336. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts +2 -0
  337. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts.map +1 -0
  338. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js +65 -0
  339. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js.map +1 -0
  340. package/dist/hooks/auto-slash-command/live-data.d.ts.map +1 -1
  341. package/dist/hooks/auto-slash-command/live-data.js +54 -25
  342. package/dist/hooks/auto-slash-command/live-data.js.map +1 -1
  343. package/dist/hooks/autopilot/__tests__/cancel.test.js +1 -1
  344. package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -1
  345. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts +2 -0
  346. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts.map +1 -0
  347. package/dist/hooks/autopilot/__tests__/pipeline.test.js +375 -0
  348. package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -0
  349. package/dist/hooks/autopilot/__tests__/state.test.js +2 -2
  350. package/dist/hooks/autopilot/__tests__/state.test.js.map +1 -1
  351. package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -1
  352. package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -1
  353. package/dist/hooks/autopilot/__tests__/validation.test.js +3 -3
  354. package/dist/hooks/autopilot/__tests__/validation.test.js.map +1 -1
  355. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts +12 -0
  356. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -0
  357. package/dist/hooks/autopilot/adapters/execution-adapter.js +110 -0
  358. package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -0
  359. package/dist/hooks/autopilot/adapters/index.d.ts +22 -0
  360. package/dist/hooks/autopilot/adapters/index.d.ts.map +1 -0
  361. package/dist/hooks/autopilot/adapters/index.js +32 -0
  362. package/dist/hooks/autopilot/adapters/index.js.map +1 -0
  363. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts +12 -0
  364. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts.map +1 -0
  365. package/dist/hooks/autopilot/adapters/qa-adapter.js +33 -0
  366. package/dist/hooks/autopilot/adapters/qa-adapter.js.map +1 -0
  367. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts +15 -0
  368. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts.map +1 -0
  369. package/dist/hooks/autopilot/adapters/ralph-adapter.js +102 -0
  370. package/dist/hooks/autopilot/adapters/ralph-adapter.js.map +1 -0
  371. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts +14 -0
  372. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -0
  373. package/dist/hooks/autopilot/adapters/ralplan-adapter.js +81 -0
  374. package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -0
  375. package/dist/hooks/autopilot/enforcement.d.ts.map +1 -1
  376. package/dist/hooks/autopilot/enforcement.js +162 -0
  377. package/dist/hooks/autopilot/enforcement.js.map +1 -1
  378. package/dist/hooks/autopilot/index.d.ts +4 -0
  379. package/dist/hooks/autopilot/index.d.ts.map +1 -1
  380. package/dist/hooks/autopilot/index.js +5 -0
  381. package/dist/hooks/autopilot/index.js.map +1 -1
  382. package/dist/hooks/autopilot/pipeline-types.d.ts +133 -0
  383. package/dist/hooks/autopilot/pipeline-types.d.ts.map +1 -0
  384. package/dist/hooks/autopilot/pipeline-types.js +44 -0
  385. package/dist/hooks/autopilot/pipeline-types.js.map +1 -0
  386. package/dist/hooks/autopilot/pipeline.d.ts +124 -0
  387. package/dist/hooks/autopilot/pipeline.d.ts.map +1 -0
  388. package/dist/hooks/autopilot/pipeline.js +407 -0
  389. package/dist/hooks/autopilot/pipeline.js.map +1 -0
  390. package/dist/hooks/autopilot/state.d.ts +6 -6
  391. package/dist/hooks/autopilot/state.d.ts.map +1 -1
  392. package/dist/hooks/autopilot/state.js +71 -129
  393. package/dist/hooks/autopilot/state.js.map +1 -1
  394. package/dist/hooks/autopilot/types.d.ts +21 -0
  395. package/dist/hooks/autopilot/types.d.ts.map +1 -1
  396. package/dist/hooks/autopilot/types.js.map +1 -1
  397. package/dist/hooks/bridge-normalize.d.ts.map +1 -1
  398. package/dist/hooks/bridge-normalize.js +13 -2
  399. package/dist/hooks/bridge-normalize.js.map +1 -1
  400. package/dist/hooks/bridge.d.ts.map +1 -1
  401. package/dist/hooks/bridge.js +151 -27
  402. package/dist/hooks/bridge.js.map +1 -1
  403. package/dist/hooks/comment-checker/index.js +1 -1
  404. package/dist/hooks/comment-checker/index.js.map +1 -1
  405. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js +2 -2
  406. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js.map +1 -1
  407. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts +7 -0
  408. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts.map +1 -0
  409. package/dist/hooks/factcheck/__tests__/factcheck.test.js +153 -0
  410. package/dist/hooks/factcheck/__tests__/factcheck.test.js.map +1 -0
  411. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts +5 -0
  412. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts.map +1 -0
  413. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js +159 -0
  414. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js.map +1 -0
  415. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts +7 -0
  416. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts.map +1 -0
  417. package/dist/hooks/factcheck/__tests__/sentinel.test.js +117 -0
  418. package/dist/hooks/factcheck/__tests__/sentinel.test.js.map +1 -0
  419. package/dist/hooks/factcheck/checks.d.ts +36 -0
  420. package/dist/hooks/factcheck/checks.d.ts.map +1 -0
  421. package/dist/hooks/factcheck/checks.js +144 -0
  422. package/dist/hooks/factcheck/checks.js.map +1 -0
  423. package/dist/hooks/factcheck/config.d.ts +25 -0
  424. package/dist/hooks/factcheck/config.d.ts.map +1 -0
  425. package/dist/hooks/factcheck/config.js +125 -0
  426. package/dist/hooks/factcheck/config.js.map +1 -0
  427. package/dist/hooks/factcheck/index.d.ts +34 -0
  428. package/dist/hooks/factcheck/index.d.ts.map +1 -0
  429. package/dist/hooks/factcheck/index.js +120 -0
  430. package/dist/hooks/factcheck/index.js.map +1 -0
  431. package/dist/hooks/factcheck/sentinel.d.ts +32 -0
  432. package/dist/hooks/factcheck/sentinel.d.ts.map +1 -0
  433. package/dist/hooks/factcheck/sentinel.js +153 -0
  434. package/dist/hooks/factcheck/sentinel.js.map +1 -0
  435. package/dist/hooks/factcheck/types.d.ts +99 -0
  436. package/dist/hooks/factcheck/types.d.ts.map +1 -0
  437. package/dist/hooks/factcheck/types.js +27 -0
  438. package/dist/hooks/factcheck/types.js.map +1 -0
  439. package/dist/hooks/keyword-detector/__tests__/index.test.js +29 -80
  440. package/dist/hooks/keyword-detector/__tests__/index.test.js.map +1 -1
  441. package/dist/hooks/keyword-detector/index.d.ts +1 -1
  442. package/dist/hooks/keyword-detector/index.d.ts.map +1 -1
  443. package/dist/hooks/keyword-detector/index.js +11 -21
  444. package/dist/hooks/keyword-detector/index.js.map +1 -1
  445. package/dist/hooks/learner/bridge.d.ts.map +1 -1
  446. package/dist/hooks/learner/bridge.js +8 -0
  447. package/dist/hooks/learner/bridge.js.map +1 -1
  448. package/dist/hooks/learner/index.d.ts +15 -15
  449. package/dist/hooks/learner/index.d.ts.map +1 -1
  450. package/dist/hooks/learner/index.js +44 -38
  451. package/dist/hooks/learner/index.js.map +1 -1
  452. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js +4 -2
  453. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js.map +1 -1
  454. package/dist/hooks/mode-registry/index.d.ts +2 -13
  455. package/dist/hooks/mode-registry/index.d.ts.map +1 -1
  456. package/dist/hooks/mode-registry/index.js +77 -174
  457. package/dist/hooks/mode-registry/index.js.map +1 -1
  458. package/dist/hooks/mode-registry/types.d.ts +1 -1
  459. package/dist/hooks/mode-registry/types.d.ts.map +1 -1
  460. package/dist/hooks/notepad/index.d.ts.map +1 -1
  461. package/dist/hooks/notepad/index.js +83 -73
  462. package/dist/hooks/notepad/index.js.map +1 -1
  463. package/dist/hooks/omc-orchestrator/index.d.ts.map +1 -1
  464. package/dist/hooks/omc-orchestrator/index.js +2 -1
  465. package/dist/hooks/omc-orchestrator/index.js.map +1 -1
  466. package/dist/hooks/permission-handler/__tests__/index.test.js +2 -2
  467. package/dist/hooks/permission-handler/__tests__/index.test.js.map +1 -1
  468. package/dist/hooks/permission-handler/index.d.ts +1 -1
  469. package/dist/hooks/permission-handler/index.d.ts.map +1 -1
  470. package/dist/hooks/permission-handler/index.js +4 -8
  471. package/dist/hooks/permission-handler/index.js.map +1 -1
  472. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js +23 -0
  473. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js.map +1 -1
  474. package/dist/hooks/persistent-mode/__tests__/skill-state-stop.test.js.map +1 -1
  475. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js +1 -1
  476. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js.map +1 -1
  477. package/dist/hooks/persistent-mode/index.d.ts +3 -3
  478. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  479. package/dist/hooks/persistent-mode/index.js +25 -12
  480. package/dist/hooks/persistent-mode/index.js.map +1 -1
  481. package/dist/hooks/persistent-mode/session-isolation.test.js +20 -4
  482. package/dist/hooks/persistent-mode/session-isolation.test.js.map +1 -1
  483. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts +2 -0
  484. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts.map +1 -0
  485. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js +367 -0
  486. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js.map +1 -0
  487. package/dist/hooks/pre-compact/index.d.ts +2 -14
  488. package/dist/hooks/pre-compact/index.d.ts.map +1 -1
  489. package/dist/hooks/pre-compact/index.js +8 -49
  490. package/dist/hooks/pre-compact/index.js.map +1 -1
  491. package/dist/hooks/preemptive-compaction/index.js +1 -1
  492. package/dist/hooks/preemptive-compaction/index.js.map +1 -1
  493. package/dist/hooks/project-memory/__tests__/integration.test.js +4 -2
  494. package/dist/hooks/project-memory/__tests__/integration.test.js.map +1 -1
  495. package/dist/hooks/project-memory/index.d.ts +9 -9
  496. package/dist/hooks/project-memory/index.d.ts.map +1 -1
  497. package/dist/hooks/project-memory/index.js +25 -25
  498. package/dist/hooks/project-memory/index.js.map +1 -1
  499. package/dist/hooks/project-memory/learner.d.ts.map +1 -1
  500. package/dist/hooks/project-memory/learner.js +92 -86
  501. package/dist/hooks/project-memory/learner.js.map +1 -1
  502. package/dist/hooks/project-memory/storage.d.ts +9 -0
  503. package/dist/hooks/project-memory/storage.d.ts.map +1 -1
  504. package/dist/hooks/project-memory/storage.js +15 -0
  505. package/dist/hooks/project-memory/storage.js.map +1 -1
  506. package/dist/hooks/ralph/index.d.ts +1 -1
  507. package/dist/hooks/ralph/index.d.ts.map +1 -1
  508. package/dist/hooks/ralph/index.js +2 -0
  509. package/dist/hooks/ralph/index.js.map +1 -1
  510. package/dist/hooks/ralph/loop.d.ts +10 -2
  511. package/dist/hooks/ralph/loop.d.ts.map +1 -1
  512. package/dist/hooks/ralph/loop.js +64 -113
  513. package/dist/hooks/ralph/loop.js.map +1 -1
  514. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  515. package/dist/hooks/ralph/prd.js +3 -2
  516. package/dist/hooks/ralph/prd.js.map +1 -1
  517. package/dist/hooks/ralph/progress.d.ts.map +1 -1
  518. package/dist/hooks/ralph/progress.js +6 -5
  519. package/dist/hooks/ralph/progress.js.map +1 -1
  520. package/dist/hooks/ralph/verifier.d.ts +3 -1
  521. package/dist/hooks/ralph/verifier.d.ts.map +1 -1
  522. package/dist/hooks/ralph/verifier.js +19 -7
  523. package/dist/hooks/ralph/verifier.js.map +1 -1
  524. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts +2 -0
  525. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts.map +1 -0
  526. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js +86 -0
  527. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js.map +1 -0
  528. package/dist/hooks/session-end/index.d.ts.map +1 -1
  529. package/dist/hooks/session-end/index.js +17 -17
  530. package/dist/hooks/session-end/index.js.map +1 -1
  531. package/dist/hooks/setup/index.d.ts.map +1 -1
  532. package/dist/hooks/setup/index.js +0 -2
  533. package/dist/hooks/setup/index.js.map +1 -1
  534. package/dist/hooks/skill-bridge.cjs +13 -4
  535. package/dist/hooks/skill-state/__tests__/skill-state.test.js.map +1 -1
  536. package/dist/hooks/skill-state/index.d.ts +0 -5
  537. package/dist/hooks/skill-state/index.d.ts.map +1 -1
  538. package/dist/hooks/skill-state/index.js +9 -55
  539. package/dist/hooks/skill-state/index.js.map +1 -1
  540. package/dist/hooks/subagent-tracker/__tests__/flush-race.test.js.map +1 -1
  541. package/dist/hooks/subagent-tracker/__tests__/index.test.js.map +1 -1
  542. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js +1 -1
  543. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js.map +1 -1
  544. package/dist/hooks/subagent-tracker/index.d.ts.map +1 -1
  545. package/dist/hooks/subagent-tracker/index.js +10 -22
  546. package/dist/hooks/subagent-tracker/index.js.map +1 -1
  547. package/dist/hooks/subagent-tracker/session-replay.d.ts.map +1 -1
  548. package/dist/hooks/subagent-tracker/session-replay.js +3 -2
  549. package/dist/hooks/subagent-tracker/session-replay.js.map +1 -1
  550. package/dist/hooks/task-size-detector/__tests__/index.test.js +7 -7
  551. package/dist/hooks/task-size-detector/__tests__/index.test.js.map +1 -1
  552. package/dist/hooks/task-size-detector/index.d.ts.map +1 -1
  553. package/dist/hooks/task-size-detector/index.js +0 -3
  554. package/dist/hooks/task-size-detector/index.js.map +1 -1
  555. package/dist/hooks/team-dispatch-hook.d.ts +65 -0
  556. package/dist/hooks/team-dispatch-hook.d.ts.map +1 -0
  557. package/dist/hooks/team-dispatch-hook.js +663 -0
  558. package/dist/hooks/team-dispatch-hook.js.map +1 -0
  559. package/dist/hooks/team-leader-nudge-hook.d.ts +36 -0
  560. package/dist/hooks/team-leader-nudge-hook.d.ts.map +1 -0
  561. package/dist/hooks/team-leader-nudge-hook.js +218 -0
  562. package/dist/hooks/team-leader-nudge-hook.js.map +1 -0
  563. package/dist/hooks/team-worker-hook.d.ts +45 -0
  564. package/dist/hooks/team-worker-hook.d.ts.map +1 -0
  565. package/dist/hooks/team-worker-hook.js +415 -0
  566. package/dist/hooks/team-worker-hook.js.map +1 -0
  567. package/dist/hooks/think-mode/__tests__/index.test.js.map +1 -1
  568. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts +2 -0
  569. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts.map +1 -0
  570. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js +33 -0
  571. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js.map +1 -0
  572. package/dist/hooks/todo-continuation/index.d.ts +12 -0
  573. package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
  574. package/dist/hooks/todo-continuation/index.js +37 -1
  575. package/dist/hooks/todo-continuation/index.js.map +1 -1
  576. package/dist/hooks/ultrapilot/decomposer.d.ts.map +1 -1
  577. package/dist/hooks/ultrapilot/decomposer.js +3 -1
  578. package/dist/hooks/ultrapilot/decomposer.js.map +1 -1
  579. package/dist/hooks/ultrapilot/index.d.ts.map +1 -1
  580. package/dist/hooks/ultrapilot/index.js +3 -1
  581. package/dist/hooks/ultrapilot/index.js.map +1 -1
  582. package/dist/hooks/ultrapilot/state.d.ts +1 -1
  583. package/dist/hooks/ultrapilot/state.d.ts.map +1 -1
  584. package/dist/hooks/ultrapilot/state.js +45 -77
  585. package/dist/hooks/ultrapilot/state.js.map +1 -1
  586. package/dist/hooks/ultraqa/index.d.ts.map +1 -1
  587. package/dist/hooks/ultraqa/index.js +4 -77
  588. package/dist/hooks/ultraqa/index.js.map +1 -1
  589. package/dist/hooks/ultrawork/index.d.ts.map +1 -1
  590. package/dist/hooks/ultrawork/index.js +40 -82
  591. package/dist/hooks/ultrawork/index.js.map +1 -1
  592. package/dist/hooks/ultrawork/session-isolation.test.js +1 -1
  593. package/dist/hooks/ultrawork/session-isolation.test.js.map +1 -1
  594. package/dist/hud/elements/api-key-source.d.ts +30 -0
  595. package/dist/hud/elements/api-key-source.d.ts.map +1 -0
  596. package/dist/hud/elements/api-key-source.js +70 -0
  597. package/dist/hud/elements/api-key-source.js.map +1 -0
  598. package/dist/hud/elements/index.d.ts +1 -0
  599. package/dist/hud/elements/index.d.ts.map +1 -1
  600. package/dist/hud/elements/index.js +1 -0
  601. package/dist/hud/elements/index.js.map +1 -1
  602. package/dist/hud/elements/limits.d.ts +9 -1
  603. package/dist/hud/elements/limits.d.ts.map +1 -1
  604. package/dist/hud/elements/limits.js +18 -0
  605. package/dist/hud/elements/limits.js.map +1 -1
  606. package/dist/hud/index.d.ts.map +1 -1
  607. package/dist/hud/index.js +40 -25
  608. package/dist/hud/index.js.map +1 -1
  609. package/dist/hud/omc-state.d.ts.map +1 -1
  610. package/dist/hud/omc-state.js +6 -4
  611. package/dist/hud/omc-state.js.map +1 -1
  612. package/dist/hud/render.d.ts +9 -0
  613. package/dist/hud/render.d.ts.map +1 -1
  614. package/dist/hud/render.js +166 -15
  615. package/dist/hud/render.js.map +1 -1
  616. package/dist/hud/state.d.ts.map +1 -1
  617. package/dist/hud/state.js +23 -14
  618. package/dist/hud/state.js.map +1 -1
  619. package/dist/hud/stdin.d.ts.map +1 -1
  620. package/dist/hud/stdin.js +5 -2
  621. package/dist/hud/stdin.js.map +1 -1
  622. package/dist/hud/types.d.ts +34 -3
  623. package/dist/hud/types.d.ts.map +1 -1
  624. package/dist/hud/types.js +19 -0
  625. package/dist/hud/types.js.map +1 -1
  626. package/dist/hud/usage-api.d.ts +9 -6
  627. package/dist/hud/usage-api.d.ts.map +1 -1
  628. package/dist/hud/usage-api.js +115 -46
  629. package/dist/hud/usage-api.js.map +1 -1
  630. package/dist/index.d.ts +3 -1
  631. package/dist/index.d.ts.map +1 -1
  632. package/dist/index.js +6 -2
  633. package/dist/index.js.map +1 -1
  634. package/dist/installer/__tests__/claude-md-merge.test.js +29 -0
  635. package/dist/installer/__tests__/claude-md-merge.test.js.map +1 -1
  636. package/dist/installer/__tests__/safe-installer.test.js +1 -1
  637. package/dist/installer/__tests__/safe-installer.test.js.map +1 -1
  638. package/dist/installer/hooks.d.ts.map +1 -1
  639. package/dist/installer/hooks.js +11 -12
  640. package/dist/installer/hooks.js.map +1 -1
  641. package/dist/installer/index.d.ts.map +1 -1
  642. package/dist/installer/index.js +20 -16
  643. package/dist/installer/index.js.map +1 -1
  644. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts +2 -0
  645. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts.map +1 -0
  646. package/dist/interop/__tests__/worker-adapter-integration.test.js +219 -0
  647. package/dist/interop/__tests__/worker-adapter-integration.test.js.map +1 -0
  648. package/dist/interop/__tests__/worker-adapter.test.d.ts +2 -0
  649. package/dist/interop/__tests__/worker-adapter.test.d.ts.map +1 -0
  650. package/dist/interop/__tests__/worker-adapter.test.js +408 -0
  651. package/dist/interop/__tests__/worker-adapter.test.js.map +1 -0
  652. package/dist/interop/adapter-types.d.ts +39 -0
  653. package/dist/interop/adapter-types.d.ts.map +1 -0
  654. package/dist/interop/adapter-types.js +9 -0
  655. package/dist/interop/adapter-types.js.map +1 -0
  656. package/dist/interop/worker-adapter.d.ts +116 -0
  657. package/dist/interop/worker-adapter.d.ts.map +1 -0
  658. package/dist/interop/worker-adapter.js +324 -0
  659. package/dist/interop/worker-adapter.js.map +1 -0
  660. package/dist/lib/__tests__/mode-state-io.test.d.ts +2 -0
  661. package/dist/lib/__tests__/mode-state-io.test.d.ts.map +1 -0
  662. package/dist/lib/__tests__/mode-state-io.test.js +194 -0
  663. package/dist/lib/__tests__/mode-state-io.test.js.map +1 -0
  664. package/dist/lib/__tests__/payload-limits.test.d.ts +2 -0
  665. package/dist/lib/__tests__/payload-limits.test.d.ts.map +1 -0
  666. package/dist/lib/__tests__/payload-limits.test.js +124 -0
  667. package/dist/lib/__tests__/payload-limits.test.js.map +1 -0
  668. package/dist/lib/__tests__/worktree-paths.test.js +5 -4
  669. package/dist/lib/__tests__/worktree-paths.test.js.map +1 -1
  670. package/dist/lib/file-lock.d.ts +75 -0
  671. package/dist/lib/file-lock.d.ts.map +1 -0
  672. package/dist/lib/file-lock.js +246 -0
  673. package/dist/lib/file-lock.js.map +1 -0
  674. package/dist/lib/mode-names.d.ts +10 -3
  675. package/dist/lib/mode-names.d.ts.map +1 -1
  676. package/dist/lib/mode-names.js +12 -17
  677. package/dist/lib/mode-names.js.map +1 -1
  678. package/dist/lib/mode-state-io.d.ts +41 -0
  679. package/dist/lib/mode-state-io.d.ts.map +1 -0
  680. package/dist/lib/mode-state-io.js +127 -0
  681. package/dist/lib/mode-state-io.js.map +1 -0
  682. package/dist/lib/payload-limits.d.ts +31 -0
  683. package/dist/lib/payload-limits.d.ts.map +1 -0
  684. package/dist/lib/payload-limits.js +82 -0
  685. package/dist/lib/payload-limits.js.map +1 -0
  686. package/dist/lib/project-memory-merge.d.ts +36 -0
  687. package/dist/lib/project-memory-merge.d.ts.map +1 -0
  688. package/dist/lib/project-memory-merge.js +154 -0
  689. package/dist/lib/project-memory-merge.js.map +1 -0
  690. package/dist/lib/shared-memory.d.ts +82 -0
  691. package/dist/lib/shared-memory.d.ts.map +1 -0
  692. package/dist/lib/shared-memory.js +305 -0
  693. package/dist/lib/shared-memory.js.map +1 -0
  694. package/dist/lib/worktree-paths.d.ts +31 -3
  695. package/dist/lib/worktree-paths.d.ts.map +1 -1
  696. package/dist/lib/worktree-paths.js +147 -12
  697. package/dist/lib/worktree-paths.js.map +1 -1
  698. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts +2 -0
  699. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts.map +1 -0
  700. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js +84 -0
  701. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js.map +1 -0
  702. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts +2 -0
  703. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts.map +1 -0
  704. package/dist/mcp/__tests__/team-server-deprecation.test.js +54 -0
  705. package/dist/mcp/__tests__/team-server-deprecation.test.js.map +1 -0
  706. package/dist/mcp/omc-tools-server.d.ts +2 -0
  707. package/dist/mcp/omc-tools-server.d.ts.map +1 -1
  708. package/dist/mcp/omc-tools-server.js +9 -2
  709. package/dist/mcp/omc-tools-server.js.map +1 -1
  710. package/dist/mcp/team-job-convergence.d.ts +20 -0
  711. package/dist/mcp/team-job-convergence.d.ts.map +1 -0
  712. package/dist/mcp/team-job-convergence.js +101 -0
  713. package/dist/mcp/team-job-convergence.js.map +1 -0
  714. package/dist/mcp/team-server.d.ts +33 -10
  715. package/dist/mcp/team-server.d.ts.map +1 -1
  716. package/dist/mcp/team-server.js +219 -109
  717. package/dist/mcp/team-server.js.map +1 -1
  718. package/dist/notifications/__tests__/config.test.js +100 -6
  719. package/dist/notifications/__tests__/config.test.js.map +1 -1
  720. package/dist/notifications/__tests__/custom-integration.test.d.ts +8 -0
  721. package/dist/notifications/__tests__/custom-integration.test.d.ts.map +1 -0
  722. package/dist/notifications/__tests__/custom-integration.test.js +297 -0
  723. package/dist/notifications/__tests__/custom-integration.test.js.map +1 -0
  724. package/dist/notifications/__tests__/dispatcher.test.js +195 -0
  725. package/dist/notifications/__tests__/dispatcher.test.js.map +1 -1
  726. package/dist/notifications/__tests__/redact.test.d.ts +2 -0
  727. package/dist/notifications/__tests__/redact.test.d.ts.map +1 -0
  728. package/dist/notifications/__tests__/redact.test.js +111 -0
  729. package/dist/notifications/__tests__/redact.test.js.map +1 -0
  730. package/dist/notifications/__tests__/reply-listener.test.js +8 -1
  731. package/dist/notifications/__tests__/reply-listener.test.js.map +1 -1
  732. package/dist/notifications/__tests__/slack-socket.test.d.ts +2 -0
  733. package/dist/notifications/__tests__/slack-socket.test.d.ts.map +1 -0
  734. package/dist/notifications/__tests__/slack-socket.test.js +293 -0
  735. package/dist/notifications/__tests__/slack-socket.test.js.map +1 -0
  736. package/dist/notifications/__tests__/template-engine.test.js +32 -0
  737. package/dist/notifications/__tests__/template-engine.test.js.map +1 -1
  738. package/dist/notifications/config.d.ts +40 -0
  739. package/dist/notifications/config.d.ts.map +1 -1
  740. package/dist/notifications/config.js +201 -4
  741. package/dist/notifications/config.js.map +1 -1
  742. package/dist/notifications/dispatcher.d.ts +20 -1
  743. package/dist/notifications/dispatcher.d.ts.map +1 -1
  744. package/dist/notifications/dispatcher.js +183 -7
  745. package/dist/notifications/dispatcher.js.map +1 -1
  746. package/dist/notifications/hook-config-types.d.ts +1 -1
  747. package/dist/notifications/hook-config-types.d.ts.map +1 -1
  748. package/dist/notifications/index.d.ts +11 -2
  749. package/dist/notifications/index.d.ts.map +1 -1
  750. package/dist/notifications/index.js +13 -3
  751. package/dist/notifications/index.js.map +1 -1
  752. package/dist/notifications/presets.d.ts +43 -0
  753. package/dist/notifications/presets.d.ts.map +1 -0
  754. package/dist/notifications/presets.js +122 -0
  755. package/dist/notifications/presets.js.map +1 -0
  756. package/dist/notifications/redact.d.ts +21 -0
  757. package/dist/notifications/redact.d.ts.map +1 -0
  758. package/dist/notifications/redact.js +33 -0
  759. package/dist/notifications/redact.js.map +1 -0
  760. package/dist/notifications/reply-listener.d.ts +54 -2
  761. package/dist/notifications/reply-listener.d.ts.map +1 -1
  762. package/dist/notifications/reply-listener.js +178 -15
  763. package/dist/notifications/reply-listener.js.map +1 -1
  764. package/dist/notifications/session-registry.d.ts +1 -1
  765. package/dist/notifications/session-registry.d.ts.map +1 -1
  766. package/dist/notifications/slack-socket.d.ts +242 -0
  767. package/dist/notifications/slack-socket.d.ts.map +1 -0
  768. package/dist/notifications/slack-socket.js +603 -0
  769. package/dist/notifications/slack-socket.js.map +1 -0
  770. package/dist/notifications/template-engine.d.ts.map +1 -1
  771. package/dist/notifications/template-engine.js +4 -0
  772. package/dist/notifications/template-engine.js.map +1 -1
  773. package/dist/notifications/template-variables.d.ts +26 -0
  774. package/dist/notifications/template-variables.d.ts.map +1 -0
  775. package/dist/notifications/template-variables.js +139 -0
  776. package/dist/notifications/template-variables.js.map +1 -0
  777. package/dist/notifications/types.d.ts +75 -2
  778. package/dist/notifications/types.d.ts.map +1 -1
  779. package/dist/notifications/validation.d.ts +24 -0
  780. package/dist/notifications/validation.d.ts.map +1 -0
  781. package/dist/notifications/validation.js +167 -0
  782. package/dist/notifications/validation.js.map +1 -0
  783. package/dist/openclaw/__tests__/dispatcher.test.js +0 -1
  784. package/dist/openclaw/__tests__/dispatcher.test.js.map +1 -1
  785. package/dist/openclaw/__tests__/index.test.js +82 -0
  786. package/dist/openclaw/__tests__/index.test.js.map +1 -1
  787. package/dist/openclaw/index.d.ts.map +1 -1
  788. package/dist/openclaw/index.js +24 -1
  789. package/dist/openclaw/index.js.map +1 -1
  790. package/dist/openclaw/types.d.ts +12 -0
  791. package/dist/openclaw/types.d.ts.map +1 -1
  792. package/dist/shared/types.d.ts +84 -20
  793. package/dist/shared/types.d.ts.map +1 -1
  794. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts +2 -0
  795. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts.map +1 -0
  796. package/dist/team/__tests__/api-interop.command-dialect.test.js +26 -0
  797. package/dist/team/__tests__/api-interop.command-dialect.test.js.map +1 -0
  798. package/dist/team/__tests__/api-interop.compatibility.test.d.ts +2 -0
  799. package/dist/team/__tests__/api-interop.compatibility.test.d.ts.map +1 -0
  800. package/dist/team/__tests__/api-interop.compatibility.test.js +93 -0
  801. package/dist/team/__tests__/api-interop.compatibility.test.js.map +1 -0
  802. package/dist/team/__tests__/cli-path-resolution.test.d.ts +2 -0
  803. package/dist/team/__tests__/cli-path-resolution.test.d.ts.map +1 -0
  804. package/dist/team/__tests__/cli-path-resolution.test.js +281 -0
  805. package/dist/team/__tests__/cli-path-resolution.test.js.map +1 -0
  806. package/dist/team/__tests__/index.compat-exports.test.d.ts +2 -0
  807. package/dist/team/__tests__/index.compat-exports.test.d.ts.map +1 -0
  808. package/dist/team/__tests__/index.compat-exports.test.js +20 -0
  809. package/dist/team/__tests__/index.compat-exports.test.js.map +1 -0
  810. package/dist/team/__tests__/layout-stabilizer.test.d.ts +2 -0
  811. package/dist/team/__tests__/layout-stabilizer.test.d.ts.map +1 -0
  812. package/dist/team/__tests__/layout-stabilizer.test.js +217 -0
  813. package/dist/team/__tests__/layout-stabilizer.test.js.map +1 -0
  814. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js +8 -4
  815. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js.map +1 -1
  816. package/dist/team/__tests__/mcp-team-bridge.usage.test.js +4 -2
  817. package/dist/team/__tests__/mcp-team-bridge.usage.test.js.map +1 -1
  818. package/dist/team/__tests__/model-contract.test.js +84 -8
  819. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  820. package/dist/team/__tests__/pane-readiness.test.d.ts +2 -0
  821. package/dist/team/__tests__/pane-readiness.test.d.ts.map +1 -0
  822. package/dist/team/__tests__/pane-readiness.test.js +185 -0
  823. package/dist/team/__tests__/pane-readiness.test.js.map +1 -0
  824. package/dist/team/__tests__/prompt-sanitization.test.js +1 -1
  825. package/dist/team/__tests__/prompt-sanitization.test.js.map +1 -1
  826. package/dist/team/__tests__/runtime-cli.test.d.ts +2 -0
  827. package/dist/team/__tests__/runtime-cli.test.d.ts.map +1 -0
  828. package/dist/team/__tests__/runtime-cli.test.js +159 -0
  829. package/dist/team/__tests__/runtime-cli.test.js.map +1 -0
  830. package/dist/team/__tests__/runtime-done-recovery.test.d.ts +2 -0
  831. package/dist/team/__tests__/runtime-done-recovery.test.d.ts.map +1 -0
  832. package/dist/team/__tests__/runtime-done-recovery.test.js +77 -0
  833. package/dist/team/__tests__/runtime-done-recovery.test.js.map +1 -0
  834. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts +2 -0
  835. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts.map +1 -0
  836. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js +139 -0
  837. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js.map +1 -0
  838. package/dist/team/__tests__/runtime-prompt-mode.test.js +167 -14
  839. package/dist/team/__tests__/runtime-prompt-mode.test.js.map +1 -1
  840. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts +2 -0
  841. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts.map +1 -0
  842. package/dist/team/__tests__/runtime-v2.feature-flag.test.js +20 -0
  843. package/dist/team/__tests__/runtime-v2.feature-flag.test.js.map +1 -0
  844. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts +2 -0
  845. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts.map +1 -0
  846. package/dist/team/__tests__/runtime-watchdog-retry.test.js +408 -0
  847. package/dist/team/__tests__/runtime-watchdog-retry.test.js.map +1 -0
  848. package/dist/team/__tests__/shell-path.test.d.ts +2 -0
  849. package/dist/team/__tests__/shell-path.test.d.ts.map +1 -0
  850. package/dist/team/__tests__/shell-path.test.js +193 -0
  851. package/dist/team/__tests__/shell-path.test.js.map +1 -0
  852. package/dist/team/__tests__/state-paths.test.d.ts +2 -0
  853. package/dist/team/__tests__/state-paths.test.d.ts.map +1 -0
  854. package/dist/team/__tests__/state-paths.test.js +16 -0
  855. package/dist/team/__tests__/state-paths.test.js.map +1 -0
  856. package/dist/team/__tests__/task-file-ops.test.js +8 -2
  857. package/dist/team/__tests__/task-file-ops.test.js.map +1 -1
  858. package/dist/team/__tests__/tmux-session.create-team.test.js +15 -17
  859. package/dist/team/__tests__/tmux-session.create-team.test.js.map +1 -1
  860. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts +2 -0
  861. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts.map +1 -0
  862. package/dist/team/__tests__/tmux-session.kill-team-session.test.js +56 -0
  863. package/dist/team/__tests__/tmux-session.kill-team-session.test.js.map +1 -0
  864. package/dist/team/__tests__/tmux-session.spawn.test.js +9 -0
  865. package/dist/team/__tests__/tmux-session.spawn.test.js.map +1 -1
  866. package/dist/team/__tests__/tmux-session.test.js +83 -5
  867. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  868. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts +2 -0
  869. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts.map +1 -0
  870. package/dist/team/__tests__/wait-for-shell-ready.test.js +242 -0
  871. package/dist/team/__tests__/wait-for-shell-ready.test.js.map +1 -0
  872. package/dist/team/__tests__/worker-bootstrap.test.js +11 -0
  873. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  874. package/dist/team/api-interop.d.ts +20 -0
  875. package/dist/team/api-interop.d.ts.map +1 -0
  876. package/dist/team/api-interop.js +601 -0
  877. package/dist/team/api-interop.js.map +1 -0
  878. package/dist/team/contracts.d.ts +14 -0
  879. package/dist/team/contracts.d.ts.map +1 -0
  880. package/dist/team/contracts.js +32 -0
  881. package/dist/team/contracts.js.map +1 -0
  882. package/dist/team/dispatch-queue.d.ts +64 -0
  883. package/dist/team/dispatch-queue.d.ts.map +1 -0
  884. package/dist/team/dispatch-queue.js +288 -0
  885. package/dist/team/dispatch-queue.js.map +1 -0
  886. package/dist/team/events.d.ts +49 -0
  887. package/dist/team/events.d.ts.map +1 -0
  888. package/dist/team/events.js +113 -0
  889. package/dist/team/events.js.map +1 -0
  890. package/dist/team/index.d.ts +15 -2
  891. package/dist/team/index.d.ts.map +1 -1
  892. package/dist/team/index.js +14 -1
  893. package/dist/team/index.js.map +1 -1
  894. package/dist/team/layout-stabilizer.d.ts +23 -0
  895. package/dist/team/layout-stabilizer.d.ts.map +1 -0
  896. package/dist/team/layout-stabilizer.js +117 -0
  897. package/dist/team/layout-stabilizer.js.map +1 -0
  898. package/dist/team/mcp-comm.d.ts +99 -0
  899. package/dist/team/mcp-comm.d.ts.map +1 -0
  900. package/dist/team/mcp-comm.js +235 -0
  901. package/dist/team/mcp-comm.js.map +1 -0
  902. package/dist/team/mcp-team-bridge.d.ts +2 -2
  903. package/dist/team/mcp-team-bridge.d.ts.map +1 -1
  904. package/dist/team/mcp-team-bridge.js +263 -144
  905. package/dist/team/mcp-team-bridge.js.map +1 -1
  906. package/dist/team/model-contract.d.ts +28 -1
  907. package/dist/team/model-contract.d.ts.map +1 -1
  908. package/dist/team/model-contract.js +143 -5
  909. package/dist/team/model-contract.js.map +1 -1
  910. package/dist/team/monitor.d.ts +45 -0
  911. package/dist/team/monitor.d.ts.map +1 -0
  912. package/dist/team/monitor.js +339 -0
  913. package/dist/team/monitor.js.map +1 -0
  914. package/dist/team/runtime-cli.d.ts +24 -0
  915. package/dist/team/runtime-cli.d.ts.map +1 -1
  916. package/dist/team/runtime-cli.js +230 -12
  917. package/dist/team/runtime-cli.js.map +1 -1
  918. package/dist/team/runtime-v2.d.ts +122 -0
  919. package/dist/team/runtime-v2.d.ts.map +1 -0
  920. package/dist/team/runtime-v2.js +766 -0
  921. package/dist/team/runtime-v2.js.map +1 -0
  922. package/dist/team/runtime.d.ts +2 -0
  923. package/dist/team/runtime.d.ts.map +1 -1
  924. package/dist/team/runtime.js +145 -52
  925. package/dist/team/runtime.js.map +1 -1
  926. package/dist/team/scaling.d.ts +59 -0
  927. package/dist/team/scaling.d.ts.map +1 -0
  928. package/dist/team/scaling.js +311 -0
  929. package/dist/team/scaling.js.map +1 -0
  930. package/dist/team/sentinel-gate.d.ts +23 -0
  931. package/dist/team/sentinel-gate.d.ts.map +1 -0
  932. package/dist/team/sentinel-gate.js +127 -0
  933. package/dist/team/sentinel-gate.js.map +1 -0
  934. package/dist/team/shell-path.d.ts +21 -0
  935. package/dist/team/shell-path.d.ts.map +1 -0
  936. package/dist/team/shell-path.js +73 -0
  937. package/dist/team/shell-path.js.map +1 -0
  938. package/dist/team/state/tasks.d.ts +48 -0
  939. package/dist/team/state/tasks.d.ts.map +1 -0
  940. package/dist/team/state/tasks.js +184 -0
  941. package/dist/team/state/tasks.js.map +1 -0
  942. package/dist/team/state-paths.d.ts +20 -4
  943. package/dist/team/state-paths.d.ts.map +1 -1
  944. package/dist/team/state-paths.js +29 -6
  945. package/dist/team/state-paths.js.map +1 -1
  946. package/dist/team/task-file-ops.d.ts +2 -1
  947. package/dist/team/task-file-ops.d.ts.map +1 -1
  948. package/dist/team/task-file-ops.js +19 -0
  949. package/dist/team/task-file-ops.js.map +1 -1
  950. package/dist/team/team-ops.d.ts +44 -0
  951. package/dist/team/team-ops.d.ts.map +1 -0
  952. package/dist/team/team-ops.js +547 -0
  953. package/dist/team/team-ops.js.map +1 -0
  954. package/dist/team/tmux-comm.d.ts.map +1 -1
  955. package/dist/team/tmux-comm.js +107 -44
  956. package/dist/team/tmux-comm.js.map +1 -1
  957. package/dist/team/tmux-session.d.ts +5 -0
  958. package/dist/team/tmux-session.d.ts.map +1 -1
  959. package/dist/team/tmux-session.js +81 -10
  960. package/dist/team/tmux-session.js.map +1 -1
  961. package/dist/team/types.d.ts +303 -8
  962. package/dist/team/types.d.ts.map +1 -1
  963. package/dist/team/types.js +2 -1
  964. package/dist/team/types.js.map +1 -1
  965. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  966. package/dist/team/worker-bootstrap.js +73 -21
  967. package/dist/team/worker-bootstrap.js.map +1 -1
  968. package/dist/tools/__tests__/cancel-integration.test.d.ts +2 -0
  969. package/dist/tools/__tests__/cancel-integration.test.d.ts.map +1 -0
  970. package/dist/tools/__tests__/cancel-integration.test.js +248 -0
  971. package/dist/tools/__tests__/cancel-integration.test.js.map +1 -0
  972. package/dist/tools/__tests__/memory-tools.test.d.ts +2 -0
  973. package/dist/tools/__tests__/memory-tools.test.d.ts.map +1 -0
  974. package/dist/tools/__tests__/memory-tools.test.js +66 -0
  975. package/dist/tools/__tests__/memory-tools.test.js.map +1 -0
  976. package/dist/tools/__tests__/state-tools.test.js +73 -5
  977. package/dist/tools/__tests__/state-tools.test.js.map +1 -1
  978. package/dist/tools/lsp/__tests__/client-eviction.test.js +6 -6
  979. package/dist/tools/lsp/__tests__/client-eviction.test.js.map +1 -1
  980. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts +2 -0
  981. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts.map +1 -0
  982. package/dist/tools/lsp/__tests__/client-timeout-env.test.js +39 -0
  983. package/dist/tools/lsp/__tests__/client-timeout-env.test.js.map +1 -0
  984. package/dist/tools/lsp/client.d.ts +2 -0
  985. package/dist/tools/lsp/client.d.ts.map +1 -1
  986. package/dist/tools/lsp/client.js +11 -1
  987. package/dist/tools/lsp/client.js.map +1 -1
  988. package/dist/tools/lsp/index.d.ts +1 -1
  989. package/dist/tools/lsp/index.d.ts.map +1 -1
  990. package/dist/tools/lsp/index.js +1 -1
  991. package/dist/tools/lsp/index.js.map +1 -1
  992. package/dist/tools/memory-tools.d.ts.map +1 -1
  993. package/dist/tools/memory-tools.js +2 -1
  994. package/dist/tools/memory-tools.js.map +1 -1
  995. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts +2 -0
  996. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts.map +1 -0
  997. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js +138 -0
  998. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js.map +1 -0
  999. package/dist/tools/python-repl/bridge-manager.d.ts.map +1 -1
  1000. package/dist/tools/python-repl/bridge-manager.js +104 -24
  1001. package/dist/tools/python-repl/bridge-manager.js.map +1 -1
  1002. package/dist/tools/python-repl/paths.d.ts +8 -0
  1003. package/dist/tools/python-repl/paths.d.ts.map +1 -1
  1004. package/dist/tools/python-repl/paths.js +10 -0
  1005. package/dist/tools/python-repl/paths.js.map +1 -1
  1006. package/dist/tools/python-repl/socket-client.d.ts.map +1 -1
  1007. package/dist/tools/python-repl/socket-client.js +9 -2
  1008. package/dist/tools/python-repl/socket-client.js.map +1 -1
  1009. package/dist/tools/shared-memory-tools.d.ts +55 -0
  1010. package/dist/tools/shared-memory-tools.d.ts.map +1 -0
  1011. package/dist/tools/shared-memory-tools.js +250 -0
  1012. package/dist/tools/shared-memory-tools.js.map +1 -0
  1013. package/dist/tools/state-tools.d.ts.map +1 -1
  1014. package/dist/tools/state-tools.js +126 -101
  1015. package/dist/tools/state-tools.js.map +1 -1
  1016. package/dist/utils/daemon-module-path.d.ts +9 -0
  1017. package/dist/utils/daemon-module-path.d.ts.map +1 -0
  1018. package/dist/utils/daemon-module-path.js +23 -0
  1019. package/dist/utils/daemon-module-path.js.map +1 -0
  1020. package/dist/utils/jsonc.d.ts +16 -0
  1021. package/dist/utils/jsonc.d.ts.map +1 -0
  1022. package/dist/utils/jsonc.js +64 -0
  1023. package/dist/utils/jsonc.js.map +1 -0
  1024. package/dist/utils/paths.js +1 -1
  1025. package/dist/utils/paths.js.map +1 -1
  1026. package/dist/utils/ssrf-guard.d.ts +26 -0
  1027. package/dist/utils/ssrf-guard.d.ts.map +1 -0
  1028. package/dist/utils/ssrf-guard.js +103 -0
  1029. package/dist/utils/ssrf-guard.js.map +1 -0
  1030. package/dist/verification/tier-selector.d.ts +1 -1
  1031. package/dist/verification/tier-selector.js +1 -1
  1032. package/docs/ANALYTICS-SYSTEM.md +2 -5
  1033. package/docs/CLAUDE.md +88 -212
  1034. package/docs/MIGRATION.md +138 -161
  1035. package/docs/PERFORMANCE-MONITORING.md +5 -5
  1036. package/docs/REFERENCE.md +351 -286
  1037. package/docs/ko/ARCHITECTURE.md +152 -0
  1038. package/docs/ko/FEATURES.md +582 -0
  1039. package/docs/ko/MIGRATION.md +1027 -0
  1040. package/docs/ko/REFERENCE.md +745 -0
  1041. package/docs/partials/mode-selection-guide.md +22 -12
  1042. package/docs/shared/mode-selection-guide.md +22 -12
  1043. package/package.json +11 -6
  1044. package/scripts/ask-codex.sh +24 -0
  1045. package/scripts/ask-gemini.sh +24 -0
  1046. package/scripts/build-cli.mjs +47 -0
  1047. package/scripts/build-runtime-cli.mjs +2 -0
  1048. package/scripts/context-guard-stop.mjs +66 -3
  1049. package/scripts/context-safety.mjs +67 -2
  1050. package/scripts/keyword-detector.mjs +14 -36
  1051. package/scripts/persistent-mode.cjs +106 -1
  1052. package/scripts/persistent-mode.mjs +88 -2
  1053. package/scripts/plugin-setup.mjs +46 -4
  1054. package/scripts/pre-tool-enforcer.mjs +1 -0
  1055. package/scripts/qa-tests/test-custom-integration.mjs +144 -0
  1056. package/scripts/run-provider-advisor.js +220 -0
  1057. package/scripts/session-start.mjs +42 -2
  1058. package/skills/AGENTS.md +15 -20
  1059. package/skills/ask-codex/SKILL.md +47 -0
  1060. package/skills/ask-gemini/SKILL.md +47 -0
  1061. package/skills/autopilot/SKILL.md +39 -5
  1062. package/skills/cancel/SKILL.md +23 -105
  1063. package/skills/ccg/SKILL.md +58 -75
  1064. package/skills/configure-notifications/SKILL.md +276 -0
  1065. package/skills/configure-openclaw/SKILL.md +63 -0
  1066. package/skills/deep-interview/SKILL.md +551 -0
  1067. package/skills/deepinit/SKILL.md +1 -1
  1068. package/skills/hud/SKILL.md +35 -3
  1069. package/skills/omc-doctor/SKILL.md +30 -13
  1070. package/skills/omc-help/SKILL.md +1 -1
  1071. package/skills/omc-setup/SKILL.md +20 -20
  1072. package/skills/omc-teams/SKILL.md +60 -112
  1073. package/skills/plan/SKILL.md +5 -5
  1074. package/skills/ralph/SKILL.md +96 -70
  1075. package/skills/ralplan/SKILL.md +7 -7
  1076. package/skills/security-review/SKILL.md +2 -2
  1077. package/skills/team/SKILL.md +36 -2
  1078. package/skills/ultrawork/SKILL.md +7 -7
  1079. package/templates/hooks/keyword-detector.mjs +20 -28
  1080. package/templates/hooks/persistent-mode.mjs +89 -2
  1081. package/templates/hooks/pre-tool-use.mjs +53 -0
  1082. package/templates/hooks/session-start.mjs +3 -3
  1083. package/skills/pipeline/SKILL.md +0 -434
  1084. package/skills/review/SKILL.md +0 -30
  1085. package/skills/ultrapilot/SKILL.md +0 -632
@@ -8,14 +8,14 @@ description: Self-referential loop until task completion with architect verifica
8
8
  Your previous attempt did not output the completion promise. Continue working on the task.
9
9
 
10
10
  <Purpose>
11
- Ralph is a persistence loop that keeps working on a task until it is fully complete and architect-verified. It wraps ultrawork's parallel execution with session persistence, automatic retry on failure, and mandatory verification before completion.
11
+ Ralph is a PRD-driven persistence loop that keeps working on a task until ALL user stories in prd.json have passes: true and are architect-verified. It wraps ultrawork's parallel execution with session persistence, automatic retry on failure, structured story tracking, and mandatory verification before completion.
12
12
  </Purpose>
13
13
 
14
14
  <Use_When>
15
15
  - Task requires guaranteed completion with verification (not just "do your best")
16
16
  - User says "ralph", "don't stop", "must complete", "finish this", or "keep going until done"
17
17
  - Work may span multiple iterations and needs persistence across retries
18
- - Task benefits from parallel execution with architect sign-off at the end
18
+ - Task benefits from structured PRD-driven execution with architect sign-off
19
19
  </Use_When>
20
20
 
21
21
  <Do_Not_Use_When>
@@ -26,9 +26,19 @@ Ralph is a persistence loop that keeps working on a task until it is fully compl
26
26
  </Do_Not_Use_When>
27
27
 
28
28
  <Why_This_Exists>
29
- Complex tasks often fail silently: partial implementations get declared "done", tests get skipped, edge cases get forgotten. Ralph prevents this by looping until work is genuinely complete, requiring fresh verification evidence before allowing completion, and using tiered architect review to confirm quality.
29
+ Complex tasks often fail silently: partial implementations get declared "done", tests get skipped, edge cases get forgotten. Ralph prevents this by:
30
+ 1. Structuring work into discrete user stories with testable acceptance criteria (prd.json)
31
+ 2. Iterating story-by-story until each one passes
32
+ 3. Tracking progress and learnings across iterations (progress.txt)
33
+ 4. Requiring fresh architect verification against specific acceptance criteria before completion
30
34
  </Why_This_Exists>
31
35
 
36
+ <PRD_Mode>
37
+ By default, ralph operates in PRD mode. A scaffold `prd.json` is auto-generated when ralph starts if none exists.
38
+
39
+ **Opt-out:** If `{{PROMPT}}` contains `--no-prd`, skip PRD generation and work in legacy mode (no story tracking, generic verification). Use this for trivial quick fixes.
40
+ </PRD_Mode>
41
+
32
42
  <Execution_Policy>
33
43
  - Fire independent agent calls simultaneously -- never wait sequentially for independent work
34
44
  - Use `run_in_background: true` for long operations (installs, builds, test suites)
@@ -38,25 +48,52 @@ Complex tasks often fail silently: partial implementations get declared "done",
38
48
  </Execution_Policy>
39
49
 
40
50
  <Steps>
41
- 1. **Review progress**: Check TODO list and any prior iteration state
42
- 2. **Continue from where you left off**: Pick up incomplete tasks
43
- 3. **Delegate in parallel**: Route tasks to specialist agents at appropriate tiers
44
- - Simple lookups: LOW tier (Haiku) -- "What does this function return?"
45
- - Standard work: MEDIUM tier (Sonnet) -- "Add error handling to this module"
46
- - Complex analysis: HIGH tier (Opus) -- "Debug this race condition"
47
- 4. **Run long operations in background**: Builds, installs, test suites use `run_in_background: true`
48
- 5. **Verify completion with fresh evidence**:
49
- a. Identify what command proves the task is complete
50
- b. Run verification (test, build, lint)
51
- c. Read the output -- confirm it actually passed
52
- d. Check: zero pending/in_progress TODO items
53
- 6. **Architect verification** (tiered):
51
+ 1. **PRD Setup** (first iteration only):
52
+ a. Check if `prd.json` exists (in project root or `.omc/`). If it already exists, read it and proceed to Step 2.
53
+ b. If no `prd.json` exists, the system has auto-generated a scaffold. Read `.omc/prd.json`.
54
+ c. **CRITICAL: Refine the scaffold.** The auto-generated PRD has generic acceptance criteria ("Implementation is complete", etc.). You MUST replace these with task-specific criteria:
55
+ - Analyze the original task and break it into right-sized user stories (each completable in one iteration)
56
+ - Write concrete, verifiable acceptance criteria for each story (e.g., "Function X returns Y when given Z", "Test file exists at path P and passes")
57
+ - If acceptance criteria are generic (e.g., "Implementation is complete"), REPLACE them with task-specific criteria before proceeding
58
+ - Order stories by priority (foundational work first, dependent work later)
59
+ - Write the refined `prd.json` back to disk
60
+ d. Initialize `progress.txt` if it doesn't exist
61
+
62
+ 2. **Pick next story**: Read `prd.json` and select the highest-priority story with `passes: false`. This is your current focus.
63
+
64
+ 3. **Implement the current story**:
65
+ - Delegate to specialist agents at appropriate tiers:
66
+ - Simple lookups: LOW tier (Haiku) -- "What does this function return?"
67
+ - Standard work: MEDIUM tier (Sonnet) -- "Add error handling to this module"
68
+ - Complex analysis: HIGH tier (Opus) -- "Debug this race condition"
69
+ - If during implementation you discover sub-tasks, add them as new stories to `prd.json`
70
+ - Run long operations in background: Builds, installs, test suites use `run_in_background: true`
71
+
72
+ 4. **Verify the current story's acceptance criteria**:
73
+ a. For EACH acceptance criterion in the story, verify it is met with fresh evidence
74
+ b. Run relevant checks (test, build, lint, typecheck) and read the output
75
+ c. If any criterion is NOT met, continue working -- do NOT mark the story as complete
76
+
77
+ 5. **Mark story complete**:
78
+ a. When ALL acceptance criteria are verified, set `passes: true` for this story in `prd.json`
79
+ b. Record progress in `progress.txt`: what was implemented, files changed, learnings for future iterations
80
+ c. Add any discovered codebase patterns to `progress.txt`
81
+
82
+ 6. **Check PRD completion**:
83
+ a. Read `prd.json` -- are ALL stories marked `passes: true`?
84
+ b. If NOT all complete, loop back to Step 2 (pick next story)
85
+ c. If ALL complete, proceed to Step 7 (architect verification)
86
+
87
+ 7. **Architect verification** (tiered, against acceptance criteria):
54
88
  - <5 files, <100 lines with full tests: STANDARD tier minimum (architect-medium / Sonnet)
55
89
  - Standard changes: STANDARD tier (architect-medium / Sonnet)
56
90
  - >20 files or security/architectural changes: THOROUGH tier (architect / Opus)
57
91
  - Ralph floor: always at least STANDARD, even for small changes
58
- 7. **On approval**: Run `/oh-my-claudecode:cancel` to cleanly exit and clean up all state files
59
- 8. **On rejection**: Fix the issues raised, then re-verify at the same tier
92
+ - The architect verifies against the SPECIFIC acceptance criteria from prd.json, not vague "is it done?"
93
+
94
+ 8. **On approval**: Run `/oh-my-claudecode:cancel` to cleanly exit and clean up all state files
95
+
96
+ 9. **On rejection**: Fix the issues raised, re-verify at the same tier, then loop back to check if the story needs to be marked incomplete
60
97
  </Steps>
61
98
 
62
99
  <Tool_Usage>
@@ -67,43 +104,67 @@ Complex tasks often fail silently: partial implementations get declared "done",
67
104
  </Tool_Usage>
68
105
 
69
106
  <Examples>
107
+ <Good>
108
+ PRD refinement in Step 1:
109
+ ```
110
+ Auto-generated scaffold has:
111
+ acceptanceCriteria: ["Implementation is complete", "Code compiles without errors"]
112
+
113
+ After refinement:
114
+ acceptanceCriteria: [
115
+ "detectNoPrdFlag('ralph --no-prd fix') returns true",
116
+ "detectNoPrdFlag('ralph fix this') returns false",
117
+ "stripNoPrdFlag removes --no-prd and trims whitespace",
118
+ "TypeScript compiles with no errors (npm run build)"
119
+ ]
120
+ ```
121
+ Why good: Generic criteria replaced with specific, testable criteria.
122
+ </Good>
123
+
70
124
  <Good>
71
125
  Correct parallel delegation:
72
126
  ```
73
- Task(subagent_type="oh-my-claudecode:executor-low", model="haiku", prompt="Add type export for UserConfig")
127
+ Task(subagent_type="oh-my-claudecode:executor", model="haiku", prompt="Add type export for UserConfig")
74
128
  Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Implement the caching layer for API responses")
75
- Task(subagent_type="oh-my-claudecode:executor-high", model="opus", prompt="Refactor auth module to support OAuth2 flow")
129
+ Task(subagent_type="oh-my-claudecode:executor", model="opus", prompt="Refactor auth module to support OAuth2 flow")
76
130
  ```
77
131
  Why good: Three independent tasks fired simultaneously at appropriate tiers.
78
132
  </Good>
79
133
 
80
134
  <Good>
81
- Correct verification before completion:
135
+ Story-by-story verification:
82
136
  ```
83
- 1. Run: npm test → Output: "42 passed, 0 failed"
84
- 2. Run: npm run build → Output: "Build succeeded"
85
- 3. Run: lsp_diagnostics Output: 0 errors
86
- 4. Spawn architect-medium → Verdict: "APPROVED"
87
- 5. Run /oh-my-claudecode:cancel
137
+ 1. Story US-001: "Add flag detection helpers"
138
+ - Criterion: "detectNoPrdFlag returns true for --no-prd" → Run test → PASS
139
+ - Criterion: "TypeScript compiles" Run build → PASS
140
+ - Mark US-001 passes: true
141
+ 2. Story US-002: "Wire PRD into bridge.ts"
142
+ - Continue to next story...
88
143
  ```
89
- Why good: Fresh evidence at each step, architect verification, then clean exit.
144
+ Why good: Each story verified against its own acceptance criteria before marking complete.
90
145
  </Good>
91
146
 
92
147
  <Bad>
93
- Claiming completion without verification:
148
+ Claiming completion without PRD verification:
94
149
  "All the changes look good, the implementation should work correctly. Task complete."
95
- Why bad: Uses "should" and "look good" -- no fresh test/build output, no architect verification.
150
+ Why bad: Uses "should" and "look good" -- no fresh evidence, no story-by-story verification, no architect review.
96
151
  </Bad>
97
152
 
98
153
  <Bad>
99
154
  Sequential execution of independent tasks:
100
155
  ```
101
- Task(executor-low, "Add type export") → wait →
156
+ Task(executor, "Add type export") → wait →
102
157
  Task(executor, "Implement caching") → wait →
103
- Task(executor-high, "Refactor auth")
158
+ Task(executor, "Refactor auth")
104
159
  ```
105
160
  Why bad: These are independent tasks that should run in parallel, not sequentially.
106
161
  </Bad>
162
+
163
+ <Bad>
164
+ Keeping generic acceptance criteria:
165
+ "prd.json created with criteria: Implementation is complete, Code compiles. Moving on to coding."
166
+ Why bad: Did not refine scaffold criteria into task-specific ones. This is PRD theater.
167
+ </Bad>
107
168
  </Examples>
108
169
 
109
170
  <Escalation_And_Stop_Conditions>
@@ -115,54 +176,19 @@ Why bad: These are independent tasks that should run in parallel, not sequential
115
176
  </Escalation_And_Stop_Conditions>
116
177
 
117
178
  <Final_Checklist>
179
+ - [ ] All prd.json stories have `passes: true` (no incomplete stories)
180
+ - [ ] prd.json acceptance criteria are task-specific (not generic boilerplate)
118
181
  - [ ] All requirements from the original task are met (no scope reduction)
119
182
  - [ ] Zero pending or in_progress TODO items
120
183
  - [ ] Fresh test run output shows all tests pass
121
184
  - [ ] Fresh build output shows success
122
185
  - [ ] lsp_diagnostics shows 0 errors on affected files
123
- - [ ] Architect verification passed (STANDARD tier minimum)
186
+ - [ ] progress.txt records implementation details and learnings
187
+ - [ ] Architect verification passed (STANDARD tier minimum) against specific acceptance criteria
124
188
  - [ ] `/oh-my-claudecode:cancel` run for clean state cleanup
125
189
  </Final_Checklist>
126
190
 
127
191
  <Advanced>
128
- ## PRD Mode (Optional)
129
-
130
- When the user provides the `--prd` flag, initialize a Product Requirements Document before starting the ralph loop.
131
-
132
- ### Detecting PRD Mode
133
- Check if `{{PROMPT}}` contains `--prd` or `--PRD`.
134
-
135
- ### PRD Workflow
136
- 1. Create `.omc/prd.json` and `.omc/progress.txt`
137
- 2. Parse the task (everything after `--prd` flag)
138
- 3. Break down into user stories:
139
-
140
- ```json
141
- {
142
- "project": "[Project Name]",
143
- "branchName": "ralph/[feature-name]",
144
- "description": "[Feature description]",
145
- "userStories": [
146
- {
147
- "id": "US-001",
148
- "title": "[Short title]",
149
- "description": "As a [user], I want to [action] so that [benefit].",
150
- "acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
151
- "priority": 1,
152
- "passes": false
153
- }
154
- ]
155
- }
156
- ```
157
-
158
- 4. Create `progress.txt` with timestamp and empty patterns section
159
- 5. Guidelines: right-sized stories (one session each), verifiable criteria, independent stories, priority order (foundational work first)
160
- 6. Proceed to normal ralph loop using user stories as the task list
161
-
162
- ### Example
163
- User input: `--prd build a todo app with React and TypeScript`
164
- Workflow: Detect flag, extract task, create `.omc/prd.json`, create `.omc/progress.txt`, begin ralph loop.
165
-
166
192
  ## Background Execution Rules
167
193
 
168
194
  **Run in background** (`run_in_background: true`):
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: ralplan
3
- description: Alias for /plan --consensus
3
+ description: Alias for /omc-plan --consensus
4
4
  ---
5
5
 
6
6
  # Ralplan (Consensus Planning Alias)
7
7
 
8
- Ralplan is a shorthand alias for `/oh-my-claudecode:plan --consensus`. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with **RALPLAN-DR structured deliberation** (short mode by default, deliberate mode for high-risk work).
8
+ Ralplan is a shorthand alias for `/oh-my-claudecode:omc-plan --consensus`. It triggers iterative planning with Planner, Architect, and Critic agents until consensus is reached, with **RALPLAN-DR structured deliberation** (short mode by default, deliberate mode for high-risk work).
9
9
 
10
10
  ## Usage
11
11
 
@@ -29,7 +29,7 @@ Ralplan is a shorthand alias for `/oh-my-claudecode:plan --consensus`. It trigge
29
29
  This skill invokes the Plan skill in consensus mode:
30
30
 
31
31
  ```
32
- /oh-my-claudecode:plan --consensus <arguments>
32
+ /oh-my-claudecode:omc-plan --consensus <arguments>
33
33
  ```
34
34
 
35
35
  The consensus workflow:
@@ -49,9 +49,9 @@ The consensus workflow:
49
49
  d. Return to Critic evaluation
50
50
  e. Repeat this loop until Critic returns `APPROVE` or 5 iterations are reached
51
51
  f. If 5 iterations are reached without `APPROVE`, present the best version to the user
52
- 6. On Critic approval *(--interactive only)*: If `--interactive` is set, use `AskUserQuestion` to present the plan with approval options (Approve and execute via ralph / Approve and implement via team / Clear context and implement / Request changes / Reject). Final plan must include ADR (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups). Otherwise, output the final plan and stop.
53
- 7. *(--interactive only)* User chooses: Approve (ralph or team), Request changes, or Reject
54
- 8. *(--interactive only)* On approval: invoke `Skill("oh-my-claudecode:ralph")` for sequential execution or `Skill("oh-my-claudecode:team")` for parallel team execution -- never implement directly
52
+ 6. On Critic approval *(--interactive only)*: If `--interactive` is set, use `AskUserQuestion` to present the plan with approval options (Approve and implement via team (Recommended) / Approve and execute via ralph / Clear context and implement / Request changes / Reject). Final plan must include ADR (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups). Otherwise, output the final plan and stop.
53
+ 7. *(--interactive only)* User chooses: Approve (team or ralph), Request changes, or Reject
54
+ 8. *(--interactive only)* On approval: invoke `Skill("oh-my-claudecode:team")` for parallel team execution (recommended) or `Skill("oh-my-claudecode:ralph")` for sequential execution -- never implement directly
55
55
 
56
56
  > **Important:** Steps 3 and 4 MUST run sequentially. Do NOT issue both agent Task calls in the same parallel batch. Always await the Architect result before issuing the Critic Task.
57
57
 
@@ -117,8 +117,8 @@ The gate auto-passes when it detects **any** concrete signal. You do not need al
117
117
  - **Architect** reviews for soundness
118
118
  - **Critic** validates quality and testability
119
119
  5. On consensus approval, user chooses execution path:
120
+ - **team**: parallel coordinated agents (recommended)
120
121
  - **ralph**: sequential execution with verification
121
- - **team**: parallel coordinated agents
122
122
  6. Execution begins with a clear, bounded plan
123
123
 
124
124
  ### Troubleshooting
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: security-review
2
+ name: omc-security-review
3
3
  description: Run a comprehensive security review on code
4
4
  ---
5
5
 
@@ -258,7 +258,7 @@ The security-reviewer agent verifies:
258
258
  ```
259
259
  /pipeline security "review authentication module"
260
260
  ```
261
- Uses: explore → security-reviewer → executor → security-reviewer-low (re-verify)
261
+ Uses: explore → security-reviewer → executor → security-reviewer (re-verify)
262
262
 
263
263
  **With Swarm:**
264
264
  ```
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: team
3
3
  description: N coordinated agents on shared task list using Claude Code native teams
4
- aliases: [swarm]
4
+ aliases: []
5
5
  ---
6
6
 
7
7
  # Team Skill
8
8
 
9
9
  Spawn N coordinated agents working on a shared task list using Claude Code's native team tools. Replaces the legacy `/swarm` skill (SQLite-based) with built-in team management, inter-agent messaging, and task dependencies -- no external dependencies required.
10
10
 
11
- `swarm` is the compatibility alias for this canonical skill entrypoint.
11
+ The `swarm` compatibility alias was removed in #1131.
12
12
 
13
13
  ## Usage
14
14
 
@@ -439,6 +439,7 @@ When spawning teammates, include this preamble in the prompt to establish the wo
439
439
  ```
440
440
  You are a TEAM WORKER in team "{team_name}". Your name is "{worker_name}".
441
441
  You report to the team lead ("team-lead").
442
+ You are not the leader and must not perform leader orchestration actions.
442
443
 
443
444
  == WORK PROTOCOL ==
444
445
 
@@ -474,11 +475,23 @@ Do NOT mark the task as completed. Leave it in_progress so the lead can reassign
474
475
 
475
476
  == RULES ==
476
477
  - NEVER spawn sub-agents or use the Task tool
478
+ - NEVER run tmux pane/session orchestration commands (for example `tmux split-window`, `tmux new-session`)
479
+ - NEVER run team spawning/orchestration skills or commands (for example `$team`, `$ultrawork`, `$autopilot`, `$ralph`, `omc team ...`, `omx team ...`)
477
480
  - ALWAYS use absolute file paths
478
481
  - ALWAYS report progress via SendMessage to "team-lead"
479
482
  - Use SendMessage with type "message" only -- never "broadcast"
480
483
  ```
481
484
 
485
+ ### Agent-Type Prompt Injection (Worker-Specific Addendum)
486
+
487
+ When composing teammate prompts, append a short addendum based on worker type:
488
+
489
+ - `claude_worker`: Emphasize strict TaskList/TaskUpdate/SendMessage loop and no orchestration commands.
490
+ - `codex_worker`: Emphasize CLI API lifecycle (`omc team api ... --json`) and explicit failure ACKs with stderr.
491
+ - `gemini_worker`: Emphasize bounded file ownership and milestone ACKs after each completed sub-step.
492
+
493
+ This addendum must preserve the core rule: **worker = executor only, never leader/orchestrator**.
494
+
482
495
  ## Communication Patterns
483
496
 
484
497
  ### Teammate to Lead (task completion report)
@@ -834,6 +847,27 @@ When team is linked to ralph, cancellation follows dependency order:
834
847
 
835
848
  If teammates are unresponsive, `TeamDelete` may fail. In that case, the cancel skill should wait briefly and retry, or inform the user to manually clean up `~/.claude/teams/{team_name}/` and `~/.claude/tasks/{team_name}/`.
836
849
 
850
+ ## Runtime V2 (Event-Driven)
851
+
852
+ When `OMC_RUNTIME_V2=1` is set, the team runtime uses an event-driven architecture instead of the legacy done.json polling watchdog:
853
+
854
+ - **No done.json**: Task completion is detected via CLI API lifecycle transitions (claim-task, transition-task-status)
855
+ - **Snapshot-based monitoring**: Each poll cycle takes a point-in-time snapshot of tasks and workers, computes deltas, and emits events
856
+ - **Event log**: All team events are appended to `.omc/state/team/{teamName}/events.jsonl`
857
+ - **Worker status files**: Workers write status to `.omc/state/team/{teamName}/workers/{name}/status.json`
858
+ - **Preserved**: Sentinel gate (blocks premature completion), circuit breaker (dead worker detection), failure sidecars
859
+
860
+ The v2 runtime is feature-flagged and can be enabled per-session. The legacy v1 runtime remains the default.
861
+
862
+ ## Dynamic Scaling
863
+
864
+ When `OMC_TEAM_SCALING_ENABLED=1` is set, the team supports mid-session scaling:
865
+
866
+ - **scale_up**: Add workers to a running team (respects max_workers limit)
867
+ - **scale_down**: Remove idle workers with graceful drain (workers finish current task before removal)
868
+ - File-based scaling lock prevents concurrent scale operations
869
+ - Monotonic worker index counter ensures unique worker names across scale events
870
+
837
871
  ## Configuration
838
872
 
839
873
  Optional settings via `.omc-config.json`:
@@ -50,9 +50,9 @@ Sequential task execution wastes time when tasks are independent. Ultrawork enab
50
50
  </Steps>
51
51
 
52
52
  <Tool_Usage>
53
- - Use `Task(subagent_type="oh-my-claudecode:executor-low", model="haiku", ...)` for simple changes
53
+ - Use `Task(subagent_type="oh-my-claudecode:executor", model="haiku", ...)` for simple changes
54
54
  - Use `Task(subagent_type="oh-my-claudecode:executor", model="sonnet", ...)` for standard work
55
- - Use `Task(subagent_type="oh-my-claudecode:executor-high", model="opus", ...)` for complex work
55
+ - Use `Task(subagent_type="oh-my-claudecode:executor", model="opus", ...)` for complex work
56
56
  - Use `run_in_background: true` for package installs, builds, and test suites
57
57
  - Use foreground execution for quick status checks and file operations
58
58
  </Tool_Usage>
@@ -61,7 +61,7 @@ Sequential task execution wastes time when tasks are independent. Ultrawork enab
61
61
  <Good>
62
62
  Three independent tasks fired simultaneously:
63
63
  ```
64
- Task(subagent_type="oh-my-claudecode:executor-low", model="haiku", prompt="Add missing type export for Config interface")
64
+ Task(subagent_type="oh-my-claudecode:executor", model="haiku", prompt="Add missing type export for Config interface")
65
65
  Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Implement the /api/users endpoint with validation")
66
66
  Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Add integration tests for the auth middleware")
67
67
  ```
@@ -72,7 +72,7 @@ Why good: Independent tasks at appropriate tiers, all fired at once.
72
72
  Correct use of background execution:
73
73
  ```
74
74
  Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="npm install && npm run build", run_in_background=true)
75
- Task(subagent_type="oh-my-claudecode:executor-low", model="haiku", prompt="Update the README with new API endpoints")
75
+ Task(subagent_type="oh-my-claudecode:executor", model="haiku", prompt="Update the README with new API endpoints")
76
76
  ```
77
77
  Why good: Long build runs in background while short task runs in foreground.
78
78
  </Good>
@@ -80,7 +80,7 @@ Why good: Long build runs in background while short task runs in foreground.
80
80
  <Bad>
81
81
  Sequential execution of independent work:
82
82
  ```
83
- result1 = Task(executor-low, "Add type export") # wait...
83
+ result1 = Task(executor, "Add type export") # wait...
84
84
  result2 = Task(executor, "Implement endpoint") # wait...
85
85
  result3 = Task(executor, "Add tests") # wait...
86
86
  ```
@@ -90,9 +90,9 @@ Why bad: These tasks are independent. Running them sequentially wastes time.
90
90
  <Bad>
91
91
  Wrong tier selection:
92
92
  ```
93
- Task(subagent_type="oh-my-claudecode:executor-high", model="opus", prompt="Add a missing semicolon")
93
+ Task(subagent_type="oh-my-claudecode:executor", model="opus", prompt="Add a missing semicolon")
94
94
  ```
95
- Why bad: Opus is expensive overkill for a trivial fix. Use executor-low with Haiku instead.
95
+ Why bad: Opus is expensive overkill for a trivial fix. Use executor with Haiku instead.
96
96
  </Bad>
97
97
  </Examples>
98
98
 
@@ -226,21 +226,10 @@ function resolveConflicts(matches) {
226
226
 
227
227
  let resolved = [...matches];
228
228
 
229
- // Team beats autopilot (legacy ultrapilot semantics)
230
- if (names.includes('team') && names.includes('autopilot')) {
231
- resolved = resolved.filter(m => m.name !== 'autopilot');
232
- }
233
-
234
- // Team beats ultrapilot (team is the canonical implementation)
235
- if (names.includes('team') && names.includes('ultrapilot')) {
236
- resolved = resolved.filter(m => m.name !== 'ultrapilot');
237
- }
238
-
239
- // Ralph + Team coexist (team-ralph linked mode)
240
- // Both keywords are preserved so the skill can detect the composition.
229
+ // Team keyword detection removed team is now explicit-only via /team skill.
241
230
 
242
231
  // Sort by priority order
243
- const priorityOrder = ['cancel','ralph','autopilot','team','ultrawork',
232
+ const priorityOrder = ['cancel','ralph','autopilot','ultrawork',
244
233
  'pipeline','ccg','ralplan','plan','tdd','research','ultrathink','deepsearch','analyze'];
245
234
  resolved.sort((a, b) => priorityOrder.indexOf(a.name) - priorityOrder.indexOf(b.name));
246
235
 
@@ -289,6 +278,20 @@ function isTeamEnabled() {
289
278
 
290
279
  // Main
291
280
  async function main() {
281
+ // Skip guard: check OMC_SKIP_HOOKS env var (see issue #838)
282
+ const _skipHooks = (process.env.OMC_SKIP_HOOKS || '').split(',').map(s => s.trim());
283
+ if (process.env.DISABLE_OMC === '1' || _skipHooks.includes('keyword-detector')) {
284
+ console.log(JSON.stringify({ continue: true }));
285
+ return;
286
+ }
287
+
288
+ // Team worker guard: prevent keyword detection inside team workers to avoid
289
+ // infinite spawning loops (worker detects "team" -> invokes team skill -> spawns more workers)
290
+ if (process.env.OMC_TEAM_WORKER) {
291
+ console.log(JSON.stringify({ continue: true, suppressOutput: true }));
292
+ return;
293
+ }
294
+
292
295
  try {
293
296
  const input = await readStdin();
294
297
  if (!input.trim()) {
@@ -326,13 +329,8 @@ async function main() {
326
329
  matches.push({ name: 'autopilot', args: '' });
327
330
  }
328
331
 
329
- // Team keywords (intent-gated to prevent false positives on bare "team")
330
- // Uses negative lookbehind to exclude possessive/article contexts like "my team", "the team"
331
- const hasTeamKeyword = /(?<!\b(?:my|the|our|a|his|her|their|its)\s)\bteam\b/i.test(cleanPrompt) ||
332
- /\bcoordinated\s+team\b/i.test(cleanPrompt);
333
- if (hasTeamKeyword && isTeamEnabled()) {
334
- matches.push({ name: 'team', args: '' });
335
- }
332
+ // Team keyword detection removed team mode is now explicit-only via /team skill.
333
+ // This prevents infinite spawning when Claude workers receive prompts containing "team".
336
334
 
337
335
  // Ultrawork keywords
338
336
  if (/\b(ultrawork|ulw)\b/i.test(cleanPrompt)) {
@@ -398,14 +396,14 @@ async function main() {
398
396
 
399
397
  // Handle cancel specially - clear states and emit
400
398
  if (resolved.length > 0 && resolved[0].name === 'cancel') {
401
- clearStateFiles(directory, ['ralph', 'autopilot', 'team', 'ultrawork', 'pipeline']);
399
+ clearStateFiles(directory, ['ralph', 'autopilot', 'ultrawork', 'pipeline']);
402
400
  console.log(JSON.stringify(createHookOutput(createSkillInvocation('cancel', prompt))));
403
401
  return;
404
402
  }
405
403
 
406
404
  // Activate states for modes that need them
407
405
  const sessionId = data.sessionId || data.session_id || data.sessionid || '';
408
- const stateModes = resolved.filter(m => ['ralph', 'autopilot', 'team', 'ultrawork'].includes(m.name));
406
+ const stateModes = resolved.filter(m => ['ralph', 'autopilot', 'ultrawork'].includes(m.name));
409
407
  for (const mode of stateModes) {
410
408
  activateState(directory, prompt, mode.name, sessionId);
411
409
  }
@@ -413,16 +411,10 @@ async function main() {
413
411
  // Special: Ralph with ultrawork (ralph always includes ultrawork)
414
412
  const hasRalph = resolved.some(m => m.name === 'ralph');
415
413
  const hasUltrawork = resolved.some(m => m.name === 'ultrawork');
416
- const hasTeam = resolved.some(m => m.name === 'team');
417
414
  if (hasRalph && !hasUltrawork) {
418
415
  activateState(directory, prompt, 'ultrawork', sessionId);
419
416
  }
420
417
 
421
- // Link ralph + team if both detected (team-ralph composition)
422
- if (hasRalph && hasTeam) {
423
- linkRalphTeam(directory, sessionId);
424
- }
425
-
426
418
  // Handle ultrathink specially - prepend message instead of skill invocation
427
419
  const ultrathinkIndex = resolved.findIndex(m => m.name === 'ultrathink');
428
420
  if (ultrathinkIndex !== -1) {