@liangjie559567/ultrapower 5.5.34 → 5.5.39

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 (2745) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +9 -3
  3. package/LICENSE +21 -21
  4. package/bridge/gyoshu_bridge.py +846 -846
  5. package/dist/agents/agent-wrapper.d.ts +22 -0
  6. package/dist/agents/agent-wrapper.d.ts.map +1 -0
  7. package/dist/agents/agent-wrapper.js +54 -0
  8. package/dist/agents/agent-wrapper.js.map +1 -0
  9. package/dist/agents/analyst.d.ts +11 -0
  10. package/dist/agents/analyst.d.ts.map +1 -0
  11. package/dist/agents/analyst.js +40 -0
  12. package/dist/agents/analyst.js.map +1 -0
  13. package/dist/agents/architect.d.ts +12 -0
  14. package/dist/agents/architect.d.ts.map +1 -0
  15. package/dist/agents/architect.js +44 -0
  16. package/dist/agents/architect.js.map +1 -0
  17. package/dist/agents/critic.d.ts +11 -0
  18. package/dist/agents/critic.d.ts.map +1 -0
  19. package/dist/agents/critic.js +39 -0
  20. package/dist/agents/critic.js.map +1 -0
  21. package/dist/agents/deep-executor.d.ts +15 -0
  22. package/dist/agents/deep-executor.d.ts.map +1 -0
  23. package/dist/agents/deep-executor.js +45 -0
  24. package/dist/agents/deep-executor.js.map +1 -0
  25. package/dist/agents/delegation-validator.d.ts +31 -0
  26. package/dist/agents/delegation-validator.d.ts.map +1 -0
  27. package/dist/agents/delegation-validator.js +75 -0
  28. package/dist/agents/delegation-validator.js.map +1 -0
  29. package/dist/agents/designer.d.ts +11 -0
  30. package/dist/agents/designer.d.ts.map +1 -0
  31. package/dist/agents/designer.js +44 -0
  32. package/dist/agents/designer.js.map +1 -0
  33. package/dist/agents/document-specialist.d.ts +12 -0
  34. package/dist/agents/document-specialist.d.ts.map +1 -0
  35. package/dist/agents/document-specialist.js +40 -0
  36. package/dist/agents/document-specialist.js.map +1 -0
  37. package/dist/agents/executor.d.ts +13 -0
  38. package/dist/agents/executor.d.ts.map +1 -0
  39. package/dist/agents/executor.js +40 -0
  40. package/dist/agents/executor.js.map +1 -0
  41. package/dist/agents/explore.d.ts +12 -0
  42. package/dist/agents/explore.d.ts.map +1 -0
  43. package/dist/agents/explore.js +41 -0
  44. package/dist/agents/explore.js.map +1 -0
  45. package/dist/agents/planner.d.ts +11 -0
  46. package/dist/agents/planner.d.ts.map +1 -0
  47. package/dist/agents/planner.js +39 -0
  48. package/dist/agents/planner.js.map +1 -0
  49. package/dist/agents/preamble.d.ts +38 -0
  50. package/dist/agents/preamble.d.ts.map +1 -0
  51. package/dist/agents/preamble.js +122 -0
  52. package/dist/agents/preamble.js.map +1 -0
  53. package/dist/agents/prompt-generator.d.ts +96 -0
  54. package/dist/agents/prompt-generator.d.ts.map +1 -0
  55. package/dist/agents/prompt-generator.js +142 -0
  56. package/dist/agents/prompt-generator.js.map +1 -0
  57. package/dist/agents/prompt-sections/index.d.ts +44 -0
  58. package/dist/agents/prompt-sections/index.d.ts.map +1 -0
  59. package/dist/agents/prompt-sections/index.js +196 -0
  60. package/dist/agents/prompt-sections/index.js.map +1 -0
  61. package/dist/agents/qa-tester.d.ts +16 -0
  62. package/dist/agents/qa-tester.d.ts.map +1 -0
  63. package/dist/agents/qa-tester.js +45 -0
  64. package/dist/agents/qa-tester.js.map +1 -0
  65. package/dist/agents/scientist.d.ts +16 -0
  66. package/dist/agents/scientist.d.ts.map +1 -0
  67. package/dist/agents/scientist.js +53 -0
  68. package/dist/agents/scientist.js.map +1 -0
  69. package/dist/agents/timeout-config.d.ts +19 -0
  70. package/dist/agents/timeout-config.d.ts.map +1 -0
  71. package/dist/agents/timeout-config.js +57 -0
  72. package/dist/agents/timeout-config.js.map +1 -0
  73. package/dist/agents/timeout-manager.d.ts +31 -0
  74. package/dist/agents/timeout-manager.d.ts.map +1 -0
  75. package/dist/agents/timeout-manager.js +53 -0
  76. package/dist/agents/timeout-manager.js.map +1 -0
  77. package/dist/agents/types.d.ts +127 -0
  78. package/dist/agents/types.d.ts.map +1 -0
  79. package/dist/agents/types.js +38 -0
  80. package/dist/agents/types.js.map +1 -0
  81. package/dist/agents/utils.d.ts +80 -0
  82. package/dist/agents/utils.d.ts.map +1 -0
  83. package/dist/agents/utils.js +352 -0
  84. package/dist/agents/utils.js.map +1 -0
  85. package/dist/agents/vision.d.ts +11 -0
  86. package/dist/agents/vision.d.ts.map +1 -0
  87. package/dist/agents/vision.js +40 -0
  88. package/dist/agents/vision.js.map +1 -0
  89. package/dist/agents/writer.d.ts +11 -0
  90. package/dist/agents/writer.d.ts.map +1 -0
  91. package/dist/agents/writer.js +40 -0
  92. package/dist/agents/writer.js.map +1 -0
  93. package/dist/analytics/analytics-summary.d.ts +47 -0
  94. package/dist/analytics/analytics-summary.d.ts.map +1 -0
  95. package/dist/analytics/analytics-summary.js +177 -0
  96. package/dist/analytics/analytics-summary.js.map +1 -0
  97. package/dist/analytics/backfill-dedup.d.ts +49 -0
  98. package/dist/analytics/backfill-dedup.d.ts.map +1 -0
  99. package/dist/analytics/backfill-dedup.js +115 -0
  100. package/dist/analytics/backfill-dedup.js.map +1 -0
  101. package/dist/analytics/backfill-engine.js +172 -0
  102. package/dist/analytics/backfill-engine.js.map +1 -0
  103. package/dist/analytics/cost-estimator.d.ts +29 -0
  104. package/dist/analytics/cost-estimator.d.ts.map +1 -0
  105. package/dist/analytics/cost-estimator.js +135 -0
  106. package/dist/analytics/cost-estimator.js.map +1 -0
  107. package/dist/analytics/export.js +93 -0
  108. package/dist/analytics/export.js.map +1 -0
  109. package/dist/analytics/index.js +30 -0
  110. package/dist/analytics/index.js.map +1 -0
  111. package/dist/analytics/metrics-collector.d.ts +31 -0
  112. package/dist/analytics/metrics-collector.d.ts.map +1 -0
  113. package/dist/analytics/metrics-collector.js +137 -0
  114. package/dist/analytics/metrics-collector.js.map +1 -0
  115. package/dist/analytics/output-estimator.d.ts +26 -0
  116. package/dist/analytics/output-estimator.d.ts.map +1 -0
  117. package/dist/analytics/output-estimator.js +65 -0
  118. package/dist/analytics/output-estimator.js.map +1 -0
  119. package/dist/analytics/query-engine.js +258 -0
  120. package/dist/analytics/query-engine.js.map +1 -0
  121. package/dist/analytics/session-catalog.d.ts +45 -0
  122. package/dist/analytics/session-catalog.d.ts.map +1 -0
  123. package/dist/analytics/session-catalog.js +153 -0
  124. package/dist/analytics/session-catalog.js.map +1 -0
  125. package/dist/analytics/session-manager.js +396 -0
  126. package/dist/analytics/session-manager.js.map +1 -0
  127. package/dist/analytics/session-types.d.ts +37 -0
  128. package/dist/analytics/session-types.d.ts.map +1 -0
  129. package/dist/analytics/session-types.js +2 -0
  130. package/dist/analytics/session-types.js.map +1 -0
  131. package/dist/analytics/token-extractor.d.ts +31 -0
  132. package/dist/analytics/token-extractor.d.ts.map +1 -0
  133. package/dist/analytics/token-extractor.js +57 -0
  134. package/dist/analytics/token-extractor.js.map +1 -0
  135. package/dist/analytics/token-tracker.js +439 -0
  136. package/dist/analytics/token-tracker.js.map +1 -0
  137. package/dist/analytics/tokscale-adapter.d.ts +71 -0
  138. package/dist/analytics/tokscale-adapter.d.ts.map +1 -0
  139. package/dist/analytics/tokscale-adapter.js +226 -0
  140. package/dist/analytics/tokscale-adapter.js.map +1 -0
  141. package/dist/analytics/transcript-parser.d.ts +42 -0
  142. package/dist/analytics/transcript-parser.d.ts.map +1 -0
  143. package/dist/analytics/transcript-parser.js +90 -0
  144. package/dist/analytics/transcript-parser.js.map +1 -0
  145. package/dist/analytics/transcript-scanner.d.ts +51 -0
  146. package/dist/analytics/transcript-scanner.d.ts.map +1 -0
  147. package/dist/analytics/transcript-scanner.js +286 -0
  148. package/dist/analytics/transcript-scanner.js.map +1 -0
  149. package/dist/analytics/transcript-token-extractor.d.ts +35 -0
  150. package/dist/analytics/transcript-token-extractor.d.ts.map +1 -0
  151. package/dist/analytics/transcript-token-extractor.js +137 -0
  152. package/dist/analytics/transcript-token-extractor.js.map +1 -0
  153. package/dist/analytics/types.d.ts +119 -0
  154. package/dist/analytics/types.d.ts.map +1 -0
  155. package/dist/analytics/types.js +32 -0
  156. package/dist/analytics/types.js.map +1 -0
  157. package/dist/audit/logger.d.ts +35 -0
  158. package/dist/audit/logger.d.ts.map +1 -0
  159. package/dist/audit/logger.js +108 -0
  160. package/dist/audit/logger.js.map +1 -0
  161. package/dist/audit/verify-cli.d.ts +2 -0
  162. package/dist/audit/verify-cli.d.ts.map +1 -0
  163. package/dist/audit/verify-cli.js +10 -0
  164. package/dist/audit/verify-cli.js.map +1 -0
  165. package/dist/cli/analytics.js +106 -0
  166. package/dist/cli/analytics.js.map +1 -0
  167. package/dist/cli/commands/agents.js +31 -0
  168. package/dist/cli/commands/agents.js.map +1 -0
  169. package/dist/cli/commands/backfill.js +144 -0
  170. package/dist/cli/commands/backfill.js.map +1 -0
  171. package/dist/cli/commands/cleanup.js +22 -0
  172. package/dist/cli/commands/cleanup.js.map +1 -0
  173. package/dist/cli/commands/cost.js +53 -0
  174. package/dist/cli/commands/cost.js.map +1 -0
  175. package/dist/cli/commands/doctor-conflicts.d.ts +59 -0
  176. package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -0
  177. package/dist/cli/commands/doctor-conflicts.js +290 -0
  178. package/dist/cli/commands/doctor-conflicts.js.map +1 -0
  179. package/dist/cli/commands/export.js +30 -0
  180. package/dist/cli/commands/export.js.map +1 -0
  181. package/dist/cli/commands/perf.d.ts +3 -0
  182. package/dist/cli/commands/perf.d.ts.map +1 -0
  183. package/dist/cli/commands/perf.js +25 -0
  184. package/dist/cli/commands/perf.js.map +1 -0
  185. package/dist/cli/commands/plugin.d.ts +6 -0
  186. package/dist/cli/commands/plugin.d.ts.map +1 -0
  187. package/dist/cli/commands/plugin.js +100 -0
  188. package/dist/cli/commands/plugin.js.map +1 -0
  189. package/dist/cli/commands/sessions.js +89 -0
  190. package/dist/cli/commands/sessions.js.map +1 -0
  191. package/dist/cli/commands/stats.js +84 -0
  192. package/dist/cli/commands/stats.js.map +1 -0
  193. package/dist/cli/commands/teleport.d.ts +37 -0
  194. package/dist/cli/commands/teleport.d.ts.map +1 -0
  195. package/dist/cli/commands/teleport.js +550 -0
  196. package/dist/cli/commands/teleport.js.map +1 -0
  197. package/dist/cli/commands/wait.d.ts +52 -0
  198. package/dist/cli/commands/wait.d.ts.map +1 -0
  199. package/dist/cli/commands/wait.js +229 -0
  200. package/dist/cli/commands/wait.js.map +1 -0
  201. package/dist/cli/index.js +1503 -0
  202. package/dist/cli/index.js.map +1 -0
  203. package/dist/cli/interop.d.ts +17 -0
  204. package/dist/cli/interop.d.ts.map +1 -0
  205. package/dist/cli/interop.js +114 -0
  206. package/dist/cli/interop.js.map +1 -0
  207. package/dist/cli/launch.d.ts +40 -0
  208. package/dist/cli/launch.d.ts.map +1 -0
  209. package/dist/cli/launch.js +211 -0
  210. package/dist/cli/launch.js.map +1 -0
  211. package/dist/cli/tmux-utils.d.ts +70 -0
  212. package/dist/cli/tmux-utils.d.ts.map +1 -0
  213. package/dist/cli/tmux-utils.js +166 -0
  214. package/dist/cli/tmux-utils.js.map +1 -0
  215. package/dist/cli/utils/formatting.d.ts +22 -0
  216. package/dist/cli/utils/formatting.d.ts.map +1 -0
  217. package/dist/cli/utils/formatting.js +70 -0
  218. package/dist/cli/utils/formatting.js.map +1 -0
  219. package/dist/cli/utils/tokscale-launcher.d.ts +25 -0
  220. package/dist/cli/utils/tokscale-launcher.d.ts.map +1 -0
  221. package/dist/cli/utils/tokscale-launcher.js +70 -0
  222. package/dist/cli/utils/tokscale-launcher.js.map +1 -0
  223. package/dist/commands/index.d.ts +78 -0
  224. package/dist/commands/index.d.ts.map +1 -0
  225. package/dist/commands/index.js +148 -0
  226. package/dist/commands/index.js.map +1 -0
  227. package/dist/compatibility/discovery.js +621 -0
  228. package/dist/compatibility/discovery.js.map +1 -0
  229. package/dist/compatibility/index.js +72 -0
  230. package/dist/compatibility/index.js.map +1 -0
  231. package/dist/compatibility/mcp-bridge.js +525 -0
  232. package/dist/compatibility/mcp-bridge.js.map +1 -0
  233. package/dist/compatibility/permission-adapter.js +369 -0
  234. package/dist/compatibility/permission-adapter.js.map +1 -0
  235. package/dist/compatibility/registry.js +389 -0
  236. package/dist/compatibility/registry.js.map +1 -0
  237. package/dist/compatibility/types.d.ts +249 -0
  238. package/dist/compatibility/types.d.ts.map +1 -0
  239. package/dist/compatibility/types.js +8 -0
  240. package/dist/compatibility/types.js.map +1 -0
  241. package/dist/config/axiom-config.d.ts +52 -0
  242. package/dist/config/axiom-config.d.ts.map +1 -0
  243. package/dist/config/axiom-config.js +48 -0
  244. package/dist/config/axiom-config.js.map +1 -0
  245. package/dist/config/index.d.ts +5 -0
  246. package/dist/config/index.d.ts.map +1 -0
  247. package/dist/config/index.js +5 -0
  248. package/dist/config/index.js.map +1 -0
  249. package/dist/config/loader.d.ts +49 -0
  250. package/dist/config/loader.d.ts.map +1 -0
  251. package/dist/config/loader.js +597 -0
  252. package/dist/config/loader.js.map +1 -0
  253. package/dist/constants/index.d.ts +5 -0
  254. package/dist/constants/index.d.ts.map +1 -0
  255. package/dist/constants/index.js +5 -0
  256. package/dist/constants/index.js.map +1 -0
  257. package/dist/constants/names.d.ts +40 -0
  258. package/dist/constants/names.d.ts.map +1 -0
  259. package/dist/constants/names.js +40 -0
  260. package/dist/constants/names.js.map +1 -0
  261. package/dist/core/hud-config.d.ts +19 -0
  262. package/dist/core/hud-config.d.ts.map +1 -0
  263. package/dist/core/hud-config.js +6 -0
  264. package/dist/core/hud-config.js.map +1 -0
  265. package/dist/core/job-types.d.ts +22 -0
  266. package/dist/core/job-types.d.ts.map +1 -0
  267. package/dist/core/job-types.js +6 -0
  268. package/dist/core/job-types.js.map +1 -0
  269. package/dist/features/auto-update.d.ts +279 -0
  270. package/dist/features/auto-update.d.ts.map +1 -0
  271. package/dist/features/auto-update.js +780 -0
  272. package/dist/features/auto-update.js.map +1 -0
  273. package/dist/features/background-agent/concurrency.d.ts +53 -0
  274. package/dist/features/background-agent/concurrency.d.ts.map +1 -0
  275. package/dist/features/background-agent/concurrency.js +121 -0
  276. package/dist/features/background-agent/concurrency.js.map +1 -0
  277. package/dist/features/background-agent/index.d.ts +12 -0
  278. package/dist/features/background-agent/index.d.ts.map +1 -0
  279. package/dist/features/background-agent/index.js +12 -0
  280. package/dist/features/background-agent/index.js.map +1 -0
  281. package/dist/features/background-agent/manager.d.ts +144 -0
  282. package/dist/features/background-agent/manager.d.ts.map +1 -0
  283. package/dist/features/background-agent/manager.js +494 -0
  284. package/dist/features/background-agent/manager.js.map +1 -0
  285. package/dist/features/background-agent/types.d.ts +128 -0
  286. package/dist/features/background-agent/types.d.ts.map +1 -0
  287. package/dist/features/background-agent/types.js +9 -0
  288. package/dist/features/background-agent/types.js.map +1 -0
  289. package/dist/features/background-tasks.d.ts +99 -0
  290. package/dist/features/background-tasks.d.ts.map +1 -0
  291. package/dist/features/background-tasks.js +265 -0
  292. package/dist/features/background-tasks.js.map +1 -0
  293. package/dist/features/boulder-state/constants.d.ts +20 -0
  294. package/dist/features/boulder-state/constants.d.ts.map +1 -0
  295. package/dist/features/boulder-state/constants.js +21 -0
  296. package/dist/features/boulder-state/constants.js.map +1 -0
  297. package/dist/features/boulder-state/index.js +13 -0
  298. package/dist/features/boulder-state/index.js.map +1 -0
  299. package/dist/features/boulder-state/types.d.ts +48 -0
  300. package/dist/features/boulder-state/types.d.ts.map +1 -0
  301. package/dist/features/boulder-state/types.js +10 -0
  302. package/dist/features/boulder-state/types.js.map +1 -0
  303. package/dist/features/builtin-skills/index.d.ts +10 -0
  304. package/dist/features/builtin-skills/index.d.ts.map +1 -0
  305. package/dist/features/builtin-skills/index.js +10 -0
  306. package/dist/features/builtin-skills/index.js.map +1 -0
  307. package/dist/features/builtin-skills/skills.d.ts +35 -0
  308. package/dist/features/builtin-skills/skills.d.ts.map +1 -0
  309. package/dist/features/builtin-skills/skills.js +154 -0
  310. package/dist/features/builtin-skills/skills.js.map +1 -0
  311. package/dist/features/builtin-skills/types.d.ts +60 -0
  312. package/dist/features/builtin-skills/types.d.ts.map +1 -0
  313. package/dist/features/builtin-skills/types.js +9 -0
  314. package/dist/features/builtin-skills/types.js.map +1 -0
  315. package/dist/features/context-injector/collector.d.ts +56 -0
  316. package/dist/features/context-injector/collector.d.ts.map +1 -0
  317. package/dist/features/context-injector/collector.js +122 -0
  318. package/dist/features/context-injector/collector.js.map +1 -0
  319. package/dist/features/context-injector/index.d.ts +12 -0
  320. package/dist/features/context-injector/index.d.ts.map +1 -0
  321. package/dist/features/context-injector/index.js +13 -0
  322. package/dist/features/context-injector/index.js.map +1 -0
  323. package/dist/features/context-injector/injector.d.ts +47 -0
  324. package/dist/features/context-injector/injector.d.ts.map +1 -0
  325. package/dist/features/context-injector/injector.js +103 -0
  326. package/dist/features/context-injector/injector.js.map +1 -0
  327. package/dist/features/context-injector/types.d.ts +103 -0
  328. package/dist/features/context-injector/types.d.ts.map +1 -0
  329. package/dist/features/context-injector/types.js +11 -0
  330. package/dist/features/context-injector/types.js.map +1 -0
  331. package/dist/features/continuation-enforcement.d.ts +36 -0
  332. package/dist/features/continuation-enforcement.d.ts.map +1 -0
  333. package/dist/features/continuation-enforcement.js +175 -0
  334. package/dist/features/continuation-enforcement.js.map +1 -0
  335. package/dist/features/delegation-categories/index.d.ts +116 -0
  336. package/dist/features/delegation-categories/index.d.ts.map +1 -0
  337. package/dist/features/delegation-categories/index.js +287 -0
  338. package/dist/features/delegation-categories/index.js.map +1 -0
  339. package/dist/features/delegation-categories/test-categories.d.ts +7 -0
  340. package/dist/features/delegation-categories/test-categories.d.ts.map +1 -0
  341. package/dist/features/delegation-categories/test-categories.js +88 -0
  342. package/dist/features/delegation-categories/test-categories.js.map +1 -0
  343. package/dist/features/delegation-categories/types.d.ts +51 -0
  344. package/dist/features/delegation-categories/types.d.ts.map +1 -0
  345. package/dist/features/delegation-categories/types.js +8 -0
  346. package/dist/features/delegation-categories/types.js.map +1 -0
  347. package/dist/features/delegation-routing/index.d.ts +10 -0
  348. package/dist/features/delegation-routing/index.d.ts.map +1 -0
  349. package/dist/features/delegation-routing/index.js +11 -0
  350. package/dist/features/delegation-routing/index.js.map +1 -0
  351. package/dist/features/delegation-routing/resolver.d.ts +24 -0
  352. package/dist/features/delegation-routing/resolver.d.ts.map +1 -0
  353. package/dist/features/delegation-routing/resolver.js +151 -0
  354. package/dist/features/delegation-routing/resolver.js.map +1 -0
  355. package/dist/features/delegation-routing/types.d.ts +21 -0
  356. package/dist/features/delegation-routing/types.d.ts.map +1 -0
  357. package/dist/features/delegation-routing/types.js +50 -0
  358. package/dist/features/delegation-routing/types.js.map +1 -0
  359. package/dist/features/diagnostics/error-matcher.d.ts +12 -0
  360. package/dist/features/diagnostics/error-matcher.d.ts.map +1 -0
  361. package/dist/features/diagnostics/error-matcher.js +41 -0
  362. package/dist/features/diagnostics/error-matcher.js.map +1 -0
  363. package/dist/features/diagnostics/index.d.ts +3 -0
  364. package/dist/features/diagnostics/index.d.ts.map +1 -0
  365. package/dist/features/diagnostics/index.js +3 -0
  366. package/dist/features/diagnostics/index.js.map +1 -0
  367. package/dist/features/diagnostics/solution-suggester.d.ts +12 -0
  368. package/dist/features/diagnostics/solution-suggester.d.ts.map +1 -0
  369. package/dist/features/diagnostics/solution-suggester.js +46 -0
  370. package/dist/features/diagnostics/solution-suggester.js.map +1 -0
  371. package/dist/features/diagnostics/types.d.ts +25 -0
  372. package/dist/features/diagnostics/types.d.ts.map +1 -0
  373. package/dist/features/diagnostics/types.js +5 -0
  374. package/dist/features/diagnostics/types.js.map +1 -0
  375. package/dist/features/error-log/index.d.ts +28 -0
  376. package/dist/features/error-log/index.d.ts.map +1 -0
  377. package/dist/features/error-log/index.js +78 -0
  378. package/dist/features/error-log/index.js.map +1 -0
  379. package/dist/features/index.js +79 -0
  380. package/dist/features/index.js.map +1 -0
  381. package/dist/features/magic-keywords.d.ts +28 -0
  382. package/dist/features/magic-keywords.d.ts.map +1 -0
  383. package/dist/features/magic-keywords.js +421 -0
  384. package/dist/features/magic-keywords.js.map +1 -0
  385. package/dist/features/model-routing/external-model-policy.d.ts +27 -0
  386. package/dist/features/model-routing/external-model-policy.d.ts.map +1 -0
  387. package/dist/features/model-routing/external-model-policy.js +144 -0
  388. package/dist/features/model-routing/external-model-policy.js.map +1 -0
  389. package/dist/features/model-routing/index.d.ts +34 -0
  390. package/dist/features/model-routing/index.d.ts.map +1 -0
  391. package/dist/features/model-routing/index.js +50 -0
  392. package/dist/features/model-routing/index.js.map +1 -0
  393. package/dist/features/model-routing/prompts/haiku.d.ts +54 -0
  394. package/dist/features/model-routing/prompts/haiku.d.ts.map +1 -0
  395. package/dist/features/model-routing/prompts/haiku.js +141 -0
  396. package/dist/features/model-routing/prompts/haiku.js.map +1 -0
  397. package/dist/features/model-routing/prompts/index.d.ts +47 -0
  398. package/dist/features/model-routing/prompts/index.d.ts.map +1 -0
  399. package/dist/features/model-routing/prompts/index.js +122 -0
  400. package/dist/features/model-routing/prompts/index.js.map +1 -0
  401. package/dist/features/model-routing/prompts/opus.d.ts +34 -0
  402. package/dist/features/model-routing/prompts/opus.d.ts.map +1 -0
  403. package/dist/features/model-routing/prompts/opus.js +153 -0
  404. package/dist/features/model-routing/prompts/opus.js.map +1 -0
  405. package/dist/features/model-routing/prompts/sonnet.d.ts +38 -0
  406. package/dist/features/model-routing/prompts/sonnet.d.ts.map +1 -0
  407. package/dist/features/model-routing/prompts/sonnet.js +149 -0
  408. package/dist/features/model-routing/prompts/sonnet.js.map +1 -0
  409. package/dist/features/model-routing/router.d.ts +78 -0
  410. package/dist/features/model-routing/router.d.ts.map +1 -0
  411. package/dist/features/model-routing/router.js +248 -0
  412. package/dist/features/model-routing/router.js.map +1 -0
  413. package/dist/features/model-routing/rules.d.ts +32 -0
  414. package/dist/features/model-routing/rules.d.ts.map +1 -0
  415. package/dist/features/model-routing/rules.js +216 -0
  416. package/dist/features/model-routing/rules.js.map +1 -0
  417. package/dist/features/model-routing/scorer.d.ts +35 -0
  418. package/dist/features/model-routing/scorer.d.ts.map +1 -0
  419. package/dist/features/model-routing/scorer.js +241 -0
  420. package/dist/features/model-routing/scorer.js.map +1 -0
  421. package/dist/features/model-routing/signals.d.ts +26 -0
  422. package/dist/features/model-routing/signals.d.ts.map +1 -0
  423. package/dist/features/model-routing/signals.js +283 -0
  424. package/dist/features/model-routing/signals.js.map +1 -0
  425. package/dist/features/model-routing/types.d.ts +196 -0
  426. package/dist/features/model-routing/types.d.ts.map +1 -0
  427. package/dist/features/model-routing/types.js +82 -0
  428. package/dist/features/model-routing/types.js.map +1 -0
  429. package/dist/features/notepad-wisdom/extractor.d.ts +30 -0
  430. package/dist/features/notepad-wisdom/extractor.d.ts.map +1 -0
  431. package/dist/features/notepad-wisdom/extractor.js +68 -0
  432. package/dist/features/notepad-wisdom/extractor.js.map +1 -0
  433. package/dist/features/notepad-wisdom/index.d.ts +39 -0
  434. package/dist/features/notepad-wisdom/index.d.ts.map +1 -0
  435. package/dist/features/notepad-wisdom/index.js +169 -0
  436. package/dist/features/notepad-wisdom/index.js.map +1 -0
  437. package/dist/features/notepad-wisdom/types.d.ts +18 -0
  438. package/dist/features/notepad-wisdom/types.d.ts.map +1 -0
  439. package/dist/features/notepad-wisdom/types.js +7 -0
  440. package/dist/features/notepad-wisdom/types.js.map +1 -0
  441. package/dist/features/rate-limit-wait/daemon.d.ts +52 -0
  442. package/dist/features/rate-limit-wait/daemon.d.ts.map +1 -0
  443. package/dist/features/rate-limit-wait/daemon.js +622 -0
  444. package/dist/features/rate-limit-wait/daemon.js.map +1 -0
  445. package/dist/features/rate-limit-wait/index.d.ts +16 -0
  446. package/dist/features/rate-limit-wait/index.d.ts.map +1 -0
  447. package/dist/features/rate-limit-wait/index.js +18 -0
  448. package/dist/features/rate-limit-wait/index.js.map +1 -0
  449. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts +22 -0
  450. package/dist/features/rate-limit-wait/rate-limit-monitor.d.ts.map +1 -0
  451. package/dist/features/rate-limit-wait/rate-limit-monitor.js +108 -0
  452. package/dist/features/rate-limit-wait/rate-limit-monitor.js.map +1 -0
  453. package/dist/features/rate-limit-wait/tmux-detector.d.ts +59 -0
  454. package/dist/features/rate-limit-wait/tmux-detector.d.ts.map +1 -0
  455. package/dist/features/rate-limit-wait/tmux-detector.js +312 -0
  456. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -0
  457. package/dist/features/rate-limit-wait/types.d.ts +125 -0
  458. package/dist/features/rate-limit-wait/types.d.ts.map +1 -0
  459. package/dist/features/rate-limit-wait/types.js +8 -0
  460. package/dist/features/rate-limit-wait/types.js.map +1 -0
  461. package/dist/features/reflection/data-collector.d.ts +12 -0
  462. package/dist/features/reflection/data-collector.d.ts.map +1 -0
  463. package/dist/features/reflection/data-collector.js +38 -0
  464. package/dist/features/reflection/data-collector.js.map +1 -0
  465. package/dist/features/reflection/index.d.ts +4 -0
  466. package/dist/features/reflection/index.d.ts.map +1 -0
  467. package/dist/features/reflection/index.js +3 -0
  468. package/dist/features/reflection/index.js.map +1 -0
  469. package/dist/features/reflection/report-generator.d.ts +3 -0
  470. package/dist/features/reflection/report-generator.d.ts.map +1 -0
  471. package/dist/features/reflection/report-generator.js +42 -0
  472. package/dist/features/reflection/report-generator.js.map +1 -0
  473. package/dist/features/state-manager/encryption.d.ts +24 -0
  474. package/dist/features/state-manager/encryption.d.ts.map +1 -0
  475. package/dist/features/state-manager/encryption.js +86 -0
  476. package/dist/features/state-manager/encryption.js.map +1 -0
  477. package/dist/features/state-manager/tiered-writer.d.ts +44 -0
  478. package/dist/features/state-manager/tiered-writer.d.ts.map +1 -0
  479. package/dist/features/state-manager/tiered-writer.js +76 -0
  480. package/dist/features/state-manager/tiered-writer.js.map +1 -0
  481. package/dist/features/state-manager/types.d.ts +147 -0
  482. package/dist/features/state-manager/types.d.ts.map +1 -0
  483. package/dist/features/state-manager/types.js +30 -0
  484. package/dist/features/state-manager/types.js.map +1 -0
  485. package/dist/features/state-manager/wal.d.ts +21 -0
  486. package/dist/features/state-manager/wal.d.ts.map +1 -0
  487. package/dist/features/state-manager/wal.js +75 -0
  488. package/dist/features/state-manager/wal.js.map +1 -0
  489. package/dist/features/task-decomposer/index.d.ts +33 -0
  490. package/dist/features/task-decomposer/index.d.ts.map +1 -0
  491. package/dist/features/task-decomposer/index.js +695 -0
  492. package/dist/features/task-decomposer/index.js.map +1 -0
  493. package/dist/features/task-decomposer/types.d.ts +133 -0
  494. package/dist/features/task-decomposer/types.d.ts.map +1 -0
  495. package/dist/features/task-decomposer/types.js +8 -0
  496. package/dist/features/task-decomposer/types.js.map +1 -0
  497. package/dist/features/task-templates/index.d.ts +13 -0
  498. package/dist/features/task-templates/index.d.ts.map +1 -0
  499. package/dist/features/task-templates/index.js +31 -0
  500. package/dist/features/task-templates/index.js.map +1 -0
  501. package/dist/features/task-templates/wizard-integration.d.ts +15 -0
  502. package/dist/features/task-templates/wizard-integration.d.ts.map +1 -0
  503. package/dist/features/task-templates/wizard-integration.js +27 -0
  504. package/dist/features/task-templates/wizard-integration.js.map +1 -0
  505. package/dist/features/token-tracker/index.d.ts +21 -0
  506. package/dist/features/token-tracker/index.d.ts.map +1 -0
  507. package/dist/features/token-tracker/index.js +81 -0
  508. package/dist/features/token-tracker/index.js.map +1 -0
  509. package/dist/features/verification/example.d.ts +49 -0
  510. package/dist/features/verification/example.d.ts.map +1 -0
  511. package/dist/features/verification/example.js +237 -0
  512. package/dist/features/verification/example.js.map +1 -0
  513. package/dist/features/verification/index.d.ts +97 -0
  514. package/dist/features/verification/index.d.ts.map +1 -0
  515. package/dist/features/verification/index.js +439 -0
  516. package/dist/features/verification/index.js.map +1 -0
  517. package/dist/features/verification/types.d.ts +142 -0
  518. package/dist/features/verification/types.d.ts.map +1 -0
  519. package/dist/features/verification/types.js +7 -0
  520. package/dist/features/verification/types.js.map +1 -0
  521. package/dist/features/wizard/engine.d.ts +15 -0
  522. package/dist/features/wizard/engine.d.ts.map +1 -0
  523. package/dist/features/wizard/engine.js +74 -0
  524. package/dist/features/wizard/engine.js.map +1 -0
  525. package/dist/features/wizard/index.d.ts +8 -0
  526. package/dist/features/wizard/index.d.ts.map +1 -0
  527. package/dist/features/wizard/index.js +7 -0
  528. package/dist/features/wizard/index.js.map +1 -0
  529. package/dist/features/wizard/questions.d.ts +6 -0
  530. package/dist/features/wizard/questions.d.ts.map +1 -0
  531. package/dist/features/wizard/questions.js +64 -0
  532. package/dist/features/wizard/questions.js.map +1 -0
  533. package/dist/features/wizard/recommendation-engine.d.ts +6 -0
  534. package/dist/features/wizard/recommendation-engine.d.ts.map +1 -0
  535. package/dist/features/wizard/recommendation-engine.js +33 -0
  536. package/dist/features/wizard/recommendation-engine.js.map +1 -0
  537. package/dist/features/wizard/types.d.ts +23 -0
  538. package/dist/features/wizard/types.d.ts.map +1 -0
  539. package/dist/features/wizard/types.js +5 -0
  540. package/dist/features/wizard/types.js.map +1 -0
  541. package/dist/features/workflow-recommender/context-analyzer.d.ts +6 -0
  542. package/dist/features/workflow-recommender/context-analyzer.d.ts.map +1 -0
  543. package/dist/features/workflow-recommender/context-analyzer.js +20 -0
  544. package/dist/features/workflow-recommender/context-analyzer.js.map +1 -0
  545. package/dist/features/workflow-recommender/index.d.ts +12 -0
  546. package/dist/features/workflow-recommender/index.d.ts.map +1 -0
  547. package/dist/features/workflow-recommender/index.js +9 -0
  548. package/dist/features/workflow-recommender/index.js.map +1 -0
  549. package/dist/features/workflow-recommender/intent-classifier.d.ts +6 -0
  550. package/dist/features/workflow-recommender/intent-classifier.d.ts.map +1 -0
  551. package/dist/features/workflow-recommender/intent-classifier.js +24 -0
  552. package/dist/features/workflow-recommender/intent-classifier.js.map +1 -0
  553. package/dist/features/workflow-recommender/recommendation-engine.d.ts +6 -0
  554. package/dist/features/workflow-recommender/recommendation-engine.d.ts.map +1 -0
  555. package/dist/features/workflow-recommender/recommendation-engine.js +110 -0
  556. package/dist/features/workflow-recommender/recommendation-engine.js.map +1 -0
  557. package/dist/features/workflow-recommender/recommender.d.ts +23 -0
  558. package/dist/features/workflow-recommender/recommender.d.ts.map +1 -0
  559. package/dist/features/workflow-recommender/recommender.js +34 -0
  560. package/dist/features/workflow-recommender/recommender.js.map +1 -0
  561. package/dist/features/workflow-recommender/router-integration.d.ts +9 -0
  562. package/dist/features/workflow-recommender/router-integration.d.ts.map +1 -0
  563. package/dist/features/workflow-recommender/router-integration.js +25 -0
  564. package/dist/features/workflow-recommender/router-integration.js.map +1 -0
  565. package/dist/features/workflow-recommender/types.d.ts +20 -0
  566. package/dist/features/workflow-recommender/types.d.ts.map +1 -0
  567. package/dist/features/workflow-recommender/types.js +5 -0
  568. package/dist/features/workflow-recommender/types.js.map +1 -0
  569. package/dist/hooks/agent-usage-reminder/constants.d.ts +17 -0
  570. package/dist/hooks/agent-usage-reminder/constants.d.ts.map +1 -0
  571. package/dist/hooks/agent-usage-reminder/constants.js +57 -0
  572. package/dist/hooks/agent-usage-reminder/constants.js.map +1 -0
  573. package/dist/hooks/agent-usage-reminder/index.d.ts +36 -0
  574. package/dist/hooks/agent-usage-reminder/index.d.ts.map +1 -0
  575. package/dist/hooks/agent-usage-reminder/index.js +89 -0
  576. package/dist/hooks/agent-usage-reminder/index.js.map +1 -0
  577. package/dist/hooks/agent-usage-reminder/storage.d.ts +12 -0
  578. package/dist/hooks/agent-usage-reminder/storage.d.ts.map +1 -0
  579. package/dist/hooks/agent-usage-reminder/storage.js +39 -0
  580. package/dist/hooks/agent-usage-reminder/storage.js.map +1 -0
  581. package/dist/hooks/agent-usage-reminder/types.d.ts +14 -0
  582. package/dist/hooks/agent-usage-reminder/types.d.ts.map +1 -0
  583. package/dist/hooks/agent-usage-reminder/types.js +9 -0
  584. package/dist/hooks/agent-usage-reminder/types.js.map +1 -0
  585. package/dist/hooks/auto-slash-command/constants.d.ts +19 -0
  586. package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -0
  587. package/dist/hooks/auto-slash-command/constants.js +32 -0
  588. package/dist/hooks/auto-slash-command/constants.js.map +1 -0
  589. package/dist/hooks/auto-slash-command/detector.d.ts +33 -0
  590. package/dist/hooks/auto-slash-command/detector.d.ts.map +1 -0
  591. package/dist/hooks/auto-slash-command/detector.js +73 -0
  592. package/dist/hooks/auto-slash-command/detector.js.map +1 -0
  593. package/dist/hooks/auto-slash-command/executor.d.ts +29 -0
  594. package/dist/hooks/auto-slash-command/executor.d.ts.map +1 -0
  595. package/dist/hooks/auto-slash-command/executor.js +216 -0
  596. package/dist/hooks/auto-slash-command/executor.js.map +1 -0
  597. package/dist/hooks/auto-slash-command/index.d.ts +53 -0
  598. package/dist/hooks/auto-slash-command/index.d.ts.map +1 -0
  599. package/dist/hooks/auto-slash-command/index.js +105 -0
  600. package/dist/hooks/auto-slash-command/index.js.map +1 -0
  601. package/dist/hooks/auto-slash-command/live-data.d.ts +27 -0
  602. package/dist/hooks/auto-slash-command/live-data.d.ts.map +1 -0
  603. package/dist/hooks/auto-slash-command/live-data.js +459 -0
  604. package/dist/hooks/auto-slash-command/live-data.js.map +1 -0
  605. package/dist/hooks/auto-slash-command/types.d.ts +77 -0
  606. package/dist/hooks/auto-slash-command/types.d.ts.map +1 -0
  607. package/dist/hooks/auto-slash-command/types.js +9 -0
  608. package/dist/hooks/auto-slash-command/types.js.map +1 -0
  609. package/dist/hooks/autopilot/cancel.js +274 -0
  610. package/dist/hooks/autopilot/cancel.js.map +1 -0
  611. package/dist/hooks/autopilot/enforcement.js +227 -0
  612. package/dist/hooks/autopilot/enforcement.js.map +1 -0
  613. package/dist/hooks/autopilot/index.js +18 -0
  614. package/dist/hooks/autopilot/index.js.map +1 -0
  615. package/dist/hooks/autopilot/prompts.d.ts +37 -0
  616. package/dist/hooks/autopilot/prompts.d.ts.map +1 -0
  617. package/dist/hooks/autopilot/prompts.js +378 -0
  618. package/dist/hooks/autopilot/prompts.js.map +1 -0
  619. package/dist/hooks/autopilot/state.js +470 -0
  620. package/dist/hooks/autopilot/state.js.map +1 -0
  621. package/dist/hooks/autopilot/transition-helper.d.ts +22 -0
  622. package/dist/hooks/autopilot/transition-helper.d.ts.map +1 -0
  623. package/dist/hooks/autopilot/transition-helper.js +31 -0
  624. package/dist/hooks/autopilot/transition-helper.js.map +1 -0
  625. package/dist/hooks/autopilot/types.d.ts +221 -0
  626. package/dist/hooks/autopilot/types.d.ts.map +1 -0
  627. package/dist/hooks/autopilot/types.js +30 -0
  628. package/dist/hooks/autopilot/types.js.map +1 -0
  629. package/dist/hooks/autopilot/validation.js +350 -0
  630. package/dist/hooks/autopilot/validation.js.map +1 -0
  631. package/dist/hooks/axiom-boot/index.d.ts +12 -0
  632. package/dist/hooks/axiom-boot/index.d.ts.map +1 -0
  633. package/dist/hooks/axiom-boot/index.js +62 -0
  634. package/dist/hooks/axiom-boot/index.js.map +1 -0
  635. package/dist/hooks/axiom-boot/storage.d.ts +16 -0
  636. package/dist/hooks/axiom-boot/storage.d.ts.map +1 -0
  637. package/dist/hooks/axiom-boot/storage.js +102 -0
  638. package/dist/hooks/axiom-boot/storage.js.map +1 -0
  639. package/dist/hooks/axiom-boot/types.d.ts +28 -0
  640. package/dist/hooks/axiom-boot/types.d.ts.map +1 -0
  641. package/dist/hooks/axiom-boot/types.js +7 -0
  642. package/dist/hooks/axiom-boot/types.js.map +1 -0
  643. package/dist/hooks/axiom-guards/constants.d.ts +9 -0
  644. package/dist/hooks/axiom-guards/constants.d.ts.map +1 -0
  645. package/dist/hooks/axiom-guards/constants.js +13 -0
  646. package/dist/hooks/axiom-guards/constants.js.map +1 -0
  647. package/dist/hooks/axiom-guards/index.d.ts +12 -0
  648. package/dist/hooks/axiom-guards/index.d.ts.map +1 -0
  649. package/dist/hooks/axiom-guards/index.js +31 -0
  650. package/dist/hooks/axiom-guards/index.js.map +1 -0
  651. package/dist/hooks/axiom-guards/types.d.ts +23 -0
  652. package/dist/hooks/axiom-guards/types.d.ts.map +1 -0
  653. package/dist/hooks/axiom-guards/types.js +7 -0
  654. package/dist/hooks/axiom-guards/types.js.map +1 -0
  655. package/dist/hooks/background-notification/index.d.ts +60 -0
  656. package/dist/hooks/background-notification/index.d.ts.map +1 -0
  657. package/dist/hooks/background-notification/index.js +180 -0
  658. package/dist/hooks/background-notification/index.js.map +1 -0
  659. package/dist/hooks/background-notification/types.d.ts +64 -0
  660. package/dist/hooks/background-notification/types.d.ts.map +1 -0
  661. package/dist/hooks/background-notification/types.js +8 -0
  662. package/dist/hooks/background-notification/types.js.map +1 -0
  663. package/dist/hooks/beads-context/constants.d.ts +3 -0
  664. package/dist/hooks/beads-context/constants.d.ts.map +1 -0
  665. package/dist/hooks/beads-context/constants.js +35 -0
  666. package/dist/hooks/beads-context/constants.js.map +1 -0
  667. package/dist/hooks/beads-context/index.d.ts +21 -0
  668. package/dist/hooks/beads-context/index.d.ts.map +1 -0
  669. package/dist/hooks/beads-context/index.js +62 -0
  670. package/dist/hooks/beads-context/index.js.map +1 -0
  671. package/dist/hooks/beads-context/types.d.ts +7 -0
  672. package/dist/hooks/beads-context/types.d.ts.map +1 -0
  673. package/dist/hooks/beads-context/types.js +2 -0
  674. package/dist/hooks/beads-context/types.js.map +1 -0
  675. package/dist/hooks/bridge-normalize.js +305 -0
  676. package/dist/hooks/bridge-normalize.js.map +1 -0
  677. package/dist/hooks/bridge-types.d.ts +74 -0
  678. package/dist/hooks/bridge-types.d.ts.map +1 -0
  679. package/dist/hooks/bridge-types.js +41 -0
  680. package/dist/hooks/bridge-types.js.map +1 -0
  681. package/dist/hooks/comment-checker/constants.d.ts +28 -0
  682. package/dist/hooks/comment-checker/constants.d.ts.map +1 -0
  683. package/dist/hooks/comment-checker/constants.js +189 -0
  684. package/dist/hooks/comment-checker/constants.js.map +1 -0
  685. package/dist/hooks/comment-checker/filters.d.ts +39 -0
  686. package/dist/hooks/comment-checker/filters.d.ts.map +1 -0
  687. package/dist/hooks/comment-checker/filters.js +126 -0
  688. package/dist/hooks/comment-checker/filters.js.map +1 -0
  689. package/dist/hooks/comment-checker/index.d.ts +58 -0
  690. package/dist/hooks/comment-checker/index.d.ts.map +1 -0
  691. package/dist/hooks/comment-checker/index.js +298 -0
  692. package/dist/hooks/comment-checker/index.js.map +1 -0
  693. package/dist/hooks/comment-checker/types.d.ts +88 -0
  694. package/dist/hooks/comment-checker/types.d.ts.map +1 -0
  695. package/dist/hooks/comment-checker/types.js +9 -0
  696. package/dist/hooks/comment-checker/types.js.map +1 -0
  697. package/dist/hooks/dependency-analyzer.d.ts +32 -0
  698. package/dist/hooks/dependency-analyzer.d.ts.map +1 -0
  699. package/dist/hooks/dependency-analyzer.js +199 -0
  700. package/dist/hooks/dependency-analyzer.js.map +1 -0
  701. package/dist/hooks/directory-readme-injector/constants.d.ts +19 -0
  702. package/dist/hooks/directory-readme-injector/constants.d.ts.map +1 -0
  703. package/dist/hooks/directory-readme-injector/constants.js +21 -0
  704. package/dist/hooks/directory-readme-injector/constants.js.map +1 -0
  705. package/dist/hooks/directory-readme-injector/index.d.ts +45 -0
  706. package/dist/hooks/directory-readme-injector/index.d.ts.map +1 -0
  707. package/dist/hooks/directory-readme-injector/index.js +185 -0
  708. package/dist/hooks/directory-readme-injector/index.js.map +1 -0
  709. package/dist/hooks/directory-readme-injector/storage.d.ts +20 -0
  710. package/dist/hooks/directory-readme-injector/storage.d.ts.map +1 -0
  711. package/dist/hooks/directory-readme-injector/storage.js +56 -0
  712. package/dist/hooks/directory-readme-injector/storage.js.map +1 -0
  713. package/dist/hooks/directory-readme-injector/types.d.ts +20 -0
  714. package/dist/hooks/directory-readme-injector/types.d.ts.map +1 -0
  715. package/dist/hooks/directory-readme-injector/types.js +9 -0
  716. package/dist/hooks/directory-readme-injector/types.js.map +1 -0
  717. package/dist/hooks/empty-message-sanitizer/constants.d.ts +33 -0
  718. package/dist/hooks/empty-message-sanitizer/constants.d.ts.map +1 -0
  719. package/dist/hooks/empty-message-sanitizer/constants.js +37 -0
  720. package/dist/hooks/empty-message-sanitizer/constants.js.map +1 -0
  721. package/dist/hooks/empty-message-sanitizer/index.d.ts +59 -0
  722. package/dist/hooks/empty-message-sanitizer/index.d.ts.map +1 -0
  723. package/dist/hooks/empty-message-sanitizer/index.js +171 -0
  724. package/dist/hooks/empty-message-sanitizer/index.js.map +1 -0
  725. package/dist/hooks/empty-message-sanitizer/types.d.ts +79 -0
  726. package/dist/hooks/empty-message-sanitizer/types.d.ts.map +1 -0
  727. package/dist/hooks/empty-message-sanitizer/types.js +10 -0
  728. package/dist/hooks/empty-message-sanitizer/types.js.map +1 -0
  729. package/dist/hooks/guards/post-tool.d.ts +18 -0
  730. package/dist/hooks/guards/post-tool.d.ts.map +1 -0
  731. package/dist/hooks/guards/post-tool.js +44 -0
  732. package/dist/hooks/guards/post-tool.js.map +1 -0
  733. package/dist/hooks/guards/pre-tool.d.ts +17 -0
  734. package/dist/hooks/guards/pre-tool.d.ts.map +1 -0
  735. package/dist/hooks/guards/pre-tool.js +55 -0
  736. package/dist/hooks/guards/pre-tool.js.map +1 -0
  737. package/dist/hooks/guards/session-watchdog.d.ts +30 -0
  738. package/dist/hooks/guards/session-watchdog.d.ts.map +1 -0
  739. package/dist/hooks/guards/session-watchdog.js +80 -0
  740. package/dist/hooks/guards/session-watchdog.js.map +1 -0
  741. package/dist/hooks/guards/status-dashboard.d.ts +37 -0
  742. package/dist/hooks/guards/status-dashboard.d.ts.map +1 -0
  743. package/dist/hooks/guards/status-dashboard.js +149 -0
  744. package/dist/hooks/guards/status-dashboard.js.map +1 -0
  745. package/dist/hooks/index.js +146 -0
  746. package/dist/hooks/index.js.map +1 -0
  747. package/dist/hooks/keyword-detector/index.d.ts +49 -0
  748. package/dist/hooks/keyword-detector/index.d.ts.map +1 -0
  749. package/dist/hooks/keyword-detector/index.js +149 -0
  750. package/dist/hooks/keyword-detector/index.js.map +1 -0
  751. package/dist/hooks/learner/auto-invoke.d.ts +82 -0
  752. package/dist/hooks/learner/auto-invoke.d.ts.map +1 -0
  753. package/dist/hooks/learner/auto-invoke.js +233 -0
  754. package/dist/hooks/learner/auto-invoke.js.map +1 -0
  755. package/dist/hooks/learner/auto-learner.d.ts +55 -0
  756. package/dist/hooks/learner/auto-learner.d.ts.map +1 -0
  757. package/dist/hooks/learner/auto-learner.js +364 -0
  758. package/dist/hooks/learner/auto-learner.js.map +1 -0
  759. package/dist/hooks/learner/bridge.d.ts +84 -0
  760. package/dist/hooks/learner/bridge.d.ts.map +1 -0
  761. package/dist/hooks/learner/bridge.js +533 -0
  762. package/dist/hooks/learner/bridge.js.map +1 -0
  763. package/dist/hooks/learner/confidence.d.ts +40 -0
  764. package/dist/hooks/learner/confidence.d.ts.map +1 -0
  765. package/dist/hooks/learner/confidence.js +161 -0
  766. package/dist/hooks/learner/confidence.js.map +1 -0
  767. package/dist/hooks/learner/config.d.ts +53 -0
  768. package/dist/hooks/learner/config.d.ts.map +1 -0
  769. package/dist/hooks/learner/config.js +103 -0
  770. package/dist/hooks/learner/config.js.map +1 -0
  771. package/dist/hooks/learner/constants.d.ts +28 -0
  772. package/dist/hooks/learner/constants.d.ts.map +1 -0
  773. package/dist/hooks/learner/constants.js +32 -0
  774. package/dist/hooks/learner/constants.js.map +1 -0
  775. package/dist/hooks/learner/detection-hook.d.ts +39 -0
  776. package/dist/hooks/learner/detection-hook.d.ts.map +1 -0
  777. package/dist/hooks/learner/detection-hook.js +83 -0
  778. package/dist/hooks/learner/detection-hook.js.map +1 -0
  779. package/dist/hooks/learner/detector.d.ts +30 -0
  780. package/dist/hooks/learner/detector.d.ts.map +1 -0
  781. package/dist/hooks/learner/detector.js +254 -0
  782. package/dist/hooks/learner/detector.js.map +1 -0
  783. package/dist/hooks/learner/finder.d.ts +23 -0
  784. package/dist/hooks/learner/finder.d.ts.map +1 -0
  785. package/dist/hooks/learner/finder.js +152 -0
  786. package/dist/hooks/learner/finder.js.map +1 -0
  787. package/dist/hooks/learner/harvester.d.ts +38 -0
  788. package/dist/hooks/learner/harvester.d.ts.map +1 -0
  789. package/dist/hooks/learner/harvester.js +128 -0
  790. package/dist/hooks/learner/harvester.js.map +1 -0
  791. package/dist/hooks/learner/index-manager.d.ts +56 -0
  792. package/dist/hooks/learner/index-manager.d.ts.map +1 -0
  793. package/dist/hooks/learner/index-manager.js +234 -0
  794. package/dist/hooks/learner/index-manager.js.map +1 -0
  795. package/dist/hooks/learner/index.js +141 -0
  796. package/dist/hooks/learner/index.js.map +1 -0
  797. package/dist/hooks/learner/learning-queue.d.ts +35 -0
  798. package/dist/hooks/learner/learning-queue.d.ts.map +1 -0
  799. package/dist/hooks/learner/learning-queue.js +225 -0
  800. package/dist/hooks/learner/learning-queue.js.map +1 -0
  801. package/dist/hooks/learner/loader.d.ts +20 -0
  802. package/dist/hooks/learner/loader.d.ts.map +1 -0
  803. package/dist/hooks/learner/loader.js +112 -0
  804. package/dist/hooks/learner/loader.js.map +1 -0
  805. package/dist/hooks/learner/matcher.d.ts +40 -0
  806. package/dist/hooks/learner/matcher.d.ts.map +1 -0
  807. package/dist/hooks/learner/matcher.js +230 -0
  808. package/dist/hooks/learner/matcher.js.map +1 -0
  809. package/dist/hooks/learner/metrics.d.ts +42 -0
  810. package/dist/hooks/learner/metrics.d.ts.map +1 -0
  811. package/dist/hooks/learner/metrics.js +172 -0
  812. package/dist/hooks/learner/metrics.js.map +1 -0
  813. package/dist/hooks/learner/orchestrator.d.ts +82 -0
  814. package/dist/hooks/learner/orchestrator.d.ts.map +1 -0
  815. package/dist/hooks/learner/orchestrator.js +146 -0
  816. package/dist/hooks/learner/orchestrator.js.map +1 -0
  817. package/dist/hooks/learner/parser.d.ts +21 -0
  818. package/dist/hooks/learner/parser.d.ts.map +1 -0
  819. package/dist/hooks/learner/parser.js +200 -0
  820. package/dist/hooks/learner/parser.js.map +1 -0
  821. package/dist/hooks/learner/pattern-detector.d.ts +35 -0
  822. package/dist/hooks/learner/pattern-detector.d.ts.map +1 -0
  823. package/dist/hooks/learner/pattern-detector.js +149 -0
  824. package/dist/hooks/learner/pattern-detector.js.map +1 -0
  825. package/dist/hooks/learner/promotion.js +120 -0
  826. package/dist/hooks/learner/promotion.js.map +1 -0
  827. package/dist/hooks/learner/queue-archiver.d.ts +21 -0
  828. package/dist/hooks/learner/queue-archiver.d.ts.map +1 -0
  829. package/dist/hooks/learner/queue-archiver.js +147 -0
  830. package/dist/hooks/learner/queue-archiver.js.map +1 -0
  831. package/dist/hooks/learner/reflection-archiver.d.ts +19 -0
  832. package/dist/hooks/learner/reflection-archiver.d.ts.map +1 -0
  833. package/dist/hooks/learner/reflection-archiver.js +113 -0
  834. package/dist/hooks/learner/reflection-archiver.js.map +1 -0
  835. package/dist/hooks/learner/reflection-cleanup.d.ts +22 -0
  836. package/dist/hooks/learner/reflection-cleanup.d.ts.map +1 -0
  837. package/dist/hooks/learner/reflection-cleanup.js +62 -0
  838. package/dist/hooks/learner/reflection-cleanup.js.map +1 -0
  839. package/dist/hooks/learner/reflection-parser.d.ts +26 -0
  840. package/dist/hooks/learner/reflection-parser.d.ts.map +1 -0
  841. package/dist/hooks/learner/reflection-parser.js +139 -0
  842. package/dist/hooks/learner/reflection-parser.js.map +1 -0
  843. package/dist/hooks/learner/reflection.d.ts +43 -0
  844. package/dist/hooks/learner/reflection.d.ts.map +1 -0
  845. package/dist/hooks/learner/reflection.js +122 -0
  846. package/dist/hooks/learner/reflection.js.map +1 -0
  847. package/dist/hooks/learner/seed-knowledge.d.ts +20 -0
  848. package/dist/hooks/learner/seed-knowledge.d.ts.map +1 -0
  849. package/dist/hooks/learner/seed-knowledge.js +187 -0
  850. package/dist/hooks/learner/seed-knowledge.js.map +1 -0
  851. package/dist/hooks/learner/session-reflector.d.ts +22 -0
  852. package/dist/hooks/learner/session-reflector.d.ts.map +1 -0
  853. package/dist/hooks/learner/session-reflector.js +59 -0
  854. package/dist/hooks/learner/session-reflector.js.map +1 -0
  855. package/dist/hooks/learner/types.d.ts +134 -0
  856. package/dist/hooks/learner/types.d.ts.map +1 -0
  857. package/dist/hooks/learner/types.js +8 -0
  858. package/dist/hooks/learner/types.js.map +1 -0
  859. package/dist/hooks/learner/usage-tracker.d.ts +45 -0
  860. package/dist/hooks/learner/usage-tracker.d.ts.map +1 -0
  861. package/dist/hooks/learner/usage-tracker.js +146 -0
  862. package/dist/hooks/learner/usage-tracker.js.map +1 -0
  863. package/dist/hooks/learner/validator.d.ts +15 -0
  864. package/dist/hooks/learner/validator.d.ts.map +1 -0
  865. package/dist/hooks/learner/validator.js +87 -0
  866. package/dist/hooks/learner/validator.js.map +1 -0
  867. package/dist/hooks/learner/writer.d.ts +27 -0
  868. package/dist/hooks/learner/writer.d.ts.map +1 -0
  869. package/dist/hooks/learner/writer.js +126 -0
  870. package/dist/hooks/learner/writer.js.map +1 -0
  871. package/dist/hooks/memory/constants.d.ts +6 -0
  872. package/dist/hooks/memory/constants.d.ts.map +1 -0
  873. package/dist/hooks/memory/constants.js +11 -0
  874. package/dist/hooks/memory/constants.js.map +1 -0
  875. package/dist/hooks/memory/index.d.ts +22 -0
  876. package/dist/hooks/memory/index.d.ts.map +1 -0
  877. package/dist/hooks/memory/index.js +97 -0
  878. package/dist/hooks/memory/index.js.map +1 -0
  879. package/dist/hooks/memory/types.d.ts +21 -0
  880. package/dist/hooks/memory/types.d.ts.map +1 -0
  881. package/dist/hooks/memory/types.js +5 -0
  882. package/dist/hooks/memory/types.js.map +1 -0
  883. package/dist/hooks/mode-registry/index.d.ts +174 -0
  884. package/dist/hooks/mode-registry/index.d.ts.map +1 -0
  885. package/dist/hooks/mode-registry/index.js +589 -0
  886. package/dist/hooks/mode-registry/index.js.map +1 -0
  887. package/dist/hooks/mode-registry/types.d.ts +31 -0
  888. package/dist/hooks/mode-registry/types.d.ts.map +1 -0
  889. package/dist/hooks/mode-registry/types.js +7 -0
  890. package/dist/hooks/mode-registry/types.js.map +1 -0
  891. package/dist/hooks/nexus/config.d.ts +5 -0
  892. package/dist/hooks/nexus/config.d.ts.map +1 -0
  893. package/dist/hooks/nexus/config.js +36 -0
  894. package/dist/hooks/nexus/config.js.map +1 -0
  895. package/dist/hooks/nexus/consciousness-sync.d.ts +8 -0
  896. package/dist/hooks/nexus/consciousness-sync.d.ts.map +1 -0
  897. package/dist/hooks/nexus/consciousness-sync.js +57 -0
  898. package/dist/hooks/nexus/consciousness-sync.js.map +1 -0
  899. package/dist/hooks/nexus/data-collector.d.ts +4 -0
  900. package/dist/hooks/nexus/data-collector.d.ts.map +1 -0
  901. package/dist/hooks/nexus/data-collector.js +23 -0
  902. package/dist/hooks/nexus/data-collector.js.map +1 -0
  903. package/dist/hooks/nexus/improvement-puller.d.ts +9 -0
  904. package/dist/hooks/nexus/improvement-puller.d.ts.map +1 -0
  905. package/dist/hooks/nexus/improvement-puller.js +44 -0
  906. package/dist/hooks/nexus/improvement-puller.js.map +1 -0
  907. package/dist/hooks/nexus/session-end-hook.d.ts +16 -0
  908. package/dist/hooks/nexus/session-end-hook.d.ts.map +1 -0
  909. package/dist/hooks/nexus/session-end-hook.js +76 -0
  910. package/dist/hooks/nexus/session-end-hook.js.map +1 -0
  911. package/dist/hooks/nexus/types.d.ts +54 -0
  912. package/dist/hooks/nexus/types.d.ts.map +1 -0
  913. package/dist/hooks/nexus/types.js +2 -0
  914. package/dist/hooks/nexus/types.js.map +1 -0
  915. package/dist/hooks/non-interactive-env/constants.d.ts +35 -0
  916. package/dist/hooks/non-interactive-env/constants.d.ts.map +1 -0
  917. package/dist/hooks/non-interactive-env/constants.js +69 -0
  918. package/dist/hooks/non-interactive-env/constants.js.map +1 -0
  919. package/dist/hooks/non-interactive-env/detector.d.ts +2 -0
  920. package/dist/hooks/non-interactive-env/detector.d.ts.map +1 -0
  921. package/dist/hooks/non-interactive-env/detector.js +16 -0
  922. package/dist/hooks/non-interactive-env/detector.js.map +1 -0
  923. package/dist/hooks/non-interactive-env/index.d.ts +14 -0
  924. package/dist/hooks/non-interactive-env/index.d.ts.map +1 -0
  925. package/dist/hooks/non-interactive-env/index.js +72 -0
  926. package/dist/hooks/non-interactive-env/index.js.map +1 -0
  927. package/dist/hooks/non-interactive-env/types.d.ts +14 -0
  928. package/dist/hooks/non-interactive-env/types.d.ts.map +1 -0
  929. package/dist/hooks/non-interactive-env/types.js +2 -0
  930. package/dist/hooks/non-interactive-env/types.js.map +1 -0
  931. package/dist/hooks/notepad/index.d.ts +114 -0
  932. package/dist/hooks/notepad/index.d.ts.map +1 -0
  933. package/dist/hooks/notepad/index.js +378 -0
  934. package/dist/hooks/notepad/index.js.map +1 -0
  935. package/dist/hooks/observability/agent-tracker.d.ts +18 -0
  936. package/dist/hooks/observability/agent-tracker.d.ts.map +1 -0
  937. package/dist/hooks/observability/agent-tracker.js +26 -0
  938. package/dist/hooks/observability/agent-tracker.js.map +1 -0
  939. package/dist/hooks/observability/cost-estimator.d.ts +18 -0
  940. package/dist/hooks/observability/cost-estimator.d.ts.map +1 -0
  941. package/dist/hooks/observability/cost-estimator.js +46 -0
  942. package/dist/hooks/observability/cost-estimator.js.map +1 -0
  943. package/dist/hooks/observability/db.d.ts +5 -0
  944. package/dist/hooks/observability/db.d.ts.map +1 -0
  945. package/dist/hooks/observability/db.js +63 -0
  946. package/dist/hooks/observability/db.js.map +1 -0
  947. package/dist/hooks/observability/query-engine.d.ts +36 -0
  948. package/dist/hooks/observability/query-engine.d.ts.map +1 -0
  949. package/dist/hooks/observability/query-engine.js +78 -0
  950. package/dist/hooks/observability/query-engine.js.map +1 -0
  951. package/dist/hooks/observability/tool-tracker.d.ts +11 -0
  952. package/dist/hooks/observability/tool-tracker.d.ts.map +1 -0
  953. package/dist/hooks/observability/tool-tracker.js +24 -0
  954. package/dist/hooks/observability/tool-tracker.js.map +1 -0
  955. package/dist/hooks/observability/write-queue.d.ts +13 -0
  956. package/dist/hooks/observability/write-queue.d.ts.map +1 -0
  957. package/dist/hooks/observability/write-queue.js +48 -0
  958. package/dist/hooks/observability/write-queue.js.map +1 -0
  959. package/dist/hooks/omc-orchestrator/audit.d.ts +31 -0
  960. package/dist/hooks/omc-orchestrator/audit.d.ts.map +1 -0
  961. package/dist/hooks/omc-orchestrator/audit.js +67 -0
  962. package/dist/hooks/omc-orchestrator/audit.js.map +1 -0
  963. package/dist/hooks/omc-orchestrator/constants.d.ts +28 -0
  964. package/dist/hooks/omc-orchestrator/constants.d.ts.map +1 -0
  965. package/dist/hooks/omc-orchestrator/constants.js +179 -0
  966. package/dist/hooks/omc-orchestrator/constants.js.map +1 -0
  967. package/dist/hooks/omc-orchestrator/index.js +441 -0
  968. package/dist/hooks/omc-orchestrator/index.js.map +1 -0
  969. package/dist/hooks/parallel-executor.d.ts +24 -0
  970. package/dist/hooks/parallel-executor.d.ts.map +1 -0
  971. package/dist/hooks/parallel-executor.js +82 -0
  972. package/dist/hooks/parallel-executor.js.map +1 -0
  973. package/dist/hooks/permission-handler/index.d.ts +55 -0
  974. package/dist/hooks/permission-handler/index.d.ts.map +1 -0
  975. package/dist/hooks/permission-handler/index.js +215 -0
  976. package/dist/hooks/permission-handler/index.js.map +1 -0
  977. package/dist/hooks/persistent-mode/event-bus.d.ts +12 -0
  978. package/dist/hooks/persistent-mode/event-bus.d.ts.map +1 -0
  979. package/dist/hooks/persistent-mode/event-bus.js +18 -0
  980. package/dist/hooks/persistent-mode/event-bus.js.map +1 -0
  981. package/dist/hooks/persistent-mode/index.js +493 -0
  982. package/dist/hooks/persistent-mode/index.js.map +1 -0
  983. package/dist/hooks/persistent-mode/tool-error.d.ts +15 -0
  984. package/dist/hooks/persistent-mode/tool-error.d.ts.map +1 -0
  985. package/dist/hooks/persistent-mode/tool-error.js +80 -0
  986. package/dist/hooks/persistent-mode/tool-error.js.map +1 -0
  987. package/dist/hooks/plugin-patterns/index.d.ts +112 -0
  988. package/dist/hooks/plugin-patterns/index.d.ts.map +1 -0
  989. package/dist/hooks/plugin-patterns/index.js +314 -0
  990. package/dist/hooks/plugin-patterns/index.js.map +1 -0
  991. package/dist/hooks/pre-compact/index.d.ts +129 -0
  992. package/dist/hooks/pre-compact/index.d.ts.map +1 -0
  993. package/dist/hooks/pre-compact/index.js +473 -0
  994. package/dist/hooks/pre-compact/index.js.map +1 -0
  995. package/dist/hooks/preemptive-compaction/constants.d.ts +48 -0
  996. package/dist/hooks/preemptive-compaction/constants.d.ts.map +1 -0
  997. package/dist/hooks/preemptive-compaction/constants.js +90 -0
  998. package/dist/hooks/preemptive-compaction/constants.js.map +1 -0
  999. package/dist/hooks/preemptive-compaction/index.d.ts +69 -0
  1000. package/dist/hooks/preemptive-compaction/index.d.ts.map +1 -0
  1001. package/dist/hooks/preemptive-compaction/index.js +279 -0
  1002. package/dist/hooks/preemptive-compaction/index.js.map +1 -0
  1003. package/dist/hooks/preemptive-compaction/types.d.ts +76 -0
  1004. package/dist/hooks/preemptive-compaction/types.d.ts.map +1 -0
  1005. package/dist/hooks/preemptive-compaction/types.js +9 -0
  1006. package/dist/hooks/preemptive-compaction/types.js.map +1 -0
  1007. package/dist/hooks/processors/setup.d.ts +3 -0
  1008. package/dist/hooks/processors/setup.d.ts.map +1 -0
  1009. package/dist/hooks/processors/setup.js +4 -0
  1010. package/dist/hooks/processors/setup.js.map +1 -0
  1011. package/dist/hooks/project-memory/constants.d.ts +33 -0
  1012. package/dist/hooks/project-memory/constants.d.ts.map +1 -0
  1013. package/dist/hooks/project-memory/constants.js +134 -0
  1014. package/dist/hooks/project-memory/constants.js.map +1 -0
  1015. package/dist/hooks/project-memory/detector.d.ts +10 -0
  1016. package/dist/hooks/project-memory/detector.d.ts.map +1 -0
  1017. package/dist/hooks/project-memory/detector.js +481 -0
  1018. package/dist/hooks/project-memory/detector.js.map +1 -0
  1019. package/dist/hooks/project-memory/directive-detector.d.ts +22 -0
  1020. package/dist/hooks/project-memory/directive-detector.d.ts.map +1 -0
  1021. package/dist/hooks/project-memory/directive-detector.js +149 -0
  1022. package/dist/hooks/project-memory/directive-detector.js.map +1 -0
  1023. package/dist/hooks/project-memory/directory-mapper.d.ts +14 -0
  1024. package/dist/hooks/project-memory/directory-mapper.d.ts.map +1 -0
  1025. package/dist/hooks/project-memory/directory-mapper.js +156 -0
  1026. package/dist/hooks/project-memory/directory-mapper.js.map +1 -0
  1027. package/dist/hooks/project-memory/formatter.d.ts +15 -0
  1028. package/dist/hooks/project-memory/formatter.d.ts.map +1 -0
  1029. package/dist/hooks/project-memory/formatter.js +166 -0
  1030. package/dist/hooks/project-memory/formatter.js.map +1 -0
  1031. package/dist/hooks/project-memory/hot-path-tracker.d.ts +18 -0
  1032. package/dist/hooks/project-memory/hot-path-tracker.d.ts.map +1 -0
  1033. package/dist/hooks/project-memory/hot-path-tracker.js +81 -0
  1034. package/dist/hooks/project-memory/hot-path-tracker.js.map +1 -0
  1035. package/dist/hooks/project-memory/index.d.ts +37 -0
  1036. package/dist/hooks/project-memory/index.d.ts.map +1 -0
  1037. package/dist/hooks/project-memory/index.js +103 -0
  1038. package/dist/hooks/project-memory/index.js.map +1 -0
  1039. package/dist/hooks/project-memory/learner.d.ts +35 -0
  1040. package/dist/hooks/project-memory/learner.d.ts.map +1 -0
  1041. package/dist/hooks/project-memory/learner.js +217 -0
  1042. package/dist/hooks/project-memory/learner.js.map +1 -0
  1043. package/dist/hooks/project-memory/pre-compact.d.ts +23 -0
  1044. package/dist/hooks/project-memory/pre-compact.d.ts.map +1 -0
  1045. package/dist/hooks/project-memory/pre-compact.js +51 -0
  1046. package/dist/hooks/project-memory/pre-compact.js.map +1 -0
  1047. package/dist/hooks/project-memory/storage.d.ts +28 -0
  1048. package/dist/hooks/project-memory/storage.d.ts.map +1 -0
  1049. package/dist/hooks/project-memory/storage.js +72 -0
  1050. package/dist/hooks/project-memory/storage.js.map +1 -0
  1051. package/dist/hooks/project-memory/types.d.ts +101 -0
  1052. package/dist/hooks/project-memory/types.d.ts.map +1 -0
  1053. package/dist/hooks/project-memory/types.js +6 -0
  1054. package/dist/hooks/project-memory/types.js.map +1 -0
  1055. package/dist/hooks/race-detector.d.ts +51 -0
  1056. package/dist/hooks/race-detector.d.ts.map +1 -0
  1057. package/dist/hooks/race-detector.js +121 -0
  1058. package/dist/hooks/race-detector.js.map +1 -0
  1059. package/dist/hooks/ralph/index.js +55 -0
  1060. package/dist/hooks/ralph/index.js.map +1 -0
  1061. package/dist/hooks/ralph/loop.js +330 -0
  1062. package/dist/hooks/ralph/loop.js.map +1 -0
  1063. package/dist/hooks/ralph/prd.d.ts +130 -0
  1064. package/dist/hooks/ralph/prd.d.ts.map +1 -0
  1065. package/dist/hooks/ralph/prd.js +310 -0
  1066. package/dist/hooks/ralph/prd.js.map +1 -0
  1067. package/dist/hooks/ralph/progress.d.ts +102 -0
  1068. package/dist/hooks/ralph/progress.d.ts.map +1 -0
  1069. package/dist/hooks/ralph/progress.js +408 -0
  1070. package/dist/hooks/ralph/progress.js.map +1 -0
  1071. package/dist/hooks/ralph/verifier.d.ts +73 -0
  1072. package/dist/hooks/ralph/verifier.d.ts.map +1 -0
  1073. package/dist/hooks/ralph/verifier.js +232 -0
  1074. package/dist/hooks/ralph/verifier.js.map +1 -0
  1075. package/dist/hooks/recovery/constants.d.ts +114 -0
  1076. package/dist/hooks/recovery/constants.d.ts.map +1 -0
  1077. package/dist/hooks/recovery/constants.js +221 -0
  1078. package/dist/hooks/recovery/constants.js.map +1 -0
  1079. package/dist/hooks/recovery/context-window.d.ts +24 -0
  1080. package/dist/hooks/recovery/context-window.d.ts.map +1 -0
  1081. package/dist/hooks/recovery/context-window.js +321 -0
  1082. package/dist/hooks/recovery/context-window.js.map +1 -0
  1083. package/dist/hooks/recovery/edit-error.d.ts +24 -0
  1084. package/dist/hooks/recovery/edit-error.d.ts.map +1 -0
  1085. package/dist/hooks/recovery/edit-error.js +56 -0
  1086. package/dist/hooks/recovery/edit-error.js.map +1 -0
  1087. package/dist/hooks/recovery/index.d.ts +102 -0
  1088. package/dist/hooks/recovery/index.d.ts.map +1 -0
  1089. package/dist/hooks/recovery/index.js +166 -0
  1090. package/dist/hooks/recovery/index.js.map +1 -0
  1091. package/dist/hooks/recovery/session-recovery.d.ts +24 -0
  1092. package/dist/hooks/recovery/session-recovery.d.ts.map +1 -0
  1093. package/dist/hooks/recovery/session-recovery.js +281 -0
  1094. package/dist/hooks/recovery/session-recovery.js.map +1 -0
  1095. package/dist/hooks/recovery/storage.d.ts +75 -0
  1096. package/dist/hooks/recovery/storage.d.ts.map +1 -0
  1097. package/dist/hooks/recovery/storage.js +383 -0
  1098. package/dist/hooks/recovery/storage.js.map +1 -0
  1099. package/dist/hooks/recovery/types.d.ts +196 -0
  1100. package/dist/hooks/recovery/types.d.ts.map +1 -0
  1101. package/dist/hooks/recovery/types.js +32 -0
  1102. package/dist/hooks/recovery/types.js.map +1 -0
  1103. package/dist/hooks/rules-injector/constants.d.ts +27 -0
  1104. package/dist/hooks/rules-injector/constants.d.ts.map +1 -0
  1105. package/dist/hooks/rules-injector/constants.js +42 -0
  1106. package/dist/hooks/rules-injector/constants.js.map +1 -0
  1107. package/dist/hooks/rules-injector/finder.d.ts +24 -0
  1108. package/dist/hooks/rules-injector/finder.d.ts.map +1 -0
  1109. package/dist/hooks/rules-injector/finder.js +223 -0
  1110. package/dist/hooks/rules-injector/finder.js.map +1 -0
  1111. package/dist/hooks/rules-injector/index.d.ts +45 -0
  1112. package/dist/hooks/rules-injector/index.d.ts.map +1 -0
  1113. package/dist/hooks/rules-injector/index.js +187 -0
  1114. package/dist/hooks/rules-injector/index.js.map +1 -0
  1115. package/dist/hooks/rules-injector/matcher.d.ts +25 -0
  1116. package/dist/hooks/rules-injector/matcher.d.ts.map +1 -0
  1117. package/dist/hooks/rules-injector/matcher.js +77 -0
  1118. package/dist/hooks/rules-injector/matcher.js.map +1 -0
  1119. package/dist/hooks/rules-injector/parser.d.ts +20 -0
  1120. package/dist/hooks/rules-injector/parser.d.ts.map +1 -0
  1121. package/dist/hooks/rules-injector/parser.js +181 -0
  1122. package/dist/hooks/rules-injector/parser.js.map +1 -0
  1123. package/dist/hooks/rules-injector/storage.d.ts +26 -0
  1124. package/dist/hooks/rules-injector/storage.d.ts.map +1 -0
  1125. package/dist/hooks/rules-injector/storage.js +61 -0
  1126. package/dist/hooks/rules-injector/storage.js.map +1 -0
  1127. package/dist/hooks/rules-injector/types.d.ts +101 -0
  1128. package/dist/hooks/rules-injector/types.d.ts.map +1 -0
  1129. package/dist/hooks/rules-injector/types.js +10 -0
  1130. package/dist/hooks/rules-injector/types.js.map +1 -0
  1131. package/dist/hooks/session-end/callbacks.d.ts +26 -0
  1132. package/dist/hooks/session-end/callbacks.d.ts.map +1 -0
  1133. package/dist/hooks/session-end/callbacks.js +229 -0
  1134. package/dist/hooks/session-end/callbacks.js.map +1 -0
  1135. package/dist/hooks/session-end/index.d.ts +59 -0
  1136. package/dist/hooks/session-end/index.d.ts.map +1 -0
  1137. package/dist/hooks/session-end/index.js +446 -0
  1138. package/dist/hooks/session-end/index.js.map +1 -0
  1139. package/dist/hooks/session-end/types.d.ts +26 -0
  1140. package/dist/hooks/session-end/types.d.ts.map +1 -0
  1141. package/dist/hooks/session-end/types.js +6 -0
  1142. package/dist/hooks/session-end/types.js.map +1 -0
  1143. package/dist/hooks/setup/index.d.ts +62 -0
  1144. package/dist/hooks/setup/index.d.ts.map +1 -0
  1145. package/dist/hooks/setup/index.js +293 -0
  1146. package/dist/hooks/setup/index.js.map +1 -0
  1147. package/dist/hooks/setup/types.d.ts +25 -0
  1148. package/dist/hooks/setup/types.d.ts.map +1 -0
  1149. package/dist/hooks/setup/types.js +5 -0
  1150. package/dist/hooks/setup/types.js.map +1 -0
  1151. package/dist/hooks/subagent-tracker/flow-tracer.js +75 -0
  1152. package/dist/hooks/subagent-tracker/flow-tracer.js.map +1 -0
  1153. package/dist/hooks/subagent-tracker/index.js +1056 -0
  1154. package/dist/hooks/subagent-tracker/index.js.map +1 -0
  1155. package/dist/hooks/team-pipeline/index.d.ts +4 -0
  1156. package/dist/hooks/team-pipeline/index.d.ts.map +1 -0
  1157. package/dist/hooks/team-pipeline/index.js +4 -0
  1158. package/dist/hooks/team-pipeline/index.js.map +1 -0
  1159. package/dist/hooks/team-pipeline/state.d.ts +7 -0
  1160. package/dist/hooks/team-pipeline/state.d.ts.map +1 -0
  1161. package/dist/hooks/team-pipeline/state.js +158 -0
  1162. package/dist/hooks/team-pipeline/state.js.map +1 -0
  1163. package/dist/hooks/team-pipeline/transitions.d.ts +6 -0
  1164. package/dist/hooks/team-pipeline/transitions.d.ts.map +1 -0
  1165. package/dist/hooks/team-pipeline/transitions.js +103 -0
  1166. package/dist/hooks/team-pipeline/transitions.js.map +1 -0
  1167. package/dist/hooks/team-pipeline/types.d.ts +58 -0
  1168. package/dist/hooks/team-pipeline/types.d.ts.map +1 -0
  1169. package/dist/hooks/team-pipeline/types.js +7 -0
  1170. package/dist/hooks/team-pipeline/types.js.map +1 -0
  1171. package/dist/hooks/think-mode/detector.d.ts +28 -0
  1172. package/dist/hooks/think-mode/detector.d.ts.map +1 -0
  1173. package/dist/hooks/think-mode/detector.js +105 -0
  1174. package/dist/hooks/think-mode/detector.js.map +1 -0
  1175. package/dist/hooks/think-mode/index.d.ts +70 -0
  1176. package/dist/hooks/think-mode/index.d.ts.map +1 -0
  1177. package/dist/hooks/think-mode/index.js +144 -0
  1178. package/dist/hooks/think-mode/index.js.map +1 -0
  1179. package/dist/hooks/think-mode/switcher.d.ts +39 -0
  1180. package/dist/hooks/think-mode/switcher.d.ts.map +1 -0
  1181. package/dist/hooks/think-mode/switcher.js +181 -0
  1182. package/dist/hooks/think-mode/switcher.js.map +1 -0
  1183. package/dist/hooks/think-mode/types.d.ts +60 -0
  1184. package/dist/hooks/think-mode/types.d.ts.map +1 -0
  1185. package/dist/hooks/think-mode/types.js +9 -0
  1186. package/dist/hooks/think-mode/types.js.map +1 -0
  1187. package/dist/hooks/thinking-block-validator/constants.d.ts +37 -0
  1188. package/dist/hooks/thinking-block-validator/constants.d.ts.map +1 -0
  1189. package/dist/hooks/thinking-block-validator/constants.js +50 -0
  1190. package/dist/hooks/thinking-block-validator/constants.js.map +1 -0
  1191. package/dist/hooks/thinking-block-validator/index.d.ts +35 -0
  1192. package/dist/hooks/thinking-block-validator/index.d.ts.map +1 -0
  1193. package/dist/hooks/thinking-block-validator/index.js +156 -0
  1194. package/dist/hooks/thinking-block-validator/index.js.map +1 -0
  1195. package/dist/hooks/thinking-block-validator/types.d.ts +67 -0
  1196. package/dist/hooks/thinking-block-validator/types.d.ts.map +1 -0
  1197. package/dist/hooks/thinking-block-validator/types.js +9 -0
  1198. package/dist/hooks/thinking-block-validator/types.js.map +1 -0
  1199. package/dist/hooks/timeout-wrapper.d.ts +32 -0
  1200. package/dist/hooks/timeout-wrapper.d.ts.map +1 -0
  1201. package/dist/hooks/timeout-wrapper.js +62 -0
  1202. package/dist/hooks/timeout-wrapper.js.map +1 -0
  1203. package/dist/hooks/todo-continuation/index.d.ts +186 -0
  1204. package/dist/hooks/todo-continuation/index.d.ts.map +1 -0
  1205. package/dist/hooks/todo-continuation/index.js +364 -0
  1206. package/dist/hooks/todo-continuation/index.js.map +1 -0
  1207. package/dist/hooks/ultrapilot/decomposer.d.ts +141 -0
  1208. package/dist/hooks/ultrapilot/decomposer.d.ts.map +1 -0
  1209. package/dist/hooks/ultrapilot/decomposer.js +376 -0
  1210. package/dist/hooks/ultrapilot/decomposer.js.map +1 -0
  1211. package/dist/hooks/ultrapilot/index.d.ts +121 -0
  1212. package/dist/hooks/ultrapilot/index.d.ts.map +1 -0
  1213. package/dist/hooks/ultrapilot/index.js +351 -0
  1214. package/dist/hooks/ultrapilot/index.js.map +1 -0
  1215. package/dist/hooks/ultrapilot/state.d.ts +72 -0
  1216. package/dist/hooks/ultrapilot/state.d.ts.map +1 -0
  1217. package/dist/hooks/ultrapilot/state.js +328 -0
  1218. package/dist/hooks/ultrapilot/state.js.map +1 -0
  1219. package/dist/hooks/ultrapilot/types.d.ts +115 -0
  1220. package/dist/hooks/ultrapilot/types.d.ts.map +1 -0
  1221. package/dist/hooks/ultrapilot/types.js +36 -0
  1222. package/dist/hooks/ultrapilot/types.js.map +1 -0
  1223. package/dist/hooks/ultraqa/index.js +254 -0
  1224. package/dist/hooks/ultraqa/index.js.map +1 -0
  1225. package/dist/hooks/ultrawork/index.js +127 -0
  1226. package/dist/hooks/ultrawork/index.js.map +1 -0
  1227. package/dist/hud/analytics-display.js +190 -0
  1228. package/dist/hud/analytics-display.js.map +1 -0
  1229. package/dist/hud/background-cleanup.d.ts +28 -0
  1230. package/dist/hud/background-cleanup.d.ts.map +1 -0
  1231. package/dist/hud/background-cleanup.js +92 -0
  1232. package/dist/hud/background-cleanup.js.map +1 -0
  1233. package/dist/hud/background-tasks.d.ts +26 -0
  1234. package/dist/hud/background-tasks.d.ts.map +1 -0
  1235. package/dist/hud/background-tasks.js +116 -0
  1236. package/dist/hud/background-tasks.js.map +1 -0
  1237. package/dist/hud/colors.d.ts +54 -0
  1238. package/dist/hud/colors.d.ts.map +1 -0
  1239. package/dist/hud/colors.js +156 -0
  1240. package/dist/hud/colors.js.map +1 -0
  1241. package/dist/hud/elements/agents.d.ts +73 -0
  1242. package/dist/hud/elements/agents.d.ts.map +1 -0
  1243. package/dist/hud/elements/agents.js +493 -0
  1244. package/dist/hud/elements/agents.js.map +1 -0
  1245. package/dist/hud/elements/autopilot.d.ts +29 -0
  1246. package/dist/hud/elements/autopilot.d.ts.map +1 -0
  1247. package/dist/hud/elements/autopilot.js +97 -0
  1248. package/dist/hud/elements/autopilot.js.map +1 -0
  1249. package/dist/hud/elements/axiom.d.ts +36 -0
  1250. package/dist/hud/elements/axiom.d.ts.map +1 -0
  1251. package/dist/hud/elements/axiom.js +275 -0
  1252. package/dist/hud/elements/axiom.js.map +1 -0
  1253. package/dist/hud/elements/background.d.ts +20 -0
  1254. package/dist/hud/elements/background.d.ts.map +1 -0
  1255. package/dist/hud/elements/background.js +71 -0
  1256. package/dist/hud/elements/background.js.map +1 -0
  1257. package/dist/hud/elements/call-counts.d.ts +21 -0
  1258. package/dist/hud/elements/call-counts.d.ts.map +1 -0
  1259. package/dist/hud/elements/call-counts.js +39 -0
  1260. package/dist/hud/elements/call-counts.js.map +1 -0
  1261. package/dist/hud/elements/context-warning.d.ts +16 -0
  1262. package/dist/hud/elements/context-warning.d.ts.map +1 -0
  1263. package/dist/hud/elements/context-warning.js +29 -0
  1264. package/dist/hud/elements/context-warning.js.map +1 -0
  1265. package/dist/hud/elements/context.d.ts +19 -0
  1266. package/dist/hud/elements/context.d.ts.map +1 -0
  1267. package/dist/hud/elements/context.js +64 -0
  1268. package/dist/hud/elements/context.js.map +1 -0
  1269. package/dist/hud/elements/cwd.d.ts +15 -0
  1270. package/dist/hud/elements/cwd.d.ts.map +1 -0
  1271. package/dist/hud/elements/cwd.js +39 -0
  1272. package/dist/hud/elements/cwd.js.map +1 -0
  1273. package/dist/hud/elements/git.d.ts +32 -0
  1274. package/dist/hud/elements/git.d.ts.map +1 -0
  1275. package/dist/hud/elements/git.js +48 -0
  1276. package/dist/hud/elements/git.js.map +1 -0
  1277. package/dist/hud/elements/index.d.ts +21 -0
  1278. package/dist/hud/elements/index.d.ts.map +1 -0
  1279. package/dist/hud/elements/index.js +21 -0
  1280. package/dist/hud/elements/index.js.map +1 -0
  1281. package/dist/hud/elements/limits.d.ts +25 -0
  1282. package/dist/hud/elements/limits.d.ts.map +1 -0
  1283. package/dist/hud/elements/limits.js +151 -0
  1284. package/dist/hud/elements/limits.js.map +1 -0
  1285. package/dist/hud/elements/model.d.ts +16 -0
  1286. package/dist/hud/elements/model.d.ts.map +1 -0
  1287. package/dist/hud/elements/model.js +63 -0
  1288. package/dist/hud/elements/model.js.map +1 -0
  1289. package/dist/hud/elements/permission.d.ts +13 -0
  1290. package/dist/hud/elements/permission.d.ts.map +1 -0
  1291. package/dist/hud/elements/permission.js +20 -0
  1292. package/dist/hud/elements/permission.js.map +1 -0
  1293. package/dist/hud/elements/prd.d.ts +20 -0
  1294. package/dist/hud/elements/prd.d.ts.map +1 -0
  1295. package/dist/hud/elements/prd.js +52 -0
  1296. package/dist/hud/elements/prd.js.map +1 -0
  1297. package/dist/hud/elements/ralph.d.ts +14 -0
  1298. package/dist/hud/elements/ralph.d.ts.map +1 -0
  1299. package/dist/hud/elements/ralph.js +36 -0
  1300. package/dist/hud/elements/ralph.js.map +1 -0
  1301. package/dist/hud/elements/session.d.ts +13 -0
  1302. package/dist/hud/elements/session.d.ts.map +1 -0
  1303. package/dist/hud/elements/session.js +24 -0
  1304. package/dist/hud/elements/session.js.map +1 -0
  1305. package/dist/hud/elements/skills.d.ts +24 -0
  1306. package/dist/hud/elements/skills.d.ts.map +1 -0
  1307. package/dist/hud/elements/skills.js +93 -0
  1308. package/dist/hud/elements/skills.js.map +1 -0
  1309. package/dist/hud/elements/suggestions.d.ts +25 -0
  1310. package/dist/hud/elements/suggestions.d.ts.map +1 -0
  1311. package/dist/hud/elements/suggestions.js +118 -0
  1312. package/dist/hud/elements/suggestions.js.map +1 -0
  1313. package/dist/hud/elements/thinking.d.ts +15 -0
  1314. package/dist/hud/elements/thinking.d.ts.map +1 -0
  1315. package/dist/hud/elements/thinking.js +31 -0
  1316. package/dist/hud/elements/thinking.js.map +1 -0
  1317. package/dist/hud/elements/todos.d.ts +20 -0
  1318. package/dist/hud/elements/todos.d.ts.map +1 -0
  1319. package/dist/hud/elements/todos.js +71 -0
  1320. package/dist/hud/elements/todos.js.map +1 -0
  1321. package/dist/hud/index.js +396 -0
  1322. package/dist/hud/index.js.map +1 -0
  1323. package/dist/hud/omc-state.d.ts +38 -0
  1324. package/dist/hud/omc-state.d.ts.map +1 -0
  1325. package/dist/hud/omc-state.js +254 -0
  1326. package/dist/hud/omc-state.js.map +1 -0
  1327. package/dist/hud/render.js +328 -0
  1328. package/dist/hud/render.js.map +1 -0
  1329. package/dist/hud/sanitize.d.ts +54 -0
  1330. package/dist/hud/sanitize.d.ts.map +1 -0
  1331. package/dist/hud/sanitize.js +87 -0
  1332. package/dist/hud/sanitize.js.map +1 -0
  1333. package/dist/hud/state.d.ts +49 -0
  1334. package/dist/hud/state.d.ts.map +1 -0
  1335. package/dist/hud/state.js +299 -0
  1336. package/dist/hud/state.js.map +1 -0
  1337. package/dist/hud/stdin.d.ts +22 -0
  1338. package/dist/hud/stdin.d.ts.map +1 -0
  1339. package/dist/hud/stdin.js +74 -0
  1340. package/dist/hud/stdin.js.map +1 -0
  1341. package/dist/hud/transcript.d.ts +35 -0
  1342. package/dist/hud/transcript.d.ts.map +1 -0
  1343. package/dist/hud/transcript.js +373 -0
  1344. package/dist/hud/transcript.js.map +1 -0
  1345. package/dist/hud/types.d.ts +290 -0
  1346. package/dist/hud/types.d.ts.map +1 -0
  1347. package/dist/hud/types.js +242 -0
  1348. package/dist/hud/types.js.map +1 -0
  1349. package/dist/hud/usage-api.d.ts +46 -0
  1350. package/dist/hud/usage-api.d.ts.map +1 -0
  1351. package/dist/hud/usage-api.js +547 -0
  1352. package/dist/hud/usage-api.js.map +1 -0
  1353. package/dist/installer/hooks.d.ts +117 -0
  1354. package/dist/installer/hooks.d.ts.map +1 -0
  1355. package/dist/installer/hooks.js +383 -0
  1356. package/dist/installer/hooks.js.map +1 -0
  1357. package/dist/installer/index.d.ts +140 -0
  1358. package/dist/installer/index.d.ts.map +1 -0
  1359. package/dist/installer/index.js +824 -0
  1360. package/dist/installer/index.js.map +1 -0
  1361. package/dist/interop/mcp-bridge.js +507 -0
  1362. package/dist/interop/mcp-bridge.js.map +1 -0
  1363. package/dist/interop/omx-team-state.d.ts +122 -0
  1364. package/dist/interop/omx-team-state.d.ts.map +1 -0
  1365. package/dist/interop/omx-team-state.js +260 -0
  1366. package/dist/interop/omx-team-state.js.map +1 -0
  1367. package/dist/interop/shared-state.d.ts +96 -0
  1368. package/dist/interop/shared-state.d.ts.map +1 -0
  1369. package/dist/interop/shared-state.js +270 -0
  1370. package/dist/interop/shared-state.js.map +1 -0
  1371. package/dist/lib/atomic-write.d.ts +56 -0
  1372. package/dist/lib/atomic-write.d.ts.map +1 -0
  1373. package/dist/lib/atomic-write.js +240 -0
  1374. package/dist/lib/atomic-write.js.map +1 -0
  1375. package/dist/lib/constants.d.ts +59 -0
  1376. package/dist/lib/constants.d.ts.map +1 -0
  1377. package/dist/lib/constants.js +69 -0
  1378. package/dist/lib/constants.js.map +1 -0
  1379. package/dist/lib/env-validator.d.ts +28 -0
  1380. package/dist/lib/env-validator.d.ts.map +1 -0
  1381. package/dist/lib/env-validator.js +105 -0
  1382. package/dist/lib/env-validator.js.map +1 -0
  1383. package/dist/lib/file-cache.d.ts +16 -0
  1384. package/dist/lib/file-cache.d.ts.map +1 -0
  1385. package/dist/lib/file-cache.js +33 -0
  1386. package/dist/lib/file-cache.js.map +1 -0
  1387. package/dist/lib/git-utils.d.ts +55 -0
  1388. package/dist/lib/git-utils.d.ts.map +1 -0
  1389. package/dist/lib/git-utils.js +140 -0
  1390. package/dist/lib/git-utils.js.map +1 -0
  1391. package/dist/lib/memory-utils.d.ts +7 -0
  1392. package/dist/lib/memory-utils.d.ts.map +1 -0
  1393. package/dist/lib/memory-utils.js +21 -0
  1394. package/dist/lib/memory-utils.js.map +1 -0
  1395. package/dist/lib/path-validator.d.ts +25 -0
  1396. package/dist/lib/path-validator.d.ts.map +1 -0
  1397. package/dist/lib/path-validator.js +88 -0
  1398. package/dist/lib/path-validator.js.map +1 -0
  1399. package/dist/lib/plugin-deps.d.ts +26 -0
  1400. package/dist/lib/plugin-deps.d.ts.map +1 -0
  1401. package/dist/lib/plugin-deps.js +59 -0
  1402. package/dist/lib/plugin-deps.js.map +1 -0
  1403. package/dist/lib/plugin-marketplace.d.ts +12 -0
  1404. package/dist/lib/plugin-marketplace.d.ts.map +1 -0
  1405. package/dist/lib/plugin-marketplace.js +35 -0
  1406. package/dist/lib/plugin-marketplace.js.map +1 -0
  1407. package/dist/lib/plugin-registry.d.ts +42 -0
  1408. package/dist/lib/plugin-registry.d.ts.map +1 -0
  1409. package/dist/lib/plugin-registry.js +185 -0
  1410. package/dist/lib/plugin-registry.js.map +1 -0
  1411. package/dist/lib/plugin-rollback.d.ts +22 -0
  1412. package/dist/lib/plugin-rollback.d.ts.map +1 -0
  1413. package/dist/lib/plugin-rollback.js +66 -0
  1414. package/dist/lib/plugin-rollback.js.map +1 -0
  1415. package/dist/lib/plugin-security.d.ts +19 -0
  1416. package/dist/lib/plugin-security.d.ts.map +1 -0
  1417. package/dist/lib/plugin-security.js +87 -0
  1418. package/dist/lib/plugin-security.js.map +1 -0
  1419. package/dist/lib/safe-json.d.ts +16 -0
  1420. package/dist/lib/safe-json.d.ts.map +1 -0
  1421. package/dist/lib/safe-json.js +22 -0
  1422. package/dist/lib/safe-json.js.map +1 -0
  1423. package/dist/lib/state-cache.d.ts +26 -0
  1424. package/dist/lib/state-cache.d.ts.map +1 -0
  1425. package/dist/lib/state-cache.js +48 -0
  1426. package/dist/lib/state-cache.js.map +1 -0
  1427. package/dist/lib/version.d.ts +10 -0
  1428. package/dist/lib/version.d.ts.map +1 -0
  1429. package/dist/lib/version.js +37 -0
  1430. package/dist/lib/version.js.map +1 -0
  1431. package/dist/lib/worktree-paths.d.ts +197 -0
  1432. package/dist/lib/worktree-paths.d.ts.map +1 -0
  1433. package/dist/lib/worktree-paths.js +426 -0
  1434. package/dist/lib/worktree-paths.js.map +1 -0
  1435. package/dist/mcp/adapters/ast-adapter.js +36 -0
  1436. package/dist/mcp/adapters/ast-adapter.js.map +1 -0
  1437. package/dist/mcp/adapters/lsp-adapter.js +6 -0
  1438. package/dist/mcp/adapters/lsp-adapter.js.map +1 -0
  1439. package/dist/mcp/adapters/memory-adapter.d.ts +1 -1
  1440. package/dist/mcp/adapters/memory-adapter.js +59 -0
  1441. package/dist/mcp/adapters/memory-adapter.js.map +1 -0
  1442. package/dist/mcp/adapters/notepad-adapter.js +78 -0
  1443. package/dist/mcp/adapters/notepad-adapter.js.map +1 -0
  1444. package/dist/mcp/adapters/python-adapter.js +44 -0
  1445. package/dist/mcp/adapters/python-adapter.js.map +1 -0
  1446. package/dist/mcp/adapters/skills-adapter.js +35 -0
  1447. package/dist/mcp/adapters/skills-adapter.js.map +1 -0
  1448. package/dist/mcp/adapters/state-adapter.d.ts +6 -6
  1449. package/dist/mcp/adapters/state-adapter.js +82 -0
  1450. package/dist/mcp/adapters/state-adapter.js.map +1 -0
  1451. package/dist/mcp/adapters/trace-adapter.d.ts +3 -3
  1452. package/dist/mcp/adapters/trace-adapter.js +30 -0
  1453. package/dist/mcp/adapters/trace-adapter.js.map +1 -0
  1454. package/dist/mcp/cli-detection.d.ts +26 -0
  1455. package/dist/mcp/cli-detection.d.ts.map +1 -0
  1456. package/dist/mcp/cli-detection.js +90 -0
  1457. package/dist/mcp/cli-detection.js.map +1 -0
  1458. package/dist/mcp/client.js +36 -0
  1459. package/dist/mcp/client.js.map +1 -0
  1460. package/dist/mcp/codex-core.d.ts +123 -0
  1461. package/dist/mcp/codex-core.d.ts.map +1 -0
  1462. package/dist/mcp/codex-core.js +953 -0
  1463. package/dist/mcp/codex-core.js.map +1 -0
  1464. package/dist/mcp/codex-server.js +70 -0
  1465. package/dist/mcp/codex-server.js.map +1 -0
  1466. package/dist/mcp/codex-standalone-server.js +72 -0
  1467. package/dist/mcp/codex-standalone-server.js.map +1 -0
  1468. package/dist/mcp/config/config-loader.js +16 -0
  1469. package/dist/mcp/config/config-loader.js.map +1 -0
  1470. package/dist/mcp/config/env-replacer.d.ts +10 -0
  1471. package/dist/mcp/config/env-replacer.d.ts.map +1 -0
  1472. package/dist/mcp/config/env-replacer.js +39 -0
  1473. package/dist/mcp/config/env-replacer.js.map +1 -0
  1474. package/dist/mcp/config/loader.js +51 -0
  1475. package/dist/mcp/config/loader.js.map +1 -0
  1476. package/dist/mcp/config/schema.d.ts +3 -3
  1477. package/dist/mcp/config/schema.js +15 -0
  1478. package/dist/mcp/config/schema.js.map +1 -0
  1479. package/dist/mcp/config-loader.js +66 -0
  1480. package/dist/mcp/config-loader.js.map +1 -0
  1481. package/dist/mcp/config-schema.d.ts +3 -3
  1482. package/dist/mcp/config-schema.js +18 -0
  1483. package/dist/mcp/config-schema.js.map +1 -0
  1484. package/dist/mcp/gemini-core.d.ts +80 -0
  1485. package/dist/mcp/gemini-core.d.ts.map +1 -0
  1486. package/dist/mcp/gemini-core.js +707 -0
  1487. package/dist/mcp/gemini-core.js.map +1 -0
  1488. package/dist/mcp/gemini-server.js +70 -0
  1489. package/dist/mcp/gemini-server.js.map +1 -0
  1490. package/dist/mcp/gemini-standalone-server.js +72 -0
  1491. package/dist/mcp/gemini-standalone-server.js.map +1 -0
  1492. package/dist/mcp/index.js +21 -0
  1493. package/dist/mcp/index.js.map +1 -0
  1494. package/dist/mcp/job-management.d.ts +151 -0
  1495. package/dist/mcp/job-management.d.ts.map +1 -0
  1496. package/dist/mcp/job-management.js +825 -0
  1497. package/dist/mcp/job-management.js.map +1 -0
  1498. package/dist/mcp/job-state-db.d.ts +150 -0
  1499. package/dist/mcp/job-state-db.d.ts.map +1 -0
  1500. package/dist/mcp/job-state-db.js +674 -0
  1501. package/dist/mcp/job-state-db.js.map +1 -0
  1502. package/dist/mcp/logger.d.ts +7 -0
  1503. package/dist/mcp/logger.d.ts.map +1 -0
  1504. package/dist/mcp/logger.js +19 -0
  1505. package/dist/mcp/logger.js.map +1 -0
  1506. package/dist/mcp/mcp-config.d.ts +55 -0
  1507. package/dist/mcp/mcp-config.d.ts.map +1 -0
  1508. package/dist/mcp/mcp-config.js +94 -0
  1509. package/dist/mcp/mcp-config.js.map +1 -0
  1510. package/dist/mcp/namespace-manager.d.ts +25 -0
  1511. package/dist/mcp/namespace-manager.d.ts.map +1 -0
  1512. package/dist/mcp/namespace-manager.js +26 -0
  1513. package/dist/mcp/namespace-manager.js.map +1 -0
  1514. package/dist/mcp/namespace.js +56 -0
  1515. package/dist/mcp/namespace.js.map +1 -0
  1516. package/dist/mcp/omc-tools-server.js +136 -0
  1517. package/dist/mcp/omc-tools-server.js.map +1 -0
  1518. package/dist/mcp/prompt-injection.d.ts +69 -0
  1519. package/dist/mcp/prompt-injection.d.ts.map +1 -0
  1520. package/dist/mcp/prompt-injection.js +162 -0
  1521. package/dist/mcp/prompt-injection.js.map +1 -0
  1522. package/dist/mcp/prompt-persistence.d.ts +140 -0
  1523. package/dist/mcp/prompt-persistence.d.ts.map +1 -0
  1524. package/dist/mcp/prompt-persistence.js +374 -0
  1525. package/dist/mcp/prompt-persistence.js.map +1 -0
  1526. package/dist/mcp/retry-client.js +59 -0
  1527. package/dist/mcp/retry-client.js.map +1 -0
  1528. package/dist/mcp/servers.d.ts +75 -0
  1529. package/dist/mcp/servers.d.ts.map +1 -0
  1530. package/dist/mcp/servers.js +116 -0
  1531. package/dist/mcp/servers.js.map +1 -0
  1532. package/dist/mcp/shared-exec.d.ts +50 -0
  1533. package/dist/mcp/shared-exec.d.ts.map +1 -0
  1534. package/dist/mcp/shared-exec.js +182 -0
  1535. package/dist/mcp/shared-exec.js.map +1 -0
  1536. package/dist/mcp/standalone-server.js +129 -0
  1537. package/dist/mcp/standalone-server.js.map +1 -0
  1538. package/dist/mcp/timeout.d.ts +8 -0
  1539. package/dist/mcp/timeout.d.ts.map +1 -0
  1540. package/dist/mcp/timeout.js +14 -0
  1541. package/dist/mcp/timeout.js.map +1 -0
  1542. package/dist/mcp/tool-handler.js +32 -0
  1543. package/dist/mcp/tool-handler.js.map +1 -0
  1544. package/dist/mcp/tool-resolver.js +30 -0
  1545. package/dist/mcp/tool-resolver.js.map +1 -0
  1546. package/dist/monitoring/dashboard.d.ts +13 -0
  1547. package/dist/monitoring/dashboard.d.ts.map +1 -0
  1548. package/dist/monitoring/dashboard.js +93 -0
  1549. package/dist/monitoring/dashboard.js.map +1 -0
  1550. package/dist/monitoring/index.d.ts +3 -0
  1551. package/dist/monitoring/index.d.ts.map +1 -0
  1552. package/dist/monitoring/index.js +3 -0
  1553. package/dist/monitoring/index.js.map +1 -0
  1554. package/dist/monitoring/metrics-collector.d.ts +18 -0
  1555. package/dist/monitoring/metrics-collector.d.ts.map +1 -0
  1556. package/dist/monitoring/metrics-collector.js +68 -0
  1557. package/dist/monitoring/metrics-collector.js.map +1 -0
  1558. package/dist/notifications/config.d.ts +79 -0
  1559. package/dist/notifications/config.d.ts.map +1 -0
  1560. package/dist/notifications/config.js +479 -0
  1561. package/dist/notifications/config.js.map +1 -0
  1562. package/dist/notifications/dispatcher.d.ts +38 -0
  1563. package/dist/notifications/dispatcher.d.ts.map +1 -0
  1564. package/dist/notifications/dispatcher.js +476 -0
  1565. package/dist/notifications/dispatcher.js.map +1 -0
  1566. package/dist/notifications/formatter.d.ts +37 -0
  1567. package/dist/notifications/formatter.d.ts.map +1 -0
  1568. package/dist/notifications/formatter.js +166 -0
  1569. package/dist/notifications/formatter.js.map +1 -0
  1570. package/dist/notifications/index.d.ts +32 -0
  1571. package/dist/notifications/index.d.ts.map +1 -0
  1572. package/dist/notifications/index.js +99 -0
  1573. package/dist/notifications/index.js.map +1 -0
  1574. package/dist/notifications/reply-listener.d.ts +111 -0
  1575. package/dist/notifications/reply-listener.d.ts.map +1 -0
  1576. package/dist/notifications/reply-listener.js +809 -0
  1577. package/dist/notifications/reply-listener.js.map +1 -0
  1578. package/dist/notifications/session-registry.d.ts +52 -0
  1579. package/dist/notifications/session-registry.d.ts.map +1 -0
  1580. package/dist/notifications/session-registry.js +405 -0
  1581. package/dist/notifications/session-registry.js.map +1 -0
  1582. package/dist/notifications/tmux.d.ts +27 -0
  1583. package/dist/notifications/tmux.d.ts.map +1 -0
  1584. package/dist/notifications/tmux.js +103 -0
  1585. package/dist/notifications/tmux.js.map +1 -0
  1586. package/dist/notifications/types.d.ts +167 -0
  1587. package/dist/notifications/types.d.ts.map +1 -0
  1588. package/dist/notifications/types.js +9 -0
  1589. package/dist/notifications/types.js.map +1 -0
  1590. package/dist/platform/index.d.ts +16 -0
  1591. package/dist/platform/index.d.ts.map +1 -0
  1592. package/dist/platform/index.js +29 -0
  1593. package/dist/platform/index.js.map +1 -0
  1594. package/dist/platform/process-utils.d.ts +26 -0
  1595. package/dist/platform/process-utils.d.ts.map +1 -0
  1596. package/dist/platform/process-utils.js +156 -0
  1597. package/dist/platform/process-utils.js.map +1 -0
  1598. package/dist/providers/azure-devops.d.ts +13 -0
  1599. package/dist/providers/azure-devops.d.ts.map +1 -0
  1600. package/dist/providers/azure-devops.js +77 -0
  1601. package/dist/providers/azure-devops.js.map +1 -0
  1602. package/dist/providers/bitbucket.d.ts +13 -0
  1603. package/dist/providers/bitbucket.d.ts.map +1 -0
  1604. package/dist/providers/bitbucket.js +88 -0
  1605. package/dist/providers/bitbucket.js.map +1 -0
  1606. package/dist/providers/gitea.d.ts +20 -0
  1607. package/dist/providers/gitea.d.ts.map +1 -0
  1608. package/dist/providers/gitea.js +168 -0
  1609. package/dist/providers/gitea.js.map +1 -0
  1610. package/dist/providers/github.d.ts +13 -0
  1611. package/dist/providers/github.d.ts.map +1 -0
  1612. package/dist/providers/github.js +79 -0
  1613. package/dist/providers/github.js.map +1 -0
  1614. package/dist/providers/gitlab.d.ts +14 -0
  1615. package/dist/providers/gitlab.d.ts.map +1 -0
  1616. package/dist/providers/gitlab.js +94 -0
  1617. package/dist/providers/gitlab.js.map +1 -0
  1618. package/dist/providers/index.d.ts +37 -0
  1619. package/dist/providers/index.d.ts.map +1 -0
  1620. package/dist/providers/index.js +196 -0
  1621. package/dist/providers/index.js.map +1 -0
  1622. package/dist/providers/types.d.ts +66 -0
  1623. package/dist/providers/types.d.ts.map +1 -0
  1624. package/dist/providers/types.js +8 -0
  1625. package/dist/providers/types.js.map +1 -0
  1626. package/dist/shared/index.d.ts +5 -0
  1627. package/dist/shared/index.d.ts.map +1 -0
  1628. package/dist/shared/index.js +5 -0
  1629. package/dist/shared/index.js.map +1 -0
  1630. package/dist/shared/types.d.ts +270 -0
  1631. package/dist/shared/types.d.ts.map +1 -0
  1632. package/dist/shared/types.js +5 -0
  1633. package/dist/shared/types.js.map +1 -0
  1634. package/dist/team/activity-log.d.ts +23 -0
  1635. package/dist/team/activity-log.d.ts.map +1 -0
  1636. package/dist/team/activity-log.js +102 -0
  1637. package/dist/team/activity-log.js.map +1 -0
  1638. package/dist/team/audit-log.d.ts +29 -0
  1639. package/dist/team/audit-log.d.ts.map +1 -0
  1640. package/dist/team/audit-log.js +92 -0
  1641. package/dist/team/audit-log.js.map +1 -0
  1642. package/dist/team/bridge-entry.d.ts +29 -0
  1643. package/dist/team/bridge-entry.d.ts.map +1 -0
  1644. package/dist/team/bridge-entry.js +203 -0
  1645. package/dist/team/bridge-entry.js.map +1 -0
  1646. package/dist/team/capabilities.d.ts +29 -0
  1647. package/dist/team/capabilities.d.ts.map +1 -0
  1648. package/dist/team/capabilities.js +51 -0
  1649. package/dist/team/capabilities.js.map +1 -0
  1650. package/dist/team/deadlock-detector.d.ts +16 -0
  1651. package/dist/team/deadlock-detector.d.ts.map +1 -0
  1652. package/dist/team/deadlock-detector.js +52 -0
  1653. package/dist/team/deadlock-detector.js.map +1 -0
  1654. package/dist/team/dependency-graph.d.ts +23 -0
  1655. package/dist/team/dependency-graph.d.ts.map +1 -0
  1656. package/dist/team/dependency-graph.js +35 -0
  1657. package/dist/team/dependency-graph.js.map +1 -0
  1658. package/dist/team/fs-utils.d.ts +14 -0
  1659. package/dist/team/fs-utils.d.ts.map +1 -0
  1660. package/dist/team/fs-utils.js +70 -0
  1661. package/dist/team/fs-utils.js.map +1 -0
  1662. package/dist/team/git-worktree.d.ts +26 -0
  1663. package/dist/team/git-worktree.d.ts.map +1 -0
  1664. package/dist/team/git-worktree.js +138 -0
  1665. package/dist/team/git-worktree.js.map +1 -0
  1666. package/dist/team/heartbeat.d.ts +18 -0
  1667. package/dist/team/heartbeat.d.ts.map +1 -0
  1668. package/dist/team/heartbeat.js +110 -0
  1669. package/dist/team/heartbeat.js.map +1 -0
  1670. package/dist/team/inbox-outbox.d.ts +58 -0
  1671. package/dist/team/inbox-outbox.d.ts.map +1 -0
  1672. package/dist/team/inbox-outbox.js +334 -0
  1673. package/dist/team/inbox-outbox.js.map +1 -0
  1674. package/dist/team/index.d.ts +45 -0
  1675. package/dist/team/index.d.ts.map +1 -0
  1676. package/dist/team/index.js +26 -0
  1677. package/dist/team/index.js.map +1 -0
  1678. package/dist/team/mcp-team-bridge.d.ts +38 -0
  1679. package/dist/team/mcp-team-bridge.d.ts.map +1 -0
  1680. package/dist/team/mcp-team-bridge.js +700 -0
  1681. package/dist/team/mcp-team-bridge.js.map +1 -0
  1682. package/dist/team/merge-coordinator.d.ts +25 -0
  1683. package/dist/team/merge-coordinator.d.ts.map +1 -0
  1684. package/dist/team/merge-coordinator.js +118 -0
  1685. package/dist/team/merge-coordinator.js.map +1 -0
  1686. package/dist/team/message-router.d.ts +21 -0
  1687. package/dist/team/message-router.d.ts.map +1 -0
  1688. package/dist/team/message-router.js +82 -0
  1689. package/dist/team/message-router.js.map +1 -0
  1690. package/dist/team/outbox-reader.d.ts +22 -0
  1691. package/dist/team/outbox-reader.d.ts.map +1 -0
  1692. package/dist/team/outbox-reader.js +103 -0
  1693. package/dist/team/outbox-reader.js.map +1 -0
  1694. package/dist/team/permissions.d.ts +47 -0
  1695. package/dist/team/permissions.d.ts.map +1 -0
  1696. package/dist/team/permissions.js +203 -0
  1697. package/dist/team/permissions.js.map +1 -0
  1698. package/dist/team/summary-report.d.ts +11 -0
  1699. package/dist/team/summary-report.d.ts.map +1 -0
  1700. package/dist/team/summary-report.js +101 -0
  1701. package/dist/team/summary-report.js.map +1 -0
  1702. package/dist/team/task-file-ops.d.ts +76 -0
  1703. package/dist/team/task-file-ops.d.ts.map +1 -0
  1704. package/dist/team/task-file-ops.js +348 -0
  1705. package/dist/team/task-file-ops.js.map +1 -0
  1706. package/dist/team/task-router.d.ts +28 -0
  1707. package/dist/team/task-router.d.ts.map +1 -0
  1708. package/dist/team/task-router.js +61 -0
  1709. package/dist/team/task-router.js.map +1 -0
  1710. package/dist/team/team-registration.d.ts +30 -0
  1711. package/dist/team/team-registration.d.ts.map +1 -0
  1712. package/dist/team/team-registration.js +187 -0
  1713. package/dist/team/team-registration.js.map +1 -0
  1714. package/dist/team/team-status.d.ts +29 -0
  1715. package/dist/team/team-status.d.ts.map +1 -0
  1716. package/dist/team/team-status.js +95 -0
  1717. package/dist/team/team-status.js.map +1 -0
  1718. package/dist/team/tmux-session.d.ts +23 -0
  1719. package/dist/team/tmux-session.d.ts.map +1 -0
  1720. package/dist/team/tmux-session.js +98 -0
  1721. package/dist/team/tmux-session.js.map +1 -0
  1722. package/dist/team/types.d.ts +133 -0
  1723. package/dist/team/types.d.ts.map +1 -0
  1724. package/dist/team/types.js +2 -0
  1725. package/dist/team/types.js.map +1 -0
  1726. package/dist/team/unified-team.d.ts +7 -0
  1727. package/dist/team/unified-team.d.ts.map +1 -0
  1728. package/dist/team/unified-team.js +82 -0
  1729. package/dist/team/unified-team.js.map +1 -0
  1730. package/dist/team/usage-tracker.d.ts +44 -0
  1731. package/dist/team/usage-tracker.d.ts.map +1 -0
  1732. package/dist/team/usage-tracker.js +102 -0
  1733. package/dist/team/usage-tracker.js.map +1 -0
  1734. package/dist/team/worker-health.d.ts +29 -0
  1735. package/dist/team/worker-health.d.ts.map +1 -0
  1736. package/dist/team/worker-health.js +172 -0
  1737. package/dist/team/worker-health.js.map +1 -0
  1738. package/dist/team/worker-restart.d.ts +38 -0
  1739. package/dist/team/worker-restart.d.ts.map +1 -0
  1740. package/dist/team/worker-restart.js +155 -0
  1741. package/dist/team/worker-restart.js.map +1 -0
  1742. package/dist/tools/ast-tools.js +577 -0
  1743. package/dist/tools/ast-tools.js.map +1 -0
  1744. package/dist/tools/dependency-analyzer.js +57 -0
  1745. package/dist/tools/dependency-analyzer.js.map +1 -0
  1746. package/dist/tools/diagnostics/constants.d.ts +5 -0
  1747. package/dist/tools/diagnostics/constants.d.ts.map +1 -0
  1748. package/dist/tools/diagnostics/constants.js +5 -0
  1749. package/dist/tools/diagnostics/constants.js.map +1 -0
  1750. package/dist/tools/diagnostics/index.d.ts +30 -0
  1751. package/dist/tools/diagnostics/index.d.ts.map +1 -0
  1752. package/dist/tools/diagnostics/index.js +119 -0
  1753. package/dist/tools/diagnostics/index.js.map +1 -0
  1754. package/dist/tools/diagnostics/lsp-aggregator.d.ts +26 -0
  1755. package/dist/tools/diagnostics/lsp-aggregator.d.ts.map +1 -0
  1756. package/dist/tools/diagnostics/lsp-aggregator.js +97 -0
  1757. package/dist/tools/diagnostics/lsp-aggregator.js.map +1 -0
  1758. package/dist/tools/diagnostics/tsc-runner.d.ts +26 -0
  1759. package/dist/tools/diagnostics/tsc-runner.d.ts.map +1 -0
  1760. package/dist/tools/diagnostics/tsc-runner.js +71 -0
  1761. package/dist/tools/diagnostics/tsc-runner.js.map +1 -0
  1762. package/dist/tools/doc-sync.js +67 -0
  1763. package/dist/tools/doc-sync.js.map +1 -0
  1764. package/dist/tools/index.js +166 -0
  1765. package/dist/tools/index.js.map +1 -0
  1766. package/dist/tools/lsp/client.d.ts +248 -0
  1767. package/dist/tools/lsp/client.d.ts.map +1 -0
  1768. package/dist/tools/lsp/client.js +670 -0
  1769. package/dist/tools/lsp/client.js.map +1 -0
  1770. package/dist/tools/lsp/index.d.ts +9 -0
  1771. package/dist/tools/lsp/index.d.ts.map +1 -0
  1772. package/dist/tools/lsp/index.js +7 -0
  1773. package/dist/tools/lsp/index.js.map +1 -0
  1774. package/dist/tools/lsp/memory-optimizer.d.ts +19 -0
  1775. package/dist/tools/lsp/memory-optimizer.d.ts.map +1 -0
  1776. package/dist/tools/lsp/memory-optimizer.js +48 -0
  1777. package/dist/tools/lsp/memory-optimizer.js.map +1 -0
  1778. package/dist/tools/lsp/servers.d.ts +43 -0
  1779. package/dist/tools/lsp/servers.d.ts.map +1 -0
  1780. package/dist/tools/lsp/servers.js +238 -0
  1781. package/dist/tools/lsp/servers.js.map +1 -0
  1782. package/dist/tools/lsp/utils.d.ts +58 -0
  1783. package/dist/tools/lsp/utils.d.ts.map +1 -0
  1784. package/dist/tools/lsp/utils.js +243 -0
  1785. package/dist/tools/lsp/utils.js.map +1 -0
  1786. package/dist/tools/lsp-tools.js +406 -0
  1787. package/dist/tools/lsp-tools.js.map +1 -0
  1788. package/dist/tools/memory-tools.js +230 -0
  1789. package/dist/tools/memory-tools.js.map +1 -0
  1790. package/dist/tools/notepad-tools.js +309 -0
  1791. package/dist/tools/notepad-tools.js.map +1 -0
  1792. package/dist/tools/parallel-opportunity-detector.js +66 -0
  1793. package/dist/tools/parallel-opportunity-detector.js.map +1 -0
  1794. package/dist/tools/python-repl/bridge-manager.d.ts +95 -0
  1795. package/dist/tools/python-repl/bridge-manager.d.ts.map +1 -0
  1796. package/dist/tools/python-repl/bridge-manager.js +620 -0
  1797. package/dist/tools/python-repl/bridge-manager.js.map +1 -0
  1798. package/dist/tools/python-repl/index.js +36 -0
  1799. package/dist/tools/python-repl/index.js.map +1 -0
  1800. package/dist/tools/python-repl/paths.d.ts +84 -0
  1801. package/dist/tools/python-repl/paths.d.ts.map +1 -0
  1802. package/dist/tools/python-repl/paths.js +221 -0
  1803. package/dist/tools/python-repl/paths.js.map +1 -0
  1804. package/dist/tools/python-repl/session-lock.d.ts +111 -0
  1805. package/dist/tools/python-repl/session-lock.d.ts.map +1 -0
  1806. package/dist/tools/python-repl/session-lock.js +474 -0
  1807. package/dist/tools/python-repl/session-lock.js.map +1 -0
  1808. package/dist/tools/python-repl/socket-client.d.ts +42 -0
  1809. package/dist/tools/python-repl/socket-client.d.ts.map +1 -0
  1810. package/dist/tools/python-repl/socket-client.js +157 -0
  1811. package/dist/tools/python-repl/socket-client.js.map +1 -0
  1812. package/dist/tools/python-repl/tool.js +579 -0
  1813. package/dist/tools/python-repl/tool.js.map +1 -0
  1814. package/dist/tools/python-repl/types.d.ts +95 -0
  1815. package/dist/tools/python-repl/types.d.ts.map +1 -0
  1816. package/dist/tools/python-repl/types.js +2 -0
  1817. package/dist/tools/python-repl/types.js.map +1 -0
  1818. package/dist/tools/resume-session.d.ts +63 -0
  1819. package/dist/tools/resume-session.d.ts.map +1 -0
  1820. package/dist/tools/resume-session.js +106 -0
  1821. package/dist/tools/resume-session.js.map +1 -0
  1822. package/dist/tools/skills-tools.js +153 -0
  1823. package/dist/tools/skills-tools.js.map +1 -0
  1824. package/dist/tools/tool-prefix-migration.js +90 -0
  1825. package/dist/tools/tool-prefix-migration.js.map +1 -0
  1826. package/dist/tools/trace-tools.js +412 -0
  1827. package/dist/tools/trace-tools.js.map +1 -0
  1828. package/dist/tools/types.js +8 -0
  1829. package/dist/tools/types.js.map +1 -0
  1830. package/dist/utils/config-dir.d.ts +2 -0
  1831. package/dist/utils/config-dir.d.ts.map +1 -0
  1832. package/dist/utils/config-dir.js +6 -0
  1833. package/dist/utils/config-dir.js.map +1 -0
  1834. package/dist/utils/paths.d.ts +49 -0
  1835. package/dist/utils/paths.d.ts.map +1 -0
  1836. package/dist/utils/paths.js +98 -0
  1837. package/dist/utils/paths.js.map +1 -0
  1838. package/dist/utils/string-width.d.ts +80 -0
  1839. package/dist/utils/string-width.d.ts.map +1 -0
  1840. package/dist/utils/string-width.js +219 -0
  1841. package/dist/utils/string-width.js.map +1 -0
  1842. package/dist/verification/tier-selector.d.ts +40 -0
  1843. package/dist/verification/tier-selector.d.ts.map +1 -0
  1844. package/dist/verification/tier-selector.js +95 -0
  1845. package/dist/verification/tier-selector.js.map +1 -0
  1846. package/dist/workers/adapter.d.ts +16 -0
  1847. package/dist/workers/adapter.d.ts.map +1 -0
  1848. package/dist/workers/adapter.js +5 -0
  1849. package/dist/workers/adapter.js.map +1 -0
  1850. package/dist/workers/cached-adapter.d.ts +21 -0
  1851. package/dist/workers/cached-adapter.d.ts.map +1 -0
  1852. package/dist/workers/cached-adapter.js +67 -0
  1853. package/dist/workers/cached-adapter.js.map +1 -0
  1854. package/dist/workers/factory.d.ts +11 -0
  1855. package/dist/workers/factory.d.ts.map +1 -0
  1856. package/dist/workers/factory.js +54 -0
  1857. package/dist/workers/factory.js.map +1 -0
  1858. package/dist/workers/index.d.ts +10 -0
  1859. package/dist/workers/index.d.ts.map +1 -0
  1860. package/dist/workers/index.js +10 -0
  1861. package/dist/workers/index.js.map +1 -0
  1862. package/dist/workers/json-adapter.d.ts +22 -0
  1863. package/dist/workers/json-adapter.d.ts.map +1 -0
  1864. package/dist/workers/json-adapter.js +171 -0
  1865. package/dist/workers/json-adapter.js.map +1 -0
  1866. package/dist/workers/sqlite-adapter.d.ts +22 -0
  1867. package/dist/workers/sqlite-adapter.d.ts.map +1 -0
  1868. package/dist/workers/sqlite-adapter.js +264 -0
  1869. package/dist/workers/sqlite-adapter.js.map +1 -0
  1870. package/dist/workers/types.d.ts +41 -0
  1871. package/dist/workers/types.d.ts.map +1 -0
  1872. package/dist/workers/types.js +5 -0
  1873. package/dist/workers/types.js.map +1 -0
  1874. package/docs/api/assets/highlight.css +85 -85
  1875. package/docs/api/assets/style.css +1633 -1633
  1876. package/docs/api/classes/ContextCollector.html +21 -21
  1877. package/docs/api/functions/activateUltrawork.html +2 -2
  1878. package/docs/api/functions/addCustomNote.html +5 -5
  1879. package/docs/api/functions/addDirective.html +2 -2
  1880. package/docs/api/functions/addManualEntry.html +2 -2
  1881. package/docs/api/functions/addPattern.html +3 -3
  1882. package/docs/api/functions/addWorker.html +2 -2
  1883. package/docs/api/functions/addWorkingMemoryEntry.html +2 -2
  1884. package/docs/api/functions/analyzeContextUsage.html +2 -2
  1885. package/docs/api/functions/appendProgress.html +2 -2
  1886. package/docs/api/functions/appendSessionId.html +2 -2
  1887. package/docs/api/functions/applyCommentFilters.html +3 -3
  1888. package/docs/api/functions/assignFileToWorker.html +2 -2
  1889. package/docs/api/functions/backgroundUpdateCheck.html +2 -2
  1890. package/docs/api/functions/buildAxiomBootContext.html +1 -1
  1891. package/docs/api/functions/buildBoulderContinuation.html +2 -2
  1892. package/docs/api/functions/buildDelegationTable.html +2 -2
  1893. package/docs/api/functions/buildKeyTriggersSection.html +2 -2
  1894. package/docs/api/functions/buildOrchestratorReminder.html +2 -2
  1895. package/docs/api/functions/buildUseAvoidSection.html +2 -2
  1896. package/docs/api/functions/buildVerificationReminder.html +2 -2
  1897. package/docs/api/functions/canResumeAutopilot.html +10 -10
  1898. package/docs/api/functions/canStartMode.html +5 -5
  1899. package/docs/api/functions/cancelAutopilot.html +3 -3
  1900. package/docs/api/functions/cancelUltraQA.html +2 -2
  1901. package/docs/api/functions/checkBackgroundNotifications.html +2 -2
  1902. package/docs/api/functions/checkBoulderContinuation.html +2 -2
  1903. package/docs/api/functions/checkDuplicateTriggers.html +2 -2
  1904. package/docs/api/functions/checkExpertGate.html +1 -1
  1905. package/docs/api/functions/checkForComments.html +2 -2
  1906. package/docs/api/functions/checkForUpdates.html +2 -2
  1907. package/docs/api/functions/checkIncompleteTodos.html +13 -13
  1908. package/docs/api/functions/checkPersistentModes.html +3 -3
  1909. package/docs/api/functions/cleanupOrphanedState.html +2 -2
  1910. package/docs/api/functions/cleanupStaleAgents.html +2 -2
  1911. package/docs/api/functions/cleanupTransientState.html +2 -2
  1912. package/docs/api/functions/clearAgentUsageState.html +1 -1
  1913. package/docs/api/functions/clearAllModeStates.html +2 -2
  1914. package/docs/api/functions/clearAutopilot.html +2 -2
  1915. package/docs/api/functions/clearAutopilotState.html +2 -2
  1916. package/docs/api/functions/clearBeadsContext.html +2 -2
  1917. package/docs/api/functions/clearBoulderState.html +2 -2
  1918. package/docs/api/functions/clearDetectionState.html +2 -2
  1919. package/docs/api/functions/clearInjectedPaths.html +2 -2
  1920. package/docs/api/functions/clearInjectedRules.html +2 -2
  1921. package/docs/api/functions/clearLinkedUltraworkState.html +2 -2
  1922. package/docs/api/functions/clearModeState.html +10 -10
  1923. package/docs/api/functions/clearProjectMemorySession.html +4 -4
  1924. package/docs/api/functions/clearRalphState.html +2 -2
  1925. package/docs/api/functions/clearRapidFireDebounce.html +2 -2
  1926. package/docs/api/functions/clearSkillSession.html +2 -2
  1927. package/docs/api/functions/clearThinkModeState.html +2 -2
  1928. package/docs/api/functions/clearTrackingState.html +2 -2
  1929. package/docs/api/functions/clearUltraQAState.html +2 -2
  1930. package/docs/api/functions/clearVerificationState.html +3 -3
  1931. package/docs/api/functions/commandExists.html +2 -2
  1932. package/docs/api/functions/compareVersions.html +3 -3
  1933. package/docs/api/functions/completeUltraQA.html +2 -2
  1934. package/docs/api/functions/completeUltrapilot.html +2 -2
  1935. package/docs/api/functions/completeWorker.html +2 -2
  1936. package/docs/api/functions/containsTokenLimitError.html +2 -2
  1937. package/docs/api/functions/createAgentToolRestrictions.html +3 -3
  1938. package/docs/api/functions/createAgentUsageReminderHook.html +1 -1
  1939. package/docs/api/functions/createAutoSlashCommandHook.html +7 -7
  1940. package/docs/api/functions/createBackgroundNotificationHook.html +7 -7
  1941. package/docs/api/functions/createBackgroundTaskManager.html +2 -2
  1942. package/docs/api/functions/createBoulderState.html +2 -2
  1943. package/docs/api/functions/createCommentCheckerHook.html +6 -6
  1944. package/docs/api/functions/createCompactCheckpoint.html +2 -2
  1945. package/docs/api/functions/createContentHash.html +2 -2
  1946. package/docs/api/functions/createContextInjectorHook.html +7 -7
  1947. package/docs/api/functions/createDirectoryReadmeInjectorHook.html +9 -9
  1948. package/docs/api/functions/createEmptyMessageSanitizerHook.html +6 -6
  1949. package/docs/api/functions/createEnvContext.html +2 -2
  1950. package/docs/api/functions/createHookOutput.html +4 -4
  1951. package/docs/api/functions/createLearnedSkillsHook.html +6 -6
  1952. package/docs/api/functions/createMagicKeywordProcessor.html +2 -2
  1953. package/docs/api/functions/createModeMarker.html +6 -6
  1954. package/docs/api/functions/createPrd.html +2 -2
  1955. package/docs/api/functions/createPreemptiveCompactionHook.html +6 -6
  1956. package/docs/api/functions/createRalphLoopHook.html +2 -2
  1957. package/docs/api/functions/createRecoveryHook.html +7 -7
  1958. package/docs/api/functions/createRulesInjectorHook.html +8 -8
  1959. package/docs/api/functions/createSimplePrd.html +2 -2
  1960. package/docs/api/functions/createSisyphusOrchestratorHook.html +7 -7
  1961. package/docs/api/functions/createSisyphusSession.html +7 -7
  1962. package/docs/api/functions/createThinkModeHook.html +7 -7
  1963. package/docs/api/functions/createThinkingBlockValidatorHook.html +1 -1
  1964. package/docs/api/functions/createTodoContinuationHook.html +2 -2
  1965. package/docs/api/functions/createUltraworkStateHook.html +2 -2
  1966. package/docs/api/functions/deactivateUltrawork.html +8 -8
  1967. package/docs/api/functions/decayHotPaths.html +2 -2
  1968. package/docs/api/functions/decomposeTask.html +11 -11
  1969. package/docs/api/functions/deepMerge.html +2 -2
  1970. package/docs/api/functions/detectArchitectApproval.html +2 -2
  1971. package/docs/api/functions/detectArchitectRejection.html +2 -2
  1972. package/docs/api/functions/detectContextLimitError.html +2 -2
  1973. package/docs/api/functions/detectContextLimitErrorInText.html +2 -2
  1974. package/docs/api/functions/detectDirectivesFromMessage.html +2 -2
  1975. package/docs/api/functions/detectEditError.html +2 -2
  1976. package/docs/api/functions/detectEditErrorInOutput.html +2 -2
  1977. package/docs/api/functions/detectEditErrorInText.html +2 -2
  1978. package/docs/api/functions/detectExtractableMoment.html +2 -2
  1979. package/docs/api/functions/detectKeywordsWithType.html +11 -11
  1980. package/docs/api/functions/detectMagicKeywords.html +2 -2
  1981. package/docs/api/functions/detectProjectEnvironment.html +2 -2
  1982. package/docs/api/functions/detectRecoverableError.html +3 -3
  1983. package/docs/api/functions/detectSessionErrorType.html +2 -2
  1984. package/docs/api/functions/detectSlashCommand.html +3 -3
  1985. package/docs/api/functions/detectThinkKeyword.html +2 -2
  1986. package/docs/api/functions/detectUltrathinkKeyword.html +2 -2
  1987. package/docs/api/functions/discoverAllCommands.html +2 -2
  1988. package/docs/api/functions/enablePrdMode.html +2 -2
  1989. package/docs/api/functions/enhancePrompt.html +2 -2
  1990. package/docs/api/functions/ensureAutopilotDir.html +2 -2
  1991. package/docs/api/functions/ensureDirectoryStructure.html +2 -2
  1992. package/docs/api/functions/ensureModeStateDir.html +2 -2
  1993. package/docs/api/functions/ensureSkillsDir.html +2 -2
  1994. package/docs/api/functions/estimateTokens.html +2 -2
  1995. package/docs/api/functions/executeSlashCommand.html +2 -2
  1996. package/docs/api/functions/expandCommand.html +8 -8
  1997. package/docs/api/functions/expandCommandPrompt.html +6 -6
  1998. package/docs/api/functions/expandCommands.html +2 -2
  1999. package/docs/api/functions/exportSessionSummary.html +2 -2
  2000. package/docs/api/functions/exportWisdomToNotepad.html +2 -2
  2001. package/docs/api/functions/extractPromptText.html +11 -11
  2002. package/docs/api/functions/extractSlashPromptText.html +2 -2
  2003. package/docs/api/functions/extractThinkPromptText.html +2 -2
  2004. package/docs/api/functions/failWorker.html +2 -2
  2005. package/docs/api/functions/findCommand.html +2 -2
  2006. package/docs/api/functions/findMatchingSkills.html +2 -2
  2007. package/docs/api/functions/findPlannerPlans.html +3 -3
  2008. package/docs/api/functions/findPrdPath.html +2 -2
  2009. package/docs/api/functions/findPreviousThinkingContent.html +1 -1
  2010. package/docs/api/functions/findProgressPath.html +2 -2
  2011. package/docs/api/functions/findProjectRoot.html +3 -3
  2012. package/docs/api/functions/findRecoveryEmptyMessages.html +2 -2
  2013. package/docs/api/functions/findRecoveryOrphanThinking.html +2 -2
  2014. package/docs/api/functions/findRecoveryThinkingBlocks.html +2 -2
  2015. package/docs/api/functions/findRuleFiles.html +4 -4
  2016. package/docs/api/functions/findSkillFiles.html +3 -3
  2017. package/docs/api/functions/formatCancelMessage.html +2 -2
  2018. package/docs/api/functions/formatCompactSummary.html +2 -2
  2019. package/docs/api/functions/formatContextSummary.html +3 -3
  2020. package/docs/api/functions/formatDirectivesForContext.html +2 -2
  2021. package/docs/api/functions/formatFailureSummary.html +2 -2
  2022. package/docs/api/functions/formatFile.html +2 -2
  2023. package/docs/api/functions/formatFileChanges.html +2 -2
  2024. package/docs/api/functions/formatFileList.html +2 -2
  2025. package/docs/api/functions/formatFullContext.html +2 -2
  2026. package/docs/api/functions/formatFullNotepad.html +2 -2
  2027. package/docs/api/functions/formatLearningsForContext.html +2 -2
  2028. package/docs/api/functions/formatNextStoryPrompt.html +2 -2
  2029. package/docs/api/functions/formatNotepadContext.html +2 -2
  2030. package/docs/api/functions/formatPatternsForContext.html +2 -2
  2031. package/docs/api/functions/formatPrd.html +2 -2
  2032. package/docs/api/functions/formatPrdStatus.html +2 -2
  2033. package/docs/api/functions/formatPreCompactSummary.html +2 -2
  2034. package/docs/api/functions/formatProgressForContext.html +2 -2
  2035. package/docs/api/functions/formatProgressMessage.html +2 -2
  2036. package/docs/api/functions/formatStory.html +2 -2
  2037. package/docs/api/functions/formatSummary.html +2 -2
  2038. package/docs/api/functions/formatUpdateNotification.html +2 -2
  2039. package/docs/api/functions/formatValidationResults.html +2 -2
  2040. package/docs/api/functions/generateExtractionPrompt.html +2 -2
  2041. package/docs/api/functions/generateSkillFrontmatter.html +2 -2
  2042. package/docs/api/functions/generateSummary.html +2 -2
  2043. package/docs/api/functions/getActiveAgentCount.html +2 -2
  2044. package/docs/api/functions/getActiveExclusiveMode.html +4 -4
  2045. package/docs/api/functions/getActiveModes.html +2 -2
  2046. package/docs/api/functions/getActivePlanPath.html +2 -2
  2047. package/docs/api/functions/getAgentDefinitions.html +2 -2
  2048. package/docs/api/functions/getAgentsByType.html +2 -2
  2049. package/docs/api/functions/getAllCommands.html +2 -2
  2050. package/docs/api/functions/getAllModeStatuses.html +5 -5
  2051. package/docs/api/functions/getAllSkills.html +2 -2
  2052. package/docs/api/functions/getArchitectRejectionContinuationPrompt.html +2 -2
  2053. package/docs/api/functions/getArchitectVerificationPrompt.html +2 -2
  2054. package/docs/api/functions/getAutoFormatMessage.html +2 -2
  2055. package/docs/api/functions/getAutopilotStateAge.html +3 -3
  2056. package/docs/api/functions/getAvailableAgents.html +2 -2
  2057. package/docs/api/functions/getAxiomDir.html +1 -1
  2058. package/docs/api/functions/getBackgroundTaskGuidance.html +4 -4
  2059. package/docs/api/functions/getBeadsContextConfig.html +2 -2
  2060. package/docs/api/functions/getBeadsInstructions.html +2 -2
  2061. package/docs/api/functions/getBoulderFilePath.html +2 -2
  2062. package/docs/api/functions/getCheckpointPath.html +2 -2
  2063. package/docs/api/functions/getClaudeThinkingConfig.html +3 -3
  2064. package/docs/api/functions/getCommand.html +2 -2
  2065. package/docs/api/functions/getCommandsDir.html +2 -2
  2066. package/docs/api/functions/getCompactionQueueDepth.html +3 -3
  2067. package/docs/api/functions/getCompletedWorkers.html +2 -2
  2068. package/docs/api/functions/getDefaultMcpServers.html +1 -1
  2069. package/docs/api/functions/getDefaultModelForCategory.html +2 -2
  2070. package/docs/api/functions/getDetectionStats.html +2 -2
  2071. package/docs/api/functions/getDirectPlanningPrompt.html +3 -3
  2072. package/docs/api/functions/getExecutionPrompt.html +2 -2
  2073. package/docs/api/functions/getExpansionPrompt.html +3 -3
  2074. package/docs/api/functions/getExpertGateMessage.html +1 -1
  2075. package/docs/api/functions/getFailedWorkers.html +2 -2
  2076. package/docs/api/functions/getFormatter.html +2 -2
  2077. package/docs/api/functions/getGitDiffStats.html +2 -2
  2078. package/docs/api/functions/getGlobalStateFilePath.html +4 -4
  2079. package/docs/api/functions/getGoalCommand.html +2 -2
  2080. package/docs/api/functions/getHighVariant.html +3 -3
  2081. package/docs/api/functions/getInstallInfo.html +2 -2
  2082. package/docs/api/functions/getInstalledVersion.html +2 -2
  2083. package/docs/api/functions/getIssuesToFix.html +2 -2
  2084. package/docs/api/functions/getLastDetection.html +2 -2
  2085. package/docs/api/functions/getLearnerConfigValue.html +2 -2
  2086. package/docs/api/functions/getLinter.html +2 -2
  2087. package/docs/api/functions/getManualSection.html +2 -2
  2088. package/docs/api/functions/getMemoryFilePaths.html +1 -1
  2089. package/docs/api/functions/getModeMarkerFilePath.html +2 -2
  2090. package/docs/api/functions/getModeStateFilePath.html +2 -2
  2091. package/docs/api/functions/getNextStory.html +2 -2
  2092. package/docs/api/functions/getNotepadPath.html +2 -2
  2093. package/docs/api/functions/getNotepadStats.html +2 -2
  2094. package/docs/api/functions/getOmcPrdPath.html +2 -2
  2095. package/docs/api/functions/getOmcProgressPath.html +2 -2
  2096. package/docs/api/functions/getOmcSystemPrompt.html +2 -2
  2097. package/docs/api/functions/getOmcToolNames.html +3 -3
  2098. package/docs/api/functions/getPatterns.html +2 -2
  2099. package/docs/api/functions/getPhasePrompt.html +2 -2
  2100. package/docs/api/functions/getPlanName.html +2 -2
  2101. package/docs/api/functions/getPlanPath.html +2 -2
  2102. package/docs/api/functions/getPlanProgress.html +2 -2
  2103. package/docs/api/functions/getPlanSummaries.html +2 -2
  2104. package/docs/api/functions/getPrdCompletionStatus.html +2 -2
  2105. package/docs/api/functions/getPrdPath.html +2 -2
  2106. package/docs/api/functions/getPrdStatus.html +2 -2
  2107. package/docs/api/functions/getPreCommitReminderMessage.html +2 -2
  2108. package/docs/api/functions/getPriorityContext.html +2 -2
  2109. package/docs/api/functions/getProgressContext.html +2 -2
  2110. package/docs/api/functions/getProgressPath.html +2 -2
  2111. package/docs/api/functions/getPromotionCandidates.html +2 -2
  2112. package/docs/api/functions/getQAPrompt.html +2 -2
  2113. package/docs/api/functions/getRalphContext.html +3 -3
  2114. package/docs/api/functions/getReadmesForPath.html +2 -2
  2115. package/docs/api/functions/getRecentLearnings.html +2 -2
  2116. package/docs/api/functions/getRulesForPath.html +2 -2
  2117. package/docs/api/functions/getRunningAgents.html +2 -2
  2118. package/docs/api/functions/getRunningWorkers.html +2 -2
  2119. package/docs/api/functions/getSessionTokenEstimate.html +2 -2
  2120. package/docs/api/functions/getSkillsDir.html +2 -2
  2121. package/docs/api/functions/getSpecPath.html +2 -2
  2122. package/docs/api/functions/getStaleAgents.html +2 -2
  2123. package/docs/api/functions/getStateDir.html +2 -2
  2124. package/docs/api/functions/getStory.html +2 -2
  2125. package/docs/api/functions/getSubagentStateFilePath.html +2 -2
  2126. package/docs/api/functions/getThinkModeState.html +2 -2
  2127. package/docs/api/functions/getThinkingConfig.html +3 -3
  2128. package/docs/api/functions/getTopHotPaths.html +2 -2
  2129. package/docs/api/functions/getTrackingStats.html +2 -2
  2130. package/docs/api/functions/getTransitionPrompt.html +2 -2
  2131. package/docs/api/functions/getUltraworkPersistenceMessage.html +2 -2
  2132. package/docs/api/functions/getValidationPrompt.html +2 -2
  2133. package/docs/api/functions/getValidationSpawnPrompt.html +2 -2
  2134. package/docs/api/functions/getValidationStats.html +1 -1
  2135. package/docs/api/functions/getValidationStatus.html +2 -2
  2136. package/docs/api/functions/getWorkingMemory.html +2 -2
  2137. package/docs/api/functions/handleBackgroundEvent.html +3 -3
  2138. package/docs/api/functions/handleContextWindowRecovery.html +2 -2
  2139. package/docs/api/functions/handleEditErrorRecovery.html +2 -2
  2140. package/docs/api/functions/handlePermissionRequest.html +2 -2
  2141. package/docs/api/functions/handleRecovery.html +10 -10
  2142. package/docs/api/functions/handleSessionEnd.html +2 -2
  2143. package/docs/api/functions/handleSessionRecovery.html +2 -2
  2144. package/docs/api/functions/handleSharedFiles.html +7 -7
  2145. package/docs/api/functions/handleSubagentStart.html +2 -2
  2146. package/docs/api/functions/handleSubagentStop.html +2 -2
  2147. package/docs/api/functions/hasBoulder.html +2 -2
  2148. package/docs/api/functions/hasContentParts.html +1 -1
  2149. package/docs/api/functions/hasModeState.html +3 -3
  2150. package/docs/api/functions/hasPrd.html +2 -2
  2151. package/docs/api/functions/hasTextContent.html +2 -2
  2152. package/docs/api/functions/hasValidContent.html +3 -3
  2153. package/docs/api/functions/incrementAgentCount.html +2 -2
  2154. package/docs/api/functions/incrementRalphIteration.html +2 -2
  2155. package/docs/api/functions/incrementReinforcement.html +2 -2
  2156. package/docs/api/functions/initAutopilot.html +2 -2
  2157. package/docs/api/functions/initNotepad.html +2 -2
  2158. package/docs/api/functions/initPrd.html +2 -2
  2159. package/docs/api/functions/initProgress.html +2 -2
  2160. package/docs/api/functions/initUltrapilot.html +2 -2
  2161. package/docs/api/functions/injectContextIntoText.html +2 -2
  2162. package/docs/api/functions/injectPendingContext.html +3 -3
  2163. package/docs/api/functions/injectRecoveryTextPart.html +2 -2
  2164. package/docs/api/functions/install.html +2 -2
  2165. package/docs/api/functions/integrateResults.html +5 -5
  2166. package/docs/api/functions/isActiveModeRunning.html +2 -2
  2167. package/docs/api/functions/isAllowedPath.html +2 -2
  2168. package/docs/api/functions/isAlreadyHighVariant.html +2 -2
  2169. package/docs/api/functions/isAutopilotActive.html +2 -2
  2170. package/docs/api/functions/isAxiomEnabled.html +1 -1
  2171. package/docs/api/functions/isClaudeInstalled.html +3 -3
  2172. package/docs/api/functions/isClaudeModel.html +2 -2
  2173. package/docs/api/functions/isCompactionInProgress.html +3 -3
  2174. package/docs/api/functions/isDuplicateByContentHash.html +2 -2
  2175. package/docs/api/functions/isDuplicateByRealPath.html +2 -2
  2176. package/docs/api/functions/isExcludedCommand.html +2 -2
  2177. package/docs/api/functions/isExtendedThinkingModel.html +1 -1
  2178. package/docs/api/functions/isFileOwnedByWorker.html +2 -2
  2179. package/docs/api/functions/isFormatterAvailable.html +2 -2
  2180. package/docs/api/functions/isGptModel.html +2 -2
  2181. package/docs/api/functions/isInstalled.html +2 -2
  2182. package/docs/api/functions/isLearnerEnabled.html +2 -2
  2183. package/docs/api/functions/isModeActive.html +6 -6
  2184. package/docs/api/functions/isNonInteractive.html +1 -1
  2185. package/docs/api/functions/isRecoverableError.html +2 -2
  2186. package/docs/api/functions/isSafeCommand.html +2 -2
  2187. package/docs/api/functions/isSessionRecoverable.html +2 -2
  2188. package/docs/api/functions/isSharedFile.html +2 -2
  2189. package/docs/api/functions/isThinkModeActive.html +2 -2
  2190. package/docs/api/functions/isToolPart.html +2 -2
  2191. package/docs/api/functions/isUltraQAActive.html +1 -1
  2192. package/docs/api/functions/isWriteEditTool.html +2 -2
  2193. package/docs/api/functions/learnFromToolOutput.html +7 -7
  2194. package/docs/api/functions/lintFile.html +2 -2
  2195. package/docs/api/functions/listAvailableCommands.html +2 -2
  2196. package/docs/api/functions/listCommands.html +2 -2
  2197. package/docs/api/functions/listPromotableLearnings.html +2 -2
  2198. package/docs/api/functions/loadAgentPrompt.html +7 -7
  2199. package/docs/api/functions/loadAgentUsageState.html +1 -1
  2200. package/docs/api/functions/loadAllSkills.html +3 -3
  2201. package/docs/api/functions/loadConfig.html +2 -2
  2202. package/docs/api/functions/loadInjectedPaths.html +2 -2
  2203. package/docs/api/functions/loadInjectedRules.html +2 -2
  2204. package/docs/api/functions/loadLearnerConfig.html +2 -2
  2205. package/docs/api/functions/loadProjectMemory.html +3 -3
  2206. package/docs/api/functions/loadSkillById.html +2 -2
  2207. package/docs/api/functions/mapDirectoryStructure.html +2 -2
  2208. package/docs/api/functions/markStoryComplete.html +2 -2
  2209. package/docs/api/functions/markStoryIncomplete.html +2 -2
  2210. package/docs/api/functions/mergeAgentConfig.html +2 -2
  2211. package/docs/api/functions/parseAxiomState.html +1 -1
  2212. package/docs/api/functions/parseContextLimitError.html +2 -2
  2213. package/docs/api/functions/parseProgress.html +2 -2
  2214. package/docs/api/functions/parseRuleFrontmatter.html +10 -10
  2215. package/docs/api/functions/parseSkillFile.html +2 -2
  2216. package/docs/api/functions/parseSlashCommand.html +2 -2
  2217. package/docs/api/functions/parseTokenLimitError.html +2 -2
  2218. package/docs/api/functions/performUpdate.html +2 -2
  2219. package/docs/api/functions/prependRecoveryThinkingPart.html +2 -2
  2220. package/docs/api/functions/prependThinkingBlock.html +1 -1
  2221. package/docs/api/functions/processAxiomBoot.html +1 -1
  2222. package/docs/api/functions/processAxiomGuards.html +1 -1
  2223. package/docs/api/functions/processBackgroundNotification.html +2 -2
  2224. package/docs/api/functions/processBackgroundNotificationHook.html +2 -2
  2225. package/docs/api/functions/processEditOutput.html +2 -2
  2226. package/docs/api/functions/processHook.html +3 -3
  2227. package/docs/api/functions/processMessageForSkills.html +2 -2
  2228. package/docs/api/functions/processOrchestratorPostTool.html +3 -3
  2229. package/docs/api/functions/processOrchestratorPreTool.html +3 -3
  2230. package/docs/api/functions/processPermissionRequest.html +2 -2
  2231. package/docs/api/functions/processPreCompact.html +6 -6
  2232. package/docs/api/functions/processProjectMemoryPreCompact.html +3 -3
  2233. package/docs/api/functions/processResponseForDetection.html +3 -3
  2234. package/docs/api/functions/processSessionEnd.html +2 -2
  2235. package/docs/api/functions/processSetup.html +2 -2
  2236. package/docs/api/functions/processSetupInit.html +2 -2
  2237. package/docs/api/functions/processSetupMaintenance.html +2 -2
  2238. package/docs/api/functions/processSlashCommand.html +2 -2
  2239. package/docs/api/functions/processSubagentStart.html +2 -2
  2240. package/docs/api/functions/processSubagentStop.html +2 -2
  2241. package/docs/api/functions/processThinkMode.html +3 -3
  2242. package/docs/api/functions/promoteLearning.html +2 -2
  2243. package/docs/api/functions/pruneOldEntries.html +2 -2
  2244. package/docs/api/functions/pruneOldStateFiles.html +2 -2
  2245. package/docs/api/functions/readActiveContext.html +1 -1
  2246. package/docs/api/functions/readAutopilotState.html +2 -2
  2247. package/docs/api/functions/readBoulderState.html +2 -2
  2248. package/docs/api/functions/readModeMarker.html +4 -4
  2249. package/docs/api/functions/readNotepad.html +2 -2
  2250. package/docs/api/functions/readPrd.html +2 -2
  2251. package/docs/api/functions/readProgress.html +2 -2
  2252. package/docs/api/functions/readProgressRaw.html +2 -2
  2253. package/docs/api/functions/readProjectDecisions.html +1 -1
  2254. package/docs/api/functions/readRalphState.html +2 -2
  2255. package/docs/api/functions/readRecoveryMessages.html +2 -2
  2256. package/docs/api/functions/readRecoveryParts.html +2 -2
  2257. package/docs/api/functions/readTrackingState.html +3 -3
  2258. package/docs/api/functions/readUltraQAState.html +2 -2
  2259. package/docs/api/functions/readUltrapilotState.html +2 -2
  2260. package/docs/api/functions/readUltraworkState.html +4 -4
  2261. package/docs/api/functions/readUserPreferences.html +1 -1
  2262. package/docs/api/functions/readVerificationState.html +3 -3
  2263. package/docs/api/functions/recordArchitectFeedback.html +2 -2
  2264. package/docs/api/functions/recordConflict.html +2 -2
  2265. package/docs/api/functions/recordFailure.html +2 -2
  2266. package/docs/api/functions/recordHookFire.html +2 -2
  2267. package/docs/api/functions/recordHookResult.html +2 -2
  2268. package/docs/api/functions/recordKeywordDetected.html +2 -2
  2269. package/docs/api/functions/recordModeChange.html +2 -2
  2270. package/docs/api/functions/recordPattern.html +2 -2
  2271. package/docs/api/functions/recordSessionMetrics.html +2 -2
  2272. package/docs/api/functions/recordSkillActivated.html +2 -2
  2273. package/docs/api/functions/recordSkillInvoked.html +2 -2
  2274. package/docs/api/functions/recordStoryProgress.html +2 -2
  2275. package/docs/api/functions/recordValidationVerdict.html +2 -2
  2276. package/docs/api/functions/registerBeadsContext.html +3 -3
  2277. package/docs/api/functions/registerProjectMemoryContext.html +6 -6
  2278. package/docs/api/functions/removeCodeBlocks.html +12 -12
  2279. package/docs/api/functions/removeModeMarker.html +5 -5
  2280. package/docs/api/functions/removeSlashCodeBlocks.html +2 -2
  2281. package/docs/api/functions/removeThinkCodeBlocks.html +2 -2
  2282. package/docs/api/functions/replaceRecoveryEmptyTextParts.html +2 -2
  2283. package/docs/api/functions/rescanProjectEnvironment.html +4 -4
  2284. package/docs/api/functions/resetSessionTokenEstimate.html +2 -2
  2285. package/docs/api/functions/resumeAutopilot.html +2 -2
  2286. package/docs/api/functions/runPreCommitChecks.html +2 -2
  2287. package/docs/api/functions/runTests.html +2 -2
  2288. package/docs/api/functions/runTypeCheck.html +2 -2
  2289. package/docs/api/functions/sanitizeMessage.html +2 -2
  2290. package/docs/api/functions/sanitizeMessages.html +2 -2
  2291. package/docs/api/functions/saveAgentUsageState.html +1 -1
  2292. package/docs/api/functions/saveInjectedPaths.html +2 -2
  2293. package/docs/api/functions/saveInjectedRules.html +2 -2
  2294. package/docs/api/functions/saveLearnerConfig.html +2 -2
  2295. package/docs/api/functions/saveModeSummary.html +2 -2
  2296. package/docs/api/functions/saveProjectMemory.html +3 -3
  2297. package/docs/api/functions/saveVersionMetadata.html +2 -2
  2298. package/docs/api/functions/setCurrentStory.html +2 -2
  2299. package/docs/api/functions/setEnvironmentVariables.html +2 -2
  2300. package/docs/api/functions/setLearnerConfigValue.html +2 -2
  2301. package/docs/api/functions/setPriorityContext.html +2 -2
  2302. package/docs/api/functions/shouldActivateThinkMode.html +3 -3
  2303. package/docs/api/functions/shouldActivateUltrathink.html +2 -2
  2304. package/docs/api/functions/shouldApplyRule.html +2 -2
  2305. package/docs/api/functions/shouldCheckForUpdates.html +2 -2
  2306. package/docs/api/functions/shouldCompleteByPrd.html +2 -2
  2307. package/docs/api/functions/shouldPromptExtraction.html +2 -2
  2308. package/docs/api/functions/shouldReinforceUltrawork.html +2 -2
  2309. package/docs/api/functions/shouldRetryValidation.html +2 -2
  2310. package/docs/api/functions/shouldRunInBackground.html +8 -8
  2311. package/docs/api/functions/spawnWorkers.html +7 -7
  2312. package/docs/api/functions/startUltraQA.html +3 -3
  2313. package/docs/api/functions/startUltrapilot.html +7 -7
  2314. package/docs/api/functions/startValidationRound.html +2 -2
  2315. package/docs/api/functions/startVerification.html +2 -2
  2316. package/docs/api/functions/startsWithThinkingBlock.html +1 -1
  2317. package/docs/api/functions/stopUltraQA.html +2 -2
  2318. package/docs/api/functions/stripRecoveryThinkingParts.html +2 -2
  2319. package/docs/api/functions/toSdkMcpFormat.html +2 -2
  2320. package/docs/api/functions/trackAccess.html +2 -2
  2321. package/docs/api/functions/trackProgress.html +5 -5
  2322. package/docs/api/functions/transitionPhase.html +2 -2
  2323. package/docs/api/functions/transitionRalphToUltraQA.html +9 -9
  2324. package/docs/api/functions/transitionToComplete.html +2 -2
  2325. package/docs/api/functions/transitionToFailed.html +2 -2
  2326. package/docs/api/functions/transitionUltraQAToValidation.html +2 -2
  2327. package/docs/api/functions/updateDirectoryAccess.html +2 -2
  2328. package/docs/api/functions/updateExecution.html +2 -2
  2329. package/docs/api/functions/updateExpansion.html +2 -2
  2330. package/docs/api/functions/updatePlanning.html +2 -2
  2331. package/docs/api/functions/updateQA.html +2 -2
  2332. package/docs/api/functions/updateValidation.html +2 -2
  2333. package/docs/api/functions/updateWorkerState.html +2 -2
  2334. package/docs/api/functions/validateAgentConfig.html +2 -2
  2335. package/docs/api/functions/validateCommitMessage.html +2 -2
  2336. package/docs/api/functions/validateConfigFiles.html +2 -2
  2337. package/docs/api/functions/validateExtractionRequest.html +2 -2
  2338. package/docs/api/functions/validateMessage.html +1 -1
  2339. package/docs/api/functions/validateMessages.html +1 -1
  2340. package/docs/api/functions/validateSkillMetadata.html +2 -2
  2341. package/docs/api/functions/writeAutopilotState.html +2 -2
  2342. package/docs/api/functions/writeBoulderState.html +2 -2
  2343. package/docs/api/functions/writePrd.html +2 -2
  2344. package/docs/api/functions/writeRalphState.html +2 -2
  2345. package/docs/api/functions/writeSkill.html +2 -2
  2346. package/docs/api/functions/writeTrackingState.html +5 -5
  2347. package/docs/api/functions/writeUltraQAState.html +2 -2
  2348. package/docs/api/functions/writeUltrapilotState.html +2 -2
  2349. package/docs/api/functions/writeUltraworkState.html +2 -2
  2350. package/docs/api/functions/writeVerificationState.html +2 -2
  2351. package/docs/api/hierarchy.html +1 -1
  2352. package/docs/api/index.html +843 -843
  2353. package/docs/api/interfaces/AgentConfig.html +18 -18
  2354. package/docs/api/interfaces/AgentOverrideConfig.html +10 -10
  2355. package/docs/api/interfaces/AgentPromptMetadata.html +19 -19
  2356. package/docs/api/interfaces/AgentState.html +5 -5
  2357. package/docs/api/interfaces/AgentUsageState.html +8 -8
  2358. package/docs/api/interfaces/AutoSlashCommandHookInput.html +5 -5
  2359. package/docs/api/interfaces/AutoSlashCommandHookOutput.html +3 -3
  2360. package/docs/api/interfaces/AutoSlashCommandResult.html +5 -5
  2361. package/docs/api/interfaces/AutopilotConfig.html +26 -26
  2362. package/docs/api/interfaces/AutopilotExecution.html +16 -16
  2363. package/docs/api/interfaces/AutopilotExpansion.html +12 -12
  2364. package/docs/api/interfaces/AutopilotPlanning.html +8 -8
  2365. package/docs/api/interfaces/AutopilotQA.html +12 -12
  2366. package/docs/api/interfaces/AutopilotResult.html +10 -10
  2367. package/docs/api/interfaces/AutopilotState.html +36 -36
  2368. package/docs/api/interfaces/AutopilotSummary.html +16 -16
  2369. package/docs/api/interfaces/AutopilotValidation.html +10 -10
  2370. package/docs/api/interfaces/AutopilotValidationResult.html +8 -8
  2371. package/docs/api/interfaces/AvailableAgent.html +5 -5
  2372. package/docs/api/interfaces/AxiomBootInput.html +3 -3
  2373. package/docs/api/interfaces/AxiomBootOutput.html +4 -4
  2374. package/docs/api/interfaces/AxiomGuardsInput.html +4 -4
  2375. package/docs/api/interfaces/AxiomGuardsOutput.html +4 -4
  2376. package/docs/api/interfaces/AxiomMemoryFiles.html +5 -5
  2377. package/docs/api/interfaces/AxiomState.html +8 -8
  2378. package/docs/api/interfaces/BackgroundNotificationHookConfig.html +11 -11
  2379. package/docs/api/interfaces/BackgroundNotificationHookInput.html +8 -8
  2380. package/docs/api/interfaces/BackgroundNotificationHookOutput.html +8 -8
  2381. package/docs/api/interfaces/BackgroundTask.html +7 -7
  2382. package/docs/api/interfaces/BackgroundTaskManager.html +26 -26
  2383. package/docs/api/interfaces/BeadsContextConfig.html +4 -4
  2384. package/docs/api/interfaces/BoulderState.html +12 -12
  2385. package/docs/api/interfaces/BuildInfo.html +6 -6
  2386. package/docs/api/interfaces/CanStartResult.html +4 -4
  2387. package/docs/api/interfaces/CancelResult.html +4 -4
  2388. package/docs/api/interfaces/ClaudeThinkingConfig.html +4 -4
  2389. package/docs/api/interfaces/CodeConventions.html +5 -5
  2390. package/docs/api/interfaces/CodebasePattern.html +5 -5
  2391. package/docs/api/interfaces/CommandInfo.html +5 -5
  2392. package/docs/api/interfaces/CommandMetadata.html +7 -7
  2393. package/docs/api/interfaces/CommentCheckResult.html +10 -10
  2394. package/docs/api/interfaces/CommentCheckerConfig.html +6 -6
  2395. package/docs/api/interfaces/CommentInfo.html +14 -14
  2396. package/docs/api/interfaces/CommentPendingCall.html +18 -18
  2397. package/docs/api/interfaces/CommitConfig.html +9 -9
  2398. package/docs/api/interfaces/CompactCheckpoint.html +7 -7
  2399. package/docs/api/interfaces/ContextEntry.html +14 -14
  2400. package/docs/api/interfaces/ContextUsageResult.html +12 -12
  2401. package/docs/api/interfaces/CustomNote.html +5 -5
  2402. package/docs/api/interfaces/DelegationDecision.html +7 -7
  2403. package/docs/api/interfaces/DelegationRoute.html +7 -7
  2404. package/docs/api/interfaces/DelegationRoutingConfig.html +5 -5
  2405. package/docs/api/interfaces/DelegationTrigger.html +6 -6
  2406. package/docs/api/interfaces/DetectedKeyword.html +13 -13
  2407. package/docs/api/interfaces/DetectionConfig.html +8 -8
  2408. package/docs/api/interfaces/DetectionResult.html +13 -13
  2409. package/docs/api/interfaces/DirectoryInfo.html +7 -7
  2410. package/docs/api/interfaces/EmptyMessageSanitizerConfig.html +6 -6
  2411. package/docs/api/interfaces/EmptyMessageSanitizerInput.html +6 -6
  2412. package/docs/api/interfaces/EmptyMessageSanitizerOutput.html +8 -8
  2413. package/docs/api/interfaces/ExecuteResult.html +5 -5
  2414. package/docs/api/interfaces/ExpandedCommand.html +4 -4
  2415. package/docs/api/interfaces/ExternalModelPreference.html +4 -4
  2416. package/docs/api/interfaces/ExternalModelsConfig.html +6 -6
  2417. package/docs/api/interfaces/ExternalModelsDefaults.html +5 -5
  2418. package/docs/api/interfaces/ExternalModelsFallbackPolicy.html +5 -5
  2419. package/docs/api/interfaces/FileOwnership.html +8 -8
  2420. package/docs/api/interfaces/FormatConfig.html +7 -7
  2421. package/docs/api/interfaces/FrameworkDetection.html +4 -4
  2422. package/docs/api/interfaces/FullAgentConfig.html +26 -26
  2423. package/docs/api/interfaces/GateCheckResult.html +5 -5
  2424. package/docs/api/interfaces/GitBranchPattern.html +3 -3
  2425. package/docs/api/interfaces/HookContext.html +5 -5
  2426. package/docs/api/interfaces/HookDefinition.html +5 -5
  2427. package/docs/api/interfaces/HookInput.html +18 -18
  2428. package/docs/api/interfaces/HookOutput.html +10 -10
  2429. package/docs/api/interfaces/HookResult.html +4 -4
  2430. package/docs/api/interfaces/HotPath.html +6 -6
  2431. package/docs/api/interfaces/InjectedPathsData.html +9 -9
  2432. package/docs/api/interfaces/InjectedRulesData.html +10 -10
  2433. package/docs/api/interfaces/InjectedSkillsData.html +8 -8
  2434. package/docs/api/interfaces/InjectionResult.html +8 -8
  2435. package/docs/api/interfaces/InstallOptions.html +9 -9
  2436. package/docs/api/interfaces/InstallResult.html +10 -10
  2437. package/docs/api/interfaces/IntegrationResult.html +14 -14
  2438. package/docs/api/interfaces/LanguageDetection.html +5 -5
  2439. package/docs/api/interfaces/LearnedSkill.html +16 -16
  2440. package/docs/api/interfaces/LearnerConfig.html +18 -18
  2441. package/docs/api/interfaces/LintConfig.html +7 -7
  2442. package/docs/api/interfaces/MagicKeyword.html +4 -4
  2443. package/docs/api/interfaces/MatchResult.html +6 -6
  2444. package/docs/api/interfaces/MessageContext.html +8 -8
  2445. package/docs/api/interfaces/MessageInfo.html +9 -9
  2446. package/docs/api/interfaces/MessagePart.html +15 -15
  2447. package/docs/api/interfaces/MessageWithModel.html +3 -3
  2448. package/docs/api/interfaces/MessageWithParts.html +6 -6
  2449. package/docs/api/interfaces/MessagesTransformHook.html +3 -3
  2450. package/docs/api/interfaces/MessagesTransformInput.html +3 -3
  2451. package/docs/api/interfaces/MessagesTransformOutput.html +3 -3
  2452. package/docs/api/interfaces/ModeConfig.html +13 -13
  2453. package/docs/api/interfaces/ModeStatus.html +4 -4
  2454. package/docs/api/interfaces/ModelRef.html +4 -4
  2455. package/docs/api/interfaces/NonInteractiveEnvConfig.html +2 -2
  2456. package/docs/api/interfaces/NotepadConfig.html +7 -7
  2457. package/docs/api/interfaces/NotepadStats.html +11 -11
  2458. package/docs/api/interfaces/NotificationCheckResult.html +8 -8
  2459. package/docs/api/interfaces/OrchestratorToolInput.html +6 -6
  2460. package/docs/api/interfaces/OrchestratorToolOutput.html +6 -6
  2461. package/docs/api/interfaces/OutputPart.html +4 -4
  2462. package/docs/api/interfaces/PRD.html +9 -9
  2463. package/docs/api/interfaces/PRDStatus.html +13 -13
  2464. package/docs/api/interfaces/ParsedSlashCommand.html +8 -8
  2465. package/docs/api/interfaces/ParsedTokenLimitError.html +16 -16
  2466. package/docs/api/interfaces/PendingContext.html +8 -8
  2467. package/docs/api/interfaces/PermissionHookOutput.html +4 -4
  2468. package/docs/api/interfaces/PermissionRequestInput.html +9 -9
  2469. package/docs/api/interfaces/PersistentModeResult.html +9 -9
  2470. package/docs/api/interfaces/PlanProgress.html +8 -8
  2471. package/docs/api/interfaces/PlanSummary.html +10 -10
  2472. package/docs/api/interfaces/PluginConfig.html +17 -17
  2473. package/docs/api/interfaces/PreCommitResult.html +3 -3
  2474. package/docs/api/interfaces/PreCompactHookOutput.html +4 -4
  2475. package/docs/api/interfaces/PreCompactInput.html +8 -8
  2476. package/docs/api/interfaces/PreemptiveCompactionConfig.html +14 -14
  2477. package/docs/api/interfaces/PriorityContextResult.html +5 -5
  2478. package/docs/api/interfaces/ProgressEntry.html +11 -11
  2479. package/docs/api/interfaces/ProgressLog.html +7 -7
  2480. package/docs/api/interfaces/ProjectMemory.html +14 -14
  2481. package/docs/api/interfaces/ProjectStructure.html +5 -5
  2482. package/docs/api/interfaces/PromotionCandidate.html +9 -9
  2483. package/docs/api/interfaces/PruneResult.html +5 -5
  2484. package/docs/api/interfaces/QualityValidation.html +10 -10
  2485. package/docs/api/interfaces/RalphLoopHook.html +4 -4
  2486. package/docs/api/interfaces/RalphLoopOptions.html +5 -5
  2487. package/docs/api/interfaces/RalphLoopState.html +21 -21
  2488. package/docs/api/interfaces/RecoveryConfig.html +16 -16
  2489. package/docs/api/interfaces/RecoveryMessageData.html +4 -4
  2490. package/docs/api/interfaces/RecoveryResult.html +10 -10
  2491. package/docs/api/interfaces/RecoveryStoredMessageMeta.html +8 -8
  2492. package/docs/api/interfaces/RecoveryStoredReasoningPart.html +7 -7
  2493. package/docs/api/interfaces/RecoveryStoredTextPart.html +9 -9
  2494. package/docs/api/interfaces/RecoveryStoredToolPart.html +9 -9
  2495. package/docs/api/interfaces/RegisterContextOptions.html +12 -12
  2496. package/docs/api/interfaces/ReleaseInfo.html +9 -9
  2497. package/docs/api/interfaces/ResolveDelegationOptions.html +7 -7
  2498. package/docs/api/interfaces/ResolveOptions.html +6 -6
  2499. package/docs/api/interfaces/ResolvedModel.html +5 -5
  2500. package/docs/api/interfaces/RetryState.html +6 -6
  2501. package/docs/api/interfaces/RuleFileCandidate.html +12 -12
  2502. package/docs/api/interfaces/RuleFrontmatterResult.html +6 -6
  2503. package/docs/api/interfaces/RuleInfo.html +18 -18
  2504. package/docs/api/interfaces/RuleMetadata.html +9 -9
  2505. package/docs/api/interfaces/RuleToInject.html +10 -10
  2506. package/docs/api/interfaces/SessionEndHookOutput.html +2 -2
  2507. package/docs/api/interfaces/SessionEndInput.html +9 -9
  2508. package/docs/api/interfaces/SessionMetrics.html +9 -9
  2509. package/docs/api/interfaces/SessionState.html +5 -5
  2510. package/docs/api/interfaces/SetupHookOutput.html +3 -3
  2511. package/docs/api/interfaces/SetupInput.html +7 -7
  2512. package/docs/api/interfaces/SetupResult.html +5 -5
  2513. package/docs/api/interfaces/ShellHook.html +4 -4
  2514. package/docs/api/interfaces/SisyphusOptions.html +14 -14
  2515. package/docs/api/interfaces/SisyphusSession.html +16 -16
  2516. package/docs/api/interfaces/SkillExtractionRequest.html +12 -12
  2517. package/docs/api/interfaces/SkillFileCandidate.html +10 -10
  2518. package/docs/api/interfaces/SkillHookContext.html +5 -5
  2519. package/docs/api/interfaces/SkillMetadata.html +22 -22
  2520. package/docs/api/interfaces/SkillParseResult.html +5 -5
  2521. package/docs/api/interfaces/SubagentHookOutput.html +3 -3
  2522. package/docs/api/interfaces/SubagentInfo.html +14 -14
  2523. package/docs/api/interfaces/SubagentStartInput.html +10 -10
  2524. package/docs/api/interfaces/SubagentStopInput.html +11 -11
  2525. package/docs/api/interfaces/SubagentTrackingState.html +6 -6
  2526. package/docs/api/interfaces/TaskExecutionDecision.html +10 -10
  2527. package/docs/api/interfaces/TechStack.html +5 -5
  2528. package/docs/api/interfaces/ThinkModeInput.html +4 -4
  2529. package/docs/api/interfaces/ThinkModeState.html +12 -12
  2530. package/docs/api/interfaces/ThinkingValidatorMessageInfo.html +6 -6
  2531. package/docs/api/interfaces/ThinkingValidatorMessagePart.html +9 -9
  2532. package/docs/api/interfaces/ThinkingValidatorMessageWithParts.html +4 -4
  2533. package/docs/api/interfaces/TodoContinuationHook.html +2 -2
  2534. package/docs/api/interfaces/TransitionResult.html +4 -4
  2535. package/docs/api/interfaces/TruncateState.html +6 -6
  2536. package/docs/api/interfaces/UltraQAOptions.html +5 -5
  2537. package/docs/api/interfaces/UltraQAResult.html +9 -9
  2538. package/docs/api/interfaces/UltraQAState.html +19 -19
  2539. package/docs/api/interfaces/UltrapilotConfig.html +14 -14
  2540. package/docs/api/interfaces/UltrapilotState.html +26 -26
  2541. package/docs/api/interfaces/UltraworkState.html +17 -17
  2542. package/docs/api/interfaces/UpdateCheckResult.html +7 -7
  2543. package/docs/api/interfaces/UpdateResult.html +7 -7
  2544. package/docs/api/interfaces/UserDirective.html +7 -7
  2545. package/docs/api/interfaces/UserStory.html +15 -15
  2546. package/docs/api/interfaces/ValidationCoordinatorResult.html +6 -6
  2547. package/docs/api/interfaces/ValidationResult.html +10 -10
  2548. package/docs/api/interfaces/VerificationState.html +17 -17
  2549. package/docs/api/interfaces/VersionMetadata.html +12 -12
  2550. package/docs/api/interfaces/WorkerState.html +24 -24
  2551. package/docs/api/interfaces/WriteSkillResult.html +6 -6
  2552. package/docs/api/modules.html +1 -1
  2553. package/docs/api/types/AgentCategory.html +2 -2
  2554. package/docs/api/types/AgentCost.html +3 -3
  2555. package/docs/api/types/AgentFactory.html +2 -2
  2556. package/docs/api/types/AgentOverrides.html +2 -2
  2557. package/docs/api/types/AutopilotPhase.html +2 -2
  2558. package/docs/api/types/AutopilotSignal.html +2 -2
  2559. package/docs/api/types/CommandScope.html +2 -2
  2560. package/docs/api/types/ContextPriority.html +3 -3
  2561. package/docs/api/types/ContextSourceType.html +3 -3
  2562. package/docs/api/types/DelegationProvider.html +2 -2
  2563. package/docs/api/types/DelegationTool.html +2 -2
  2564. package/docs/api/types/ExecutionMode.html +3 -3
  2565. package/docs/api/types/ExternalModelProvider.html +2 -2
  2566. package/docs/api/types/GateType.html +3 -3
  2567. package/docs/api/types/InjectionStrategy.html +2 -2
  2568. package/docs/api/types/KeywordType.html +10 -10
  2569. package/docs/api/types/ModelType.html +2 -2
  2570. package/docs/api/types/QAStatus.html +2 -2
  2571. package/docs/api/types/RecoveryErrorType.html +2 -2
  2572. package/docs/api/types/RecoveryStoredPart.html +2 -2
  2573. package/docs/api/types/TaskTool.html +1 -1
  2574. package/docs/api/types/ThinkingConfig.html +2 -2
  2575. package/docs/api/types/UltraQAGoalType.html +1 -1
  2576. package/docs/api/types/UserStoryInput.html +2 -2
  2577. package/docs/api/types/ValidationVerdict.html +2 -2
  2578. package/docs/api/types/ValidationVerdictType.html +2 -2
  2579. package/docs/api/variables/AGENTS_DIR.html +1 -1
  2580. package/docs/api/variables/AGENTS_FILENAME.html +2 -2
  2581. package/docs/api/variables/AGENT_TOOLS.html +2 -2
  2582. package/docs/api/variables/ALLOWED_PATH_PREFIX.html +2 -2
  2583. package/docs/api/variables/ANALYST_PROMPT_METADATA.html +1 -1
  2584. package/docs/api/variables/ARCHITECT_PROMPT_METADATA.html +1 -1
  2585. package/docs/api/variables/AUTO_SLASH_COMMAND_HOOK_NAME.html +4 -4
  2586. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_CLOSE.html +1 -1
  2587. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_OPEN.html +2 -2
  2588. package/docs/api/variables/BACKGROUND_NOTIFICATION_HOOK_NAME.html +2 -2
  2589. package/docs/api/variables/BDD_KEYWORDS.html +2 -2
  2590. package/docs/api/variables/BEADS_INSTRUCTIONS.html +1 -1
  2591. package/docs/api/variables/BEADS_RUST_INSTRUCTIONS.html +1 -1
  2592. package/docs/api/variables/BLOCKING_PATTERNS.html +3 -3
  2593. package/docs/api/variables/BOULDER_CONTINUATION_PROMPT.html +2 -2
  2594. package/docs/api/variables/BOULDER_DIR.html +2 -2
  2595. package/docs/api/variables/BOULDER_FILE.html +2 -2
  2596. package/docs/api/variables/BOULDER_STATE_PATH.html +2 -2
  2597. package/docs/api/variables/CHARS_PER_TOKEN.html +2 -2
  2598. package/docs/api/variables/CI_COMMANDS.html +2 -2
  2599. package/docs/api/variables/CI_GATE_MESSAGE.html +1 -1
  2600. package/docs/api/variables/CLAUDE_CONFIG_DIR.html +2 -2
  2601. package/docs/api/variables/CLAUDE_DEFAULT_CONTEXT_LIMIT.html +2 -2
  2602. package/docs/api/variables/COMMANDS_DIR.html +1 -1
  2603. package/docs/api/variables/COMMENT_CHECKER_MESSAGE_HEADER.html +2 -2
  2604. package/docs/api/variables/COMPACTION_COOLDOWN_MS.html +2 -2
  2605. package/docs/api/variables/CONTENT_PART_TYPES.html +2 -2
  2606. package/docs/api/variables/CONTEXT_CRITICAL_MESSAGE.html +2 -2
  2607. package/docs/api/variables/CONTEXT_FILENAMES.html +2 -2
  2608. package/docs/api/variables/CONTEXT_LIMIT_RECOVERY_MESSAGE.html +2 -2
  2609. package/docs/api/variables/CONTEXT_LIMIT_SHORT_MESSAGE.html +2 -2
  2610. package/docs/api/variables/CONTEXT_WARNING_MESSAGE.html +2 -2
  2611. package/docs/api/variables/CRITICAL_THRESHOLD.html +2 -2
  2612. package/docs/api/variables/CRITIC_PROMPT_METADATA.html +1 -1
  2613. package/docs/api/variables/DEFAULT_CONFIG.html +2 -2
  2614. package/docs/api/variables/DEFAULT_MAX_BACKGROUND_TASKS.html +2 -2
  2615. package/docs/api/variables/DEFAULT_THINKING_CONTENT.html +2 -2
  2616. package/docs/api/variables/DIRECT_WORK_REMINDER.html +2 -2
  2617. package/docs/api/variables/DOCUMENT_SPECIALIST_PROMPT_METADATA.html +1 -1
  2618. package/docs/api/variables/DOCUMENT_WRITER_PROMPT_METADATA.html +1 -1
  2619. package/docs/api/variables/EDIT_ERROR_PATTERNS.html +2 -2
  2620. package/docs/api/variables/EDIT_ERROR_REMINDER.html +3 -3
  2621. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_DEBUG_PREFIX.html +2 -2
  2622. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_ERROR_PATTERNS.html +2 -2
  2623. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_HOOK_NAME.html +2 -2
  2624. package/docs/api/variables/ENTRY_SEPARATOR.html +1 -1
  2625. package/docs/api/variables/EXCLUDED_COMMANDS.html +3 -3
  2626. package/docs/api/variables/EXPERT_GATE_MESSAGE.html +1 -1
  2627. package/docs/api/variables/EXPLORE_PROMPT_METADATA.html +1 -1
  2628. package/docs/api/variables/EXTENSION_TO_LANGUAGE.html +2 -2
  2629. package/docs/api/variables/FEATURE_FLAG_KEY.html +2 -2
  2630. package/docs/api/variables/FRONTEND_ENGINEER_PROMPT_METADATA.html +1 -1
  2631. package/docs/api/variables/GITHUB_API_URL.html +1 -1
  2632. package/docs/api/variables/INSTALLER_CLAUDE_CONFIG_DIR.html +2 -2
  2633. package/docs/api/variables/INSTALLER_VERSION.html +2 -2
  2634. package/docs/api/variables/LINE_COMMENT_PATTERNS.html +2 -2
  2635. package/docs/api/variables/LONG_RUNNING_PATTERNS.html +3 -3
  2636. package/docs/api/variables/MANUAL_HEADER.html +1 -1
  2637. package/docs/api/variables/MAX_SKILLS_PER_SESSION.html +2 -2
  2638. package/docs/api/variables/MAX_SKILL_CONTENT_LENGTH.html +2 -2
  2639. package/docs/api/variables/MAX_WARNINGS.html +2 -2
  2640. package/docs/api/variables/MIN_QUALITY_SCORE.html +2 -2
  2641. package/docs/api/variables/MODE_CONFIGS.html +4 -4
  2642. package/docs/api/variables/MULTIMODAL_LOOKER_PROMPT_METADATA.html +1 -1
  2643. package/docs/api/variables/NON_EMPTY_CONTENT_RECOVERY_MESSAGE.html +2 -2
  2644. package/docs/api/variables/NON_INTERACTIVE_ENV.html +1 -1
  2645. package/docs/api/variables/NON_INTERACTIVE_ENV_HOOK_NAME.html +1 -1
  2646. package/docs/api/variables/NOTEPAD_BASE_PATH.html +2 -2
  2647. package/docs/api/variables/NOTEPAD_DEFAULT_CONFIG.html +1 -1
  2648. package/docs/api/variables/NOTEPAD_DIR.html +2 -2
  2649. package/docs/api/variables/NOTEPAD_FILENAME.html +1 -1
  2650. package/docs/api/variables/OMC_ORCHESTRATOR_HOOK_NAME.html +4 -4
  2651. package/docs/api/variables/ORCHESTRATOR_DELEGATION_REQUIRED.html +2 -2
  2652. package/docs/api/variables/PATTERNS_HEADER.html +1 -1
  2653. package/docs/api/variables/PLACEHOLDER_TEXT.html +3 -3
  2654. package/docs/api/variables/PLANNER_PLANS_DIR.html +2 -2
  2655. package/docs/api/variables/PLANNER_PROMPT_METADATA.html +1 -1
  2656. package/docs/api/variables/PLAN_EXTENSION.html +2 -2
  2657. package/docs/api/variables/PRD_EXAMPLE_FILENAME.html +1 -1
  2658. package/docs/api/variables/PRD_FILENAME.html +1 -1
  2659. package/docs/api/variables/PREEMPTIVE_DEFAULT_THRESHOLD.html +2 -2
  2660. package/docs/api/variables/PREVENTED_ERROR.html +2 -2
  2661. package/docs/api/variables/PRIORITY_HEADER.html +1 -1
  2662. package/docs/api/variables/PROGRESS_FILENAME.html +1 -1
  2663. package/docs/api/variables/PROJECT_MARKERS.html +2 -2
  2664. package/docs/api/variables/PROJECT_RULE_FILES.html +2 -2
  2665. package/docs/api/variables/PROJECT_RULE_SUBDIRS.html +2 -2
  2666. package/docs/api/variables/PROJECT_SKILLS_SUBDIR.html +2 -2
  2667. package/docs/api/variables/RAPID_FIRE_DEBOUNCE_MS.html +7 -7
  2668. package/docs/api/variables/README_FILENAME.html +2 -2
  2669. package/docs/api/variables/README_INJECTOR_STORAGE.html +1 -1
  2670. package/docs/api/variables/README_TRACKED_TOOLS.html +2 -2
  2671. package/docs/api/variables/RECOVERY_FAILED_MESSAGE.html +2 -2
  2672. package/docs/api/variables/RECOVERY_MESSAGES.html +2 -2
  2673. package/docs/api/variables/RECOVERY_PLACEHOLDER_TEXT.html +2 -2
  2674. package/docs/api/variables/REMINDER_MESSAGE.html +2 -2
  2675. package/docs/api/variables/REPO_NAME.html +1 -1
  2676. package/docs/api/variables/REPO_OWNER.html +2 -2
  2677. package/docs/api/variables/RETRY_CONFIG.html +6 -6
  2678. package/docs/api/variables/RULES_INJECTOR_STORAGE.html +1 -1
  2679. package/docs/api/variables/RULE_EXTENSIONS.html +2 -2
  2680. package/docs/api/variables/SHELL_COMMAND_PATTERNS.html +3 -3
  2681. package/docs/api/variables/SINGLE_TASK_DIRECTIVE.html +2 -2
  2682. package/docs/api/variables/SISYPHUS_JUNIOR_PROMPT_METADATA.html +1 -1
  2683. package/docs/api/variables/SKILL_EXTENSION.html +2 -2
  2684. package/docs/api/variables/SLASH_COMMAND_PATTERN.html +2 -2
  2685. package/docs/api/variables/STALE_STATE_MAX_AGE_MS.html +2 -2
  2686. package/docs/api/variables/SYNTHETIC_THINKING_ID_PREFIX.html +2 -2
  2687. package/docs/api/variables/TARGET_TOOLS.html +2 -2
  2688. package/docs/api/variables/THINKING_BLOCK_VALIDATOR_HOOK_NAME.html +2 -2
  2689. package/docs/api/variables/THINKING_CONFIGS.html +2 -2
  2690. package/docs/api/variables/THINKING_MODEL_PATTERNS.html +3 -3
  2691. package/docs/api/variables/THINKING_PART_TYPES.html +2 -2
  2692. package/docs/api/variables/TOKEN_LIMIT_KEYWORDS.html +2 -2
  2693. package/docs/api/variables/TOKEN_LIMIT_PATTERNS.html +2 -2
  2694. package/docs/api/variables/TOOL_PART_TYPES.html +2 -2
  2695. package/docs/api/variables/TRACKED_TOOLS.html +2 -2
  2696. package/docs/api/variables/TRUNCATE_CONFIG.html +6 -6
  2697. package/docs/api/variables/TRUNCATION_APPLIED_MESSAGE.html +2 -2
  2698. package/docs/api/variables/TYPE_CHECKER_PREFIXES.html +2 -2
  2699. package/docs/api/variables/ULTRAPILOT_DEFAULT_CONFIG.html +2 -2
  2700. package/docs/api/variables/USER_GATE_MESSAGE.html +1 -1
  2701. package/docs/api/variables/USER_RULE_DIR.html +2 -2
  2702. package/docs/api/variables/USER_SKILLS_DIR.html +2 -2
  2703. package/docs/api/variables/VERIFICATION_REMINDER.html +2 -2
  2704. package/docs/api/variables/VERSION_FILE.html +1 -1
  2705. package/docs/api/variables/WORKING_MEMORY_HEADER.html +1 -1
  2706. package/docs/api/variables/WRITE_EDIT_TOOLS.html +2 -2
  2707. package/docs/api/variables/allCustomTools.html +3 -3
  2708. package/docs/api/variables/analystAgent.html +1 -1
  2709. package/docs/api/variables/architectAgent.html +1 -1
  2710. package/docs/api/variables/astTools.html +2 -2
  2711. package/docs/api/variables/contextCollector.html +2 -2
  2712. package/docs/api/variables/criticAgent.html +1 -1
  2713. package/docs/api/variables/designerAgent.html +1 -1
  2714. package/docs/api/variables/executorAgent.html +1 -1
  2715. package/docs/api/variables/exploreAgent.html +1 -1
  2716. package/docs/api/variables/lspTools.html +2 -2
  2717. package/docs/api/variables/nonInteractiveEnvHook.html +8 -8
  2718. package/docs/api/variables/omcSystemPrompt.html +2 -2
  2719. package/docs/api/variables/omcToolNames.html +3 -3
  2720. package/docs/api/variables/omcToolsServer.html +4 -4
  2721. package/docs/api/variables/plannerAgent.html +1 -1
  2722. package/docs/api/variables/researcherAgent.html +1 -1
  2723. package/docs/api/variables/visionAgent.html +1 -1
  2724. package/docs/api/variables/writerAgent.html +1 -1
  2725. package/docs/dev-standards/context-collection.md +43 -0
  2726. package/docs/dev-standards/context-summary-template.md +49 -0
  2727. package/docs/dev-standards/dev-standards.md +23 -0
  2728. package/docs/dev-standards/quality-review.md +34 -0
  2729. package/docs/dev-standards/sufficiency-checklist.md +40 -0
  2730. package/docs/dev-standards/tools-integration.md +58 -0
  2731. package/docs/dev-standards/workflow.md +26 -0
  2732. package/hooks/run-hook.cmd +0 -0
  2733. package/hooks/session-start +0 -0
  2734. package/package.json +1 -1
  2735. package/scripts/bump-version.mjs +8 -0
  2736. package/scripts/persistent-mode.cjs +605 -605
  2737. package/skills/ax-review/SKILL.md +4 -1
  2738. package/skills/systematic-debugging/find-polluter.sh +0 -0
  2739. package/skills/writing-skills/graphviz-conventions.dot +171 -171
  2740. package/skills/writing-skills/render-graphs.js +0 -0
  2741. package/templates/axiom/scripts/Check-Memory.ps1 +68 -68
  2742. package/templates/axiom/scripts/Poll-Memory.ps1 +36 -36
  2743. package/templates/axiom/scripts/Watch-Memory.ps1 +149 -149
  2744. package/templates/axiom/scripts/agent-runner.ps1 +101 -101
  2745. package/templates/axiom/scripts/start-reviews.ps1 +19 -19
