@liangjie559567/ultrapower 6.0.0 → 7.0.2

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 (1270) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/LICENSE +21 -21
  4. package/README.md +2 -2
  5. package/agents/executor.md +10 -5
  6. package/bridge/codex-server.cjs +1 -1
  7. package/bridge/gemini-server.cjs +1 -1
  8. package/bridge/gyoshu_bridge.py +846 -846
  9. package/dist/agents/status.d.ts +28 -0
  10. package/dist/agents/status.d.ts.map +1 -0
  11. package/dist/agents/status.js +44 -0
  12. package/dist/agents/status.js.map +1 -0
  13. package/dist/cache/result-cache.d.ts +20 -0
  14. package/dist/cache/result-cache.d.ts.map +1 -0
  15. package/dist/cache/result-cache.js +64 -0
  16. package/dist/cache/result-cache.js.map +1 -0
  17. package/dist/cache/security.d.ts +21 -0
  18. package/dist/cache/security.d.ts.map +1 -0
  19. package/dist/cache/security.js +39 -0
  20. package/dist/cache/security.js.map +1 -0
  21. package/dist/cli/autocomplete.d.ts +25 -0
  22. package/dist/cli/autocomplete.d.ts.map +1 -0
  23. package/dist/cli/autocomplete.js +99 -0
  24. package/dist/cli/autocomplete.js.map +1 -0
  25. package/dist/cli/commands/agents.d.ts +2 -0
  26. package/dist/cli/commands/agents.d.ts.map +1 -1
  27. package/dist/cli/commands/agents.js +8 -0
  28. package/dist/cli/commands/agents.js.map +1 -1
  29. package/dist/cli/commands/backfill.d.ts +2 -0
  30. package/dist/cli/commands/backfill.d.ts.map +1 -1
  31. package/dist/cli/commands/backfill.js +13 -0
  32. package/dist/cli/commands/backfill.js.map +1 -1
  33. package/dist/cli/commands/cleanup.d.ts +2 -0
  34. package/dist/cli/commands/cleanup.d.ts.map +1 -1
  35. package/dist/cli/commands/cleanup.js +7 -0
  36. package/dist/cli/commands/cleanup.js.map +1 -1
  37. package/dist/cli/commands/config-notify-profile.d.ts +3 -0
  38. package/dist/cli/commands/config-notify-profile.d.ts.map +1 -0
  39. package/dist/cli/commands/config-notify-profile.js +58 -0
  40. package/dist/cli/commands/config-notify-profile.js.map +1 -0
  41. package/dist/cli/commands/config-stop-callback.d.ts +3 -0
  42. package/dist/cli/commands/config-stop-callback.d.ts.map +1 -0
  43. package/dist/cli/commands/config-stop-callback.js +97 -0
  44. package/dist/cli/commands/config-stop-callback.js.map +1 -0
  45. package/dist/cli/commands/config.d.ts +3 -0
  46. package/dist/cli/commands/config.d.ts.map +1 -0
  47. package/dist/cli/commands/config.js +10 -0
  48. package/dist/cli/commands/config.js.map +1 -0
  49. package/dist/cli/commands/cost.d.ts +2 -0
  50. package/dist/cli/commands/cost.d.ts.map +1 -1
  51. package/dist/cli/commands/cost.js +8 -0
  52. package/dist/cli/commands/cost.js.map +1 -1
  53. package/dist/cli/commands/dashboard.d.ts +3 -0
  54. package/dist/cli/commands/dashboard.d.ts.map +1 -0
  55. package/dist/cli/commands/dashboard.js +13 -0
  56. package/dist/cli/commands/dashboard.js.map +1 -0
  57. package/dist/cli/commands/doctor.d.ts +3 -0
  58. package/dist/cli/commands/doctor.d.ts.map +1 -0
  59. package/dist/cli/commands/doctor.js +11 -0
  60. package/dist/cli/commands/doctor.js.map +1 -0
  61. package/dist/cli/commands/export.d.ts +2 -0
  62. package/dist/cli/commands/export.d.ts.map +1 -1
  63. package/dist/cli/commands/export.js +10 -0
  64. package/dist/cli/commands/export.js.map +1 -1
  65. package/dist/cli/commands/info.d.ts +3 -0
  66. package/dist/cli/commands/info.d.ts.map +1 -0
  67. package/dist/cli/commands/info.js +10 -0
  68. package/dist/cli/commands/info.js.map +1 -0
  69. package/dist/cli/commands/init.d.ts +3 -0
  70. package/dist/cli/commands/init.d.ts.map +1 -0
  71. package/dist/cli/commands/init.js +10 -0
  72. package/dist/cli/commands/init.js.map +1 -0
  73. package/dist/cli/commands/interop.d.ts +3 -0
  74. package/dist/cli/commands/interop.d.ts.map +1 -0
  75. package/dist/cli/commands/interop.js +10 -0
  76. package/dist/cli/commands/interop.js.map +1 -0
  77. package/dist/cli/commands/launch.d.ts +3 -0
  78. package/dist/cli/commands/launch.d.ts.map +1 -0
  79. package/dist/cli/commands/launch.js +20 -0
  80. package/dist/cli/commands/launch.js.map +1 -0
  81. package/dist/cli/commands/perf-wrapper.d.ts +2 -0
  82. package/dist/cli/commands/perf-wrapper.d.ts.map +1 -0
  83. package/dist/cli/commands/perf-wrapper.js +4 -0
  84. package/dist/cli/commands/perf-wrapper.js.map +1 -0
  85. package/dist/cli/commands/registry.d.ts +9 -0
  86. package/dist/cli/commands/registry.d.ts.map +1 -0
  87. package/dist/cli/commands/registry.js +29 -0
  88. package/dist/cli/commands/registry.js.map +1 -0
  89. package/dist/cli/commands/sessions.d.ts +2 -0
  90. package/dist/cli/commands/sessions.d.ts.map +1 -1
  91. package/dist/cli/commands/sessions.js +8 -0
  92. package/dist/cli/commands/sessions.js.map +1 -1
  93. package/dist/cli/commands/setup.d.ts +3 -0
  94. package/dist/cli/commands/setup.d.ts.map +1 -0
  95. package/dist/cli/commands/setup.js +10 -0
  96. package/dist/cli/commands/setup.js.map +1 -0
  97. package/dist/cli/commands/stats.d.ts +2 -0
  98. package/dist/cli/commands/stats.d.ts.map +1 -1
  99. package/dist/cli/commands/stats.js +8 -0
  100. package/dist/cli/commands/stats.js.map +1 -1
  101. package/dist/cli/commands/teleport-wrapper.d.ts +3 -0
  102. package/dist/cli/commands/teleport-wrapper.d.ts.map +1 -0
  103. package/dist/cli/commands/teleport-wrapper.js +12 -0
  104. package/dist/cli/commands/teleport-wrapper.js.map +1 -0
  105. package/dist/cli/commands/test-prompt.d.ts +3 -0
  106. package/dist/cli/commands/test-prompt.d.ts.map +1 -0
  107. package/dist/cli/commands/test-prompt.js +11 -0
  108. package/dist/cli/commands/test-prompt.js.map +1 -0
  109. package/dist/cli/commands/tui.d.ts +3 -0
  110. package/dist/cli/commands/tui.d.ts.map +1 -0
  111. package/dist/cli/commands/tui.js +10 -0
  112. package/dist/cli/commands/tui.js.map +1 -0
  113. package/dist/cli/commands/tutorial.d.ts +8 -0
  114. package/dist/cli/commands/tutorial.d.ts.map +1 -0
  115. package/dist/cli/commands/tutorial.js +31 -0
  116. package/dist/cli/commands/tutorial.js.map +1 -0
  117. package/dist/cli/commands/update.d.ts +3 -0
  118. package/dist/cli/commands/update.d.ts.map +1 -0
  119. package/dist/cli/commands/update.js +10 -0
  120. package/dist/cli/commands/update.js.map +1 -0
  121. package/dist/cli/commands/version.d.ts +3 -0
  122. package/dist/cli/commands/version.d.ts.map +1 -0
  123. package/dist/cli/commands/version.js +10 -0
  124. package/dist/cli/commands/version.js.map +1 -0
  125. package/dist/cli/commands/wait-wrapper.d.ts +3 -0
  126. package/dist/cli/commands/wait-wrapper.d.ts.map +1 -0
  127. package/dist/cli/commands/wait-wrapper.js +12 -0
  128. package/dist/cli/commands/wait-wrapper.js.map +1 -0
  129. package/dist/cli/error-handler.d.ts +7 -0
  130. package/dist/cli/error-handler.d.ts.map +1 -0
  131. package/dist/cli/error-handler.js +30 -0
  132. package/dist/cli/error-handler.js.map +1 -0
  133. package/dist/cli/index.d.ts +1 -7
  134. package/dist/cli/index.d.ts.map +1 -1
  135. package/dist/cli/index.js +44 -1474
  136. package/dist/cli/index.js.map +1 -1
  137. package/dist/cli/loader.d.ts +24 -0
  138. package/dist/cli/loader.d.ts.map +1 -0
  139. package/dist/cli/loader.js +27 -0
  140. package/dist/cli/loader.js.map +1 -0
  141. package/dist/cli/progress/agent-status.d.ts +22 -0
  142. package/dist/cli/progress/agent-status.d.ts.map +1 -0
  143. package/dist/cli/progress/agent-status.js +44 -0
  144. package/dist/cli/progress/agent-status.js.map +1 -0
  145. package/dist/cli/progress/examples.d.ts +7 -0
  146. package/dist/cli/progress/examples.d.ts.map +1 -0
  147. package/dist/cli/progress/examples.js +50 -0
  148. package/dist/cli/progress/examples.js.map +1 -0
  149. package/dist/cli/progress/index.d.ts +7 -0
  150. package/dist/cli/progress/index.d.ts.map +1 -0
  151. package/dist/cli/progress/index.js +7 -0
  152. package/dist/cli/progress/index.js.map +1 -0
  153. package/dist/cli/progress/progress-bar.d.ts +17 -0
  154. package/dist/cli/progress/progress-bar.d.ts.map +1 -0
  155. package/dist/cli/progress/progress-bar.js +28 -0
  156. package/dist/cli/progress/progress-bar.js.map +1 -0
  157. package/dist/cli/progress/spinner.d.ts +14 -0
  158. package/dist/cli/progress/spinner.d.ts.map +1 -0
  159. package/dist/cli/progress/spinner.js +34 -0
  160. package/dist/cli/progress/spinner.js.map +1 -0
  161. package/dist/cli/tutorial/index.d.ts +15 -0
  162. package/dist/cli/tutorial/index.d.ts.map +1 -0
  163. package/dist/cli/tutorial/index.js +89 -0
  164. package/dist/cli/tutorial/index.js.map +1 -0
  165. package/dist/cli/utils/config.d.ts +2 -0
  166. package/dist/cli/utils/config.d.ts.map +1 -0
  167. package/dist/cli/utils/config.js +4 -0
  168. package/dist/cli/utils/config.js.map +1 -0
  169. package/dist/cli/utils/dashboard.d.ts +2 -0
  170. package/dist/cli/utils/dashboard.d.ts.map +1 -0
  171. package/dist/cli/utils/dashboard.js +74 -0
  172. package/dist/cli/utils/dashboard.js.map +1 -0
  173. package/dist/cli/utils/info.d.ts +2 -0
  174. package/dist/cli/utils/info.d.ts.map +1 -0
  175. package/dist/cli/utils/info.js +4 -0
  176. package/dist/cli/utils/info.js.map +1 -0
  177. package/dist/cli/utils/init.d.ts +2 -0
  178. package/dist/cli/utils/init.d.ts.map +1 -0
  179. package/dist/cli/utils/init.js +4 -0
  180. package/dist/cli/utils/init.js.map +1 -0
  181. package/dist/cli/utils/interop.d.ts +2 -0
  182. package/dist/cli/utils/interop.d.ts.map +1 -0
  183. package/dist/cli/utils/interop.js +4 -0
  184. package/dist/cli/utils/interop.js.map +1 -0
  185. package/dist/cli/utils/setup.d.ts +2 -0
  186. package/dist/cli/utils/setup.d.ts.map +1 -0
  187. package/dist/cli/utils/setup.js +4 -0
  188. package/dist/cli/utils/setup.js.map +1 -0
  189. package/dist/cli/utils/test-prompt.d.ts +2 -0
  190. package/dist/cli/utils/test-prompt.d.ts.map +1 -0
  191. package/dist/cli/utils/test-prompt.js +4 -0
  192. package/dist/cli/utils/test-prompt.js.map +1 -0
  193. package/dist/cli/utils/update.d.ts +2 -0
  194. package/dist/cli/utils/update.d.ts.map +1 -0
  195. package/dist/cli/utils/update.js +4 -0
  196. package/dist/cli/utils/update.js.map +1 -0
  197. package/dist/cli/utils/version-info.d.ts +2 -0
  198. package/dist/cli/utils/version-info.d.ts.map +1 -0
  199. package/dist/cli/utils/version-info.js +4 -0
  200. package/dist/cli/utils/version-info.js.map +1 -0
  201. package/dist/errors/classifier.d.ts +10 -0
  202. package/dist/errors/classifier.d.ts.map +1 -0
  203. package/dist/errors/classifier.js +119 -0
  204. package/dist/errors/classifier.js.map +1 -0
  205. package/dist/errors/index.d.ts +7 -0
  206. package/dist/errors/index.d.ts.map +1 -0
  207. package/dist/errors/index.js +7 -0
  208. package/dist/errors/index.js.map +1 -0
  209. package/dist/errors/spelling.d.ts +5 -0
  210. package/dist/errors/spelling.d.ts.map +1 -0
  211. package/dist/errors/spelling.js +36 -0
  212. package/dist/errors/spelling.js.map +1 -0
  213. package/dist/errors/types.d.ts +25 -0
  214. package/dist/errors/types.d.ts.map +1 -0
  215. package/dist/errors/types.js +13 -0
  216. package/dist/errors/types.js.map +1 -0
  217. package/dist/features/ccg/incremental-processor.d.ts +3 -3
  218. package/dist/features/ccg/incremental-processor.d.ts.map +1 -1
  219. package/dist/features/ccg/incremental-processor.js +7 -7
  220. package/dist/features/ccg/incremental-processor.js.map +1 -1
  221. package/dist/features/state-manager/index.d.ts +5 -0
  222. package/dist/features/state-manager/index.d.ts.map +1 -1
  223. package/dist/features/state-manager/index.js +7 -0
  224. package/dist/features/state-manager/index.js.map +1 -1
  225. package/dist/hooks/bridge-converter.d.ts +10 -0
  226. package/dist/hooks/bridge-converter.d.ts.map +1 -0
  227. package/dist/hooks/bridge-converter.js +43 -0
  228. package/dist/hooks/bridge-converter.js.map +1 -0
  229. package/dist/hooks/bridge.d.ts +2 -31
  230. package/dist/hooks/bridge.d.ts.map +1 -1
  231. package/dist/hooks/bridge.js +24 -1066
  232. package/dist/hooks/bridge.js.map +1 -1
  233. package/dist/hooks/cache.d.ts +2 -0
  234. package/dist/hooks/cache.d.ts.map +1 -0
  235. package/dist/hooks/cache.js +78 -0
  236. package/dist/hooks/cache.js.map +1 -0
  237. package/dist/hooks/handlers/autopilot.d.ts +3 -0
  238. package/dist/hooks/handlers/autopilot.d.ts.map +1 -0
  239. package/dist/hooks/handlers/autopilot.js +23 -0
  240. package/dist/hooks/handlers/autopilot.js.map +1 -0
  241. package/dist/hooks/handlers/index.d.ts +5 -0
  242. package/dist/hooks/handlers/index.d.ts.map +1 -0
  243. package/dist/hooks/handlers/index.js +18 -0
  244. package/dist/hooks/handlers/index.js.map +1 -0
  245. package/dist/hooks/handlers/keyword-detector.d.ts +3 -0
  246. package/dist/hooks/handlers/keyword-detector.d.ts.map +1 -0
  247. package/dist/hooks/handlers/keyword-detector.js +66 -0
  248. package/dist/hooks/handlers/keyword-detector.js.map +1 -0
  249. package/dist/hooks/handlers/persistent-mode.d.ts +3 -0
  250. package/dist/hooks/handlers/persistent-mode.d.ts.map +1 -0
  251. package/dist/hooks/handlers/persistent-mode.js +82 -0
  252. package/dist/hooks/handlers/persistent-mode.js.map +1 -0
  253. package/dist/hooks/handlers/post-tool-use.d.ts +3 -0
  254. package/dist/hooks/handlers/post-tool-use.d.ts.map +1 -0
  255. package/dist/hooks/handlers/post-tool-use.js +74 -0
  256. package/dist/hooks/handlers/post-tool-use.js.map +1 -0
  257. package/dist/hooks/handlers/pre-tool-use.d.ts +7 -0
  258. package/dist/hooks/handlers/pre-tool-use.d.ts.map +1 -0
  259. package/dist/hooks/handlers/pre-tool-use.js +120 -0
  260. package/dist/hooks/handlers/pre-tool-use.js.map +1 -0
  261. package/dist/hooks/handlers/ralph.d.ts +3 -0
  262. package/dist/hooks/handlers/ralph.d.ts.map +1 -0
  263. package/dist/hooks/handlers/ralph.js +53 -0
  264. package/dist/hooks/handlers/ralph.js.map +1 -0
  265. package/dist/hooks/handlers/route-map.d.ts +8 -0
  266. package/dist/hooks/handlers/route-map.d.ts.map +1 -0
  267. package/dist/hooks/handlers/route-map.js +64 -0
  268. package/dist/hooks/handlers/route-map.js.map +1 -0
  269. package/dist/hooks/handlers/session-start.d.ts +3 -0
  270. package/dist/hooks/handlers/session-start.d.ts.map +1 -0
  271. package/dist/hooks/handlers/session-start.js +186 -0
  272. package/dist/hooks/handlers/session-start.js.map +1 -0
  273. package/dist/hooks/handlers/stop-continuation.d.ts +3 -0
  274. package/dist/hooks/handlers/stop-continuation.d.ts.map +1 -0
  275. package/dist/hooks/handlers/stop-continuation.js +50 -0
  276. package/dist/hooks/handlers/stop-continuation.js.map +1 -0
  277. package/dist/hooks/team-state-reader.d.ts +24 -0
  278. package/dist/hooks/team-state-reader.d.ts.map +1 -0
  279. package/dist/hooks/team-state-reader.js +88 -0
  280. package/dist/hooks/team-state-reader.js.map +1 -0
  281. package/dist/hooks/validation.d.ts +5 -0
  282. package/dist/hooks/validation.d.ts.map +1 -0
  283. package/dist/hooks/validation.js +48 -0
  284. package/dist/hooks/validation.js.map +1 -0
  285. package/dist/index.d.ts +1 -1
  286. package/dist/index.d.ts.map +1 -1
  287. package/dist/index.js +3 -1
  288. package/dist/index.js.map +1 -1
  289. package/dist/lib/unified-logger.d.ts +15 -0
  290. package/dist/lib/unified-logger.d.ts.map +1 -0
  291. package/dist/lib/unified-logger.js +23 -0
  292. package/dist/lib/unified-logger.js.map +1 -0
  293. package/dist/mcp/adapters/memory-adapter.d.ts +2 -2
  294. package/dist/mcp/adapters/state-adapter.d.ts +5 -5
  295. package/dist/mcp/adapters/trace-adapter.d.ts +3 -3
  296. package/dist/mcp/codex-server.d.ts.map +1 -1
  297. package/dist/mcp/codex-server.js +22 -27
  298. package/dist/mcp/codex-server.js.map +1 -1
  299. package/dist/mcp/config/schema.d.ts +6 -6
  300. package/dist/mcp/config-schema.d.ts +6 -6
  301. package/dist/mcp/gemini-server.d.ts.map +1 -1
  302. package/dist/mcp/gemini-server.js +21 -26
  303. package/dist/mcp/gemini-server.js.map +1 -1
  304. package/dist/mcp/logger.d.ts.map +1 -1
  305. package/dist/mcp/logger.js +3 -1
  306. package/dist/mcp/logger.js.map +1 -1
  307. package/dist/mcp/tool-types.d.ts +50 -0
  308. package/dist/mcp/tool-types.d.ts.map +1 -0
  309. package/dist/mcp/tool-types.js +6 -0
  310. package/dist/mcp/tool-types.js.map +1 -0
  311. package/dist/observability/masker.d.ts +3 -0
  312. package/dist/observability/masker.d.ts.map +1 -0
  313. package/dist/observability/masker.js +23 -0
  314. package/dist/observability/masker.js.map +1 -0
  315. package/dist/observability/monitor.d.ts +17 -0
  316. package/dist/observability/monitor.d.ts.map +1 -0
  317. package/dist/observability/monitor.js +30 -0
  318. package/dist/observability/monitor.js.map +1 -0
  319. package/dist/observability/tracer.d.ts +6 -0
  320. package/dist/observability/tracer.d.ts.map +1 -0
  321. package/dist/observability/tracer.js +36 -0
  322. package/dist/observability/tracer.js.map +1 -0
  323. package/dist/reliability/circuit-breaker.d.ts +24 -0
  324. package/dist/reliability/circuit-breaker.d.ts.map +1 -0
  325. package/dist/reliability/circuit-breaker.js +59 -0
  326. package/dist/reliability/circuit-breaker.js.map +1 -0
  327. package/dist/reliability/model-fallback.d.ts +21 -0
  328. package/dist/reliability/model-fallback.d.ts.map +1 -0
  329. package/dist/reliability/model-fallback.js +47 -0
  330. package/dist/reliability/model-fallback.js.map +1 -0
  331. package/dist/reliability/retry-classifier.d.ts +17 -0
  332. package/dist/reliability/retry-classifier.d.ts.map +1 -0
  333. package/dist/reliability/retry-classifier.js +59 -0
  334. package/dist/reliability/retry-classifier.js.map +1 -0
  335. package/dist/reliability/retry-manager.d.ts +20 -0
  336. package/dist/reliability/retry-manager.d.ts.map +1 -0
  337. package/dist/reliability/retry-manager.js +45 -0
  338. package/dist/reliability/retry-manager.js.map +1 -0
  339. package/dist/security/audit-logger.d.ts +21 -0
  340. package/dist/security/audit-logger.d.ts.map +1 -0
  341. package/dist/security/audit-logger.js +58 -0
  342. package/dist/security/audit-logger.js.map +1 -0
  343. package/dist/security/budget-controller.d.ts +23 -0
  344. package/dist/security/budget-controller.d.ts.map +1 -0
  345. package/dist/security/budget-controller.js +31 -0
  346. package/dist/security/budget-controller.js.map +1 -0
  347. package/dist/security/concurrency-control.d.ts +42 -0
  348. package/dist/security/concurrency-control.d.ts.map +1 -0
  349. package/dist/security/concurrency-control.js +87 -0
  350. package/dist/security/concurrency-control.js.map +1 -0
  351. package/dist/security/resource-guard.d.ts +25 -0
  352. package/dist/security/resource-guard.d.ts.map +1 -0
  353. package/dist/security/resource-guard.js +57 -0
  354. package/dist/security/resource-guard.js.map +1 -0
  355. package/dist/security/tenant-isolator.d.ts +27 -0
  356. package/dist/security/tenant-isolator.d.ts.map +1 -0
  357. package/dist/security/tenant-isolator.js +52 -0
  358. package/dist/security/tenant-isolator.js.map +1 -0
  359. package/dist/state/backup-manager.d.ts +56 -0
  360. package/dist/state/backup-manager.d.ts.map +1 -0
  361. package/dist/state/backup-manager.js +174 -0
  362. package/dist/state/backup-manager.js.map +1 -0
  363. package/dist/state/index.d.ts +26 -0
  364. package/dist/state/index.d.ts.map +1 -0
  365. package/dist/state/index.js +40 -0
  366. package/dist/state/index.js.map +1 -0
  367. package/dist/state/migration/index.d.ts +25 -0
  368. package/dist/state/migration/index.d.ts.map +1 -0
  369. package/dist/state/migration/index.js +61 -0
  370. package/dist/state/migration/index.js.map +1 -0
  371. package/dist/state/migration/integrity.d.ts +30 -0
  372. package/dist/state/migration/integrity.d.ts.map +1 -0
  373. package/dist/state/migration/integrity.js +109 -0
  374. package/dist/state/migration/integrity.js.map +1 -0
  375. package/dist/tools/python-repl/index.d.ts +2 -2
  376. package/dist/tools/python-repl/tool.d.ts +2 -2
  377. package/docs/CLAUDE.md +1 -1
  378. package/docs/INSTALL.md +2 -2
  379. package/docs/REFERENCE.md +1 -1
  380. package/docs/api/assets/highlight.css +85 -85
  381. package/docs/api/assets/style.css +1633 -1633
  382. package/docs/api/classes/ContextCollector.html +21 -21
  383. package/docs/api/functions/activateUltrawork.html +2 -2
  384. package/docs/api/functions/addCustomNote.html +5 -5
  385. package/docs/api/functions/addDirective.html +2 -2
  386. package/docs/api/functions/addManualEntry.html +2 -2
  387. package/docs/api/functions/addPattern.html +3 -3
  388. package/docs/api/functions/addWorker.html +2 -2
  389. package/docs/api/functions/addWorkingMemoryEntry.html +2 -2
  390. package/docs/api/functions/analyzeContextUsage.html +2 -2
  391. package/docs/api/functions/appendProgress.html +2 -2
  392. package/docs/api/functions/appendSessionId.html +2 -2
  393. package/docs/api/functions/applyCommentFilters.html +3 -3
  394. package/docs/api/functions/assignFileToWorker.html +2 -2
  395. package/docs/api/functions/backgroundUpdateCheck.html +2 -2
  396. package/docs/api/functions/buildAxiomBootContext.html +1 -1
  397. package/docs/api/functions/buildBoulderContinuation.html +2 -2
  398. package/docs/api/functions/buildDelegationTable.html +2 -2
  399. package/docs/api/functions/buildKeyTriggersSection.html +2 -2
  400. package/docs/api/functions/buildOrchestratorReminder.html +2 -2
  401. package/docs/api/functions/buildUseAvoidSection.html +2 -2
  402. package/docs/api/functions/buildVerificationReminder.html +2 -2
  403. package/docs/api/functions/canResumeAutopilot.html +10 -10
  404. package/docs/api/functions/canStartMode.html +5 -5
  405. package/docs/api/functions/cancelAutopilot.html +3 -3
  406. package/docs/api/functions/cancelUltraQA.html +2 -2
  407. package/docs/api/functions/checkBackgroundNotifications.html +2 -2
  408. package/docs/api/functions/checkBoulderContinuation.html +2 -2
  409. package/docs/api/functions/checkDuplicateTriggers.html +2 -2
  410. package/docs/api/functions/checkExpertGate.html +1 -1
  411. package/docs/api/functions/checkForComments.html +2 -2
  412. package/docs/api/functions/checkForUpdates.html +2 -2
  413. package/docs/api/functions/checkIncompleteTodos.html +13 -13
  414. package/docs/api/functions/checkPersistentModes.html +3 -3
  415. package/docs/api/functions/cleanupOrphanedState.html +2 -2
  416. package/docs/api/functions/cleanupStaleAgents.html +2 -2
  417. package/docs/api/functions/cleanupTransientState.html +2 -2
  418. package/docs/api/functions/clearAgentUsageState.html +1 -1
  419. package/docs/api/functions/clearAllModeStates.html +2 -2
  420. package/docs/api/functions/clearAutopilot.html +2 -2
  421. package/docs/api/functions/clearAutopilotState.html +2 -2
  422. package/docs/api/functions/clearBeadsContext.html +2 -2
  423. package/docs/api/functions/clearBoulderState.html +2 -2
  424. package/docs/api/functions/clearDetectionState.html +2 -2
  425. package/docs/api/functions/clearInjectedPaths.html +2 -2
  426. package/docs/api/functions/clearInjectedRules.html +2 -2
  427. package/docs/api/functions/clearLinkedUltraworkState.html +2 -2
  428. package/docs/api/functions/clearModeState.html +10 -10
  429. package/docs/api/functions/clearProjectMemorySession.html +4 -4
  430. package/docs/api/functions/clearRalphState.html +2 -2
  431. package/docs/api/functions/clearRapidFireDebounce.html +2 -2
  432. package/docs/api/functions/clearSkillSession.html +2 -2
  433. package/docs/api/functions/clearThinkModeState.html +2 -2
  434. package/docs/api/functions/clearTrackingState.html +2 -2
  435. package/docs/api/functions/clearUltraQAState.html +2 -2
  436. package/docs/api/functions/clearVerificationState.html +3 -3
  437. package/docs/api/functions/commandExists.html +2 -2
  438. package/docs/api/functions/compareVersions.html +3 -3
  439. package/docs/api/functions/completeUltraQA.html +2 -2
  440. package/docs/api/functions/completeUltrapilot.html +2 -2
  441. package/docs/api/functions/completeWorker.html +2 -2
  442. package/docs/api/functions/containsTokenLimitError.html +2 -2
  443. package/docs/api/functions/createAgentToolRestrictions.html +3 -3
  444. package/docs/api/functions/createAgentUsageReminderHook.html +1 -1
  445. package/docs/api/functions/createAutoSlashCommandHook.html +7 -7
  446. package/docs/api/functions/createBackgroundNotificationHook.html +7 -7
  447. package/docs/api/functions/createBackgroundTaskManager.html +2 -2
  448. package/docs/api/functions/createBoulderState.html +2 -2
  449. package/docs/api/functions/createCommentCheckerHook.html +6 -6
  450. package/docs/api/functions/createCompactCheckpoint.html +2 -2
  451. package/docs/api/functions/createContentHash.html +2 -2
  452. package/docs/api/functions/createContextInjectorHook.html +7 -7
  453. package/docs/api/functions/createDirectoryReadmeInjectorHook.html +9 -9
  454. package/docs/api/functions/createEmptyMessageSanitizerHook.html +6 -6
  455. package/docs/api/functions/createEnvContext.html +2 -2
  456. package/docs/api/functions/createHookOutput.html +4 -4
  457. package/docs/api/functions/createLearnedSkillsHook.html +6 -6
  458. package/docs/api/functions/createMagicKeywordProcessor.html +2 -2
  459. package/docs/api/functions/createModeMarker.html +6 -6
  460. package/docs/api/functions/createPrd.html +2 -2
  461. package/docs/api/functions/createPreemptiveCompactionHook.html +6 -6
  462. package/docs/api/functions/createRalphLoopHook.html +2 -2
  463. package/docs/api/functions/createRecoveryHook.html +7 -7
  464. package/docs/api/functions/createRulesInjectorHook.html +8 -8
  465. package/docs/api/functions/createSimplePrd.html +2 -2
  466. package/docs/api/functions/createSisyphusOrchestratorHook.html +7 -7
  467. package/docs/api/functions/createSisyphusSession.html +7 -7
  468. package/docs/api/functions/createThinkModeHook.html +7 -7
  469. package/docs/api/functions/createThinkingBlockValidatorHook.html +1 -1
  470. package/docs/api/functions/createTodoContinuationHook.html +2 -2
  471. package/docs/api/functions/createUltraworkStateHook.html +2 -2
  472. package/docs/api/functions/deactivateUltrawork.html +8 -8
  473. package/docs/api/functions/decayHotPaths.html +2 -2
  474. package/docs/api/functions/decomposeTask.html +11 -11
  475. package/docs/api/functions/deepMerge.html +2 -2
  476. package/docs/api/functions/detectArchitectApproval.html +2 -2
  477. package/docs/api/functions/detectArchitectRejection.html +2 -2
  478. package/docs/api/functions/detectContextLimitError.html +2 -2
  479. package/docs/api/functions/detectContextLimitErrorInText.html +2 -2
  480. package/docs/api/functions/detectDirectivesFromMessage.html +2 -2
  481. package/docs/api/functions/detectEditError.html +2 -2
  482. package/docs/api/functions/detectEditErrorInOutput.html +2 -2
  483. package/docs/api/functions/detectEditErrorInText.html +2 -2
  484. package/docs/api/functions/detectExtractableMoment.html +2 -2
  485. package/docs/api/functions/detectKeywordsWithType.html +11 -11
  486. package/docs/api/functions/detectMagicKeywords.html +2 -2
  487. package/docs/api/functions/detectProjectEnvironment.html +2 -2
  488. package/docs/api/functions/detectRecoverableError.html +3 -3
  489. package/docs/api/functions/detectSessionErrorType.html +2 -2
  490. package/docs/api/functions/detectSlashCommand.html +3 -3
  491. package/docs/api/functions/detectThinkKeyword.html +2 -2
  492. package/docs/api/functions/detectUltrathinkKeyword.html +2 -2
  493. package/docs/api/functions/discoverAllCommands.html +2 -2
  494. package/docs/api/functions/enablePrdMode.html +2 -2
  495. package/docs/api/functions/enhancePrompt.html +2 -2
  496. package/docs/api/functions/ensureAutopilotDir.html +2 -2
  497. package/docs/api/functions/ensureDirectoryStructure.html +2 -2
  498. package/docs/api/functions/ensureModeStateDir.html +2 -2
  499. package/docs/api/functions/ensureSkillsDir.html +2 -2
  500. package/docs/api/functions/estimateTokens.html +2 -2
  501. package/docs/api/functions/executeSlashCommand.html +2 -2
  502. package/docs/api/functions/expandCommand.html +8 -8
  503. package/docs/api/functions/expandCommandPrompt.html +6 -6
  504. package/docs/api/functions/expandCommands.html +2 -2
  505. package/docs/api/functions/exportSessionSummary.html +2 -2
  506. package/docs/api/functions/exportWisdomToNotepad.html +2 -2
  507. package/docs/api/functions/extractPromptText.html +11 -11
  508. package/docs/api/functions/extractSlashPromptText.html +2 -2
  509. package/docs/api/functions/extractThinkPromptText.html +2 -2
  510. package/docs/api/functions/failWorker.html +2 -2
  511. package/docs/api/functions/findCommand.html +2 -2
  512. package/docs/api/functions/findMatchingSkills.html +2 -2
  513. package/docs/api/functions/findPlannerPlans.html +3 -3
  514. package/docs/api/functions/findPrdPath.html +2 -2
  515. package/docs/api/functions/findPreviousThinkingContent.html +1 -1
  516. package/docs/api/functions/findProgressPath.html +2 -2
  517. package/docs/api/functions/findProjectRoot.html +3 -3
  518. package/docs/api/functions/findRecoveryEmptyMessages.html +2 -2
  519. package/docs/api/functions/findRecoveryOrphanThinking.html +2 -2
  520. package/docs/api/functions/findRecoveryThinkingBlocks.html +2 -2
  521. package/docs/api/functions/findRuleFiles.html +4 -4
  522. package/docs/api/functions/findSkillFiles.html +3 -3
  523. package/docs/api/functions/formatCancelMessage.html +2 -2
  524. package/docs/api/functions/formatCompactSummary.html +2 -2
  525. package/docs/api/functions/formatContextSummary.html +3 -3
  526. package/docs/api/functions/formatDirectivesForContext.html +2 -2
  527. package/docs/api/functions/formatFailureSummary.html +2 -2
  528. package/docs/api/functions/formatFile.html +2 -2
  529. package/docs/api/functions/formatFileChanges.html +2 -2
  530. package/docs/api/functions/formatFileList.html +2 -2
  531. package/docs/api/functions/formatFullContext.html +2 -2
  532. package/docs/api/functions/formatFullNotepad.html +2 -2
  533. package/docs/api/functions/formatLearningsForContext.html +2 -2
  534. package/docs/api/functions/formatNextStoryPrompt.html +2 -2
  535. package/docs/api/functions/formatNotepadContext.html +2 -2
  536. package/docs/api/functions/formatPatternsForContext.html +2 -2
  537. package/docs/api/functions/formatPrd.html +2 -2
  538. package/docs/api/functions/formatPrdStatus.html +2 -2
  539. package/docs/api/functions/formatPreCompactSummary.html +2 -2
  540. package/docs/api/functions/formatProgressForContext.html +2 -2
  541. package/docs/api/functions/formatProgressMessage.html +2 -2
  542. package/docs/api/functions/formatStory.html +2 -2
  543. package/docs/api/functions/formatSummary.html +2 -2
  544. package/docs/api/functions/formatUpdateNotification.html +2 -2
  545. package/docs/api/functions/formatValidationResults.html +2 -2
  546. package/docs/api/functions/generateExtractionPrompt.html +2 -2
  547. package/docs/api/functions/generateSkillFrontmatter.html +2 -2
  548. package/docs/api/functions/generateSummary.html +2 -2
  549. package/docs/api/functions/getActiveAgentCount.html +2 -2
  550. package/docs/api/functions/getActiveExclusiveMode.html +4 -4
  551. package/docs/api/functions/getActiveModes.html +2 -2
  552. package/docs/api/functions/getActivePlanPath.html +2 -2
  553. package/docs/api/functions/getAgentDefinitions.html +2 -2
  554. package/docs/api/functions/getAgentsByType.html +2 -2
  555. package/docs/api/functions/getAllCommands.html +2 -2
  556. package/docs/api/functions/getAllModeStatuses.html +5 -5
  557. package/docs/api/functions/getAllSkills.html +2 -2
  558. package/docs/api/functions/getArchitectRejectionContinuationPrompt.html +2 -2
  559. package/docs/api/functions/getArchitectVerificationPrompt.html +2 -2
  560. package/docs/api/functions/getAutoFormatMessage.html +2 -2
  561. package/docs/api/functions/getAutopilotStateAge.html +3 -3
  562. package/docs/api/functions/getAvailableAgents.html +2 -2
  563. package/docs/api/functions/getAxiomDir.html +1 -1
  564. package/docs/api/functions/getBackgroundTaskGuidance.html +4 -4
  565. package/docs/api/functions/getBeadsContextConfig.html +2 -2
  566. package/docs/api/functions/getBeadsInstructions.html +2 -2
  567. package/docs/api/functions/getBoulderFilePath.html +2 -2
  568. package/docs/api/functions/getCheckpointPath.html +2 -2
  569. package/docs/api/functions/getClaudeThinkingConfig.html +3 -3
  570. package/docs/api/functions/getCommand.html +2 -2
  571. package/docs/api/functions/getCommandsDir.html +2 -2
  572. package/docs/api/functions/getCompactionQueueDepth.html +3 -3
  573. package/docs/api/functions/getCompletedWorkers.html +2 -2
  574. package/docs/api/functions/getDefaultMcpServers.html +1 -1
  575. package/docs/api/functions/getDefaultModelForCategory.html +2 -2
  576. package/docs/api/functions/getDetectionStats.html +2 -2
  577. package/docs/api/functions/getDirectPlanningPrompt.html +3 -3
  578. package/docs/api/functions/getExecutionPrompt.html +2 -2
  579. package/docs/api/functions/getExpansionPrompt.html +3 -3
  580. package/docs/api/functions/getExpertGateMessage.html +1 -1
  581. package/docs/api/functions/getFailedWorkers.html +2 -2
  582. package/docs/api/functions/getFormatter.html +2 -2
  583. package/docs/api/functions/getGitDiffStats.html +2 -2
  584. package/docs/api/functions/getGlobalStateFilePath.html +4 -4
  585. package/docs/api/functions/getGoalCommand.html +2 -2
  586. package/docs/api/functions/getHighVariant.html +3 -3
  587. package/docs/api/functions/getInstallInfo.html +2 -2
  588. package/docs/api/functions/getInstalledVersion.html +2 -2
  589. package/docs/api/functions/getIssuesToFix.html +2 -2
  590. package/docs/api/functions/getLastDetection.html +2 -2
  591. package/docs/api/functions/getLearnerConfigValue.html +2 -2
  592. package/docs/api/functions/getLinter.html +2 -2
  593. package/docs/api/functions/getManualSection.html +2 -2
  594. package/docs/api/functions/getMemoryFilePaths.html +1 -1
  595. package/docs/api/functions/getModeMarkerFilePath.html +2 -2
  596. package/docs/api/functions/getModeStateFilePath.html +2 -2
  597. package/docs/api/functions/getNextStory.html +2 -2
  598. package/docs/api/functions/getNotepadPath.html +2 -2
  599. package/docs/api/functions/getNotepadStats.html +2 -2
  600. package/docs/api/functions/getOmcPrdPath.html +2 -2
  601. package/docs/api/functions/getOmcProgressPath.html +2 -2
  602. package/docs/api/functions/getOmcSystemPrompt.html +2 -2
  603. package/docs/api/functions/getOmcToolNames.html +3 -3
  604. package/docs/api/functions/getPatterns.html +2 -2
  605. package/docs/api/functions/getPhasePrompt.html +2 -2
  606. package/docs/api/functions/getPlanName.html +2 -2
  607. package/docs/api/functions/getPlanPath.html +2 -2
  608. package/docs/api/functions/getPlanProgress.html +2 -2
  609. package/docs/api/functions/getPlanSummaries.html +2 -2
  610. package/docs/api/functions/getPrdCompletionStatus.html +2 -2
  611. package/docs/api/functions/getPrdPath.html +2 -2
  612. package/docs/api/functions/getPrdStatus.html +2 -2
  613. package/docs/api/functions/getPreCommitReminderMessage.html +2 -2
  614. package/docs/api/functions/getPriorityContext.html +2 -2
  615. package/docs/api/functions/getProgressContext.html +2 -2
  616. package/docs/api/functions/getProgressPath.html +2 -2
  617. package/docs/api/functions/getPromotionCandidates.html +2 -2
  618. package/docs/api/functions/getQAPrompt.html +2 -2
  619. package/docs/api/functions/getRalphContext.html +3 -3
  620. package/docs/api/functions/getReadmesForPath.html +2 -2
  621. package/docs/api/functions/getRecentLearnings.html +2 -2
  622. package/docs/api/functions/getRulesForPath.html +2 -2
  623. package/docs/api/functions/getRunningAgents.html +2 -2
  624. package/docs/api/functions/getRunningWorkers.html +2 -2
  625. package/docs/api/functions/getSessionTokenEstimate.html +2 -2
  626. package/docs/api/functions/getSkillsDir.html +2 -2
  627. package/docs/api/functions/getSpecPath.html +2 -2
  628. package/docs/api/functions/getStaleAgents.html +2 -2
  629. package/docs/api/functions/getStateDir.html +2 -2
  630. package/docs/api/functions/getStory.html +2 -2
  631. package/docs/api/functions/getSubagentStateFilePath.html +2 -2
  632. package/docs/api/functions/getThinkModeState.html +2 -2
  633. package/docs/api/functions/getThinkingConfig.html +3 -3
  634. package/docs/api/functions/getTopHotPaths.html +2 -2
  635. package/docs/api/functions/getTrackingStats.html +2 -2
  636. package/docs/api/functions/getTransitionPrompt.html +2 -2
  637. package/docs/api/functions/getUltraworkPersistenceMessage.html +2 -2
  638. package/docs/api/functions/getValidationPrompt.html +2 -2
  639. package/docs/api/functions/getValidationSpawnPrompt.html +2 -2
  640. package/docs/api/functions/getValidationStats.html +1 -1
  641. package/docs/api/functions/getValidationStatus.html +2 -2
  642. package/docs/api/functions/getWorkingMemory.html +2 -2
  643. package/docs/api/functions/handleBackgroundEvent.html +3 -3
  644. package/docs/api/functions/handleContextWindowRecovery.html +2 -2
  645. package/docs/api/functions/handleEditErrorRecovery.html +2 -2
  646. package/docs/api/functions/handlePermissionRequest.html +2 -2
  647. package/docs/api/functions/handleRecovery.html +10 -10
  648. package/docs/api/functions/handleSessionEnd.html +2 -2
  649. package/docs/api/functions/handleSessionRecovery.html +2 -2
  650. package/docs/api/functions/handleSharedFiles.html +7 -7
  651. package/docs/api/functions/handleSubagentStart.html +2 -2
  652. package/docs/api/functions/handleSubagentStop.html +2 -2
  653. package/docs/api/functions/hasBoulder.html +2 -2
  654. package/docs/api/functions/hasContentParts.html +1 -1
  655. package/docs/api/functions/hasModeState.html +3 -3
  656. package/docs/api/functions/hasPrd.html +2 -2
  657. package/docs/api/functions/hasTextContent.html +2 -2
  658. package/docs/api/functions/hasValidContent.html +3 -3
  659. package/docs/api/functions/incrementAgentCount.html +2 -2
  660. package/docs/api/functions/incrementRalphIteration.html +2 -2
  661. package/docs/api/functions/incrementReinforcement.html +2 -2
  662. package/docs/api/functions/initAutopilot.html +2 -2
  663. package/docs/api/functions/initNotepad.html +2 -2
  664. package/docs/api/functions/initPrd.html +2 -2
  665. package/docs/api/functions/initProgress.html +2 -2
  666. package/docs/api/functions/initUltrapilot.html +2 -2
  667. package/docs/api/functions/injectContextIntoText.html +2 -2
  668. package/docs/api/functions/injectPendingContext.html +3 -3
  669. package/docs/api/functions/injectRecoveryTextPart.html +2 -2
  670. package/docs/api/functions/install.html +2 -2
  671. package/docs/api/functions/integrateResults.html +5 -5
  672. package/docs/api/functions/isActiveModeRunning.html +2 -2
  673. package/docs/api/functions/isAllowedPath.html +2 -2
  674. package/docs/api/functions/isAlreadyHighVariant.html +2 -2
  675. package/docs/api/functions/isAutopilotActive.html +2 -2
  676. package/docs/api/functions/isAxiomEnabled.html +1 -1
  677. package/docs/api/functions/isClaudeInstalled.html +3 -3
  678. package/docs/api/functions/isClaudeModel.html +2 -2
  679. package/docs/api/functions/isCompactionInProgress.html +3 -3
  680. package/docs/api/functions/isDuplicateByContentHash.html +2 -2
  681. package/docs/api/functions/isDuplicateByRealPath.html +2 -2
  682. package/docs/api/functions/isExcludedCommand.html +2 -2
  683. package/docs/api/functions/isExtendedThinkingModel.html +1 -1
  684. package/docs/api/functions/isFileOwnedByWorker.html +2 -2
  685. package/docs/api/functions/isFormatterAvailable.html +2 -2
  686. package/docs/api/functions/isGptModel.html +2 -2
  687. package/docs/api/functions/isInstalled.html +2 -2
  688. package/docs/api/functions/isLearnerEnabled.html +2 -2
  689. package/docs/api/functions/isModeActive.html +6 -6
  690. package/docs/api/functions/isNonInteractive.html +1 -1
  691. package/docs/api/functions/isRecoverableError.html +2 -2
  692. package/docs/api/functions/isSafeCommand.html +2 -2
  693. package/docs/api/functions/isSessionRecoverable.html +2 -2
  694. package/docs/api/functions/isSharedFile.html +2 -2
  695. package/docs/api/functions/isThinkModeActive.html +2 -2
  696. package/docs/api/functions/isToolPart.html +2 -2
  697. package/docs/api/functions/isUltraQAActive.html +1 -1
  698. package/docs/api/functions/isWriteEditTool.html +2 -2
  699. package/docs/api/functions/learnFromToolOutput.html +7 -7
  700. package/docs/api/functions/lintFile.html +2 -2
  701. package/docs/api/functions/listAvailableCommands.html +2 -2
  702. package/docs/api/functions/listCommands.html +2 -2
  703. package/docs/api/functions/listPromotableLearnings.html +2 -2
  704. package/docs/api/functions/loadAgentPrompt.html +7 -7
  705. package/docs/api/functions/loadAgentUsageState.html +1 -1
  706. package/docs/api/functions/loadAllSkills.html +3 -3
  707. package/docs/api/functions/loadConfig.html +2 -2
  708. package/docs/api/functions/loadInjectedPaths.html +2 -2
  709. package/docs/api/functions/loadInjectedRules.html +2 -2
  710. package/docs/api/functions/loadLearnerConfig.html +2 -2
  711. package/docs/api/functions/loadProjectMemory.html +3 -3
  712. package/docs/api/functions/loadSkillById.html +2 -2
  713. package/docs/api/functions/mapDirectoryStructure.html +2 -2
  714. package/docs/api/functions/markStoryComplete.html +2 -2
  715. package/docs/api/functions/markStoryIncomplete.html +2 -2
  716. package/docs/api/functions/mergeAgentConfig.html +2 -2
  717. package/docs/api/functions/parseAxiomState.html +1 -1
  718. package/docs/api/functions/parseContextLimitError.html +2 -2
  719. package/docs/api/functions/parseProgress.html +2 -2
  720. package/docs/api/functions/parseRuleFrontmatter.html +10 -10
  721. package/docs/api/functions/parseSkillFile.html +2 -2
  722. package/docs/api/functions/parseSlashCommand.html +2 -2
  723. package/docs/api/functions/parseTokenLimitError.html +2 -2
  724. package/docs/api/functions/performUpdate.html +2 -2
  725. package/docs/api/functions/prependRecoveryThinkingPart.html +2 -2
  726. package/docs/api/functions/prependThinkingBlock.html +1 -1
  727. package/docs/api/functions/processAxiomBoot.html +1 -1
  728. package/docs/api/functions/processAxiomGuards.html +1 -1
  729. package/docs/api/functions/processBackgroundNotification.html +2 -2
  730. package/docs/api/functions/processBackgroundNotificationHook.html +2 -2
  731. package/docs/api/functions/processEditOutput.html +2 -2
  732. package/docs/api/functions/processHook.html +3 -3
  733. package/docs/api/functions/processMessageForSkills.html +2 -2
  734. package/docs/api/functions/processOrchestratorPostTool.html +3 -3
  735. package/docs/api/functions/processOrchestratorPreTool.html +3 -3
  736. package/docs/api/functions/processPermissionRequest.html +2 -2
  737. package/docs/api/functions/processPreCompact.html +6 -6
  738. package/docs/api/functions/processProjectMemoryPreCompact.html +3 -3
  739. package/docs/api/functions/processResponseForDetection.html +3 -3
  740. package/docs/api/functions/processSessionEnd.html +2 -2
  741. package/docs/api/functions/processSetup.html +2 -2
  742. package/docs/api/functions/processSetupInit.html +2 -2
  743. package/docs/api/functions/processSetupMaintenance.html +2 -2
  744. package/docs/api/functions/processSlashCommand.html +2 -2
  745. package/docs/api/functions/processSubagentStart.html +2 -2
  746. package/docs/api/functions/processSubagentStop.html +2 -2
  747. package/docs/api/functions/processThinkMode.html +3 -3
  748. package/docs/api/functions/promoteLearning.html +2 -2
  749. package/docs/api/functions/pruneOldEntries.html +2 -2
  750. package/docs/api/functions/pruneOldStateFiles.html +2 -2
  751. package/docs/api/functions/readActiveContext.html +1 -1
  752. package/docs/api/functions/readAutopilotState.html +2 -2
  753. package/docs/api/functions/readBoulderState.html +2 -2
  754. package/docs/api/functions/readModeMarker.html +4 -4
  755. package/docs/api/functions/readNotepad.html +2 -2
  756. package/docs/api/functions/readPrd.html +2 -2
  757. package/docs/api/functions/readProgress.html +2 -2
  758. package/docs/api/functions/readProgressRaw.html +2 -2
  759. package/docs/api/functions/readProjectDecisions.html +1 -1
  760. package/docs/api/functions/readRalphState.html +2 -2
  761. package/docs/api/functions/readRecoveryMessages.html +2 -2
  762. package/docs/api/functions/readRecoveryParts.html +2 -2
  763. package/docs/api/functions/readTrackingState.html +3 -3
  764. package/docs/api/functions/readUltraQAState.html +2 -2
  765. package/docs/api/functions/readUltrapilotState.html +2 -2
  766. package/docs/api/functions/readUltraworkState.html +4 -4
  767. package/docs/api/functions/readUserPreferences.html +1 -1
  768. package/docs/api/functions/readVerificationState.html +3 -3
  769. package/docs/api/functions/recordArchitectFeedback.html +2 -2
  770. package/docs/api/functions/recordConflict.html +2 -2
  771. package/docs/api/functions/recordFailure.html +2 -2
  772. package/docs/api/functions/recordHookFire.html +2 -2
  773. package/docs/api/functions/recordHookResult.html +2 -2
  774. package/docs/api/functions/recordKeywordDetected.html +2 -2
  775. package/docs/api/functions/recordModeChange.html +2 -2
  776. package/docs/api/functions/recordPattern.html +2 -2
  777. package/docs/api/functions/recordSessionMetrics.html +2 -2
  778. package/docs/api/functions/recordSkillActivated.html +2 -2
  779. package/docs/api/functions/recordSkillInvoked.html +2 -2
  780. package/docs/api/functions/recordStoryProgress.html +2 -2
  781. package/docs/api/functions/recordValidationVerdict.html +2 -2
  782. package/docs/api/functions/registerBeadsContext.html +3 -3
  783. package/docs/api/functions/registerProjectMemoryContext.html +6 -6
  784. package/docs/api/functions/removeCodeBlocks.html +12 -12
  785. package/docs/api/functions/removeModeMarker.html +5 -5
  786. package/docs/api/functions/removeSlashCodeBlocks.html +2 -2
  787. package/docs/api/functions/removeThinkCodeBlocks.html +2 -2
  788. package/docs/api/functions/replaceRecoveryEmptyTextParts.html +2 -2
  789. package/docs/api/functions/rescanProjectEnvironment.html +4 -4
  790. package/docs/api/functions/resetSessionTokenEstimate.html +2 -2
  791. package/docs/api/functions/resumeAutopilot.html +2 -2
  792. package/docs/api/functions/runPreCommitChecks.html +2 -2
  793. package/docs/api/functions/runTests.html +2 -2
  794. package/docs/api/functions/runTypeCheck.html +2 -2
  795. package/docs/api/functions/sanitizeMessage.html +2 -2
  796. package/docs/api/functions/sanitizeMessages.html +2 -2
  797. package/docs/api/functions/saveAgentUsageState.html +1 -1
  798. package/docs/api/functions/saveInjectedPaths.html +2 -2
  799. package/docs/api/functions/saveInjectedRules.html +2 -2
  800. package/docs/api/functions/saveLearnerConfig.html +2 -2
  801. package/docs/api/functions/saveModeSummary.html +2 -2
  802. package/docs/api/functions/saveProjectMemory.html +3 -3
  803. package/docs/api/functions/saveVersionMetadata.html +2 -2
  804. package/docs/api/functions/setCurrentStory.html +2 -2
  805. package/docs/api/functions/setEnvironmentVariables.html +2 -2
  806. package/docs/api/functions/setLearnerConfigValue.html +2 -2
  807. package/docs/api/functions/setPriorityContext.html +2 -2
  808. package/docs/api/functions/shouldActivateThinkMode.html +3 -3
  809. package/docs/api/functions/shouldActivateUltrathink.html +2 -2
  810. package/docs/api/functions/shouldApplyRule.html +2 -2
  811. package/docs/api/functions/shouldCheckForUpdates.html +2 -2
  812. package/docs/api/functions/shouldCompleteByPrd.html +2 -2
  813. package/docs/api/functions/shouldPromptExtraction.html +2 -2
  814. package/docs/api/functions/shouldReinforceUltrawork.html +2 -2
  815. package/docs/api/functions/shouldRetryValidation.html +2 -2
  816. package/docs/api/functions/shouldRunInBackground.html +8 -8
  817. package/docs/api/functions/spawnWorkers.html +7 -7
  818. package/docs/api/functions/startUltraQA.html +3 -3
  819. package/docs/api/functions/startUltrapilot.html +7 -7
  820. package/docs/api/functions/startValidationRound.html +2 -2
  821. package/docs/api/functions/startVerification.html +2 -2
  822. package/docs/api/functions/startsWithThinkingBlock.html +1 -1
  823. package/docs/api/functions/stopUltraQA.html +2 -2
  824. package/docs/api/functions/stripRecoveryThinkingParts.html +2 -2
  825. package/docs/api/functions/toSdkMcpFormat.html +2 -2
  826. package/docs/api/functions/trackAccess.html +2 -2
  827. package/docs/api/functions/trackProgress.html +5 -5
  828. package/docs/api/functions/transitionPhase.html +2 -2
  829. package/docs/api/functions/transitionRalphToUltraQA.html +9 -9
  830. package/docs/api/functions/transitionToComplete.html +2 -2
  831. package/docs/api/functions/transitionToFailed.html +2 -2
  832. package/docs/api/functions/transitionUltraQAToValidation.html +2 -2
  833. package/docs/api/functions/updateDirectoryAccess.html +2 -2
  834. package/docs/api/functions/updateExecution.html +2 -2
  835. package/docs/api/functions/updateExpansion.html +2 -2
  836. package/docs/api/functions/updatePlanning.html +2 -2
  837. package/docs/api/functions/updateQA.html +2 -2
  838. package/docs/api/functions/updateValidation.html +2 -2
  839. package/docs/api/functions/updateWorkerState.html +2 -2
  840. package/docs/api/functions/validateAgentConfig.html +2 -2
  841. package/docs/api/functions/validateCommitMessage.html +2 -2
  842. package/docs/api/functions/validateConfigFiles.html +2 -2
  843. package/docs/api/functions/validateExtractionRequest.html +2 -2
  844. package/docs/api/functions/validateMessage.html +1 -1
  845. package/docs/api/functions/validateMessages.html +1 -1
  846. package/docs/api/functions/validateSkillMetadata.html +2 -2
  847. package/docs/api/functions/writeAutopilotState.html +2 -2
  848. package/docs/api/functions/writeBoulderState.html +2 -2
  849. package/docs/api/functions/writePrd.html +2 -2
  850. package/docs/api/functions/writeRalphState.html +2 -2
  851. package/docs/api/functions/writeSkill.html +2 -2
  852. package/docs/api/functions/writeTrackingState.html +5 -5
  853. package/docs/api/functions/writeUltraQAState.html +2 -2
  854. package/docs/api/functions/writeUltrapilotState.html +2 -2
  855. package/docs/api/functions/writeUltraworkState.html +2 -2
  856. package/docs/api/functions/writeVerificationState.html +2 -2
  857. package/docs/api/hierarchy.html +1 -1
  858. package/docs/api/index.html +843 -843
  859. package/docs/api/interfaces/AgentConfig.html +18 -18
  860. package/docs/api/interfaces/AgentOverrideConfig.html +10 -10
  861. package/docs/api/interfaces/AgentPromptMetadata.html +19 -19
  862. package/docs/api/interfaces/AgentState.html +5 -5
  863. package/docs/api/interfaces/AgentUsageState.html +8 -8
  864. package/docs/api/interfaces/AutoSlashCommandHookInput.html +5 -5
  865. package/docs/api/interfaces/AutoSlashCommandHookOutput.html +3 -3
  866. package/docs/api/interfaces/AutoSlashCommandResult.html +5 -5
  867. package/docs/api/interfaces/AutopilotConfig.html +26 -26
  868. package/docs/api/interfaces/AutopilotExecution.html +16 -16
  869. package/docs/api/interfaces/AutopilotExpansion.html +12 -12
  870. package/docs/api/interfaces/AutopilotPlanning.html +8 -8
  871. package/docs/api/interfaces/AutopilotQA.html +12 -12
  872. package/docs/api/interfaces/AutopilotResult.html +10 -10
  873. package/docs/api/interfaces/AutopilotState.html +36 -36
  874. package/docs/api/interfaces/AutopilotSummary.html +16 -16
  875. package/docs/api/interfaces/AutopilotValidation.html +10 -10
  876. package/docs/api/interfaces/AutopilotValidationResult.html +8 -8
  877. package/docs/api/interfaces/AvailableAgent.html +5 -5
  878. package/docs/api/interfaces/AxiomBootInput.html +3 -3
  879. package/docs/api/interfaces/AxiomBootOutput.html +4 -4
  880. package/docs/api/interfaces/AxiomGuardsInput.html +4 -4
  881. package/docs/api/interfaces/AxiomGuardsOutput.html +4 -4
  882. package/docs/api/interfaces/AxiomMemoryFiles.html +5 -5
  883. package/docs/api/interfaces/AxiomState.html +8 -8
  884. package/docs/api/interfaces/BackgroundNotificationHookConfig.html +11 -11
  885. package/docs/api/interfaces/BackgroundNotificationHookInput.html +8 -8
  886. package/docs/api/interfaces/BackgroundNotificationHookOutput.html +8 -8
  887. package/docs/api/interfaces/BackgroundTask.html +7 -7
  888. package/docs/api/interfaces/BackgroundTaskManager.html +26 -26
  889. package/docs/api/interfaces/BeadsContextConfig.html +4 -4
  890. package/docs/api/interfaces/BoulderState.html +12 -12
  891. package/docs/api/interfaces/BuildInfo.html +6 -6
  892. package/docs/api/interfaces/CanStartResult.html +4 -4
  893. package/docs/api/interfaces/CancelResult.html +4 -4
  894. package/docs/api/interfaces/ClaudeThinkingConfig.html +4 -4
  895. package/docs/api/interfaces/CodeConventions.html +5 -5
  896. package/docs/api/interfaces/CodebasePattern.html +5 -5
  897. package/docs/api/interfaces/CommandInfo.html +5 -5
  898. package/docs/api/interfaces/CommandMetadata.html +7 -7
  899. package/docs/api/interfaces/CommentCheckResult.html +10 -10
  900. package/docs/api/interfaces/CommentCheckerConfig.html +6 -6
  901. package/docs/api/interfaces/CommentInfo.html +14 -14
  902. package/docs/api/interfaces/CommentPendingCall.html +18 -18
  903. package/docs/api/interfaces/CommitConfig.html +9 -9
  904. package/docs/api/interfaces/CompactCheckpoint.html +7 -7
  905. package/docs/api/interfaces/ContextEntry.html +14 -14
  906. package/docs/api/interfaces/ContextUsageResult.html +12 -12
  907. package/docs/api/interfaces/CustomNote.html +5 -5
  908. package/docs/api/interfaces/DelegationDecision.html +7 -7
  909. package/docs/api/interfaces/DelegationRoute.html +7 -7
  910. package/docs/api/interfaces/DelegationRoutingConfig.html +5 -5
  911. package/docs/api/interfaces/DelegationTrigger.html +6 -6
  912. package/docs/api/interfaces/DetectedKeyword.html +13 -13
  913. package/docs/api/interfaces/DetectionConfig.html +8 -8
  914. package/docs/api/interfaces/DetectionResult.html +13 -13
  915. package/docs/api/interfaces/DirectoryInfo.html +7 -7
  916. package/docs/api/interfaces/EmptyMessageSanitizerConfig.html +6 -6
  917. package/docs/api/interfaces/EmptyMessageSanitizerInput.html +6 -6
  918. package/docs/api/interfaces/EmptyMessageSanitizerOutput.html +8 -8
  919. package/docs/api/interfaces/ExecuteResult.html +5 -5
  920. package/docs/api/interfaces/ExpandedCommand.html +4 -4
  921. package/docs/api/interfaces/ExternalModelPreference.html +4 -4
  922. package/docs/api/interfaces/ExternalModelsConfig.html +6 -6
  923. package/docs/api/interfaces/ExternalModelsDefaults.html +5 -5
  924. package/docs/api/interfaces/ExternalModelsFallbackPolicy.html +5 -5
  925. package/docs/api/interfaces/FileOwnership.html +8 -8
  926. package/docs/api/interfaces/FormatConfig.html +7 -7
  927. package/docs/api/interfaces/FrameworkDetection.html +4 -4
  928. package/docs/api/interfaces/FullAgentConfig.html +26 -26
  929. package/docs/api/interfaces/GateCheckResult.html +5 -5
  930. package/docs/api/interfaces/GitBranchPattern.html +3 -3
  931. package/docs/api/interfaces/HookContext.html +5 -5
  932. package/docs/api/interfaces/HookDefinition.html +5 -5
  933. package/docs/api/interfaces/HookInput.html +18 -18
  934. package/docs/api/interfaces/HookOutput.html +10 -10
  935. package/docs/api/interfaces/HookResult.html +4 -4
  936. package/docs/api/interfaces/HotPath.html +6 -6
  937. package/docs/api/interfaces/InjectedPathsData.html +9 -9
  938. package/docs/api/interfaces/InjectedRulesData.html +10 -10
  939. package/docs/api/interfaces/InjectedSkillsData.html +8 -8
  940. package/docs/api/interfaces/InjectionResult.html +8 -8
  941. package/docs/api/interfaces/InstallOptions.html +9 -9
  942. package/docs/api/interfaces/InstallResult.html +10 -10
  943. package/docs/api/interfaces/IntegrationResult.html +14 -14
  944. package/docs/api/interfaces/LanguageDetection.html +5 -5
  945. package/docs/api/interfaces/LearnedSkill.html +16 -16
  946. package/docs/api/interfaces/LearnerConfig.html +18 -18
  947. package/docs/api/interfaces/LintConfig.html +7 -7
  948. package/docs/api/interfaces/MagicKeyword.html +4 -4
  949. package/docs/api/interfaces/MatchResult.html +6 -6
  950. package/docs/api/interfaces/MessageContext.html +8 -8
  951. package/docs/api/interfaces/MessageInfo.html +9 -9
  952. package/docs/api/interfaces/MessagePart.html +15 -15
  953. package/docs/api/interfaces/MessageWithModel.html +3 -3
  954. package/docs/api/interfaces/MessageWithParts.html +6 -6
  955. package/docs/api/interfaces/MessagesTransformHook.html +3 -3
  956. package/docs/api/interfaces/MessagesTransformInput.html +3 -3
  957. package/docs/api/interfaces/MessagesTransformOutput.html +3 -3
  958. package/docs/api/interfaces/ModeConfig.html +13 -13
  959. package/docs/api/interfaces/ModeStatus.html +4 -4
  960. package/docs/api/interfaces/ModelRef.html +4 -4
  961. package/docs/api/interfaces/NonInteractiveEnvConfig.html +2 -2
  962. package/docs/api/interfaces/NotepadConfig.html +7 -7
  963. package/docs/api/interfaces/NotepadStats.html +11 -11
  964. package/docs/api/interfaces/NotificationCheckResult.html +8 -8
  965. package/docs/api/interfaces/OrchestratorToolInput.html +6 -6
  966. package/docs/api/interfaces/OrchestratorToolOutput.html +6 -6
  967. package/docs/api/interfaces/OutputPart.html +4 -4
  968. package/docs/api/interfaces/PRD.html +9 -9
  969. package/docs/api/interfaces/PRDStatus.html +13 -13
  970. package/docs/api/interfaces/ParsedSlashCommand.html +8 -8
  971. package/docs/api/interfaces/ParsedTokenLimitError.html +16 -16
  972. package/docs/api/interfaces/PendingContext.html +8 -8
  973. package/docs/api/interfaces/PermissionHookOutput.html +4 -4
  974. package/docs/api/interfaces/PermissionRequestInput.html +9 -9
  975. package/docs/api/interfaces/PersistentModeResult.html +9 -9
  976. package/docs/api/interfaces/PlanProgress.html +8 -8
  977. package/docs/api/interfaces/PlanSummary.html +10 -10
  978. package/docs/api/interfaces/PluginConfig.html +17 -17
  979. package/docs/api/interfaces/PreCommitResult.html +3 -3
  980. package/docs/api/interfaces/PreCompactHookOutput.html +4 -4
  981. package/docs/api/interfaces/PreCompactInput.html +8 -8
  982. package/docs/api/interfaces/PreemptiveCompactionConfig.html +14 -14
  983. package/docs/api/interfaces/PriorityContextResult.html +5 -5
  984. package/docs/api/interfaces/ProgressEntry.html +11 -11
  985. package/docs/api/interfaces/ProgressLog.html +7 -7
  986. package/docs/api/interfaces/ProjectMemory.html +14 -14
  987. package/docs/api/interfaces/ProjectStructure.html +5 -5
  988. package/docs/api/interfaces/PromotionCandidate.html +9 -9
  989. package/docs/api/interfaces/PruneResult.html +5 -5
  990. package/docs/api/interfaces/QualityValidation.html +10 -10
  991. package/docs/api/interfaces/RalphLoopHook.html +4 -4
  992. package/docs/api/interfaces/RalphLoopOptions.html +5 -5
  993. package/docs/api/interfaces/RalphLoopState.html +21 -21
  994. package/docs/api/interfaces/RecoveryConfig.html +16 -16
  995. package/docs/api/interfaces/RecoveryMessageData.html +4 -4
  996. package/docs/api/interfaces/RecoveryResult.html +10 -10
  997. package/docs/api/interfaces/RecoveryStoredMessageMeta.html +8 -8
  998. package/docs/api/interfaces/RecoveryStoredReasoningPart.html +7 -7
  999. package/docs/api/interfaces/RecoveryStoredTextPart.html +9 -9
  1000. package/docs/api/interfaces/RecoveryStoredToolPart.html +9 -9
  1001. package/docs/api/interfaces/RegisterContextOptions.html +12 -12
  1002. package/docs/api/interfaces/ReleaseInfo.html +9 -9
  1003. package/docs/api/interfaces/ResolveDelegationOptions.html +7 -7
  1004. package/docs/api/interfaces/ResolveOptions.html +6 -6
  1005. package/docs/api/interfaces/ResolvedModel.html +5 -5
  1006. package/docs/api/interfaces/RetryState.html +6 -6
  1007. package/docs/api/interfaces/RuleFileCandidate.html +12 -12
  1008. package/docs/api/interfaces/RuleFrontmatterResult.html +6 -6
  1009. package/docs/api/interfaces/RuleInfo.html +18 -18
  1010. package/docs/api/interfaces/RuleMetadata.html +9 -9
  1011. package/docs/api/interfaces/RuleToInject.html +10 -10
  1012. package/docs/api/interfaces/SessionEndHookOutput.html +2 -2
  1013. package/docs/api/interfaces/SessionEndInput.html +9 -9
  1014. package/docs/api/interfaces/SessionMetrics.html +9 -9
  1015. package/docs/api/interfaces/SessionState.html +5 -5
  1016. package/docs/api/interfaces/SetupHookOutput.html +3 -3
  1017. package/docs/api/interfaces/SetupInput.html +7 -7
  1018. package/docs/api/interfaces/SetupResult.html +5 -5
  1019. package/docs/api/interfaces/ShellHook.html +4 -4
  1020. package/docs/api/interfaces/SisyphusOptions.html +14 -14
  1021. package/docs/api/interfaces/SisyphusSession.html +16 -16
  1022. package/docs/api/interfaces/SkillExtractionRequest.html +12 -12
  1023. package/docs/api/interfaces/SkillFileCandidate.html +10 -10
  1024. package/docs/api/interfaces/SkillHookContext.html +5 -5
  1025. package/docs/api/interfaces/SkillMetadata.html +22 -22
  1026. package/docs/api/interfaces/SkillParseResult.html +5 -5
  1027. package/docs/api/interfaces/SubagentHookOutput.html +3 -3
  1028. package/docs/api/interfaces/SubagentInfo.html +14 -14
  1029. package/docs/api/interfaces/SubagentStartInput.html +10 -10
  1030. package/docs/api/interfaces/SubagentStopInput.html +11 -11
  1031. package/docs/api/interfaces/SubagentTrackingState.html +6 -6
  1032. package/docs/api/interfaces/TaskExecutionDecision.html +10 -10
  1033. package/docs/api/interfaces/TechStack.html +5 -5
  1034. package/docs/api/interfaces/ThinkModeInput.html +4 -4
  1035. package/docs/api/interfaces/ThinkModeState.html +12 -12
  1036. package/docs/api/interfaces/ThinkingValidatorMessageInfo.html +6 -6
  1037. package/docs/api/interfaces/ThinkingValidatorMessagePart.html +9 -9
  1038. package/docs/api/interfaces/ThinkingValidatorMessageWithParts.html +4 -4
  1039. package/docs/api/interfaces/TodoContinuationHook.html +2 -2
  1040. package/docs/api/interfaces/TransitionResult.html +4 -4
  1041. package/docs/api/interfaces/TruncateState.html +6 -6
  1042. package/docs/api/interfaces/UltraQAOptions.html +5 -5
  1043. package/docs/api/interfaces/UltraQAResult.html +9 -9
  1044. package/docs/api/interfaces/UltraQAState.html +19 -19
  1045. package/docs/api/interfaces/UltrapilotConfig.html +14 -14
  1046. package/docs/api/interfaces/UltrapilotState.html +26 -26
  1047. package/docs/api/interfaces/UltraworkState.html +17 -17
  1048. package/docs/api/interfaces/UpdateCheckResult.html +7 -7
  1049. package/docs/api/interfaces/UpdateResult.html +7 -7
  1050. package/docs/api/interfaces/UserDirective.html +7 -7
  1051. package/docs/api/interfaces/UserStory.html +15 -15
  1052. package/docs/api/interfaces/ValidationCoordinatorResult.html +6 -6
  1053. package/docs/api/interfaces/ValidationResult.html +10 -10
  1054. package/docs/api/interfaces/VerificationState.html +17 -17
  1055. package/docs/api/interfaces/VersionMetadata.html +12 -12
  1056. package/docs/api/interfaces/WorkerState.html +24 -24
  1057. package/docs/api/interfaces/WriteSkillResult.html +6 -6
  1058. package/docs/api/modules.html +1 -1
  1059. package/docs/api/types/AgentCategory.html +2 -2
  1060. package/docs/api/types/AgentCost.html +3 -3
  1061. package/docs/api/types/AgentFactory.html +2 -2
  1062. package/docs/api/types/AgentOverrides.html +2 -2
  1063. package/docs/api/types/AutopilotPhase.html +2 -2
  1064. package/docs/api/types/AutopilotSignal.html +2 -2
  1065. package/docs/api/types/CommandScope.html +2 -2
  1066. package/docs/api/types/ContextPriority.html +3 -3
  1067. package/docs/api/types/ContextSourceType.html +3 -3
  1068. package/docs/api/types/DelegationProvider.html +2 -2
  1069. package/docs/api/types/DelegationTool.html +2 -2
  1070. package/docs/api/types/ExecutionMode.html +3 -3
  1071. package/docs/api/types/ExternalModelProvider.html +2 -2
  1072. package/docs/api/types/GateType.html +3 -3
  1073. package/docs/api/types/InjectionStrategy.html +2 -2
  1074. package/docs/api/types/KeywordType.html +10 -10
  1075. package/docs/api/types/ModelType.html +2 -2
  1076. package/docs/api/types/QAStatus.html +2 -2
  1077. package/docs/api/types/RecoveryErrorType.html +2 -2
  1078. package/docs/api/types/RecoveryStoredPart.html +2 -2
  1079. package/docs/api/types/TaskTool.html +1 -1
  1080. package/docs/api/types/ThinkingConfig.html +2 -2
  1081. package/docs/api/types/UltraQAGoalType.html +1 -1
  1082. package/docs/api/types/UserStoryInput.html +2 -2
  1083. package/docs/api/types/ValidationVerdict.html +2 -2
  1084. package/docs/api/types/ValidationVerdictType.html +2 -2
  1085. package/docs/api/variables/AGENTS_DIR.html +1 -1
  1086. package/docs/api/variables/AGENTS_FILENAME.html +2 -2
  1087. package/docs/api/variables/AGENT_TOOLS.html +2 -2
  1088. package/docs/api/variables/ALLOWED_PATH_PREFIX.html +2 -2
  1089. package/docs/api/variables/ANALYST_PROMPT_METADATA.html +1 -1
  1090. package/docs/api/variables/ARCHITECT_PROMPT_METADATA.html +1 -1
  1091. package/docs/api/variables/AUTO_SLASH_COMMAND_HOOK_NAME.html +4 -4
  1092. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_CLOSE.html +1 -1
  1093. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_OPEN.html +2 -2
  1094. package/docs/api/variables/BACKGROUND_NOTIFICATION_HOOK_NAME.html +2 -2
  1095. package/docs/api/variables/BDD_KEYWORDS.html +2 -2
  1096. package/docs/api/variables/BEADS_INSTRUCTIONS.html +1 -1
  1097. package/docs/api/variables/BEADS_RUST_INSTRUCTIONS.html +1 -1
  1098. package/docs/api/variables/BLOCKING_PATTERNS.html +3 -3
  1099. package/docs/api/variables/BOULDER_CONTINUATION_PROMPT.html +2 -2
  1100. package/docs/api/variables/BOULDER_DIR.html +2 -2
  1101. package/docs/api/variables/BOULDER_FILE.html +2 -2
  1102. package/docs/api/variables/BOULDER_STATE_PATH.html +2 -2
  1103. package/docs/api/variables/CHARS_PER_TOKEN.html +2 -2
  1104. package/docs/api/variables/CI_COMMANDS.html +2 -2
  1105. package/docs/api/variables/CI_GATE_MESSAGE.html +1 -1
  1106. package/docs/api/variables/CLAUDE_CONFIG_DIR.html +2 -2
  1107. package/docs/api/variables/CLAUDE_DEFAULT_CONTEXT_LIMIT.html +2 -2
  1108. package/docs/api/variables/COMMANDS_DIR.html +1 -1
  1109. package/docs/api/variables/COMMENT_CHECKER_MESSAGE_HEADER.html +2 -2
  1110. package/docs/api/variables/COMPACTION_COOLDOWN_MS.html +2 -2
  1111. package/docs/api/variables/CONTENT_PART_TYPES.html +2 -2
  1112. package/docs/api/variables/CONTEXT_CRITICAL_MESSAGE.html +2 -2
  1113. package/docs/api/variables/CONTEXT_FILENAMES.html +2 -2
  1114. package/docs/api/variables/CONTEXT_LIMIT_RECOVERY_MESSAGE.html +2 -2
  1115. package/docs/api/variables/CONTEXT_LIMIT_SHORT_MESSAGE.html +2 -2
  1116. package/docs/api/variables/CONTEXT_WARNING_MESSAGE.html +2 -2
  1117. package/docs/api/variables/CRITICAL_THRESHOLD.html +2 -2
  1118. package/docs/api/variables/CRITIC_PROMPT_METADATA.html +1 -1
  1119. package/docs/api/variables/DEFAULT_CONFIG.html +2 -2
  1120. package/docs/api/variables/DEFAULT_MAX_BACKGROUND_TASKS.html +2 -2
  1121. package/docs/api/variables/DEFAULT_THINKING_CONTENT.html +2 -2
  1122. package/docs/api/variables/DIRECT_WORK_REMINDER.html +2 -2
  1123. package/docs/api/variables/DOCUMENT_SPECIALIST_PROMPT_METADATA.html +1 -1
  1124. package/docs/api/variables/DOCUMENT_WRITER_PROMPT_METADATA.html +1 -1
  1125. package/docs/api/variables/EDIT_ERROR_PATTERNS.html +2 -2
  1126. package/docs/api/variables/EDIT_ERROR_REMINDER.html +3 -3
  1127. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_DEBUG_PREFIX.html +2 -2
  1128. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_ERROR_PATTERNS.html +2 -2
  1129. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_HOOK_NAME.html +2 -2
  1130. package/docs/api/variables/ENTRY_SEPARATOR.html +1 -1
  1131. package/docs/api/variables/EXCLUDED_COMMANDS.html +3 -3
  1132. package/docs/api/variables/EXPERT_GATE_MESSAGE.html +1 -1
  1133. package/docs/api/variables/EXPLORE_PROMPT_METADATA.html +1 -1
  1134. package/docs/api/variables/EXTENSION_TO_LANGUAGE.html +2 -2
  1135. package/docs/api/variables/FEATURE_FLAG_KEY.html +2 -2
  1136. package/docs/api/variables/FRONTEND_ENGINEER_PROMPT_METADATA.html +1 -1
  1137. package/docs/api/variables/GITHUB_API_URL.html +1 -1
  1138. package/docs/api/variables/INSTALLER_CLAUDE_CONFIG_DIR.html +2 -2
  1139. package/docs/api/variables/INSTALLER_VERSION.html +2 -2
  1140. package/docs/api/variables/LINE_COMMENT_PATTERNS.html +2 -2
  1141. package/docs/api/variables/LONG_RUNNING_PATTERNS.html +3 -3
  1142. package/docs/api/variables/MANUAL_HEADER.html +1 -1
  1143. package/docs/api/variables/MAX_SKILLS_PER_SESSION.html +2 -2
  1144. package/docs/api/variables/MAX_SKILL_CONTENT_LENGTH.html +2 -2
  1145. package/docs/api/variables/MAX_WARNINGS.html +2 -2
  1146. package/docs/api/variables/MIN_QUALITY_SCORE.html +2 -2
  1147. package/docs/api/variables/MODE_CONFIGS.html +4 -4
  1148. package/docs/api/variables/MULTIMODAL_LOOKER_PROMPT_METADATA.html +1 -1
  1149. package/docs/api/variables/NON_EMPTY_CONTENT_RECOVERY_MESSAGE.html +2 -2
  1150. package/docs/api/variables/NON_INTERACTIVE_ENV.html +1 -1
  1151. package/docs/api/variables/NON_INTERACTIVE_ENV_HOOK_NAME.html +1 -1
  1152. package/docs/api/variables/NOTEPAD_BASE_PATH.html +2 -2
  1153. package/docs/api/variables/NOTEPAD_DEFAULT_CONFIG.html +1 -1
  1154. package/docs/api/variables/NOTEPAD_DIR.html +2 -2
  1155. package/docs/api/variables/NOTEPAD_FILENAME.html +1 -1
  1156. package/docs/api/variables/OMC_ORCHESTRATOR_HOOK_NAME.html +4 -4
  1157. package/docs/api/variables/ORCHESTRATOR_DELEGATION_REQUIRED.html +2 -2
  1158. package/docs/api/variables/PATTERNS_HEADER.html +1 -1
  1159. package/docs/api/variables/PLACEHOLDER_TEXT.html +3 -3
  1160. package/docs/api/variables/PLANNER_PLANS_DIR.html +2 -2
  1161. package/docs/api/variables/PLANNER_PROMPT_METADATA.html +1 -1
  1162. package/docs/api/variables/PLAN_EXTENSION.html +2 -2
  1163. package/docs/api/variables/PRD_EXAMPLE_FILENAME.html +1 -1
  1164. package/docs/api/variables/PRD_FILENAME.html +1 -1
  1165. package/docs/api/variables/PREEMPTIVE_DEFAULT_THRESHOLD.html +2 -2
  1166. package/docs/api/variables/PREVENTED_ERROR.html +2 -2
  1167. package/docs/api/variables/PRIORITY_HEADER.html +1 -1
  1168. package/docs/api/variables/PROGRESS_FILENAME.html +1 -1
  1169. package/docs/api/variables/PROJECT_MARKERS.html +2 -2
  1170. package/docs/api/variables/PROJECT_RULE_FILES.html +2 -2
  1171. package/docs/api/variables/PROJECT_RULE_SUBDIRS.html +2 -2
  1172. package/docs/api/variables/PROJECT_SKILLS_SUBDIR.html +2 -2
  1173. package/docs/api/variables/RAPID_FIRE_DEBOUNCE_MS.html +7 -7
  1174. package/docs/api/variables/README_FILENAME.html +2 -2
  1175. package/docs/api/variables/README_INJECTOR_STORAGE.html +1 -1
  1176. package/docs/api/variables/README_TRACKED_TOOLS.html +2 -2
  1177. package/docs/api/variables/RECOVERY_FAILED_MESSAGE.html +2 -2
  1178. package/docs/api/variables/RECOVERY_MESSAGES.html +2 -2
  1179. package/docs/api/variables/RECOVERY_PLACEHOLDER_TEXT.html +2 -2
  1180. package/docs/api/variables/REMINDER_MESSAGE.html +2 -2
  1181. package/docs/api/variables/REPO_NAME.html +1 -1
  1182. package/docs/api/variables/REPO_OWNER.html +2 -2
  1183. package/docs/api/variables/RETRY_CONFIG.html +6 -6
  1184. package/docs/api/variables/RULES_INJECTOR_STORAGE.html +1 -1
  1185. package/docs/api/variables/RULE_EXTENSIONS.html +2 -2
  1186. package/docs/api/variables/SHELL_COMMAND_PATTERNS.html +3 -3
  1187. package/docs/api/variables/SINGLE_TASK_DIRECTIVE.html +2 -2
  1188. package/docs/api/variables/SISYPHUS_JUNIOR_PROMPT_METADATA.html +1 -1
  1189. package/docs/api/variables/SKILL_EXTENSION.html +2 -2
  1190. package/docs/api/variables/SLASH_COMMAND_PATTERN.html +2 -2
  1191. package/docs/api/variables/STALE_STATE_MAX_AGE_MS.html +2 -2
  1192. package/docs/api/variables/SYNTHETIC_THINKING_ID_PREFIX.html +2 -2
  1193. package/docs/api/variables/TARGET_TOOLS.html +2 -2
  1194. package/docs/api/variables/THINKING_BLOCK_VALIDATOR_HOOK_NAME.html +2 -2
  1195. package/docs/api/variables/THINKING_CONFIGS.html +2 -2
  1196. package/docs/api/variables/THINKING_MODEL_PATTERNS.html +3 -3
  1197. package/docs/api/variables/THINKING_PART_TYPES.html +2 -2
  1198. package/docs/api/variables/TOKEN_LIMIT_KEYWORDS.html +2 -2
  1199. package/docs/api/variables/TOKEN_LIMIT_PATTERNS.html +2 -2
  1200. package/docs/api/variables/TOOL_PART_TYPES.html +2 -2
  1201. package/docs/api/variables/TRACKED_TOOLS.html +2 -2
  1202. package/docs/api/variables/TRUNCATE_CONFIG.html +6 -6
  1203. package/docs/api/variables/TRUNCATION_APPLIED_MESSAGE.html +2 -2
  1204. package/docs/api/variables/TYPE_CHECKER_PREFIXES.html +2 -2
  1205. package/docs/api/variables/ULTRAPILOT_DEFAULT_CONFIG.html +2 -2
  1206. package/docs/api/variables/USER_GATE_MESSAGE.html +1 -1
  1207. package/docs/api/variables/USER_RULE_DIR.html +2 -2
  1208. package/docs/api/variables/USER_SKILLS_DIR.html +2 -2
  1209. package/docs/api/variables/VERIFICATION_REMINDER.html +2 -2
  1210. package/docs/api/variables/VERSION_FILE.html +1 -1
  1211. package/docs/api/variables/WORKING_MEMORY_HEADER.html +1 -1
  1212. package/docs/api/variables/WRITE_EDIT_TOOLS.html +2 -2
  1213. package/docs/api/variables/allCustomTools.html +3 -3
  1214. package/docs/api/variables/analystAgent.html +1 -1
  1215. package/docs/api/variables/architectAgent.html +1 -1
  1216. package/docs/api/variables/astTools.html +2 -2
  1217. package/docs/api/variables/contextCollector.html +2 -2
  1218. package/docs/api/variables/criticAgent.html +1 -1
  1219. package/docs/api/variables/designerAgent.html +1 -1
  1220. package/docs/api/variables/executorAgent.html +1 -1
  1221. package/docs/api/variables/exploreAgent.html +1 -1
  1222. package/docs/api/variables/lspTools.html +2 -2
  1223. package/docs/api/variables/nonInteractiveEnvHook.html +8 -8
  1224. package/docs/api/variables/omcSystemPrompt.html +2 -2
  1225. package/docs/api/variables/omcToolNames.html +3 -3
  1226. package/docs/api/variables/omcToolsServer.html +4 -4
  1227. package/docs/api/variables/plannerAgent.html +1 -1
  1228. package/docs/api/variables/researcherAgent.html +1 -1
  1229. package/docs/api/variables/visionAgent.html +1 -1
  1230. package/docs/api/variables/writerAgent.html +1 -1
  1231. package/docs/concepts/README.md +63 -0
  1232. package/docs/concepts/agent-selection.md +83 -0
  1233. package/docs/concepts/agents.md +63 -0
  1234. package/docs/concepts/error-handling.md +121 -0
  1235. package/docs/concepts/modes.md +70 -0
  1236. package/docs/concepts/skills.md +68 -0
  1237. package/docs/getting-started/concepts.md +127 -63
  1238. package/docs/getting-started/quick-reference.md +135 -0
  1239. package/docs/getting-started/quickstart.md +101 -17
  1240. package/docs/quick-start.md +169 -0
  1241. package/docs/reviews/autoresearch-integration/review_domain.md +295 -295
  1242. package/docs/reviews/autoresearch-integration/review_product.md +287 -287
  1243. package/docs/standards/README.md +1 -1
  1244. package/docs/state-migration.md +98 -0
  1245. package/docs/tasks/v7.0.1/sub_prds/T-001-test-optimization.md +66 -0
  1246. package/hooks/run-hook.cmd +0 -0
  1247. package/hooks/session-start +0 -0
  1248. package/package.json +5 -1
  1249. package/scripts/check-version-sync.mjs +33 -0
  1250. package/scripts/fix-agent-headers.py +58 -58
  1251. package/scripts/fix-blank-lines.py +19 -19
  1252. package/scripts/fix-long-lines.py +41 -41
  1253. package/scripts/migrate-console-to-logger.ts +91 -0
  1254. package/scripts/persistent-mode.cjs +605 -605
  1255. package/skills/release/SKILL.md +126 -0
  1256. package/skills/systematic-debugging/find-polluter.sh +0 -0
  1257. package/skills/writing-skills/graphviz-conventions.dot +171 -171
  1258. package/skills/writing-skills/render-graphs.js +0 -0
  1259. package/templates/axiom/scripts/Check-Memory.ps1 +68 -68
  1260. package/templates/axiom/scripts/Poll-Memory.ps1 +36 -36
  1261. package/templates/axiom/scripts/Watch-Memory.ps1 +149 -149
  1262. package/templates/axiom/scripts/agent-runner.ps1 +101 -101
  1263. package/templates/axiom/scripts/start-reviews.ps1 +19 -19
  1264. package/templates/demo/README.md +39 -0
  1265. package/templates/example-project/README.md +34 -0
  1266. package/templates/example-project/dist/index.js +5 -0
  1267. package/templates/example-project/package-lock.json +47 -0
  1268. package/templates/example-project/package.json +13 -0
  1269. package/templates/example-project/src/index.ts +5 -0
  1270. package/templates/example-project/tsconfig.json +11 -0
