claudecode-omc 4.4.10 → 4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1091) hide show
  1. package/.claude-plugin/marketplace.json +18 -4
  2. package/.claude-plugin/plugin.json +14 -1
  3. package/.mcp.json +0 -4
  4. package/README.de.md +260 -0
  5. package/README.es.md +27 -41
  6. package/README.fr.md +260 -0
  7. package/README.it.md +260 -0
  8. package/README.ja.md +27 -41
  9. package/README.ko.md +45 -54
  10. package/README.md +247 -14
  11. package/README.pt.md +23 -6
  12. package/README.ru.md +260 -0
  13. package/README.tr.md +260 -0
  14. package/README.vi.md +23 -6
  15. package/README.zh.md +27 -41
  16. package/agents/harsh-critic.md +254 -0
  17. package/bridge/cli.cjs +67181 -0
  18. package/bridge/gyoshu_bridge.py +69 -19
  19. package/bridge/mcp-server.cjs +846 -526
  20. package/bridge/runtime-cli.cjs +2861 -367
  21. package/bridge/team-bridge.cjs +216 -60
  22. package/bridge/team-mcp.cjs +493 -255
  23. package/bridge/team.js +1460 -0
  24. package/dist/__tests__/agent-registry.test.js +13 -3
  25. package/dist/__tests__/agent-registry.test.js.map +1 -1
  26. package/dist/__tests__/auto-slash-aliases.test.js +12 -20
  27. package/dist/__tests__/auto-slash-aliases.test.js.map +1 -1
  28. package/dist/__tests__/auto-update.test.js +1 -1
  29. package/dist/__tests__/auto-update.test.js.map +1 -1
  30. package/dist/__tests__/bash-history.test.js.map +1 -1
  31. package/dist/__tests__/cleanup-validation.test.d.ts +2 -0
  32. package/dist/__tests__/cleanup-validation.test.d.ts.map +1 -0
  33. package/dist/__tests__/cleanup-validation.test.js +44 -0
  34. package/dist/__tests__/cleanup-validation.test.js.map +1 -0
  35. package/dist/__tests__/config-force-inherit-env.test.d.ts +5 -0
  36. package/dist/__tests__/config-force-inherit-env.test.d.ts.map +1 -0
  37. package/dist/__tests__/config-force-inherit-env.test.js +35 -0
  38. package/dist/__tests__/config-force-inherit-env.test.js.map +1 -0
  39. package/dist/__tests__/consolidation-contracts.test.js +4 -7
  40. package/dist/__tests__/consolidation-contracts.test.js.map +1 -1
  41. package/dist/__tests__/daemon-module-path.test.d.ts +2 -0
  42. package/dist/__tests__/daemon-module-path.test.d.ts.map +1 -0
  43. package/dist/__tests__/daemon-module-path.test.js +29 -0
  44. package/dist/__tests__/daemon-module-path.test.js.map +1 -0
  45. package/dist/__tests__/delegation-enforcement-levels.test.js.map +1 -1
  46. package/dist/__tests__/delegation-enforcer.test.js +172 -0
  47. package/dist/__tests__/delegation-enforcer.test.js.map +1 -1
  48. package/dist/__tests__/doctor-conflicts.test.js +144 -1
  49. package/dist/__tests__/doctor-conflicts.test.js.map +1 -1
  50. package/dist/__tests__/file-lock.test.d.ts +2 -0
  51. package/dist/__tests__/file-lock.test.d.ts.map +1 -0
  52. package/dist/__tests__/file-lock.test.js +209 -0
  53. package/dist/__tests__/file-lock.test.js.map +1 -0
  54. package/dist/__tests__/hooks.test.js +27 -56
  55. package/dist/__tests__/hooks.test.js.map +1 -1
  56. package/dist/__tests__/hud/defaults.test.js +3 -0
  57. package/dist/__tests__/hud/defaults.test.js.map +1 -1
  58. package/dist/__tests__/hud/limits-error.test.d.ts +5 -0
  59. package/dist/__tests__/hud/limits-error.test.d.ts.map +1 -0
  60. package/dist/__tests__/hud/limits-error.test.js +43 -0
  61. package/dist/__tests__/hud/limits-error.test.js.map +1 -0
  62. package/dist/__tests__/hud/max-width.test.d.ts +2 -0
  63. package/dist/__tests__/hud/max-width.test.d.ts.map +1 -0
  64. package/dist/__tests__/hud/max-width.test.js +149 -0
  65. package/dist/__tests__/hud/max-width.test.js.map +1 -0
  66. package/dist/__tests__/hud/rate-limits-error.test.d.ts +5 -0
  67. package/dist/__tests__/hud/rate-limits-error.test.d.ts.map +1 -0
  68. package/dist/__tests__/hud/rate-limits-error.test.js +76 -0
  69. package/dist/__tests__/hud/rate-limits-error.test.js.map +1 -0
  70. package/dist/__tests__/hud/render.test.js +245 -1
  71. package/dist/__tests__/hud/render.test.js.map +1 -1
  72. package/dist/__tests__/hud/state.test.js +15 -0
  73. package/dist/__tests__/hud/state.test.js.map +1 -1
  74. package/dist/__tests__/hud/usage-api.test.js +19 -5
  75. package/dist/__tests__/hud/usage-api.test.js.map +1 -1
  76. package/dist/__tests__/hud/version-display.test.js +3 -1
  77. package/dist/__tests__/hud/version-display.test.js.map +1 -1
  78. package/dist/__tests__/hud-agents.test.js.map +1 -1
  79. package/dist/__tests__/hud-api-key-source.test.d.ts +7 -0
  80. package/dist/__tests__/hud-api-key-source.test.d.ts.map +1 -0
  81. package/dist/__tests__/hud-api-key-source.test.js +112 -0
  82. package/dist/__tests__/hud-api-key-source.test.js.map +1 -0
  83. package/dist/__tests__/hud-build-guidance.test.d.ts +2 -0
  84. package/dist/__tests__/hud-build-guidance.test.d.ts.map +1 -0
  85. package/dist/__tests__/hud-build-guidance.test.js +26 -0
  86. package/dist/__tests__/hud-build-guidance.test.js.map +1 -0
  87. package/dist/__tests__/installer-hooks-merge.test.js +1 -1
  88. package/dist/__tests__/installer-hooks-merge.test.js.map +1 -1
  89. package/dist/__tests__/installer.test.js +4 -0
  90. package/dist/__tests__/installer.test.js.map +1 -1
  91. package/dist/__tests__/job-management.test.js +1 -1
  92. package/dist/__tests__/job-management.test.js.map +1 -1
  93. package/dist/__tests__/live-data.test.js +11 -5
  94. package/dist/__tests__/live-data.test.js.map +1 -1
  95. package/dist/__tests__/mcp-default-config.test.d.ts +2 -0
  96. package/dist/__tests__/mcp-default-config.test.d.ts.map +1 -0
  97. package/dist/__tests__/mcp-default-config.test.js +13 -0
  98. package/dist/__tests__/mcp-default-config.test.js.map +1 -0
  99. package/dist/__tests__/model-routing.test.js.map +1 -1
  100. package/dist/__tests__/non-claude-provider-detection.test.d.ts +11 -0
  101. package/dist/__tests__/non-claude-provider-detection.test.d.ts.map +1 -0
  102. package/dist/__tests__/non-claude-provider-detection.test.js +303 -0
  103. package/dist/__tests__/non-claude-provider-detection.test.js.map +1 -0
  104. package/dist/__tests__/omc-tools-server.test.js +5 -5
  105. package/dist/__tests__/package-dir-resolution-regression.test.d.ts +2 -0
  106. package/dist/__tests__/package-dir-resolution-regression.test.d.ts.map +1 -0
  107. package/dist/__tests__/package-dir-resolution-regression.test.js +63 -0
  108. package/dist/__tests__/package-dir-resolution-regression.test.js.map +1 -0
  109. package/dist/__tests__/pipeline-orchestrator.test.d.ts +5 -0
  110. package/dist/__tests__/pipeline-orchestrator.test.d.ts.map +1 -0
  111. package/dist/__tests__/pipeline-orchestrator.test.js +244 -0
  112. package/dist/__tests__/pipeline-orchestrator.test.js.map +1 -0
  113. package/dist/__tests__/plugin-setup-deps.test.d.ts +2 -0
  114. package/dist/__tests__/plugin-setup-deps.test.d.ts.map +1 -0
  115. package/dist/__tests__/plugin-setup-deps.test.js +64 -0
  116. package/dist/__tests__/plugin-setup-deps.test.js.map +1 -0
  117. package/dist/__tests__/pre-tool-agent-prefix.test.d.ts +8 -0
  118. package/dist/__tests__/pre-tool-agent-prefix.test.d.ts.map +1 -0
  119. package/dist/__tests__/pre-tool-agent-prefix.test.js +131 -0
  120. package/dist/__tests__/pre-tool-agent-prefix.test.js.map +1 -0
  121. package/dist/__tests__/project-memory-merge.test.d.ts +2 -0
  122. package/dist/__tests__/project-memory-merge.test.d.ts.map +1 -0
  123. package/dist/__tests__/project-memory-merge.test.js +342 -0
  124. package/dist/__tests__/project-memory-merge.test.js.map +1 -0
  125. package/dist/__tests__/ralph-prd-mandatory.test.d.ts +2 -0
  126. package/dist/__tests__/ralph-prd-mandatory.test.d.ts.map +1 -0
  127. package/dist/__tests__/ralph-prd-mandatory.test.js +316 -0
  128. package/dist/__tests__/ralph-prd-mandatory.test.js.map +1 -0
  129. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts +2 -0
  130. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.d.ts.map +1 -0
  131. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js +94 -0
  132. package/dist/__tests__/rate-limit-wait/daemon-bootstrap.test.js.map +1 -0
  133. package/dist/__tests__/rate-limit-wait/daemon.test.js.map +1 -1
  134. package/dist/__tests__/rate-limit-wait/integration.test.js +33 -25
  135. package/dist/__tests__/rate-limit-wait/integration.test.js.map +1 -1
  136. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js +34 -26
  137. package/dist/__tests__/rate-limit-wait/rate-limit-monitor.test.js.map +1 -1
  138. package/dist/__tests__/rate-limit-wait/tmux-detector.test.js.map +1 -1
  139. package/dist/__tests__/resolve-node.test.js.map +1 -1
  140. package/dist/__tests__/resolve-transcript-path.test.d.ts +12 -0
  141. package/dist/__tests__/resolve-transcript-path.test.d.ts.map +1 -0
  142. package/dist/__tests__/resolve-transcript-path.test.js +167 -0
  143. package/dist/__tests__/resolve-transcript-path.test.js.map +1 -0
  144. package/dist/__tests__/routing-force-inherit.test.d.ts +8 -0
  145. package/dist/__tests__/routing-force-inherit.test.d.ts.map +1 -0
  146. package/dist/__tests__/routing-force-inherit.test.js +180 -0
  147. package/dist/__tests__/routing-force-inherit.test.js.map +1 -0
  148. package/dist/__tests__/run-cjs-graceful-fallback.test.js +2 -2
  149. package/dist/__tests__/run-cjs-graceful-fallback.test.js.map +1 -1
  150. package/dist/__tests__/shared-memory-concurrency.test.d.ts +8 -0
  151. package/dist/__tests__/shared-memory-concurrency.test.d.ts.map +1 -0
  152. package/dist/__tests__/shared-memory-concurrency.test.js +132 -0
  153. package/dist/__tests__/shared-memory-concurrency.test.js.map +1 -0
  154. package/dist/__tests__/shared-memory.test.d.ts +2 -0
  155. package/dist/__tests__/shared-memory.test.d.ts.map +1 -0
  156. package/dist/__tests__/shared-memory.test.js +345 -0
  157. package/dist/__tests__/shared-memory.test.js.map +1 -0
  158. package/dist/__tests__/shell-path.test.d.ts +5 -0
  159. package/dist/__tests__/shell-path.test.d.ts.map +1 -0
  160. package/dist/__tests__/shell-path.test.js +70 -0
  161. package/dist/__tests__/shell-path.test.js.map +1 -0
  162. package/dist/__tests__/skills.test.js +13 -10
  163. package/dist/__tests__/skills.test.js.map +1 -1
  164. package/dist/__tests__/slack-socket.test.d.ts +5 -0
  165. package/dist/__tests__/slack-socket.test.d.ts.map +1 -0
  166. package/dist/__tests__/slack-socket.test.js +252 -0
  167. package/dist/__tests__/slack-socket.test.js.map +1 -0
  168. package/dist/__tests__/smoke-functional.test.d.ts +8 -0
  169. package/dist/__tests__/smoke-functional.test.d.ts.map +1 -0
  170. package/dist/__tests__/smoke-functional.test.js +450 -0
  171. package/dist/__tests__/smoke-functional.test.js.map +1 -0
  172. package/dist/__tests__/smoke-pipeline-edge.test.d.ts +8 -0
  173. package/dist/__tests__/smoke-pipeline-edge.test.d.ts.map +1 -0
  174. package/dist/__tests__/smoke-pipeline-edge.test.js +435 -0
  175. package/dist/__tests__/smoke-pipeline-edge.test.js.map +1 -0
  176. package/dist/__tests__/smoke-slack-and-state.test.d.ts +13 -0
  177. package/dist/__tests__/smoke-slack-and-state.test.d.ts.map +1 -0
  178. package/dist/__tests__/smoke-slack-and-state.test.js +632 -0
  179. package/dist/__tests__/smoke-slack-and-state.test.js.map +1 -0
  180. package/dist/__tests__/smoke-team-worker.test.d.ts +15 -0
  181. package/dist/__tests__/smoke-team-worker.test.d.ts.map +1 -0
  182. package/dist/__tests__/smoke-team-worker.test.js +483 -0
  183. package/dist/__tests__/smoke-team-worker.test.js.map +1 -0
  184. package/dist/__tests__/ssrf-guard.test.d.ts +2 -0
  185. package/dist/__tests__/ssrf-guard.test.d.ts.map +1 -0
  186. package/dist/__tests__/ssrf-guard.test.js +96 -0
  187. package/dist/__tests__/ssrf-guard.test.js.map +1 -0
  188. package/dist/__tests__/task-continuation.test.js +1 -1
  189. package/dist/__tests__/task-continuation.test.js.map +1 -1
  190. package/dist/__tests__/tier0-contracts.test.js +5 -1
  191. package/dist/__tests__/tier0-contracts.test.js.map +1 -1
  192. package/dist/__tests__/tier0-docs-consistency.test.js +3 -4
  193. package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
  194. package/dist/__tests__/tools/trace-tools.test.js +7 -3
  195. package/dist/__tests__/tools/trace-tools.test.js.map +1 -1
  196. package/dist/__tests__/types.test.js +4 -4
  197. package/dist/__tests__/types.test.js.map +1 -1
  198. package/dist/__tests__/worker-adapter.test.d.ts +5 -0
  199. package/dist/__tests__/worker-adapter.test.d.ts.map +1 -0
  200. package/dist/__tests__/worker-adapter.test.js +211 -0
  201. package/dist/__tests__/worker-adapter.test.js.map +1 -0
  202. package/dist/agents/definitions.d.ts +6 -5
  203. package/dist/agents/definitions.d.ts.map +1 -1
  204. package/dist/agents/definitions.js +11 -6
  205. package/dist/agents/definitions.js.map +1 -1
  206. package/dist/agents/harsh-critic.d.ts +14 -0
  207. package/dist/agents/harsh-critic.d.ts.map +1 -0
  208. package/dist/agents/harsh-critic.js +42 -0
  209. package/dist/agents/harsh-critic.js.map +1 -0
  210. package/dist/agents/index.d.ts +1 -3
  211. package/dist/agents/index.d.ts.map +1 -1
  212. package/dist/agents/index.js +1 -4
  213. package/dist/agents/index.js.map +1 -1
  214. package/dist/agents/prompt-helpers.d.ts.map +1 -1
  215. package/dist/agents/prompt-helpers.js +21 -16
  216. package/dist/agents/prompt-helpers.js.map +1 -1
  217. package/dist/agents/prompt-sections/index.d.ts.map +1 -1
  218. package/dist/agents/prompt-sections/index.js +7 -3
  219. package/dist/agents/prompt-sections/index.js.map +1 -1
  220. package/dist/agents/utils.d.ts.map +1 -1
  221. package/dist/agents/utils.js +22 -13
  222. package/dist/agents/utils.js.map +1 -1
  223. package/dist/cli/__tests__/ask.test.d.ts +2 -0
  224. package/dist/cli/__tests__/ask.test.d.ts.map +1 -0
  225. package/dist/cli/__tests__/ask.test.js +282 -0
  226. package/dist/cli/__tests__/ask.test.js.map +1 -0
  227. package/dist/cli/__tests__/cli-boot.test.d.ts +8 -0
  228. package/dist/cli/__tests__/cli-boot.test.d.ts.map +1 -0
  229. package/dist/cli/__tests__/cli-boot.test.js +82 -0
  230. package/dist/cli/__tests__/cli-boot.test.js.map +1 -0
  231. package/dist/cli/__tests__/launch.test.js +11 -2
  232. package/dist/cli/__tests__/launch.test.js.map +1 -1
  233. package/dist/cli/__tests__/team-command-branding.test.d.ts +2 -0
  234. package/dist/cli/__tests__/team-command-branding.test.d.ts.map +1 -0
  235. package/dist/cli/__tests__/team-command-branding.test.js +14 -0
  236. package/dist/cli/__tests__/team-command-branding.test.js.map +1 -0
  237. package/dist/cli/__tests__/team-help.test.d.ts +2 -0
  238. package/dist/cli/__tests__/team-help.test.d.ts.map +1 -0
  239. package/dist/cli/__tests__/team-help.test.js +19 -0
  240. package/dist/cli/__tests__/team-help.test.js.map +1 -0
  241. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts +2 -0
  242. package/dist/cli/__tests__/team-runtime-boundary.test.d.ts.map +1 -0
  243. package/dist/cli/__tests__/team-runtime-boundary.test.js +11 -0
  244. package/dist/cli/__tests__/team-runtime-boundary.test.js.map +1 -0
  245. package/dist/cli/__tests__/team.test.d.ts +2 -0
  246. package/dist/cli/__tests__/team.test.d.ts.map +1 -0
  247. package/dist/cli/__tests__/team.test.js +335 -0
  248. package/dist/cli/__tests__/team.test.js.map +1 -0
  249. package/dist/cli/__tests__/tmux-utils.test.d.ts +11 -0
  250. package/dist/cli/__tests__/tmux-utils.test.d.ts.map +1 -0
  251. package/dist/cli/__tests__/tmux-utils.test.js +145 -0
  252. package/dist/cli/__tests__/tmux-utils.test.js.map +1 -0
  253. package/dist/cli/ask.d.ts +13 -0
  254. package/dist/cli/ask.d.ts.map +1 -0
  255. package/dist/cli/ask.js +202 -0
  256. package/dist/cli/ask.js.map +1 -0
  257. package/dist/cli/commands/__tests__/team.test.d.ts +2 -0
  258. package/dist/cli/commands/__tests__/team.test.d.ts.map +1 -0
  259. package/dist/cli/commands/__tests__/team.test.js +177 -0
  260. package/dist/cli/commands/__tests__/team.test.js.map +1 -0
  261. package/dist/cli/commands/__tests__/teleport.test.js.map +1 -1
  262. package/dist/cli/commands/doctor-conflicts.d.ts +14 -1
  263. package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
  264. package/dist/cli/commands/doctor-conflicts.js +126 -12
  265. package/dist/cli/commands/doctor-conflicts.js.map +1 -1
  266. package/dist/cli/commands/team.d.ts +19 -0
  267. package/dist/cli/commands/team.d.ts.map +1 -0
  268. package/dist/cli/commands/team.js +510 -0
  269. package/dist/cli/commands/team.js.map +1 -0
  270. package/dist/cli/commands/teleport.d.ts.map +1 -1
  271. package/dist/cli/commands/teleport.js +6 -4
  272. package/dist/cli/commands/teleport.js.map +1 -1
  273. package/dist/cli/index.js +58 -17
  274. package/dist/cli/index.js.map +1 -1
  275. package/dist/cli/launch.d.ts.map +1 -1
  276. package/dist/cli/launch.js +12 -6
  277. package/dist/cli/launch.js.map +1 -1
  278. package/dist/cli/team.d.ts +76 -0
  279. package/dist/cli/team.d.ts.map +1 -0
  280. package/dist/cli/team.js +1117 -0
  281. package/dist/cli/team.js.map +1 -0
  282. package/dist/cli/tmux-utils.d.ts +10 -0
  283. package/dist/cli/tmux-utils.d.ts.map +1 -1
  284. package/dist/cli/tmux-utils.js +20 -1
  285. package/dist/cli/tmux-utils.js.map +1 -1
  286. package/dist/config/loader.d.ts.map +1 -1
  287. package/dist/config/loader.js +134 -48
  288. package/dist/config/loader.js.map +1 -1
  289. package/dist/config/models.d.ts +36 -14
  290. package/dist/config/models.d.ts.map +1 -1
  291. package/dist/config/models.js +94 -0
  292. package/dist/config/models.js.map +1 -1
  293. package/dist/constants/names.d.ts +6 -3
  294. package/dist/constants/names.d.ts.map +1 -1
  295. package/dist/constants/names.js +7 -3
  296. package/dist/constants/names.js.map +1 -1
  297. package/dist/features/auto-update.js +5 -5
  298. package/dist/features/auto-update.js.map +1 -1
  299. package/dist/features/boulder-state/storage.d.ts +1 -1
  300. package/dist/features/boulder-state/storage.d.ts.map +1 -1
  301. package/dist/features/boulder-state/storage.js +20 -22
  302. package/dist/features/boulder-state/storage.js.map +1 -1
  303. package/dist/features/delegation-enforcer.d.ts +5 -0
  304. package/dist/features/delegation-enforcer.d.ts.map +1 -1
  305. package/dist/features/delegation-enforcer.js +58 -5
  306. package/dist/features/delegation-enforcer.js.map +1 -1
  307. package/dist/features/model-routing/router.d.ts.map +1 -1
  308. package/dist/features/model-routing/router.js +11 -0
  309. package/dist/features/model-routing/router.js.map +1 -1
  310. package/dist/features/model-routing/types.d.ts +6 -0
  311. package/dist/features/model-routing/types.d.ts.map +1 -1
  312. package/dist/features/model-routing/types.js.map +1 -1
  313. package/dist/features/rate-limit-wait/daemon.d.ts +5 -0
  314. package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -1
  315. package/dist/features/rate-limit-wait/daemon.js +38 -9
  316. package/dist/features/rate-limit-wait/daemon.js.map +1 -1
  317. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts.map +1 -1
  318. package/dist/features/rate-limit-wait/rate-limit-monitor.js +3 -2
  319. package/dist/features/rate-limit-wait/rate-limit-monitor.js.map +1 -1
  320. package/dist/features/rate-limit-wait/tmux-detector.d.ts.map +1 -1
  321. package/dist/features/rate-limit-wait/tmux-detector.js +8 -2
  322. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -1
  323. package/dist/features/state-manager/__tests__/cache.test.js +161 -1
  324. package/dist/features/state-manager/__tests__/cache.test.js.map +1 -1
  325. package/dist/features/state-manager/index.d.ts +2 -0
  326. package/dist/features/state-manager/index.d.ts.map +1 -1
  327. package/dist/features/state-manager/index.js +167 -51
  328. package/dist/features/state-manager/index.js.map +1 -1
  329. package/dist/hooks/__tests__/bridge-routing.test.js +124 -1
  330. package/dist/hooks/__tests__/bridge-routing.test.js.map +1 -1
  331. package/dist/hooks/__tests__/bridge-security.test.js +1 -1
  332. package/dist/hooks/__tests__/bridge-security.test.js.map +1 -1
  333. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts +2 -0
  334. package/dist/hooks/__tests__/bridge-team-worker-guard.test.d.ts.map +1 -0
  335. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js +52 -0
  336. package/dist/hooks/__tests__/bridge-team-worker-guard.test.js.map +1 -0
  337. package/dist/hooks/__tests__/bridge.test.js.map +1 -1
  338. package/dist/hooks/__tests__/codebase-map.test.js.map +1 -1
  339. package/dist/hooks/__tests__/compaction-concurrency.test.js.map +1 -1
  340. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts +2 -0
  341. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.d.ts.map +1 -0
  342. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js +65 -0
  343. package/dist/hooks/__tests__/stop-hook-openclaw-cooldown.test.js.map +1 -0
  344. package/dist/hooks/auto-slash-command/live-data.d.ts.map +1 -1
  345. package/dist/hooks/auto-slash-command/live-data.js +54 -25
  346. package/dist/hooks/auto-slash-command/live-data.js.map +1 -1
  347. package/dist/hooks/autopilot/__tests__/cancel.test.js +1 -1
  348. package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -1
  349. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts +2 -0
  350. package/dist/hooks/autopilot/__tests__/pipeline.test.d.ts.map +1 -0
  351. package/dist/hooks/autopilot/__tests__/pipeline.test.js +375 -0
  352. package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -0
  353. package/dist/hooks/autopilot/__tests__/state.test.js +2 -2
  354. package/dist/hooks/autopilot/__tests__/state.test.js.map +1 -1
  355. package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -1
  356. package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -1
  357. package/dist/hooks/autopilot/__tests__/validation.test.js +3 -3
  358. package/dist/hooks/autopilot/__tests__/validation.test.js.map +1 -1
  359. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts +12 -0
  360. package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -0
  361. package/dist/hooks/autopilot/adapters/execution-adapter.js +110 -0
  362. package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -0
  363. package/dist/hooks/autopilot/adapters/index.d.ts +22 -0
  364. package/dist/hooks/autopilot/adapters/index.d.ts.map +1 -0
  365. package/dist/hooks/autopilot/adapters/index.js +32 -0
  366. package/dist/hooks/autopilot/adapters/index.js.map +1 -0
  367. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts +12 -0
  368. package/dist/hooks/autopilot/adapters/qa-adapter.d.ts.map +1 -0
  369. package/dist/hooks/autopilot/adapters/qa-adapter.js +33 -0
  370. package/dist/hooks/autopilot/adapters/qa-adapter.js.map +1 -0
  371. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts +15 -0
  372. package/dist/hooks/autopilot/adapters/ralph-adapter.d.ts.map +1 -0
  373. package/dist/hooks/autopilot/adapters/ralph-adapter.js +102 -0
  374. package/dist/hooks/autopilot/adapters/ralph-adapter.js.map +1 -0
  375. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts +14 -0
  376. package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -0
  377. package/dist/hooks/autopilot/adapters/ralplan-adapter.js +81 -0
  378. package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -0
  379. package/dist/hooks/autopilot/enforcement.d.ts.map +1 -1
  380. package/dist/hooks/autopilot/enforcement.js +162 -0
  381. package/dist/hooks/autopilot/enforcement.js.map +1 -1
  382. package/dist/hooks/autopilot/index.d.ts +4 -0
  383. package/dist/hooks/autopilot/index.d.ts.map +1 -1
  384. package/dist/hooks/autopilot/index.js +5 -0
  385. package/dist/hooks/autopilot/index.js.map +1 -1
  386. package/dist/hooks/autopilot/pipeline-types.d.ts +133 -0
  387. package/dist/hooks/autopilot/pipeline-types.d.ts.map +1 -0
  388. package/dist/hooks/autopilot/pipeline-types.js +44 -0
  389. package/dist/hooks/autopilot/pipeline-types.js.map +1 -0
  390. package/dist/hooks/autopilot/pipeline.d.ts +124 -0
  391. package/dist/hooks/autopilot/pipeline.d.ts.map +1 -0
  392. package/dist/hooks/autopilot/pipeline.js +407 -0
  393. package/dist/hooks/autopilot/pipeline.js.map +1 -0
  394. package/dist/hooks/autopilot/state.d.ts +6 -6
  395. package/dist/hooks/autopilot/state.d.ts.map +1 -1
  396. package/dist/hooks/autopilot/state.js +71 -129
  397. package/dist/hooks/autopilot/state.js.map +1 -1
  398. package/dist/hooks/autopilot/types.d.ts +21 -0
  399. package/dist/hooks/autopilot/types.d.ts.map +1 -1
  400. package/dist/hooks/autopilot/types.js.map +1 -1
  401. package/dist/hooks/bridge-normalize.d.ts.map +1 -1
  402. package/dist/hooks/bridge-normalize.js +13 -2
  403. package/dist/hooks/bridge-normalize.js.map +1 -1
  404. package/dist/hooks/bridge.d.ts.map +1 -1
  405. package/dist/hooks/bridge.js +151 -27
  406. package/dist/hooks/bridge.js.map +1 -1
  407. package/dist/hooks/comment-checker/index.js +1 -1
  408. package/dist/hooks/comment-checker/index.js.map +1 -1
  409. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js +2 -2
  410. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js.map +1 -1
  411. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts +7 -0
  412. package/dist/hooks/factcheck/__tests__/factcheck.test.d.ts.map +1 -0
  413. package/dist/hooks/factcheck/__tests__/factcheck.test.js +153 -0
  414. package/dist/hooks/factcheck/__tests__/factcheck.test.js.map +1 -0
  415. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts +5 -0
  416. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.d.ts.map +1 -0
  417. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js +159 -0
  418. package/dist/hooks/factcheck/__tests__/sentinel-gate.test.js.map +1 -0
  419. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts +7 -0
  420. package/dist/hooks/factcheck/__tests__/sentinel.test.d.ts.map +1 -0
  421. package/dist/hooks/factcheck/__tests__/sentinel.test.js +117 -0
  422. package/dist/hooks/factcheck/__tests__/sentinel.test.js.map +1 -0
  423. package/dist/hooks/factcheck/checks.d.ts +36 -0
  424. package/dist/hooks/factcheck/checks.d.ts.map +1 -0
  425. package/dist/hooks/factcheck/checks.js +144 -0
  426. package/dist/hooks/factcheck/checks.js.map +1 -0
  427. package/dist/hooks/factcheck/config.d.ts +25 -0
  428. package/dist/hooks/factcheck/config.d.ts.map +1 -0
  429. package/dist/hooks/factcheck/config.js +125 -0
  430. package/dist/hooks/factcheck/config.js.map +1 -0
  431. package/dist/hooks/factcheck/index.d.ts +34 -0
  432. package/dist/hooks/factcheck/index.d.ts.map +1 -0
  433. package/dist/hooks/factcheck/index.js +120 -0
  434. package/dist/hooks/factcheck/index.js.map +1 -0
  435. package/dist/hooks/factcheck/sentinel.d.ts +32 -0
  436. package/dist/hooks/factcheck/sentinel.d.ts.map +1 -0
  437. package/dist/hooks/factcheck/sentinel.js +153 -0
  438. package/dist/hooks/factcheck/sentinel.js.map +1 -0
  439. package/dist/hooks/factcheck/types.d.ts +99 -0
  440. package/dist/hooks/factcheck/types.d.ts.map +1 -0
  441. package/dist/hooks/factcheck/types.js +27 -0
  442. package/dist/hooks/factcheck/types.js.map +1 -0
  443. package/dist/hooks/keyword-detector/__tests__/index.test.js +29 -80
  444. package/dist/hooks/keyword-detector/__tests__/index.test.js.map +1 -1
  445. package/dist/hooks/keyword-detector/index.d.ts +1 -1
  446. package/dist/hooks/keyword-detector/index.d.ts.map +1 -1
  447. package/dist/hooks/keyword-detector/index.js +11 -21
  448. package/dist/hooks/keyword-detector/index.js.map +1 -1
  449. package/dist/hooks/learner/bridge.d.ts.map +1 -1
  450. package/dist/hooks/learner/bridge.js +8 -0
  451. package/dist/hooks/learner/bridge.js.map +1 -1
  452. package/dist/hooks/learner/index.d.ts +15 -15
  453. package/dist/hooks/learner/index.d.ts.map +1 -1
  454. package/dist/hooks/learner/index.js +44 -38
  455. package/dist/hooks/learner/index.js.map +1 -1
  456. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js +4 -2
  457. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js.map +1 -1
  458. package/dist/hooks/mode-registry/index.d.ts +2 -13
  459. package/dist/hooks/mode-registry/index.d.ts.map +1 -1
  460. package/dist/hooks/mode-registry/index.js +77 -174
  461. package/dist/hooks/mode-registry/index.js.map +1 -1
  462. package/dist/hooks/mode-registry/types.d.ts +1 -1
  463. package/dist/hooks/mode-registry/types.d.ts.map +1 -1
  464. package/dist/hooks/notepad/index.d.ts.map +1 -1
  465. package/dist/hooks/notepad/index.js +83 -73
  466. package/dist/hooks/notepad/index.js.map +1 -1
  467. package/dist/hooks/omc-orchestrator/index.d.ts.map +1 -1
  468. package/dist/hooks/omc-orchestrator/index.js +2 -1
  469. package/dist/hooks/omc-orchestrator/index.js.map +1 -1
  470. package/dist/hooks/permission-handler/__tests__/index.test.js +2 -2
  471. package/dist/hooks/permission-handler/__tests__/index.test.js.map +1 -1
  472. package/dist/hooks/permission-handler/index.d.ts +1 -1
  473. package/dist/hooks/permission-handler/index.d.ts.map +1 -1
  474. package/dist/hooks/permission-handler/index.js +4 -8
  475. package/dist/hooks/permission-handler/index.js.map +1 -1
  476. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js +23 -0
  477. package/dist/hooks/persistent-mode/__tests__/rate-limit-stop.test.js.map +1 -1
  478. package/dist/hooks/persistent-mode/__tests__/skill-state-stop.test.js.map +1 -1
  479. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js +1 -1
  480. package/dist/hooks/persistent-mode/__tests__/tool-error.test.js.map +1 -1
  481. package/dist/hooks/persistent-mode/index.d.ts +3 -3
  482. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  483. package/dist/hooks/persistent-mode/index.js +25 -12
  484. package/dist/hooks/persistent-mode/index.js.map +1 -1
  485. package/dist/hooks/persistent-mode/session-isolation.test.js +20 -4
  486. package/dist/hooks/persistent-mode/session-isolation.test.js.map +1 -1
  487. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts +2 -0
  488. package/dist/hooks/persistent-mode/stop-hook-blocking.test.d.ts.map +1 -0
  489. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js +367 -0
  490. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js.map +1 -0
  491. package/dist/hooks/pre-compact/index.d.ts +2 -14
  492. package/dist/hooks/pre-compact/index.d.ts.map +1 -1
  493. package/dist/hooks/pre-compact/index.js +8 -49
  494. package/dist/hooks/pre-compact/index.js.map +1 -1
  495. package/dist/hooks/preemptive-compaction/index.js +1 -1
  496. package/dist/hooks/preemptive-compaction/index.js.map +1 -1
  497. package/dist/hooks/project-memory/__tests__/integration.test.js +4 -2
  498. package/dist/hooks/project-memory/__tests__/integration.test.js.map +1 -1
  499. package/dist/hooks/project-memory/index.d.ts +9 -9
  500. package/dist/hooks/project-memory/index.d.ts.map +1 -1
  501. package/dist/hooks/project-memory/index.js +25 -25
  502. package/dist/hooks/project-memory/index.js.map +1 -1
  503. package/dist/hooks/project-memory/learner.d.ts.map +1 -1
  504. package/dist/hooks/project-memory/learner.js +92 -86
  505. package/dist/hooks/project-memory/learner.js.map +1 -1
  506. package/dist/hooks/project-memory/storage.d.ts +9 -0
  507. package/dist/hooks/project-memory/storage.d.ts.map +1 -1
  508. package/dist/hooks/project-memory/storage.js +15 -0
  509. package/dist/hooks/project-memory/storage.js.map +1 -1
  510. package/dist/hooks/ralph/index.d.ts +1 -1
  511. package/dist/hooks/ralph/index.d.ts.map +1 -1
  512. package/dist/hooks/ralph/index.js +2 -0
  513. package/dist/hooks/ralph/index.js.map +1 -1
  514. package/dist/hooks/ralph/loop.d.ts +10 -2
  515. package/dist/hooks/ralph/loop.d.ts.map +1 -1
  516. package/dist/hooks/ralph/loop.js +64 -113
  517. package/dist/hooks/ralph/loop.js.map +1 -1
  518. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  519. package/dist/hooks/ralph/prd.js +3 -2
  520. package/dist/hooks/ralph/prd.js.map +1 -1
  521. package/dist/hooks/ralph/progress.d.ts.map +1 -1
  522. package/dist/hooks/ralph/progress.js +6 -5
  523. package/dist/hooks/ralph/progress.js.map +1 -1
  524. package/dist/hooks/ralph/verifier.d.ts +3 -1
  525. package/dist/hooks/ralph/verifier.d.ts.map +1 -1
  526. package/dist/hooks/ralph/verifier.js +19 -7
  527. package/dist/hooks/ralph/verifier.js.map +1 -1
  528. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts +2 -0
  529. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.d.ts.map +1 -0
  530. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js +86 -0
  531. package/dist/hooks/session-end/__tests__/openclaw-session-end.test.js.map +1 -0
  532. package/dist/hooks/session-end/index.d.ts.map +1 -1
  533. package/dist/hooks/session-end/index.js +17 -17
  534. package/dist/hooks/session-end/index.js.map +1 -1
  535. package/dist/hooks/setup/index.d.ts.map +1 -1
  536. package/dist/hooks/setup/index.js +0 -2
  537. package/dist/hooks/setup/index.js.map +1 -1
  538. package/dist/hooks/skill-bridge.cjs +13 -4
  539. package/dist/hooks/skill-state/__tests__/skill-state.test.js.map +1 -1
  540. package/dist/hooks/skill-state/index.d.ts +0 -5
  541. package/dist/hooks/skill-state/index.d.ts.map +1 -1
  542. package/dist/hooks/skill-state/index.js +9 -55
  543. package/dist/hooks/skill-state/index.js.map +1 -1
  544. package/dist/hooks/subagent-tracker/__tests__/flush-race.test.js.map +1 -1
  545. package/dist/hooks/subagent-tracker/__tests__/index.test.js.map +1 -1
  546. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js +1 -1
  547. package/dist/hooks/subagent-tracker/__tests__/session-replay.test.js.map +1 -1
  548. package/dist/hooks/subagent-tracker/index.d.ts.map +1 -1
  549. package/dist/hooks/subagent-tracker/index.js +10 -22
  550. package/dist/hooks/subagent-tracker/index.js.map +1 -1
  551. package/dist/hooks/subagent-tracker/session-replay.d.ts.map +1 -1
  552. package/dist/hooks/subagent-tracker/session-replay.js +3 -2
  553. package/dist/hooks/subagent-tracker/session-replay.js.map +1 -1
  554. package/dist/hooks/task-size-detector/__tests__/index.test.js +7 -7
  555. package/dist/hooks/task-size-detector/__tests__/index.test.js.map +1 -1
  556. package/dist/hooks/task-size-detector/index.d.ts.map +1 -1
  557. package/dist/hooks/task-size-detector/index.js +0 -3
  558. package/dist/hooks/task-size-detector/index.js.map +1 -1
  559. package/dist/hooks/team-dispatch-hook.d.ts +65 -0
  560. package/dist/hooks/team-dispatch-hook.d.ts.map +1 -0
  561. package/dist/hooks/team-dispatch-hook.js +663 -0
  562. package/dist/hooks/team-dispatch-hook.js.map +1 -0
  563. package/dist/hooks/team-leader-nudge-hook.d.ts +36 -0
  564. package/dist/hooks/team-leader-nudge-hook.d.ts.map +1 -0
  565. package/dist/hooks/team-leader-nudge-hook.js +218 -0
  566. package/dist/hooks/team-leader-nudge-hook.js.map +1 -0
  567. package/dist/hooks/team-worker-hook.d.ts +45 -0
  568. package/dist/hooks/team-worker-hook.d.ts.map +1 -0
  569. package/dist/hooks/team-worker-hook.js +415 -0
  570. package/dist/hooks/team-worker-hook.js.map +1 -0
  571. package/dist/hooks/think-mode/__tests__/index.test.js.map +1 -1
  572. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts +2 -0
  573. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.d.ts.map +1 -0
  574. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js +33 -0
  575. package/dist/hooks/todo-continuation/__tests__/isAuthenticationError.test.js.map +1 -0
  576. package/dist/hooks/todo-continuation/index.d.ts +12 -0
  577. package/dist/hooks/todo-continuation/index.d.ts.map +1 -1
  578. package/dist/hooks/todo-continuation/index.js +37 -1
  579. package/dist/hooks/todo-continuation/index.js.map +1 -1
  580. package/dist/hooks/ultrapilot/decomposer.d.ts.map +1 -1
  581. package/dist/hooks/ultrapilot/decomposer.js +3 -1
  582. package/dist/hooks/ultrapilot/decomposer.js.map +1 -1
  583. package/dist/hooks/ultrapilot/index.d.ts.map +1 -1
  584. package/dist/hooks/ultrapilot/index.js +3 -1
  585. package/dist/hooks/ultrapilot/index.js.map +1 -1
  586. package/dist/hooks/ultrapilot/state.d.ts +1 -1
  587. package/dist/hooks/ultrapilot/state.d.ts.map +1 -1
  588. package/dist/hooks/ultrapilot/state.js +45 -77
  589. package/dist/hooks/ultrapilot/state.js.map +1 -1
  590. package/dist/hooks/ultraqa/index.d.ts.map +1 -1
  591. package/dist/hooks/ultraqa/index.js +4 -77
  592. package/dist/hooks/ultraqa/index.js.map +1 -1
  593. package/dist/hooks/ultrawork/index.d.ts.map +1 -1
  594. package/dist/hooks/ultrawork/index.js +40 -82
  595. package/dist/hooks/ultrawork/index.js.map +1 -1
  596. package/dist/hooks/ultrawork/session-isolation.test.js +1 -1
  597. package/dist/hooks/ultrawork/session-isolation.test.js.map +1 -1
  598. package/dist/hud/elements/api-key-source.d.ts +30 -0
  599. package/dist/hud/elements/api-key-source.d.ts.map +1 -0
  600. package/dist/hud/elements/api-key-source.js +70 -0
  601. package/dist/hud/elements/api-key-source.js.map +1 -0
  602. package/dist/hud/elements/index.d.ts +1 -0
  603. package/dist/hud/elements/index.d.ts.map +1 -1
  604. package/dist/hud/elements/index.js +1 -0
  605. package/dist/hud/elements/index.js.map +1 -1
  606. package/dist/hud/elements/limits.d.ts +9 -1
  607. package/dist/hud/elements/limits.d.ts.map +1 -1
  608. package/dist/hud/elements/limits.js +18 -0
  609. package/dist/hud/elements/limits.js.map +1 -1
  610. package/dist/hud/index.d.ts.map +1 -1
  611. package/dist/hud/index.js +40 -25
  612. package/dist/hud/index.js.map +1 -1
  613. package/dist/hud/omc-state.d.ts.map +1 -1
  614. package/dist/hud/omc-state.js +6 -4
  615. package/dist/hud/omc-state.js.map +1 -1
  616. package/dist/hud/render.d.ts +9 -0
  617. package/dist/hud/render.d.ts.map +1 -1
  618. package/dist/hud/render.js +166 -15
  619. package/dist/hud/render.js.map +1 -1
  620. package/dist/hud/state.d.ts.map +1 -1
  621. package/dist/hud/state.js +23 -14
  622. package/dist/hud/state.js.map +1 -1
  623. package/dist/hud/stdin.d.ts.map +1 -1
  624. package/dist/hud/stdin.js +5 -2
  625. package/dist/hud/stdin.js.map +1 -1
  626. package/dist/hud/types.d.ts +34 -3
  627. package/dist/hud/types.d.ts.map +1 -1
  628. package/dist/hud/types.js +19 -0
  629. package/dist/hud/types.js.map +1 -1
  630. package/dist/hud/usage-api.d.ts +9 -6
  631. package/dist/hud/usage-api.d.ts.map +1 -1
  632. package/dist/hud/usage-api.js +115 -46
  633. package/dist/hud/usage-api.js.map +1 -1
  634. package/dist/index.d.ts +3 -1
  635. package/dist/index.d.ts.map +1 -1
  636. package/dist/index.js +6 -2
  637. package/dist/index.js.map +1 -1
  638. package/dist/installer/__tests__/claude-md-merge.test.js +29 -0
  639. package/dist/installer/__tests__/claude-md-merge.test.js.map +1 -1
  640. package/dist/installer/__tests__/safe-installer.test.js +1 -1
  641. package/dist/installer/__tests__/safe-installer.test.js.map +1 -1
  642. package/dist/installer/hooks.d.ts.map +1 -1
  643. package/dist/installer/hooks.js +11 -12
  644. package/dist/installer/hooks.js.map +1 -1
  645. package/dist/installer/index.d.ts.map +1 -1
  646. package/dist/installer/index.js +20 -16
  647. package/dist/installer/index.js.map +1 -1
  648. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts +2 -0
  649. package/dist/interop/__tests__/worker-adapter-integration.test.d.ts.map +1 -0
  650. package/dist/interop/__tests__/worker-adapter-integration.test.js +219 -0
  651. package/dist/interop/__tests__/worker-adapter-integration.test.js.map +1 -0
  652. package/dist/interop/__tests__/worker-adapter.test.d.ts +2 -0
  653. package/dist/interop/__tests__/worker-adapter.test.d.ts.map +1 -0
  654. package/dist/interop/__tests__/worker-adapter.test.js +408 -0
  655. package/dist/interop/__tests__/worker-adapter.test.js.map +1 -0
  656. package/dist/interop/adapter-types.d.ts +39 -0
  657. package/dist/interop/adapter-types.d.ts.map +1 -0
  658. package/dist/interop/adapter-types.js +9 -0
  659. package/dist/interop/adapter-types.js.map +1 -0
  660. package/dist/interop/worker-adapter.d.ts +116 -0
  661. package/dist/interop/worker-adapter.d.ts.map +1 -0
  662. package/dist/interop/worker-adapter.js +324 -0
  663. package/dist/interop/worker-adapter.js.map +1 -0
  664. package/dist/lib/__tests__/mode-state-io.test.d.ts +2 -0
  665. package/dist/lib/__tests__/mode-state-io.test.d.ts.map +1 -0
  666. package/dist/lib/__tests__/mode-state-io.test.js +194 -0
  667. package/dist/lib/__tests__/mode-state-io.test.js.map +1 -0
  668. package/dist/lib/__tests__/payload-limits.test.d.ts +2 -0
  669. package/dist/lib/__tests__/payload-limits.test.d.ts.map +1 -0
  670. package/dist/lib/__tests__/payload-limits.test.js +124 -0
  671. package/dist/lib/__tests__/payload-limits.test.js.map +1 -0
  672. package/dist/lib/__tests__/worktree-paths.test.js +5 -4
  673. package/dist/lib/__tests__/worktree-paths.test.js.map +1 -1
  674. package/dist/lib/file-lock.d.ts +75 -0
  675. package/dist/lib/file-lock.d.ts.map +1 -0
  676. package/dist/lib/file-lock.js +246 -0
  677. package/dist/lib/file-lock.js.map +1 -0
  678. package/dist/lib/mode-names.d.ts +10 -3
  679. package/dist/lib/mode-names.d.ts.map +1 -1
  680. package/dist/lib/mode-names.js +12 -17
  681. package/dist/lib/mode-names.js.map +1 -1
  682. package/dist/lib/mode-state-io.d.ts +41 -0
  683. package/dist/lib/mode-state-io.d.ts.map +1 -0
  684. package/dist/lib/mode-state-io.js +127 -0
  685. package/dist/lib/mode-state-io.js.map +1 -0
  686. package/dist/lib/payload-limits.d.ts +31 -0
  687. package/dist/lib/payload-limits.d.ts.map +1 -0
  688. package/dist/lib/payload-limits.js +82 -0
  689. package/dist/lib/payload-limits.js.map +1 -0
  690. package/dist/lib/project-memory-merge.d.ts +36 -0
  691. package/dist/lib/project-memory-merge.d.ts.map +1 -0
  692. package/dist/lib/project-memory-merge.js +154 -0
  693. package/dist/lib/project-memory-merge.js.map +1 -0
  694. package/dist/lib/shared-memory.d.ts +82 -0
  695. package/dist/lib/shared-memory.d.ts.map +1 -0
  696. package/dist/lib/shared-memory.js +305 -0
  697. package/dist/lib/shared-memory.js.map +1 -0
  698. package/dist/lib/worktree-paths.d.ts +31 -3
  699. package/dist/lib/worktree-paths.d.ts.map +1 -1
  700. package/dist/lib/worktree-paths.js +147 -12
  701. package/dist/lib/worktree-paths.js.map +1 -1
  702. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts +2 -0
  703. package/dist/mcp/__tests__/team-server-artifact-convergence.test.d.ts.map +1 -0
  704. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js +84 -0
  705. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js.map +1 -0
  706. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts +2 -0
  707. package/dist/mcp/__tests__/team-server-deprecation.test.d.ts.map +1 -0
  708. package/dist/mcp/__tests__/team-server-deprecation.test.js +54 -0
  709. package/dist/mcp/__tests__/team-server-deprecation.test.js.map +1 -0
  710. package/dist/mcp/omc-tools-server.d.ts +2 -0
  711. package/dist/mcp/omc-tools-server.d.ts.map +1 -1
  712. package/dist/mcp/omc-tools-server.js +9 -2
  713. package/dist/mcp/omc-tools-server.js.map +1 -1
  714. package/dist/mcp/team-job-convergence.d.ts +20 -0
  715. package/dist/mcp/team-job-convergence.d.ts.map +1 -0
  716. package/dist/mcp/team-job-convergence.js +101 -0
  717. package/dist/mcp/team-job-convergence.js.map +1 -0
  718. package/dist/mcp/team-server.d.ts +33 -10
  719. package/dist/mcp/team-server.d.ts.map +1 -1
  720. package/dist/mcp/team-server.js +219 -109
  721. package/dist/mcp/team-server.js.map +1 -1
  722. package/dist/notifications/__tests__/config.test.js +100 -6
  723. package/dist/notifications/__tests__/config.test.js.map +1 -1
  724. package/dist/notifications/__tests__/custom-integration.test.d.ts +8 -0
  725. package/dist/notifications/__tests__/custom-integration.test.d.ts.map +1 -0
  726. package/dist/notifications/__tests__/custom-integration.test.js +297 -0
  727. package/dist/notifications/__tests__/custom-integration.test.js.map +1 -0
  728. package/dist/notifications/__tests__/dispatcher.test.js +195 -0
  729. package/dist/notifications/__tests__/dispatcher.test.js.map +1 -1
  730. package/dist/notifications/__tests__/redact.test.d.ts +2 -0
  731. package/dist/notifications/__tests__/redact.test.d.ts.map +1 -0
  732. package/dist/notifications/__tests__/redact.test.js +111 -0
  733. package/dist/notifications/__tests__/redact.test.js.map +1 -0
  734. package/dist/notifications/__tests__/reply-listener.test.js +8 -1
  735. package/dist/notifications/__tests__/reply-listener.test.js.map +1 -1
  736. package/dist/notifications/__tests__/slack-socket.test.d.ts +2 -0
  737. package/dist/notifications/__tests__/slack-socket.test.d.ts.map +1 -0
  738. package/dist/notifications/__tests__/slack-socket.test.js +293 -0
  739. package/dist/notifications/__tests__/slack-socket.test.js.map +1 -0
  740. package/dist/notifications/__tests__/template-engine.test.js +32 -0
  741. package/dist/notifications/__tests__/template-engine.test.js.map +1 -1
  742. package/dist/notifications/config.d.ts +40 -0
  743. package/dist/notifications/config.d.ts.map +1 -1
  744. package/dist/notifications/config.js +201 -4
  745. package/dist/notifications/config.js.map +1 -1
  746. package/dist/notifications/dispatcher.d.ts +20 -1
  747. package/dist/notifications/dispatcher.d.ts.map +1 -1
  748. package/dist/notifications/dispatcher.js +183 -7
  749. package/dist/notifications/dispatcher.js.map +1 -1
  750. package/dist/notifications/hook-config-types.d.ts +1 -1
  751. package/dist/notifications/hook-config-types.d.ts.map +1 -1
  752. package/dist/notifications/index.d.ts +11 -2
  753. package/dist/notifications/index.d.ts.map +1 -1
  754. package/dist/notifications/index.js +13 -3
  755. package/dist/notifications/index.js.map +1 -1
  756. package/dist/notifications/presets.d.ts +43 -0
  757. package/dist/notifications/presets.d.ts.map +1 -0
  758. package/dist/notifications/presets.js +122 -0
  759. package/dist/notifications/presets.js.map +1 -0
  760. package/dist/notifications/redact.d.ts +21 -0
  761. package/dist/notifications/redact.d.ts.map +1 -0
  762. package/dist/notifications/redact.js +33 -0
  763. package/dist/notifications/redact.js.map +1 -0
  764. package/dist/notifications/reply-listener.d.ts +54 -2
  765. package/dist/notifications/reply-listener.d.ts.map +1 -1
  766. package/dist/notifications/reply-listener.js +178 -15
  767. package/dist/notifications/reply-listener.js.map +1 -1
  768. package/dist/notifications/session-registry.d.ts +1 -1
  769. package/dist/notifications/session-registry.d.ts.map +1 -1
  770. package/dist/notifications/slack-socket.d.ts +242 -0
  771. package/dist/notifications/slack-socket.d.ts.map +1 -0
  772. package/dist/notifications/slack-socket.js +603 -0
  773. package/dist/notifications/slack-socket.js.map +1 -0
  774. package/dist/notifications/template-engine.d.ts.map +1 -1
  775. package/dist/notifications/template-engine.js +4 -0
  776. package/dist/notifications/template-engine.js.map +1 -1
  777. package/dist/notifications/template-variables.d.ts +26 -0
  778. package/dist/notifications/template-variables.d.ts.map +1 -0
  779. package/dist/notifications/template-variables.js +139 -0
  780. package/dist/notifications/template-variables.js.map +1 -0
  781. package/dist/notifications/types.d.ts +75 -2
  782. package/dist/notifications/types.d.ts.map +1 -1
  783. package/dist/notifications/validation.d.ts +24 -0
  784. package/dist/notifications/validation.d.ts.map +1 -0
  785. package/dist/notifications/validation.js +167 -0
  786. package/dist/notifications/validation.js.map +1 -0
  787. package/dist/openclaw/__tests__/dispatcher.test.js +0 -1
  788. package/dist/openclaw/__tests__/dispatcher.test.js.map +1 -1
  789. package/dist/openclaw/__tests__/index.test.js +82 -0
  790. package/dist/openclaw/__tests__/index.test.js.map +1 -1
  791. package/dist/openclaw/index.d.ts.map +1 -1
  792. package/dist/openclaw/index.js +24 -1
  793. package/dist/openclaw/index.js.map +1 -1
  794. package/dist/openclaw/types.d.ts +12 -0
  795. package/dist/openclaw/types.d.ts.map +1 -1
  796. package/dist/shared/types.d.ts +84 -20
  797. package/dist/shared/types.d.ts.map +1 -1
  798. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts +2 -0
  799. package/dist/team/__tests__/api-interop.command-dialect.test.d.ts.map +1 -0
  800. package/dist/team/__tests__/api-interop.command-dialect.test.js +26 -0
  801. package/dist/team/__tests__/api-interop.command-dialect.test.js.map +1 -0
  802. package/dist/team/__tests__/api-interop.compatibility.test.d.ts +2 -0
  803. package/dist/team/__tests__/api-interop.compatibility.test.d.ts.map +1 -0
  804. package/dist/team/__tests__/api-interop.compatibility.test.js +93 -0
  805. package/dist/team/__tests__/api-interop.compatibility.test.js.map +1 -0
  806. package/dist/team/__tests__/cli-path-resolution.test.d.ts +2 -0
  807. package/dist/team/__tests__/cli-path-resolution.test.d.ts.map +1 -0
  808. package/dist/team/__tests__/cli-path-resolution.test.js +281 -0
  809. package/dist/team/__tests__/cli-path-resolution.test.js.map +1 -0
  810. package/dist/team/__tests__/index.compat-exports.test.d.ts +2 -0
  811. package/dist/team/__tests__/index.compat-exports.test.d.ts.map +1 -0
  812. package/dist/team/__tests__/index.compat-exports.test.js +20 -0
  813. package/dist/team/__tests__/index.compat-exports.test.js.map +1 -0
  814. package/dist/team/__tests__/layout-stabilizer.test.d.ts +2 -0
  815. package/dist/team/__tests__/layout-stabilizer.test.d.ts.map +1 -0
  816. package/dist/team/__tests__/layout-stabilizer.test.js +217 -0
  817. package/dist/team/__tests__/layout-stabilizer.test.js.map +1 -0
  818. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js +8 -4
  819. package/dist/team/__tests__/mcp-team-bridge.spawn-args.test.js.map +1 -1
  820. package/dist/team/__tests__/mcp-team-bridge.usage.test.js +4 -2
  821. package/dist/team/__tests__/mcp-team-bridge.usage.test.js.map +1 -1
  822. package/dist/team/__tests__/model-contract.test.js +84 -8
  823. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  824. package/dist/team/__tests__/pane-readiness.test.d.ts +2 -0
  825. package/dist/team/__tests__/pane-readiness.test.d.ts.map +1 -0
  826. package/dist/team/__tests__/pane-readiness.test.js +185 -0
  827. package/dist/team/__tests__/pane-readiness.test.js.map +1 -0
  828. package/dist/team/__tests__/prompt-sanitization.test.js +1 -1
  829. package/dist/team/__tests__/prompt-sanitization.test.js.map +1 -1
  830. package/dist/team/__tests__/runtime-cli.test.d.ts +2 -0
  831. package/dist/team/__tests__/runtime-cli.test.d.ts.map +1 -0
  832. package/dist/team/__tests__/runtime-cli.test.js +159 -0
  833. package/dist/team/__tests__/runtime-cli.test.js.map +1 -0
  834. package/dist/team/__tests__/runtime-done-recovery.test.d.ts +2 -0
  835. package/dist/team/__tests__/runtime-done-recovery.test.d.ts.map +1 -0
  836. package/dist/team/__tests__/runtime-done-recovery.test.js +77 -0
  837. package/dist/team/__tests__/runtime-done-recovery.test.js.map +1 -0
  838. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts +2 -0
  839. package/dist/team/__tests__/runtime-interop-spawn-regression.test.d.ts.map +1 -0
  840. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js +139 -0
  841. package/dist/team/__tests__/runtime-interop-spawn-regression.test.js.map +1 -0
  842. package/dist/team/__tests__/runtime-prompt-mode.test.js +167 -14
  843. package/dist/team/__tests__/runtime-prompt-mode.test.js.map +1 -1
  844. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts +2 -0
  845. package/dist/team/__tests__/runtime-v2.feature-flag.test.d.ts.map +1 -0
  846. package/dist/team/__tests__/runtime-v2.feature-flag.test.js +20 -0
  847. package/dist/team/__tests__/runtime-v2.feature-flag.test.js.map +1 -0
  848. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts +2 -0
  849. package/dist/team/__tests__/runtime-watchdog-retry.test.d.ts.map +1 -0
  850. package/dist/team/__tests__/runtime-watchdog-retry.test.js +408 -0
  851. package/dist/team/__tests__/runtime-watchdog-retry.test.js.map +1 -0
  852. package/dist/team/__tests__/shell-path.test.d.ts +2 -0
  853. package/dist/team/__tests__/shell-path.test.d.ts.map +1 -0
  854. package/dist/team/__tests__/shell-path.test.js +193 -0
  855. package/dist/team/__tests__/shell-path.test.js.map +1 -0
  856. package/dist/team/__tests__/state-paths.test.d.ts +2 -0
  857. package/dist/team/__tests__/state-paths.test.d.ts.map +1 -0
  858. package/dist/team/__tests__/state-paths.test.js +16 -0
  859. package/dist/team/__tests__/state-paths.test.js.map +1 -0
  860. package/dist/team/__tests__/task-file-ops.test.js +8 -2
  861. package/dist/team/__tests__/task-file-ops.test.js.map +1 -1
  862. package/dist/team/__tests__/tmux-session.create-team.test.js +15 -17
  863. package/dist/team/__tests__/tmux-session.create-team.test.js.map +1 -1
  864. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts +2 -0
  865. package/dist/team/__tests__/tmux-session.kill-team-session.test.d.ts.map +1 -0
  866. package/dist/team/__tests__/tmux-session.kill-team-session.test.js +56 -0
  867. package/dist/team/__tests__/tmux-session.kill-team-session.test.js.map +1 -0
  868. package/dist/team/__tests__/tmux-session.spawn.test.js +9 -0
  869. package/dist/team/__tests__/tmux-session.spawn.test.js.map +1 -1
  870. package/dist/team/__tests__/tmux-session.test.js +83 -5
  871. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  872. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts +2 -0
  873. package/dist/team/__tests__/wait-for-shell-ready.test.d.ts.map +1 -0
  874. package/dist/team/__tests__/wait-for-shell-ready.test.js +242 -0
  875. package/dist/team/__tests__/wait-for-shell-ready.test.js.map +1 -0
  876. package/dist/team/__tests__/worker-bootstrap.test.js +11 -0
  877. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  878. package/dist/team/api-interop.d.ts +20 -0
  879. package/dist/team/api-interop.d.ts.map +1 -0
  880. package/dist/team/api-interop.js +601 -0
  881. package/dist/team/api-interop.js.map +1 -0
  882. package/dist/team/contracts.d.ts +14 -0
  883. package/dist/team/contracts.d.ts.map +1 -0
  884. package/dist/team/contracts.js +32 -0
  885. package/dist/team/contracts.js.map +1 -0
  886. package/dist/team/dispatch-queue.d.ts +64 -0
  887. package/dist/team/dispatch-queue.d.ts.map +1 -0
  888. package/dist/team/dispatch-queue.js +288 -0
  889. package/dist/team/dispatch-queue.js.map +1 -0
  890. package/dist/team/events.d.ts +49 -0
  891. package/dist/team/events.d.ts.map +1 -0
  892. package/dist/team/events.js +113 -0
  893. package/dist/team/events.js.map +1 -0
  894. package/dist/team/index.d.ts +15 -2
  895. package/dist/team/index.d.ts.map +1 -1
  896. package/dist/team/index.js +14 -1
  897. package/dist/team/index.js.map +1 -1
  898. package/dist/team/layout-stabilizer.d.ts +23 -0
  899. package/dist/team/layout-stabilizer.d.ts.map +1 -0
  900. package/dist/team/layout-stabilizer.js +117 -0
  901. package/dist/team/layout-stabilizer.js.map +1 -0
  902. package/dist/team/mcp-comm.d.ts +99 -0
  903. package/dist/team/mcp-comm.d.ts.map +1 -0
  904. package/dist/team/mcp-comm.js +235 -0
  905. package/dist/team/mcp-comm.js.map +1 -0
  906. package/dist/team/mcp-team-bridge.d.ts +2 -2
  907. package/dist/team/mcp-team-bridge.d.ts.map +1 -1
  908. package/dist/team/mcp-team-bridge.js +263 -144
  909. package/dist/team/mcp-team-bridge.js.map +1 -1
  910. package/dist/team/model-contract.d.ts +28 -1
  911. package/dist/team/model-contract.d.ts.map +1 -1
  912. package/dist/team/model-contract.js +143 -5
  913. package/dist/team/model-contract.js.map +1 -1
  914. package/dist/team/monitor.d.ts +45 -0
  915. package/dist/team/monitor.d.ts.map +1 -0
  916. package/dist/team/monitor.js +339 -0
  917. package/dist/team/monitor.js.map +1 -0
  918. package/dist/team/runtime-cli.d.ts +24 -0
  919. package/dist/team/runtime-cli.d.ts.map +1 -1
  920. package/dist/team/runtime-cli.js +230 -12
  921. package/dist/team/runtime-cli.js.map +1 -1
  922. package/dist/team/runtime-v2.d.ts +122 -0
  923. package/dist/team/runtime-v2.d.ts.map +1 -0
  924. package/dist/team/runtime-v2.js +766 -0
  925. package/dist/team/runtime-v2.js.map +1 -0
  926. package/dist/team/runtime.d.ts +2 -0
  927. package/dist/team/runtime.d.ts.map +1 -1
  928. package/dist/team/runtime.js +145 -52
  929. package/dist/team/runtime.js.map +1 -1
  930. package/dist/team/scaling.d.ts +59 -0
  931. package/dist/team/scaling.d.ts.map +1 -0
  932. package/dist/team/scaling.js +311 -0
  933. package/dist/team/scaling.js.map +1 -0
  934. package/dist/team/sentinel-gate.d.ts +23 -0
  935. package/dist/team/sentinel-gate.d.ts.map +1 -0
  936. package/dist/team/sentinel-gate.js +127 -0
  937. package/dist/team/sentinel-gate.js.map +1 -0
  938. package/dist/team/shell-path.d.ts +21 -0
  939. package/dist/team/shell-path.d.ts.map +1 -0
  940. package/dist/team/shell-path.js +73 -0
  941. package/dist/team/shell-path.js.map +1 -0
  942. package/dist/team/state/tasks.d.ts +48 -0
  943. package/dist/team/state/tasks.d.ts.map +1 -0
  944. package/dist/team/state/tasks.js +184 -0
  945. package/dist/team/state/tasks.js.map +1 -0
  946. package/dist/team/state-paths.d.ts +20 -4
  947. package/dist/team/state-paths.d.ts.map +1 -1
  948. package/dist/team/state-paths.js +29 -6
  949. package/dist/team/state-paths.js.map +1 -1
  950. package/dist/team/task-file-ops.d.ts +2 -1
  951. package/dist/team/task-file-ops.d.ts.map +1 -1
  952. package/dist/team/task-file-ops.js +19 -0
  953. package/dist/team/task-file-ops.js.map +1 -1
  954. package/dist/team/team-ops.d.ts +44 -0
  955. package/dist/team/team-ops.d.ts.map +1 -0
  956. package/dist/team/team-ops.js +547 -0
  957. package/dist/team/team-ops.js.map +1 -0
  958. package/dist/team/tmux-comm.d.ts.map +1 -1
  959. package/dist/team/tmux-comm.js +107 -44
  960. package/dist/team/tmux-comm.js.map +1 -1
  961. package/dist/team/tmux-session.d.ts +5 -0
  962. package/dist/team/tmux-session.d.ts.map +1 -1
  963. package/dist/team/tmux-session.js +81 -10
  964. package/dist/team/tmux-session.js.map +1 -1
  965. package/dist/team/types.d.ts +303 -8
  966. package/dist/team/types.d.ts.map +1 -1
  967. package/dist/team/types.js +2 -1
  968. package/dist/team/types.js.map +1 -1
  969. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  970. package/dist/team/worker-bootstrap.js +73 -21
  971. package/dist/team/worker-bootstrap.js.map +1 -1
  972. package/dist/tools/__tests__/cancel-integration.test.d.ts +2 -0
  973. package/dist/tools/__tests__/cancel-integration.test.d.ts.map +1 -0
  974. package/dist/tools/__tests__/cancel-integration.test.js +248 -0
  975. package/dist/tools/__tests__/cancel-integration.test.js.map +1 -0
  976. package/dist/tools/__tests__/memory-tools.test.d.ts +2 -0
  977. package/dist/tools/__tests__/memory-tools.test.d.ts.map +1 -0
  978. package/dist/tools/__tests__/memory-tools.test.js +66 -0
  979. package/dist/tools/__tests__/memory-tools.test.js.map +1 -0
  980. package/dist/tools/__tests__/state-tools.test.js +73 -5
  981. package/dist/tools/__tests__/state-tools.test.js.map +1 -1
  982. package/dist/tools/lsp/__tests__/client-eviction.test.js +6 -6
  983. package/dist/tools/lsp/__tests__/client-eviction.test.js.map +1 -1
  984. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts +2 -0
  985. package/dist/tools/lsp/__tests__/client-timeout-env.test.d.ts.map +1 -0
  986. package/dist/tools/lsp/__tests__/client-timeout-env.test.js +39 -0
  987. package/dist/tools/lsp/__tests__/client-timeout-env.test.js.map +1 -0
  988. package/dist/tools/lsp/client.d.ts +2 -0
  989. package/dist/tools/lsp/client.d.ts.map +1 -1
  990. package/dist/tools/lsp/client.js +11 -1
  991. package/dist/tools/lsp/client.js.map +1 -1
  992. package/dist/tools/lsp/index.d.ts +1 -1
  993. package/dist/tools/lsp/index.d.ts.map +1 -1
  994. package/dist/tools/lsp/index.js +1 -1
  995. package/dist/tools/lsp/index.js.map +1 -1
  996. package/dist/tools/memory-tools.d.ts.map +1 -1
  997. package/dist/tools/memory-tools.js +2 -1
  998. package/dist/tools/memory-tools.js.map +1 -1
  999. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts +2 -0
  1000. package/dist/tools/python-repl/__tests__/tcp-fallback.test.d.ts.map +1 -0
  1001. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js +138 -0
  1002. package/dist/tools/python-repl/__tests__/tcp-fallback.test.js.map +1 -0
  1003. package/dist/tools/python-repl/bridge-manager.d.ts.map +1 -1
  1004. package/dist/tools/python-repl/bridge-manager.js +104 -24
  1005. package/dist/tools/python-repl/bridge-manager.js.map +1 -1
  1006. package/dist/tools/python-repl/paths.d.ts +8 -0
  1007. package/dist/tools/python-repl/paths.d.ts.map +1 -1
  1008. package/dist/tools/python-repl/paths.js +10 -0
  1009. package/dist/tools/python-repl/paths.js.map +1 -1
  1010. package/dist/tools/python-repl/socket-client.d.ts.map +1 -1
  1011. package/dist/tools/python-repl/socket-client.js +9 -2
  1012. package/dist/tools/python-repl/socket-client.js.map +1 -1
  1013. package/dist/tools/shared-memory-tools.d.ts +55 -0
  1014. package/dist/tools/shared-memory-tools.d.ts.map +1 -0
  1015. package/dist/tools/shared-memory-tools.js +250 -0
  1016. package/dist/tools/shared-memory-tools.js.map +1 -0
  1017. package/dist/tools/state-tools.d.ts.map +1 -1
  1018. package/dist/tools/state-tools.js +126 -101
  1019. package/dist/tools/state-tools.js.map +1 -1
  1020. package/dist/utils/daemon-module-path.d.ts +9 -0
  1021. package/dist/utils/daemon-module-path.d.ts.map +1 -0
  1022. package/dist/utils/daemon-module-path.js +23 -0
  1023. package/dist/utils/daemon-module-path.js.map +1 -0
  1024. package/dist/utils/jsonc.d.ts +16 -0
  1025. package/dist/utils/jsonc.d.ts.map +1 -0
  1026. package/dist/utils/jsonc.js +64 -0
  1027. package/dist/utils/jsonc.js.map +1 -0
  1028. package/dist/utils/paths.js +1 -1
  1029. package/dist/utils/paths.js.map +1 -1
  1030. package/dist/utils/ssrf-guard.d.ts +26 -0
  1031. package/dist/utils/ssrf-guard.d.ts.map +1 -0
  1032. package/dist/utils/ssrf-guard.js +103 -0
  1033. package/dist/utils/ssrf-guard.js.map +1 -0
  1034. package/dist/verification/tier-selector.d.ts +1 -1
  1035. package/dist/verification/tier-selector.js +1 -1
  1036. package/docs/ANALYTICS-SYSTEM.md +2 -5
  1037. package/docs/CLAUDE.md +88 -212
  1038. package/docs/MIGRATION.md +138 -161
  1039. package/docs/PERFORMANCE-MONITORING.md +5 -5
  1040. package/docs/REFERENCE.md +351 -286
  1041. package/docs/fixes/agent-prefix-routing-fix.md +105 -0
  1042. package/docs/ko/ARCHITECTURE.md +152 -0
  1043. package/docs/ko/FEATURES.md +582 -0
  1044. package/docs/ko/MIGRATION.md +1027 -0
  1045. package/docs/ko/REFERENCE.md +745 -0
  1046. package/docs/partials/mode-selection-guide.md +22 -12
  1047. package/docs/shared/mode-selection-guide.md +22 -12
  1048. package/package.json +11 -6
  1049. package/scripts/ask-codex.sh +24 -0
  1050. package/scripts/ask-gemini.sh +24 -0
  1051. package/scripts/build-cli.mjs +47 -0
  1052. package/scripts/build-runtime-cli.mjs +2 -0
  1053. package/scripts/context-guard-stop.mjs +66 -3
  1054. package/scripts/context-safety.mjs +67 -2
  1055. package/scripts/keyword-detector.mjs +14 -36
  1056. package/scripts/persistent-mode.cjs +106 -1
  1057. package/scripts/persistent-mode.mjs +88 -2
  1058. package/scripts/plugin-setup.mjs +46 -4
  1059. package/scripts/pre-tool-enforcer.mjs +1 -0
  1060. package/scripts/qa-tests/test-custom-integration.mjs +144 -0
  1061. package/scripts/run-provider-advisor.js +220 -0
  1062. package/scripts/session-start.mjs +42 -2
  1063. package/skills/AGENTS.md +16 -20
  1064. package/skills/ask-codex/SKILL.md +47 -0
  1065. package/skills/ask-gemini/SKILL.md +47 -0
  1066. package/skills/autopilot/SKILL.md +39 -5
  1067. package/skills/cancel/SKILL.md +23 -105
  1068. package/skills/ccg/SKILL.md +58 -75
  1069. package/skills/configure-notifications/SKILL.md +276 -0
  1070. package/skills/configure-openclaw/SKILL.md +63 -0
  1071. package/skills/deep-interview/SKILL.md +551 -0
  1072. package/skills/deepinit/SKILL.md +1 -1
  1073. package/skills/hud/SKILL.md +35 -3
  1074. package/skills/omc-doctor/SKILL.md +30 -13
  1075. package/skills/omc-help/SKILL.md +1 -1
  1076. package/skills/omc-setup/SKILL.md +20 -20
  1077. package/skills/omc-teams/SKILL.md +60 -112
  1078. package/skills/plan/SKILL.md +5 -5
  1079. package/skills/quick-init-project/SKILL.md +333 -0
  1080. package/skills/ralph/SKILL.md +96 -70
  1081. package/skills/ralplan/SKILL.md +7 -7
  1082. package/skills/security-review/SKILL.md +2 -2
  1083. package/skills/team/SKILL.md +36 -2
  1084. package/skills/ultrawork/SKILL.md +7 -7
  1085. package/templates/hooks/keyword-detector.mjs +20 -28
  1086. package/templates/hooks/persistent-mode.mjs +89 -2
  1087. package/templates/hooks/pre-tool-use.mjs +79 -0
  1088. package/templates/hooks/session-start.mjs +3 -3
  1089. package/skills/pipeline/SKILL.md +0 -434
  1090. package/skills/review/SKILL.md +0 -30
  1091. package/skills/ultrapilot/SKILL.md +0 -632
