@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,824 @@
1
+ /**
2
+ * Installer Module
3
+ *
4
+ * Handles installation of OMC agents, commands, and configuration
5
+ * into the Claude Code config directory (~/.claude/).
6
+ *
7
+ * Cross-platform support via Node.js-based hook scripts (.mjs).
8
+ * Bash hook scripts were removed in v3.9.0.
9
+ */
10
+ import { existsSync, mkdirSync, readFileSync, chmodSync, readdirSync } from 'fs';
11
+ import { join, dirname } from 'path';
12
+ import { fileURLToPath } from 'url';
13
+ import { homedir } from 'os';
14
+ import { execSync } from 'child_process';
15
+ import { getHookScripts, getHooksSettingsConfig, isWindows, MIN_NODE_VERSION } from './hooks.js';
16
+ import { getRuntimePackageVersion } from '../lib/version.js';
17
+ import { getConfigDir } from '../utils/config-dir.js';
18
+ import { atomicWriteFileSync, atomicWriteJsonSync } from '../lib/atomic-write.js';
19
+ /** Claude Code configuration directory */
20
+ export const CLAUDE_CONFIG_DIR = getConfigDir();
21
+ export const AGENTS_DIR = join(CLAUDE_CONFIG_DIR, 'agents');
22
+ export const COMMANDS_DIR = join(CLAUDE_CONFIG_DIR, 'commands');
23
+ export const SKILLS_DIR = join(CLAUDE_CONFIG_DIR, 'skills');
24
+ export const HOOKS_DIR = join(CLAUDE_CONFIG_DIR, 'hooks');
25
+ export const HUD_DIR = join(CLAUDE_CONFIG_DIR, 'hud');
26
+ export const SETTINGS_FILE = join(CLAUDE_CONFIG_DIR, 'settings.json');
27
+ export const VERSION_FILE = join(CLAUDE_CONFIG_DIR, '.omc-version.json');
28
+ /**
29
+ * Core commands - DISABLED for v3.0+
30
+ * All commands are now plugin-scoped skills managed by Claude Code.
31
+ * The installer no longer copies commands to ~/.claude/commands/
32
+ */
33
+ export const CORE_COMMANDS = [];
34
+ /** Current version */
35
+ export const VERSION = getRuntimePackageVersion();
36
+ /**
37
+ * Find a marker that appears at the start of a line (line-anchored).
38
+ * This prevents matching markers inside code blocks.
39
+ * @param content - The content to search in
40
+ * @param marker - The marker string to find
41
+ * @param fromEnd - If true, finds the LAST occurrence instead of first
42
+ * @returns The index of the marker, or -1 if not found
43
+ */
44
+ function findLineAnchoredMarker(content, marker, fromEnd = false) {
45
+ // Escape special regex characters in marker
46
+ const escapedMarker = marker.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
47
+ const regex = new RegExp(`^${escapedMarker}$`, 'gm');
48
+ if (fromEnd) {
49
+ // Find the last occurrence
50
+ let lastIndex = -1;
51
+ let match;
52
+ while ((match = regex.exec(content)) !== null) {
53
+ lastIndex = match.index;
54
+ }
55
+ return lastIndex;
56
+ }
57
+ else {
58
+ // Find the first occurrence
59
+ const match = regex.exec(content);
60
+ return match ? match.index : -1;
61
+ }
62
+ }
63
+ /**
64
+ * Read hudEnabled from .omc-config.json without importing auto-update
65
+ * (avoids circular dependency since auto-update imports from installer)
66
+ */
67
+ export function isHudEnabledInConfig() {
68
+ const configPath = join(CLAUDE_CONFIG_DIR, '.omc-config.json');
69
+ if (!existsSync(configPath)) {
70
+ return true; // default: enabled
71
+ }
72
+ try {
73
+ const content = readFileSync(configPath, 'utf-8');
74
+ const config = JSON.parse(content);
75
+ // Only disable if explicitly set to false
76
+ return config.hudEnabled !== false;
77
+ }
78
+ catch {
79
+ return true; // default: enabled on parse error
80
+ }
81
+ }
82
+ /**
83
+ * Detect whether a statusLine config belongs to ultrapower.
84
+ *
85
+ * Checks the command string for known OMC HUD paths so that custom
86
+ * (non-OMC) statusLine configurations are preserved during forced
87
+ * updates/reconciliation.
88
+ *
89
+ * @param statusLine - The statusLine setting object from settings.json
90
+ * @returns true if the statusLine was set by OMC
91
+ */
92
+ export function isOmcStatusLine(statusLine) {
93
+ if (!statusLine || typeof statusLine !== 'object')
94
+ return false;
95
+ const sl = statusLine;
96
+ if (typeof sl.command !== 'string')
97
+ return false;
98
+ return sl.command.includes('omc-hud');
99
+ }
100
+ /**
101
+ * Known OMC hook script filenames installed into .claude/hooks/.
102
+ * Must be kept in sync with getHookScripts() in hooks.ts and
103
+ * HOOKS_SETTINGS_CONFIG_NODE command entries.
104
+ */
105
+ const OMC_HOOK_FILENAMES = new Set([
106
+ 'keyword-detector.mjs',
107
+ 'session-start.mjs',
108
+ 'pre-tool-use.mjs',
109
+ 'post-tool-use.mjs',
110
+ 'post-tool-use-failure.mjs',
111
+ 'persistent-mode.mjs',
112
+ 'stop-continuation.mjs',
113
+ ]);
114
+ /**
115
+ * Detect whether a hook command belongs to ultrapower.
116
+ *
117
+ * Recognition strategy (any match is sufficient):
118
+ * 1. Command path contains "omc" as a path/word segment (e.g. `omc-hook.mjs`, `/omc/`)
119
+ * 2. Command path contains "ultrapower"
120
+ * 3. Command references a known OMC hook filename inside .claude/hooks/
121
+ *
122
+ * @param command - The hook command string
123
+ * @returns true if the command belongs to OMC
124
+ */
125
+ export function isOmcHook(command) {
126
+ const lowerCommand = command.toLowerCase();
127
+ // Match "omc" as a path segment or word boundary
128
+ // Matches: /omc/, /omc-, omc/, -omc, _omc, omc_
129
+ const omcPattern = /(?:^|[/\\_-])omc(?:$|[/\\_-])/;
130
+ const fullNamePattern = /ultrapower|oh-my-claudecode/;
131
+ if (omcPattern.test(lowerCommand) || fullNamePattern.test(lowerCommand)) {
132
+ return true;
133
+ }
134
+ // Check for known OMC hook filenames in .claude/hooks/ path.
135
+ // Handles both Unix (.claude/hooks/) and Windows (.claude\hooks\) paths.
136
+ const hookPathMatch = lowerCommand.match(/\.claude[/\\]hooks[/\\]([a-z0-9-]+\.mjs)/);
137
+ if (hookPathMatch && OMC_HOOK_FILENAMES.has(hookPathMatch[1])) {
138
+ return true;
139
+ }
140
+ return false;
141
+ }
142
+ /**
143
+ * Check if the current Node.js version meets the minimum requirement
144
+ */
145
+ export function checkNodeVersion() {
146
+ const current = parseInt(process.versions.node.split('.')[0], 10);
147
+ return {
148
+ valid: current >= MIN_NODE_VERSION,
149
+ current,
150
+ required: MIN_NODE_VERSION
151
+ };
152
+ }
153
+ /**
154
+ * Check if Claude Code is installed
155
+ * Uses 'where' on Windows, 'which' on Unix
156
+ */
157
+ export function isClaudeInstalled() {
158
+ try {
159
+ const command = isWindows() ? 'where claude' : 'which claude';
160
+ execSync(command, { encoding: 'utf-8', stdio: 'pipe' });
161
+ return true;
162
+ }
163
+ catch {
164
+ return false;
165
+ }
166
+ }
167
+ /**
168
+ * Check if we're running in Claude Code plugin context
169
+ *
170
+ * When installed as a plugin, we should NOT copy files to ~/.claude/
171
+ * because the plugin system already handles file access via ${CLAUDE_PLUGIN_ROOT}.
172
+ *
173
+ * Detection method:
174
+ * - Check if CLAUDE_PLUGIN_ROOT environment variable is set (primary method)
175
+ * - This env var is set by the Claude Code plugin system when running plugin hooks
176
+ *
177
+ * @returns true if running in plugin context, false otherwise
178
+ */
179
+ export function isRunningAsPlugin() {
180
+ // Check for CLAUDE_PLUGIN_ROOT env var (set by plugin system)
181
+ // This is the most reliable indicator that we're running as a plugin
182
+ return !!process.env.CLAUDE_PLUGIN_ROOT;
183
+ }
184
+ /**
185
+ * Check if we're running as a project-scoped plugin (not global)
186
+ *
187
+ * Project-scoped plugins are installed in the project's .claude/plugins/ directory,
188
+ * while global plugins are installed in ~/.claude/plugins/.
189
+ *
190
+ * When project-scoped, we should NOT modify global settings (like ~/.claude/settings.json)
191
+ * because the user explicitly chose project-level installation.
192
+ *
193
+ * @returns true if running as a project-scoped plugin, false otherwise
194
+ */
195
+ export function isProjectScopedPlugin() {
196
+ const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT;
197
+ if (!pluginRoot) {
198
+ return false;
199
+ }
200
+ // Global plugins are installed under ~/.claude/plugins/
201
+ const globalPluginBase = join(CLAUDE_CONFIG_DIR, 'plugins');
202
+ // If the plugin root is NOT under the global plugin directory, it's project-scoped
203
+ // Normalize paths for comparison (resolve symlinks, trailing slashes, etc.)
204
+ const normalizedPluginRoot = pluginRoot.replace(/\\/g, '/').replace(/\/$/, '');
205
+ const normalizedGlobalBase = globalPluginBase.replace(/\\/g, '/').replace(/\/$/, '');
206
+ return !normalizedPluginRoot.startsWith(normalizedGlobalBase);
207
+ }
208
+ /**
209
+ * Get the package root directory.
210
+ * Works for both ESM (dist/installer/) and CJS bundles (bridge/).
211
+ * When esbuild bundles to CJS, import.meta is replaced with {} so we
212
+ * fall back to __dirname which is natively available in CJS.
213
+ */
214
+ function getPackageDir() {
215
+ try {
216
+ if (import.meta?.url) {
217
+ const __filename = fileURLToPath(import.meta.url);
218
+ const __dirname = dirname(__filename);
219
+ // From dist/installer/index.js, go up to package root
220
+ return join(__dirname, '..', '..');
221
+ }
222
+ }
223
+ catch {
224
+ // import.meta.url unavailable — fall through to CJS path
225
+ }
226
+ // CJS bundle path: from bridge/ go up 1 level to package root
227
+ if (typeof __dirname !== 'undefined') {
228
+ return join(__dirname, '..');
229
+ }
230
+ return process.cwd();
231
+ }
232
+ /**
233
+ * Load agent definitions from /agents/*.md files
234
+ */
235
+ function loadAgentDefinitions() {
236
+ const agentsDir = join(getPackageDir(), 'agents');
237
+ const definitions = {};
238
+ if (!existsSync(agentsDir)) {
239
+ console.error(`FATAL: agents directory not found: ${agentsDir}`);
240
+ process.exit(1);
241
+ }
242
+ for (const file of readdirSync(agentsDir)) {
243
+ if (file.endsWith('.md')) {
244
+ definitions[file] = readFileSync(join(agentsDir, file), 'utf-8');
245
+ }
246
+ }
247
+ return definitions;
248
+ }
249
+ /**
250
+ * Load command definitions from /commands/*.md files
251
+ *
252
+ * NOTE: The commands/ directory was removed in v4.1.16 (#582).
253
+ * All commands are now plugin-scoped skills. This function returns
254
+ * an empty object for backward compatibility.
255
+ */
256
+ function loadCommandDefinitions() {
257
+ const commandsDir = join(getPackageDir(), 'commands');
258
+ if (!existsSync(commandsDir)) {
259
+ return {};
260
+ }
261
+ const definitions = {};
262
+ for (const file of readdirSync(commandsDir)) {
263
+ if (file.endsWith('.md')) {
264
+ definitions[file] = readFileSync(join(commandsDir, file), 'utf-8');
265
+ }
266
+ }
267
+ return definitions;
268
+ }
269
+ /**
270
+ * Load CLAUDE.md content from /docs/CLAUDE.md
271
+ */
272
+ function loadClaudeMdContent() {
273
+ const claudeMdPath = join(getPackageDir(), 'docs', 'CLAUDE.md');
274
+ if (!existsSync(claudeMdPath)) {
275
+ console.error(`FATAL: CLAUDE.md not found: ${claudeMdPath}`);
276
+ process.exit(1);
277
+ }
278
+ return readFileSync(claudeMdPath, 'utf-8');
279
+ }
280
+ /**
281
+ * Merge OMC content into existing CLAUDE.md using markers
282
+ * @param existingContent - Existing CLAUDE.md content (null if file doesn't exist)
283
+ * @param omcContent - New OMC content to inject
284
+ * @returns Merged content with markers
285
+ */
286
+ export function mergeClaudeMd(existingContent, omcContent, version) {
287
+ const START_MARKER = '<!-- OMC:START -->';
288
+ const END_MARKER = '<!-- OMC:END -->';
289
+ const USER_CUSTOMIZATIONS = '<!-- User customizations -->';
290
+ // Idempotency guard: strip markers from omcContent if already present
291
+ // This handles the case where docs/CLAUDE.md ships with markers
292
+ let cleanOmcContent = omcContent;
293
+ const omcStartIdx = findLineAnchoredMarker(omcContent, START_MARKER);
294
+ const omcEndIdx = findLineAnchoredMarker(omcContent, END_MARKER, true);
295
+ if (omcStartIdx !== -1 && omcEndIdx !== -1 && omcStartIdx < omcEndIdx) {
296
+ // Extract content between markers, trimming any surrounding whitespace
297
+ cleanOmcContent = omcContent
298
+ .substring(omcStartIdx + START_MARKER.length, omcEndIdx)
299
+ .trim();
300
+ }
301
+ // Strip any existing version marker from content and inject current version
302
+ cleanOmcContent = cleanOmcContent.replace(/<!-- OMC:VERSION:[^\s]*? -->\n?/, '');
303
+ const versionMarker = version ? `<!-- OMC:VERSION:${version} -->\n` : '';
304
+ // Case 1: No existing content - wrap omcContent in markers
305
+ if (!existingContent) {
306
+ return `${START_MARKER}\n${versionMarker}${cleanOmcContent}\n${END_MARKER}\n`;
307
+ }
308
+ // Case 2: Existing content has both markers - replace content between markers
309
+ // Use line-anchored search to avoid matching markers inside code blocks
310
+ const startIndex = findLineAnchoredMarker(existingContent, START_MARKER);
311
+ const endIndex = findLineAnchoredMarker(existingContent, END_MARKER, true);
312
+ if (startIndex !== -1 && endIndex !== -1 && endIndex > startIndex) {
313
+ // Extract content before START_MARKER and after END_MARKER
314
+ const beforeMarker = existingContent.substring(0, startIndex);
315
+ const afterMarker = existingContent.substring(endIndex + END_MARKER.length);
316
+ return `${beforeMarker}${START_MARKER}\n${versionMarker}${cleanOmcContent}\n${END_MARKER}${afterMarker}`;
317
+ }
318
+ // Case 3: Corrupted markers (START without END or vice versa)
319
+ if (startIndex !== -1 || endIndex !== -1) {
320
+ // Handle corrupted state - backup will be created by caller
321
+ return `${START_MARKER}\n${versionMarker}${cleanOmcContent}\n${END_MARKER}\n\n<!-- User customizations (recovered from corrupted markers) -->\n${existingContent}`;
322
+ }
323
+ // Case 4: No markers - wrap omcContent in markers, preserve existing after user customizations header
324
+ return `${START_MARKER}\n${versionMarker}${cleanOmcContent}\n${END_MARKER}\n\n${USER_CUSTOMIZATIONS}\n${existingContent}`;
325
+ }
326
+ /**
327
+ * Install OMC agents, commands, skills, and hooks
328
+ */
329
+ export function install(options = {}) {
330
+ const result = {
331
+ success: false,
332
+ message: '',
333
+ installedAgents: [],
334
+ installedCommands: [],
335
+ installedSkills: [],
336
+ hooksConfigured: false,
337
+ hookConflicts: [],
338
+ errors: []
339
+ };
340
+ const log = (msg) => {
341
+ if (options.verbose) {
342
+ console.log(msg);
343
+ }
344
+ };
345
+ // Check Node.js version (required for Node.js hooks)
346
+ const nodeCheck = checkNodeVersion();
347
+ if (!nodeCheck.valid) {
348
+ result.errors.push(`Node.js ${nodeCheck.required}+ is required. Found: ${nodeCheck.current}`);
349
+ result.message = `Installation failed: Node.js ${nodeCheck.required}+ required`;
350
+ return result;
351
+ }
352
+ // Log platform info
353
+ log(`Platform: ${process.platform} (Node.js hooks)`);
354
+ // Check if running as a plugin
355
+ const runningAsPlugin = isRunningAsPlugin();
356
+ const projectScoped = isProjectScopedPlugin();
357
+ const allowPluginHookRefresh = runningAsPlugin && options.refreshHooksInPlugin && !projectScoped;
358
+ if (runningAsPlugin) {
359
+ log('Detected Claude Code plugin context - skipping agent/command file installation');
360
+ log('Plugin files are managed by Claude Code plugin system');
361
+ if (projectScoped) {
362
+ log('Detected project-scoped plugin - skipping global HUD/settings modifications');
363
+ }
364
+ else {
365
+ log('Will still install HUD statusline...');
366
+ if (allowPluginHookRefresh) {
367
+ log('Will refresh global hooks/settings for plugin runtime reconciliation');
368
+ }
369
+ }
370
+ // Don't return early - continue to install HUD (unless project-scoped)
371
+ }
372
+ // Check Claude installation (optional)
373
+ if (!options.skipClaudeCheck && !isClaudeInstalled()) {
374
+ log('Warning: Claude Code not found. Install it first:');
375
+ if (isWindows()) {
376
+ log(' Visit https://docs.anthropic.com/claude-code for Windows installation');
377
+ }
378
+ else {
379
+ log(' curl -fsSL https://claude.ai/install.sh | bash');
380
+ }
381
+ // Continue anyway - user might be installing ahead of time
382
+ }
383
+ try {
384
+ // Ensure base config directory exists (skip for project-scoped plugins)
385
+ if (!projectScoped && !existsSync(CLAUDE_CONFIG_DIR)) {
386
+ mkdirSync(CLAUDE_CONFIG_DIR, { recursive: true });
387
+ }
388
+ // Skip agent/command/hook file installation when running as plugin
389
+ // Plugin system handles these via ${CLAUDE_PLUGIN_ROOT}
390
+ if (!runningAsPlugin) {
391
+ // Create directories
392
+ log('Creating directories...');
393
+ if (!existsSync(AGENTS_DIR)) {
394
+ mkdirSync(AGENTS_DIR, { recursive: true });
395
+ }
396
+ if (!existsSync(COMMANDS_DIR)) {
397
+ mkdirSync(COMMANDS_DIR, { recursive: true });
398
+ }
399
+ if (!existsSync(SKILLS_DIR)) {
400
+ mkdirSync(SKILLS_DIR, { recursive: true });
401
+ }
402
+ if (!existsSync(HOOKS_DIR)) {
403
+ mkdirSync(HOOKS_DIR, { recursive: true });
404
+ }
405
+ // Install agents
406
+ log('Installing agent definitions...');
407
+ for (const [filename, content] of Object.entries(loadAgentDefinitions())) {
408
+ const filepath = join(AGENTS_DIR, filename);
409
+ if (existsSync(filepath) && !options.force) {
410
+ log(` Skipping ${filename} (already exists)`);
411
+ }
412
+ else {
413
+ atomicWriteFileSync(filepath, content);
414
+ result.installedAgents.push(filename);
415
+ log(` Installed ${filename}`);
416
+ }
417
+ }
418
+ // Install slash commands to ~/.claude/commands/ so users can invoke them
419
+ // without the ultrapower: prefix (e.g. /ax-reflect instead of /ultrapower:ax-reflect)
420
+ log('Installing slash commands to ~/.claude/commands/');
421
+ for (const [filename, content] of Object.entries(loadCommandDefinitions())) {
422
+ const filepath = join(COMMANDS_DIR, filename);
423
+ // Create command directory if needed (only for nested paths like 'ultrawork/skill.md')
424
+ // Handle both Unix (/) and Windows (\) path separators
425
+ if (filename.includes('/') || filename.includes('\\')) {
426
+ const segments = filename.split(/[/\\]/);
427
+ const commandDir = join(COMMANDS_DIR, segments[0]);
428
+ if (!existsSync(commandDir)) {
429
+ mkdirSync(commandDir, { recursive: true });
430
+ }
431
+ }
432
+ if (existsSync(filepath) && !options.force) {
433
+ log(` Skipping ${filename} (already exists)`);
434
+ }
435
+ else {
436
+ atomicWriteFileSync(filepath, content);
437
+ result.installedCommands.push(filename);
438
+ log(` Installed ${filename}`);
439
+ }
440
+ }
441
+ // NOTE: SKILL_DEFINITIONS removed - skills now only installed via COMMAND_DEFINITIONS
442
+ // to avoid duplicate entries in Claude Code's available skills list
443
+ // Install CLAUDE.md with merge support
444
+ const claudeMdPath = join(CLAUDE_CONFIG_DIR, 'CLAUDE.md');
445
+ const homeMdPath = join(homedir(), 'CLAUDE.md');
446
+ if (!existsSync(homeMdPath)) {
447
+ const omcContent = loadClaudeMdContent();
448
+ // Read existing content if it exists
449
+ let existingContent = null;
450
+ if (existsSync(claudeMdPath)) {
451
+ existingContent = readFileSync(claudeMdPath, 'utf-8');
452
+ }
453
+ // Always create backup before modification (if file exists)
454
+ if (existingContent !== null) {
455
+ const timestamp = new Date().toISOString().replace(/:/g, '-').split('.')[0]; // YYYY-MM-DDTHH-MM-SS
456
+ const backupPath = join(CLAUDE_CONFIG_DIR, `CLAUDE.md.backup.${timestamp}`);
457
+ atomicWriteFileSync(backupPath, existingContent);
458
+ log(`Backed up existing CLAUDE.md to ${backupPath}`);
459
+ }
460
+ // Merge OMC content with existing content
461
+ const mergedContent = mergeClaudeMd(existingContent, omcContent, options.version ?? VERSION);
462
+ atomicWriteFileSync(claudeMdPath, mergedContent);
463
+ if (existingContent) {
464
+ log('Updated CLAUDE.md (merged with existing content)');
465
+ }
466
+ else {
467
+ log('Created CLAUDE.md');
468
+ }
469
+ }
470
+ else {
471
+ log('CLAUDE.md exists in home directory, skipping');
472
+ }
473
+ // Install hook scripts
474
+ const hookScripts = getHookScripts();
475
+ log('Installing hook scripts...');
476
+ for (const [filename, content] of Object.entries(hookScripts)) {
477
+ const filepath = join(HOOKS_DIR, filename);
478
+ // Create subdirectory if needed (e.g., lib/)
479
+ const dir = dirname(filepath);
480
+ if (!existsSync(dir)) {
481
+ mkdirSync(dir, { recursive: true });
482
+ }
483
+ if (existsSync(filepath) && !options.force) {
484
+ log(` Skipping ${filename} (already exists)`);
485
+ }
486
+ else {
487
+ atomicWriteFileSync(filepath, content);
488
+ // Make script executable (skip on Windows - not needed)
489
+ if (!isWindows()) {
490
+ chmodSync(filepath, 0o755);
491
+ }
492
+ log(` Installed ${filename}`);
493
+ }
494
+ }
495
+ // Note: hooks configuration is deferred to consolidated settings.json write below
496
+ result.hooksConfigured = true; // Will be set properly after consolidated write
497
+ }
498
+ else if (allowPluginHookRefresh) {
499
+ // Refresh hooks in plugin context when explicitly requested (global plugin only)
500
+ log('Refreshing hook scripts for plugin reconciliation...');
501
+ if (!existsSync(HOOKS_DIR)) {
502
+ mkdirSync(HOOKS_DIR, { recursive: true });
503
+ }
504
+ const hookScripts = getHookScripts();
505
+ for (const [filename, content] of Object.entries(hookScripts)) {
506
+ const filepath = join(HOOKS_DIR, filename);
507
+ const dir = dirname(filepath);
508
+ if (!existsSync(dir)) {
509
+ mkdirSync(dir, { recursive: true });
510
+ }
511
+ atomicWriteFileSync(filepath, content);
512
+ if (!isWindows()) {
513
+ chmodSync(filepath, 0o755);
514
+ }
515
+ }
516
+ result.hooksConfigured = true;
517
+ }
518
+ else {
519
+ log('Skipping agent/command/hook files (managed by plugin system)');
520
+ }
521
+ // Install HUD statusline (skip for project-scoped plugins, skipHud option, or hudEnabled config)
522
+ let hudScriptPath = null;
523
+ const hudDisabledByOption = options.skipHud === true;
524
+ const hudDisabledByConfig = !isHudEnabledInConfig();
525
+ const skipHud = projectScoped || hudDisabledByOption || hudDisabledByConfig;
526
+ if (projectScoped) {
527
+ log('Skipping HUD statusline (project-scoped plugin should not modify global settings)');
528
+ }
529
+ else if (hudDisabledByOption) {
530
+ log('Skipping HUD statusline (user opted out)');
531
+ }
532
+ else if (hudDisabledByConfig) {
533
+ log('Skipping HUD statusline (hudEnabled is false in .omc-config.json)');
534
+ }
535
+ else {
536
+ log('Installing HUD statusline...');
537
+ }
538
+ if (!skipHud)
539
+ try {
540
+ if (!existsSync(HUD_DIR)) {
541
+ mkdirSync(HUD_DIR, { recursive: true });
542
+ }
543
+ // Build the HUD script content (compiled from src/hud/index.ts)
544
+ // Create a wrapper that checks multiple locations for the HUD module
545
+ hudScriptPath = join(HUD_DIR, 'omc-hud.mjs');
546
+ const hudScriptLines = [
547
+ '#!/usr/bin/env node',
548
+ '/**',
549
+ ' * OMC HUD - Statusline Script',
550
+ ' * Wrapper that imports from dev paths, plugin cache, or npm package',
551
+ ' */',
552
+ '',
553
+ 'import { existsSync, readdirSync } from "node:fs";',
554
+ 'import { homedir } from "node:os";',
555
+ 'import { join } from "node:path";',
556
+ 'import { pathToFileURL } from "node:url";',
557
+ '',
558
+ 'async function main() {',
559
+ ' const home = homedir();',
560
+ ' let pluginCacheVersion = null;',
561
+ ' let pluginCacheDir = null;',
562
+ ' ',
563
+ ' // 1. Development paths (only when OMC_DEV=1)',
564
+ ' if (process.env.OMC_DEV === "1") {',
565
+ ' const devPaths = [',
566
+ ' join(home, "Workspace/ultrapower/dist/hud/index.js"),',
567
+ ' join(home, "workspace/ultrapower/dist/hud/index.js"),',
568
+ ' join(home, "projects/ultrapower/dist/hud/index.js"),',
569
+ ' ];',
570
+ ' ',
571
+ ' for (const devPath of devPaths) {',
572
+ ' if (existsSync(devPath)) {',
573
+ ' try {',
574
+ ' await import(pathToFileURL(devPath).href);',
575
+ ' return;',
576
+ ' } catch { /* continue */ }',
577
+ ' }',
578
+ ' }',
579
+ ' }',
580
+ ' ',
581
+ ' // 2. Plugin cache (for production installs)',
582
+ ' // Search multiple namespaces: Claude Code uses the package name as namespace',
583
+ ' const pluginCacheBases = [',
584
+ ' join(home, ".claude/plugins/cache/ultrapower/ultrapower"),',
585
+ ' join(home, ".claude/plugins/cache/omc/ultrapower"),',
586
+ ' join(home, ".claude/plugins/cache/liangjie559567/ultrapower"),',
587
+ ' ];',
588
+ ' for (const pluginCacheBase of pluginCacheBases) {',
589
+ ' if (existsSync(pluginCacheBase)) {',
590
+ ' try {',
591
+ ' const versions = readdirSync(pluginCacheBase);',
592
+ ' if (versions.length > 0) {',
593
+ ' // Filter to only versions with built dist/hud/index.js',
594
+ ' // This prevents picking an unbuilt new version after plugin update',
595
+ ' const builtVersions = versions.filter(version => {',
596
+ ' const pluginPath = join(pluginCacheBase, version, "dist/hud/index.js");',
597
+ ' return existsSync(pluginPath);',
598
+ ' });',
599
+ ' ',
600
+ ' if (builtVersions.length > 0) {',
601
+ ' const latestVersion = builtVersions.sort((a, b) => a.localeCompare(b, undefined, { numeric: true })).reverse()[0];',
602
+ ' pluginCacheVersion = latestVersion;',
603
+ ' pluginCacheDir = join(pluginCacheBase, latestVersion);',
604
+ ' const pluginPath = join(pluginCacheDir, "dist/hud/index.js");',
605
+ ' await import(pathToFileURL(pluginPath).href);',
606
+ ' return;',
607
+ ' }',
608
+ ' }',
609
+ ' } catch { /* continue */ }',
610
+ ' }',
611
+ ' }',
612
+ ' ',
613
+ ' // 2b. Temp npm cache dirs (Claude Code plugin install leaves temp_npm_* dirs)',
614
+ ' {',
615
+ ' const claudeConfigDir = process.env.CLAUDE_CONFIG_DIR || join(home, ".claude");',
616
+ ' const cacheDir = join(claudeConfigDir, "plugins", "cache");',
617
+ ' try {',
618
+ ' const cacheDirs = readdirSync(cacheDir);',
619
+ ' const tempDirs = cacheDirs',
620
+ ' .filter(d => d.startsWith("temp_npm_"))',
621
+ ' .map(d => ({ name: d, path: join(cacheDir, d) }))',
622
+ ' .filter(d => existsSync(join(d.path, "dist", "hud", "index.js")))',
623
+ ' .sort((a, b) => b.name.localeCompare(a.name));',
624
+ ' if (tempDirs.length > 0) {',
625
+ ' const hudPath = join(tempDirs[0].path, "dist", "hud", "index.js");',
626
+ ' pluginCacheDir = tempDirs[0].path;',
627
+ ' await import(pathToFileURL(hudPath).href);',
628
+ ' return;',
629
+ ' }',
630
+ ' } catch { /* continue */ }',
631
+ ' }',
632
+ ' ',
633
+ ' // 3. npm package (global or local install)',
634
+ ' try {',
635
+ ' await import("@liangjie559567/ultrapower/dist/hud/index.js");',
636
+ ' return;',
637
+ ' } catch { /* continue */ }',
638
+ ' ',
639
+ ' // 4. Fallback: provide detailed error message with fix instructions',
640
+ ' if (pluginCacheDir && existsSync(pluginCacheDir)) {',
641
+ ' // Plugin exists but dist/ folder is missing - needs build',
642
+ ' const distDir = join(pluginCacheDir, "dist");',
643
+ ' if (!existsSync(distDir)) {',
644
+ ' console.log(`[OMC HUD] Plugin installed but not built. Run: cd "${pluginCacheDir}" && npm install && npm run build`);',
645
+ ' } else {',
646
+ ' console.log(`[OMC HUD] Plugin dist/ exists but HUD not found. Run: cd "${pluginCacheDir}" && npm run build`);',
647
+ ' }',
648
+ ' } else {',
649
+ ' // No plugin installation found at all',
650
+ ' console.log("[OMC HUD] Plugin not installed. Run: /ultrapower:omc-setup");',
651
+ ' }',
652
+ '}',
653
+ '',
654
+ 'main();',
655
+ ];
656
+ const hudScript = hudScriptLines.join('\n');
657
+ atomicWriteFileSync(hudScriptPath, hudScript);
658
+ if (!isWindows()) {
659
+ chmodSync(hudScriptPath, 0o755);
660
+ }
661
+ log(' Installed omc-hud.mjs');
662
+ }
663
+ catch (_e) {
664
+ log(' Warning: Could not install HUD statusline script (non-fatal)');
665
+ hudScriptPath = null;
666
+ }
667
+ // Consolidated settings.json write (atomic: read once, modify, write once)
668
+ // Skip for project-scoped plugins to avoid affecting global settings
669
+ if (projectScoped) {
670
+ log('Skipping settings.json configuration (project-scoped plugin)');
671
+ }
672
+ else {
673
+ log('Configuring settings.json...');
674
+ }
675
+ if (!projectScoped)
676
+ try {
677
+ let existingSettings = {};
678
+ if (existsSync(SETTINGS_FILE)) {
679
+ const settingsContent = readFileSync(SETTINGS_FILE, 'utf-8');
680
+ existingSettings = JSON.parse(settingsContent);
681
+ }
682
+ // 1. Configure hooks (only if not running as plugin unless refresh requested)
683
+ if (!runningAsPlugin || allowPluginHookRefresh) {
684
+ const existingHooks = (existingSettings.hooks || {});
685
+ const hooksConfig = getHooksSettingsConfig();
686
+ const newHooks = hooksConfig.hooks;
687
+ for (const [eventType, eventHooks] of Object.entries(newHooks)) {
688
+ const newOmcGroups = eventHooks;
689
+ if (!existingHooks[eventType]) {
690
+ // No existing hooks for this event type — add OMC's directly
691
+ existingHooks[eventType] = newOmcGroups;
692
+ log(` Added ${eventType} hook`);
693
+ }
694
+ else {
695
+ const existingGroups = existingHooks[eventType];
696
+ // Partition existing groups: non-OMC groups are preserved, OMC groups are replaced
697
+ const nonOmcGroups = existingGroups.filter(group => group.hooks.some(h => h.type === 'command' && !isOmcHook(h.command)));
698
+ const hasNonOmcHook = nonOmcGroups.length > 0;
699
+ const nonOmcCommand = hasNonOmcHook
700
+ ? nonOmcGroups[0].hooks.find(h => h.type === 'command' && !isOmcHook(h.command))?.command ?? ''
701
+ : '';
702
+ if (options.forceHooks && !allowPluginHookRefresh) {
703
+ // Explicit --force-hooks: replace everything; warn when clobbering non-OMC hooks
704
+ if (hasNonOmcHook) {
705
+ log(` [OMC] Warning: Overwriting non-OMC ${eventType} hook with --force-hooks: ${nonOmcCommand}`);
706
+ result.hookConflicts.push({ eventType, existingCommand: nonOmcCommand });
707
+ }
708
+ existingHooks[eventType] = newOmcGroups;
709
+ log(` Updated ${eventType} hook (--force-hooks)`);
710
+ }
711
+ else if (options.force) {
712
+ // omc update path: merge — keep non-OMC groups, replace OMC groups
713
+ existingHooks[eventType] = [...nonOmcGroups, ...newOmcGroups];
714
+ if (hasNonOmcHook) {
715
+ log(` Merged ${eventType} hooks (updated OMC hooks, preserved non-OMC hook: ${nonOmcCommand})`);
716
+ result.hookConflicts.push({ eventType, existingCommand: nonOmcCommand });
717
+ }
718
+ else {
719
+ log(` Updated ${eventType} hook (--force)`);
720
+ }
721
+ }
722
+ else {
723
+ // No force: skip already-configured events; report non-OMC hooks
724
+ if (hasNonOmcHook) {
725
+ log(` [OMC] Warning: ${eventType} hook has non-OMC hook. Skipping. Use --force-hooks to override.`);
726
+ result.hookConflicts.push({ eventType, existingCommand: nonOmcCommand });
727
+ }
728
+ else {
729
+ log(` ${eventType} hook already configured, skipping`);
730
+ }
731
+ }
732
+ }
733
+ }
734
+ existingSettings.hooks = existingHooks;
735
+ log(' Hooks configured');
736
+ result.hooksConfigured = true;
737
+ }
738
+ // 2. Configure statusLine (always, even in plugin mode)
739
+ if (hudScriptPath) {
740
+ // Normalize path separators for cross-platform compatibility.
741
+ // Claude Code executes statusLine commands via Git Bash on Windows,
742
+ // which requires forward slashes. Backslashes in JSON cause parse failures.
743
+ const hudCommandPath = hudScriptPath.replace(/\\/g, '/');
744
+ if (!existingSettings.statusLine) {
745
+ existingSettings.statusLine = {
746
+ type: 'command',
747
+ command: 'node ' + hudCommandPath
748
+ };
749
+ log(' Configured statusLine');
750
+ }
751
+ else if (options.force && isOmcStatusLine(existingSettings.statusLine)) {
752
+ existingSettings.statusLine = {
753
+ type: 'command',
754
+ command: 'node ' + hudCommandPath
755
+ };
756
+ log(' Updated statusLine (--force)');
757
+ }
758
+ else if (options.force) {
759
+ log(' statusLine owned by another tool, preserving (use manual edit to override)');
760
+ }
761
+ else {
762
+ log(' statusLine already configured, skipping (use --force to override)');
763
+ }
764
+ }
765
+ // 3. Single atomic write
766
+ atomicWriteJsonSync(SETTINGS_FILE, existingSettings);
767
+ log(' settings.json updated');
768
+ }
769
+ catch (_e) {
770
+ log(' Warning: Could not configure settings.json (non-fatal)');
771
+ result.hooksConfigured = false;
772
+ }
773
+ // Save version metadata (skip for project-scoped plugins)
774
+ if (!projectScoped) {
775
+ const versionMetadata = {
776
+ version: options.version ?? VERSION,
777
+ installedAt: new Date().toISOString(),
778
+ installMethod: 'npm',
779
+ lastCheckAt: new Date().toISOString()
780
+ };
781
+ atomicWriteJsonSync(VERSION_FILE, versionMetadata);
782
+ log('Saved version metadata');
783
+ }
784
+ else {
785
+ log('Skipping version metadata (project-scoped plugin)');
786
+ }
787
+ result.success = true;
788
+ const hookCount = Object.keys(getHookScripts()).length;
789
+ result.message = `Successfully installed ${result.installedAgents.length} agents, ${result.installedCommands.length} commands, ${result.installedSkills.length} skills, and ${hookCount} hooks`;
790
+ }
791
+ catch (error) {
792
+ const errorMessage = error instanceof Error ? error.message : String(error);
793
+ result.errors.push(errorMessage);
794
+ result.message = `Installation failed: ${errorMessage}`;
795
+ }
796
+ return result;
797
+ }
798
+ /**
799
+ * Check if OMC is already installed
800
+ */
801
+ export function isInstalled() {
802
+ return existsSync(VERSION_FILE) && existsSync(AGENTS_DIR);
803
+ }
804
+ /**
805
+ * Get installation info
806
+ */
807
+ export function getInstallInfo() {
808
+ if (!existsSync(VERSION_FILE)) {
809
+ return null;
810
+ }
811
+ try {
812
+ const content = readFileSync(VERSION_FILE, 'utf-8');
813
+ const data = JSON.parse(content);
814
+ return {
815
+ version: data.version,
816
+ installedAt: data.installedAt,
817
+ method: data.installMethod
818
+ };
819
+ }
820
+ catch {
821
+ return null;
822
+ }
823
+ }
824
+ //# sourceMappingURL=index.js.map