@@ -0,0 +1,88 @@
1
+ import { existsSync, readFileSync } from "fs";
2
+ import { readFile } from "fs/promises";
3
+ import { join } from "path";
4
+ import { safeJsonParse } from "../lib/safe-json.js";
5
+ const TEAM_TERMINAL_VALUES = new Set([
6
+ "completed", "complete", "cancelled", "canceled", "cancel",
7
+ "failed", "aborted", "terminated", "done",
8
+ ]);
9
+ export async function readTeamStagedState(directory, sessionId) {
10
+ const stateDir = join(directory, ".omc", "state");
11
+ const statePaths = sessionId
12
+ ? [
13
+ join(stateDir, "sessions", sessionId, "team-state.json"),
14
+ join(stateDir, "team-state.json"),
15
+ ]
16
+ : [join(stateDir, "team-state.json")];
17
+ for (const statePath of statePaths) {
18
+ try {
19
+ const content = await readFile(statePath, "utf-8");
20
+ const result = safeJsonParse(content, statePath);
21
+ if (!result.success || typeof result.data !== "object" || result.data === null) {
22
+ continue;
23
+ }
24
+ const stateSessionId = result.data.session_id || result.data.sessionId;
25
+ if (sessionId && stateSessionId && stateSessionId !== sessionId) {
26
+ continue;
27
+ }
28
+ return result.data;
29
+ }
30
+ catch {
31
+ continue;
32
+ }
33
+ }
34
+ return null;
35
+ }
36
+ export function readTeamStagedStateSync(directory, sessionId) {
37
+ const stateDir = join(directory, ".omc", "state");
38
+ const statePaths = sessionId
39
+ ? [
40
+ join(stateDir, "sessions", sessionId, "team-state.json"),
41
+ join(stateDir, "team-state.json"),
42
+ ]
43
+ : [join(stateDir, "team-state.json")];
44
+ for (const statePath of statePaths) {
45
+ if (!existsSync(statePath)) {
46
+ continue;
47
+ }
48
+ const content = readFileSync(statePath, "utf-8");
49
+ const result = safeJsonParse(content, statePath);
50
+ if (!result.success || typeof result.data !== "object" || result.data === null) {
51
+ continue;
52
+ }
53
+ const stateSessionId = result.data.session_id || result.data.sessionId;
54
+ if (sessionId && stateSessionId && stateSessionId !== sessionId) {
55
+ continue;
56
+ }
57
+ return result.data;
58
+ }
59
+ return null;
60
+ }
61
+ export function getTeamStage(state) {
62
+ return state.stage || state.current_stage || state.currentStage || "team-exec";
63
+ }
64
+ export function isTeamStateTerminal(state) {
65
+ if (state.terminal === true || state.cancelled === true || state.canceled === true || state.completed === true) {
66
+ return true;
67
+ }
68
+ const status = String(state.status || "").toLowerCase();
69
+ const stage = String(getTeamStage(state)).toLowerCase();
70
+ return TEAM_TERMINAL_VALUES.has(status) || TEAM_TERMINAL_VALUES.has(stage);
71
+ }
72
+ export function getTeamStagePrompt(stage) {
73
+ switch (stage) {
74
+ case "team-plan":
75
+ return "Continue planning and decomposition, then move into execution once the task graph is ready.";
76
+ case "team-prd":
77
+ return "Continue clarifying scope and acceptance criteria, then proceed to execution once criteria are explicit.";
78
+ case "team-exec":
79
+ return "Continue execution: monitor teammates, unblock dependencies, and drive tasks to terminal status for this pass.";
80
+ case "team-verify":
81
+ return "Continue verification: validate outputs, run required checks, and decide pass or fix-loop entry.";
82
+ case "team-fix":
83
+ return "Continue fix loop work, then return to execution/verification until no required follow-up remains.";
84
+ default:
85
+ return "Continue from the current Team stage and preserve staged workflow semantics.";
86
+ }
87
+ }
88
+ //# sourceMappingURL=team-state-reader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team-state-reader.js","sourceRoot":"","sources":["../../src/hooks/team-state-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ;IAC1D,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM;CAC1C,CAAC,CAAC;AAqBH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,SAAiB,EACjB,SAAkB;IAElB,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,SAAS;QAC1B,CAAC,CAAC;YACE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,CAAC;YACxD,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC;SAClC;QACH,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAExC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAA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ACvG,KAAK,UAAU;YACb,OAAO,0GAA0G,CAAC;QACpH,KAAK,WAAW;YACd,OAAO,gHAAgH,CAAC;QAC1H,KAAK,aAAa;YAChB,OAAO,kGAAkG,CAAC;QAC5G,KAAK,UAAU;YACb,OAAO,oGAAoG,CAAC;QAC9G;YACE,OAAO,8EAA8E,CAAC;IAC1F,CAAC;AACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function requiredKeysForHook(hookType: string): string[];
2
+ export declare function validateHookInput<T>(input: unknown, requiredFields: string[], hookType?: string): input is T;
3
+ export declare function getSkipHooks(): string[];
4
+ export declare function resetSkipHooksCache(): void;
5
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/hooks/validation.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAyB9D;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,KAAK,EAAE,OAAO,EACd,cAAc,EAAE,MAAM,EAAE,EACxB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,IAAI,CAAC,CAaZ;AAID,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAKvC;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C"}
@@ -0,0 +1,48 @@
1
+ export function requiredKeysForHook(hookType) {
2
+ switch (hookType) {
3
+ case "session-end":
4
+ case "subagent-start":
5
+ case "subagent-stop":
6
+ case "pre-compact":
7
+ case "setup-init":
8
+ case "setup-maintenance":
9
+ case "ralph":
10
+ case "persistent-mode":
11
+ case "session-start":
12
+ return ["sessionId", "directory"];
13
+ case "permission-request":
14
+ return ["sessionId", "directory", "toolName"];
15
+ case "pre-tool-use":
16
+ case "post-tool-use":
17
+ return ["directory", "toolName"];
18
+ case "autopilot":
19
+ return ["directory"];
20
+ case "keyword-detector":
21
+ case "stop-continuation":
22
+ return [];
23
+ default:
24
+ return [];
25
+ }
26
+ }
27
+ export function validateHookInput(input, requiredFields, hookType) {
28
+ if (typeof input !== "object" || input === null)
29
+ return false;
30
+ const obj = input;
31
+ const missing = requiredFields.filter((field) => !(field in obj) || obj[field] === undefined);
32
+ if (missing.length > 0) {
33
+ console.error(`[hook-bridge] validateHookInput failed for "${hookType ?? "unknown"}": missing keys: ${missing.join(", ")}`);
34
+ return false;
35
+ }
36
+ return true;
37
+ }
38
+ let _cachedSkipHooks = null;
39
+ export function getSkipHooks() {
40
+ if (_cachedSkipHooks === null) {
41
+ _cachedSkipHooks = process.env.OMC_SKIP_HOOKS?.split(",").map((s) => s.trim()).filter(Boolean) ?? [];
42
+ }
43
+ return _cachedSkipHooks;
44
+ }
45
+ export function resetSkipHooksCache() {
46
+ _cachedSkipHooks = null;
47
+ }
48
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/hooks/validation.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,mBAAmB,CAAC,QAAgB;IAClD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,aAAa,CAAC;QACnB,KAAK,gBAAgB,CAAC;QACtB,KAAK,eAAe,CAAC;QACrB,KAAK,aAAa,CAAC;QACnB,KAAK,YAAY,CAAC;QAClB,KAAK,mBAAmB,CAAC;QACzB,KAAK,OAAO,CAAC;QACb,KAAK,iBAAiB,CAAC;QACvB,KAAK,eAAe;YAClB,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACpC,KAAK,oBAAoB;YACvB,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAChD,KAAK,cAAc,CAAC;QACpB,KAAK,eAAe;YAClB,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACnC,KAAK,WAAW;YACd,OAAO,CAAC,WAAW,CAAC,CAAC;QACvB,KAAK,kBAAkB,CAAC;QACxB,KAAK,mBAAmB;YACtB,OAAO,EAAE,CAAC;QACZ;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAc,EACd,cAAwB,EACxB,QAAiB;IAEjB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CACnC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,SAAS,CACvD,CAAC;IACF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,KAAK,CACX,+CAA+C,QAAQ,IAAI,SAAS,oBAAoB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7G,CAAC;QACF,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,IAAI,gBAAgB,GAAoB,IAAI,CAAC;AAE7C,MAAM,UAAU,YAAY;IAC1B,IAAI,gBAAgB,KAAK,IAAI,EAAE,CAAC;QAC9B,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACvG,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -99,7 +99,7 @@ export interface SisyphusSession {
99
99
  * prompt: session.processPrompt("ultrawork refactor the authentication module"),
100
100
  * ...session.queryOptions
101
101
  * })) {
102
- * console.log(message);
102
+ * logger.info(message);
103
103
  * }