@@ -0,0 +1,1503 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Oh-My-Claude-Sisyphus CLI
4
+ *
5
+ * Command-line interface for the Sisyphus multi-agent system.
6
+ *
7
+ * Commands:
8
+ * - run: Start an interactive session
9
+ * - init: Initialize configuration in current directory
10
+ * - config: Show or edit configuration
11
+ * - setup: Sync all OMC components (hooks, agents, skills)
12
+ */
13
+ import { Command } from 'commander';
14
+ import chalk from 'chalk';
15
+ import { writeFileSync, mkdirSync, existsSync } from 'fs';
16
+ import * as fs from 'fs/promises';
17
+ import { join, dirname } from 'path';
18
+ import { fileURLToPath } from 'url';
19
+ import { homedir } from 'os';
20
+ import { loadConfig, getConfigPaths, generateConfigSchema } from '../config/loader.js';
21
+ import { createSisyphusSession } from '../index.js';
22
+ import { checkForUpdates, performUpdate, formatUpdateNotification, getInstalledVersion, getOMCConfig, reconcileUpdateRuntime, CONFIG_FILE, } from '../features/auto-update.js';
23
+ import { install as installSisyphus, isInstalled, getInstallInfo } from '../installer/index.js';
24
+ import { statsCommand } from './commands/stats.js';
25
+ import { costCommand } from './commands/cost.js';
26
+ import { sessionsCommand } from './commands/sessions.js';
27
+ import { agentsCommand } from './commands/agents.js';
28
+ import { exportCommand } from './commands/export.js';
29
+ import { cleanupCommand } from './commands/cleanup.js';
30
+ import { backfillCommand } from './commands/backfill.js';
31
+ import { perfCommand } from './commands/perf.js';
32
+ import { launchTokscaleTUI, isTokscaleCLIAvailable, getInstallInstructions } from './utils/tokscale-launcher.js';
33
+ import { waitCommand, waitStatusCommand, waitDaemonCommand, waitDetectCommand } from './commands/wait.js';
34
+ import { doctorConflictsCommand } from './commands/doctor-conflicts.js';
35
+ import { teleportCommand, teleportListCommand, teleportRemoveCommand } from './commands/teleport.js';
36
+ import { getRuntimePackageVersion } from '../lib/version.js';
37
+ import { launchCommand } from './launch.js';
38
+ import { interopCommand } from './interop.js';
39
+ const ___dirname = dirname(fileURLToPath(import.meta.url));
40
+ const version = getRuntimePackageVersion();
41
+ const program = new Command();
42
+ // Helper functions for auto-backfill
43
+ async function checkIfBackfillNeeded() {
44
+ const tokenLogPath = join(homedir(), '.omc', 'state', 'token-tracking.jsonl');
45
+ try {
46
+ await fs.access(tokenLogPath);
47
+ const stats = await fs.stat(tokenLogPath);
48
+ // Backfill if file is older than 1 hour or very small
49
+ const ageMs = Date.now() - stats.mtimeMs;
50
+ return stats.size < 100 || ageMs > 3600000;
51
+ }
52
+ catch {
53
+ return true; // File doesn't exist
54
+ }
55
+ }
56
+ async function runQuickBackfill(silent = false) {
57
+ const { BackfillEngine } = await import('../analytics/backfill-engine.js');
58
+ const engine = new BackfillEngine();
59
+ const result = await engine.run({ verbose: false });
60
+ if (result.entriesAdded > 0 && !silent) {
61
+ console.log(chalk.green(`Backfilled ${result.entriesAdded} entries in ${result.timeElapsed}ms`));
62
+ }
63
+ }
64
+ // Auto-backfill before analytics commands
65
+ async function ensureBackfillDone() {
66
+ const shouldBackfill = await checkIfBackfillNeeded();
67
+ if (shouldBackfill) {
68
+ await runQuickBackfill(true); // Silent backfill for subcommands
69
+ }
70
+ }
71
+ // Display enhanced banner using gradient-string (loaded dynamically)
72
+ async function displayAnalyticsBanner() {
73
+ try {
74
+ // @ts-expect-error - gradient-string will be installed during setup
75
+ const gradient = await import('gradient-string');
76
+ const banner = gradient.default.pastel.multiline([
77
+ '╔═══════════════════════════════════════╗',
78
+ '║ Oh-My-ClaudeCode - Analytics Dashboard ║',
79
+ '╚═══════════════════════════════════════╝'
80
+ ].join('\n'));
81
+ console.log(banner);
82
+ console.log('');
83
+ }
84
+ catch (_error) {
85
+ // Fallback if gradient-string not installed
86
+ console.log('╔═══════════════════════════════════════╗');
87
+ console.log('║ Oh-My-ClaudeCode - Analytics Dashboard ║');
88
+ console.log('╚═══════════════════════════════════════╝');
89
+ console.log('');
90
+ }
91
+ }
92
+ // Default action when running 'omc' with no args
93
+ // Check env var to decide between dashboard and launch
94
+ async function defaultAction() {
95
+ const defaultActionMode = process.env.OMC_DEFAULT_ACTION || 'launch';
96
+ if (defaultActionMode === 'dashboard') {
97
+ await displayAnalyticsDashboard();
98
+ }
99
+ else {
100
+ // Launch Claude Code by default
101
+ await launchCommand([]);
102
+ }
103
+ }
104
+ // Analytics dashboard - moved from defaultAction
105
+ async function displayAnalyticsDashboard() {
106
+ await displayAnalyticsBanner();
107
+ // Check if we need to backfill for agent data
108
+ const shouldAutoBackfill = await checkIfBackfillNeeded();
109
+ if (shouldAutoBackfill) {
110
+ console.log(chalk.yellow('First run detected - backfilling agent data...'));
111
+ await runQuickBackfill();
112
+ }
113
+ // Show aggregate session stats
114
+ console.log(chalk.bold('📊 Aggregate Session Statistics'));
115
+ console.log(chalk.gray('─'.repeat(50)));
116
+ await statsCommand({ json: false });
117
+ console.log('\n');
118
+ // Show cost breakdown
119
+ console.log(chalk.bold('💰 Cost Analysis (Monthly)'));
120
+ console.log(chalk.gray('─'.repeat(50)));
121
+ await costCommand('monthly', { json: false });
122
+ console.log('\n');
123
+ // Show top agents
124
+ console.log(chalk.bold('🤖 Top Agents'));
125
+ console.log(chalk.gray('─'.repeat(50)));
126
+ await agentsCommand({ json: false, limit: 10 });
127
+ console.log('\n');
128
+ console.log(chalk.dim('Run with --help to see all available commands'));
129
+ // Show tokscale hint if available
130
+ const tuiAvailable = await isTokscaleCLIAvailable();
131
+ if (tuiAvailable) {
132
+ console.log('');
133
+ console.log(chalk.dim('Tip: Run `omc tui` for an interactive token visualization dashboard'));
134
+ }
135
+ }
136
+ program
137
+ .name('omc')
138
+ .description('Multi-agent orchestration system for Claude Agent SDK with analytics')
139
+ .version(version)
140
+ .action(defaultAction);
141
+ /**
142
+ * Launch command - Native tmux shell launch for Claude Code
143
+ */
144
+ program
145
+ .command('launch [args...]')
146
+ .description('Launch Claude Code with native tmux shell integration')
147
+ .allowUnknownOption()
148
+ .addHelpText('after', `
149
+ Examples:
150
+ $ omc launch Launch Claude Code
151
+ $ omc launch --madmax Launch with permissions bypass
152
+ $ omc launch --yolo Launch with permissions bypass (alias)
153
+
154
+ Environment:
155
+ Set OMC_DEFAULT_ACTION=dashboard to show analytics dashboard when running 'omc' with no args`)
156
+ .action(async (args) => {
157
+ await launchCommand(args);
158
+ });
159
+ /**
160
+ * Dashboard command - Show analytics dashboard
161
+ */
162
+ program
163
+ .command('dashboard')
164
+ .description('Show analytics dashboard (aggregate stats, costs, agents)')
165
+ .addHelpText('after', `
166
+ Note: This was the default 'omc' behavior. Now 'omc' launches Claude Code by default.
167
+ Set OMC_DEFAULT_ACTION=dashboard to restore the old behavior.`)
168
+ .action(async () => {
169
+ await displayAnalyticsDashboard();
170
+ });
171
+ /**
172
+ * Interop command - Split-pane tmux session with OMC and OMX
173
+ */
174
+ program
175
+ .command('interop')
176
+ .description('Launch split-pane tmux session with Claude Code (OMC) and Codex (OMX)')
177
+ .addHelpText('after', `
178
+ Requirements:
179
+ - Must be running inside a tmux session
180
+ - Claude CLI must be installed
181
+ - Codex CLI recommended (graceful fallback if missing)`)
182
+ .action(() => {
183
+ interopCommand();
184
+ });
185
+ /**
186
+ * Analytics Commands
187
+ */
188
+ // Stats command
189
+ program
190
+ .command('stats')
191
+ .description('Show aggregate statistics (or specific session with --session)')
192
+ .option('--json', 'Output as JSON')
193
+ .option('--session <id>', 'Show stats for specific session (defaults to aggregate)')
194
+ .addHelpText('after', `
195
+ Examples:
196
+ $ omc stats Show aggregate statistics
197
+ $ omc stats --session abc123 Show stats for a specific session
198
+ $ omc stats --json Output as JSON for scripting`)
199
+ .action(async (options) => {
200
+ await ensureBackfillDone();
201
+ await statsCommand(options);
202
+ });
203
+ // Cost command
204
+ program
205
+ .command('cost [period]')
206
+ .description('Generate cost report (period: daily, weekly, monthly)')
207
+ .option('--json', 'Output as JSON')
208
+ .addHelpText('after', `
209
+ Examples:
210
+ $ omc cost Show monthly cost report
211
+ $ omc cost daily Show daily cost breakdown
212
+ $ omc cost weekly --json Export weekly costs as JSON`)
213
+ .action(async (period = 'monthly', options) => {
214
+ if (!['daily', 'weekly', 'monthly'].includes(period)) {
215
+ console.error(chalk.red(`Invalid period "${period}". Valid options: daily, weekly, monthly`));
216
+ console.error(chalk.gray('Example: omc cost weekly'));
217
+ process.exit(1);
218
+ }
219
+ await ensureBackfillDone();
220
+ await costCommand(period, options);
221
+ });
222
+ // Sessions command
223
+ program
224
+ .command('sessions')
225
+ .description('View session history')
226
+ .option('--json', 'Output as JSON')
227
+ .option('-n, --limit <number>', 'Limit number of sessions', '10')
228
+ .addHelpText('after', `
229
+ Examples:
230
+ $ omc sessions Show last 10 sessions
231
+ $ omc sessions --limit 50 Show last 50 sessions
232
+ $ omc sessions --json Export session history as JSON`)
233
+ .action(async (options) => {
234
+ await ensureBackfillDone();
235
+ await sessionsCommand({ ...options, limit: parseInt(options.limit) });
236
+ });
237
+ // Agents command
238
+ program
239
+ .command('agents')
240
+ .description('Show agent usage breakdown')
241
+ .option('--json', 'Output as JSON')
242
+ .option('-n, --limit <number>', 'Limit number of agents', '10')
243
+ .addHelpText('after', `
244
+ Examples:
245
+ $ omc agents Show top 10 agents by usage
246
+ $ omc agents --limit 20 Show top 20 agents
247
+ $ omc agents --json Export agent data as JSON`)
248
+ .action(async (options) => {
249
+ await ensureBackfillDone();
250
+ await agentsCommand({ ...options, limit: parseInt(options.limit) });
251
+ });
252
+ // Export command
253
+ program
254
+ .command('export <type> <format> <output>')
255
+ .description('Export data (type: cost, sessions, patterns; format: json, csv)')
256
+ .option('--period <period>', 'Period for cost report (daily, weekly, monthly)', 'monthly')
257
+ .addHelpText('after', `
258
+ Examples:
259
+ $ omc export cost json costs.json Export monthly costs to JSON
260
+ $ omc export sessions csv sessions.csv Export sessions to CSV
261
+ $ omc export cost csv data.csv --period weekly Export weekly costs`)
262
+ .action((type, format, output, options) => {
263
+ if (!['cost', 'sessions', 'patterns'].includes(type)) {
264
+ console.error(chalk.red(`Invalid type "${type}". Valid options: cost, sessions, patterns`));
265
+ console.error(chalk.gray('Example: omc export cost json output.json'));
266
+ process.exit(1);
267
+ }
268
+ if (!['json', 'csv'].includes(format)) {
269
+ console.error(chalk.red(`Invalid format "${format}". Valid options: json, csv`));
270
+ console.error(chalk.gray('Example: omc export sessions csv sessions.csv'));
271
+ process.exit(1);
272
+ }
273
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- commander string narrowing
274
+ exportCommand(type, format, output, options);
275
+ });
276
+ // Cleanup command
277
+ program
278
+ .command('cleanup')
279
+ .description('Clean up old logs and orphaned background tasks')
280
+ .option('-r, --retention <days>', 'Retention period in days', '30')
281
+ .addHelpText('after', `
282
+ Examples:
283
+ $ omc cleanup Clean up logs older than 30 days
284
+ $ omc cleanup --retention 7 Clean up logs older than 7 days`)
285
+ .action(options => {
286
+ cleanupCommand({ ...options, retention: parseInt(options.retention) });
287
+ });
288
+ // Backfill command (deprecated - auto-backfill runs on every command)
289
+ program
290
+ .command('backfill')
291
+ .description('[DEPRECATED] Backfill now runs automatically. Use for manual re-sync only.')
292
+ .option('--project <path>', 'Filter to specific project path')
293
+ .option('--from <date>', 'Start date (ISO format: YYYY-MM-DD)')
294
+ .option('--to <date>', 'End date (ISO format: YYYY-MM-DD)')
295
+ .option('--dry-run', 'Preview without writing data')
296
+ .option('--reset', 'Clear deduplication index and re-process all transcripts')
297
+ .option('-v, --verbose', 'Show detailed progress')
298
+ .option('--json', 'Output as JSON')
299
+ .addHelpText('after', `
300
+ Examples:
301
+ $ omc backfill --reset Force full re-sync
302
+ $ omc backfill --project ~/myproject Backfill specific project
303
+ $ omc backfill --from 2024-01-01 --verbose Backfill from date with progress`)
304
+ .action(async (options) => {
305
+ if (!options.reset && !options.project && !options.from && !options.to) {
306
+ console.log(chalk.yellow('Note: Backfill now runs automatically with every omc command.'));
307
+ console.log(chalk.gray('Use --reset to force full re-sync, or --project/--from/--to for filtered backfill.\n'));
308
+ }
309
+ await backfillCommand(options);
310
+ });
311
+ // Performance monitoring command
312
+ program.addCommand(perfCommand);
313
+ // TUI command
314
+ program
315
+ .command('tui')
316
+ .description('Launch tokscale interactive TUI for token visualization')
317
+ .option('--models', 'Show models view')
318
+ .option('--daily', 'Show daily/monthly view')
319
+ .option('--no-claude', 'Show all providers (not just Claude)')
320
+ .addHelpText('after', `
321
+ Examples:
322
+ $ omc tui Launch interactive dashboard
323
+ $ omc tui --light Use light theme
324
+ $ omc tui --daily Start with daily view`)
325
+ .action(async (options) => {
326
+ const available = await isTokscaleCLIAvailable();
327
+ if (!available) {
328
+ console.log(chalk.yellow('tokscale is not installed.'));
329
+ console.log(getInstallInstructions());
330
+ process.exit(1);
331
+ }
332
+ const view = options.models ? 'models'
333
+ : options.daily ? 'daily'
334
+ : 'overview';
335
+ try {
336
+ await launchTokscaleTUI({
337
+ view,
338
+ claude: options.claude
339
+ });
340
+ }
341
+ catch (error) {
342
+ const message = error instanceof Error ? error.message : String(error);
343
+ console.error(chalk.red(`Failed to launch TUI: ${message}`));
344
+ console.error(chalk.gray('Try running "omc tui" again, or check if tokscale is properly installed.'));
345
+ process.exit(1);
346
+ }
347
+ });
348
+ /**
349
+ * Init command - Initialize configuration
350
+ */
351
+ program
352
+ .command('init')
353
+ .description('Initialize Sisyphus configuration in the current directory')
354
+ .option('-g, --global', 'Initialize global user configuration')
355
+ .option('-f, --force', 'Overwrite existing configuration')
356
+ .addHelpText('after', `
357
+ Examples:
358
+ $ omc init Initialize in current directory
359
+ $ omc init --global Initialize global configuration
360
+ $ omc init --force Overwrite existing config`)
361
+ .action(async (options) => {
362
+ console.log(chalk.yellow('⚠️ DEPRECATED: The init command is deprecated.'));
363
+ console.log(chalk.gray('Configuration is now managed automatically. Use /ultrapower:omc-setup instead.\n'));
364
+ const paths = getConfigPaths();
365
+ const targetPath = options.global ? paths.user : paths.project;
366
+ const targetDir = dirname(targetPath);
367
+ console.log(chalk.blue('Oh-My-ClaudeCode Configuration Setup\n'));
368
+ // Check if config already exists
369
+ if (existsSync(targetPath) && !options.force) {
370
+ console.log(chalk.yellow(`Configuration already exists at ${targetPath}`));
371
+ console.log(chalk.gray('Use --force to overwrite'));
372
+ return;
373
+ }
374
+ // Create directory if needed
375
+ if (!existsSync(targetDir)) {
376
+ mkdirSync(targetDir, { recursive: true });
377
+ console.log(chalk.green(`Created directory: ${targetDir}`));
378
+ }
379
+ // Generate config content
380
+ const configContent = `// Oh-My-ClaudeCode Configuration
381
+ // See: https://github.com/liangjie559567/ultrapower for documentation
382
+ {
383
+ "$schema": "./sisyphus-schema.json",
384
+
385
+ // Agent model configurations
386
+ "agents": {
387
+ "sisyphus": {
388
+ // Main orchestrator - uses the most capable model
389
+ "model": "claude-opus-4-6-20260205"
390
+ },
391
+ "architect": {
392
+ // Architecture and debugging expert
393
+ "model": "claude-opus-4-6-20260205",
394
+ "enabled": true
395
+ },
396
+ "researcher": {
397
+ // Documentation and codebase analysis
398
+ "model": "claude-sonnet-4-6-20260217"
399
+ },
400
+ "explore": {
401
+ // Fast pattern matching - uses fastest model
402
+ "model": "claude-3-5-haiku-20241022"
403
+ },
404
+ "frontendEngineer": {
405
+ "model": "claude-sonnet-4-6-20260217",
406
+ "enabled": true
407
+ },
408
+ "documentWriter": {
409
+ "model": "claude-3-5-haiku-20241022",
410
+ "enabled": true
411
+ },
412
+ "multimodalLooker": {
413
+ "model": "claude-sonnet-4-6-20260217",
414
+ "enabled": true
415
+ }
416
+ },
417
+
418
+ // Feature toggles
419
+ "features": {
420
+ "parallelExecution": true,
421
+ "lspTools": true,
422
+ "astTools": true,
423
+ "continuationEnforcement": true,
424
+ "autoContextInjection": true
425
+ },
426
+
427
+ // MCP server integrations
428
+ "mcpServers": {
429
+ "exa": {
430
+ "enabled": true
431
+ // Set EXA_API_KEY environment variable for API key
432
+ },
433
+ "context7": {
434
+ "enabled": true
435
+ }
436
+ },
437
+
438
+ // Permission settings
439
+ "permissions": {
440
+ "allowBash": true,
441
+ "allowEdit": true,
442
+ "allowWrite": true,
443
+ "maxBackgroundTasks": 5
444
+ },
445
+
446
+ // Magic keyword triggers (customize if desired)
447
+ "magicKeywords": {
448
+ "ultrawork": ["ultrawork", "ulw", "uw"],
449
+ "search": ["search", "find", "locate"],
450
+ "analyze": ["analyze", "investigate", "examine"]
451
+ }
452
+ }
453
+ `;
454
+ writeFileSync(targetPath, configContent);
455
+ console.log(chalk.green(`Created configuration: ${targetPath}`));
456
+ // Also create the JSON schema for editor support
457
+ const schemaPath = join(targetDir, 'sisyphus-schema.json');
458
+ writeFileSync(schemaPath, JSON.stringify(generateConfigSchema(), null, 2));
459
+ console.log(chalk.green(`Created JSON schema: ${schemaPath}`));
460
+ console.log(chalk.blue('\nSetup complete!'));
461
+ console.log(chalk.gray('Edit the configuration file to customize your setup.'));
462
+ // Create AGENTS.md template if it doesn't exist
463
+ const agentsMdPath = join(process.cwd(), 'AGENTS.md');
464
+ if (!existsSync(agentsMdPath) && !options.global) {
465
+ const agentsMdContent = `# Project Agents Configuration
466
+
467
+ This file provides context and instructions to AI agents working on this project.
468
+
469
+ ## Project Overview
470
+
471
+ <!-- Describe your project here -->
472
+
473
+ ## Architecture
474
+
475
+ <!-- Describe the architecture and key components -->
476
+
477
+ ## Conventions
478
+
479
+ <!-- List coding conventions, naming patterns, etc. -->
480
+
481
+ ## Important Files
482
+
483
+ <!-- List key files agents should know about -->
484
+
485
+ ## Common Tasks
486
+
487
+ <!-- Describe common development tasks and how to perform them -->
488
+ `;
489
+ writeFileSync(agentsMdPath, agentsMdContent);
490
+ console.log(chalk.green(`Created AGENTS.md template`));
491
+ }
492
+ });
493
+ /**
494
+ * Config command - Show or validate configuration
495
+ */
496
+ program
497
+ .command('config')
498
+ .description('Show current configuration')
499
+ .option('-v, --validate', 'Validate configuration')
500
+ .option('-p, --paths', 'Show configuration file paths')
501
+ .addHelpText('after', `
502
+ Examples:
503
+ $ omc config Show current configuration
504
+ $ omc config --validate Validate configuration files
505
+ $ omc config --paths Show config file locations
506
+
507
+ }`)
508
+ .action(async (options) => {
509
+ if (options.paths) {
510
+ const paths = getConfigPaths();
511
+ console.log(chalk.blue('Configuration file paths:'));
512
+ console.log(` User: ${paths.user}`);
513
+ console.log(` Project: ${paths.project}`);
514
+ console.log(chalk.blue('\nFile status:'));
515
+ console.log(` User: ${existsSync(paths.user) ? chalk.green('exists') : chalk.gray('not found')}`);
516
+ console.log(` Project: ${existsSync(paths.project) ? chalk.green('exists') : chalk.gray('not found')}`);
517
+ return;
518
+ }
519
+ const config = loadConfig();
520
+ if (options.validate) {
521
+ console.log(chalk.blue('Validating configuration...\n'));
522
+ // Check for required fields
523
+ const warnings = [];
524
+ const errors = [];
525
+ if (!process.env.ANTHROPIC_API_KEY) {
526
+ warnings.push('ANTHROPIC_API_KEY environment variable not set');
527
+ }
528
+ if (config.mcpServers?.exa?.enabled && !process.env.EXA_API_KEY && !config.mcpServers.exa.apiKey) {
529
+ warnings.push('Exa is enabled but EXA_API_KEY is not set');
530
+ }
531
+ if (errors.length > 0) {
532
+ console.log(chalk.red('Errors:'));
533
+ errors.forEach(e => console.log(chalk.red(` - ${e}`)));
534
+ }
535
+ if (warnings.length > 0) {
536
+ console.log(chalk.yellow('Warnings:'));
537
+ warnings.forEach(w => console.log(chalk.yellow(` - ${w}`)));
538
+ }
539
+ if (errors.length === 0 && warnings.length === 0) {
540
+ console.log(chalk.green('Configuration is valid!'));
541
+ }
542
+ return;
543
+ }
544
+ console.log(chalk.blue('Current configuration:\n'));
545
+ console.log(JSON.stringify(config, null, 2));
546
+ });
547
+ /**
548
+ * Config stop-callback subcommand - Configure stop hook callbacks
549
+ */
550
+ const _configStopCallback = program
551
+ .command('config-stop-callback <type>')
552
+ .description('Configure stop hook callbacks (file/telegram/discord)')
553
+ .option('--enable', 'Enable callback')
554
+ .option('--disable', 'Disable callback')
555
+ .option('--path <path>', 'File path (supports {session_id}, {date}, {time})')
556
+ .option('--format <format>', 'File format: markdown | json')
557
+ .option('--token <token>', 'Bot token (telegram or discord-bot)')
558
+ .option('--chat <id>', 'Telegram chat ID')
559
+ .option('--webhook <url>', 'Discord webhook URL')
560
+ .option('--channel-id <id>', 'Discord bot channel ID (used with --profile)')
561
+ .option('--tag-list <csv>', 'Replace tag list (comma-separated, telegram/discord only)')
562
+ .option('--add-tag <tag>', 'Append one tag (telegram/discord only)')
563
+ .option('--remove-tag <tag>', 'Remove one tag (telegram/discord only)')
564
+ .option('--clear-tags', 'Clear all tags (telegram/discord only)')
565
+ .option('--profile <name>', 'Named notification profile to configure')
566
+ .option('--show', 'Show current configuration')
567
+ .addHelpText('after', `
568
+ Types:
569
+ file File system callback (saves session summary to disk)
570
+ telegram Telegram bot notification
571
+ discord Discord webhook notification
572
+
573
+ Profile types (use with --profile):
574
+ discord-bot Discord Bot API (token + channel ID)
575
+ slack Slack incoming webhook
576
+ webhook Generic webhook (POST with JSON body)
577
+
578
+ Examples:
579
+ $ omc config-stop-callback file --enable --path ~/.claude/logs/{date}.md
580
+ $ omc config-stop-callback telegram --enable --token <token> --chat <id>
581
+ $ omc config-stop-callback discord --enable --webhook <url>
582
+ $ omc config-stop-callback file --disable
583
+ $ omc config-stop-callback file --show
584
+
585
+ # Named profiles (stored in notificationProfiles):
586
+ $ omc config-stop-callback discord --profile work --enable --webhook <url>
587
+ $ omc config-stop-callback telegram --profile work --enable --token <tk> --chat <id>
588
+ $ omc config-stop-callback discord-bot --profile ops --enable --token <tk> --channel-id <id>
589
+
590
+ # Select profile at launch:
591
+ $ OMC_NOTIFY_PROFILE=work claude`)
592
+ .action(async (type, options) => {
593
+ // When --profile is used, route to profile-based config
594
+ if (options.profile) {
595
+ const profileValidTypes = ['file', 'telegram', 'discord', 'discord-bot', 'slack', 'webhook'];
596
+ if (!profileValidTypes.includes(type)) {
597
+ console.error(chalk.red(`Invalid type for profile: ${type}`));
598
+ console.error(chalk.gray(`Valid types: ${profileValidTypes.join(', ')}`));
599
+ process.exit(1);
600
+ }
601
+ const config = getOMCConfig();
602
+ config.notificationProfiles = config.notificationProfiles || {};
603
+ const profileName = options.profile;
604
+ const profile = config.notificationProfiles[profileName] || { enabled: true };
605
+ // Show current profile config
606
+ if (options.show) {
607
+ if (config.notificationProfiles[profileName]) {
608
+ console.log(chalk.blue(`Profile "${profileName}" — ${type} configuration:`));
609
+ const platformConfig = profile[type];
610
+ if (platformConfig) {
611
+ console.log(JSON.stringify(platformConfig, null, 2));
612
+ }
613
+ else {
614
+ console.log(chalk.yellow(`No ${type} platform configured in profile "${profileName}".`));
615
+ }
616
+ }
617
+ else {
618
+ console.log(chalk.yellow(`Profile "${profileName}" not found.`));
619
+ }
620
+ return;
621
+ }
622
+ let enabled;
623
+ if (options.enable)
624
+ enabled = true;
625
+ else if (options.disable)
626
+ enabled = false;
627
+ switch (type) {
628
+ case 'discord': {
629
+ const current = profile.discord;
630
+ if (enabled === true && (!options.webhook && !current?.webhookUrl)) {
631
+ console.error(chalk.red('Discord requires --webhook <webhook_url>'));
632
+ process.exit(1);
633
+ }
634
+ profile.discord = {
635
+ ...current,
636
+ enabled: enabled ?? current?.enabled ?? false,
637
+ webhookUrl: options.webhook ?? current?.webhookUrl,
638
+ };
639
+ break;
640
+ }
641
+ case 'discord-bot': {
642
+ const current = profile['discord-bot'];
643
+ if (enabled === true && (!options.token && !current?.botToken)) {
644
+ console.error(chalk.red('Discord bot requires --token <bot_token>'));
645
+ process.exit(1);
646
+ }
647
+ if (enabled === true && (!options.channelId && !current?.channelId)) {
648
+ console.error(chalk.red('Discord bot requires --channel-id <channel_id>'));
649
+ process.exit(1);
650
+ }
651
+ profile['discord-bot'] = {
652
+ ...current,
653
+ enabled: enabled ?? current?.enabled ?? false,
654
+ botToken: options.token ?? current?.botToken,
655
+ channelId: options.channelId ?? current?.channelId,
656
+ };
657
+ break;
658
+ }
659
+ case 'telegram': {
660
+ const current = profile.telegram;
661
+ if (enabled === true && (!options.token && !current?.botToken)) {
662
+ console.error(chalk.red('Telegram requires --token <bot_token>'));
663
+ process.exit(1);
664
+ }
665
+ if (enabled === true && (!options.chat && !current?.chatId)) {
666
+ console.error(chalk.red('Telegram requires --chat <chat_id>'));
667
+ process.exit(1);
668
+ }
669
+ profile.telegram = {
670
+ ...current,
671
+ enabled: enabled ?? current?.enabled ?? false,
672
+ botToken: options.token ?? current?.botToken,
673
+ chatId: options.chat ?? current?.chatId,
674
+ };
675
+ break;
676
+ }
677
+ case 'slack': {
678
+ const current = profile.slack;
679
+ if (enabled === true && (!options.webhook && !current?.webhookUrl)) {
680
+ console.error(chalk.red('Slack requires --webhook <webhook_url>'));
681
+ process.exit(1);
682
+ }
683
+ profile.slack = {
684
+ ...current,
685
+ enabled: enabled ?? current?.enabled ?? false,
686
+ webhookUrl: options.webhook ?? current?.webhookUrl,
687
+ };
688
+ break;
689
+ }
690
+ case 'webhook': {
691
+ const current = profile.webhook;
692
+ if (enabled === true && (!options.webhook && !current?.url)) {
693
+ console.error(chalk.red('Webhook requires --webhook <url>'));
694
+ process.exit(1);
695
+ }
696
+ profile.webhook = {
697
+ ...current,
698
+ enabled: enabled ?? current?.enabled ?? false,
699
+ url: options.webhook ?? current?.url,
700
+ };
701
+ break;
702
+ }
703
+ case 'file': {
704
+ console.error(chalk.yellow('File callbacks are not supported in notification profiles.'));
705
+ console.error(chalk.gray('Use without --profile for file callbacks.'));
706
+ process.exit(1);
707
+ break;
708
+ }
709
+ }
710
+ config.notificationProfiles[profileName] = profile;
711
+ try {
712
+ writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2), 'utf-8');
713
+ console.log(chalk.green(`\u2713 Profile "${profileName}" — ${type} configured`));
714
+ console.log(JSON.stringify(profile[type], null, 2));
715
+ }
716
+ catch (error) {
717
+ console.error(chalk.red('Failed to write configuration:'), error);
718
+ process.exit(1);
719
+ }
720
+ return;
721
+ }
722
+ // Legacy (non-profile) path
723
+ const validTypes = ['file', 'telegram', 'discord'];
724
+ if (!validTypes.includes(type)) {
725
+ console.error(chalk.red(`Invalid callback type: ${type}`));
726
+ console.error(chalk.gray(`Valid types: ${validTypes.join(', ')}`));
727
+ process.exit(1);
728
+ }
729
+ const config = getOMCConfig();
730
+ config.stopHookCallbacks = config.stopHookCallbacks || {};
731
+ // Show current config
732
+ if (options.show) {
733
+ const current = config.stopHookCallbacks[type];
734
+ if (current) {
735
+ console.log(chalk.blue(`Current ${type} callback configuration:`));
736
+ console.log(JSON.stringify(current, null, 2));
737
+ }
738
+ else {
739
+ console.log(chalk.yellow(`No ${type} callback configured.`));
740
+ }
741
+ return;
742
+ }
743
+ // Determine enabled state
744
+ let enabled;
745
+ if (options.enable) {
746
+ enabled = true;
747
+ }
748
+ else if (options.disable) {
749
+ enabled = false;
750
+ }
751
+ const hasTagListChanges = options.tagList !== undefined
752
+ || options.addTag !== undefined
753
+ || options.removeTag !== undefined
754
+ || options.clearTags;
755
+ const parseTagList = (value) => value
756
+ .split(',')
757
+ .map((tag) => tag.trim())
758
+ .filter(Boolean);
759
+ const resolveTagList = (currentTagList) => {
760
+ let next = options.tagList !== undefined
761
+ ? parseTagList(options.tagList)
762
+ : [...(currentTagList ?? [])];
763
+ if (options.clearTags) {
764
+ next = [];
765
+ }
766
+ if (options.addTag !== undefined) {
767
+ const tagToAdd = String(options.addTag).trim();
768
+ if (tagToAdd && !next.includes(tagToAdd)) {
769
+ next.push(tagToAdd);
770
+ }
771
+ }
772
+ if (options.removeTag !== undefined) {
773
+ const tagToRemove = String(options.removeTag).trim();
774
+ if (tagToRemove) {
775
+ next = next.filter((tag) => tag !== tagToRemove);
776
+ }
777
+ }
778
+ return next;
779
+ };
780
+ // Update config based on type
781
+ switch (type) {
782
+ case 'file': {
783
+ const current = config.stopHookCallbacks.file;
784
+ config.stopHookCallbacks.file = {
785
+ enabled: enabled ?? current?.enabled ?? false,
786
+ path: options.path ?? current?.path ?? '~/.claude/session-logs/{session_id}.md',
787
+ format: options.format ?? current?.format ?? 'markdown',
788
+ };
789
+ break;
790
+ }
791
+ case 'telegram': {
792
+ const current = config.stopHookCallbacks.telegram;
793
+ if (enabled === true && (!options.token && !current?.botToken)) {
794
+ console.error(chalk.red('Telegram requires --token <bot_token>'));
795
+ process.exit(1);
796
+ }
797
+ if (enabled === true && (!options.chat && !current?.chatId)) {
798
+ console.error(chalk.red('Telegram requires --chat <chat_id>'));
799
+ process.exit(1);
800
+ }
801
+ config.stopHookCallbacks.telegram = {
802
+ ...current,
803
+ enabled: enabled ?? current?.enabled ?? false,
804
+ botToken: options.token ?? current?.botToken,
805
+ chatId: options.chat ?? current?.chatId,
806
+ tagList: hasTagListChanges ? resolveTagList(current?.tagList) : current?.tagList,
807
+ };
808
+ break;
809
+ }
810
+ case 'discord': {
811
+ const current = config.stopHookCallbacks.discord;
812
+ if (enabled === true && (!options.webhook && !current?.webhookUrl)) {
813
+ console.error(chalk.red('Discord requires --webhook <webhook_url>'));
814
+ process.exit(1);
815
+ }
816
+ config.stopHookCallbacks.discord = {
817
+ ...current,
818
+ enabled: enabled ?? current?.enabled ?? false,
819
+ webhookUrl: options.webhook ?? current?.webhookUrl,
820
+ tagList: hasTagListChanges ? resolveTagList(current?.tagList) : current?.tagList,
821
+ };
822
+ break;
823
+ }
824
+ }
825
+ // Write config
826
+ try {
827
+ writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2), 'utf-8');
828
+ console.log(chalk.green(`\u2713 Stop callback '${type}' configured`));
829
+ console.log(JSON.stringify(config.stopHookCallbacks[type], null, 2));
830
+ }
831
+ catch (error) {
832
+ console.error(chalk.red('Failed to write configuration:'), error);
833
+ process.exit(1);
834
+ }
835
+ });
836
+ /**
837
+ * Config notify-profile subcommand - List, show, and delete notification profiles
838
+ */
839
+ program
840
+ .command('config-notify-profile [name]')
841
+ .description('Manage notification profiles')
842
+ .option('--list', 'List all profiles')
843
+ .option('--show', 'Show profile configuration')
844
+ .option('--delete', 'Delete a profile')
845
+ .addHelpText('after', `
846
+ Examples:
847
+ $ omc config-notify-profile --list
848
+ $ omc config-notify-profile work --show
849
+ $ omc config-notify-profile work --delete
850
+
851
+ # Create/update profiles via config-stop-callback --profile:
852
+ $ omc config-stop-callback discord --profile work --enable --webhook <url>
853
+
854
+ # Select profile at launch:
855
+ $ OMC_NOTIFY_PROFILE=work claude`)
856
+ .action(async (name, options) => {
857
+ const config = getOMCConfig();
858
+ const profiles = config.notificationProfiles || {};
859
+ if (options.list || !name) {
860
+ const names = Object.keys(profiles);
861
+ if (names.length === 0) {
862
+ console.log(chalk.yellow('No notification profiles configured.'));
863
+ console.log(chalk.gray('Create one with: omc config-stop-callback <type> --profile <name> --enable ...'));
864
+ }
865
+ else {
866
+ console.log(chalk.blue('Notification profiles:'));
867
+ for (const pName of names) {
868
+ const p = profiles[pName];
869
+ const platforms = ['discord', 'discord-bot', 'telegram', 'slack', 'webhook']
870
+ .filter((plat) => p[plat] && (p[plat])?.enabled)
871
+ .join(', ');
872
+ const status = p.enabled !== false ? chalk.green('enabled') : chalk.red('disabled');
873
+ console.log(` ${chalk.bold(pName)} [${status}] — ${platforms || 'no platforms'}`);
874
+ }
875
+ }
876
+ const activeProfile = process.env.OMC_NOTIFY_PROFILE;
877
+ if (activeProfile) {
878
+ console.log(chalk.gray(`\nActive profile (OMC_NOTIFY_PROFILE): ${activeProfile}`));
879
+ }
880
+ return;
881
+ }
882
+ if (options.show) {
883
+ if (profiles[name]) {
884
+ console.log(chalk.blue(`Profile "${name}":`));
885
+ console.log(JSON.stringify(profiles[name], null, 2));
886
+ }
887
+ else {
888
+ console.log(chalk.yellow(`Profile "${name}" not found.`));
889
+ }
890
+ return;
891
+ }
892
+ if (options.delete) {
893
+ if (!profiles[name]) {
894
+ console.log(chalk.yellow(`Profile "${name}" not found.`));
895
+ return;
896
+ }
897
+ delete profiles[name];
898
+ config.notificationProfiles = profiles;
899
+ if (Object.keys(profiles).length === 0) {
900
+ delete config.notificationProfiles;
901
+ }
902
+ try {
903
+ writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2), 'utf-8');
904
+ console.log(chalk.green(`\u2713 Profile "${name}" deleted`));
905
+ }
906
+ catch (error) {
907
+ console.error(chalk.red('Failed to write configuration:'), error);
908
+ process.exit(1);
909
+ }
910
+ return;
911
+ }
912
+ // Default: show the named profile
913
+ if (profiles[name]) {
914
+ console.log(chalk.blue(`Profile "${name}":`));
915
+ console.log(JSON.stringify(profiles[name], null, 2));
916
+ }
917
+ else {
918
+ console.log(chalk.yellow(`Profile "${name}" not found.`));
919
+ console.log(chalk.gray('Create it with: omc config-stop-callback <type> --profile ' + name + ' --enable ...'));
920
+ }
921
+ });
922
+ /**
923
+ * Info command - Show system information
924
+ */
925
+ program
926
+ .command('info')
927
+ .description('Show system and agent information')
928
+ .addHelpText('after', `
929
+ Examples:
930
+ $ omc info Show agents, features, and MCP servers`)
931
+ .action(async () => {
932
+ const session = createSisyphusSession();
933
+ console.log(chalk.blue.bold('\nOh-My-ClaudeCode System Information\n'));
934
+ console.log(chalk.gray('━'.repeat(50)));
935
+ console.log(chalk.blue('\nAvailable Agents:'));
936
+ const agents = session.queryOptions.options.agents;
937
+ for (const [name, agent] of Object.entries(agents)) {
938
+ console.log(` ${chalk.green(name)}`);
939
+ console.log(` ${chalk.gray(agent.description.split('\n')[0])}`);
940
+ }
941
+ console.log(chalk.blue('\nEnabled Features:'));
942
+ const features = session.config.features;
943
+ if (features) {
944
+ console.log(` Parallel Execution: ${features.parallelExecution ? chalk.green('enabled') : chalk.gray('disabled')}`);
945
+ console.log(` LSP Tools: ${features.lspTools ? chalk.green('enabled') : chalk.gray('disabled')}`);
946
+ console.log(` AST Tools: ${features.astTools ? chalk.green('enabled') : chalk.gray('disabled')}`);
947
+ console.log(` Continuation Enforcement:${features.continuationEnforcement ? chalk.green('enabled') : chalk.gray('disabled')}`);
948
+ console.log(` Auto Context Injection: ${features.autoContextInjection ? chalk.green('enabled') : chalk.gray('disabled')}`);
949
+ }
950
+ console.log(chalk.blue('\nMCP Servers:'));
951
+ const mcpServers = session.queryOptions.options.mcpServers;
952
+ for (const name of Object.keys(mcpServers)) {
953
+ console.log(` ${chalk.green(name)}`);
954
+ }
955
+ console.log(chalk.blue('\nMagic Keywords:'));
956
+ console.log(` Ultrawork: ${chalk.cyan(session.config.magicKeywords?.ultrawork?.join(', ') ?? 'ultrawork, ulw, uw')}`);
957
+ console.log(` Search: ${chalk.cyan(session.config.magicKeywords?.search?.join(', ') ?? 'search, find, locate')}`);
958
+ console.log(` Analyze: ${chalk.cyan(session.config.magicKeywords?.analyze?.join(', ') ?? 'analyze, investigate, examine')}`);
959
+ console.log(chalk.gray('\n━'.repeat(50)));
960
+ console.log(chalk.gray(`Version: ${version}`));
961
+ });
962
+ /**
963
+ * Test command - Test prompt enhancement
964
+ */
965
+ program
966
+ .command('test-prompt <prompt>')
967
+ .description('Test how a prompt would be enhanced')
968
+ .addHelpText('after', `
969
+ Examples:
970
+ $ omc test-prompt "ultrawork fix bugs" See how magic keywords are detected
971
+ $ omc test-prompt "analyze this code" Test prompt enhancement`)
972
+ .action(async (prompt) => {
973
+ const session = createSisyphusSession();
974
+ console.log(chalk.blue('Original prompt:'));
975
+ console.log(chalk.gray(prompt));
976
+ const keywords = session.detectKeywords(prompt);
977
+ if (keywords.length > 0) {
978
+ console.log(chalk.blue('\nDetected magic keywords:'));
979
+ console.log(chalk.yellow(keywords.join(', ')));
980
+ }
981
+ console.log(chalk.blue('\nEnhanced prompt:'));
982
+ console.log(chalk.green(session.processPrompt(prompt)));
983
+ });
984
+ /**
985
+ * Update command - Check for and install updates
986
+ */
987
+ program
988
+ .command('update')
989
+ .description('Check for and install updates')
990
+ .option('-c, --check', 'Only check for updates, do not install')
991
+ .option('-f, --force', 'Force reinstall even if up to date')
992
+ .option('-q, --quiet', 'Suppress output except for errors')
993
+ .option('--standalone', 'Force npm update even in plugin context')
994
+ .addHelpText('after', `
995
+ Examples:
996
+ $ omc update Check and install updates
997
+ $ omc update --check Only check, don't install
998
+ $ omc update --force Force reinstall
999
+ $ omc update --standalone Force npm update in plugin context`)
1000
+ .action(async (options) => {
1001
+ if (!options.quiet) {
1002
+ console.log(chalk.blue('Oh-My-ClaudeCode Update\n'));
1003
+ }
1004
+ try {
1005
+ // Show current version
1006
+ const installed = getInstalledVersion();
1007
+ if (!options.quiet) {
1008
+ console.log(chalk.gray(`Current version: ${installed?.version ?? 'unknown'}`));
1009
+ console.log(chalk.gray(`Install method: ${installed?.installMethod ?? 'unknown'}`));
1010
+ console.log('');
1011
+ }
1012
+ // Check for updates
1013
+ if (!options.quiet) {
1014
+ console.log('Checking for updates...');
1015
+ }
1016
+ const checkResult = await checkForUpdates();
1017
+ if (!checkResult.updateAvailable && !options.force) {
1018
+ if (!options.quiet) {
1019
+ console.log(chalk.green(`\n✓ You are running the latest version (${checkResult.currentVersion})`));
1020
+ }
1021
+ return;
1022
+ }
1023
+ if (!options.quiet) {
1024
+ console.log(formatUpdateNotification(checkResult));
1025
+ }
1026
+ // If check-only mode, stop here
1027
+ if (options.check) {
1028
+ if (checkResult.updateAvailable) {
1029
+ console.log(chalk.yellow('\nRun without --check to install the update.'));
1030
+ }
1031
+ return;
1032
+ }
1033
+ // Perform the update
1034
+ if (!options.quiet) {
1035
+ console.log(chalk.blue('\nStarting update...\n'));
1036
+ }
1037
+ const result = await performUpdate({ verbose: !options.quiet, standalone: options.standalone });
1038
+ if (result.success) {
1039
+ if (!options.quiet) {
1040
+ console.log(chalk.green(`\n✓ ${result.message}`));
1041
+ console.log(chalk.gray('\nPlease restart your Claude Code session to use the new version.'));
1042
+ }
1043
+ }
1044
+ else {
1045
+ console.error(chalk.red(`\n✗ ${result.message}`));
1046
+ if (result.errors) {
1047
+ result.errors.forEach(err => console.error(chalk.red(` - ${err}`)));
1048
+ }
1049
+ process.exit(1);
1050
+ }
1051
+ }
1052
+ catch (error) {
1053
+ const message = error instanceof Error ? error.message : String(error);
1054
+ console.error(chalk.red(`Update failed: ${message}`));
1055
+ console.error(chalk.gray('Try again with "omc update --force", or reinstall with "omc install --force".'));
1056
+ process.exit(1);
1057
+ }
1058
+ });
1059
+ /**
1060
+ * Update reconcile command - Internal command for post-update reconciliation
1061
+ * Called automatically after npm install to ensure hooks/settings are updated with NEW code
1062
+ */
1063
+ program
1064
+ .command('update-reconcile')
1065
+ .description('Internal: Reconcile runtime state after update (called by update command)')
1066
+ .option('-v, --verbose', 'Show detailed output')
1067
+ .action(async (options) => {
1068
+ try {
1069
+ const reconcileResult = reconcileUpdateRuntime({ verbose: options.verbose });
1070
+ if (!reconcileResult.success) {
1071
+ console.error(chalk.red('Reconciliation failed:'));
1072
+ if (reconcileResult.errors) {
1073
+ reconcileResult.errors.forEach(err => console.error(chalk.red(` - ${err}`)));
1074
+ }
1075
+ process.exit(1);
1076
+ }
1077
+ if (options.verbose) {
1078
+ console.log(chalk.green(reconcileResult.message));
1079
+ }
1080
+ }
1081
+ catch (error) {
1082
+ const message = error instanceof Error ? error.message : String(error);
1083
+ console.error(chalk.red(`Reconciliation error: ${message}`));
1084
+ process.exit(1);
1085
+ }
1086
+ });
1087
+ /**
1088
+ * Version command - Show version information
1089
+ */
1090
+ program
1091
+ .command('version')
1092
+ .description('Show detailed version information')
1093
+ .addHelpText('after', `
1094
+ Examples:
1095
+ $ omc version Show version, install method, and commit hash`)
1096
+ .action(async () => {
1097
+ const installed = getInstalledVersion();
1098
+ console.log(chalk.blue.bold('\nOh-My-ClaudeCode Version Information\n'));
1099
+ console.log(chalk.gray('━'.repeat(50)));
1100
+ console.log(`\n Package version: ${chalk.green(version)}`);
1101
+ if (installed) {
1102
+ console.log(` Installed version: ${chalk.green(installed.version)}`);
1103
+ console.log(` Install method: ${chalk.cyan(installed.installMethod)}`);
1104
+ console.log(` Installed at: ${chalk.gray(installed.installedAt)}`);
1105
+ if (installed.lastCheckAt) {
1106
+ console.log(` Last update check: ${chalk.gray(installed.lastCheckAt)}`);
1107
+ }
1108
+ if (installed.commitHash) {
1109
+ console.log(` Commit hash: ${chalk.gray(installed.commitHash)}`);
1110
+ }
1111
+ }
1112
+ else {
1113
+ console.log(chalk.yellow(' No installation metadata found'));
1114
+ console.log(chalk.gray(' (Run the install script to create version metadata)'));
1115
+ }
1116
+ console.log(chalk.gray('\n━'.repeat(50)));
1117
+ console.log(chalk.gray('\nTo check for updates, run: ultrapower update --check'));
1118
+ });
1119
+ /**
1120
+ * Install command - Install agents and commands to ~/.claude/
1121
+ */
1122
+ program
1123
+ .command('install')
1124
+ .description('Install Sisyphus agents and commands to Claude Code config (~/.claude/)')
1125
+ .option('-f, --force', 'Overwrite existing files')
1126
+ .option('-q, --quiet', 'Suppress output except for errors')
1127
+ .option('--skip-claude-check', 'Skip checking if Claude Code is installed')
1128
+ .addHelpText('after', `
1129
+ Examples:
1130
+ $ omc install Install to ~/.claude/
1131
+ $ omc install --force Reinstall, overwriting existing files
1132
+ $ omc install --quiet Silent install for scripts`)
1133
+ .action(async (options) => {
1134
+ if (!options.quiet) {
1135
+ console.log(chalk.blue('╔═══════════════════════════════════════════════════════════╗'));
1136
+ console.log(chalk.blue('║ Oh-My-ClaudeCode Installer ║'));
1137
+ console.log(chalk.blue('║ Multi-Agent Orchestration for Claude Code ║'));
1138
+ console.log(chalk.blue('╚═══════════════════════════════════════════════════════════╝'));
1139
+ console.log('');
1140
+ }
1141
+ // Check if already installed
1142
+ if (isInstalled() && !options.force) {
1143
+ const info = getInstallInfo();
1144
+ if (!options.quiet) {
1145
+ console.log(chalk.yellow('Sisyphus is already installed.'));
1146
+ if (info) {
1147
+ console.log(chalk.gray(` Version: ${info.version}`));
1148
+ console.log(chalk.gray(` Installed: ${info.installedAt}`));
1149
+ }
1150
+ console.log(chalk.gray('\nUse --force to reinstall.'));
1151
+ }
1152
+ return;
1153
+ }
1154
+ // Run installation
1155
+ const result = installSisyphus({
1156
+ force: options.force,
1157
+ verbose: !options.quiet,
1158
+ skipClaudeCheck: options.skipClaudeCheck
1159
+ });
1160
+ if (result.success) {
1161
+ if (!options.quiet) {
1162
+ console.log('');
1163
+ console.log(chalk.green('╔═══════════════════════════════════════════════════════════╗'));
1164
+ console.log(chalk.green('║ Installation Complete! ║'));
1165
+ console.log(chalk.green('╚═══════════════════════════════════════════════════════════╝'));
1166
+ console.log('');
1167
+ console.log(chalk.gray(`Installed to: ~/.claude/`));
1168
+ console.log('');
1169
+ console.log(chalk.yellow('Usage:'));
1170
+ console.log(' claude # Start Claude Code normally');
1171
+ console.log('');
1172
+ console.log(chalk.yellow('Slash Commands:'));
1173
+ console.log(' /sisyphus <task> # Activate Sisyphus orchestration mode');
1174
+ console.log(' /sisyphus-default # Configure for current project');
1175
+ console.log(' /sisyphus-default-global # Configure globally');
1176
+ console.log(' /ultrawork <task> # Maximum performance mode');
1177
+ console.log(' /deepsearch <query> # Thorough codebase search');
1178
+ console.log(' /analyze <target> # Deep analysis mode');
1179
+ console.log(' /plan <description> # Start planning with Planner');
1180
+ console.log(' /review [plan-path] # Review plan with Critic');
1181
+ console.log('');
1182
+ console.log(chalk.yellow('Available Agents (via Task tool):'));
1183
+ console.log(chalk.gray(' Base Agents:'));
1184
+ console.log(' architect - Architecture & debugging (Opus)');
1185
+ console.log(' document-specialist - External docs & reference lookup (Sonnet)');
1186
+ console.log(' explore - Fast pattern matching (Haiku)');
1187
+ console.log(' designer - UI/UX specialist (Sonnet)');
1188
+ console.log(' writer - Technical writing (Haiku)');
1189
+ console.log(' vision - Visual analysis (Sonnet)');
1190
+ console.log(' critic - Plan review (Opus)');
1191
+ console.log(' analyst - Pre-planning analysis (Opus)');
1192
+ console.log(' orchestrator-sisyphus - Todo coordination (Opus)');
1193
+ console.log(' executor - Focused execution (Sonnet)');
1194
+ console.log(' planner - Strategic planning (Opus)');
1195
+ console.log(' qa-tester - Interactive CLI testing (Sonnet)');
1196
+ console.log(chalk.gray(' Tiered Variants (for smart routing):'));
1197
+ console.log(' architect-medium - Simpler analysis (Sonnet)');
1198
+ console.log(' architect-low - Quick questions (Haiku)');
1199
+ console.log(' executor-high - Complex tasks (Opus)');
1200
+ console.log(' executor-low - Trivial tasks (Haiku)');
1201
+ console.log(' designer-high - Design systems (Opus)');
1202
+ console.log(' designer-low - Simple styling (Haiku)');
1203
+ console.log('');
1204
+ console.log(chalk.yellow('After Updates:'));
1205
+ console.log(' Run \'/sisyphus-default\' (project) or \'/sisyphus-default-global\' (global)');
1206
+ console.log(' to download the latest CLAUDE.md configuration.');
1207
+ console.log(' This ensures you get the newest features and agent behaviors.');
1208
+ console.log('');
1209
+ console.log(chalk.blue('Quick Start:'));
1210
+ console.log(' 1. Run \'claude\' to start Claude Code');
1211
+ console.log(' 2. Type \'/sisyphus-default\' for project or \'/sisyphus-default-global\' for global');
1212
+ console.log(' 3. Or use \'/sisyphus <task>\' for one-time activation');
1213
+ }
1214
+ }
1215
+ else {
1216
+ console.error(chalk.red(`Installation failed: ${result.message}`));
1217
+ if (result.errors.length > 0) {
1218
+ result.errors.forEach(err => console.error(chalk.red(` - ${err}`)));
1219
+ }
1220
+ console.error(chalk.gray('\nTry "omc install --force" to overwrite existing files.'));
1221
+ console.error(chalk.gray('For more diagnostics, run "omc doctor conflicts".'));
1222
+ process.exit(1);
1223
+ }
1224
+ });
1225
+ /**
1226
+ * Wait command - Rate limit wait and auto-resume
1227
+ *
1228
+ * Zero learning curve design:
1229
+ * - `omc wait` alone shows status and suggests next action
1230
+ * - `omc wait --start` starts the daemon (shortcut)
1231
+ * - `omc wait --stop` stops the daemon (shortcut)
1232
+ * - Subcommands available for power users
1233
+ */
1234
+ const waitCmd = program
1235
+ .command('wait')
1236
+ .description('Rate limit wait and auto-resume (just run "omc wait" to get started)')
1237
+ .option('--json', 'Output as JSON')
1238
+ .option('--start', 'Start the auto-resume daemon')
1239
+ .option('--stop', 'Stop the auto-resume daemon')
1240
+ .addHelpText('after', `
1241
+ Examples:
1242
+ $ omc wait Show status and suggestions
1243
+ $ omc wait --start Start auto-resume daemon
1244
+ $ omc wait --stop Stop auto-resume daemon
1245
+ $ omc wait status Show detailed rate limit status
1246
+ $ omc wait detect Scan for blocked tmux sessions`)
1247
+ .action(async (options) => {
1248
+ await waitCommand(options);
1249
+ });
1250
+ waitCmd
1251
+ .command('status')
1252
+ .description('Show detailed rate limit and daemon status')
1253
+ .option('--json', 'Output as JSON')
1254
+ .action(async (options) => {
1255
+ await waitStatusCommand(options);
1256
+ });
1257
+ waitCmd
1258
+ .command('daemon <action>')
1259
+ .description('Start or stop the auto-resume daemon')
1260
+ .option('-v, --verbose', 'Enable verbose logging')
1261
+ .option('-f, --foreground', 'Run in foreground (blocking)')
1262
+ .option('-i, --interval <seconds>', 'Poll interval in seconds', '60')
1263
+ .addHelpText('after', `
1264
+ Examples:
1265
+ $ omc wait daemon start Start background daemon
1266
+ $ omc wait daemon stop Stop the daemon
1267
+ $ omc wait daemon start -f Run in foreground`)
1268
+ .action(async (action, options) => {
1269
+ if (action !== 'start' && action !== 'stop') {
1270
+ console.error(chalk.red(`Invalid action "${action}". Valid options: start, stop`));
1271
+ console.error(chalk.gray('Example: omc wait daemon start'));
1272
+ process.exit(1);
1273
+ }
1274
+ await waitDaemonCommand(action, {
1275
+ verbose: options.verbose,
1276
+ foreground: options.foreground,
1277
+ interval: parseInt(options.interval),
1278
+ });
1279
+ });
1280
+ waitCmd
1281
+ .command('detect')
1282
+ .description('Scan for blocked Claude Code sessions in tmux')
1283
+ .option('--json', 'Output as JSON')
1284
+ .option('-l, --lines <number>', 'Number of pane lines to analyze', '15')
1285
+ .action(async (options) => {
1286
+ await waitDetectCommand({
1287
+ json: options.json,
1288
+ lines: parseInt(options.lines),
1289
+ });
1290
+ });
1291
+ /**
1292
+ * Teleport command - Quick worktree creation
1293
+ *
1294
+ * Usage:
1295
+ * - `omc teleport #123` - Create worktree for issue/PR #123
1296
+ * - `omc teleport my-feature` - Create worktree for feature branch
1297
+ * - `omc teleport list` - List existing worktrees
1298
+ * - `omc teleport remove <path>` - Remove a worktree
1299
+ */
1300
+ const teleportCmd = program
1301
+ .command('teleport [ref]')
1302
+ .description('Create git worktree for isolated development (e.g., omc teleport #123)')
1303
+ .option('--worktree', 'Create worktree (default behavior, flag kept for compatibility)')
1304
+ .option('-p, --path <path>', 'Custom worktree path (default: ~/Workspace/omc-worktrees/)')
1305
+ .option('-b, --base <branch>', 'Base branch to create from (default: main)')
1306
+ .option('--json', 'Output as JSON')
1307
+ .addHelpText('after', `
1308
+ Examples:
1309
+ $ omc teleport #42 Create worktree for issue/PR #42
1310
+ $ omc teleport add-auth Create worktree for a feature branch
1311
+ $ omc teleport list List existing worktrees
1312
+ $ omc teleport remove ./path Remove a worktree`)
1313
+ .action(async (ref, options) => {
1314
+ if (!ref) {
1315
+ // No ref provided, show help
1316
+ console.log(chalk.blue('Teleport - Quick worktree creation\n'));
1317
+ console.log('Usage:');
1318
+ console.log(' omc teleport <ref> Create worktree for issue/PR/feature');
1319
+ console.log(' omc teleport list List existing worktrees');
1320
+ console.log(' omc teleport remove <path> Remove a worktree');
1321
+ console.log('');
1322
+ console.log('Reference formats:');
1323
+ console.log(' #123 Issue/PR in current repo');
1324
+ console.log(' owner/repo#123 Issue/PR in specific repo');
1325
+ console.log(' my-feature Feature branch name');
1326
+ console.log(' https://github.com/... GitHub URL');
1327
+ console.log('');
1328
+ console.log('Examples:');
1329
+ console.log(' omc teleport #42 Create worktree for issue #42');
1330
+ console.log(' omc teleport add-auth Create worktree for feature "add-auth"');
1331
+ console.log('');
1332
+ return;
1333
+ }
1334
+ await teleportCommand(ref, {
1335
+ worktree: true, // Always create worktree
1336
+ worktreePath: options.path,
1337
+ base: options.base,
1338
+ json: options.json,
1339
+ });
1340
+ });
1341
+ teleportCmd
1342
+ .command('list')
1343
+ .description('List existing worktrees in ~/Workspace/omc-worktrees/')
1344
+ .option('--json', 'Output as JSON')
1345
+ .action(async (options) => {
1346
+ await teleportListCommand(options);
1347
+ });
1348
+ teleportCmd
1349
+ .command('remove <path>')
1350
+ .alias('rm')
1351
+ .description('Remove a worktree')
1352
+ .option('-f, --force', 'Force removal even with uncommitted changes')
1353
+ .option('--json', 'Output as JSON')
1354
+ .action(async (path, options) => {
1355
+ await teleportRemoveCommand(path, options);
1356
+ });
1357
+ /**
1358
+ * Doctor command - Diagnostic tools
1359
+ */
1360
+ const doctorCmd = program
1361
+ .command('doctor')
1362
+ .description('Diagnostic tools for troubleshooting OMC installation')
1363
+ .addHelpText('after', `
1364
+ Examples:
1365
+ $ omc doctor conflicts Check for plugin conflicts`);
1366
+ doctorCmd
1367
+ .command('conflicts')
1368
+ .description('Check for plugin coexistence issues and configuration conflicts')
1369
+ .option('--json', 'Output as JSON')
1370
+ .addHelpText('after', `
1371
+ Examples:
1372
+ $ omc doctor conflicts Check for configuration issues
1373
+ $ omc doctor conflicts --json Output results as JSON`)
1374
+ .action(async (options) => {
1375
+ const exitCode = await doctorConflictsCommand(options);
1376
+ // Version consistency check
1377
+ try {
1378
+ const { checkVersionConsistency } = await import('../lib/plugin-registry.js');
1379
+ const report = checkVersionConsistency();
1380
+ if (!report.consistent && !report.isUpdating) {
1381
+ console.log(chalk.yellow('[WARN] Version drift detected:'));
1382
+ if (report.registryVersion) {
1383
+ console.log(` installed_plugins.json: v${report.registryVersion}`);
1384
+ }
1385
+ if (report.versionMetadataVersion) {
1386
+ console.log(` version metadata: v${report.versionMetadataVersion}`);
1387
+ }
1388
+ console.log(` package.json: v${report.packageJsonVersion}`);
1389
+ if (report.fixCommand) {
1390
+ console.log(` Fix: ${report.fixCommand}`);
1391
+ }
1392
+ }
1393
+ else if (report.consistent) {
1394
+ console.log(chalk.green('✓ Version consistency: OK'));
1395
+ }
1396
+ }
1397
+ catch {
1398
+ // Non-fatal: version check failure should not affect other doctor checks
1399
+ }
1400
+ process.exit(exitCode);
1401
+ });
1402
+ /**
1403
+ * Setup command - Official CLI entry point for omc-setup
1404
+ *
1405
+ * User-friendly command that syncs all OMC components:
1406
+ * - Installs/updates hooks, agents, and skills
1407
+ * - Reconciles runtime state after updates
1408
+ * - Shows clear summary of what was installed/updated
1409
+ */
1410
+ program
1411
+ .command('setup')
1412
+ .description('Run OMC setup to sync all components (hooks, agents, skills)')
1413
+ .option('-f, --force', 'Force reinstall even if already up to date')
1414
+ .option('-q, --quiet', 'Suppress output except for errors')
1415
+ .option('--skip-hooks', 'Skip hook installation')
1416
+ .option('--force-hooks', 'Force reinstall hooks even if unchanged')
1417
+ .addHelpText('after', `
1418
+ Examples:
1419
+ $ omc setup Sync all OMC components
1420
+ $ omc setup --force Force reinstall everything
1421
+ $ omc setup --quiet Silent setup for scripts
1422
+ $ omc setup --skip-hooks Install without hooks
1423
+ $ omc setup --force-hooks Force reinstall hooks`)
1424
+ .action(async (options) => {
1425
+ if (!options.quiet) {
1426
+ console.log(chalk.blue('Oh-My-ClaudeCode Setup\n'));
1427
+ }
1428
+ // Step 1: Run installation (which handles hooks, agents, skills)
1429
+ if (!options.quiet) {
1430
+ console.log(chalk.gray('Syncing OMC components...'));
1431
+ }
1432
+ const result = installSisyphus({
1433
+ force: !!options.force,
1434
+ verbose: !options.quiet,
1435
+ skipClaudeCheck: true,
1436
+ forceHooks: !!options.forceHooks,
1437
+ });
1438
+ if (!result.success) {
1439
+ console.error(chalk.red(`Setup failed: ${result.message}`));
1440
+ if (result.errors.length > 0) {
1441
+ result.errors.forEach(err => console.error(chalk.red(` - ${err}`)));
1442
+ }
1443
+ process.exit(1);
1444
+ }
1445
+ // Step 2: Show summary
1446
+ if (!options.quiet) {
1447
+ console.log('');
1448
+ console.log(chalk.green('Setup complete!'));
1449
+ console.log('');
1450
+ if (result.installedAgents.length > 0) {
1451
+ console.log(chalk.gray(` Agents: ${result.installedAgents.length} synced`));
1452
+ }
1453
+ if (result.installedCommands.length > 0) {
1454
+ console.log(chalk.gray(` Commands: ${result.installedCommands.length} synced`));
1455
+ }
1456
+ if (result.installedSkills.length > 0) {
1457
+ console.log(chalk.gray(` Skills: ${result.installedSkills.length} synced`));
1458
+ }
1459
+ if (result.hooksConfigured) {
1460
+ console.log(chalk.gray(' Hooks: configured'));
1461
+ }
1462
+ if (result.hookConflicts.length > 0) {
1463
+ console.log('');
1464
+ console.log(chalk.yellow(' Hook conflicts detected:'));
1465
+ result.hookConflicts.forEach(c => {
1466
+ console.log(chalk.yellow(` - ${c.eventType}: ${c.existingCommand}`));
1467
+ });
1468
+ }
1469
+ console.log('');
1470
+ console.log(chalk.gray(`Version: ${version}`));
1471
+ console.log(chalk.gray('Start Claude Code and use /ultrapower:omc-setup for interactive setup.'));
1472
+ }
1473
+ });
1474
+ /**
1475
+ * Postinstall command - Silent install for npm postinstall hook
1476
+ */
1477
+ program
1478
+ .command('postinstall', { hidden: true })
1479
+ .description('Run post-install setup (called automatically by npm)')
1480
+ .action(async () => {
1481
+ // Silent install - only show errors
1482
+ const result = installSisyphus({
1483
+ force: false,
1484
+ verbose: false,
1485
+ skipClaudeCheck: true
1486
+ });
1487
+ if (result.success) {
1488
+ console.log(chalk.green('✓ Oh-My-ClaudeCode installed successfully!'));
1489
+ console.log(chalk.gray(' Run "ultrapower info" to see available agents.'));
1490
+ console.log(chalk.yellow(' Run "/sisyphus-default" (project) or "/sisyphus-default-global" (global) in Claude Code.'));
1491
+ }
1492
+ else {
1493
+ // Don't fail the npm install, just warn
1494
+ console.warn(chalk.yellow('⚠ Could not complete Sisyphus setup:'), result.message);
1495
+ console.warn(chalk.gray(' Run "ultrapower install" manually to complete setup.'));
1496
+ }
1497
+ });
1498
+ // Plugin management commands
1499
+ import { pluginCommand } from './commands/plugin.js';
1500
+ program.addCommand(pluginCommand());
1501
+ // Parse arguments
1502
+ program.parse();
1503
+ //# sourceMappingURL=index.js.map