@@ -29,10 +29,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
30
  mod
31
31
  ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
33
 
33
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
34
+ // node_modules/ajv/dist/compile/codegen/code.js
34
35
  var require_code = __commonJS({
35
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
36
+ "node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
36
37
  "use strict";
37
38
  Object.defineProperty(exports2, "__esModule", { value: true });
38
39
  exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
@@ -184,9 +185,9 @@ var require_code = __commonJS({
184
185
  }
185
186
  });
186
187
 
187
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js
188
+ // node_modules/ajv/dist/compile/codegen/scope.js
188
189
  var require_scope = __commonJS({
189
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
190
+ "node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
190
191
  "use strict";
191
192
  Object.defineProperty(exports2, "__esModule", { value: true });
192
193
  exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
@@ -329,9 +330,9 @@ var require_scope = __commonJS({
329
330
  }
330
331
  });
331
332
 
332
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js
333
+ // node_modules/ajv/dist/compile/codegen/index.js
333
334
  var require_codegen = __commonJS({
334
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
335
+ "node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
335
336
  "use strict";
336
337
  Object.defineProperty(exports2, "__esModule", { value: true });
337
338
  exports2.or = exports2.and = exports2.not = exports2.CodeGen = exports2.operators = exports2.varKinds = exports2.ValueScopeName = exports2.ValueScope = exports2.Scope = exports2.Name = exports2.regexpCode = exports2.stringify = exports2.getProperty = exports2.nil = exports2.strConcat = exports2.str = exports2._ = void 0;
@@ -1049,9 +1050,9 @@ var require_codegen = __commonJS({
1049
1050
  }
1050
1051
  });
1051
1052
 
1052
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js
1053
+ // node_modules/ajv/dist/compile/util.js
1053
1054
  var require_util = __commonJS({
1054
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js"(exports2) {
1055
+ "node_modules/ajv/dist/compile/util.js"(exports2) {
1055
1056
  "use strict";
1056
1057
  Object.defineProperty(exports2, "__esModule", { value: true });
1057
1058
  exports2.checkStrictMode = exports2.getErrorPath = exports2.Type = exports2.useFunc = exports2.setEvaluated = exports2.evaluatedPropsToName = exports2.mergeEvaluated = exports2.eachItem = exports2.unescapeJsonPointer = exports2.escapeJsonPointer = exports2.escapeFragment = exports2.unescapeFragment = exports2.schemaRefOrVal = exports2.schemaHasRulesButRef = exports2.schemaHasRules = exports2.checkUnknownRules = exports2.alwaysValidSchema = exports2.toHash = void 0;
@@ -1216,9 +1217,9 @@ var require_util = __commonJS({
1216
1217
  }
1217
1218
  });
1218
1219
 
1219
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js
1220
+ // node_modules/ajv/dist/compile/names.js
1220
1221
  var require_names = __commonJS({
1221
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js"(exports2) {
1222
+ "node_modules/ajv/dist/compile/names.js"(exports2) {
1222
1223
  "use strict";
1223
1224
  Object.defineProperty(exports2, "__esModule", { value: true });
1224
1225
  var codegen_1 = require_codegen();
@@ -1255,9 +1256,9 @@ var require_names = __commonJS({
1255
1256
  }
1256
1257
  });
1257
1258
 
1258
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js
1259
+ // node_modules/ajv/dist/compile/errors.js
1259
1260
  var require_errors = __commonJS({
1260
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js"(exports2) {
1261
+ "node_modules/ajv/dist/compile/errors.js"(exports2) {
1261
1262
  "use strict";
1262
1263
  Object.defineProperty(exports2, "__esModule", { value: true });
1263
1264
  exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
@@ -1377,9 +1378,9 @@ var require_errors = __commonJS({
1377
1378
  }
1378
1379
  });
1379
1380
 
1380
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js
1381
+ // node_modules/ajv/dist/compile/validate/boolSchema.js
1381
1382
  var require_boolSchema = __commonJS({
1382
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
1383
+ "node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
1383
1384
  "use strict";
1384
1385
  Object.defineProperty(exports2, "__esModule", { value: true });
1385
1386
  exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
@@ -1428,9 +1429,9 @@ var require_boolSchema = __commonJS({
1428
1429
  }
1429
1430
  });
1430
1431
 
1431
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js
1432
+ // node_modules/ajv/dist/compile/rules.js
1432
1433
  var require_rules = __commonJS({
1433
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js"(exports2) {
1434
+ "node_modules/ajv/dist/compile/rules.js"(exports2) {
1434
1435
  "use strict";
1435
1436
  Object.defineProperty(exports2, "__esModule", { value: true });
1436
1437
  exports2.getRules = exports2.isJSONType = void 0;
@@ -1459,9 +1460,9 @@ var require_rules = __commonJS({
1459
1460
  }
1460
1461
  });
1461
1462
 
1462
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js
1463
+ // node_modules/ajv/dist/compile/validate/applicability.js
1463
1464
  var require_applicability = __commonJS({
1464
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
1465
+ "node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
1465
1466
  "use strict";
1466
1467
  Object.defineProperty(exports2, "__esModule", { value: true });
1467
1468
  exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
@@ -1482,9 +1483,9 @@ var require_applicability = __commonJS({
1482
1483
  }
1483
1484
  });
1484
1485
 
1485
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js
1486
+ // node_modules/ajv/dist/compile/validate/dataType.js
1486
1487
  var require_dataType = __commonJS({
1487
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
1488
+ "node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
1488
1489
  "use strict";
1489
1490
  Object.defineProperty(exports2, "__esModule", { value: true });
1490
1491
  exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
@@ -1666,9 +1667,9 @@ var require_dataType = __commonJS({
1666
1667
  }
1667
1668
  });
1668
1669
 
1669
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js
1670
+ // node_modules/ajv/dist/compile/validate/defaults.js
1670
1671
  var require_defaults = __commonJS({
1671
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
1672
+ "node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
1672
1673
  "use strict";
1673
1674
  Object.defineProperty(exports2, "__esModule", { value: true });
1674
1675
  exports2.assignDefaults = void 0;
@@ -1703,9 +1704,9 @@ var require_defaults = __commonJS({
1703
1704
  }
1704
1705
  });
1705
1706
 
1706
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js
1707
+ // node_modules/ajv/dist/vocabularies/code.js
1707
1708
  var require_code2 = __commonJS({
1708
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js"(exports2) {
1709
+ "node_modules/ajv/dist/vocabularies/code.js"(exports2) {
1709
1710
  "use strict";
1710
1711
  Object.defineProperty(exports2, "__esModule", { value: true });
1711
1712
  exports2.validateUnion = exports2.validateArray = exports2.usePattern = exports2.callValidateCode = exports2.schemaProperties = exports2.allSchemaProperties = exports2.noPropertyInData = exports2.propertyInData = exports2.isOwnProperty = exports2.hasPropFunc = exports2.reportMissingProp = exports2.checkMissingProp = exports2.checkReportMissingProp = void 0;
@@ -1836,9 +1837,9 @@ var require_code2 = __commonJS({
1836
1837
  }
1837
1838
  });
1838
1839
 
1839
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js
1840
+ // node_modules/ajv/dist/compile/validate/keyword.js
1840
1841
  var require_keyword = __commonJS({
1841
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
1842
+ "node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
1842
1843
  "use strict";
1843
1844
  Object.defineProperty(exports2, "__esModule", { value: true });
1844
1845
  exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
@@ -1954,9 +1955,9 @@ var require_keyword = __commonJS({
1954
1955
  }
1955
1956
  });
1956
1957
 
1957
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js
1958
+ // node_modules/ajv/dist/compile/validate/subschema.js
1958
1959
  var require_subschema = __commonJS({
1959
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
1960
+ "node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
1960
1961
  "use strict";
1961
1962
  Object.defineProperty(exports2, "__esModule", { value: true });
1962
1963
  exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
@@ -2037,9 +2038,9 @@ var require_subschema = __commonJS({
2037
2038
  }
2038
2039
  });
2039
2040
 
2040
- // node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
2041
+ // node_modules/fast-deep-equal/index.js
2041
2042
  var require_fast_deep_equal = __commonJS({
2042
- "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports2, module2) {
2043
+ "node_modules/fast-deep-equal/index.js"(exports2, module2) {
2043
2044
  "use strict";
2044
2045
  module2.exports = function equal(a, b) {
2045
2046
  if (a === b) return true;
@@ -2072,9 +2073,9 @@ var require_fast_deep_equal = __commonJS({
2072
2073
  }
2073
2074
  });
2074
2075
 
2075
- // node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
2076
+ // node_modules/json-schema-traverse/index.js
2076
2077
  var require_json_schema_traverse = __commonJS({
2077
- "node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports2, module2) {
2078
+ "node_modules/json-schema-traverse/index.js"(exports2, module2) {
2078
2079
  "use strict";
2079
2080
  var traverse = module2.exports = function(schema, opts, cb) {
2080
2081
  if (typeof opts == "function") {
@@ -2160,9 +2161,9 @@ var require_json_schema_traverse = __commonJS({
2160
2161
  }
2161
2162
  });
2162
2163
 
2163
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
2164
+ // node_modules/ajv/dist/compile/resolve.js
2164
2165
  var require_resolve = __commonJS({
2165
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js"(exports2) {
2166
+ "node_modules/ajv/dist/compile/resolve.js"(exports2) {
2166
2167
  "use strict";
2167
2168
  Object.defineProperty(exports2, "__esModule", { value: true });
2168
2169
  exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
@@ -2316,9 +2317,9 @@ var require_resolve = __commonJS({
2316
2317
  }
2317
2318
  });
2318
2319
 
2319
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js
2320
+ // node_modules/ajv/dist/compile/validate/index.js
2320
2321
  var require_validate = __commonJS({
2321
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js"(exports2) {
2322
+ "node_modules/ajv/dist/compile/validate/index.js"(exports2) {
2322
2323
  "use strict";
2323
2324
  Object.defineProperty(exports2, "__esModule", { value: true });
2324
2325
  exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
@@ -2824,9 +2825,9 @@ var require_validate = __commonJS({
2824
2825
  }
2825
2826
  });
2826
2827
 
2827
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js
2828
+ // node_modules/ajv/dist/runtime/validation_error.js
2828
2829
  var require_validation_error = __commonJS({
2829
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
2830
+ "node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
2830
2831
  "use strict";
2831
2832
  Object.defineProperty(exports2, "__esModule", { value: true });
2832
2833
  var ValidationError = class extends Error {
@@ -2840,9 +2841,9 @@ var require_validation_error = __commonJS({
2840
2841
  }
2841
2842
  });
2842
2843
 
2843
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js
2844
+ // node_modules/ajv/dist/compile/ref_error.js
2844
2845
  var require_ref_error = __commonJS({
2845
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js"(exports2) {
2846
+ "node_modules/ajv/dist/compile/ref_error.js"(exports2) {
2846
2847
  "use strict";
2847
2848
  Object.defineProperty(exports2, "__esModule", { value: true });
2848
2849
  var resolve_1 = require_resolve();
@@ -2857,9 +2858,9 @@ var require_ref_error = __commonJS({
2857
2858
  }
2858
2859
  });
2859
2860
 
2860
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js
2861
+ // node_modules/ajv/dist/compile/index.js
2861
2862
  var require_compile = __commonJS({
2862
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js"(exports2) {
2863
+ "node_modules/ajv/dist/compile/index.js"(exports2) {
2863
2864
  "use strict";
2864
2865
  Object.defineProperty(exports2, "__esModule", { value: true });
2865
2866
  exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
@@ -3081,9 +3082,9 @@ var require_compile = __commonJS({
3081
3082
  }
3082
3083
  });
3083
3084
 
3084
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json
3085
+ // node_modules/ajv/dist/refs/data.json
3085
3086
  var require_data = __commonJS({
3086
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json"(exports2, module2) {
3087
+ "node_modules/ajv/dist/refs/data.json"(exports2, module2) {
3087
3088
  module2.exports = {
3088
3089
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3089
3090
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3100,9 +3101,9 @@ var require_data = __commonJS({
3100
3101
  }
3101
3102
  });
3102
3103
 
3103
- // node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
3104
+ // node_modules/fast-uri/lib/utils.js
3104
3105
  var require_utils = __commonJS({
3105
- "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports2, module2) {
3106
+ "node_modules/fast-uri/lib/utils.js"(exports2, module2) {
3106
3107
  "use strict";
3107
3108
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3108
3109
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
@@ -3357,9 +3358,9 @@ var require_utils = __commonJS({
3357
3358
  }
3358
3359
  });
3359
3360
 
3360
- // node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
3361
+ // node_modules/fast-uri/lib/schemes.js
3361
3362
  var require_schemes = __commonJS({
3362
- "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
3363
+ "node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
3363
3364
  "use strict";
3364
3365
  var { isUUID } = require_utils();
3365
3366
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -3567,9 +3568,9 @@ var require_schemes = __commonJS({
3567
3568
  }
3568
3569
  });
3569
3570
 
3570
- // node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
3571
+ // node_modules/fast-uri/index.js
3571
3572
  var require_fast_uri = __commonJS({
3572
- "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports2, module2) {
3573
+ "node_modules/fast-uri/index.js"(exports2, module2) {
3573
3574
  "use strict";
3574
3575
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3575
3576
  var { SCHEMES, getSchemeHandler } = require_schemes();
@@ -3822,9 +3823,9 @@ var require_fast_uri = __commonJS({
3822
3823
  }
3823
3824
  });
3824
3825
 
3825
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js
3826
+ // node_modules/ajv/dist/runtime/uri.js
3826
3827
  var require_uri = __commonJS({
3827
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js"(exports2) {
3828
+ "node_modules/ajv/dist/runtime/uri.js"(exports2) {
3828
3829
  "use strict";
3829
3830
  Object.defineProperty(exports2, "__esModule", { value: true });
3830
3831
  var uri = require_fast_uri();
@@ -3833,9 +3834,9 @@ var require_uri = __commonJS({
3833
3834
  }
3834
3835
  });
3835
3836
 
3836
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
3837
+ // node_modules/ajv/dist/core.js
3837
3838
  var require_core = __commonJS({
3838
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"(exports2) {
3839
+ "node_modules/ajv/dist/core.js"(exports2) {
3839
3840
  "use strict";
3840
3841
  Object.defineProperty(exports2, "__esModule", { value: true });
3841
3842
  exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
@@ -4444,9 +4445,9 @@ var require_core = __commonJS({
4444
4445
  }
4445
4446
  });
4446
4447
 
4447
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js
4448
+ // node_modules/ajv/dist/vocabularies/core/id.js
4448
4449
  var require_id = __commonJS({
4449
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
4450
+ "node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
4450
4451
  "use strict";
4451
4452
  Object.defineProperty(exports2, "__esModule", { value: true });
4452
4453
  var def = {
@@ -4459,9 +4460,9 @@ var require_id = __commonJS({
4459
4460
  }
4460
4461
  });
4461
4462
 
4462
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js
4463
+ // node_modules/ajv/dist/vocabularies/core/ref.js
4463
4464
  var require_ref = __commonJS({
4464
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
4465
+ "node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
4465
4466
  "use strict";
4466
4467
  Object.defineProperty(exports2, "__esModule", { value: true });
4467
4468
  exports2.callRef = exports2.getValidate = void 0;
@@ -4581,9 +4582,9 @@ var require_ref = __commonJS({
4581
4582
  }
4582
4583
  });
4583
4584
 
4584
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
4585
+ // node_modules/ajv/dist/vocabularies/core/index.js
4585
4586
  var require_core2 = __commonJS({
4586
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
4587
+ "node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
4587
4588
  "use strict";
4588
4589
  Object.defineProperty(exports2, "__esModule", { value: true });
4589
4590
  var id_1 = require_id();
@@ -4602,9 +4603,9 @@ var require_core2 = __commonJS({
4602
4603
  }
4603
4604
  });
4604
4605
 
4605
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4606
+ // node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4606
4607
  var require_limitNumber = __commonJS({
4607
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
4608
+ "node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
4608
4609
  "use strict";
4609
4610
  Object.defineProperty(exports2, "__esModule", { value: true });
4610
4611
  var codegen_1 = require_codegen();
@@ -4634,9 +4635,9 @@ var require_limitNumber = __commonJS({
4634
4635
  }
4635
4636
  });
4636
4637
 
4637
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4638
+ // node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4638
4639
  var require_multipleOf = __commonJS({
4639
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
4640
+ "node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
4640
4641
  "use strict";
4641
4642
  Object.defineProperty(exports2, "__esModule", { value: true });
4642
4643
  var codegen_1 = require_codegen();
@@ -4662,9 +4663,9 @@ var require_multipleOf = __commonJS({
4662
4663
  }
4663
4664
  });
4664
4665
 
4665
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js
4666
+ // node_modules/ajv/dist/runtime/ucs2length.js
4666
4667
  var require_ucs2length = __commonJS({
4667
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
4668
+ "node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
4668
4669
  "use strict";
4669
4670
  Object.defineProperty(exports2, "__esModule", { value: true });
4670
4671
  function ucs2length(str) {
@@ -4688,9 +4689,9 @@ var require_ucs2length = __commonJS({
4688
4689
  }
4689
4690
  });
4690
4691
 
4691
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4692
+ // node_modules/ajv/dist/vocabularies/validation/limitLength.js
4692
4693
  var require_limitLength = __commonJS({
4693
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
4694
+ "node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
4694
4695
  "use strict";
4695
4696
  Object.defineProperty(exports2, "__esModule", { value: true });
4696
4697
  var codegen_1 = require_codegen();
@@ -4720,9 +4721,9 @@ var require_limitLength = __commonJS({
4720
4721
  }
4721
4722
  });
4722
4723
 
4723
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js
4724
+ // node_modules/ajv/dist/vocabularies/validation/pattern.js
4724
4725
  var require_pattern = __commonJS({
4725
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
4726
+ "node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
4726
4727
  "use strict";
4727
4728
  Object.defineProperty(exports2, "__esModule", { value: true });
4728
4729
  var code_1 = require_code2();
@@ -4748,9 +4749,9 @@ var require_pattern = __commonJS({
4748
4749
  }
4749
4750
  });
4750
4751
 
4751
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4752
+ // node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4752
4753
  var require_limitProperties = __commonJS({
4753
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
4754
+ "node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
4754
4755
  "use strict";
4755
4756
  Object.defineProperty(exports2, "__esModule", { value: true });
4756
4757
  var codegen_1 = require_codegen();
@@ -4777,9 +4778,9 @@ var require_limitProperties = __commonJS({
4777
4778
  }
4778
4779
  });
4779
4780
 
4780
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js
4781
+ // node_modules/ajv/dist/vocabularies/validation/required.js
4781
4782
  var require_required = __commonJS({
4782
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
4783
+ "node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
4783
4784
  "use strict";
4784
4785
  Object.defineProperty(exports2, "__esModule", { value: true });
4785
4786
  var code_1 = require_code2();
@@ -4859,9 +4860,9 @@ var require_required = __commonJS({
4859
4860
  }
4860
4861
  });
4861
4862
 
4862
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4863
+ // node_modules/ajv/dist/vocabularies/validation/limitItems.js
4863
4864
  var require_limitItems = __commonJS({
4864
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
4865
+ "node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
4865
4866
  "use strict";
4866
4867
  Object.defineProperty(exports2, "__esModule", { value: true });
4867
4868
  var codegen_1 = require_codegen();
@@ -4888,9 +4889,9 @@ var require_limitItems = __commonJS({
4888
4889
  }
4889
4890
  });
4890
4891
 
4891
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
4892
+ // node_modules/ajv/dist/runtime/equal.js
4892
4893
  var require_equal = __commonJS({
4893
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports2) {
4894
+ "node_modules/ajv/dist/runtime/equal.js"(exports2) {
4894
4895
  "use strict";
4895
4896
  Object.defineProperty(exports2, "__esModule", { value: true });
4896
4897
  var equal = require_fast_deep_equal();
@@ -4899,9 +4900,9 @@ var require_equal = __commonJS({
4899
4900
  }
4900
4901
  });
4901
4902
 
4902
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4903
+ // node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4903
4904
  var require_uniqueItems = __commonJS({
4904
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
4905
+ "node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
4905
4906
  "use strict";
4906
4907
  Object.defineProperty(exports2, "__esModule", { value: true });
4907
4908
  var dataType_1 = require_dataType();
@@ -4966,9 +4967,9 @@ var require_uniqueItems = __commonJS({
4966
4967
  }
4967
4968
  });
4968
4969
 
4969
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js
4970
+ // node_modules/ajv/dist/vocabularies/validation/const.js
4970
4971
  var require_const = __commonJS({
4971
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
4972
+ "node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
4972
4973
  "use strict";
4973
4974
  Object.defineProperty(exports2, "__esModule", { value: true });
4974
4975
  var codegen_1 = require_codegen();
@@ -4995,9 +4996,9 @@ var require_const = __commonJS({
4995
4996
  }
4996
4997
  });
4997
4998
 
4998
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js
4999
+ // node_modules/ajv/dist/vocabularies/validation/enum.js
4999
5000
  var require_enum = __commonJS({
5000
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
5001
+ "node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
5001
5002
  "use strict";
5002
5003
  Object.defineProperty(exports2, "__esModule", { value: true });
5003
5004
  var codegen_1 = require_codegen();
@@ -5044,9 +5045,9 @@ var require_enum = __commonJS({
5044
5045
  }
5045
5046
  });
5046
5047
 
5047
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js
5048
+ // node_modules/ajv/dist/vocabularies/validation/index.js
5048
5049
  var require_validation = __commonJS({
5049
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
5050
+ "node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
5050
5051
  "use strict";
5051
5052
  Object.defineProperty(exports2, "__esModule", { value: true });
5052
5053
  var limitNumber_1 = require_limitNumber();
@@ -5082,9 +5083,9 @@ var require_validation = __commonJS({
5082
5083
  }
5083
5084
  });
5084
5085
 
5085
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5086
+ // node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5086
5087
  var require_additionalItems = __commonJS({
5087
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
5088
+ "node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
5088
5089
  "use strict";
5089
5090
  Object.defineProperty(exports2, "__esModule", { value: true });
5090
5091
  exports2.validateAdditionalItems = void 0;
@@ -5135,9 +5136,9 @@ var require_additionalItems = __commonJS({
5135
5136
  }
5136
5137
  });
5137
5138
 
5138
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js
5139
+ // node_modules/ajv/dist/vocabularies/applicator/items.js
5139
5140
  var require_items = __commonJS({
5140
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
5141
+ "node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
5141
5142
  "use strict";
5142
5143
  Object.defineProperty(exports2, "__esModule", { value: true });
5143
5144
  exports2.validateTuple = void 0;
@@ -5192,9 +5193,9 @@ var require_items = __commonJS({
5192
5193
  }
5193
5194
  });
5194
5195
 
5195
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5196
+ // node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5196
5197
  var require_prefixItems = __commonJS({
5197
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
5198
+ "node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
5198
5199
  "use strict";
5199
5200
  Object.defineProperty(exports2, "__esModule", { value: true });
5200
5201
  var items_1 = require_items();
@@ -5209,9 +5210,9 @@ var require_prefixItems = __commonJS({
5209
5210
  }
5210
5211
  });
5211
5212
 
5212
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5213
+ // node_modules/ajv/dist/vocabularies/applicator/items2020.js
5213
5214
  var require_items2020 = __commonJS({
5214
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
5215
+ "node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
5215
5216
  "use strict";
5216
5217
  Object.defineProperty(exports2, "__esModule", { value: true });
5217
5218
  var codegen_1 = require_codegen();
@@ -5244,9 +5245,9 @@ var require_items2020 = __commonJS({
5244
5245
  }
5245
5246
  });
5246
5247
 
5247
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js
5248
+ // node_modules/ajv/dist/vocabularies/applicator/contains.js
5248
5249
  var require_contains = __commonJS({
5249
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
5250
+ "node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
5250
5251
  "use strict";
5251
5252
  Object.defineProperty(exports2, "__esModule", { value: true });
5252
5253
  var codegen_1 = require_codegen();
@@ -5338,9 +5339,9 @@ var require_contains = __commonJS({
5338
5339
  }
5339
5340
  });
5340
5341
 
5341
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5342
+ // node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5342
5343
  var require_dependencies = __commonJS({
5343
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
5344
+ "node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
5344
5345
  "use strict";
5345
5346
  Object.defineProperty(exports2, "__esModule", { value: true });
5346
5347
  exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
@@ -5432,9 +5433,9 @@ var require_dependencies = __commonJS({
5432
5433
  }
5433
5434
  });
5434
5435
 
5435
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5436
+ // node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5436
5437
  var require_propertyNames = __commonJS({
5437
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
5438
+ "node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
5438
5439
  "use strict";
5439
5440
  Object.defineProperty(exports2, "__esModule", { value: true });
5440
5441
  var codegen_1 = require_codegen();
@@ -5475,9 +5476,9 @@ var require_propertyNames = __commonJS({
5475
5476
  }
5476
5477
  });
5477
5478
 
5478
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5479
+ // node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5479
5480
  var require_additionalProperties = __commonJS({
5480
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
5481
+ "node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
5481
5482
  "use strict";
5482
5483
  Object.defineProperty(exports2, "__esModule", { value: true });
5483
5484
  var code_1 = require_code2();
@@ -5581,9 +5582,9 @@ var require_additionalProperties = __commonJS({
5581
5582
  }
5582
5583
  });
5583
5584
 
5584
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js
5585
+ // node_modules/ajv/dist/vocabularies/applicator/properties.js
5585
5586
  var require_properties = __commonJS({
5586
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
5587
+ "node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
5587
5588
  "use strict";
5588
5589
  Object.defineProperty(exports2, "__esModule", { value: true });
5589
5590
  var validate_1 = require_validate();
@@ -5639,9 +5640,9 @@ var require_properties = __commonJS({
5639
5640
  }
5640
5641
  });
5641
5642
 
5642
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5643
+ // node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5643
5644
  var require_patternProperties = __commonJS({
5644
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
5645
+ "node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
5645
5646
  "use strict";
5646
5647
  Object.defineProperty(exports2, "__esModule", { value: true });
5647
5648
  var code_1 = require_code2();
@@ -5713,9 +5714,9 @@ var require_patternProperties = __commonJS({
5713
5714
  }
5714
5715
  });
5715
5716
 
5716
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js
5717
+ // node_modules/ajv/dist/vocabularies/applicator/not.js
5717
5718
  var require_not = __commonJS({
5718
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
5719
+ "node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
5719
5720
  "use strict";
5720
5721
  Object.defineProperty(exports2, "__esModule", { value: true });
5721
5722
  var util_1 = require_util();
@@ -5744,9 +5745,9 @@ var require_not = __commonJS({
5744
5745
  }
5745
5746
  });
5746
5747
 
5747
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5748
+ // node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5748
5749
  var require_anyOf = __commonJS({
5749
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
5750
+ "node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
5750
5751
  "use strict";
5751
5752
  Object.defineProperty(exports2, "__esModule", { value: true });
5752
5753
  var code_1 = require_code2();
@@ -5761,9 +5762,9 @@ var require_anyOf = __commonJS({
5761
5762
  }
5762
5763
  });
5763
5764
 
5764
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5765
+ // node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5765
5766
  var require_oneOf = __commonJS({
5766
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
5767
+ "node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
5767
5768
  "use strict";
5768
5769
  Object.defineProperty(exports2, "__esModule", { value: true });
5769
5770
  var codegen_1 = require_codegen();
@@ -5819,9 +5820,9 @@ var require_oneOf = __commonJS({
5819
5820
  }
5820
5821
  });
5821
5822
 
5822
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5823
+ // node_modules/ajv/dist/vocabularies/applicator/allOf.js
5823
5824
  var require_allOf = __commonJS({
5824
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
5825
+ "node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
5825
5826
  "use strict";
5826
5827
  Object.defineProperty(exports2, "__esModule", { value: true });
5827
5828
  var util_1 = require_util();
@@ -5846,9 +5847,9 @@ var require_allOf = __commonJS({
5846
5847
  }
5847
5848
  });
5848
5849
 
5849
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js
5850
+ // node_modules/ajv/dist/vocabularies/applicator/if.js
5850
5851
  var require_if = __commonJS({
5851
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
5852
+ "node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
5852
5853
  "use strict";
5853
5854
  Object.defineProperty(exports2, "__esModule", { value: true });
5854
5855
  var codegen_1 = require_codegen();
@@ -5915,9 +5916,9 @@ var require_if = __commonJS({
5915
5916
  }
5916
5917
  });
5917
5918
 
5918
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5919
+ // node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5919
5920
  var require_thenElse = __commonJS({
5920
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
5921
+ "node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
5921
5922
  "use strict";
5922
5923
  Object.defineProperty(exports2, "__esModule", { value: true });
5923
5924
  var util_1 = require_util();
@@ -5933,9 +5934,9 @@ var require_thenElse = __commonJS({
5933
5934
  }
5934
5935
  });
5935
5936
 
5936
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js
5937
+ // node_modules/ajv/dist/vocabularies/applicator/index.js
5937
5938
  var require_applicator = __commonJS({
5938
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
5939
+ "node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
5939
5940
  "use strict";
5940
5941
  Object.defineProperty(exports2, "__esModule", { value: true });
5941
5942
  var additionalItems_1 = require_additionalItems();
@@ -5981,9 +5982,9 @@ var require_applicator = __commonJS({
5981
5982
  }
5982
5983
  });
5983
5984
 
5984
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js
5985
+ // node_modules/ajv/dist/vocabularies/format/format.js
5985
5986
  var require_format = __commonJS({
5986
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
5987
+ "node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
5987
5988
  "use strict";
5988
5989
  Object.defineProperty(exports2, "__esModule", { value: true });
5989
5990
  var codegen_1 = require_codegen();
@@ -6071,9 +6072,9 @@ var require_format = __commonJS({
6071
6072
  }
6072
6073
  });
6073
6074
 
6074
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js
6075
+ // node_modules/ajv/dist/vocabularies/format/index.js
6075
6076
  var require_format2 = __commonJS({
6076
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
6077
+ "node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
6077
6078
  "use strict";
6078
6079
  Object.defineProperty(exports2, "__esModule", { value: true });
6079
6080
  var format_1 = require_format();
@@ -6082,9 +6083,9 @@ var require_format2 = __commonJS({
6082
6083
  }
6083
6084
  });
6084
6085
 
6085
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js
6086
+ // node_modules/ajv/dist/vocabularies/metadata.js
6086
6087
  var require_metadata = __commonJS({
6087
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
6088
+ "node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
6088
6089
  "use strict";
6089
6090
  Object.defineProperty(exports2, "__esModule", { value: true });
6090
6091
  exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
@@ -6105,9 +6106,9 @@ var require_metadata = __commonJS({
6105
6106
  }
6106
6107
  });
6107
6108
 
6108
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js
6109
+ // node_modules/ajv/dist/vocabularies/draft7.js
6109
6110
  var require_draft7 = __commonJS({
6110
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
6111
+ "node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
6111
6112
  "use strict";
6112
6113
  Object.defineProperty(exports2, "__esModule", { value: true });
6113
6114
  var core_1 = require_core2();
@@ -6127,9 +6128,9 @@ var require_draft7 = __commonJS({
6127
6128
  }
6128
6129
  });
6129
6130
 
6130
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js
6131
+ // node_modules/ajv/dist/vocabularies/discriminator/types.js
6131
6132
  var require_types = __commonJS({
6132
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
6133
+ "node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
6133
6134
  "use strict";
6134
6135
  Object.defineProperty(exports2, "__esModule", { value: true });
6135
6136
  exports2.DiscrError = void 0;
@@ -6141,9 +6142,9 @@ var require_types = __commonJS({
6141
6142
  }
6142
6143
  });
6143
6144
 
6144
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js
6145
+ // node_modules/ajv/dist/vocabularies/discriminator/index.js
6145
6146
  var require_discriminator = __commonJS({
6146
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
6147
+ "node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
6147
6148
  "use strict";
6148
6149
  Object.defineProperty(exports2, "__esModule", { value: true });
6149
6150
  var codegen_1 = require_codegen();
@@ -6246,9 +6247,9 @@ var require_discriminator = __commonJS({
6246
6247
  }
6247
6248
  });
6248
6249
 
6249
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json
6250
+ // node_modules/ajv/dist/refs/json-schema-draft-07.json
6250
6251
  var require_json_schema_draft_07 = __commonJS({
6251
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
6252
+ "node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
6252
6253
  module2.exports = {
6253
6254
  $schema: "http://json-schema.org/draft-07/schema#",
6254
6255
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6403,9 +6404,9 @@ var require_json_schema_draft_07 = __commonJS({
6403
6404
  }
6404
6405
  });
6405
6406
 
6406
- // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js
6407
+ // node_modules/ajv/dist/ajv.js
6407
6408
  var require_ajv = __commonJS({
6408
- "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js"(exports2, module2) {
6409
+ "node_modules/ajv/dist/ajv.js"(exports2, module2) {
6409
6410
  "use strict";
6410
6411
  Object.defineProperty(exports2, "__esModule", { value: true });
6411
6412
  exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
@@ -6473,9 +6474,9 @@ var require_ajv = __commonJS({
6473
6474
  }
6474
6475
  });
6475
6476
 
6476
- // node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js
6477
+ // node_modules/ajv-formats/dist/formats.js
6477
6478
  var require_formats = __commonJS({
6478
- "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js"(exports2) {
6479
+ "node_modules/ajv-formats/dist/formats.js"(exports2) {
6479
6480
  "use strict";
6480
6481
  Object.defineProperty(exports2, "__esModule", { value: true });
6481
6482
  exports2.formatNames = exports2.fastFormats = exports2.fullFormats = void 0;
@@ -6676,9 +6677,9 @@ var require_formats = __commonJS({
6676
6677
  }
6677
6678
  });
6678
6679
 
6679
- // node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js
6680
+ // node_modules/ajv-formats/dist/limit.js
6680
6681
  var require_limit = __commonJS({
6681
- "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js"(exports2) {
6682
+ "node_modules/ajv-formats/dist/limit.js"(exports2) {
6682
6683
  "use strict";
6683
6684
  Object.defineProperty(exports2, "__esModule", { value: true });
6684
6685
  exports2.formatLimitDefinition = void 0;
@@ -6748,9 +6749,9 @@ var require_limit = __commonJS({
6748
6749
  }
6749
6750
  });
6750
6751
 
6751
- // node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js
6752
+ // node_modules/ajv-formats/dist/index.js
6752
6753
  var require_dist = __commonJS({
6753
- "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js"(exports2, module2) {
6754
+ "node_modules/ajv-formats/dist/index.js"(exports2, module2) {
6754
6755
  "use strict";
6755
6756
  Object.defineProperty(exports2, "__esModule", { value: true });
6756
6757
  var formats_1 = require_formats();
@@ -6790,7 +6791,18 @@ var require_dist = __commonJS({
6790
6791
  }
6791
6792
  });
6792
6793
 
6793
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
6794
+ // src/mcp/team-server.ts
6795
+ var team_server_exports = {};
6796
+ __export(team_server_exports, {
6797
+ createDeprecatedCliOnlyEnvelope: () => createDeprecatedCliOnlyEnvelope,
6798
+ createDeprecatedCliOnlyEnvelopeWithArgs: () => createDeprecatedCliOnlyEnvelopeWithArgs,
6799
+ handleCleanup: () => handleCleanup,
6800
+ handleStatus: () => handleStatus,
6801
+ handleWait: () => handleWait
6802
+ });
6803
+ module.exports = __toCommonJS(team_server_exports);
6804
+
6805
+ // node_modules/zod/v3/external.js
6794
6806
  var external_exports = {};
6795
6807
  __export(external_exports, {
6796
6808
  BRAND: () => BRAND,
@@ -6902,7 +6914,7 @@ __export(external_exports, {
6902
6914
  void: () => voidType
6903
6915
  });
6904
6916
 
6905
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
6917
+ // node_modules/zod/v3/helpers/util.js
6906
6918
  var util;
6907
6919
  (function(util2) {
6908
6920
  util2.assertEqual = (_) => {
@@ -7036,7 +7048,7 @@ var getParsedType = (data) => {
7036
7048
  }
7037
7049
  };
7038
7050
 
7039
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
7051
+ // node_modules/zod/v3/ZodError.js
7040
7052
  var ZodIssueCode = util.arrayToEnum([
7041
7053
  "invalid_type",
7042
7054
  "invalid_literal",
@@ -7154,7 +7166,7 @@ ZodError.create = (issues) => {
7154
7166
  return error2;
7155
7167
  };
7156
7168
 
7157
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
7169
+ // node_modules/zod/v3/locales/en.js
7158
7170
  var errorMap = (issue2, _ctx) => {
7159
7171
  let message;
7160
7172
  switch (issue2.code) {
@@ -7257,7 +7269,7 @@ var errorMap = (issue2, _ctx) => {
7257
7269
  };
7258
7270
  var en_default = errorMap;
7259
7271
 
7260
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
7272
+ // node_modules/zod/v3/errors.js
7261
7273
  var overrideErrorMap = en_default;
7262
7274
  function setErrorMap(map) {
7263
7275
  overrideErrorMap = map;
@@ -7266,7 +7278,7 @@ function getErrorMap() {
7266
7278
  return overrideErrorMap;
7267
7279
  }
7268
7280
 
7269
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
7281
+ // node_modules/zod/v3/helpers/parseUtil.js
7270
7282
  var makeIssue = (params) => {
7271
7283
  const { data, path, errorMaps, issueData } = params;
7272
7284
  const fullPath = [...path, ...issueData.path || []];
@@ -7376,14 +7388,14 @@ var isDirty = (x) => x.status === "dirty";
7376
7388
  var isValid = (x) => x.status === "valid";
7377
7389
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
7378
7390
 
7379
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
7391
+ // node_modules/zod/v3/helpers/errorUtil.js
7380
7392
  var errorUtil;
7381
7393
  (function(errorUtil2) {
7382
7394
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
7383
7395
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
7384
7396
  })(errorUtil || (errorUtil = {}));
7385
7397
 
7386
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
7398
+ // node_modules/zod/v3/types.js
7387
7399
  var ParseInputLazyPath = class {
7388
7400
  constructor(parent, value, path, key) {
7389
7401
  this._cachedPath = [];
@@ -10831,7 +10843,7 @@ var coerce = {
10831
10843
  };
10832
10844
  var NEVER = INVALID;
10833
10845
 
10834
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js
10846
+ // node_modules/zod/v4/core/core.js
10835
10847
  var NEVER2 = Object.freeze({
10836
10848
  status: "aborted"
10837
10849
  });
@@ -10890,7 +10902,7 @@ function config(newConfig) {
10890
10902
  return globalConfig;
10891
10903
  }
10892
10904
 
10893
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js
10905
+ // node_modules/zod/v4/core/util.js
10894
10906
  var util_exports = {};
10895
10907
  __export(util_exports, {
10896
10908
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -11411,7 +11423,7 @@ var Class = class {
11411
11423
  }
11412
11424
  };
11413
11425
 
11414
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js
11426
+ // node_modules/zod/v4/core/errors.js
11415
11427
  var initializer = (inst, def) => {
11416
11428
  inst.name = "$ZodError";
11417
11429
  Object.defineProperty(inst, "_zod", {
@@ -11486,7 +11498,7 @@ function formatError(error2, _mapper) {
11486
11498
  return fieldErrors;
11487
11499
  }
11488
11500
 
11489
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js
11501
+ // node_modules/zod/v4/core/parse.js
11490
11502
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
11491
11503
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
11492
11504
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -11536,7 +11548,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
11536
11548
  };
11537
11549
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
11538
11550
 
11539
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js
11551
+ // node_modules/zod/v4/core/regexes.js
11540
11552
  var cuid = /^[cC][^\s-]{8,}$/;
11541
11553
  var cuid2 = /^[0-9a-z]+$/;
11542
11554
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
@@ -11594,7 +11606,7 @@ var _null = /null/i;
11594
11606
  var lowercase = /^[^A-Z]*$/;
11595
11607
  var uppercase = /^[^a-z]*$/;
11596
11608
 
11597
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js
11609
+ // node_modules/zod/v4/core/checks.js
11598
11610
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
11599
11611
  var _a;
11600
11612
  inst._zod ?? (inst._zod = {});
@@ -11979,7 +11991,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
11979
11991
  };
11980
11992
  });
11981
11993
 
11982
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js
11994
+ // node_modules/zod/v4/core/doc.js
11983
11995
  var Doc = class {
11984
11996
  constructor(args = []) {
11985
11997
  this.content = [];
@@ -12015,14 +12027,14 @@ var Doc = class {
12015
12027
  }
12016
12028
  };
12017
12029
 
12018
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js
12030
+ // node_modules/zod/v4/core/versions.js
12019
12031
  var version = {
12020
12032
  major: 4,
12021
12033
  minor: 0,
12022
12034
  patch: 0
12023
12035
  };
12024
12036
 
12025
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js
12037
+ // node_modules/zod/v4/core/schemas.js
12026
12038
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
12027
12039
  var _a;
12028
12040
  inst ?? (inst = {});
@@ -13260,7 +13272,7 @@ function handleRefineResult(result, payload, input, inst) {
13260
13272
  }
13261
13273
  }
13262
13274
 
13263
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js
13275
+ // node_modules/zod/v4/locales/en.js
13264
13276
  var parsedType = (data) => {
13265
13277
  const t = typeof data;
13266
13278
  switch (t) {
@@ -13378,7 +13390,7 @@ function en_default2() {
13378
13390
  };
13379
13391
  }
13380
13392
 
13381
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
13393
+ // node_modules/zod/v4/core/registries.js
13382
13394
  var $ZodRegistry = class {
13383
13395
  constructor() {
13384
13396
  this._map = /* @__PURE__ */ new Map();
@@ -13426,7 +13438,7 @@ function registry() {
13426
13438
  }
13427
13439
  var globalRegistry = /* @__PURE__ */ registry();
13428
13440
 
13429
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js
13441
+ // node_modules/zod/v4/core/api.js
13430
13442
  function _string(Class2, params) {
13431
13443
  return new Class2({
13432
13444
  type: "string",
@@ -13865,7 +13877,7 @@ function _refine(Class2, fn, _params) {
13865
13877
  return schema;
13866
13878
  }
13867
13879
 
13868
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
13880
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
13869
13881
  function isZ4Schema(s) {
13870
13882
  const schema = s;
13871
13883
  return !!schema._zod;
@@ -13928,7 +13940,7 @@ function getLiteralValue(schema) {
13928
13940
  return void 0;
13929
13941
  }
13930
13942
 
13931
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/iso.js
13943
+ // node_modules/zod/v4/classic/iso.js
13932
13944
  var iso_exports = {};
13933
13945
  __export(iso_exports, {
13934
13946
  ZodISODate: () => ZodISODate,
@@ -13969,7 +13981,7 @@ function duration2(params) {
13969
13981
  return _isoDuration(ZodISODuration, params);
13970
13982
  }
13971
13983
 
13972
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.js
13984
+ // node_modules/zod/v4/classic/errors.js
13973
13985
  var initializer2 = (inst, issues) => {
13974
13986
  $ZodError.init(inst, issues);
13975
13987
  inst.name = "ZodError";
@@ -14003,13 +14015,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
14003
14015
  Parent: Error
14004
14016
  });
14005
14017
 
14006
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js
14018
+ // node_modules/zod/v4/classic/parse.js
14007
14019
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
14008
14020
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
14009
14021
  var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
14010
14022
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
14011
14023
 
14012
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js
14024
+ // node_modules/zod/v4/classic/schemas.js
14013
14025
  var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
14014
14026
  $ZodType.init(inst, def);
14015
14027
  inst.def = def;
@@ -14620,10 +14632,10 @@ function preprocess(fn, schema) {
14620
14632
  return pipe(transform(fn), schema);
14621
14633
  }
14622
14634
 
14623
- // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
14635
+ // node_modules/zod/v4/classic/external.js
14624
14636
  config(en_default2());
14625
14637
 
14626
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
14638
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
14627
14639
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
14628
14640
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
14629
14641
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -16129,15 +16141,15 @@ var UrlElicitationRequiredError = class extends McpError {
16129
16141
  }
16130
16142
  };
16131
16143
 
16132
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
16144
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
16133
16145
  function isTerminal(status) {
16134
16146
  return status === "completed" || status === "failed" || status === "cancelled";
16135
16147
  }
16136
16148
 
16137
- // node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
16149
+ // node_modules/zod-to-json-schema/dist/esm/parsers/string.js
16138
16150
  var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
16139
16151
 
16140
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
16152
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
16141
16153
  function getMethodLiteral(schema) {
16142
16154
  const shape = getObjectShape(schema);
16143
16155
  const methodSchema = shape?.method;
@@ -16158,7 +16170,7 @@ function parseWithCompat(schema, data) {
16158
16170
  return result.data;
16159
16171
  }
16160
16172
 
16161
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
16173
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
16162
16174
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
16163
16175
  var Protocol = class {
16164
16176
  constructor(_options) {
@@ -17106,7 +17118,7 @@ function mergeCapabilities(base, additional) {
17106
17118
  return result;
17107
17119
  }
17108
17120
 
17109
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
17121
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
17110
17122
  var import_ajv = __toESM(require_ajv(), 1);
17111
17123
  var import_ajv_formats = __toESM(require_dist(), 1);
17112
17124
  function createDefaultAjvInstance() {
@@ -17174,7 +17186,7 @@ var AjvJsonSchemaValidator = class {
17174
17186
  }
17175
17187
  };
17176
17188
 
17177
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
17189
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
17178
17190
  var ExperimentalServerTasks = class {
17179
17191
  constructor(_server) {
17180
17192
  this._server = _server;
@@ -17246,7 +17258,7 @@ var ExperimentalServerTasks = class {
17246
17258
  }
17247
17259
  };
17248
17260
 
17249
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
17261
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
17250
17262
  function assertToolsCallTaskCapability(requests, method, entityName) {
17251
17263
  if (!requests) {
17252
17264
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -17281,7 +17293,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
17281
17293
  }
17282
17294
  }
17283
17295
 
17284
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
17296
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
17285
17297
  var Server = class extends Protocol {
17286
17298
  /**
17287
17299
  * Initializes this server with the given name and version information.
@@ -17661,10 +17673,10 @@ var Server = class extends Protocol {
17661
17673
  }
17662
17674
  };
17663
17675
 
17664
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
17676
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
17665
17677
  var import_node_process = __toESM(require("node:process"), 1);
17666
17678
 
17667
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
17679
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
17668
17680
  var ReadBuffer = class {
17669
17681
  append(chunk) {
17670
17682
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
@@ -17692,7 +17704,7 @@ function serializeMessage(message) {
17692
17704
  return JSON.stringify(message) + "\n";
17693
17705
  }
17694
17706
 
17695
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.26.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
17707
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
17696
17708
  var StdioServerTransport = class {
17697
17709
  constructor(_stdin = import_node_process.default.stdin, _stdout = import_node_process.default.stdout) {
17698
17710
  this._stdin = _stdin;
@@ -17755,8 +17767,8 @@ var StdioServerTransport = class {
17755
17767
 
17756
17768
  // src/mcp/team-server.ts
17757
17769
  var import_child_process3 = require("child_process");
17758
- var import_path2 = require("path");
17759
- var import_fs = require("fs");
17770
+ var import_path3 = require("path");
17771
+ var import_fs2 = require("fs");
17760
17772
  var import_promises2 = require("fs/promises");
17761
17773
  var import_os = require("os");
17762
17774
 
@@ -17836,7 +17848,7 @@ async function paneInCopyMode(paneId, execFileAsync) {
17836
17848
  }
17837
17849
  }
17838
17850
  function shouldAttemptAdaptiveRetry(args) {
17839
- if (process.env.OMX_TEAM_AUTO_INTERRUPT_RETRY === "0") return false;
17851
+ if (process.env.OMC_TEAM_AUTO_INTERRUPT_RETRY === "0") return false;
17840
17852
  if (args.retriesAttempted >= 1) return false;
17841
17853
  if (args.paneInCopyMode) return false;
17842
17854
  if (!args.paneBusy) return false;
@@ -18041,25 +18053,195 @@ var NudgeTracker = class {
18041
18053
  }
18042
18054
  };
18043
18055
 
18056
+ // src/mcp/team-job-convergence.ts
18057
+ var import_fs = require("fs");
18058
+ var import_path2 = require("path");
18059
+ function readResultArtifact(omcJobsDir, jobId) {
18060
+ const artifactPath = (0, import_path2.join)(omcJobsDir, `${jobId}-result.json`);
18061
+ if (!(0, import_fs.existsSync)(artifactPath)) return { kind: "none" };
18062
+ let raw;
18063
+ try {
18064
+ raw = (0, import_fs.readFileSync)(artifactPath, "utf-8");
18065
+ } catch {
18066
+ return { kind: "none" };
18067
+ }
18068
+ try {
18069
+ const parsed = JSON.parse(raw);
18070
+ if (parsed?.status === "completed" || parsed?.status === "failed") {
18071
+ return { kind: "terminal", status: parsed.status, raw };
18072
+ }
18073
+ return { kind: "none" };
18074
+ } catch (error2) {
18075
+ const message = `Failed to parse result artifact at ${artifactPath}: ${error2 instanceof Error ? error2.message : String(error2)}`;
18076
+ return {
18077
+ kind: "parse-failed",
18078
+ message,
18079
+ payload: JSON.stringify({
18080
+ status: "failed",
18081
+ error: {
18082
+ code: "RESULT_ARTIFACT_PARSE_FAILED",
18083
+ message
18084
+ }
18085
+ })
18086
+ };
18087
+ }
18088
+ }
18089
+ function convergeJobWithResultArtifact(job, jobId, omcJobsDir) {
18090
+ const artifact = readResultArtifact(omcJobsDir, jobId);
18091
+ if (artifact.kind === "none") return { job, changed: false };
18092
+ if (artifact.kind === "terminal") {
18093
+ const changed2 = job.status !== artifact.status || job.result !== artifact.raw;
18094
+ return {
18095
+ job: changed2 ? {
18096
+ ...job,
18097
+ status: artifact.status,
18098
+ result: artifact.raw
18099
+ } : job,
18100
+ changed: changed2
18101
+ };
18102
+ }
18103
+ const changed = job.status !== "failed" || job.result !== artifact.payload || job.stderr !== artifact.message;
18104
+ return {
18105
+ job: changed ? {
18106
+ ...job,
18107
+ status: "failed",
18108
+ result: artifact.payload,
18109
+ stderr: artifact.message
18110
+ } : job,
18111
+ changed
18112
+ };
18113
+ }
18114
+ function isJobTerminal(job) {
18115
+ return job.status === "completed" || job.status === "failed" || job.status === "timeout";
18116
+ }
18117
+ function isPidAlive(pid) {
18118
+ try {
18119
+ process.kill(pid, 0);
18120
+ return true;
18121
+ } catch {
18122
+ return false;
18123
+ }
18124
+ }
18125
+ function clearScopedTeamState(job) {
18126
+ if (!job.cwd || !job.teamName) {
18127
+ return "team state cleanup skipped (missing job cwd/teamName).";
18128
+ }
18129
+ try {
18130
+ validateTeamName(job.teamName);
18131
+ } catch (error2) {
18132
+ return `team state cleanup skipped (invalid teamName): ${error2 instanceof Error ? error2.message : String(error2)}`;
18133
+ }
18134
+ const stateDir = (0, import_path2.join)(job.cwd, ".omc", "state", "team", job.teamName);
18135
+ try {
18136
+ if (!(0, import_fs.existsSync)(stateDir)) {
18137
+ return `team state dir not found at ${stateDir}.`;
18138
+ }
18139
+ (0, import_fs.rmSync)(stateDir, { recursive: true, force: true });
18140
+ return `team state dir removed at ${stateDir}.`;
18141
+ } catch (error2) {
18142
+ return `team state cleanup failed at ${stateDir}: ${error2 instanceof Error ? error2.message : String(error2)}`;
18143
+ }
18144
+ }
18145
+
18044
18146
  // src/mcp/team-server.ts
18045
18147
  var omcTeamJobs = /* @__PURE__ */ new Map();
18046
- var OMC_JOBS_DIR = (0, import_path2.join)((0, import_os.homedir)(), ".omc", "team-jobs");
18148
+ var OMC_JOBS_DIR = process.env.OMC_JOBS_DIR || (0, import_path3.join)((0, import_os.homedir)(), ".omc", "team-jobs");
18149
+ var DEPRECATION_CODE = "deprecated_cli_only";
18150
+ var TEAM_CLI_REPLACEMENT_HINTS = {
18151
+ omc_run_team_start: "omc team start",
18152
+ omc_run_team_status: "omc team status <job_id>",
18153
+ omc_run_team_wait: "omc team wait <job_id>",
18154
+ omc_run_team_cleanup: "omc team cleanup <job_id>"
18155
+ };
18156
+ function isDeprecatedTeamToolName(name) {
18157
+ return Object.prototype.hasOwnProperty.call(TEAM_CLI_REPLACEMENT_HINTS, name);
18158
+ }
18159
+ function createDeprecatedCliOnlyEnvelope(toolName) {
18160
+ return createDeprecatedCliOnlyEnvelopeWithArgs(toolName);
18161
+ }
18162
+ function quoteCliValue(value) {
18163
+ return JSON.stringify(value);
18164
+ }
18165
+ function buildCliReplacement(toolName, args) {
18166
+ const hasArgsObject = typeof args === "object" && args !== null;
18167
+ if (!hasArgsObject) {
18168
+ return TEAM_CLI_REPLACEMENT_HINTS[toolName];
18169
+ }
18170
+ const parsed = typeof args === "object" && args !== null ? args : {};
18171
+ if (toolName === "omc_run_team_start") {
18172
+ const teamName = typeof parsed.teamName === "string" ? parsed.teamName.trim() : "";
18173
+ const cwd = typeof parsed.cwd === "string" ? parsed.cwd.trim() : "";
18174
+ const agentTypes = Array.isArray(parsed.agentTypes) ? parsed.agentTypes.filter((item) => typeof item === "string" && item.trim().length > 0) : [];
18175
+ const tasks = Array.isArray(parsed.tasks) ? parsed.tasks.map(
18176
+ (task) => typeof task === "object" && task !== null && typeof task.description === "string" ? task.description.trim() : ""
18177
+ ).filter(Boolean) : [];
18178
+ const flags = ["omc", "team", "start"];
18179
+ if (teamName) flags.push("--name", quoteCliValue(teamName));
18180
+ if (cwd) flags.push("--cwd", quoteCliValue(cwd));
18181
+ if (agentTypes.length > 0) {
18182
+ const uniqueAgentTypes = new Set(agentTypes);
18183
+ if (uniqueAgentTypes.size === 1) {
18184
+ flags.push("--agent", quoteCliValue(agentTypes[0]), "--count", String(agentTypes.length));
18185
+ } else {
18186
+ flags.push("--agent", quoteCliValue(agentTypes.join(",")));
18187
+ }
18188
+ } else {
18189
+ flags.push("--agent", '"claude"');
18190
+ }
18191
+ if (tasks.length > 0) {
18192
+ for (const task of tasks) {
18193
+ flags.push("--task", quoteCliValue(task));
18194
+ }
18195
+ } else {
18196
+ flags.push("--task", '"<task>"');
18197
+ }
18198
+ return flags.join(" ");
18199
+ }
18200
+ const jobId = typeof parsed.job_id === "string" ? parsed.job_id.trim() : "<job_id>";
18201
+ if (toolName === "omc_run_team_status") {
18202
+ return `omc team status --job-id ${quoteCliValue(jobId)}`;
18203
+ }
18204
+ if (toolName === "omc_run_team_wait") {
18205
+ const timeoutMs = typeof parsed.timeout_ms === "number" && Number.isFinite(parsed.timeout_ms) ? ` --timeout-ms ${Math.floor(parsed.timeout_ms)}` : "";
18206
+ return `omc team wait --job-id ${quoteCliValue(jobId)}${timeoutMs}`;
18207
+ }
18208
+ if (toolName === "omc_run_team_cleanup") {
18209
+ const graceMs = typeof parsed.grace_ms === "number" && Number.isFinite(parsed.grace_ms) ? ` --grace-ms ${Math.floor(parsed.grace_ms)}` : "";
18210
+ return `omc team cleanup --job-id ${quoteCliValue(jobId)}${graceMs}`;
18211
+ }
18212
+ return TEAM_CLI_REPLACEMENT_HINTS[toolName];
18213
+ }
18214
+ function createDeprecatedCliOnlyEnvelopeWithArgs(toolName, args) {
18215
+ const cliReplacement = buildCliReplacement(toolName, args);
18216
+ return {
18217
+ content: [{
18218
+ type: "text",
18219
+ text: JSON.stringify({
18220
+ code: DEPRECATION_CODE,
18221
+ tool: toolName,
18222
+ message: "Legacy team MCP runtime tools are deprecated. Use the omc team CLI instead.",
18223
+ cli_replacement: cliReplacement
18224
+ })
18225
+ }],
18226
+ isError: true
18227
+ };
18228
+ }
18047
18229
  function persistJob(jobId, job) {
18048
18230
  try {
18049
- if (!(0, import_fs.existsSync)(OMC_JOBS_DIR)) (0, import_fs.mkdirSync)(OMC_JOBS_DIR, { recursive: true });
18050
- (0, import_fs.writeFileSync)((0, import_path2.join)(OMC_JOBS_DIR, `${jobId}.json`), JSON.stringify(job), "utf-8");
18231
+ if (!(0, import_fs2.existsSync)(OMC_JOBS_DIR)) (0, import_fs2.mkdirSync)(OMC_JOBS_DIR, { recursive: true });
18232
+ (0, import_fs2.writeFileSync)((0, import_path3.join)(OMC_JOBS_DIR, `${jobId}.json`), JSON.stringify(job), "utf-8");
18051
18233
  } catch {
18052
18234
  }
18053
18235
  }
18054
18236
  function loadJobFromDisk(jobId) {
18055
18237
  try {
18056
- return JSON.parse((0, import_fs.readFileSync)((0, import_path2.join)(OMC_JOBS_DIR, `${jobId}.json`), "utf-8"));
18238
+ return JSON.parse((0, import_fs2.readFileSync)((0, import_path3.join)(OMC_JOBS_DIR, `${jobId}.json`), "utf-8"));
18057
18239
  } catch {
18058
18240
  return void 0;
18059
18241
  }
18060
18242
  }
18061
18243
  async function loadPaneIds(jobId) {
18062
- const p = (0, import_path2.join)(OMC_JOBS_DIR, `${jobId}-panes.json`);
18244
+ const p = (0, import_path3.join)(OMC_JOBS_DIR, `${jobId}-panes.json`);
18063
18245
  try {
18064
18246
  return JSON.parse(await (0, import_promises2.readFile)(p, "utf-8"));
18065
18247
  } catch {
@@ -18071,6 +18253,24 @@ function validateJobId(job_id) {
18071
18253
  throw new Error(`Invalid job_id: "${job_id}". Must match /^omc-[a-z0-9]{1,12}$/`);
18072
18254
  }
18073
18255
  }
18256
+ function saveJobState(jobId, job) {
18257
+ omcTeamJobs.set(jobId, job);
18258
+ persistJob(jobId, job);
18259
+ return job;
18260
+ }
18261
+ function makeJobResponse(jobId, job, extra = {}) {
18262
+ const elapsed = ((Date.now() - job.startedAt) / 1e3).toFixed(1);
18263
+ const out = { jobId, status: job.status, elapsedSeconds: elapsed, ...extra };
18264
+ if (job.result) {
18265
+ try {
18266
+ out.result = JSON.parse(job.result);
18267
+ } catch {
18268
+ out.result = job.result;
18269
+ }
18270
+ }
18271
+ if (job.stderr) out.stderr = job.stderr;
18272
+ return { content: [{ type: "text", text: JSON.stringify(out) }] };
18273
+ }
18074
18274
  var startSchema = external_exports.object({
18075
18275
  teamName: external_exports.string().describe('Slug name for the team (e.g. "auth-review")'),
18076
18276
  agentTypes: external_exports.array(external_exports.string()).describe('Agent type per worker: "claude", "codex", or "gemini"'),
@@ -18090,6 +18290,10 @@ var waitSchema = external_exports.object({
18090
18290
  nudge_max_count: external_exports.number().optional().describe("Maximum nudges per pane (default: 3)"),
18091
18291
  nudge_message: external_exports.string().optional().describe('Message sent as nudge (default: "Continue working on your assigned task.")')
18092
18292
  });
18293
+ var cleanupSchema = external_exports.object({
18294
+ job_id: external_exports.string().describe("Job ID returned by omc_run_team_start"),
18295
+ grace_ms: external_exports.number().optional().describe("Grace period in ms before force-killing panes (default: 10000)")
18296
+ });
18093
18297
  async function handleStart(args) {
18094
18298
  if (typeof args === "object" && args !== null && Object.prototype.hasOwnProperty.call(args, "timeoutSeconds")) {
18095
18299
  throw new Error(
@@ -18099,7 +18303,7 @@ async function handleStart(args) {
18099
18303
  const input = startSchema.parse(args);
18100
18304
  validateTeamName(input.teamName);
18101
18305
  const jobId = `omc-${Date.now().toString(36)}`;
18102
- const runtimeCliPath = (0, import_path2.join)(__dirname, "runtime-cli.cjs");
18306
+ const runtimeCliPath = (0, import_path3.join)(__dirname, "runtime-cli.cjs");
18103
18307
  const job = { status: "running", startedAt: Date.now(), teamName: input.teamName, cwd: input.cwd };
18104
18308
  omcTeamJobs.set(jobId, job);
18105
18309
  const child = (0, import_child_process3.spawn)("node", [runtimeCliPath], {
@@ -18148,21 +18352,26 @@ async function handleStart(args) {
18148
18352
  async function handleStatus(args) {
18149
18353
  const { job_id } = statusSchema.parse(args);
18150
18354
  validateJobId(job_id);
18151
- const job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18355
+ let job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18152
18356
  if (!job) {
18153
18357
  return { content: [{ type: "text", text: JSON.stringify({ error: `No job found: ${job_id}` }) }] };
18154
18358
  }
18155
- const elapsed = ((Date.now() - job.startedAt) / 1e3).toFixed(1);
18156
- const out = { jobId: job_id, status: job.status, elapsedSeconds: elapsed };
18157
- if (job.result) {
18158
- try {
18159
- out.result = JSON.parse(job.result);
18160
- } catch {
18161
- out.result = job.result;
18162
- }
18359
+ const artifactConvergence = convergeJobWithResultArtifact(job, job_id, OMC_JOBS_DIR);
18360
+ if (artifactConvergence.changed) {
18361
+ job = saveJobState(job_id, artifactConvergence.job);
18362
+ return makeJobResponse(job_id, job);
18163
18363
  }
18164
- if (job.stderr) out.stderr = job.stderr;
18165
- return { content: [{ type: "text", text: JSON.stringify(out) }] };
18364
+ if (isJobTerminal(job)) {
18365
+ return makeJobResponse(job_id, job);
18366
+ }
18367
+ if (job.pid != null && !isPidAlive(job.pid)) {
18368
+ job = saveJobState(job_id, {
18369
+ ...job,
18370
+ status: "failed",
18371
+ result: job.result ?? JSON.stringify({ error: "Process no longer alive (MCP restart?)" })
18372
+ });
18373
+ }
18374
+ return makeJobResponse(job_id, job);
18166
18375
  }
18167
18376
  async function handleWait(args) {
18168
18377
  const { job_id, timeout_ms = 3e5, nudge_delay_ms, nudge_max_count, nudge_message } = waitSchema.parse(args);
@@ -18175,36 +18384,43 @@ async function handleWait(args) {
18175
18384
  ...nudge_message != null ? { message: nudge_message } : {}
18176
18385
  });
18177
18386
  while (Date.now() < deadline) {
18178
- const job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18387
+ let job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18179
18388
  if (!job) {
18180
18389
  return { content: [{ type: "text", text: JSON.stringify({ error: `No job found: ${job_id}` }) }] };
18181
18390
  }
18182
- if (job.status === "running" && job.pid != null) {
18183
- try {
18184
- process.kill(job.pid, 0);
18185
- } catch (e) {
18186
- if (e.code === "ESRCH") {
18187
- job.status = "failed";
18188
- if (!job.result) job.result = JSON.stringify({ error: "Process no longer alive (MCP restart?)" });
18189
- persistJob(job_id, job);
18190
- const elapsed2 = ((Date.now() - job.startedAt) / 1e3).toFixed(1);
18191
- return { content: [{ type: "text", text: JSON.stringify({ jobId: job_id, status: "failed", elapsedSeconds: elapsed2, error: "Process no longer alive (MCP restart?)" }) }] };
18192
- }
18193
- }
18194
- }
18195
- if (job.status !== "running") {
18196
- const elapsed2 = ((Date.now() - job.startedAt) / 1e3).toFixed(1);
18197
- const out = { jobId: job_id, status: job.status, elapsedSeconds: elapsed2 };
18198
- if (job.result) {
18199
- try {
18200
- out.result = JSON.parse(job.result);
18201
- } catch {
18202
- out.result = job.result;
18203
- }
18391
+ const artifactConvergence = convergeJobWithResultArtifact(job, job_id, OMC_JOBS_DIR);
18392
+ if (artifactConvergence.changed) {
18393
+ job = saveJobState(job_id, artifactConvergence.job);
18394
+ const out = makeJobResponse(job_id, job);
18395
+ if (nudgeTracker.totalNudges > 0) {
18396
+ const payload = JSON.parse(out.content[0].text);
18397
+ payload.nudges = nudgeTracker.getSummary();
18398
+ out.content[0].text = JSON.stringify(payload);
18399
+ }
18400
+ return out;
18401
+ }
18402
+ if (isJobTerminal(job)) {
18403
+ const out = makeJobResponse(job_id, job);
18404
+ if (nudgeTracker.totalNudges > 0) {
18405
+ const payload = JSON.parse(out.content[0].text);
18406
+ payload.nudges = nudgeTracker.getSummary();
18407
+ out.content[0].text = JSON.stringify(payload);
18408
+ }
18409
+ return out;
18410
+ }
18411
+ if (job.pid != null && !isPidAlive(job.pid)) {
18412
+ job = saveJobState(job_id, {
18413
+ ...job,
18414
+ status: "failed",
18415
+ result: job.result ?? JSON.stringify({ error: "Process no longer alive (MCP restart?)" })
18416
+ });
18417
+ const out = makeJobResponse(job_id, job, { error: "Process no longer alive (MCP restart?)" });
18418
+ if (nudgeTracker.totalNudges > 0) {
18419
+ const payload = JSON.parse(out.content[0].text);
18420
+ payload.nudges = nudgeTracker.getSummary();
18421
+ out.content[0].text = JSON.stringify(payload);
18204
18422
  }
18205
- if (job.stderr) out.stderr = job.stderr;
18206
- if (nudgeTracker.totalNudges > 0) out.nudges = nudgeTracker.getSummary();
18207
- return { content: [{ type: "text", text: JSON.stringify(out) }] };
18423
+ return out;
18208
18424
  }
18209
18425
  await new Promise((r) => setTimeout(r, pollDelay));
18210
18426
  pollDelay = Math.min(Math.floor(pollDelay * 1.5), 2e3);
@@ -18220,15 +18436,43 @@ async function handleWait(args) {
18220
18436
  } catch {
18221
18437
  }
18222
18438
  }
18223
- const elapsed = ((Date.now() - (omcTeamJobs.get(job_id)?.startedAt ?? Date.now())) / 1e3).toFixed(1);
18224
- const timeoutOut = { error: `Timed out waiting for job ${job_id} after ${(timeout_ms / 1e3).toFixed(0)}s \u2014 workers are still running; call omc_run_team_wait again to keep waiting or omc_run_team_cleanup to stop them`, jobId: job_id, status: "running", elapsedSeconds: elapsed };
18439
+ const startedAt = omcTeamJobs.get(job_id)?.startedAt ?? Date.now();
18440
+ const elapsed = ((Date.now() - startedAt) / 1e3).toFixed(1);
18441
+ const timeoutOut = {
18442
+ error: `Timed out waiting for job ${job_id} after ${(timeout_ms / 1e3).toFixed(0)}s \u2014 workers are still running; call omc_run_team_wait again to keep waiting or omc_run_team_cleanup to stop them`,
18443
+ jobId: job_id,
18444
+ status: "running",
18445
+ elapsedSeconds: elapsed
18446
+ };
18225
18447
  if (nudgeTracker.totalNudges > 0) timeoutOut.nudges = nudgeTracker.getSummary();
18226
18448
  return { content: [{ type: "text", text: JSON.stringify(timeoutOut) }] };
18227
18449
  }
18450
+ async function handleCleanup(args) {
18451
+ const { job_id, grace_ms } = cleanupSchema.parse(args);
18452
+ validateJobId(job_id);
18453
+ const job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18454
+ if (!job) return { content: [{ type: "text", text: `Job ${job_id} not found` }] };
18455
+ const panes = await loadPaneIds(job_id);
18456
+ let paneCleanupMessage = "No pane IDs recorded for this job \u2014 pane cleanup skipped.";
18457
+ if (panes?.paneIds?.length) {
18458
+ await killWorkerPanes({
18459
+ paneIds: panes.paneIds,
18460
+ leaderPaneId: panes.leaderPaneId,
18461
+ teamName: job.teamName ?? "",
18462
+ cwd: job.cwd ?? "",
18463
+ graceMs: grace_ms ?? 1e4
18464
+ });
18465
+ paneCleanupMessage = `Cleaned up ${panes.paneIds.length} worker pane(s).`;
18466
+ }
18467
+ job.cleanedUpAt = (/* @__PURE__ */ new Date()).toISOString();
18468
+ persistJob(job_id, job);
18469
+ const cleanupOutcome = clearScopedTeamState(job);
18470
+ return { content: [{ type: "text", text: `${paneCleanupMessage} ${cleanupOutcome}` }] };
18471
+ }
18228
18472
  var TOOLS = [
18229
18473
  {
18230
18474
  name: "omc_run_team_start",
18231
- description: "Spawn tmux CLI workers (claude/codex/gemini) in the background. Returns jobId immediately. Poll with omc_run_team_status.",
18475
+ description: "[DEPRECATED] CLI-only migration required. This tool no longer executes; use `omc team start`.",
18232
18476
  inputSchema: {
18233
18477
  type: "object",
18234
18478
  properties: {
@@ -18253,7 +18497,7 @@ var TOOLS = [
18253
18497
  },
18254
18498
  {
18255
18499
  name: "omc_run_team_status",
18256
- description: "Non-blocking status check for a background omc_run_team job. Returns status and result when done.",
18500
+ description: "[DEPRECATED] CLI-only migration required. This tool no longer executes; use `omc team status <job_id>`.",
18257
18501
  inputSchema: {
18258
18502
  type: "object",
18259
18503
  properties: {
@@ -18264,7 +18508,7 @@ var TOOLS = [
18264
18508
  },
18265
18509
  {
18266
18510
  name: "omc_run_team_wait",
18267
- description: "Block (poll internally) until a background omc_run_team job reaches a terminal state (completed or failed). Returns the result when done. One call instead of N polling calls. Uses exponential backoff (500ms \u2192 2000ms). Auto-nudges idle teammate panes via tmux send-keys. If this wait call times out, workers are left running \u2014 call omc_run_team_wait again to keep waiting, or omc_run_team_cleanup to stop them explicitly.",
18511
+ description: "[DEPRECATED] CLI-only migration required. This tool no longer executes; use `omc team wait <job_id>`.",
18268
18512
  inputSchema: {
18269
18513
  type: "object",
18270
18514
  properties: {
@@ -18279,7 +18523,7 @@ var TOOLS = [
18279
18523
  },
18280
18524
  {
18281
18525
  name: "omc_run_team_cleanup",
18282
- description: "Explicitly clean up worker panes when you want to stop workers. Kills all worker panes recorded for the job without touching the leader pane or the user session.",
18526
+ description: "[DEPRECATED] CLI-only migration required. This tool no longer executes; use `omc team cleanup <job_id>`.",
18283
18527
  inputSchema: {
18284
18528
  type: "object",
18285
18529
  properties: {
@@ -18297,30 +18541,14 @@ var server = new Server(
18297
18541
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
18298
18542
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
18299
18543
  const { name, arguments: args } = request.params;
18544
+ if (isDeprecatedTeamToolName(name)) {
18545
+ return createDeprecatedCliOnlyEnvelopeWithArgs(name, args);
18546
+ }
18300
18547
  try {
18301
18548
  if (name === "omc_run_team_start") return await handleStart(args ?? {});
18302
18549
  if (name === "omc_run_team_status") return await handleStatus(args ?? {});
18303
18550
  if (name === "omc_run_team_wait") return await handleWait(args ?? {});
18304
- if (name === "omc_run_team_cleanup") {
18305
- const { job_id, grace_ms } = args ?? {};
18306
- validateJobId(job_id);
18307
- const job = omcTeamJobs.get(job_id) ?? loadJobFromDisk(job_id);
18308
- if (!job) return { content: [{ type: "text", text: `Job ${job_id} not found` }] };
18309
- const panes = await loadPaneIds(job_id);
18310
- if (!panes?.paneIds?.length) {
18311
- return { content: [{ type: "text", text: "No pane IDs recorded for this job \u2014 nothing to clean up." }] };
18312
- }
18313
- await killWorkerPanes({
18314
- paneIds: panes.paneIds,
18315
- leaderPaneId: panes.leaderPaneId,
18316
- teamName: job.teamName ?? "",
18317
- cwd: job.cwd ?? "",
18318
- graceMs: grace_ms ?? 1e4
18319
- });
18320
- job.cleanedUpAt = (/* @__PURE__ */ new Date()).toISOString();
18321
- persistJob(job_id, job);
18322
- return { content: [{ type: "text", text: `Cleaned up ${panes.paneIds.length} worker pane(s).` }] };
18323
- }
18551
+ if (name === "omc_run_team_cleanup") return await handleCleanup(args ?? {});
18324
18552
  return { content: [{ type: "text", text: `Unknown tool: ${name}` }], isError: true };
18325
18553
  } catch (error2) {
18326
18554
  return { content: [{ type: "text", text: `Error: ${error2 instanceof Error ? error2.message : String(error2)}` }], isError: true };
@@ -18331,7 +18559,17 @@ async function main() {
18331
18559
  await server.connect(transport);
18332
18560
  console.error("OMC Team MCP Server running on stdio");
18333
18561
  }
18334
- main().catch((error2) => {
18335
- console.error("Failed to start server:", error2);
18336
- process.exit(1);
18562
+ if (process.env.OMC_TEAM_SERVER_DISABLE_AUTOSTART !== "1" && process.env.NODE_ENV !== "test") {
18563
+ main().catch((error2) => {
18564
+ console.error("Failed to start server:", error2);
18565
+ process.exit(1);
18566
+ });
18567
+ }
18568
+ // Annotate the CommonJS export names for ESM import in node:
18569
+ 0 && (module.exports = {
18570
+ createDeprecatedCliOnlyEnvelope,
18571
+ createDeprecatedCliOnlyEnvelopeWithArgs,
18572
+ handleCleanup,
18573
+ handleStatus,
18574
+ handleWait
18337
18575
  });