104
104
  * ```
105
105
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAA0C,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAO/E,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChG,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAEjB,UAAU,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,YAAY,EAEZ,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAC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AAqB,CAAC;IACvC,uEAAuE;IACvE,qBAAqB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,qBAAqB,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAyHhF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,MAAM,CAG3E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE;IAC3C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,MAAM,CAYT"}
package/dist/index.js CHANGED
@@ -20,6 +20,8 @@ import { codexMcpServer } from './mcp/codex-server.js';
20
20
  import { geminiMcpServer } from './mcp/gemini-server.js';
21
21
  import { createMagicKeywordProcessor, detectMagicKeywords } from './features/magic-keywords.js';
22
22
  import { continuationSystemPromptAddition } from './features/continuation-enforcement.js';
23
+ import { createLogger } from './lib/unified-logger.js';
24
+ const logger = createLogger('src:index');
23
25
  import { createBackgroundTaskManager, shouldRunInBackground as shouldRunInBackgroundFn } from './features/background-tasks.js';
24
26
  export { loadConfig, getAgentDefinitions, omcSystemPrompt };
25
27
  export { getDefaultMcpServers, toSdkMcpFormat } from './mcp/servers.js';
@@ -67,7 +69,7 @@ export { install, isInstalled, getInstallInfo, isClaudeInstalled, CLAUDE_CONFIG_
67
69
  * prompt: session.processPrompt("ultrawork refactor the authentication module"),
68
70
  * ...session.queryOptions
69
71
  * })) {
70
- * console.log(message);
72
+ * logger.info(message);
71
73
  * }
72
74
  * ```
73
75
  */
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,gB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;iBAC5B;gBACD,YAAY;gBACZ,cAAc,EAAE,aAAa;aAC9B;SACF;QACD,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;QACrF,eAAe,EAAE,qBAAqB;QACtC,qBAAqB,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,uBAAuB,CACjE,OAAO,EACP,qBAAqB,CAAC,eAAe,EAAE,EACvC,qBAAqB,CAAC,WAAW,EAAE,CACpC;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,MAAqB;IACjE,MAAM,SAAS,GAAG,2BAA2B,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACrE,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAGlC;IACC,IAAI,MAAM,GAAG,eAAe,CAAC;IAE7B,IAAI,OAAO,EAAE,mBAAmB,KAAK,KAAK,EAAE,CAAC;QAC3C,MAAM,IAAI,gCAAgC,CAAC;IAC7C,CAAC;IAED,IAAI,OAAO,EAAE,cAAc,EAAE,CAAC;QAC5B,MAAM,IAAI,OAAO,OAAO,CAAC,cAAc,EAAE,CAAC;IAC5C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare function createLogger(context: string): {
2
+ debug: (...args: unknown[]) => false | void;
3
+ info: (...args: unknown[]) => false | void;
4
+ warn: (...args: unknown[]) => false | void;
5
+ error: (...args: unknown[]) => false | void;
6
+ security: (...args: unknown[]) => false | void;
7
+ };
8
+ export declare const logger: {
9
+ debug: (...args: unknown[]) => false | void;
10
+ info: (...args: unknown[]) => false | void;
11
+ warn: (...args: unknown[]) => false | void;
12
+ error: (...args: unknown[]) => false | void;
13
+ security: (...args: unknown[]) => false | void;
14
+ };
15
+ //# sourceMappingURL=unified-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unified-logger.d.ts","sourceRoot":"","sources":["../../src/lib/unified-logger.ts"],"names":[],"mappings":"AAkBA,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM;qBAEvB,OAAO,EAAE;oBACV,OAAO,EAAE;oBACT,OAAO,EAAE;qBACR,OAAO,EAAE;wBACN,OAAO,EAAE;EAEhC;AAED,eAAO,MAAM,MAAM;qBARE,OAAO,EAAE;oBACV,OAAO,EAAE;oBACT,OAAO,EAAE;qBACR,OAAO,EAAE;wBACN,OAAO,EAAE;CAIe,CAAC"}
@@ -0,0 +1,23 @@
1
+ const levels = { debug: 0, info: 1, warn: 2, error: 3 };
2
+ function getCurrentLevel() {
3
+ return process.env.OMC_LOG_LEVEL?.toLowerCase() || 'info';
4
+ }
5
+ function shouldLog(level) {
6
+ return levels[level] >= levels[getCurrentLevel()];
7
+ }
8
+ function format(level, context, ...args) {
9
+ const timestamp = new Date().toISOString();
10
+ const prefix = `[${timestamp}] [${level.toUpperCase()}] [${context}]`;
11
+ return `${prefix} ${args.map(a => typeof a === 'object' ? JSON.stringify(a) : String(a)).join(' ')}`;
12
+ }
13
+ export function createLogger(context) {
14
+ return {
15
+ debug: (...args) => shouldLog('debug') && console.debug(format('debug', context, ...args)),
16
+ info: (...args) => shouldLog('info') && console.log(format('info', context, ...args)),
17
+ warn: (...args) => shouldLog('warn') && console.warn(format('warn', context, ...args)),
18
+ error: (...args) => shouldLog('error') && console.error(format('error', context, ...args)),
19
+ security: (...args) => shouldLog('warn') && console.warn(format('warn', context, '[SECURITY]', ...args)),
20
+ };
21
+ }
22
+ export const logger = createLogger('ultrapower');
23
+ //# sourceMappingURL=unified-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unified-logger.js","sourceRoot":"","sources":["../../src/lib/unified-logger.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAA6B,EAAE,KAAK,E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,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;QACjG,KAAK,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;QACrG,QAAQ,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;KACpH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC"}
@@ -25,7 +25,7 @@ export declare const memoryTools: ({
25
25
  };
26
26
  handler: (args: {
27
27
  workingDirectory?: string | undefined;
28
- section?: "all" | "build" | "techStack" | "conventions" | "structure" | "notes" | "directives" | undefined;
28
+ section?: "build" | "all" | "techStack" | "conventions" | "structure" | "notes" | "directives" | undefined;
29
29
  }) => Promise<{
30
30
  content: Array<{
31
31
  type: "text";
@@ -142,9 +142,9 @@ export declare const memoryTools: ({
142
142
  };
143
143
  handler: (args: {
144
144
  directive: string;
145
- priority?: "high" | "normal" | undefined;
146
145
  context?: string | undefined;
147
146
  workingDirectory?: string | undefined;
147
+ priority?: "high" | "normal" | undefined;
148
148
  }) => Promise<{
149
149
  content: Array<{
150
150
  type: "text";
@@ -31,7 +31,7 @@ export declare const stateTools: ({
31
31
  required: string[];
32
32
  };
33
33
  handler: (args: {
34
- mode: "autopilot" | "ultrapilot" | "swarm" | "pipeline" | "team" | "ralph" | "ultrawork" | "ultraqa" | "ralplan";
34
+ mode: "ultrawork" | "swarm" | "autopilot" | "ultrapilot" | "pipeline" | "team" | "ralph" | "ultraqa" | "ralplan";
35
35
  workingDirectory?: string | undefined;
36
36
  session_id?: string | undefined;
37
37
  }) => Promise<{
@@ -104,11 +104,12 @@ export declare const stateTools: ({
104
104
  required: string[];
105
105
  };
106
106
  handler: (args: {
107
- mode: "autopilot" | "ultrapilot" | "swarm" | "pipeline" | "team" | "ralph" | "ultrawork" | "ultraqa" | "ralplan";
107
+ mode: "ultrawork" | "swarm" | "autopilot" | "ultrapilot" | "pipeline" | "team" | "ralph" | "ultraqa" | "ralplan";
108
+ error?: string | undefined;
109
+ active?: boolean | undefined;
108
110
  state?: Record<string, unknown> | undefined;
109
111
  workingDirectory?: string | undefined;
110
112
  session_id?: string | undefined;
111
- active?: boolean | undefined;
112
113
  iteration?: number | undefined;
113
114
  max_iterations?: number | undefined;
114
115
  current_phase?: string | undefined;
@@ -116,7 +117,6 @@ export declare const stateTools: ({
116
117
  plan_path?: string | undefined;
117
118
  started_at?: string | undefined;
118
119
  completed_at?: string | undefined;
119
- error?: string | undefined;
120
120
  }) => Promise<{
121
121
  content: Array<{
122
122
  type: "text";
@@ -195,7 +195,7 @@ export declare const stateTools: ({
195
195
  required?: undefined;
196
196
  };
197
197
  handler: (args: {
198
- mode?: "autopilot" | "ultrapilot" | "swarm" | "pipeline" | "team" | "ralph" | "ultrawork" | "ultraqa" | "ralplan" | undefined;
198
+ mode?: "ultrawork" | "swarm" | "autopilot" | "ultrapilot" | "pipeline" | "team" | "ralph" | "ultraqa" | "ralplan" | undefined;
199
199
  workingDirectory?: string | undefined;
200
200
  session_id?: string | undefined;
201
201
  }) => Promise<{
@@ -24,9 +24,9 @@ export declare const traceTools: ({
24
24
  };
25
25
  };
26
26
  handler: (args: {
27
- filter?: "tools" | "all" | "skills" | "agents" | "hooks" | "keywords" | "modes" | undefined;
28
- workingDirectory?: string | undefined;
27
+ filter?: "agents" | "hooks" | "all" | "skills" | "tools" | "keywords" | "modes" | undefined;
29
28
  sessionId?: string | undefined;
29
+ workingDirectory?: string | undefined;
30
30
  last?: number | undefined;
31
31
  }) => Promise<{
32
32
  content: Array<{
@@ -54,8 +54,8 @@ export declare const traceTools: ({
54
54
  };
55
55
  };
56
56
  handler: (args: {
57
- workingDirectory?: string | undefined;
58
57
  sessionId?: string | undefined;
58
+ workingDirectory?: string | undefined;
59
59
  }) => Promise<{
60
60
  content: Array<{
61
61
  type: "text";
@@ -1 +1 @@
1
- {"version":3,"file":"codex-server.d.ts","sourceRoot":"","sources":["../../src/mcp/codex-server.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AAwFH;;;;GAIG;AACH,eAAO,MAAM,cAAc,yEAIzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,UAA6E,CAAC"}
1
+ {"version":3,"file":"codex-server.d.ts","sourceRoot":"","sources":["../../src/mcp/codex-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA2EH;;;;GAIG;AACH,eAAO,MAAM,cAAc,yEAIzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,UAA6E,CAAC"}
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any -- MCP tool() API requires `as any` for schema/args typing */
2
1
  /**
3
2
  * Codex MCP Server - In-process MCP server for OpenAI Codex CLI integration
4
3
  *
@@ -9,49 +8,45 @@
9
8
  * external-process .mcp.json registration with proper stdio transport.
10
9
  */
11
10
  import { createSdkMcpServer, tool } from "@anthropic-ai/claude-agent-sdk";
11
+ import { z } from 'zod';
12
12
  import { handleAskCodex, CODEX_DEFAULT_MODEL, CODEX_RECOMMENDED_ROLES } from './codex-core.js';
13
13
  import { handleWaitForJob, handleCheckJobStatus, handleKillJob, handleListJobs } from './job-management.js';
14
14
  // Define the ask_codex tool using the SDK tool() helper
15
15
  const askCodexTool = tool("ask_codex", `Send a prompt to OpenAI Codex CLI for analytical/planning tasks. Codex excels at architecture review, planning validation, critical analysis, and code/security review validation. Requires agent_role to specify the perspective. Recommended roles: ${CODEX_RECOMMENDED_ROLES.join(', ')}. Any valid OMC agent role is accepted. Requires Codex CLI (npm install -g @openai/codex).`, {
16
- agent_role: { type: "string", description: `Required. Agent perspective for Codex. Recommended: ${CODEX_RECOMMENDED_ROLES.join(', ')}. Any valid OMC agent role is accepted.` },
17
- prompt: { type: "string", description: "Inline prompt text. Alternative to prompt_file -- the tool auto-persists to a file for audit trail. Use for simpler invocations where file management is unnecessary. If both prompt and prompt_file are provided, prompt_file takes precedence." },
18
- prompt_file: { type: "string", description: "Path to file containing the prompt. Required unless 'prompt' is provided inline. A defined (non-undefined) `prompt_file` value selects file mode; `prompt_file` must be a non-empty string when used. Passing null or non-string values triggers file-mode validation (not inline fallback)." },
19
- output_file: { type: "string", description: "Required for file-based mode (prompt_file). Auto-generated in inline mode (prompt). Response content is returned inline only when using prompt parameter." },
20
- context_files: { type: "array", items: { type: "string" }, description: "File paths to include as context (contents will be prepended to prompt)" },
21
- model: { type: "string", description: `Codex model to use (default: ${CODEX_DEFAULT_MODEL}). Set OMC_CODEX_DEFAULT_MODEL env var to change default.` },
22
- reasoning_effort: { type: "string", description: "Codex reasoning effort level: 'minimal', 'low', 'medium' (Codex CLI default), 'high', or 'xhigh' (model-dependent). Maps to Codex CLI -c model_reasoning_effort. If omitted, uses Codex CLI default from ~/.codex/config.toml." },
23
- background: { type: "boolean", description: "Run in background (non-blocking). Returns immediately with job metadata and file paths. Check response file for completion. Not available with inline prompt." },
24
- working_directory: { type: "string", description: "Working directory for path resolution and CLI execution. Defaults to process.cwd()." },
16
+ agent_role: z.string().describe(`Required. Agent perspective for Codex. Recommended: ${CODEX_RECOMMENDED_ROLES.join(', ')}. Any valid OMC agent role is accepted.`),
17
+ prompt: z.string().optional().describe("Inline prompt text. Alternative to prompt_file -- the tool auto-persists to a file for audit trail. Use for simpler invocations where file management is unnecessary. If both prompt and prompt_file are provided, prompt_file takes precedence."),
18
+ prompt_file: z.string().optional().describe("Path to file containing the prompt. Required unless 'prompt' is provided inline. A defined (non-undefined) `prompt_file` value selects file mode; `prompt_file` must be a non-empty string when used. Passing null or non-string values triggers file-mode validation (not inline fallback)."),
19
+ output_file: z.string().optional().describe("Required for file-based mode (prompt_file). Auto-generated in inline mode (prompt). Response content is returned inline only when using prompt parameter."),
20
+ context_files: z.array(z.string()).optional().describe("File paths to include as context (contents will be prepended to prompt)"),
21
+ model: z.string().optional().describe(`Codex model to use (default: ${CODEX_DEFAULT_MODEL}). Set OMC_CODEX_DEFAULT_MODEL env var to change default.`),
22
+ reasoning_effort: z.string().optional().describe("Codex reasoning effort level: 'minimal', 'low', 'medium' (Codex CLI default), 'high', or 'xhigh' (model-dependent). Maps to Codex CLI -c model_reasoning_effort. If omitted, uses Codex CLI default from ~/.codex/config.toml."),
23
+ background: z.boolean().optional().describe("Run in background (non-blocking). Returns immediately with job metadata and file paths. Check response file for completion. Not available with inline prompt."),
24
+ working_directory: z.string().optional().describe("Working directory for path resolution and CLI execution. Defaults to process.cwd()."),
25
25
  }, async (args) => {
26
- const { prompt, prompt_file, output_file, agent_role, model, reasoning_effort, context_files, background, working_directory } = args;
27
- return handleAskCodex({ prompt, prompt_file, output_file, agent_role, model, reasoning_effort, context_files, background, working_directory });
26
+ return handleAskCodex(args);
28
27
  });
29
28
  const waitForJobTool = tool("wait_for_job", "Block (poll) until a background job reaches a terminal state (completed, failed, or timeout). Uses exponential backoff. Returns the response preview on success.", {
30
- job_id: { type: "string", description: "The job ID returned when the background job was dispatched." },
31
- timeout_ms: { type: "number", description: "Maximum time to wait in milliseconds (default: 3600000, max: 3600000)." },
29
+ job_id: z.string().describe("The job ID returned when the background job was dispatched."),
30
+ timeout_ms: z.number().optional().describe("Maximum time to wait in milliseconds (default: 3600000, max: 3600000)."),
32
31
  }, async (args) => {
33
- const { job_id, timeout_ms } = args;
34
- return handleWaitForJob('codex', job_id, timeout_ms);
32
+ return handleWaitForJob('codex', args.job_id, args.timeout_ms);
35
33
  });
36
34
  const checkJobStatusTool = tool("check_job_status", "Non-blocking status check for a background job. Returns current status, metadata, and error information if available.", {
37
- job_id: { type: "string", description: "The job ID returned when the background job was dispatched." },
35
+ job_id: z.string().describe("The job ID returned when the background job was dispatched."),
38
36
  }, async (args) => {
39
- const { job_id } = args;
40
- return handleCheckJobStatus('codex', job_id);
37
+ return handleCheckJobStatus('codex', args.job_id);
41
38
  });
42
39
  const killJobTool = tool("kill_job", "Send a signal to a running background job. Marks the job as failed. Only works on jobs in spawned or running state.", {
43
- job_id: { type: "string", description: "The job ID of the running job to kill." },
44
- signal: { type: "string", description: "The signal to send (default: SIGTERM)." },
40
+ job_id: z.string().describe("The job ID of the running job to kill."),
41
+ signal: z.enum(['SIGTERM', 'SIGINT']).optional().describe("The signal to send (default: SIGTERM). Only SIGTERM and SIGINT are allowed."),
45
42
  }, async (args) => {
46
- const { job_id, signal } = args;
47
- return handleKillJob('codex', job_id, signal || undefined);
43
+ return handleKillJob('codex', args.job_id, args.signal || undefined);
48
44
  });
49
45
  const listJobsTool = tool("list_jobs", "List background jobs for this provider. Filter by status and limit results. Results sorted newest first.", {
50
- status_filter: { type: "string", description: "Filter jobs by status (default: active)." },
51
- limit: { type: "number", description: "Maximum number of jobs to return (default: 50)." },
46
+ status_filter: z.enum(['active', 'completed', 'failed', 'all']).optional().describe("Filter jobs by status (default: active)."),
47
+ limit: z.number().optional().describe("Maximum number of jobs to return (default: 50)."),
52
48
  }, async (args) => {
53
- const { status_filter, limit } = args;
54
- return handleListJobs('codex', status_filter || undefined, limit);
49
+ return handleListJobs('codex', args.status_filter, args.limit);
55
50
  });
56
51
  /**
57
52
  * In-process MCP server exposing Codex CLI integration
@@ -1 +1 @@
1
- {"version":3,"file":"codex-server.js","sourceRoot":"","sources":["../../src/mcp/codex-server.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH;;;;;;;;GAQG;AAEH,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,iB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Q,CAAC,0CAA0C,CAAC;IAC/H,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;CACzF,EACD,KAAK,EAAE,IAAkB,EAAE,EAAE;IAC3B,OAAO,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;AACjE,CAAC,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC;IAC/C,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,CAAC;CACrF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC"}
@@ -9,16 +9,16 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
9
9
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
10
  autoApprove: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- disabled: boolean;
13
12
  command: string;
13
+ disabled: boolean;
14
14
  autoApprove: string[];
15
15
  env?: Record<string, string> | undefined;
16
16
  args?: string[] | undefined;
17
17
  }, {
18
18
  command: string;
19
- disabled?: boolean | undefined;
20
19
  env?: Record<string, string> | undefined;
21
20
  args?: string[] | undefined;
21
+ disabled?: boolean | undefined;
22
22
  autoApprove?: string[] | undefined;
23
23
  }>;
24
24
  export type MCPServerConfig = z.infer<typeof MCPServerConfigSchema>;
@@ -30,22 +30,22 @@ export declare const MCPConfigSchema: z.ZodObject<{
30
30
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
31
31
  autoApprove: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- disabled: boolean;
34
33
  command: string;
34
+ disabled: boolean;
35
35
  autoApprove: string[];
36
36
  env?: Record<string, string> | undefined;
37
37
  args?: string[] | undefined;
38
38
  }, {
39
39
  command: string;
40
- disabled?: boolean | undefined;
41
40
  env?: Record<string, string> | undefined;
42
41
  args?: string[] | undefined;
42
+ disabled?: boolean | undefined;
43
43
  autoApprove?: string[] | undefined;
44
44
  }>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  mcpServers: Record<string, {
47
- disabled: boolean;
48
47
  command: string;
48
+ disabled: boolean;
49
49
  autoApprove: string[];
50
50
  env?: Record<string, string> | undefined;
51
51
  args?: string[] | undefined;
@@ -53,9 +53,9 @@ export declare const MCPConfigSchema: z.ZodObject<{
53
53
  }, {
54
54
  mcpServers: Record<string, {
55
55
  command: string;
56
- disabled?: boolean | undefined;
57
56
  env?: Record<string, string> | undefined;
58
57
  args?: string[] | undefined;
58
+ disabled?: boolean | undefined;
59
59
  autoApprove?: string[] | undefined;
60
60
  }>;
61
61
  }>;
@@ -9,16 +9,16 @@ export declare const MCPServerConfigSchema: z.ZodObject<{
9
9
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
10
  autoApprove: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- disabled: boolean;
13
12
  command: string;
13
+ disabled: boolean;
14
14
  autoApprove: string[];
15
15
  env?: Record<string, string> | undefined;
16
16
  args?: string[] | undefined;
17
17
  }, {
18
18
  command: string;
19
- disabled?: boolean | undefined;
20
19
  env?: Record<string, string> | undefined;
21
20
  args?: string[] | undefined;
21
+ disabled?: boolean | undefined;
22
22
  autoApprove?: string[] | undefined;
23
23
  }>;
24
24
  export type MCPServerConfig = z.infer<typeof MCPServerConfigSchema>;
@@ -30,22 +30,22 @@ export declare const MCPConfigSchema: z.ZodObject<{
30
30
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
31
31
  autoApprove: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- disabled: boolean;
34
33
  command: string;
34
+ disabled: boolean;
35
35
  autoApprove: string[];
36
36
  env?: Record<string, string> | undefined;
37
37
  args?: string[] | undefined;
38
38
  }, {
39
39
  command: string;
40
- disabled?: boolean | undefined;
41
40
  env?: Record<string, string> | undefined;
42
41
  args?: string[] | undefined;
42
+ disabled?: boolean | undefined;
43
43
  autoApprove?: string[] | undefined;
44
44
  }>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  mcpServers: Record<string, {
47
- disabled: boolean;
48
47
  command: string;
48
+ disabled: boolean;
49
49
  autoApprove: string[];
50
50
  env?: Record<string, string> | undefined;
51
51
  args?: string[] | undefined;
@@ -53,9 +53,9 @@ export declare const MCPConfigSchema: z.ZodObject<{
53
53
  }, {
54
54
  mcpServers: Record<string, {
55
55
  command: string;
56
- disabled?: boolean | undefined;
57
56
  env?: Record<string, string> | undefined;
58
57
  args?: string[] | undefined;
58
+ disabled?: boolean | undefined;
59
59
  autoApprove?: string[] | undefined;
60
60
  }>;
61
61
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"gemini-server.d.ts","sourceRoot":"","sources":["../../src/mcp/gemini-server.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AA2FH;;;;GAIG;AACH,eAAO,MAAM,eAAe,yEAI1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,UAA8E,CAAC"}
1
+ {"version":3,"file":"gemini-server.d.ts","sourceRoot":"","sources":["../../src/mcp/gemini-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+EH;;;;GAIG;AACH,eAAO,MAAM,eAAe,yEAI1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,UAA8E,CAAC"}