dino-spec 16.2.0 → 17.2.0

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 (1604) hide show
  1. package/README.md +45 -10
  2. package/bin/dino-hud.js +0 -0
  3. package/bin/dino.js +3 -3
  4. package/dist/agents/context-distributor.d.ts +2 -2
  5. package/dist/agents/context-distributor.d.ts.map +1 -1
  6. package/dist/agents/context-distributor.js +19 -17
  7. package/dist/agents/context-distributor.js.map +1 -1
  8. package/dist/agents/index.d.ts +1 -1
  9. package/dist/agents/index.d.ts.map +1 -1
  10. package/dist/agents/index.js +379 -371
  11. package/dist/agents/index.js.map +1 -1
  12. package/dist/cli/index.d.ts +2 -2
  13. package/dist/cli/index.js +48 -40
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/cli/tui/index.d.ts +1 -1
  16. package/dist/cli/tui/index.d.ts.map +1 -1
  17. package/dist/cli/tui/index.js.map +1 -1
  18. package/dist/cli/tui/setup-wizard.d.ts.map +1 -1
  19. package/dist/cli/tui/setup-wizard.js +42 -38
  20. package/dist/cli/tui/setup-wizard.js.map +1 -1
  21. package/dist/commands/compact.d.ts.map +1 -1
  22. package/dist/commands/compact.js +9 -10
  23. package/dist/commands/compact.js.map +1 -1
  24. package/dist/commands/dashboard.d.ts.map +1 -1
  25. package/dist/commands/dashboard.js +6 -8
  26. package/dist/commands/dashboard.js.map +1 -1
  27. package/dist/commands/debug.d.ts +1 -1
  28. package/dist/commands/debug.d.ts.map +1 -1
  29. package/dist/commands/debug.js +31 -32
  30. package/dist/commands/debug.js.map +1 -1
  31. package/dist/commands/hooks/index.d.ts +4 -4
  32. package/dist/commands/hooks/index.d.ts.map +1 -1
  33. package/dist/commands/hooks/index.js +25 -30
  34. package/dist/commands/hooks/index.js.map +1 -1
  35. package/dist/commands/hooks/registry.d.ts +1 -1
  36. package/dist/commands/hooks/registry.d.ts.map +1 -1
  37. package/dist/commands/hooks/registry.js +18 -5
  38. package/dist/commands/hooks/registry.js.map +1 -1
  39. package/dist/commands/hooks/types.d.ts +1 -1
  40. package/dist/commands/hooks/types.d.ts.map +1 -1
  41. package/dist/commands/hooks/utils.d.ts +2 -1
  42. package/dist/commands/hooks/utils.d.ts.map +1 -1
  43. package/dist/commands/hooks/utils.js +8 -7
  44. package/dist/commands/hooks/utils.js.map +1 -1
  45. package/dist/commands/hud.d.ts.map +1 -1
  46. package/dist/commands/hud.js +24 -26
  47. package/dist/commands/hud.js.map +1 -1
  48. package/dist/commands/init.d.ts +15 -2
  49. package/dist/commands/init.d.ts.map +1 -1
  50. package/dist/commands/init.js +291 -38
  51. package/dist/commands/init.js.map +1 -1
  52. package/dist/commands/mcp-serve.d.ts +1 -1
  53. package/dist/commands/mcp-serve.d.ts.map +1 -1
  54. package/dist/commands/mcp-serve.js +1 -1
  55. package/dist/commands/mcp-serve.js.map +1 -1
  56. package/dist/commands/mcp.d.ts +1 -1
  57. package/dist/commands/mcp.d.ts.map +1 -1
  58. package/dist/commands/mcp.js +12 -5
  59. package/dist/commands/mcp.js.map +1 -1
  60. package/dist/commands/memory/consolidate.d.ts.map +1 -1
  61. package/dist/commands/memory/consolidate.js +2 -1
  62. package/dist/commands/memory/consolidate.js.map +1 -1
  63. package/dist/commands/memory/decay.d.ts.map +1 -1
  64. package/dist/commands/memory/decay.js +1 -1
  65. package/dist/commands/memory/decay.js.map +1 -1
  66. package/dist/commands/memory/index.d.ts +8 -8
  67. package/dist/commands/memory/index.d.ts.map +1 -1
  68. package/dist/commands/memory/index.js +4 -4
  69. package/dist/commands/memory/index.js.map +1 -1
  70. package/dist/commands/memory/list.d.ts.map +1 -1
  71. package/dist/commands/memory/list.js +6 -5
  72. package/dist/commands/memory/list.js.map +1 -1
  73. package/dist/commands/memory/prune.d.ts.map +1 -1
  74. package/dist/commands/memory/prune.js +2 -1
  75. package/dist/commands/memory/prune.js.map +1 -1
  76. package/dist/commands/memory/recall.d.ts.map +1 -1
  77. package/dist/commands/memory/recall.js +2 -2
  78. package/dist/commands/memory/recall.js.map +1 -1
  79. package/dist/commands/memory/reflect.d.ts.map +1 -1
  80. package/dist/commands/memory/reflect.js +7 -6
  81. package/dist/commands/memory/reflect.js.map +1 -1
  82. package/dist/commands/memory/search.d.ts.map +1 -1
  83. package/dist/commands/memory/search.js +20 -16
  84. package/dist/commands/memory/search.js.map +1 -1
  85. package/dist/commands/memory/stats.d.ts.map +1 -1
  86. package/dist/commands/memory/stats.js +15 -10
  87. package/dist/commands/memory/stats.js.map +1 -1
  88. package/dist/commands/profile.d.ts.map +1 -1
  89. package/dist/commands/profile.js +7 -9
  90. package/dist/commands/profile.js.map +1 -1
  91. package/dist/commands/provider.d.ts.map +1 -1
  92. package/dist/commands/provider.js +18 -16
  93. package/dist/commands/provider.js.map +1 -1
  94. package/dist/commands/recommendations.d.ts.map +1 -1
  95. package/dist/commands/recommendations.js +13 -12
  96. package/dist/commands/recommendations.js.map +1 -1
  97. package/dist/commands/refresh.d.ts.map +1 -1
  98. package/dist/commands/refresh.js +8 -10
  99. package/dist/commands/refresh.js.map +1 -1
  100. package/dist/commands/session-sync.d.ts.map +1 -1
  101. package/dist/commands/session-sync.js +3 -4
  102. package/dist/commands/session-sync.js.map +1 -1
  103. package/dist/commands/session.d.ts.map +1 -1
  104. package/dist/commands/session.js +14 -16
  105. package/dist/commands/session.js.map +1 -1
  106. package/dist/commands/setup.d.ts.map +1 -1
  107. package/dist/commands/setup.js +8 -8
  108. package/dist/commands/setup.js.map +1 -1
  109. package/dist/commands/status.d.ts.map +1 -1
  110. package/dist/commands/status.js +22 -15
  111. package/dist/commands/status.js.map +1 -1
  112. package/dist/commands/store/index.d.ts +4 -4
  113. package/dist/commands/store/index.d.ts.map +1 -1
  114. package/dist/commands/store/index.js +2 -2
  115. package/dist/commands/store/index.js.map +1 -1
  116. package/dist/commands/store/install.d.ts.map +1 -1
  117. package/dist/commands/store/install.js +1 -1
  118. package/dist/commands/store/install.js.map +1 -1
  119. package/dist/commands/store/list.d.ts.map +1 -1
  120. package/dist/commands/store/list.js +5 -5
  121. package/dist/commands/store/list.js.map +1 -1
  122. package/dist/commands/store/remove.d.ts.map +1 -1
  123. package/dist/commands/store/remove.js.map +1 -1
  124. package/dist/commands/store/search.d.ts.map +1 -1
  125. package/dist/commands/store/search.js +8 -11
  126. package/dist/commands/store/search.js.map +1 -1
  127. package/dist/commands/store/sync.js.map +1 -1
  128. package/dist/commands/update.d.ts +2 -2
  129. package/dist/commands/update.d.ts.map +1 -1
  130. package/dist/commands/update.js +10 -12
  131. package/dist/commands/update.js.map +1 -1
  132. package/dist/core/agents/__tests__/action-mask.test.js +7 -7
  133. package/dist/core/agents/__tests__/action-mask.test.js.map +1 -1
  134. package/dist/core/agents/__tests__/budgets.test.js +11 -6
  135. package/dist/core/agents/__tests__/budgets.test.js.map +1 -1
  136. package/dist/core/agents/__tests__/communication.test.js +8 -5
  137. package/dist/core/agents/__tests__/communication.test.js.map +1 -1
  138. package/dist/core/agents/__tests__/orchestrator.test.js +36 -23
  139. package/dist/core/agents/__tests__/orchestrator.test.js.map +1 -1
  140. package/dist/core/agents/action-mask.d.ts +2 -2
  141. package/dist/core/agents/action-mask.d.ts.map +1 -1
  142. package/dist/core/agents/action-mask.js.map +1 -1
  143. package/dist/core/agents/ambiguity-resolver.d.ts.map +1 -1
  144. package/dist/core/agents/ambiguity-resolver.js +1 -2
  145. package/dist/core/agents/ambiguity-resolver.js.map +1 -1
  146. package/dist/core/agents/blackboard.d.ts.map +1 -1
  147. package/dist/core/agents/blackboard.js +4 -4
  148. package/dist/core/agents/blackboard.js.map +1 -1
  149. package/dist/core/agents/budgets.d.ts +1 -1
  150. package/dist/core/agents/budgets.d.ts.map +1 -1
  151. package/dist/core/agents/budgets.js +3 -2
  152. package/dist/core/agents/budgets.js.map +1 -1
  153. package/dist/core/agents/circuit-breaker.d.ts.map +1 -1
  154. package/dist/core/agents/circuit-breaker.js +3 -1
  155. package/dist/core/agents/circuit-breaker.js.map +1 -1
  156. package/dist/core/agents/circuit-registry.d.ts +1 -1
  157. package/dist/core/agents/circuit-registry.d.ts.map +1 -1
  158. package/dist/core/agents/circuit-registry.js.map +1 -1
  159. package/dist/core/agents/confidence-gate.d.ts.map +1 -1
  160. package/dist/core/agents/confidence-gate.js +2 -6
  161. package/dist/core/agents/confidence-gate.js.map +1 -1
  162. package/dist/core/agents/context-isolation.d.ts.map +1 -1
  163. package/dist/core/agents/context-isolation.js +40 -57
  164. package/dist/core/agents/context-isolation.js.map +1 -1
  165. package/dist/core/agents/feedback-collector.d.ts.map +1 -1
  166. package/dist/core/agents/feedback-collector.js +1 -1
  167. package/dist/core/agents/feedback-collector.js.map +1 -1
  168. package/dist/core/agents/index.d.ts +11 -11
  169. package/dist/core/agents/index.d.ts.map +1 -1
  170. package/dist/core/agents/index.js +37 -37
  171. package/dist/core/agents/index.js.map +1 -1
  172. package/dist/core/agents/initializer.d.ts.map +1 -1
  173. package/dist/core/agents/initializer.js +14 -14
  174. package/dist/core/agents/initializer.js.map +1 -1
  175. package/dist/core/agents/message-protocol.d.ts.map +1 -1
  176. package/dist/core/agents/message-protocol.js +2 -2
  177. package/dist/core/agents/message-protocol.js.map +1 -1
  178. package/dist/core/agents/orchestrator.d.ts +3 -3
  179. package/dist/core/agents/orchestrator.d.ts.map +1 -1
  180. package/dist/core/agents/orchestrator.js +17 -15
  181. package/dist/core/agents/orchestrator.js.map +1 -1
  182. package/dist/core/agents/parallel-reviewer.d.ts +1 -1
  183. package/dist/core/agents/parallel-reviewer.d.ts.map +1 -1
  184. package/dist/core/agents/parallel-reviewer.js +33 -37
  185. package/dist/core/agents/parallel-reviewer.js.map +1 -1
  186. package/dist/core/agents/programmatic/context-delegate.d.ts.map +1 -1
  187. package/dist/core/agents/programmatic/context-delegate.js +10 -10
  188. package/dist/core/agents/programmatic/context-delegate.js.map +1 -1
  189. package/dist/core/agents/programmatic/index.d.ts +3 -3
  190. package/dist/core/agents/programmatic/index.d.ts.map +1 -1
  191. package/dist/core/agents/programmatic/index.js +4 -4
  192. package/dist/core/agents/programmatic/index.js.map +1 -1
  193. package/dist/core/agents/programmatic/result-collector.d.ts +2 -2
  194. package/dist/core/agents/programmatic/result-collector.d.ts.map +1 -1
  195. package/dist/core/agents/programmatic/result-collector.js +18 -16
  196. package/dist/core/agents/programmatic/result-collector.js.map +1 -1
  197. package/dist/core/agents/programmatic/script-executor.d.ts +1 -1
  198. package/dist/core/agents/programmatic/script-executor.d.ts.map +1 -1
  199. package/dist/core/agents/programmatic/script-executor.js +149 -152
  200. package/dist/core/agents/programmatic/script-executor.js.map +1 -1
  201. package/dist/core/agents/recursive/aggregator.d.ts +1 -1
  202. package/dist/core/agents/recursive/aggregator.d.ts.map +1 -1
  203. package/dist/core/agents/recursive/aggregator.js +13 -17
  204. package/dist/core/agents/recursive/aggregator.js.map +1 -1
  205. package/dist/core/agents/recursive/budget-allocator.d.ts +1 -1
  206. package/dist/core/agents/recursive/budget-allocator.d.ts.map +1 -1
  207. package/dist/core/agents/recursive/budget-allocator.js +8 -9
  208. package/dist/core/agents/recursive/budget-allocator.js.map +1 -1
  209. package/dist/core/agents/recursive/checkpoint-chain.d.ts +4 -4
  210. package/dist/core/agents/recursive/checkpoint-chain.d.ts.map +1 -1
  211. package/dist/core/agents/recursive/checkpoint-chain.js +11 -18
  212. package/dist/core/agents/recursive/checkpoint-chain.js.map +1 -1
  213. package/dist/core/agents/recursive/complexity-analyzer.d.ts.map +1 -1
  214. package/dist/core/agents/recursive/complexity-analyzer.js +59 -29
  215. package/dist/core/agents/recursive/complexity-analyzer.js.map +1 -1
  216. package/dist/core/agents/recursive/index.d.ts +6 -6
  217. package/dist/core/agents/recursive/index.d.ts.map +1 -1
  218. package/dist/core/agents/recursive/index.js +11 -11
  219. package/dist/core/agents/recursive/index.js.map +1 -1
  220. package/dist/core/agents/recursive/orchestrator.d.ts +2 -2
  221. package/dist/core/agents/recursive/orchestrator.d.ts.map +1 -1
  222. package/dist/core/agents/recursive/orchestrator.js +60 -19
  223. package/dist/core/agents/recursive/orchestrator.js.map +1 -1
  224. package/dist/core/agents/recursive/spawn-controller.d.ts +3 -3
  225. package/dist/core/agents/recursive/spawn-controller.d.ts.map +1 -1
  226. package/dist/core/agents/recursive/spawn-controller.js +10 -10
  227. package/dist/core/agents/recursive/spawn-controller.js.map +1 -1
  228. package/dist/core/agents/recursive/types.d.ts +2 -2
  229. package/dist/core/agents/recursive/types.d.ts.map +1 -1
  230. package/dist/core/agents/recursive/types.js +2 -2
  231. package/dist/core/agents/recursive/types.js.map +1 -1
  232. package/dist/core/agents/reviewer-loop.d.ts.map +1 -1
  233. package/dist/core/agents/reviewer-loop.js +2 -6
  234. package/dist/core/agents/reviewer-loop.js.map +1 -1
  235. package/dist/core/agents/skill-auditor.d.ts.map +1 -1
  236. package/dist/core/agents/skill-auditor.js +8 -14
  237. package/dist/core/agents/skill-auditor.js.map +1 -1
  238. package/dist/core/agents/types.d.ts +1 -1
  239. package/dist/core/agents/types.d.ts.map +1 -1
  240. package/dist/core/analyzer/change-intent.d.ts +1 -1
  241. package/dist/core/analyzer/change-intent.d.ts.map +1 -1
  242. package/dist/core/analyzer/change-intent.js +6 -5
  243. package/dist/core/analyzer/change-intent.js.map +1 -1
  244. package/dist/core/analyzer/command-extractor.d.ts.map +1 -1
  245. package/dist/core/analyzer/command-extractor.js +2 -4
  246. package/dist/core/analyzer/command-extractor.js.map +1 -1
  247. package/dist/core/analyzer/dependency-graph.d.ts.map +1 -1
  248. package/dist/core/analyzer/dependency-graph.js +379 -74
  249. package/dist/core/analyzer/dependency-graph.js.map +1 -1
  250. package/dist/core/analyzer/focus-detector.d.ts.map +1 -1
  251. package/dist/core/analyzer/focus-detector.js +25 -25
  252. package/dist/core/analyzer/focus-detector.js.map +1 -1
  253. package/dist/core/analyzer/index.d.ts +8 -8
  254. package/dist/core/analyzer/index.d.ts.map +1 -1
  255. package/dist/core/analyzer/index.js +18 -18
  256. package/dist/core/analyzer/index.js.map +1 -1
  257. package/dist/core/analyzer/multi-lang/index.d.ts +2 -2
  258. package/dist/core/analyzer/multi-lang/index.d.ts.map +1 -1
  259. package/dist/core/analyzer/multi-lang/index.js +36 -38
  260. package/dist/core/analyzer/multi-lang/index.js.map +1 -1
  261. package/dist/core/analyzer/multi-lang/language-detector.d.ts +1 -1
  262. package/dist/core/analyzer/multi-lang/language-detector.d.ts.map +1 -1
  263. package/dist/core/analyzer/multi-lang/language-detector.js +27 -14
  264. package/dist/core/analyzer/multi-lang/language-detector.js.map +1 -1
  265. package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts +1 -1
  266. package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts.map +1 -1
  267. package/dist/core/analyzer/multi-lang/pattern-extractor.js +21 -10
  268. package/dist/core/analyzer/multi-lang/pattern-extractor.js.map +1 -1
  269. package/dist/core/analyzer/multi-lang/types.d.ts.map +1 -1
  270. package/dist/core/analyzer/pattern-detector.d.ts.map +1 -1
  271. package/dist/core/analyzer/pattern-detector.js +2 -2
  272. package/dist/core/analyzer/pattern-detector.js.map +1 -1
  273. package/dist/core/analyzer/project-detector.d.ts.map +1 -1
  274. package/dist/core/analyzer/project-detector.js +13 -8
  275. package/dist/core/analyzer/project-detector.js.map +1 -1
  276. package/dist/core/analyzer/semantic-diff.d.ts.map +1 -1
  277. package/dist/core/analyzer/semantic-diff.js +23 -8
  278. package/dist/core/analyzer/semantic-diff.js.map +1 -1
  279. package/dist/core/analyzer/structure-mapper.d.ts +2 -2
  280. package/dist/core/analyzer/structure-mapper.d.ts.map +1 -1
  281. package/dist/core/analyzer/structure-mapper.js +3 -3
  282. package/dist/core/analyzer/structure-mapper.js.map +1 -1
  283. package/dist/core/analyzer/types.d.ts.map +1 -1
  284. package/dist/core/budget/cross-section-dedup.d.ts.map +1 -1
  285. package/dist/core/budget/cross-section-dedup.js +24 -21
  286. package/dist/core/budget/cross-section-dedup.js.map +1 -1
  287. package/dist/core/budget/entropy-budget.d.ts.map +1 -1
  288. package/dist/core/budget/entropy-budget.js +16 -21
  289. package/dist/core/budget/entropy-budget.js.map +1 -1
  290. package/dist/core/budget/index.d.ts +2 -2
  291. package/dist/core/budget/index.d.ts.map +1 -1
  292. package/dist/core/budget/index.js +3 -3
  293. package/dist/core/budget/index.js.map +1 -1
  294. package/dist/core/budget/language-entropy-profiles.d.ts.map +1 -1
  295. package/dist/core/budget/language-entropy-profiles.js +59 -7
  296. package/dist/core/budget/language-entropy-profiles.js.map +1 -1
  297. package/dist/core/budget/token-estimator.d.ts.map +1 -1
  298. package/dist/core/budget/token-estimator.js.map +1 -1
  299. package/dist/core/cache/cache-analyzer.d.ts.map +1 -1
  300. package/dist/core/cache/cache-analyzer.js +23 -25
  301. package/dist/core/cache/cache-analyzer.js.map +1 -1
  302. package/dist/core/cache/cache-metrics.d.ts +1 -1
  303. package/dist/core/cache/cache-metrics.d.ts.map +1 -1
  304. package/dist/core/cache/cache-metrics.js +7 -12
  305. package/dist/core/cache/cache-metrics.js.map +1 -1
  306. package/dist/core/cache/file-cache.d.ts.map +1 -1
  307. package/dist/core/cache/file-cache.js +4 -5
  308. package/dist/core/cache/file-cache.js.map +1 -1
  309. package/dist/core/cache/index.d.ts +3 -3
  310. package/dist/core/cache/index.d.ts.map +1 -1
  311. package/dist/core/cache/index.js +3 -3
  312. package/dist/core/cache/index.js.map +1 -1
  313. package/dist/core/checkpoints/category-compressor.d.ts +1 -1
  314. package/dist/core/checkpoints/category-compressor.d.ts.map +1 -1
  315. package/dist/core/checkpoints/category-compressor.js +6 -7
  316. package/dist/core/checkpoints/category-compressor.js.map +1 -1
  317. package/dist/core/checkpoints/checkpoint-store.d.ts.map +1 -1
  318. package/dist/core/checkpoints/checkpoint-store.js +2 -2
  319. package/dist/core/checkpoints/checkpoint-store.js.map +1 -1
  320. package/dist/core/checkpoints/checkpoint.d.ts +2 -2
  321. package/dist/core/checkpoints/checkpoint.d.ts.map +1 -1
  322. package/dist/core/checkpoints/checkpoint.js +19 -18
  323. package/dist/core/checkpoints/checkpoint.js.map +1 -1
  324. package/dist/core/checkpoints/compression-templates.d.ts +1 -1
  325. package/dist/core/checkpoints/compression-templates.d.ts.map +1 -1
  326. package/dist/core/checkpoints/compression-templates.js +2 -4
  327. package/dist/core/checkpoints/compression-templates.js.map +1 -1
  328. package/dist/core/checkpoints/compression-verifier.d.ts.map +1 -1
  329. package/dist/core/checkpoints/compression-verifier.js +1 -0
  330. package/dist/core/checkpoints/compression-verifier.js.map +1 -1
  331. package/dist/core/checkpoints/context-serializer.d.ts.map +1 -1
  332. package/dist/core/checkpoints/context-serializer.js +9 -15
  333. package/dist/core/checkpoints/context-serializer.js.map +1 -1
  334. package/dist/core/checkpoints/git-recovery.d.ts.map +1 -1
  335. package/dist/core/checkpoints/git-recovery.js +2 -3
  336. package/dist/core/checkpoints/git-recovery.js.map +1 -1
  337. package/dist/core/checkpoints/handoff-schema.d.ts +1 -1
  338. package/dist/core/checkpoints/handoff-schema.d.ts.map +1 -1
  339. package/dist/core/checkpoints/handoff-schema.js +28 -18
  340. package/dist/core/checkpoints/handoff-schema.js.map +1 -1
  341. package/dist/core/checkpoints/handoff.d.ts +1 -1
  342. package/dist/core/checkpoints/handoff.d.ts.map +1 -1
  343. package/dist/core/checkpoints/handoff.js +4 -6
  344. package/dist/core/checkpoints/handoff.js.map +1 -1
  345. package/dist/core/checkpoints/index.d.ts +4 -4
  346. package/dist/core/checkpoints/index.d.ts.map +1 -1
  347. package/dist/core/checkpoints/index.js +4 -4
  348. package/dist/core/checkpoints/index.js.map +1 -1
  349. package/dist/core/checkpoints/session-recovery.d.ts.map +1 -1
  350. package/dist/core/checkpoints/session-recovery.js +6 -4
  351. package/dist/core/checkpoints/session-recovery.js.map +1 -1
  352. package/dist/core/chunking/index.d.ts +2 -2
  353. package/dist/core/chunking/index.d.ts.map +1 -1
  354. package/dist/core/chunking/index.js +9 -11
  355. package/dist/core/chunking/index.js.map +1 -1
  356. package/dist/core/chunking/types.d.ts.map +1 -1
  357. package/dist/core/chunking/types.js.map +1 -1
  358. package/dist/core/chunking/typescript-chunker.d.ts +1 -1
  359. package/dist/core/chunking/typescript-chunker.d.ts.map +1 -1
  360. package/dist/core/chunking/typescript-chunker.js +16 -12
  361. package/dist/core/chunking/typescript-chunker.js.map +1 -1
  362. package/dist/core/chunking/utils.d.ts.map +1 -1
  363. package/dist/core/chunking/utils.js +14 -14
  364. package/dist/core/chunking/utils.js.map +1 -1
  365. package/dist/core/config/constants.d.ts +1 -1
  366. package/dist/core/config/constants.d.ts.map +1 -1
  367. package/dist/core/config/constants.js +2 -2
  368. package/dist/core/config/constants.js.map +1 -1
  369. package/dist/core/config/feature-flags.d.ts +1 -1
  370. package/dist/core/config/feature-flags.d.ts.map +1 -1
  371. package/dist/core/config/feature-flags.js +2 -2
  372. package/dist/core/config/feature-flags.js.map +1 -1
  373. package/dist/core/config/generated-files.d.ts.map +1 -1
  374. package/dist/core/config/generated-files.js.map +1 -1
  375. package/dist/core/config/index.d.ts +2 -2
  376. package/dist/core/config/index.d.ts.map +1 -1
  377. package/dist/core/config/index.js +2 -2
  378. package/dist/core/config/index.js.map +1 -1
  379. package/dist/core/config/markers.d.ts.map +1 -1
  380. package/dist/core/config/markers.js.map +1 -1
  381. package/dist/core/config/optional-commands.d.ts.map +1 -1
  382. package/dist/core/config/optional-commands.js +1 -1
  383. package/dist/core/config/optional-commands.js.map +1 -1
  384. package/dist/core/config/paths.d.ts.map +1 -1
  385. package/dist/core/config/paths.js.map +1 -1
  386. package/dist/core/config-repair.d.ts +91 -0
  387. package/dist/core/config-repair.d.ts.map +1 -0
  388. package/dist/core/config-repair.js +409 -0
  389. package/dist/core/config-repair.js.map +1 -0
  390. package/dist/core/config.d.ts +1 -1
  391. package/dist/core/config.d.ts.map +1 -1
  392. package/dist/core/config.js +1 -1
  393. package/dist/core/config.js.map +1 -1
  394. package/dist/core/context/__tests__/budget-thresholds.test.js +14 -14
  395. package/dist/core/context/__tests__/budget-thresholds.test.js.map +1 -1
  396. package/dist/core/context/__tests__/compaction-engine.test.js +57 -39
  397. package/dist/core/context/__tests__/compaction-engine.test.js.map +1 -1
  398. package/dist/core/context/__tests__/feedback-loop-engine.test.js +68 -40
  399. package/dist/core/context/__tests__/feedback-loop-engine.test.js.map +1 -1
  400. package/dist/core/context/__tests__/output-persistence.test.js +5 -4
  401. package/dist/core/context/__tests__/output-persistence.test.js.map +1 -1
  402. package/dist/core/context/access-tracker.d.ts.map +1 -1
  403. package/dist/core/context/access-tracker.js +9 -11
  404. package/dist/core/context/access-tracker.js.map +1 -1
  405. package/dist/core/context/adaptation-strategy.d.ts.map +1 -1
  406. package/dist/core/context/adaptation-strategy.js +7 -7
  407. package/dist/core/context/adaptation-strategy.js.map +1 -1
  408. package/dist/core/context/auto-injection-engine.d.ts +1 -1
  409. package/dist/core/context/auto-injection-engine.d.ts.map +1 -1
  410. package/dist/core/context/auto-injection-engine.js +15 -14
  411. package/dist/core/context/auto-injection-engine.js.map +1 -1
  412. package/dist/core/context/auto-unload-engine.d.ts.map +1 -1
  413. package/dist/core/context/auto-unload-engine.js +7 -7
  414. package/dist/core/context/auto-unload-engine.js.map +1 -1
  415. package/dist/core/context/budget-thresholds.d.ts.map +1 -1
  416. package/dist/core/context/budget-thresholds.js +22 -12
  417. package/dist/core/context/budget-thresholds.js.map +1 -1
  418. package/dist/core/context/compaction-engine.d.ts.map +1 -1
  419. package/dist/core/context/compaction-engine.js +10 -8
  420. package/dist/core/context/compaction-engine.js.map +1 -1
  421. package/dist/core/context/context-auditor.d.ts.map +1 -1
  422. package/dist/core/context/context-auditor.js +20 -23
  423. package/dist/core/context/context-auditor.js.map +1 -1
  424. package/dist/core/context/context-health.d.ts +1 -1
  425. package/dist/core/context/context-health.d.ts.map +1 -1
  426. package/dist/core/context/context-health.js +18 -21
  427. package/dist/core/context/context-health.js.map +1 -1
  428. package/dist/core/context/context-manifest.d.ts.map +1 -1
  429. package/dist/core/context/context-manifest.js +9 -13
  430. package/dist/core/context/context-manifest.js.map +1 -1
  431. package/dist/core/context/demand-detector.d.ts +4 -4
  432. package/dist/core/context/demand-detector.d.ts.map +1 -1
  433. package/dist/core/context/demand-detector.js +17 -23
  434. package/dist/core/context/demand-detector.js.map +1 -1
  435. package/dist/core/context/demand-signal-patterns.d.ts.map +1 -1
  436. package/dist/core/context/demand-signal-patterns.js +20 -4
  437. package/dist/core/context/demand-signal-patterns.js.map +1 -1
  438. package/dist/core/context/feedback-loop-engine.d.ts +1 -1
  439. package/dist/core/context/feedback-loop-engine.d.ts.map +1 -1
  440. package/dist/core/context/feedback-loop-engine.js +29 -6
  441. package/dist/core/context/feedback-loop-engine.js.map +1 -1
  442. package/dist/core/context/focus-resource-loader.d.ts.map +1 -1
  443. package/dist/core/context/focus-resource-loader.js +17 -10
  444. package/dist/core/context/focus-resource-loader.js.map +1 -1
  445. package/dist/core/context/index.d.ts +20 -21
  446. package/dist/core/context/index.d.ts.map +1 -1
  447. package/dist/core/context/index.js +156 -159
  448. package/dist/core/context/index.js.map +1 -1
  449. package/dist/core/context/lazy-loader.d.ts +1 -1
  450. package/dist/core/context/lazy-loader.d.ts.map +1 -1
  451. package/dist/core/context/lazy-loader.js +13 -13
  452. package/dist/core/context/lazy-loader.js.map +1 -1
  453. package/dist/core/context/memory-decay.d.ts.map +1 -1
  454. package/dist/core/context/memory-decay.js +10 -12
  455. package/dist/core/context/memory-decay.js.map +1 -1
  456. package/dist/core/context/output-persistence.d.ts.map +1 -1
  457. package/dist/core/context/output-persistence.js +6 -10
  458. package/dist/core/context/output-persistence.js.map +1 -1
  459. package/dist/core/context/positional-optimizer.d.ts.map +1 -1
  460. package/dist/core/context/positional-optimizer.js +15 -16
  461. package/dist/core/context/positional-optimizer.js.map +1 -1
  462. package/dist/core/context/prefetch-learner.d.ts.map +1 -1
  463. package/dist/core/context/prefetch-learner.js +7 -5
  464. package/dist/core/context/prefetch-learner.js.map +1 -1
  465. package/dist/core/context/prefetch-optimizer.d.ts.map +1 -1
  466. package/dist/core/context/prefetch-optimizer.js +10 -9
  467. package/dist/core/context/prefetch-optimizer.js.map +1 -1
  468. package/dist/core/context/semantic-signal-detector.d.ts +1 -1
  469. package/dist/core/context/semantic-signal-detector.d.ts.map +1 -1
  470. package/dist/core/context/semantic-signal-detector.js +11 -13
  471. package/dist/core/context/semantic-signal-detector.js.map +1 -1
  472. package/dist/core/context/smart-prefetch-engine.d.ts.map +1 -1
  473. package/dist/core/context/smart-prefetch-engine.js +6 -4
  474. package/dist/core/context/smart-prefetch-engine.js.map +1 -1
  475. package/dist/core/context/token-tracker.d.ts.map +1 -1
  476. package/dist/core/context/token-tracker.js +32 -24
  477. package/dist/core/context/token-tracker.js.map +1 -1
  478. package/dist/core/context/tool-clearing.d.ts +1 -1
  479. package/dist/core/context/tool-clearing.d.ts.map +1 -1
  480. package/dist/core/context/tool-clearing.js +25 -20
  481. package/dist/core/context/tool-clearing.js.map +1 -1
  482. package/dist/core/context/tool-protection.d.ts.map +1 -1
  483. package/dist/core/context/tool-protection.js +1 -3
  484. package/dist/core/context/tool-protection.js.map +1 -1
  485. package/dist/core/context/tool-summarization.d.ts.map +1 -1
  486. package/dist/core/context/tool-summarization.js +24 -19
  487. package/dist/core/context/tool-summarization.js.map +1 -1
  488. package/dist/core/context/window-boundary.d.ts.map +1 -1
  489. package/dist/core/context/window-boundary.js +4 -6
  490. package/dist/core/context/window-boundary.js.map +1 -1
  491. package/dist/core/context-repl/__tests__/condensation.test.js +4 -3
  492. package/dist/core/context-repl/__tests__/condensation.test.js.map +1 -1
  493. package/dist/core/context-repl/__tests__/query-executor.test.js +28 -8
  494. package/dist/core/context-repl/__tests__/query-executor.test.js.map +1 -1
  495. package/dist/core/context-repl/__tests__/query-parser.test.js +6 -5
  496. package/dist/core/context-repl/__tests__/query-parser.test.js.map +1 -1
  497. package/dist/core/context-repl/__tests__/repl-environment.test.js +6 -6
  498. package/dist/core/context-repl/__tests__/repl-environment.test.js.map +1 -1
  499. package/dist/core/context-repl/condensation.d.ts +1 -1
  500. package/dist/core/context-repl/condensation.d.ts.map +1 -1
  501. package/dist/core/context-repl/condensation.js +15 -9
  502. package/dist/core/context-repl/condensation.js.map +1 -1
  503. package/dist/core/context-repl/confidence-scorer.d.ts.map +1 -1
  504. package/dist/core/context-repl/confidence-scorer.js +5 -5
  505. package/dist/core/context-repl/confidence-scorer.js.map +1 -1
  506. package/dist/core/context-repl/context-window-monitor.d.ts +1 -1
  507. package/dist/core/context-repl/context-window-monitor.d.ts.map +1 -1
  508. package/dist/core/context-repl/context-window-monitor.js +5 -8
  509. package/dist/core/context-repl/context-window-monitor.js.map +1 -1
  510. package/dist/core/context-repl/index.d.ts +15 -16
  511. package/dist/core/context-repl/index.d.ts.map +1 -1
  512. package/dist/core/context-repl/index.js +23 -23
  513. package/dist/core/context-repl/index.js.map +1 -1
  514. package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js +7 -20
  515. package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js.map +1 -1
  516. package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js +10 -18
  517. package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js.map +1 -1
  518. package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js +22 -31
  519. package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js.map +1 -1
  520. package/dist/core/context-repl/partitioning/__tests__/by-time.test.js +14 -19
  521. package/dist/core/context-repl/partitioning/__tests__/by-time.test.js.map +1 -1
  522. package/dist/core/context-repl/partitioning/__tests__/index.test.js +6 -13
  523. package/dist/core/context-repl/partitioning/__tests__/index.test.js.map +1 -1
  524. package/dist/core/context-repl/partitioning/index.d.ts +5 -5
  525. package/dist/core/context-repl/partitioning/index.d.ts.map +1 -1
  526. package/dist/core/context-repl/partitioning/index.js +20 -20
  527. package/dist/core/context-repl/partitioning/index.js.map +1 -1
  528. package/dist/core/context-repl/partitioning/partition-cache.d.ts +1 -1
  529. package/dist/core/context-repl/partitioning/partition-cache.d.ts.map +1 -1
  530. package/dist/core/context-repl/partitioning/partition-cache.js +2 -2
  531. package/dist/core/context-repl/partitioning/partition-cache.js.map +1 -1
  532. package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts +1 -1
  533. package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts.map +1 -1
  534. package/dist/core/context-repl/partitioning/strategies/by-dependency.js +25 -18
  535. package/dist/core/context-repl/partitioning/strategies/by-dependency.js.map +1 -1
  536. package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts +1 -1
  537. package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts.map +1 -1
  538. package/dist/core/context-repl/partitioning/strategies/by-directory.js +8 -6
  539. package/dist/core/context-repl/partitioning/strategies/by-directory.js.map +1 -1
  540. package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts +1 -1
  541. package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts.map +1 -1
  542. package/dist/core/context-repl/partitioning/strategies/by-feature.js +19 -38
  543. package/dist/core/context-repl/partitioning/strategies/by-feature.js.map +1 -1
  544. package/dist/core/context-repl/partitioning/strategies/by-time.d.ts +1 -1
  545. package/dist/core/context-repl/partitioning/strategies/by-time.d.ts.map +1 -1
  546. package/dist/core/context-repl/partitioning/strategies/by-time.js +12 -11
  547. package/dist/core/context-repl/partitioning/strategies/by-time.js.map +1 -1
  548. package/dist/core/context-repl/partitioning/strategies/index.d.ts +4 -4
  549. package/dist/core/context-repl/partitioning/strategies/index.d.ts.map +1 -1
  550. package/dist/core/context-repl/partitioning/strategies/index.js +8 -8
  551. package/dist/core/context-repl/partitioning/strategies/index.js.map +1 -1
  552. package/dist/core/context-repl/partitioning/types.d.ts.map +1 -1
  553. package/dist/core/context-repl/partitioning/types.js.map +1 -1
  554. package/dist/core/context-repl/query-executor.d.ts +1 -1
  555. package/dist/core/context-repl/query-executor.d.ts.map +1 -1
  556. package/dist/core/context-repl/query-executor.js +43 -22
  557. package/dist/core/context-repl/query-executor.js.map +1 -1
  558. package/dist/core/context-repl/query-parser.d.ts +1 -1
  559. package/dist/core/context-repl/query-parser.d.ts.map +1 -1
  560. package/dist/core/context-repl/query-parser.js +39 -40
  561. package/dist/core/context-repl/query-parser.js.map +1 -1
  562. package/dist/core/context-repl/reconnaissance-engine.d.ts +1 -1
  563. package/dist/core/context-repl/reconnaissance-engine.d.ts.map +1 -1
  564. package/dist/core/context-repl/reconnaissance-engine.js +9 -14
  565. package/dist/core/context-repl/reconnaissance-engine.js.map +1 -1
  566. package/dist/core/context-repl/recursive/__tests__/budget.test.js +7 -4
  567. package/dist/core/context-repl/recursive/__tests__/budget.test.js.map +1 -1
  568. package/dist/core/context-repl/recursive/__tests__/decomposer.test.js +6 -6
  569. package/dist/core/context-repl/recursive/__tests__/decomposer.test.js.map +1 -1
  570. package/dist/core/context-repl/recursive/__tests__/integration.test.js +12 -8
  571. package/dist/core/context-repl/recursive/__tests__/integration.test.js.map +1 -1
  572. package/dist/core/context-repl/recursive/__tests__/quality.test.js +10 -29
  573. package/dist/core/context-repl/recursive/__tests__/quality.test.js.map +1 -1
  574. package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js +27 -13
  575. package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js.map +1 -1
  576. package/dist/core/context-repl/recursive/budget.d.ts +1 -1
  577. package/dist/core/context-repl/recursive/budget.d.ts.map +1 -1
  578. package/dist/core/context-repl/recursive/budget.js +2 -2
  579. package/dist/core/context-repl/recursive/budget.js.map +1 -1
  580. package/dist/core/context-repl/recursive/decomposer.d.ts +4 -4
  581. package/dist/core/context-repl/recursive/decomposer.d.ts.map +1 -1
  582. package/dist/core/context-repl/recursive/decomposer.js +52 -35
  583. package/dist/core/context-repl/recursive/decomposer.js.map +1 -1
  584. package/dist/core/context-repl/recursive/index.d.ts +7 -7
  585. package/dist/core/context-repl/recursive/index.d.ts.map +1 -1
  586. package/dist/core/context-repl/recursive/index.js +33 -29
  587. package/dist/core/context-repl/recursive/index.js.map +1 -1
  588. package/dist/core/context-repl/recursive/quality.d.ts +1 -1
  589. package/dist/core/context-repl/recursive/quality.d.ts.map +1 -1
  590. package/dist/core/context-repl/recursive/quality.js +14 -13
  591. package/dist/core/context-repl/recursive/quality.js.map +1 -1
  592. package/dist/core/context-repl/recursive/synthesizer.d.ts +2 -2
  593. package/dist/core/context-repl/recursive/synthesizer.d.ts.map +1 -1
  594. package/dist/core/context-repl/recursive/synthesizer.js +9 -9
  595. package/dist/core/context-repl/recursive/synthesizer.js.map +1 -1
  596. package/dist/core/context-repl/recursive/trajectory.d.ts +1 -1
  597. package/dist/core/context-repl/recursive/trajectory.d.ts.map +1 -1
  598. package/dist/core/context-repl/recursive/trajectory.js +16 -16
  599. package/dist/core/context-repl/recursive/trajectory.js.map +1 -1
  600. package/dist/core/context-repl/recursive/types.d.ts.map +1 -1
  601. package/dist/core/context-repl/recursive/types.js.map +1 -1
  602. package/dist/core/context-repl/repl-environment.d.ts +1 -1
  603. package/dist/core/context-repl/repl-environment.d.ts.map +1 -1
  604. package/dist/core/context-repl/repl-environment.js +20 -18
  605. package/dist/core/context-repl/repl-environment.js.map +1 -1
  606. package/dist/core/context-repl/types.d.ts +2 -2
  607. package/dist/core/context-repl/types.d.ts.map +1 -1
  608. package/dist/core/context-repl/types.js +16 -5
  609. package/dist/core/context-repl/types.js.map +1 -1
  610. package/dist/core/context-repl/variable-loader.d.ts +2 -2
  611. package/dist/core/context-repl/variable-loader.d.ts.map +1 -1
  612. package/dist/core/context-repl/variable-loader.js +12 -14
  613. package/dist/core/context-repl/variable-loader.js.map +1 -1
  614. package/dist/core/conversations/conversation-manager.d.ts.map +1 -1
  615. package/dist/core/conversations/conversation-manager.js +5 -2
  616. package/dist/core/conversations/conversation-manager.js.map +1 -1
  617. package/dist/core/conversations/index.d.ts.map +1 -1
  618. package/dist/core/conversations/index.js.map +1 -1
  619. package/dist/core/dashboard/dashboard-formatter.d.ts +1 -1
  620. package/dist/core/dashboard/dashboard-formatter.d.ts.map +1 -1
  621. package/dist/core/dashboard/dashboard-formatter.js +25 -9
  622. package/dist/core/dashboard/dashboard-formatter.js.map +1 -1
  623. package/dist/core/dashboard/health-metrics-aggregator.d.ts.map +1 -1
  624. package/dist/core/dashboard/health-metrics-aggregator.js +16 -14
  625. package/dist/core/dashboard/health-metrics-aggregator.js.map +1 -1
  626. package/dist/core/debug/context-decision-logger.d.ts +1 -1
  627. package/dist/core/debug/context-decision-logger.d.ts.map +1 -1
  628. package/dist/core/debug/context-decision-logger.js +6 -49
  629. package/dist/core/debug/context-decision-logger.js.map +1 -1
  630. package/dist/core/debug/debug-config.d.ts.map +1 -1
  631. package/dist/core/debug/debug-config.js +4 -4
  632. package/dist/core/debug/debug-config.js.map +1 -1
  633. package/dist/core/debug/debug-logger.d.ts +1 -1
  634. package/dist/core/debug/debug-logger.d.ts.map +1 -1
  635. package/dist/core/debug/debug-logger.js +21 -15
  636. package/dist/core/debug/debug-logger.js.map +1 -1
  637. package/dist/core/debug/index.d.ts +3 -3
  638. package/dist/core/debug/index.d.ts.map +1 -1
  639. package/dist/core/debug/index.js +4 -4
  640. package/dist/core/debug/index.js.map +1 -1
  641. package/dist/core/embeddings/adapters/index.d.ts +4 -4
  642. package/dist/core/embeddings/adapters/index.d.ts.map +1 -1
  643. package/dist/core/embeddings/adapters/index.js +5 -7
  644. package/dist/core/embeddings/adapters/index.js.map +1 -1
  645. package/dist/core/embeddings/adapters/local.d.ts +2 -2
  646. package/dist/core/embeddings/adapters/local.d.ts.map +1 -1
  647. package/dist/core/embeddings/adapters/local.js +8 -9
  648. package/dist/core/embeddings/adapters/local.js.map +1 -1
  649. package/dist/core/embeddings/adapters/qdrant.d.ts +1 -1
  650. package/dist/core/embeddings/adapters/qdrant.d.ts.map +1 -1
  651. package/dist/core/embeddings/adapters/qdrant.js +4 -9
  652. package/dist/core/embeddings/adapters/qdrant.js.map +1 -1
  653. package/dist/core/embeddings/adapters/types.d.ts +1 -1
  654. package/dist/core/embeddings/adapters/types.d.ts.map +1 -1
  655. package/dist/core/embeddings/adapters/types.js.map +1 -1
  656. package/dist/core/embeddings/backends/index.d.ts.map +1 -1
  657. package/dist/core/embeddings/backends/index.js +2 -2
  658. package/dist/core/embeddings/backends/index.js.map +1 -1
  659. package/dist/core/embeddings/backends/local.d.ts.map +1 -1
  660. package/dist/core/embeddings/backends/local.js +43 -15
  661. package/dist/core/embeddings/backends/local.js.map +1 -1
  662. package/dist/core/embeddings/content-indexer.d.ts +1 -1
  663. package/dist/core/embeddings/content-indexer.d.ts.map +1 -1
  664. package/dist/core/embeddings/content-indexer.js +7 -7
  665. package/dist/core/embeddings/content-indexer.js.map +1 -1
  666. package/dist/core/embeddings/index.d.ts +11 -11
  667. package/dist/core/embeddings/index.d.ts.map +1 -1
  668. package/dist/core/embeddings/index.js +12 -9
  669. package/dist/core/embeddings/index.js.map +1 -1
  670. package/dist/core/embeddings/query-cache.d.ts.map +1 -1
  671. package/dist/core/embeddings/query-cache.js +1 -1
  672. package/dist/core/embeddings/query-cache.js.map +1 -1
  673. package/dist/core/embeddings/semantic-cache.d.ts.map +1 -1
  674. package/dist/core/embeddings/semantic-cache.js +1 -1
  675. package/dist/core/embeddings/semantic-cache.js.map +1 -1
  676. package/dist/core/embeddings/types.d.ts.map +1 -1
  677. package/dist/core/embeddings/types.js.map +1 -1
  678. package/dist/core/embeddings/vector-store.d.ts +1 -1
  679. package/dist/core/embeddings/vector-store.d.ts.map +1 -1
  680. package/dist/core/embeddings/vector-store.js +20 -21
  681. package/dist/core/embeddings/vector-store.js.map +1 -1
  682. package/dist/core/embeddings/vector-utils.d.ts.map +1 -1
  683. package/dist/core/embeddings/vector-utils.js +4 -4
  684. package/dist/core/embeddings/vector-utils.js.map +1 -1
  685. package/dist/core/environment/__tests__/pre-verify.test.js +23 -19
  686. package/dist/core/environment/__tests__/pre-verify.test.js.map +1 -1
  687. package/dist/core/environment/index.d.ts +1 -1
  688. package/dist/core/environment/index.d.ts.map +1 -1
  689. package/dist/core/environment/index.js +1 -1
  690. package/dist/core/environment/index.js.map +1 -1
  691. package/dist/core/environment/pre-verify.d.ts.map +1 -1
  692. package/dist/core/environment/pre-verify.js +3 -3
  693. package/dist/core/environment/pre-verify.js.map +1 -1
  694. package/dist/core/environment/types.d.ts.map +1 -1
  695. package/dist/core/errors/index.d.ts +2 -2
  696. package/dist/core/errors/index.d.ts.map +1 -1
  697. package/dist/core/errors/index.js +6 -11
  698. package/dist/core/errors/index.js.map +1 -1
  699. package/dist/core/errors.d.ts +3 -3
  700. package/dist/core/errors.d.ts.map +1 -1
  701. package/dist/core/errors.js +4 -4
  702. package/dist/core/errors.js.map +1 -1
  703. package/dist/core/examples/index.d.ts +1 -1
  704. package/dist/core/examples/index.d.ts.map +1 -1
  705. package/dist/core/examples/index.js +1 -1
  706. package/dist/core/examples/index.js.map +1 -1
  707. package/dist/core/examples/tool-examples.d.ts.map +1 -1
  708. package/dist/core/examples/tool-examples.js +6 -15
  709. package/dist/core/examples/tool-examples.js.map +1 -1
  710. package/dist/core/experiments/assignment-engine.d.ts +88 -0
  711. package/dist/core/experiments/assignment-engine.d.ts.map +1 -0
  712. package/dist/core/experiments/assignment-engine.js +162 -0
  713. package/dist/core/experiments/assignment-engine.js.map +1 -0
  714. package/dist/core/experiments/experiment-schema.d.ts +126 -0
  715. package/dist/core/experiments/experiment-schema.d.ts.map +1 -0
  716. package/dist/core/experiments/experiment-schema.js +238 -0
  717. package/dist/core/experiments/experiment-schema.js.map +1 -0
  718. package/dist/core/experiments/experiment-store.d.ts +94 -0
  719. package/dist/core/experiments/experiment-store.d.ts.map +1 -0
  720. package/dist/core/experiments/experiment-store.js +271 -0
  721. package/dist/core/experiments/experiment-store.js.map +1 -0
  722. package/dist/core/experiments/index.d.ts +18 -0
  723. package/dist/core/experiments/index.d.ts.map +1 -0
  724. package/dist/core/experiments/index.js +14 -0
  725. package/dist/core/experiments/index.js.map +1 -0
  726. package/dist/core/experiments/metrics-segmenter.d.ts +99 -0
  727. package/dist/core/experiments/metrics-segmenter.d.ts.map +1 -0
  728. package/dist/core/experiments/metrics-segmenter.js +171 -0
  729. package/dist/core/experiments/metrics-segmenter.js.map +1 -0
  730. package/dist/core/experiments/statistical-analyzer.d.ts +71 -0
  731. package/dist/core/experiments/statistical-analyzer.d.ts.map +1 -0
  732. package/dist/core/experiments/statistical-analyzer.js +357 -0
  733. package/dist/core/experiments/statistical-analyzer.js.map +1 -0
  734. package/dist/core/features/index.d.ts +1 -1
  735. package/dist/core/features/index.d.ts.map +1 -1
  736. package/dist/core/features/index.js +3 -7
  737. package/dist/core/features/index.js.map +1 -1
  738. package/dist/core/features/types.d.ts.map +1 -1
  739. package/dist/core/generator/claude-md.d.ts.map +1 -1
  740. package/dist/core/generator/claude-md.js +35 -40
  741. package/dist/core/generator/claude-md.js.map +1 -1
  742. package/dist/core/generator/index.d.ts +2 -2
  743. package/dist/core/generator/index.d.ts.map +1 -1
  744. package/dist/core/generator/index.js +2 -2
  745. package/dist/core/generator/index.js.map +1 -1
  746. package/dist/core/generator/session-md.d.ts +8 -2
  747. package/dist/core/generator/session-md.d.ts.map +1 -1
  748. package/dist/core/generator/session-md.js +197 -72
  749. package/dist/core/generator/session-md.js.map +1 -1
  750. package/dist/core/handoff/index.d.ts +2 -2
  751. package/dist/core/handoff/index.d.ts.map +1 -1
  752. package/dist/core/handoff/index.js +1 -1
  753. package/dist/core/handoff/index.js.map +1 -1
  754. package/dist/core/handoff/writer.d.ts.map +1 -1
  755. package/dist/core/handoff/writer.js +1 -1
  756. package/dist/core/handoff/writer.js.map +1 -1
  757. package/dist/core/intelligence/adaptive-compaction.d.ts +1 -1
  758. package/dist/core/intelligence/adaptive-compaction.d.ts.map +1 -1
  759. package/dist/core/intelligence/adaptive-compaction.js +27 -30
  760. package/dist/core/intelligence/adaptive-compaction.js.map +1 -1
  761. package/dist/core/intelligence/budget-forecast.d.ts +1 -1
  762. package/dist/core/intelligence/budget-forecast.d.ts.map +1 -1
  763. package/dist/core/intelligence/budget-forecast.js +8 -9
  764. package/dist/core/intelligence/budget-forecast.js.map +1 -1
  765. package/dist/core/intelligence/context-budget.d.ts +2 -2
  766. package/dist/core/intelligence/context-budget.d.ts.map +1 -1
  767. package/dist/core/intelligence/context-budget.js +30 -30
  768. package/dist/core/intelligence/context-budget.js.map +1 -1
  769. package/dist/core/intelligence/effort-advisor.d.ts.map +1 -1
  770. package/dist/core/intelligence/effort-advisor.js +5 -7
  771. package/dist/core/intelligence/effort-advisor.js.map +1 -1
  772. package/dist/core/intelligence/index.d.ts +8 -8
  773. package/dist/core/intelligence/index.d.ts.map +1 -1
  774. package/dist/core/intelligence/index.js +46 -46
  775. package/dist/core/intelligence/index.js.map +1 -1
  776. package/dist/core/intelligence/playbook/evolution-engine.d.ts +1 -1
  777. package/dist/core/intelligence/playbook/evolution-engine.d.ts.map +1 -1
  778. package/dist/core/intelligence/playbook/evolution-engine.js +26 -27
  779. package/dist/core/intelligence/playbook/evolution-engine.js.map +1 -1
  780. package/dist/core/intelligence/playbook/feedback-collector.d.ts +2 -2
  781. package/dist/core/intelligence/playbook/feedback-collector.d.ts.map +1 -1
  782. package/dist/core/intelligence/playbook/feedback-collector.js +19 -19
  783. package/dist/core/intelligence/playbook/feedback-collector.js.map +1 -1
  784. package/dist/core/intelligence/playbook/index.d.ts +7 -7
  785. package/dist/core/intelligence/playbook/index.d.ts.map +1 -1
  786. package/dist/core/intelligence/playbook/index.js +20 -22
  787. package/dist/core/intelligence/playbook/index.js.map +1 -1
  788. package/dist/core/intelligence/playbook/playbook-store.d.ts +2 -2
  789. package/dist/core/intelligence/playbook/playbook-store.d.ts.map +1 -1
  790. package/dist/core/intelligence/playbook/playbook-store.js +18 -16
  791. package/dist/core/intelligence/playbook/playbook-store.js.map +1 -1
  792. package/dist/core/intelligence/playbook/strategy-extractor.d.ts +2 -2
  793. package/dist/core/intelligence/playbook/strategy-extractor.d.ts.map +1 -1
  794. package/dist/core/intelligence/playbook/strategy-extractor.js +41 -43
  795. package/dist/core/intelligence/playbook/strategy-extractor.js.map +1 -1
  796. package/dist/core/intelligence/playbook/tool-sequence.d.ts +1 -1
  797. package/dist/core/intelligence/playbook/tool-sequence.d.ts.map +1 -1
  798. package/dist/core/intelligence/playbook/tool-sequence.js +3 -4
  799. package/dist/core/intelligence/playbook/tool-sequence.js.map +1 -1
  800. package/dist/core/intelligence/playbook/types.d.ts +1 -1
  801. package/dist/core/intelligence/playbook/types.d.ts.map +1 -1
  802. package/dist/core/intelligence/progress-tracker.d.ts +1 -1
  803. package/dist/core/intelligence/progress-tracker.d.ts.map +1 -1
  804. package/dist/core/intelligence/progress-tracker.js.map +1 -1
  805. package/dist/core/intelligence/session-compactor.d.ts.map +1 -1
  806. package/dist/core/intelligence/session-compactor.js +28 -42
  807. package/dist/core/intelligence/session-compactor.js.map +1 -1
  808. package/dist/core/intelligence/trajectory.d.ts +1 -1
  809. package/dist/core/intelligence/trajectory.d.ts.map +1 -1
  810. package/dist/core/intelligence/trajectory.js +37 -27
  811. package/dist/core/intelligence/trajectory.js.map +1 -1
  812. package/dist/core/knowledge-graph/entity-extractor.d.ts +1 -1
  813. package/dist/core/knowledge-graph/entity-extractor.d.ts.map +1 -1
  814. package/dist/core/knowledge-graph/entity-extractor.js +15 -15
  815. package/dist/core/knowledge-graph/entity-extractor.js.map +1 -1
  816. package/dist/core/knowledge-graph/graph.d.ts +1 -1
  817. package/dist/core/knowledge-graph/graph.d.ts.map +1 -1
  818. package/dist/core/knowledge-graph/graph.js +60 -65
  819. package/dist/core/knowledge-graph/graph.js.map +1 -1
  820. package/dist/core/knowledge-graph/index.d.ts +3 -3
  821. package/dist/core/knowledge-graph/index.d.ts.map +1 -1
  822. package/dist/core/knowledge-graph/index.js +13 -13
  823. package/dist/core/knowledge-graph/index.js.map +1 -1
  824. package/dist/core/knowledge-graph/types.d.ts.map +1 -1
  825. package/dist/core/knowledge-graph/types.js.map +1 -1
  826. package/dist/core/memory/access-heatmap.d.ts.map +1 -1
  827. package/dist/core/memory/access-heatmap.js +6 -8
  828. package/dist/core/memory/access-heatmap.js.map +1 -1
  829. package/dist/core/memory/adaptive-strategy.d.ts +1 -1
  830. package/dist/core/memory/adaptive-strategy.d.ts.map +1 -1
  831. package/dist/core/memory/adaptive-strategy.js +12 -16
  832. package/dist/core/memory/adaptive-strategy.js.map +1 -1
  833. package/dist/core/memory/consolidation.d.ts +2 -2
  834. package/dist/core/memory/consolidation.d.ts.map +1 -1
  835. package/dist/core/memory/consolidation.js +45 -58
  836. package/dist/core/memory/consolidation.js.map +1 -1
  837. package/dist/core/memory/cross-linker.d.ts +1 -1
  838. package/dist/core/memory/cross-linker.d.ts.map +1 -1
  839. package/dist/core/memory/cross-linker.js +11 -13
  840. package/dist/core/memory/cross-linker.js.map +1 -1
  841. package/dist/core/memory/distillation.d.ts +1 -1
  842. package/dist/core/memory/distillation.d.ts.map +1 -1
  843. package/dist/core/memory/distillation.js +83 -23
  844. package/dist/core/memory/distillation.js.map +1 -1
  845. package/dist/core/memory/failure-registry.d.ts.map +1 -1
  846. package/dist/core/memory/failure-registry.js +10 -9
  847. package/dist/core/memory/failure-registry.js.map +1 -1
  848. package/dist/core/memory/formatters.d.ts +1 -1
  849. package/dist/core/memory/formatters.d.ts.map +1 -1
  850. package/dist/core/memory/formatters.js +3 -3
  851. package/dist/core/memory/formatters.js.map +1 -1
  852. package/dist/core/memory/global-memory.d.ts +1 -1
  853. package/dist/core/memory/global-memory.d.ts.map +1 -1
  854. package/dist/core/memory/global-memory.js +23 -18
  855. package/dist/core/memory/global-memory.js.map +1 -1
  856. package/dist/core/memory/graph.d.ts.map +1 -1
  857. package/dist/core/memory/graph.js +34 -23
  858. package/dist/core/memory/graph.js.map +1 -1
  859. package/dist/core/memory/hybrid-retrieval.d.ts +1 -1
  860. package/dist/core/memory/hybrid-retrieval.d.ts.map +1 -1
  861. package/dist/core/memory/hybrid-retrieval.js +13 -11
  862. package/dist/core/memory/hybrid-retrieval.js.map +1 -1
  863. package/dist/core/memory/index.d.ts +30 -36
  864. package/dist/core/memory/index.d.ts.map +1 -1
  865. package/dist/core/memory/index.js +220 -224
  866. package/dist/core/memory/index.js.map +1 -1
  867. package/dist/core/memory/memory-capture-agent.d.ts +1 -1
  868. package/dist/core/memory/memory-capture-agent.d.ts.map +1 -1
  869. package/dist/core/memory/memory-capture-agent.js +109 -18
  870. package/dist/core/memory/memory-capture-agent.js.map +1 -1
  871. package/dist/core/memory/memory-decay.d.ts +1 -1
  872. package/dist/core/memory/memory-decay.d.ts.map +1 -1
  873. package/dist/core/memory/memory-decay.js +7 -9
  874. package/dist/core/memory/memory-decay.js.map +1 -1
  875. package/dist/core/memory/memory-rehearsal-agent.d.ts +2 -2
  876. package/dist/core/memory/memory-rehearsal-agent.d.ts.map +1 -1
  877. package/dist/core/memory/memory-rehearsal-agent.js +8 -9
  878. package/dist/core/memory/memory-rehearsal-agent.js.map +1 -1
  879. package/dist/core/memory/memory-retrieval-agent.d.ts +1 -1
  880. package/dist/core/memory/memory-retrieval-agent.d.ts.map +1 -1
  881. package/dist/core/memory/memory-retrieval-agent.js +12 -12
  882. package/dist/core/memory/memory-retrieval-agent.js.map +1 -1
  883. package/dist/core/memory/memory-staging.d.ts +1 -1
  884. package/dist/core/memory/memory-staging.d.ts.map +1 -1
  885. package/dist/core/memory/memory-staging.js +8 -8
  886. package/dist/core/memory/memory-staging.js.map +1 -1
  887. package/dist/core/memory/memory-store.d.ts +2 -2
  888. package/dist/core/memory/memory-store.d.ts.map +1 -1
  889. package/dist/core/memory/memory-store.js +13 -13
  890. package/dist/core/memory/memory-store.js.map +1 -1
  891. package/dist/core/memory/pattern-feedback.d.ts +1 -1
  892. package/dist/core/memory/pattern-feedback.d.ts.map +1 -1
  893. package/dist/core/memory/pattern-feedback.js +3 -5
  894. package/dist/core/memory/pattern-feedback.js.map +1 -1
  895. package/dist/core/memory/pattern-learner.d.ts.map +1 -1
  896. package/dist/core/memory/pattern-learner.js +13 -13
  897. package/dist/core/memory/pattern-learner.js.map +1 -1
  898. package/dist/core/memory/proactive-extractor.d.ts.map +1 -1
  899. package/dist/core/memory/proactive-extractor.js +3 -5
  900. package/dist/core/memory/proactive-extractor.js.map +1 -1
  901. package/dist/core/memory/recitation.d.ts.map +1 -1
  902. package/dist/core/memory/recitation.js +6 -16
  903. package/dist/core/memory/recitation.js.map +1 -1
  904. package/dist/core/memory/retrieval-optimizer.d.ts.map +1 -1
  905. package/dist/core/memory/retrieval-optimizer.js +16 -19
  906. package/dist/core/memory/retrieval-optimizer.js.map +1 -1
  907. package/dist/core/memory/retrieval.d.ts +1 -1
  908. package/dist/core/memory/retrieval.d.ts.map +1 -1
  909. package/dist/core/memory/retrieval.js +4 -5
  910. package/dist/core/memory/retrieval.js.map +1 -1
  911. package/dist/core/memory/semantic-recall.d.ts +2 -2
  912. package/dist/core/memory/semantic-recall.d.ts.map +1 -1
  913. package/dist/core/memory/semantic-recall.js +7 -9
  914. package/dist/core/memory/semantic-recall.js.map +1 -1
  915. package/dist/core/memory/semantic-validation.d.ts.map +1 -1
  916. package/dist/core/memory/semantic-validation.js +22 -21
  917. package/dist/core/memory/semantic-validation.js.map +1 -1
  918. package/dist/core/memory/similarity-utils.d.ts +1 -1
  919. package/dist/core/memory/similarity-utils.d.ts.map +1 -1
  920. package/dist/core/memory/similarity-utils.js +2 -3
  921. package/dist/core/memory/similarity-utils.js.map +1 -1
  922. package/dist/core/memory/spaced-repetition.d.ts.map +1 -1
  923. package/dist/core/memory/spaced-repetition.js +10 -9
  924. package/dist/core/memory/spaced-repetition.js.map +1 -1
  925. package/dist/core/memory/store.d.ts +1 -1
  926. package/dist/core/memory/store.d.ts.map +1 -1
  927. package/dist/core/memory/store.js +4 -4
  928. package/dist/core/memory/store.js.map +1 -1
  929. package/dist/core/memory/types.d.ts.map +1 -1
  930. package/dist/core/memory/types.js +4 -4
  931. package/dist/core/memory/types.js.map +1 -1
  932. package/dist/core/memory/virtual-memory.d.ts +1 -1
  933. package/dist/core/memory/virtual-memory.d.ts.map +1 -1
  934. package/dist/core/memory/virtual-memory.js +23 -35
  935. package/dist/core/memory/virtual-memory.js.map +1 -1
  936. package/dist/core/memory/xml-utils.d.ts +1 -1
  937. package/dist/core/memory/xml-utils.d.ts.map +1 -1
  938. package/dist/core/memory/xml-utils.js +7 -8
  939. package/dist/core/memory/xml-utils.js.map +1 -1
  940. package/dist/core/metrics/__tests__/metrics-collector.test.js +8 -8
  941. package/dist/core/metrics/__tests__/metrics-collector.test.js.map +1 -1
  942. package/dist/core/metrics/index.d.ts +2 -2
  943. package/dist/core/metrics/index.d.ts.map +1 -1
  944. package/dist/core/metrics/index.js +17 -17
  945. package/dist/core/metrics/index.js.map +1 -1
  946. package/dist/core/metrics/metrics-collector.d.ts +5 -1
  947. package/dist/core/metrics/metrics-collector.d.ts.map +1 -1
  948. package/dist/core/metrics/metrics-collector.js +20 -18
  949. package/dist/core/metrics/metrics-collector.js.map +1 -1
  950. package/dist/core/metrics/metrics-schema.d.ts +5 -1
  951. package/dist/core/metrics/metrics-schema.d.ts.map +1 -1
  952. package/dist/core/metrics/metrics-schema.js +3 -2
  953. package/dist/core/metrics/metrics-schema.js.map +1 -1
  954. package/dist/core/plans/index.d.ts.map +1 -1
  955. package/dist/core/plans/index.js.map +1 -1
  956. package/dist/core/plans/plan-manager.d.ts.map +1 -1
  957. package/dist/core/plans/plan-manager.js +15 -8
  958. package/dist/core/plans/plan-manager.js.map +1 -1
  959. package/dist/core/profiling/index.d.ts.map +1 -1
  960. package/dist/core/profiling/index.js.map +1 -1
  961. package/dist/core/profiling/operation-profiler.d.ts.map +1 -1
  962. package/dist/core/profiling/operation-profiler.js +8 -9
  963. package/dist/core/profiling/operation-profiler.js.map +1 -1
  964. package/dist/core/profiling/perf-report-generator.d.ts.map +1 -1
  965. package/dist/core/profiling/perf-report-generator.js +0 -2
  966. package/dist/core/profiling/perf-report-generator.js.map +1 -1
  967. package/dist/core/provider/index.d.ts.map +1 -1
  968. package/dist/core/provider/index.js.map +1 -1
  969. package/dist/core/provider/storage.d.ts.map +1 -1
  970. package/dist/core/provider/storage.js +15 -15
  971. package/dist/core/provider/storage.js.map +1 -1
  972. package/dist/core/ralph/git-integration.d.ts +56 -0
  973. package/dist/core/ralph/git-integration.d.ts.map +1 -1
  974. package/dist/core/ralph/git-integration.js +182 -5
  975. package/dist/core/ralph/git-integration.js.map +1 -1
  976. package/dist/core/ralph/index.d.ts +15 -13
  977. package/dist/core/ralph/index.d.ts.map +1 -1
  978. package/dist/core/ralph/index.js +14 -11
  979. package/dist/core/ralph/index.js.map +1 -1
  980. package/dist/core/ralph/learning-consolidator.d.ts +1 -1
  981. package/dist/core/ralph/learning-consolidator.d.ts.map +1 -1
  982. package/dist/core/ralph/learning-consolidator.js +141 -33
  983. package/dist/core/ralph/learning-consolidator.js.map +1 -1
  984. package/dist/core/ralph/metrics.d.ts +1 -1
  985. package/dist/core/ralph/metrics.d.ts.map +1 -1
  986. package/dist/core/ralph/metrics.js +14 -22
  987. package/dist/core/ralph/metrics.js.map +1 -1
  988. package/dist/core/ralph/prd-generator.d.ts +1 -1
  989. package/dist/core/ralph/prd-generator.d.ts.map +1 -1
  990. package/dist/core/ralph/prd-generator.js +21 -21
  991. package/dist/core/ralph/prd-generator.js.map +1 -1
  992. package/dist/core/ralph/progress-tracker.d.ts +1 -1
  993. package/dist/core/ralph/progress-tracker.d.ts.map +1 -1
  994. package/dist/core/ralph/progress-tracker.js +27 -28
  995. package/dist/core/ralph/progress-tracker.js.map +1 -1
  996. package/dist/core/ralph/state-handler.d.ts +141 -0
  997. package/dist/core/ralph/state-handler.d.ts.map +1 -0
  998. package/dist/core/ralph/state-handler.js +465 -0
  999. package/dist/core/ralph/state-handler.js.map +1 -0
  1000. package/dist/core/ralph/sub-agent-spawner.d.ts +1 -1
  1001. package/dist/core/ralph/sub-agent-spawner.d.ts.map +1 -1
  1002. package/dist/core/ralph/sub-agent-spawner.js +14 -16
  1003. package/dist/core/ralph/sub-agent-spawner.js.map +1 -1
  1004. package/dist/core/ralph/task-integration.d.ts +1 -1
  1005. package/dist/core/ralph/task-integration.d.ts.map +1 -1
  1006. package/dist/core/ralph/task-integration.js +13 -16
  1007. package/dist/core/ralph/task-integration.js.map +1 -1
  1008. package/dist/core/ralph/types.d.ts +6 -0
  1009. package/dist/core/ralph/types.d.ts.map +1 -1
  1010. package/dist/core/ralph/types.js +8 -2
  1011. package/dist/core/ralph/types.js.map +1 -1
  1012. package/dist/core/recommendations/heuristics.d.ts.map +1 -1
  1013. package/dist/core/recommendations/heuristics.js +9 -5
  1014. package/dist/core/recommendations/heuristics.js.map +1 -1
  1015. package/dist/core/recommendations/priority-scorer.d.ts.map +1 -1
  1016. package/dist/core/recommendations/priority-scorer.js +3 -5
  1017. package/dist/core/recommendations/priority-scorer.js.map +1 -1
  1018. package/dist/core/recommendations/recommendation-engine.d.ts.map +1 -1
  1019. package/dist/core/recommendations/recommendation-engine.js +23 -23
  1020. package/dist/core/recommendations/recommendation-engine.js.map +1 -1
  1021. package/dist/core/retrieval/hybrid.d.ts +2 -2
  1022. package/dist/core/retrieval/hybrid.d.ts.map +1 -1
  1023. package/dist/core/retrieval/hybrid.js +3 -3
  1024. package/dist/core/retrieval/hybrid.js.map +1 -1
  1025. package/dist/core/retrieval/index.d.ts +5 -5
  1026. package/dist/core/retrieval/index.d.ts.map +1 -1
  1027. package/dist/core/retrieval/index.js +3 -3
  1028. package/dist/core/retrieval/index.js.map +1 -1
  1029. package/dist/core/retrieval/ranker.d.ts.map +1 -1
  1030. package/dist/core/retrieval/ranker.js +17 -15
  1031. package/dist/core/retrieval/ranker.js.map +1 -1
  1032. package/dist/core/retrieval/stages.d.ts +5 -5
  1033. package/dist/core/retrieval/stages.d.ts.map +1 -1
  1034. package/dist/core/retrieval/stages.js +15 -16
  1035. package/dist/core/retrieval/stages.js.map +1 -1
  1036. package/dist/core/retrieval/types.d.ts.map +1 -1
  1037. package/dist/core/retrieval/types.js.map +1 -1
  1038. package/dist/core/session/index.d.ts +1 -1
  1039. package/dist/core/session/index.d.ts.map +1 -1
  1040. package/dist/core/session/index.js +1 -1
  1041. package/dist/core/session/index.js.map +1 -1
  1042. package/dist/core/session/roadmap-sync.d.ts.map +1 -1
  1043. package/dist/core/session/roadmap-sync.js +13 -13
  1044. package/dist/core/session/roadmap-sync.js.map +1 -1
  1045. package/dist/core/settings-validator.d.ts +68 -0
  1046. package/dist/core/settings-validator.d.ts.map +1 -0
  1047. package/dist/core/settings-validator.js +406 -0
  1048. package/dist/core/settings-validator.js.map +1 -0
  1049. package/dist/core/spec-analyzer/feedback.d.ts +1 -1
  1050. package/dist/core/spec-analyzer/feedback.d.ts.map +1 -1
  1051. package/dist/core/spec-analyzer/feedback.js +8 -4
  1052. package/dist/core/spec-analyzer/feedback.js.map +1 -1
  1053. package/dist/core/spec-analyzer/index.d.ts +3 -3
  1054. package/dist/core/spec-analyzer/index.d.ts.map +1 -1
  1055. package/dist/core/spec-analyzer/index.js +4 -4
  1056. package/dist/core/spec-analyzer/index.js.map +1 -1
  1057. package/dist/core/spec-analyzer/learning-engine.d.ts +1 -1
  1058. package/dist/core/spec-analyzer/learning-engine.d.ts.map +1 -1
  1059. package/dist/core/spec-analyzer/learning-engine.js +6 -4
  1060. package/dist/core/spec-analyzer/learning-engine.js.map +1 -1
  1061. package/dist/core/spec-analyzer/outcome-store.d.ts +1 -1
  1062. package/dist/core/spec-analyzer/outcome-store.d.ts.map +1 -1
  1063. package/dist/core/spec-analyzer/outcome-store.js +11 -25
  1064. package/dist/core/spec-analyzer/outcome-store.js.map +1 -1
  1065. package/dist/core/spec-analyzer/question-context.d.ts.map +1 -1
  1066. package/dist/core/spec-analyzer/question-context.js +8 -15
  1067. package/dist/core/spec-analyzer/question-context.js.map +1 -1
  1068. package/dist/core/spec-analyzer/question-generator.d.ts.map +1 -1
  1069. package/dist/core/spec-analyzer/question-generator.js +7 -8
  1070. package/dist/core/spec-analyzer/question-generator.js.map +1 -1
  1071. package/dist/core/spec-analyzer/question-templates.d.ts.map +1 -1
  1072. package/dist/core/spec-analyzer/question-templates.js +5 -18
  1073. package/dist/core/spec-analyzer/question-templates.js.map +1 -1
  1074. package/dist/core/spec-analyzer/question-types.d.ts.map +1 -1
  1075. package/dist/core/spec-analyzer/question-types.js.map +1 -1
  1076. package/dist/core/spec-analyzer/types.d.ts.map +1 -1
  1077. package/dist/core/spec-analyzer/types.js.map +1 -1
  1078. package/dist/core/tasks/index.d.ts +2 -2
  1079. package/dist/core/tasks/index.d.ts.map +1 -1
  1080. package/dist/core/tasks/index.js +7 -7
  1081. package/dist/core/tasks/index.js.map +1 -1
  1082. package/dist/core/tasks/registry.d.ts +1 -1
  1083. package/dist/core/tasks/registry.d.ts.map +1 -1
  1084. package/dist/core/tasks/registry.js +2 -4
  1085. package/dist/core/tasks/registry.js.map +1 -1
  1086. package/dist/core/tasks/todo-sync.d.ts +1 -1
  1087. package/dist/core/tasks/todo-sync.d.ts.map +1 -1
  1088. package/dist/core/tasks/todo-sync.js +2 -2
  1089. package/dist/core/tasks/todo-sync.js.map +1 -1
  1090. package/dist/core/tasks/types.d.ts.map +1 -1
  1091. package/dist/core/tasks/types.js.map +1 -1
  1092. package/dist/core/test-optimization/file-test-mapper.d.ts +1 -1
  1093. package/dist/core/test-optimization/file-test-mapper.d.ts.map +1 -1
  1094. package/dist/core/test-optimization/file-test-mapper.js +3 -5
  1095. package/dist/core/test-optimization/file-test-mapper.js.map +1 -1
  1096. package/dist/core/test-optimization/impact-analyzer.d.ts.map +1 -1
  1097. package/dist/core/test-optimization/impact-analyzer.js +5 -5
  1098. package/dist/core/test-optimization/impact-analyzer.js.map +1 -1
  1099. package/dist/core/test-optimization/index.d.ts +6 -6
  1100. package/dist/core/test-optimization/index.d.ts.map +1 -1
  1101. package/dist/core/test-optimization/index.js +6 -6
  1102. package/dist/core/test-optimization/index.js.map +1 -1
  1103. package/dist/core/test-optimization/scope-analyzer.d.ts +1 -1
  1104. package/dist/core/test-optimization/scope-analyzer.d.ts.map +1 -1
  1105. package/dist/core/test-optimization/scope-analyzer.js +33 -14
  1106. package/dist/core/test-optimization/scope-analyzer.js.map +1 -1
  1107. package/dist/core/test-optimization/test-state-manager.d.ts +13 -1
  1108. package/dist/core/test-optimization/test-state-manager.d.ts.map +1 -1
  1109. package/dist/core/test-optimization/test-state-manager.js +25 -2
  1110. package/dist/core/test-optimization/test-state-manager.js.map +1 -1
  1111. package/dist/core/test-optimization/types.d.ts +8 -0
  1112. package/dist/core/test-optimization/types.d.ts.map +1 -1
  1113. package/dist/core/traces/context-transitions.d.ts +1 -1
  1114. package/dist/core/traces/context-transitions.d.ts.map +1 -1
  1115. package/dist/core/traces/context-transitions.js +6 -8
  1116. package/dist/core/traces/context-transitions.js.map +1 -1
  1117. package/dist/core/traces/execution-tree.d.ts +1 -1
  1118. package/dist/core/traces/execution-tree.d.ts.map +1 -1
  1119. package/dist/core/traces/execution-tree.js +16 -10
  1120. package/dist/core/traces/execution-tree.js.map +1 -1
  1121. package/dist/core/traces/index.d.ts +7 -7
  1122. package/dist/core/traces/index.d.ts.map +1 -1
  1123. package/dist/core/traces/index.js +17 -17
  1124. package/dist/core/traces/index.js.map +1 -1
  1125. package/dist/core/traces/memory-access-log.d.ts +1 -1
  1126. package/dist/core/traces/memory-access-log.d.ts.map +1 -1
  1127. package/dist/core/traces/memory-access-log.js +3 -3
  1128. package/dist/core/traces/memory-access-log.js.map +1 -1
  1129. package/dist/core/traces/trace-exporter.d.ts +1 -1
  1130. package/dist/core/traces/trace-exporter.d.ts.map +1 -1
  1131. package/dist/core/traces/trace-exporter.js +533 -522
  1132. package/dist/core/traces/trace-exporter.js.map +1 -1
  1133. package/dist/core/traces/types.d.ts.map +1 -1
  1134. package/dist/core/traces/types.js.map +1 -1
  1135. package/dist/core/updater/deprecated-files.d.ts.map +1 -1
  1136. package/dist/core/updater/deprecated-files.js +1 -1
  1137. package/dist/core/updater/deprecated-files.js.map +1 -1
  1138. package/dist/core/updater/index.d.ts +6 -6
  1139. package/dist/core/updater/index.d.ts.map +1 -1
  1140. package/dist/core/updater/index.js +6 -6
  1141. package/dist/core/updater/index.js.map +1 -1
  1142. package/dist/core/updater/types.d.ts +2 -2
  1143. package/dist/core/updater/types.d.ts.map +1 -1
  1144. package/dist/core/updater/types.js +2 -2
  1145. package/dist/core/updater/types.js.map +1 -1
  1146. package/dist/core/updater/update-executor.d.ts +1 -1
  1147. package/dist/core/updater/update-executor.d.ts.map +1 -1
  1148. package/dist/core/updater/update-executor.js +7 -10
  1149. package/dist/core/updater/update-executor.js.map +1 -1
  1150. package/dist/core/updater/version-checker.d.ts +1 -1
  1151. package/dist/core/updater/version-checker.d.ts.map +1 -1
  1152. package/dist/core/updater/version-checker.js +8 -8
  1153. package/dist/core/updater/version-checker.js.map +1 -1
  1154. package/dist/core/validation/ambiguity-detector.d.ts +1 -1
  1155. package/dist/core/validation/ambiguity-detector.d.ts.map +1 -1
  1156. package/dist/core/validation/ambiguity-detector.js +1 -1
  1157. package/dist/core/validation/ambiguity-detector.js.map +1 -1
  1158. package/dist/core/validation/confidence-display.d.ts.map +1 -1
  1159. package/dist/core/validation/confidence-display.js +1 -1
  1160. package/dist/core/validation/confidence-display.js.map +1 -1
  1161. package/dist/core/validation/confidence-scorer.d.ts +1 -1
  1162. package/dist/core/validation/confidence-scorer.d.ts.map +1 -1
  1163. package/dist/core/validation/confidence-scorer.js +2 -3
  1164. package/dist/core/validation/confidence-scorer.js.map +1 -1
  1165. package/dist/core/validation/edge-case-analyzer.d.ts +1 -1
  1166. package/dist/core/validation/edge-case-analyzer.d.ts.map +1 -1
  1167. package/dist/core/validation/edge-case-analyzer.js +1 -1
  1168. package/dist/core/validation/edge-case-analyzer.js.map +1 -1
  1169. package/dist/core/validation/engine.d.ts +2 -2
  1170. package/dist/core/validation/engine.d.ts.map +1 -1
  1171. package/dist/core/validation/engine.js +4 -4
  1172. package/dist/core/validation/engine.js.map +1 -1
  1173. package/dist/core/validation/impact-assessor.d.ts +1 -1
  1174. package/dist/core/validation/impact-assessor.d.ts.map +1 -1
  1175. package/dist/core/validation/impact-assessor.js +5 -1
  1176. package/dist/core/validation/impact-assessor.js.map +1 -1
  1177. package/dist/core/validation/index.d.ts +11 -11
  1178. package/dist/core/validation/index.d.ts.map +1 -1
  1179. package/dist/core/validation/index.js +11 -11
  1180. package/dist/core/validation/index.js.map +1 -1
  1181. package/dist/core/validation/pattern-trust.d.ts.map +1 -1
  1182. package/dist/core/validation/pattern-trust.js +3 -3
  1183. package/dist/core/validation/pattern-trust.js.map +1 -1
  1184. package/dist/core/validation/question-generator.d.ts +1 -1
  1185. package/dist/core/validation/question-generator.d.ts.map +1 -1
  1186. package/dist/core/validation/question-generator.js +10 -6
  1187. package/dist/core/validation/question-generator.js.map +1 -1
  1188. package/dist/core/validation/rules.d.ts +1 -1
  1189. package/dist/core/validation/rules.d.ts.map +1 -1
  1190. package/dist/core/validation/rules.js +2 -2
  1191. package/dist/core/validation/rules.js.map +1 -1
  1192. package/dist/core/validation/types.d.ts.map +1 -1
  1193. package/dist/hooks/index.d.ts +3 -5
  1194. package/dist/hooks/index.d.ts.map +1 -1
  1195. package/dist/hooks/index.js +4 -6
  1196. package/dist/hooks/index.js.map +1 -1
  1197. package/dist/hooks/post-edit.d.ts.map +1 -1
  1198. package/dist/hooks/post-edit.js +699 -699
  1199. package/dist/hooks/post-edit.js.map +1 -1
  1200. package/dist/hooks/post-execution.d.ts.map +1 -1
  1201. package/dist/hooks/post-execution.js +615 -615
  1202. package/dist/hooks/post-execution.js.map +1 -1
  1203. package/dist/hooks/post-typecheck.d.ts +21 -0
  1204. package/dist/hooks/post-typecheck.d.ts.map +1 -0
  1205. package/dist/hooks/post-typecheck.js +349 -0
  1206. package/dist/hooks/post-typecheck.js.map +1 -0
  1207. package/dist/hooks/pre-compact.d.ts.map +1 -1
  1208. package/dist/hooks/pre-compact.js +415 -415
  1209. package/dist/hooks/pre-compact.js.map +1 -1
  1210. package/dist/hooks/pre-tool-use.d.ts.map +1 -1
  1211. package/dist/hooks/pre-tool-use.js +309 -309
  1212. package/dist/hooks/pre-tool-use.js.map +1 -1
  1213. package/dist/hooks/pre-validate.d.ts.map +1 -1
  1214. package/dist/hooks/pre-validate.js +542 -542
  1215. package/dist/hooks/pre-validate.js.map +1 -1
  1216. package/dist/hooks/session-end.d.ts.map +1 -1
  1217. package/dist/hooks/session-end.js +157 -157
  1218. package/dist/hooks/session-end.js.map +1 -1
  1219. package/dist/hooks/session-start-verify.d.ts.map +1 -1
  1220. package/dist/hooks/session-start-verify.js +10 -11
  1221. package/dist/hooks/session-start-verify.js.map +1 -1
  1222. package/dist/hooks/session-start.d.ts +7 -1
  1223. package/dist/hooks/session-start.d.ts.map +1 -1
  1224. package/dist/hooks/session-start.js +897 -734
  1225. package/dist/hooks/session-start.js.map +1 -1
  1226. package/dist/hooks/shared/index.d.ts +1 -1
  1227. package/dist/hooks/shared/index.d.ts.map +1 -1
  1228. package/dist/hooks/shared/index.js +39 -46
  1229. package/dist/hooks/shared/index.js.map +1 -1
  1230. package/dist/hooks/shared/paths.d.ts.map +1 -1
  1231. package/dist/hooks/shared/paths.js +27 -27
  1232. package/dist/hooks/shared/paths.js.map +1 -1
  1233. package/dist/hooks/shared/session.d.ts +4 -0
  1234. package/dist/hooks/shared/session.d.ts.map +1 -1
  1235. package/dist/hooks/shared/session.js +68 -59
  1236. package/dist/hooks/shared/session.js.map +1 -1
  1237. package/dist/hooks/shared/utils.d.ts +1 -1
  1238. package/dist/hooks/shared/utils.d.ts.map +1 -1
  1239. package/dist/hooks/shared/utils.js +43 -43
  1240. package/dist/hooks/shared/utils.js.map +1 -1
  1241. package/dist/hooks/subagent-start.d.ts.map +1 -1
  1242. package/dist/hooks/subagent-start.js.map +1 -1
  1243. package/dist/hooks/subagent-stop.d.ts.map +1 -1
  1244. package/dist/hooks/subagent-stop.js +222 -222
  1245. package/dist/hooks/subagent-stop.js.map +1 -1
  1246. package/dist/hooks/types.d.ts +14 -0
  1247. package/dist/hooks/types.d.ts.map +1 -1
  1248. package/dist/hooks/types.js.map +1 -1
  1249. package/dist/hooks/user-prompt-submit.d.ts.map +1 -1
  1250. package/dist/hooks/user-prompt-submit.js +951 -951
  1251. package/dist/hooks/user-prompt-submit.js.map +1 -1
  1252. package/dist/hud/config-counter.d.ts.map +1 -1
  1253. package/dist/hud/config-counter.js +3 -6
  1254. package/dist/hud/config-counter.js.map +1 -1
  1255. package/dist/hud/config.d.ts.map +1 -1
  1256. package/dist/hud/config.js +2 -2
  1257. package/dist/hud/config.js.map +1 -1
  1258. package/dist/hud/context-tracker.d.ts.map +1 -1
  1259. package/dist/hud/context-tracker.js +2 -2
  1260. package/dist/hud/context-tracker.js.map +1 -1
  1261. package/dist/hud/index.d.ts +10 -10
  1262. package/dist/hud/index.d.ts.map +1 -1
  1263. package/dist/hud/index.js +22 -22
  1264. package/dist/hud/index.js.map +1 -1
  1265. package/dist/hud/mcp-status.d.ts.map +1 -1
  1266. package/dist/hud/mcp-status.js +3 -3
  1267. package/dist/hud/mcp-status.js.map +1 -1
  1268. package/dist/hud/plan-detector.d.ts.map +1 -1
  1269. package/dist/hud/plan-detector.js +2 -2
  1270. package/dist/hud/plan-detector.js.map +1 -1
  1271. package/dist/hud/render/agent-status.d.ts.map +1 -1
  1272. package/dist/hud/render/agent-status.js +4 -8
  1273. package/dist/hud/render/agent-status.js.map +1 -1
  1274. package/dist/hud/render/blockers-badge.d.ts +1 -1
  1275. package/dist/hud/render/blockers-badge.d.ts.map +1 -1
  1276. package/dist/hud/render/blockers-badge.js.map +1 -1
  1277. package/dist/hud/render/budget-bar.d.ts +1 -1
  1278. package/dist/hud/render/budget-bar.d.ts.map +1 -1
  1279. package/dist/hud/render/budget-bar.js +0 -1
  1280. package/dist/hud/render/budget-bar.js.map +1 -1
  1281. package/dist/hud/render/budget-pressure.d.ts +1 -1
  1282. package/dist/hud/render/budget-pressure.d.ts.map +1 -1
  1283. package/dist/hud/render/budget-pressure.js.map +1 -1
  1284. package/dist/hud/render/cache-stats.d.ts +1 -1
  1285. package/dist/hud/render/cache-stats.d.ts.map +1 -1
  1286. package/dist/hud/render/cache-stats.js.map +1 -1
  1287. package/dist/hud/render/circuit.d.ts +1 -1
  1288. package/dist/hud/render/circuit.d.ts.map +1 -1
  1289. package/dist/hud/render/circuit.js +2 -6
  1290. package/dist/hud/render/circuit.js.map +1 -1
  1291. package/dist/hud/render/config-counts.d.ts.map +1 -1
  1292. package/dist/hud/render/config-counts.js.map +1 -1
  1293. package/dist/hud/render/context-health.d.ts +1 -1
  1294. package/dist/hud/render/context-health.d.ts.map +1 -1
  1295. package/dist/hud/render/context-health.js.map +1 -1
  1296. package/dist/hud/render/cost-display.d.ts +1 -1
  1297. package/dist/hud/render/cost-display.d.ts.map +1 -1
  1298. package/dist/hud/render/cost-display.js.map +1 -1
  1299. package/dist/hud/render/deferred-status.d.ts +1 -1
  1300. package/dist/hud/render/deferred-status.d.ts.map +1 -1
  1301. package/dist/hud/render/deferred-status.js.map +1 -1
  1302. package/dist/hud/render/focus-display.d.ts +1 -1
  1303. package/dist/hud/render/focus-display.d.ts.map +1 -1
  1304. package/dist/hud/render/focus-display.js +2 -2
  1305. package/dist/hud/render/focus-display.js.map +1 -1
  1306. package/dist/hud/render/git-status.d.ts +1 -1
  1307. package/dist/hud/render/git-status.d.ts.map +1 -1
  1308. package/dist/hud/render/git-status.js +1 -1
  1309. package/dist/hud/render/git-status.js.map +1 -1
  1310. package/dist/hud/render/index.d.ts +19 -19
  1311. package/dist/hud/render/index.d.ts.map +1 -1
  1312. package/dist/hud/render/index.js +29 -29
  1313. package/dist/hud/render/index.js.map +1 -1
  1314. package/dist/hud/render/layouts.d.ts +1 -1
  1315. package/dist/hud/render/layouts.d.ts.map +1 -1
  1316. package/dist/hud/render/layouts.js +20 -18
  1317. package/dist/hud/render/layouts.js.map +1 -1
  1318. package/dist/hud/render/model-plan.d.ts.map +1 -1
  1319. package/dist/hud/render/model-plan.js.map +1 -1
  1320. package/dist/hud/render/phase-indicator.d.ts.map +1 -1
  1321. package/dist/hud/render/phase-indicator.js.map +1 -1
  1322. package/dist/hud/render/session-limit.d.ts +1 -1
  1323. package/dist/hud/render/session-limit.d.ts.map +1 -1
  1324. package/dist/hud/render/session-limit.js +0 -1
  1325. package/dist/hud/render/session-limit.js.map +1 -1
  1326. package/dist/hud/render/session-timer.d.ts.map +1 -1
  1327. package/dist/hud/render/session-timer.js.map +1 -1
  1328. package/dist/hud/render/status-icons.d.ts +1 -1
  1329. package/dist/hud/render/status-icons.d.ts.map +1 -1
  1330. package/dist/hud/render/status-icons.js +1 -3
  1331. package/dist/hud/render/status-icons.js.map +1 -1
  1332. package/dist/hud/render/todo-progress.d.ts +1 -1
  1333. package/dist/hud/render/todo-progress.d.ts.map +1 -1
  1334. package/dist/hud/render/todo-progress.js +10 -14
  1335. package/dist/hud/render/todo-progress.js.map +1 -1
  1336. package/dist/hud/render/tool-usage.d.ts +1 -1
  1337. package/dist/hud/render/tool-usage.d.ts.map +1 -1
  1338. package/dist/hud/render/tool-usage.js +4 -8
  1339. package/dist/hud/render/tool-usage.js.map +1 -1
  1340. package/dist/hud/render/tools.d.ts.map +1 -1
  1341. package/dist/hud/render/tools.js +3 -7
  1342. package/dist/hud/render/tools.js.map +1 -1
  1343. package/dist/hud/render/weekly-usage.d.ts +1 -1
  1344. package/dist/hud/render/weekly-usage.d.ts.map +1 -1
  1345. package/dist/hud/render/weekly-usage.js +0 -1
  1346. package/dist/hud/render/weekly-usage.js.map +1 -1
  1347. package/dist/hud/session-reader.d.ts +1 -1
  1348. package/dist/hud/session-reader.d.ts.map +1 -1
  1349. package/dist/hud/session-reader.js +6 -6
  1350. package/dist/hud/session-reader.js.map +1 -1
  1351. package/dist/hud/stdin.d.ts.map +1 -1
  1352. package/dist/hud/stdin.js +8 -6
  1353. package/dist/hud/stdin.js.map +1 -1
  1354. package/dist/hud/transcript-reader.d.ts +1 -1
  1355. package/dist/hud/transcript-reader.d.ts.map +1 -1
  1356. package/dist/hud/transcript-reader.js +37 -18
  1357. package/dist/hud/transcript-reader.js.map +1 -1
  1358. package/dist/hud/types.d.ts +1 -1
  1359. package/dist/hud/types.d.ts.map +1 -1
  1360. package/dist/hud/usage-api.d.ts.map +1 -1
  1361. package/dist/hud/usage-api.js +6 -6
  1362. package/dist/hud/usage-api.js.map +1 -1
  1363. package/dist/hud/usage-rotation.d.ts.map +1 -1
  1364. package/dist/hud/usage-rotation.js +3 -3
  1365. package/dist/hud/usage-rotation.js.map +1 -1
  1366. package/dist/hud/usage-tracker.d.ts +1 -1
  1367. package/dist/hud/usage-tracker.d.ts.map +1 -1
  1368. package/dist/hud/usage-tracker.js +7 -8
  1369. package/dist/hud/usage-tracker.js.map +1 -1
  1370. package/dist/index.d.ts +2 -2
  1371. package/dist/index.d.ts.map +1 -1
  1372. package/dist/index.js +2 -2
  1373. package/dist/index.js.map +1 -1
  1374. package/dist/mcp/__tests__/dynamic-updates.test.js +22 -13
  1375. package/dist/mcp/__tests__/dynamic-updates.test.js.map +1 -1
  1376. package/dist/mcp/cache.d.ts.map +1 -1
  1377. package/dist/mcp/cache.js.map +1 -1
  1378. package/dist/mcp/dynamic-updates.d.ts.map +1 -1
  1379. package/dist/mcp/dynamic-updates.js +2 -2
  1380. package/dist/mcp/dynamic-updates.js.map +1 -1
  1381. package/dist/mcp/focus-filter.d.ts.map +1 -1
  1382. package/dist/mcp/focus-filter.js +78 -78
  1383. package/dist/mcp/focus-filter.js.map +1 -1
  1384. package/dist/mcp/focus-tag-learner.d.ts +5 -1
  1385. package/dist/mcp/focus-tag-learner.d.ts.map +1 -1
  1386. package/dist/mcp/focus-tag-learner.js +15 -9
  1387. package/dist/mcp/focus-tag-learner.js.map +1 -1
  1388. package/dist/mcp/index.d.ts +4 -4
  1389. package/dist/mcp/index.d.ts.map +1 -1
  1390. package/dist/mcp/index.js +11 -11
  1391. package/dist/mcp/index.js.map +1 -1
  1392. package/dist/mcp/proximity-tags.d.ts.map +1 -1
  1393. package/dist/mcp/proximity-tags.js +3 -3
  1394. package/dist/mcp/proximity-tags.js.map +1 -1
  1395. package/dist/mcp/registry.d.ts +4 -4
  1396. package/dist/mcp/registry.d.ts.map +1 -1
  1397. package/dist/mcp/registry.js +8 -10
  1398. package/dist/mcp/registry.js.map +1 -1
  1399. package/dist/mcp/resources/index.d.ts +1 -1
  1400. package/dist/mcp/resources/index.d.ts.map +1 -1
  1401. package/dist/mcp/resources/index.js +22 -15
  1402. package/dist/mcp/resources/index.js.map +1 -1
  1403. package/dist/mcp/server.d.ts +2 -2
  1404. package/dist/mcp/server.d.ts.map +1 -1
  1405. package/dist/mcp/server.js +19 -13
  1406. package/dist/mcp/server.js.map +1 -1
  1407. package/dist/mcp/setup.d.ts +1 -1
  1408. package/dist/mcp/setup.d.ts.map +1 -1
  1409. package/dist/mcp/setup.js +19 -16
  1410. package/dist/mcp/setup.js.map +1 -1
  1411. package/dist/mcp/tool-catalog.d.ts.map +1 -1
  1412. package/dist/mcp/tool-catalog.js +44 -16
  1413. package/dist/mcp/tool-catalog.js.map +1 -1
  1414. package/dist/mcp/tool-loader.d.ts +2 -2
  1415. package/dist/mcp/tool-loader.d.ts.map +1 -1
  1416. package/dist/mcp/tool-loader.js +1 -1
  1417. package/dist/mcp/tool-loader.js.map +1 -1
  1418. package/dist/mcp/tool-recommender.d.ts +1 -1
  1419. package/dist/mcp/tool-recommender.d.ts.map +1 -1
  1420. package/dist/mcp/tool-recommender.js +103 -28
  1421. package/dist/mcp/tool-recommender.js.map +1 -1
  1422. package/dist/mcp/tool-tiers.d.ts.map +1 -1
  1423. package/dist/mcp/tool-tiers.js.map +1 -1
  1424. package/dist/mcp/tools/__tests__/environment.test.js +6 -6
  1425. package/dist/mcp/tools/__tests__/environment.test.js.map +1 -1
  1426. package/dist/mcp/tools/agents.d.ts +4 -0
  1427. package/dist/mcp/tools/agents.d.ts.map +1 -1
  1428. package/dist/mcp/tools/agents.js +215 -60
  1429. package/dist/mcp/tools/agents.js.map +1 -1
  1430. package/dist/mcp/tools/auto-inject.d.ts.map +1 -1
  1431. package/dist/mcp/tools/auto-inject.js +3 -3
  1432. package/dist/mcp/tools/auto-inject.js.map +1 -1
  1433. package/dist/mcp/tools/auto-unload.d.ts.map +1 -1
  1434. package/dist/mcp/tools/auto-unload.js +8 -11
  1435. package/dist/mcp/tools/auto-unload.js.map +1 -1
  1436. package/dist/mcp/tools/chunking.d.ts.map +1 -1
  1437. package/dist/mcp/tools/chunking.js +8 -12
  1438. package/dist/mcp/tools/chunking.js.map +1 -1
  1439. package/dist/mcp/tools/config-validate.d.ts +27 -0
  1440. package/dist/mcp/tools/config-validate.d.ts.map +1 -0
  1441. package/dist/mcp/tools/config-validate.js +139 -0
  1442. package/dist/mcp/tools/config-validate.js.map +1 -0
  1443. package/dist/mcp/tools/context-repl.d.ts +2 -2
  1444. package/dist/mcp/tools/context-repl.d.ts.map +1 -1
  1445. package/dist/mcp/tools/context-repl.js +7 -7
  1446. package/dist/mcp/tools/context-repl.js.map +1 -1
  1447. package/dist/mcp/tools/effort.d.ts.map +1 -1
  1448. package/dist/mcp/tools/effort.js +9 -8
  1449. package/dist/mcp/tools/effort.js.map +1 -1
  1450. package/dist/mcp/tools/embeddings.d.ts.map +1 -1
  1451. package/dist/mcp/tools/embeddings.js +3 -3
  1452. package/dist/mcp/tools/embeddings.js.map +1 -1
  1453. package/dist/mcp/tools/environment.d.ts.map +1 -1
  1454. package/dist/mcp/tools/environment.js +10 -10
  1455. package/dist/mcp/tools/environment.js.map +1 -1
  1456. package/dist/mcp/tools/experiments.d.ts +34 -0
  1457. package/dist/mcp/tools/experiments.d.ts.map +1 -0
  1458. package/dist/mcp/tools/experiments.js +212 -0
  1459. package/dist/mcp/tools/experiments.js.map +1 -0
  1460. package/dist/mcp/tools/feedback.d.ts +1 -1
  1461. package/dist/mcp/tools/feedback.d.ts.map +1 -1
  1462. package/dist/mcp/tools/feedback.js +4 -4
  1463. package/dist/mcp/tools/feedback.js.map +1 -1
  1464. package/dist/mcp/tools/health.d.ts.map +1 -1
  1465. package/dist/mcp/tools/health.js +10 -13
  1466. package/dist/mcp/tools/health.js.map +1 -1
  1467. package/dist/mcp/tools/index.d.ts +27 -25
  1468. package/dist/mcp/tools/index.d.ts.map +1 -1
  1469. package/dist/mcp/tools/index.js +48 -32
  1470. package/dist/mcp/tools/index.js.map +1 -1
  1471. package/dist/mcp/tools/knowledge-graph.d.ts +1 -1
  1472. package/dist/mcp/tools/knowledge-graph.d.ts.map +1 -1
  1473. package/dist/mcp/tools/knowledge-graph.js +31 -16
  1474. package/dist/mcp/tools/knowledge-graph.js.map +1 -1
  1475. package/dist/mcp/tools/lazy-context.d.ts +1 -1
  1476. package/dist/mcp/tools/lazy-context.d.ts.map +1 -1
  1477. package/dist/mcp/tools/lazy-context.js +19 -18
  1478. package/dist/mcp/tools/lazy-context.js.map +1 -1
  1479. package/dist/mcp/tools/memory-decay.d.ts.map +1 -1
  1480. package/dist/mcp/tools/memory-decay.js +2 -4
  1481. package/dist/mcp/tools/memory-decay.js.map +1 -1
  1482. package/dist/mcp/tools/memory.d.ts.map +1 -1
  1483. package/dist/mcp/tools/memory.js +6 -6
  1484. package/dist/mcp/tools/memory.js.map +1 -1
  1485. package/dist/mcp/tools/observability.d.ts.map +1 -1
  1486. package/dist/mcp/tools/observability.js +48 -44
  1487. package/dist/mcp/tools/observability.js.map +1 -1
  1488. package/dist/mcp/tools/output-persistence.d.ts.map +1 -1
  1489. package/dist/mcp/tools/output-persistence.js +3 -3
  1490. package/dist/mcp/tools/output-persistence.js.map +1 -1
  1491. package/dist/mcp/tools/plans.d.ts.map +1 -1
  1492. package/dist/mcp/tools/plans.js +3 -7
  1493. package/dist/mcp/tools/plans.js.map +1 -1
  1494. package/dist/mcp/tools/prefetch.d.ts.map +1 -1
  1495. package/dist/mcp/tools/prefetch.js +7 -7
  1496. package/dist/mcp/tools/prefetch.js.map +1 -1
  1497. package/dist/mcp/tools/ralph.d.ts +10 -2
  1498. package/dist/mcp/tools/ralph.d.ts.map +1 -1
  1499. package/dist/mcp/tools/ralph.js +260 -54
  1500. package/dist/mcp/tools/ralph.js.map +1 -1
  1501. package/dist/mcp/tools/recommendations.d.ts.map +1 -1
  1502. package/dist/mcp/tools/recommendations.js +12 -15
  1503. package/dist/mcp/tools/recommendations.js.map +1 -1
  1504. package/dist/mcp/tools/retrieval.d.ts.map +1 -1
  1505. package/dist/mcp/tools/retrieval.js +11 -15
  1506. package/dist/mcp/tools/retrieval.js.map +1 -1
  1507. package/dist/mcp/tools/scripts.d.ts.map +1 -1
  1508. package/dist/mcp/tools/scripts.js +42 -42
  1509. package/dist/mcp/tools/scripts.js.map +1 -1
  1510. package/dist/mcp/tools/session.d.ts +7 -1
  1511. package/dist/mcp/tools/session.d.ts.map +1 -1
  1512. package/dist/mcp/tools/session.js +125 -77
  1513. package/dist/mcp/tools/session.js.map +1 -1
  1514. package/dist/mcp/tools/spec-feedback.d.ts.map +1 -1
  1515. package/dist/mcp/tools/spec-feedback.js +10 -11
  1516. package/dist/mcp/tools/spec-feedback.js.map +1 -1
  1517. package/dist/mcp/tools/tasks.d.ts.map +1 -1
  1518. package/dist/mcp/tools/tasks.js +11 -7
  1519. package/dist/mcp/tools/tasks.js.map +1 -1
  1520. package/dist/mcp/tools/tool-clearing.d.ts.map +1 -1
  1521. package/dist/mcp/tools/tool-clearing.js +9 -12
  1522. package/dist/mcp/tools/tool-clearing.js.map +1 -1
  1523. package/dist/mcp/types.d.ts.map +1 -1
  1524. package/dist/mcp/types.js.map +1 -1
  1525. package/dist/mcp/utils/format-helpers.d.ts.map +1 -1
  1526. package/dist/mcp/utils/format-helpers.js +10 -8
  1527. package/dist/mcp/utils/format-helpers.js.map +1 -1
  1528. package/dist/mcp/utils/index.d.ts +4 -4
  1529. package/dist/mcp/utils/index.d.ts.map +1 -1
  1530. package/dist/mcp/utils/index.js +14 -14
  1531. package/dist/mcp/utils/index.js.map +1 -1
  1532. package/dist/mcp/utils/response-builder.d.ts +1 -1
  1533. package/dist/mcp/utils/response-builder.d.ts.map +1 -1
  1534. package/dist/mcp/utils/response-builder.js +2 -6
  1535. package/dist/mcp/utils/response-builder.js.map +1 -1
  1536. package/dist/mcp/utils/response-helpers.d.ts.map +1 -1
  1537. package/dist/mcp/utils/response-helpers.js.map +1 -1
  1538. package/dist/mcp/utils/session-helpers.d.ts +1 -1
  1539. package/dist/mcp/utils/session-helpers.d.ts.map +1 -1
  1540. package/dist/mcp/utils/session-helpers.js +13 -17
  1541. package/dist/mcp/utils/session-helpers.js.map +1 -1
  1542. package/dist/mcp-server.d.ts +1 -1
  1543. package/dist/mcp-server.d.ts.map +1 -1
  1544. package/dist/mcp-server.js +15 -15
  1545. package/dist/mcp-server.js.map +1 -1
  1546. package/dist/plugin/index.d.ts +1 -1
  1547. package/dist/plugin/index.d.ts.map +1 -1
  1548. package/dist/plugin/index.js +12 -22
  1549. package/dist/plugin/index.js.map +1 -1
  1550. package/dist/plugin/loader.d.ts +1 -1
  1551. package/dist/plugin/loader.d.ts.map +1 -1
  1552. package/dist/plugin/loader.js +2 -2
  1553. package/dist/plugin/loader.js.map +1 -1
  1554. package/dist/rules/index.d.ts.map +1 -1
  1555. package/dist/rules/index.js +801 -801
  1556. package/dist/rules/index.js.map +1 -1
  1557. package/dist/skills/index.d.ts.map +1 -1
  1558. package/dist/skills/index.js +985 -955
  1559. package/dist/skills/index.js.map +1 -1
  1560. package/dist/statusline/budget-tracker.d.ts.map +1 -1
  1561. package/dist/statusline/budget-tracker.js +5 -8
  1562. package/dist/statusline/budget-tracker.js.map +1 -1
  1563. package/dist/statusline/index.d.ts +1 -1
  1564. package/dist/statusline/index.d.ts.map +1 -1
  1565. package/dist/statusline/index.js +60 -60
  1566. package/dist/statusline/index.js.map +1 -1
  1567. package/dist/store/index.d.ts +4 -4
  1568. package/dist/store/index.d.ts.map +1 -1
  1569. package/dist/store/index.js +5 -5
  1570. package/dist/store/index.js.map +1 -1
  1571. package/dist/store/installer.d.ts +1 -1
  1572. package/dist/store/installer.d.ts.map +1 -1
  1573. package/dist/store/installer.js +21 -14
  1574. package/dist/store/installer.js.map +1 -1
  1575. package/dist/store/registry.d.ts +1 -1
  1576. package/dist/store/registry.d.ts.map +1 -1
  1577. package/dist/store/registry.js +3 -3
  1578. package/dist/store/registry.js.map +1 -1
  1579. package/dist/store/remote.d.ts +1 -1
  1580. package/dist/store/remote.d.ts.map +1 -1
  1581. package/dist/store/remote.js +15 -13
  1582. package/dist/store/remote.js.map +1 -1
  1583. package/dist/store/types.d.ts.map +1 -1
  1584. package/dist/store/types.js +2 -2
  1585. package/dist/store/types.js.map +1 -1
  1586. package/dist/utils/ascii-art.d.ts.map +1 -1
  1587. package/dist/utils/ascii-art.js +11 -11
  1588. package/dist/utils/ascii-art.js.map +1 -1
  1589. package/dist/utils/exec.d.ts.map +1 -1
  1590. package/dist/utils/exec.js +3 -1
  1591. package/dist/utils/exec.js.map +1 -1
  1592. package/dist/utils/file-system.d.ts +1 -1
  1593. package/dist/utils/file-system.d.ts.map +1 -1
  1594. package/dist/utils/file-system.js +18 -17
  1595. package/dist/utils/file-system.js.map +1 -1
  1596. package/dist/utils/gitignore.d.ts +3 -3
  1597. package/dist/utils/gitignore.d.ts.map +1 -1
  1598. package/dist/utils/gitignore.js +45 -45
  1599. package/dist/utils/gitignore.js.map +1 -1
  1600. package/dist/utils/validation.d.ts +4 -4
  1601. package/dist/utils/validation.d.ts.map +1 -1
  1602. package/dist/utils/validation.js +10 -10
  1603. package/dist/utils/validation.js.map +1 -1
  1604. package/package.json +79 -76
@@ -4,9 +4,9 @@
4
4
  * Creates workflow phase skills in .claude/skills/dino/
5
5
  * Each skill represents a workflow phase with appropriate tools and context.
6
6
  */
7
- import { join } from 'path';
8
- import { FileSystem } from '../utils/file-system.js';
7
+ import { join } from 'node:path';
9
8
  import { VERSION } from '../core/config.js';
9
+ import { FileSystem } from '../utils/file-system.js';
10
10
  /**
11
11
  * Generate frontmatter YAML from options
12
12
  */
@@ -55,102 +55,102 @@ const PHASE_SKILLS = [
55
55
  allowedTools: ['Read', 'Grep', 'Glob', 'AskUserQuestion', 'TodoWrite', 'Task'],
56
56
  disallowedTools: ['Edit', 'Write', 'Bash'],
57
57
  },
58
- content: `# 📋 Spec Phase
59
-
60
- Intelligent specification kit that analyzes prompts, clarifies requirements, and gates implementation until 80% confidence is reached.
61
-
62
- ## Auto-Trigger
63
-
64
- This skill auto-triggers when ambiguity score > 40. Can also be invoked manually via \`/dino.spec\`.
65
-
66
- ## Algorithm
67
-
68
- ### Stage 0: Triage
69
-
70
- 1. **Check session context**
71
- - If active focus/recent work exists:
72
- - Ask: "I see you were working on [focus area]. Is this related?"
73
- - If yes: Build on existing context
74
- - If no: Fresh analysis mode
75
-
76
- 2. **Detect multi-part requests**
77
- - Look for: "and", "also", numbered lists, multiple verbs
78
- - If multi-part detected:
79
- - Split into discrete tasks
80
- - Present recommended order
81
- - Run spec-kit on FIRST task only
82
-
83
- 3. **Calculate complexity score (0-100)**
84
-
85
- ### Stage 1: Mode Selection
86
-
87
- | Complexity | Ambiguity | Mode |
88
- |------------|-----------|------|
89
- | < 30 | < 20 | SKIP - proceed directly |
90
- | < 30 | >= 20 | LIGHTWEIGHT - quick check |
91
- | >= 30 | * | FULL - thorough analysis |
92
-
93
- ### Stage 2a: Lightweight Mode
94
-
95
- For low complexity requests:
96
-
97
- 1. Quick confidence check
98
- 2. If quick_confidence >= 80%: One-liner confirmation, proceed
99
- 3. If quick_confidence < 80%: Escalate to FULL mode
100
-
101
- ### Stage 2b: Full Mode
102
-
103
- **RESEARCH-FIRST** (exploratory requests):
104
- 1. Scout codebase for patterns
105
- 2. Present 2-3 concrete options
106
- 3. Targeted questions after direction chosen
107
- 4. Iterate until confidence >= 80%
108
-
109
- **QUESTIONS-FIRST** (specific but unclear):
110
- 1. Identify uncertainties: Where? What? When?
111
- 2. Ask targeted questions
112
- 3. Research only if complexity revealed
113
- 4. Iterate until confidence >= 80%
114
-
115
- ## Complexity Scoring
116
-
117
- - **Ambiguity (0-25)**: vague verbs, missing details, unclear success
118
- - **Scope (0-25)**: multiple components, cross-cutting, file count
119
- - **Risk (0-25)**: security, data, breaking changes
120
- - **Novelty (0-25)**: new patterns, external deps, unfamiliar domain
121
-
122
- ## Confidence Gate
123
-
124
- **CRITICAL: Implementation is BLOCKED until confidence reaches threshold**
125
-
126
- | Task Type | Confidence Gate | Criteria |
127
- |-----------|-----------------|----------|
128
- | Normal tasks | 80% | Default for most tasks |
129
- | Ralph-eligible tasks | 90% | complexity > 70, 3+ parts, breaking changes |
130
-
131
- ### Ralph Loop Eligibility
132
-
133
- A task is Ralph-eligible (requires 90% confidence) when:
134
- - **High complexity:** Score > 70
135
- - **Multi-story:** 3+ distinct parts
136
- - **Breaking changes:** System-wide impact (with scope >= 15)
137
- - **Cross-cutting:** Affects entire codebase (scope >= 20)
138
-
139
- When Ralph-eligible:
140
- 1. Higher gate ensures thorough understanding before large-scale work
141
- 2. After reaching 90% confidence, recommend \`/dino.ralph\`
142
- 3. Ralph provides fresh-context iterations with learning persistence
143
-
144
- If below threshold after 5 question rounds, present assumptions for explicit validation.
145
-
146
- ## Output
147
-
148
- Update \`.dino/session.md\` with:
149
- - Requirements with acceptance criteria
150
- - Clarifications log
151
- - Validated assumptions
152
- - Risk assessment
153
- - Recommended next step (/dino.nest or /dino.hunt)
58
+ content: `# 📋 Spec Phase
59
+
60
+ Intelligent specification kit that analyzes prompts, clarifies requirements, and gates implementation until 80% confidence is reached.
61
+
62
+ ## Auto-Trigger
63
+
64
+ This skill auto-triggers when ambiguity score > 40. Can also be invoked manually via \`/dino.spec\`.
65
+
66
+ ## Algorithm
67
+
68
+ ### Stage 0: Triage
69
+
70
+ 1. **Check session context**
71
+ - If active focus/recent work exists:
72
+ - Ask: "I see you were working on [focus area]. Is this related?"
73
+ - If yes: Build on existing context
74
+ - If no: Fresh analysis mode
75
+
76
+ 2. **Detect multi-part requests**
77
+ - Look for: "and", "also", numbered lists, multiple verbs
78
+ - If multi-part detected:
79
+ - Split into discrete tasks
80
+ - Present recommended order
81
+ - Run spec-kit on FIRST task only
82
+
83
+ 3. **Calculate complexity score (0-100)**
84
+
85
+ ### Stage 1: Mode Selection
86
+
87
+ | Complexity | Ambiguity | Mode |
88
+ |------------|-----------|------|
89
+ | < 30 | < 20 | SKIP - proceed directly |
90
+ | < 30 | >= 20 | LIGHTWEIGHT - quick check |
91
+ | >= 30 | * | FULL - thorough analysis |
92
+
93
+ ### Stage 2a: Lightweight Mode
94
+
95
+ For low complexity requests:
96
+
97
+ 1. Quick confidence check
98
+ 2. If quick_confidence >= 80%: One-liner confirmation, proceed
99
+ 3. If quick_confidence < 80%: Escalate to FULL mode
100
+
101
+ ### Stage 2b: Full Mode
102
+
103
+ **RESEARCH-FIRST** (exploratory requests):
104
+ 1. Scout codebase for patterns
105
+ 2. Present 2-3 concrete options
106
+ 3. Targeted questions after direction chosen
107
+ 4. Iterate until confidence >= 80%
108
+
109
+ **QUESTIONS-FIRST** (specific but unclear):
110
+ 1. Identify uncertainties: Where? What? When?
111
+ 2. Ask targeted questions
112
+ 3. Research only if complexity revealed
113
+ 4. Iterate until confidence >= 80%
114
+
115
+ ## Complexity Scoring
116
+
117
+ - **Ambiguity (0-25)**: vague verbs, missing details, unclear success
118
+ - **Scope (0-25)**: multiple components, cross-cutting, file count
119
+ - **Risk (0-25)**: security, data, breaking changes
120
+ - **Novelty (0-25)**: new patterns, external deps, unfamiliar domain
121
+
122
+ ## Confidence Gate
123
+
124
+ **CRITICAL: Implementation is BLOCKED until confidence reaches threshold**
125
+
126
+ | Task Type | Confidence Gate | Criteria |
127
+ |-----------|-----------------|----------|
128
+ | Normal tasks | 80% | Default for most tasks |
129
+ | Ralph-eligible tasks | 90% | complexity > 70, 3+ parts, breaking changes |
130
+
131
+ ### Ralph Loop Eligibility
132
+
133
+ A task is Ralph-eligible (requires 90% confidence) when:
134
+ - **High complexity:** Score > 70
135
+ - **Multi-story:** 3+ distinct parts
136
+ - **Breaking changes:** System-wide impact (with scope >= 15)
137
+ - **Cross-cutting:** Affects entire codebase (scope >= 20)
138
+
139
+ When Ralph-eligible:
140
+ 1. Higher gate ensures thorough understanding before large-scale work
141
+ 2. After reaching 90% confidence, recommend \`/dino.ralph\`
142
+ 3. Ralph provides fresh-context iterations with learning persistence
143
+
144
+ If below threshold after 5 question rounds, present assumptions for explicit validation.
145
+
146
+ ## Output
147
+
148
+ Update \`.dino/session.md\` with:
149
+ - Requirements with acceptance criteria
150
+ - Clarifications log
151
+ - Validated assumptions
152
+ - Risk assessment
153
+ - Recommended next step (/dino.nest or /dino.hunt)
154
154
  `,
155
155
  },
156
156
  {
@@ -166,37 +166,37 @@ Update \`.dino/session.md\` with:
166
166
  effort: 'low',
167
167
  allowedTools: ['Read', 'Grep', 'Glob', 'AskUserQuestion', 'TodoWrite'],
168
168
  },
169
- content: `# 🦕 Discover Phase
170
-
171
- Capture and clarify requirements from user prompts.
172
-
173
- ## Workflow
174
-
175
- 1. **Analyze Request**
176
- - Parse user's intent and goals
177
- - Identify explicit requirements
178
- - Note implicit assumptions
179
-
180
- 2. **Gather Context**
181
- - Read relevant existing code
182
- - Check session.md for prior context
183
- - Review related files
184
-
185
- 3. **Document Requirements**
186
- - Update session.md Notes section
187
- - Create TodoWrite items for actionable items
188
- - Record decisions and constraints
189
-
190
- 4. **Clarify if Needed**
191
- - Use AskUserQuestion for ambiguities
192
- - Validate understanding before proceeding
193
-
194
- ## Output
195
-
196
- After discovery, update \`.dino/session.md\` with:
197
- - Clear requirements summary
198
- - Key constraints identified
199
- - Open questions (if any)
169
+ content: `# 🦕 Discover Phase
170
+
171
+ Capture and clarify requirements from user prompts.
172
+
173
+ ## Workflow
174
+
175
+ 1. **Analyze Request**
176
+ - Parse user's intent and goals
177
+ - Identify explicit requirements
178
+ - Note implicit assumptions
179
+
180
+ 2. **Gather Context**
181
+ - Read relevant existing code
182
+ - Check session.md for prior context
183
+ - Review related files
184
+
185
+ 3. **Document Requirements**
186
+ - Update session.md Notes section
187
+ - Create TodoWrite items for actionable items
188
+ - Record decisions and constraints
189
+
190
+ 4. **Clarify if Needed**
191
+ - Use AskUserQuestion for ambiguities
192
+ - Validate understanding before proceeding
193
+
194
+ ## Output
195
+
196
+ After discovery, update \`.dino/session.md\` with:
197
+ - Clear requirements summary
198
+ - Key constraints identified
199
+ - Open questions (if any)
200
200
  `,
201
201
  },
202
202
  {
@@ -213,33 +213,33 @@ After discovery, update \`.dino/session.md\` with:
213
213
  allowedTools: ['Read', 'Grep', 'Glob', 'Task', 'WebSearch', 'WebFetch'],
214
214
  disallowedTools: ['Edit', 'Write', 'Bash'],
215
215
  },
216
- content: `# 🔍 Scout Phase
217
-
218
- Research existing patterns and explore implementation options.
219
-
220
- ## Workflow
221
-
222
- 1. **Explore Codebase**
223
- - Search for similar patterns
224
- - Review existing implementations
225
- - Identify reusable components
226
-
227
- 2. **Research Options**
228
- - Compare approaches
229
- - Check documentation
230
- - Review best practices
231
-
232
- 3. **Document Findings**
233
- - List viable options with pros/cons
234
- - Note dependencies and risks
235
- - Identify technical constraints
236
-
237
- ## Output
238
-
239
- Research summary with:
240
- - Existing patterns found
241
- - Implementation options
242
- - Recommended approach
216
+ content: `# 🔍 Scout Phase
217
+
218
+ Research existing patterns and explore implementation options.
219
+
220
+ ## Workflow
221
+
222
+ 1. **Explore Codebase**
223
+ - Search for similar patterns
224
+ - Review existing implementations
225
+ - Identify reusable components
226
+
227
+ 2. **Research Options**
228
+ - Compare approaches
229
+ - Check documentation
230
+ - Review best practices
231
+
232
+ 3. **Document Findings**
233
+ - List viable options with pros/cons
234
+ - Note dependencies and risks
235
+ - Identify technical constraints
236
+
237
+ ## Output
238
+
239
+ Research summary with:
240
+ - Existing patterns found
241
+ - Implementation options
242
+ - Recommended approach
243
243
  `,
244
244
  },
245
245
  {
@@ -255,33 +255,33 @@ Research summary with:
255
255
  effort: 'low',
256
256
  allowedTools: ['Read', 'AskUserQuestion'],
257
257
  },
258
- content: `# 🐕 Sniff Phase
259
-
260
- Detect and resolve ambiguities before implementation.
261
-
262
- ## Workflow
263
-
264
- 1. **Identify Ambiguities**
265
- - Review requirements for unclear points
266
- - Check for conflicting constraints
267
- - Note missing information
268
-
269
- 2. **Ask Questions**
270
- - Use AskUserQuestion with clear options
271
- - Prioritize blocking questions
272
- - Group related questions
273
-
274
- 3. **Record Decisions**
275
- - Update session.md with answers
276
- - Document design decisions
277
- - Note any deferred items
278
-
279
- ## Question Guidelines
280
-
281
- - Keep questions focused and specific
282
- - Provide 2-4 clear options when possible
283
- - Include recommended option with rationale
284
- - Use multiSelect when choices aren't exclusive
258
+ content: `# 🐕 Sniff Phase
259
+
260
+ Detect and resolve ambiguities before implementation.
261
+
262
+ ## Workflow
263
+
264
+ 1. **Identify Ambiguities**
265
+ - Review requirements for unclear points
266
+ - Check for conflicting constraints
267
+ - Note missing information
268
+
269
+ 2. **Ask Questions**
270
+ - Use AskUserQuestion with clear options
271
+ - Prioritize blocking questions
272
+ - Group related questions
273
+
274
+ 3. **Record Decisions**
275
+ - Update session.md with answers
276
+ - Document design decisions
277
+ - Note any deferred items
278
+
279
+ ## Question Guidelines
280
+
281
+ - Keep questions focused and specific
282
+ - Provide 2-4 clear options when possible
283
+ - Include recommended option with rationale
284
+ - Use multiSelect when choices aren't exclusive
285
285
  `,
286
286
  },
287
287
  {
@@ -298,52 +298,52 @@ Detect and resolve ambiguities before implementation.
298
298
  allowedTools: ['Read', 'Grep', 'Glob', 'EnterPlanMode', 'TodoWrite'],
299
299
  disallowedTools: ['Edit', 'Write', 'Bash'],
300
300
  },
301
- content: `# 🪺 Nest Phase
302
-
303
- Plan the implementation approach for user approval.
304
-
305
- ## Workflow
306
-
307
- 1. **Enter Plan Mode**
308
- - Use EnterPlanMode for non-trivial tasks
309
- - Gather full context before planning
310
-
311
- 2. **Design Approach**
312
- - Outline file changes needed
313
- - Identify dependencies
314
- - Plan execution order
315
-
316
- 3. **Create Plan**
317
- - Write structured implementation plan
318
- - Include verification steps
319
- - Note rollback strategy
320
-
321
- 4. **Get Approval**
322
- - Use ExitPlanMode to present plan
323
- - Wait for user confirmation
324
- - Adjust based on feedback
325
-
326
- ## Plan Template
327
-
328
- \`\`\`markdown
329
- ## Summary
330
- Brief description of what will be implemented
331
-
332
- ## Files to Modify
333
- - file1.ts - description
334
- - file2.ts - description
335
-
336
- ## Files to Create
337
- - newfile.ts - purpose
338
-
339
- ## Execution Steps
340
- 1. Step one
341
- 2. Step two
342
- ...
343
-
344
- ## Verification
345
- - How to verify success
346
- \`\`\`
301
+ content: `# 🪺 Nest Phase
302
+
303
+ Plan the implementation approach for user approval.
304
+
305
+ ## Workflow
306
+
307
+ 1. **Enter Plan Mode**
308
+ - Use EnterPlanMode for non-trivial tasks
309
+ - Gather full context before planning
310
+
311
+ 2. **Design Approach**
312
+ - Outline file changes needed
313
+ - Identify dependencies
314
+ - Plan execution order
315
+
316
+ 3. **Create Plan**
317
+ - Write structured implementation plan
318
+ - Include verification steps
319
+ - Note rollback strategy
320
+
321
+ 4. **Get Approval**
322
+ - Use ExitPlanMode to present plan
323
+ - Wait for user confirmation
324
+ - Adjust based on feedback
325
+
326
+ ## Plan Template
327
+
328
+ \`\`\`markdown
329
+ ## Summary
330
+ Brief description of what will be implemented
331
+
332
+ ## Files to Modify
333
+ - file1.ts - description
334
+ - file2.ts - description
335
+
336
+ ## Files to Create
337
+ - newfile.ts - purpose
338
+
339
+ ## Execution Steps
340
+ 1. Step one
341
+ 2. Step two
342
+ ...
343
+
344
+ ## Verification
345
+ - How to verify success
346
+ \`\`\`
347
347
  `,
348
348
  },
349
349
  {
@@ -359,33 +359,33 @@ Brief description of what will be implemented
359
359
  effort: 'low',
360
360
  allowedTools: ['Read', 'TodoWrite'],
361
361
  },
362
- content: `# 🥚 Hatch Phase
363
-
364
- Break the approved plan into atomic, trackable tasks.
365
-
366
- ## Workflow
367
-
368
- 1. **Decompose Plan**
369
- - Split into atomic tasks
370
- - Identify dependencies
371
- - Order by execution sequence
372
-
373
- 2. **Create Todos**
374
- - Use TodoWrite with clear items
375
- - Include both content and activeForm
376
- - Mark first task as in_progress
377
-
378
- 3. **Validate Coverage**
379
- - Check all plan items are covered
380
- - Include verification tasks
381
- - Add cleanup tasks if needed
382
-
383
- ## Todo Guidelines
384
-
385
- - Each todo should be completable in one action
386
- - Include success criteria
387
- - Order reflects execution sequence
388
- - Group related tasks
362
+ content: `# 🥚 Hatch Phase
363
+
364
+ Break the approved plan into atomic, trackable tasks.
365
+
366
+ ## Workflow
367
+
368
+ 1. **Decompose Plan**
369
+ - Split into atomic tasks
370
+ - Identify dependencies
371
+ - Order by execution sequence
372
+
373
+ 2. **Create Todos**
374
+ - Use TodoWrite with clear items
375
+ - Include both content and activeForm
376
+ - Mark first task as in_progress
377
+
378
+ 3. **Validate Coverage**
379
+ - Check all plan items are covered
380
+ - Include verification tasks
381
+ - Add cleanup tasks if needed
382
+
383
+ ## Todo Guidelines
384
+
385
+ - Each todo should be completable in one action
386
+ - Include success criteria
387
+ - Order reflects execution sequence
388
+ - Group related tasks
389
389
  `,
390
390
  },
391
391
  {
@@ -401,33 +401,33 @@ Break the approved plan into atomic, trackable tasks.
401
401
  effort: 'medium',
402
402
  allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'Glob', 'Grep', 'TodoWrite'],
403
403
  },
404
- content: `# 🦖 Hunt Phase
405
-
406
- Execute implementation tasks methodically.
407
-
408
- ## Workflow
409
-
410
- 1. **Execute Todos**
411
- - Work through TodoWrite items in order
412
- - Mark each as complete when done
413
- - Update session.md focus as you work
414
-
415
- 2. **Track Progress**
416
- - Complete one task before starting next
417
- - Note any blockers immediately
418
- - Update progress signals
419
-
420
- 3. **Maintain Context**
421
- - Keep session.md current
422
- - Track file changes
423
- - Note decisions made during implementation
424
-
425
- ## Best Practices
426
-
427
- - Read files before editing
428
- - Test changes incrementally
429
- - Commit logical chunks
430
- - Update todos as you complete them
404
+ content: `# 🦖 Hunt Phase
405
+
406
+ Execute implementation tasks methodically.
407
+
408
+ ## Workflow
409
+
410
+ 1. **Execute Todos**
411
+ - Work through TodoWrite items in order
412
+ - Mark each as complete when done
413
+ - Update session.md focus as you work
414
+
415
+ 2. **Track Progress**
416
+ - Complete one task before starting next
417
+ - Note any blockers immediately
418
+ - Update progress signals
419
+
420
+ 3. **Maintain Context**
421
+ - Keep session.md current
422
+ - Track file changes
423
+ - Note decisions made during implementation
424
+
425
+ ## Best Practices
426
+
427
+ - Read files before editing
428
+ - Test changes incrementally
429
+ - Commit logical chunks
430
+ - Update todos as you complete them
431
431
  `,
432
432
  },
433
433
  {
@@ -443,38 +443,38 @@ Execute implementation tasks methodically.
443
443
  effort: 'low',
444
444
  allowedTools: ['Read', 'Bash', 'Edit', 'TodoWrite'],
445
445
  },
446
- content: `# ⏳ Aging Phase
447
-
448
- Verify implementation through testing and validation.
449
-
450
- ## Workflow
451
-
452
- 1. **Run Tests**
453
- - Execute test suite
454
- - Review failures
455
- - Fix issues found
456
-
457
- 2. **Verify Build**
458
- - Run build command
459
- - Check for errors
460
- - Validate output
461
-
462
- 3. **Check Lint**
463
- - Run linter
464
- - Fix violations
465
- - Verify clean
466
-
467
- 4. **Manual Verification**
468
- - Test key functionality
469
- - Verify requirements met
470
- - Check edge cases
471
-
472
- ## Success Criteria
473
-
474
- - All tests passing
475
- - Build succeeds
476
- - No lint errors
477
- - Requirements verified
446
+ content: `# ⏳ Aging Phase
447
+
448
+ Verify implementation through testing and validation.
449
+
450
+ ## Workflow
451
+
452
+ 1. **Run Tests**
453
+ - Execute test suite
454
+ - Review failures
455
+ - Fix issues found
456
+
457
+ 2. **Verify Build**
458
+ - Run build command
459
+ - Check for errors
460
+ - Validate output
461
+
462
+ 3. **Check Lint**
463
+ - Run linter
464
+ - Fix violations
465
+ - Verify clean
466
+
467
+ 4. **Manual Verification**
468
+ - Test key functionality
469
+ - Verify requirements met
470
+ - Check edge cases
471
+
472
+ ## Success Criteria
473
+
474
+ - All tests passing
475
+ - Build succeeds
476
+ - No lint errors
477
+ - Requirements verified
478
478
  `,
479
479
  },
480
480
  {
@@ -490,41 +490,41 @@ Verify implementation through testing and validation.
490
490
  effort: 'low',
491
491
  allowedTools: ['Read', 'Edit', 'Write', 'Bash'],
492
492
  },
493
- content: `# 🦴 Fossil Phase
494
-
495
- Archive completed work and prepare for next task.
496
-
497
- ## Workflow
498
-
499
- 1. **Document Changes**
500
- - Update relevant documentation
501
- - Add code comments if needed
502
- - Update CHANGELOG if applicable
503
-
504
- 2. **Clean Session**
505
- - Clear completed todos
506
- - Resolve blockers
507
- - Archive session if significant
508
-
509
- 3. **Commit Work**
510
- - Stage all changes
511
- - Write descriptive commit message
512
- - Push if appropriate
513
-
514
- 4. **Prepare Next**
515
- - Clear session focus
516
- - Note follow-up items
517
- - Reset for next task
518
-
519
- ## Commit Message Template
520
-
521
- \`\`\`
522
- <type>(<scope>): <description>
523
-
524
- <body>
525
-
526
- Co-Authored-By: Claude <noreply@anthropic.com>
527
- \`\`\`
493
+ content: `# 🦴 Fossil Phase
494
+
495
+ Archive completed work and prepare for next task.
496
+
497
+ ## Workflow
498
+
499
+ 1. **Document Changes**
500
+ - Update relevant documentation
501
+ - Add code comments if needed
502
+ - Update CHANGELOG if applicable
503
+
504
+ 2. **Clean Session**
505
+ - Clear completed todos
506
+ - Resolve blockers
507
+ - Archive session if significant
508
+
509
+ 3. **Commit Work**
510
+ - Stage all changes
511
+ - Write descriptive commit message
512
+ - Push if appropriate
513
+
514
+ 4. **Prepare Next**
515
+ - Clear session focus
516
+ - Note follow-up items
517
+ - Reset for next task
518
+
519
+ ## Commit Message Template
520
+
521
+ \`\`\`
522
+ <type>(<scope>): <description>
523
+
524
+ <body>
525
+
526
+ Co-Authored-By: Claude <noreply@anthropic.com>
527
+ \`\`\`
528
528
  `,
529
529
  },
530
530
  ];
@@ -539,124 +539,124 @@ const UTILITY_SKILLS = [
539
539
  phase: 'Utility',
540
540
  emoji: '📋',
541
541
  frontmatter: {
542
- description: 'Load dino-spec handoff context from previous session',
542
+ description: 'Load dino handoff context from previous session',
543
543
  model: 'haiku',
544
544
  context: 'inherit',
545
545
  effort: 'low',
546
546
  allowedTools: ['Read', 'Bash', 'mcp__dino__dino_status', 'mcp__dino__dino_task_status'],
547
547
  },
548
- content: `# dino.handoff
549
-
550
- Load context from a previous session handoff.
551
-
552
- ## Usage
553
-
554
- Run \`/dino.handoff\` at the start of a new session to restore context from a previous session.
555
-
556
- ## What it loads
557
-
558
- - **Active plan** from \`.dino/plans/active.json\` - Current implementation plan
559
- - **Session state** from \`.dino/session.md\` - Focus, phase, blockers
560
- - **Task checkpoints** from \`.dino/checkpoints/\` - Progress context
561
- - **Handoff notes** from \`.dino/handoff/latest.md\` - Important notes for continuation
562
-
563
- ## Instructions
564
-
565
- 1. Read \`.dino/handoff/latest.md\` if it exists
566
- 2. Read \`.dino/session.md\` for current session state
567
- 3. Check \`.dino/plans/active.json\` for active plan
568
- 4. Use \`mcp__dino__dino_status\` to get session summary
569
- 5. Use \`mcp__dino__dino_task_status\` if tasks are in progress
570
- 6. Summarize the context for the user with clear next steps
571
-
572
- ## Example Output
573
-
574
- \`\`\`
575
- # Session Handoff
576
-
577
- **Last Session:** 2025-01-19 18:30
578
- **Plan:** dino-hud v2 (3/10 steps)
579
- **Phase:** iterating
580
- **Focus:** src/hud/render/
581
-
582
- ## Next Steps
583
- 1. Create context-health.ts renderer
584
- 2. Update layouts.ts with new format
585
- 3. Test the preview command
586
-
587
- ## Notes
588
- - Git branch and model display working
589
- - Need to test context health thresholds
590
- \`\`\`
548
+ content: `# dino.handoff
549
+
550
+ Load context from a previous session handoff.
551
+
552
+ ## Usage
553
+
554
+ Run \`/dino.handoff\` at the start of a new session to restore context from a previous session.
555
+
556
+ ## What it loads
557
+
558
+ - **Active plan** from \`.dino/plans/active.json\` - Current implementation plan
559
+ - **Session state** from \`.dino/session.md\` - Focus, phase, blockers
560
+ - **Task checkpoints** from \`.dino/checkpoints/\` - Progress context
561
+ - **Handoff notes** from \`.dino/handoff/latest.md\` - Important notes for continuation
562
+
563
+ ## Instructions
564
+
565
+ 1. Read \`.dino/handoff/latest.md\` if it exists
566
+ 2. Read \`.dino/session.md\` for current session state
567
+ 3. Check \`.dino/plans/active.json\` for active plan
568
+ 4. Use \`mcp__dino__dino_status\` to get session summary
569
+ 5. Use \`mcp__dino__dino_task_status\` if tasks are in progress
570
+ 6. Summarize the context for the user with clear next steps
571
+
572
+ ## Example Output
573
+
574
+ \`\`\`
575
+ # Session Handoff
576
+
577
+ **Last Session:** 2025-01-19 18:30
578
+ **Plan:** dino-hud v2 (3/10 steps)
579
+ **Phase:** iterating
580
+ **Focus:** src/hud/render/
581
+
582
+ ## Next Steps
583
+ 1. Create context-health.ts renderer
584
+ 2. Update layouts.ts with new format
585
+ 3. Test the preview command
586
+
587
+ ## Notes
588
+ - Git branch and model display working
589
+ - Need to test context health thresholds
590
+ \`\`\`
591
591
  `,
592
592
  },
593
593
  {
594
594
  name: 'init',
595
595
  filename: 'init.md',
596
- description: 'Update dino-spec files safely',
596
+ description: 'Update dino files safely',
597
597
  phase: 'Utility',
598
598
  emoji: '🔄',
599
599
  frontmatter: {
600
- description: 'Update dino-spec installation without losing session context',
600
+ description: 'Update dino installation without losing session context',
601
601
  model: 'haiku',
602
602
  context: 'inherit',
603
603
  effort: 'low',
604
604
  allowedTools: ['Read', 'Bash', 'Glob'],
605
605
  },
606
- content: `# 🔄 dino.init
607
-
608
- Update dino-spec installation without losing session context or customizations.
609
-
610
- ## When to Use
611
-
612
- - After updating dino-spec package (\`bun update dino-spec\`)
613
- - To add new skills/rules added in recent updates
614
- - To fix corrupted or missing dino-spec files
615
- - To remove deprecated files from old versions
616
-
617
- ## What It Does
618
-
619
- Runs \`dino init\` which performs a **smart update**:
620
-
621
- | File Type | Behavior |
622
- |-----------|----------|
623
- | session.md | **NEVER** regenerated (preserves context) |
624
- | CLAUDE.md | Only dino sections updated (user content preserved) |
625
- | Skills/Rules/Agents | New files added, unchanged files updated, customized files skipped |
626
- | Deprecated files | Automatically removed |
627
- | Hash registry | Updated to track file states |
628
-
629
- ## Workflow
630
-
631
- 1. Run the smart update command:
632
- \`\`\`bash
633
- dino init
634
- \`\`\`
635
-
636
- 2. Review output showing:
637
- - **Created**: New files that were added
638
- - **Updated**: Non-customized files that were refreshed
639
- - **Removed**: Deprecated files that were cleaned up
640
-
641
- 3. Note: Customized files (where you made changes) are automatically detected and skipped
642
-
643
- ## Full Reset (Rarely Needed)
644
-
645
- If you need a complete fresh install:
646
- \`\`\`bash
647
- dino init --force
648
- \`\`\`
649
-
650
- **Warning**: \`--force\` will:
651
- - Regenerate session.md (loses current session context)
652
- - Replace all files including customized ones
653
- - Reset to default state
654
-
655
- ## Notes
656
-
657
- - Smart update is safe to run repeatedly
658
- - Run after any dino-spec version upgrade
659
- - Check \`.dino/file-hashes.json\` to see tracked file states
606
+ content: `# 🔄 dino.init
607
+
608
+ Update dino installation without losing session context or customizations.
609
+
610
+ ## When to Use
611
+
612
+ - After updating dino package (\`bun update dino\`)
613
+ - To add new skills/rules added in recent updates
614
+ - To fix corrupted or missing dino files
615
+ - To remove deprecated files from old versions
616
+
617
+ ## What It Does
618
+
619
+ Runs \`dino init\` which performs a **smart update**:
620
+
621
+ | File Type | Behavior |
622
+ |-----------|----------|
623
+ | session.md | **NEVER** regenerated (preserves context) |
624
+ | CLAUDE.md | Only dino sections updated (user content preserved) |
625
+ | Skills/Rules/Agents | New files added, unchanged files updated, customized files skipped |
626
+ | Deprecated files | Automatically removed |
627
+ | Hash registry | Updated to track file states |
628
+
629
+ ## Workflow
630
+
631
+ 1. Run the smart update command:
632
+ \`\`\`bash
633
+ dino init
634
+ \`\`\`
635
+
636
+ 2. Review output showing:
637
+ - **Created**: New files that were added
638
+ - **Updated**: Non-customized files that were refreshed
639
+ - **Removed**: Deprecated files that were cleaned up
640
+
641
+ 3. Note: Customized files (where you made changes) are automatically detected and skipped
642
+
643
+ ## Full Reset (Rarely Needed)
644
+
645
+ If you need a complete fresh install:
646
+ \`\`\`bash
647
+ dino init --force
648
+ \`\`\`
649
+
650
+ **Warning**: \`--force\` will:
651
+ - Regenerate session.md (loses current session context)
652
+ - Replace all files including customized ones
653
+ - Reset to default state
654
+
655
+ ## Notes
656
+
657
+ - Smart update is safe to run repeatedly
658
+ - Run after any dino version upgrade
659
+ - Check \`.dino/file-hashes.json\` to see tracked file states
660
660
  `,
661
661
  },
662
662
  {
@@ -670,47 +670,59 @@ dino init --force
670
670
  model: 'sonnet',
671
671
  context: 'fork',
672
672
  effort: 'high',
673
- allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'Glob', 'Grep', 'Task', 'TaskCreate', 'TaskUpdate', 'TaskList', 'AskUserQuestion'],
673
+ allowedTools: [
674
+ 'Read',
675
+ 'Edit',
676
+ 'Write',
677
+ 'Bash',
678
+ 'Glob',
679
+ 'Grep',
680
+ 'Task',
681
+ 'TaskCreate',
682
+ 'TaskUpdate',
683
+ 'TaskList',
684
+ 'AskUserQuestion',
685
+ ],
674
686
  },
675
- content: `# 🔄 Ralph Loop
676
-
677
- Fresh-context iterative execution for large-scale multi-story work.
678
-
679
- ## Prerequisites
680
-
681
- Before starting Ralph Loop:
682
- 1. Run \`/dino.spec\` and achieve **90%+ confidence**
683
- 2. Have a PRD with stories in the required format
684
-
685
- ## Algorithm
686
-
687
- 1. **Initialize** - Parse PRD, create progress file, set max 10 iterations
688
- 2. **Iterate** - For each story:
689
- - Create git checkpoint
690
- - Build sub-agent context (~2K tokens)
691
- - Spawn fresh sub-agent via Task tool
692
- - Run test command
693
- - If pass: mark complete, commit
694
- - If fail: extract learnings, retry (max 2 per story)
695
- 3. **Complete** - Report final status
696
-
697
- ## Story Format
698
-
699
- \`\`\`markdown
700
- ### Story: {title}
701
- **ID:** {unique_id}
702
- **Files:** file1.ts, file2.ts
703
- **Acceptance Criteria:**
704
- - [ ] Criterion 1
705
- - [ ] Criterion 2
706
- **Test Command:** vitest run src/path
707
- \`\`\`
708
-
709
- ## Limits
710
-
711
- - Max 10 total iterations
712
- - Max 2 iterations per story (then manual review)
713
- - Fresh context each iteration (no history accumulation)
687
+ content: `# 🔄 Ralph Loop
688
+
689
+ Fresh-context iterative execution for large-scale multi-story work.
690
+
691
+ ## Prerequisites
692
+
693
+ Before starting Ralph Loop:
694
+ 1. Run \`/dino.spec\` and achieve **90%+ confidence**
695
+ 2. Have a PRD with stories in the required format
696
+
697
+ ## Algorithm
698
+
699
+ 1. **Initialize** - Parse PRD, create progress file, set max 10 iterations
700
+ 2. **Iterate** - For each story:
701
+ - Create git checkpoint
702
+ - Build sub-agent context (~2K tokens)
703
+ - Spawn fresh sub-agent via Task tool
704
+ - Run test command
705
+ - If pass: mark complete, commit
706
+ - If fail: extract learnings, retry (max 2 per story)
707
+ 3. **Complete** - Report final status
708
+
709
+ ## Story Format
710
+
711
+ \`\`\`markdown
712
+ ### Story: {title}
713
+ **ID:** {unique_id}
714
+ **Files:** file1.ts, file2.ts
715
+ **Acceptance Criteria:**
716
+ - [ ] Criterion 1
717
+ - [ ] Criterion 2
718
+ **Test Command:** vitest run src/path
719
+ \`\`\`
720
+
721
+ ## Limits
722
+
723
+ - Max 10 total iterations
724
+ - Max 2 iterations per story (then manual review)
725
+ - Fresh context each iteration (no history accumulation)
714
726
  `,
715
727
  },
716
728
  {
@@ -726,21 +738,21 @@ Before starting Ralph Loop:
726
738
  effort: 'low',
727
739
  allowedTools: ['Read', 'Bash'],
728
740
  },
729
- content: `# 📊 Status
730
-
731
- Quick check of current session state.
732
-
733
- ## Usage
734
-
735
- Run \`/dino.status\` to see:
736
- - Current focus area
737
- - Test/build/lint status
738
- - Active blockers
739
- - Recent changes
740
-
741
- ## Output
742
-
743
- Reads \`.dino/session.md\` and displays formatted status.
741
+ content: `# 📊 Status
742
+
743
+ Quick check of current session state.
744
+
745
+ ## Usage
746
+
747
+ Run \`/dino.status\` to see:
748
+ - Current focus area
749
+ - Test/build/lint status
750
+ - Active blockers
751
+ - Recent changes
752
+
753
+ ## Output
754
+
755
+ Reads \`.dino/session.md\` and displays formatted status.
744
756
  `,
745
757
  },
746
758
  {
@@ -756,57 +768,57 @@ Reads \`.dino/session.md\` and displays formatted status.
756
768
  effort: 'high',
757
769
  allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'AskUserQuestion', 'Glob', 'Grep'],
758
770
  },
759
- content: `# 🚀 Release
760
-
761
- Release workflow with intelligent documentation updates.
762
-
763
- ## Workflow
764
-
765
- 1. **Analyze Context for Doc Updates**
766
- - Check if README.md, ARCHITECTURE.md, CLAUDE.md are in context
767
- - Detect if changes warrant documentation updates:
768
- - New features → README.md
769
- - Architecture changes → ARCHITECTURE.md
770
- - Pattern/command changes → CLAUDE.md
771
- - If file not in context, only read if update is likely needed
772
-
773
- 2. **Confirm Doc Updates**
774
- - Use AskUserQuestion to confirm which docs to update
775
- - Options: Update all detected, Select specific, Skip doc updates
776
- - Show reasoning for each suggested update
777
-
778
- 3. **Update Documentation**
779
- - Apply confirmed documentation changes
780
- - Keep updates focused and minimal
781
-
782
- 4. **Execute Release**
783
- - Run build: \`node build.js\`
784
- - Run tests: \`vitest run\`
785
- - If tests pass, bump version in package.json
786
- - Publish to npm: \`npm publish\`
787
- - Verify publish succeeded
788
-
789
- 5. **Commit and Push**
790
- - Stage all changes
791
- - Create release commit: \`chore: release vX.Y.Z\`
792
- - Push to remote
793
-
794
- ## Doc Update Detection Rules
795
-
796
- | Change Type | Documentation |
797
- |-------------|---------------|
798
- | New feature/command | README.md |
799
- | API changes | README.md, ARCHITECTURE.md |
800
- | Architecture changes | ARCHITECTURE.md |
801
- | Pattern changes | CLAUDE.md |
802
- | Config changes | CLAUDE.md |
803
- | Bug fixes only | None |
804
-
805
- ## Context Efficiency
806
-
807
- - Uses \`context: inherit\` to leverage already-loaded files
808
- - Only reads files not in context when update is detected
809
- - Minimizes token usage by analyzing existing context first
771
+ content: `# 🚀 Release
772
+
773
+ Release workflow with intelligent documentation updates.
774
+
775
+ ## Workflow
776
+
777
+ 1. **Analyze Context for Doc Updates**
778
+ - Check if README.md, ARCHITECTURE.md, CLAUDE.md are in context
779
+ - Detect if changes warrant documentation updates:
780
+ - New features → README.md
781
+ - Architecture changes → ARCHITECTURE.md
782
+ - Pattern/command changes → CLAUDE.md
783
+ - If file not in context, only read if update is likely needed
784
+
785
+ 2. **Confirm Doc Updates**
786
+ - Use AskUserQuestion to confirm which docs to update
787
+ - Options: Update all detected, Select specific, Skip doc updates
788
+ - Show reasoning for each suggested update
789
+
790
+ 3. **Update Documentation**
791
+ - Apply confirmed documentation changes
792
+ - Keep updates focused and minimal
793
+
794
+ 4. **Execute Release**
795
+ - Run build: \`node build.js\`
796
+ - Run tests: \`vitest run\`
797
+ - If tests pass, bump version in package.json
798
+ - Publish to npm: \`npm publish\`
799
+ - Verify publish succeeded
800
+
801
+ 5. **Commit and Push**
802
+ - Stage all changes
803
+ - Create release commit: \`chore: release vX.Y.Z\`
804
+ - Push to remote
805
+
806
+ ## Doc Update Detection Rules
807
+
808
+ | Change Type | Documentation |
809
+ |-------------|---------------|
810
+ | New feature/command | README.md |
811
+ | API changes | README.md, ARCHITECTURE.md |
812
+ | Architecture changes | ARCHITECTURE.md |
813
+ | Pattern changes | CLAUDE.md |
814
+ | Config changes | CLAUDE.md |
815
+ | Bug fixes only | None |
816
+
817
+ ## Context Efficiency
818
+
819
+ - Uses \`context: inherit\` to leverage already-loaded files
820
+ - Only reads files not in context when update is detected
821
+ - Minimizes token usage by analyzing existing context first
810
822
  `,
811
823
  },
812
824
  {
@@ -822,97 +834,97 @@ Release workflow with intelligent documentation updates.
822
834
  effort: 'low',
823
835
  allowedTools: ['Read', 'Glob', 'Write', 'Bash'],
824
836
  },
825
- content: `# Roadmap Management
826
-
827
- Efficiently manage roadmap lifecycle: read, update, and auto-cleanup.
828
-
829
- ## Trigger Detection
830
-
831
- This skill auto-triggers when user prompts contain:
832
- - "continue roadmap", "roadmap progress", "resume roadmap"
833
- - "next phase", "what's next on roadmap"
834
- - "roadmap status", "check roadmap"
835
-
836
- ## Workflow
837
-
838
- ### 1. Load Active Roadmaps
839
-
840
- Read all files from \`.dino/roadmaps/*.md\`:
841
-
842
- \`\`\`bash
843
- ls .dino/roadmaps/*.md 2>/dev/null
844
- \`\`\`
845
-
846
- For each roadmap found, read and parse:
847
- - Title (first H1)
848
- - Phases with status (✅ = done, ⏳ = pending)
849
- - Current phase (first ⏳ phase)
850
-
851
- ### 2. Display Summary
852
-
853
- Output format:
854
- \`\`\`
855
- ## Active Roadmaps
856
-
857
- ### {roadmap-name}
858
- Progress: {completed}/{total} phases ({percentage}%)
859
- Current: Phase {N}: {phase-name}
860
- Next tasks:
861
- - [ ] Task 1
862
- - [ ] Task 2
863
- \`\`\`
864
-
865
- ### 3. On Completion
866
-
867
- When user completes phase work:
868
-
869
- 1. **Update roadmap file** - Change \`⏳\` to \`✅\` for completed phase
870
- 2. **Check if all complete** - If all phases are \`✅\`:
871
- - Move to \`.dino/archives/{roadmap-name}-complete.md\`
872
- - Add completion timestamp at top
873
- - Remove from active roadmaps
874
-
875
- ### 4. Auto-Archive Logic
876
-
877
- A roadmap is complete when:
878
- - All \`### Phase\` sections contain \`✅\` in their header
879
- - OR all \`- [ ]\` items are \`- [x]\`
880
-
881
- Archive command:
882
- \`\`\`bash
883
- mkdir -p .dino/archives
884
- mv .dino/roadmaps/{name}.md .dino/archives/{name}-complete.md
885
- \`\`\`
886
-
887
- ## Output Minimization
888
-
889
- Keep output minimal for token efficiency:
890
- - Only show current phase details
891
- - Collapse completed phases to single line
892
- - Don't repeat full roadmap content
893
-
894
- ## Integration
895
-
896
- Works with:
897
- - \`/dino.hunt\` - Implementation of roadmap tasks
898
- - \`/dino.aging\` - Verification before phase completion
899
- - \`/dino.fossil\` - Archives completed roadmaps
900
-
901
- ## Example Session
902
-
903
- User: "continue roadmap"
904
- 1. Read \`.dino/roadmaps/*.md\`
905
- 2. Output summary of active roadmaps
906
- 3. Show current phase tasks
907
- 4. User completes tasks
908
- 5. Update phase status
909
- 6. If all done, archive roadmap
910
-
911
- ## Notes
912
-
913
- - Roadmaps live in \`.dino/roadmaps/\` (active) or \`.dino/archives/\` (complete)
914
- - Use \`⏳\` for pending, \`✅\` for complete in phase headers
915
- - Archived roadmaps include completion date for reference
837
+ content: `# Roadmap Management
838
+
839
+ Efficiently manage roadmap lifecycle: read, update, and auto-cleanup.
840
+
841
+ ## Trigger Detection
842
+
843
+ This skill auto-triggers when user prompts contain:
844
+ - "continue roadmap", "roadmap progress", "resume roadmap"
845
+ - "next phase", "what's next on roadmap"
846
+ - "roadmap status", "check roadmap"
847
+
848
+ ## Workflow
849
+
850
+ ### 1. Load Active Roadmaps
851
+
852
+ Read all files from \`.dino/roadmaps/*.md\`:
853
+
854
+ \`\`\`bash
855
+ ls .dino/roadmaps/*.md 2>/dev/null
856
+ \`\`\`
857
+
858
+ For each roadmap found, read and parse:
859
+ - Title (first H1)
860
+ - Phases with status (✅ = done, ⏳ = pending)
861
+ - Current phase (first ⏳ phase)
862
+
863
+ ### 2. Display Summary
864
+
865
+ Output format:
866
+ \`\`\`
867
+ ## Active Roadmaps
868
+
869
+ ### {roadmap-name}
870
+ Progress: {completed}/{total} phases ({percentage}%)
871
+ Current: Phase {N}: {phase-name}
872
+ Next tasks:
873
+ - [ ] Task 1
874
+ - [ ] Task 2
875
+ \`\`\`
876
+
877
+ ### 3. On Completion
878
+
879
+ When user completes phase work:
880
+
881
+ 1. **Update roadmap file** - Change \`⏳\` to \`✅\` for completed phase
882
+ 2. **Check if all complete** - If all phases are \`✅\`:
883
+ - Move to \`.dino/archives/{roadmap-name}-complete.md\`
884
+ - Add completion timestamp at top
885
+ - Remove from active roadmaps
886
+
887
+ ### 4. Auto-Archive Logic
888
+
889
+ A roadmap is complete when:
890
+ - All \`### Phase\` sections contain \`✅\` in their header
891
+ - OR all \`- [ ]\` items are \`- [x]\`
892
+
893
+ Archive command:
894
+ \`\`\`bash
895
+ mkdir -p .dino/archives
896
+ mv .dino/roadmaps/{name}.md .dino/archives/{name}-complete.md
897
+ \`\`\`
898
+
899
+ ## Output Minimization
900
+
901
+ Keep output minimal for token efficiency:
902
+ - Only show current phase details
903
+ - Collapse completed phases to single line
904
+ - Don't repeat full roadmap content
905
+
906
+ ## Integration
907
+
908
+ Works with:
909
+ - \`/dino.hunt\` - Implementation of roadmap tasks
910
+ - \`/dino.aging\` - Verification before phase completion
911
+ - \`/dino.fossil\` - Archives completed roadmaps
912
+
913
+ ## Example Session
914
+
915
+ User: "continue roadmap"
916
+ 1. Read \`.dino/roadmaps/*.md\`
917
+ 2. Output summary of active roadmaps
918
+ 3. Show current phase tasks
919
+ 4. User completes tasks
920
+ 5. Update phase status
921
+ 6. If all done, archive roadmap
922
+
923
+ ## Notes
924
+
925
+ - Roadmaps live in \`.dino/roadmaps/\` (active) or \`.dino/archives/\` (complete)
926
+ - Use \`⏳\` for pending, \`✅\` for complete in phase headers
927
+ - Archived roadmaps include completion date for reference
916
928
  `,
917
929
  },
918
930
  {
@@ -929,96 +941,96 @@ User: "continue roadmap"
929
941
  allowedTools: ['Read', 'Grep', 'Glob', 'AskUserQuestion'],
930
942
  disallowedTools: ['Edit', 'Write', 'Bash', 'Task'],
931
943
  },
932
- content: `# 🔒 Audit Phase
933
-
934
- **Strict gatekeeper that validates specifications before implementation.**
935
-
936
- This skill is the AUDITOR agent in the three-agent Ralph Gate system. It can also be used standalone to validate any specification.
937
-
938
- ## Role
939
-
940
- You are an EXTREMELY STRICT auditor. Your job is to find problems, not approve things. Implementation should be BLOCKED by default unless everything is perfect.
941
-
942
- ## Scoring System
943
-
944
- ### 1. Specification Completeness (25 points)
945
-
946
- | Criterion | Points | Check |
947
- |-----------|--------|-------|
948
- | Clear problem statement | 5 | What problem are we solving? |
949
- | Explicit success criteria | 5 | How do we know when done? |
950
- | Defined scope boundaries | 5 | What is NOT included? |
951
- | Edge cases identified | 5 | What could go wrong? |
952
- | Error handling specified | 5 | How to handle failures? |
953
-
954
- ### 2. Ambiguity Score (MUST BE ZERO)
955
-
956
- Check for these ambiguity types:
957
-
958
- | Type | Example | Fix Required |
959
- |------|---------|--------------|
960
- | Vague verbs | "improve", "enhance", "better" | Specify measurable outcome |
961
- | Undefined terms | "fast", "clean", "modern" | Define with numbers/criteria |
962
- | Implicit assumptions | "the usual way" | Make explicit |
963
- | Conflicting requirements | "fast AND thorough" | Prioritize or resolve |
964
- | Missing details | "handle errors" | Specify which errors, how |
965
-
966
- **Any ambiguity = AUTOMATIC REJECTION**
967
-
968
- ### 3. PRD Quality (25 points) - For Ralph-eligible tasks
969
-
970
- | Criterion | Points | Check |
971
- |-----------|--------|-------|
972
- | Stories in correct format | 5 | Markdown headers, fields |
973
- | Each story has unique ID | 5 | story-1, story-2, etc. |
974
- | Each story has file list | 5 | Explicit file paths |
975
- | Each story has acceptance criteria | 5 | Checkbox list |
976
- | Each story has test command | 5 | Runnable command |
977
-
978
- ### 4. Risk Mitigation (25 points)
979
-
980
- | Criterion | Points | Check |
981
- |-----------|--------|-------|
982
- | Security risks addressed | 5 | Input validation, auth, etc. |
983
- | Performance risks addressed | 5 | Scale, complexity, etc. |
984
- | Breaking changes identified | 5 | API changes, migrations |
985
- | Rollback plan exists | 5 | How to undo if needed |
986
- | Dependencies validated | 5 | External deps checked |
987
-
988
- ### 5. Research Completeness (25 points) - When research provided
989
-
990
- | Criterion | Points | Check |
991
- |-----------|--------|-------|
992
- | All patterns documented | 5 | Similar code found |
993
- | Architecture understood | 5 | Fits existing structure |
994
- | Integration points mapped | 5 | Connections identified |
995
- | Test strategy defined | 5 | What tests to add/modify |
996
- | File impact complete | 5 | All affected files listed |
997
-
998
- ## Pass/Fail Criteria
999
-
1000
- | Condition | Result |
1001
- |-----------|--------|
1002
- | Score >= 95 AND ambiguity == 0 | GATE: APPROVED |
1003
- | Score < 95 OR ambiguity > 0 | GATE: REJECTED |
1004
-
1005
- ## Auditor Mindset
1006
-
1007
- - Assume the specification is INCOMPLETE until proven otherwise
1008
- - Look for what's MISSING, not just what's wrong
1009
- - Ask "what could go wrong?" for every part
1010
- - Prefer rejection over approval when uncertain
1011
- - Better to ask one more question than to approve prematurely
1012
-
1013
- ## Standalone Usage
1014
-
1015
- Can be invoked directly: \`/dino.audit\`
1016
-
1017
- Use when:
1018
- - Validating a specification before implementation
1019
- - Reviewing a PR description
1020
- - Checking requirements completeness
1021
- - Gate-checking before major changes
944
+ content: `# 🔒 Audit Phase
945
+
946
+ **Strict gatekeeper that validates specifications before implementation.**
947
+
948
+ This skill is the AUDITOR agent in the three-agent Ralph Gate system. It can also be used standalone to validate any specification.
949
+
950
+ ## Role
951
+
952
+ You are an EXTREMELY STRICT auditor. Your job is to find problems, not approve things. Implementation should be BLOCKED by default unless everything is perfect.
953
+
954
+ ## Scoring System
955
+
956
+ ### 1. Specification Completeness (25 points)
957
+
958
+ | Criterion | Points | Check |
959
+ |-----------|--------|-------|
960
+ | Clear problem statement | 5 | What problem are we solving? |
961
+ | Explicit success criteria | 5 | How do we know when done? |
962
+ | Defined scope boundaries | 5 | What is NOT included? |
963
+ | Edge cases identified | 5 | What could go wrong? |
964
+ | Error handling specified | 5 | How to handle failures? |
965
+
966
+ ### 2. Ambiguity Score (MUST BE ZERO)
967
+
968
+ Check for these ambiguity types:
969
+
970
+ | Type | Example | Fix Required |
971
+ |------|---------|--------------|
972
+ | Vague verbs | "improve", "enhance", "better" | Specify measurable outcome |
973
+ | Undefined terms | "fast", "clean", "modern" | Define with numbers/criteria |
974
+ | Implicit assumptions | "the usual way" | Make explicit |
975
+ | Conflicting requirements | "fast AND thorough" | Prioritize or resolve |
976
+ | Missing details | "handle errors" | Specify which errors, how |
977
+
978
+ **Any ambiguity = AUTOMATIC REJECTION**
979
+
980
+ ### 3. PRD Quality (25 points) - For Ralph-eligible tasks
981
+
982
+ | Criterion | Points | Check |
983
+ |-----------|--------|-------|
984
+ | Stories in correct format | 5 | Markdown headers, fields |
985
+ | Each story has unique ID | 5 | story-1, story-2, etc. |
986
+ | Each story has file list | 5 | Explicit file paths |
987
+ | Each story has acceptance criteria | 5 | Checkbox list |
988
+ | Each story has test command | 5 | Runnable command |
989
+
990
+ ### 4. Risk Mitigation (25 points)
991
+
992
+ | Criterion | Points | Check |
993
+ |-----------|--------|-------|
994
+ | Security risks addressed | 5 | Input validation, auth, etc. |
995
+ | Performance risks addressed | 5 | Scale, complexity, etc. |
996
+ | Breaking changes identified | 5 | API changes, migrations |
997
+ | Rollback plan exists | 5 | How to undo if needed |
998
+ | Dependencies validated | 5 | External deps checked |
999
+
1000
+ ### 5. Research Completeness (25 points) - When research provided
1001
+
1002
+ | Criterion | Points | Check |
1003
+ |-----------|--------|-------|
1004
+ | All patterns documented | 5 | Similar code found |
1005
+ | Architecture understood | 5 | Fits existing structure |
1006
+ | Integration points mapped | 5 | Connections identified |
1007
+ | Test strategy defined | 5 | What tests to add/modify |
1008
+ | File impact complete | 5 | All affected files listed |
1009
+
1010
+ ## Pass/Fail Criteria
1011
+
1012
+ | Condition | Result |
1013
+ |-----------|--------|
1014
+ | Score >= 95 AND ambiguity == 0 | GATE: APPROVED |
1015
+ | Score < 95 OR ambiguity > 0 | GATE: REJECTED |
1016
+
1017
+ ## Auditor Mindset
1018
+
1019
+ - Assume the specification is INCOMPLETE until proven otherwise
1020
+ - Look for what's MISSING, not just what's wrong
1021
+ - Ask "what could go wrong?" for every part
1022
+ - Prefer rejection over approval when uncertain
1023
+ - Better to ask one more question than to approve prematurely
1024
+
1025
+ ## Standalone Usage
1026
+
1027
+ Can be invoked directly: \`/dino.audit\`
1028
+
1029
+ Use when:
1030
+ - Validating a specification before implementation
1031
+ - Reviewing a PR description
1032
+ - Checking requirements completeness
1033
+ - Gate-checking before major changes
1022
1034
  `,
1023
1035
  },
1024
1036
  {
@@ -1032,62 +1044,71 @@ Use when:
1032
1044
  model: 'opus',
1033
1045
  context: 'fork',
1034
1046
  effort: 'high',
1035
- allowedTools: ['Read', 'Grep', 'Glob', 'Task', 'Write', 'AskUserQuestion', 'mcp__dino__dino_status', 'mcp__dino__dino_focus_set'],
1047
+ allowedTools: [
1048
+ 'Read',
1049
+ 'Grep',
1050
+ 'Glob',
1051
+ 'Task',
1052
+ 'Write',
1053
+ 'AskUserQuestion',
1054
+ 'mcp__dino__dino_status',
1055
+ 'mcp__dino__dino_focus_set',
1056
+ ],
1036
1057
  },
1037
- content: `# 🦖 Ralph Gate - EXECUTE NOW
1038
-
1039
- **YOU MUST EXECUTE THE THREE-AGENT WORKFLOW BELOW. DO NOT JUST DESCRIBE IT.**
1040
-
1041
- ## STEP 1: CREATE OUTPUT DIRECTORY
1042
-
1043
- Write to \`.dino/ralph-gate/status.md\` with: "# Ralph Gate Status\\n\\nStatus: PHASE 1 - RESEARCH"
1044
-
1045
- ## STEP 2: SPAWN SCOUT AGENT (MANDATORY)
1046
-
1047
- **USE THE TASK TOOL NOW** with these parameters:
1048
- - subagent_type: "Explore"
1049
- - description: "Ralph Gate Scout - Deep Research"
1050
- - prompt: Include the user request, then require: finding all related code with Grep/Glob, mapping dependencies, assessing risks, creating file impact list. Output must be a RESEARCH REPORT with patterns, risk matrix, file list, and draft PRD with stories.
1051
-
1052
- **WAIT FOR SCOUT TO COMPLETE.**
1053
-
1054
- ## STEP 3: SAVE SCOUT OUTPUT
1055
-
1056
- Write scout output to \`.dino/ralph-gate/research-report.md\`
1057
-
1058
- ## STEP 4: SPAWN AUDITOR AGENT (MANDATORY)
1059
-
1060
- **USE THE TASK TOOL NOW** with:
1061
- - subagent_type: "Plan"
1062
- - model: "opus"
1063
- - description: "Ralph Gate Auditor - Strict Validation"
1064
- - prompt: Include user request + research report. Auditor scores: Specification (25pts), Ambiguity (must be 0), PRD Quality (25pts), Risk (25pts), Research (25pts). Output "GATE: APPROVED" if score >= 95 AND ambiguity == 0, else "GATE: REJECTED" with blocking issues.
1065
-
1066
- **WAIT FOR AUDITOR TO COMPLETE.**
1067
-
1068
- ## STEP 5: CHECK GATE RESULT
1069
-
1070
- - IF "GATE: APPROVED" → Continue to Step 6
1071
- - IF "GATE: REJECTED" → Use AskUserQuestion to clarify issues, then re-run Step 4 (max 3 cycles)
1072
-
1073
- ## STEP 6: SAVE AUDIT REPORT
1074
-
1075
- Write auditor output to \`.dino/ralph-gate/audit-report.md\`
1076
-
1077
- ## STEP 7: SPAWN RALPH EXECUTOR (ONLY IF APPROVED)
1078
-
1079
- **USE THE TASK TOOL NOW** with:
1080
- - subagent_type: "general-purpose"
1081
- - description: "Ralph Loop Executor"
1082
- - prompt: Include gate status and validated PRD. For each story: git checkpoint, implement changes, run test command, commit if pass or retry (max 2). Update \`.dino/ralph-progress.md\` after each story.
1083
-
1084
- ## STEP 8: REPORT RESULTS
1085
-
1086
- Save final status to \`.dino/ralph-gate/final-status.md\` and report: stories completed, stories failed, iterations used, files modified.
1087
-
1088
- ---
1089
-
1090
- **START NOW: Execute Step 1, then Step 2, etc. Do not summarize.**
1058
+ content: `# 🦖 Ralph Gate - EXECUTE NOW
1059
+
1060
+ **YOU MUST EXECUTE THE THREE-AGENT WORKFLOW BELOW. DO NOT JUST DESCRIBE IT.**
1061
+
1062
+ ## STEP 1: CREATE OUTPUT DIRECTORY
1063
+
1064
+ Write to \`.dino/ralph-gate/status.md\` with: "# Ralph Gate Status\\n\\nStatus: PHASE 1 - RESEARCH"
1065
+
1066
+ ## STEP 2: SPAWN SCOUT AGENT (MANDATORY)
1067
+
1068
+ **USE THE TASK TOOL NOW** with these parameters:
1069
+ - subagent_type: "Explore"
1070
+ - description: "Ralph Gate Scout - Deep Research"
1071
+ - prompt: Include the user request, then require: finding all related code with Grep/Glob, mapping dependencies, assessing risks, creating file impact list. Output must be a RESEARCH REPORT with patterns, risk matrix, file list, and draft PRD with stories.
1072
+
1073
+ **WAIT FOR SCOUT TO COMPLETE.**
1074
+
1075
+ ## STEP 3: SAVE SCOUT OUTPUT
1076
+
1077
+ Write scout output to \`.dino/ralph-gate/research-report.md\`
1078
+
1079
+ ## STEP 4: SPAWN AUDITOR AGENT (MANDATORY)
1080
+
1081
+ **USE THE TASK TOOL NOW** with:
1082
+ - subagent_type: "Plan"
1083
+ - model: "opus"
1084
+ - description: "Ralph Gate Auditor - Strict Validation"
1085
+ - prompt: Include user request + research report. Auditor scores: Specification (25pts), Ambiguity (must be 0), PRD Quality (25pts), Risk (25pts), Research (25pts). Output "GATE: APPROVED" if score >= 95 AND ambiguity == 0, else "GATE: REJECTED" with blocking issues.
1086
+
1087
+ **WAIT FOR AUDITOR TO COMPLETE.**
1088
+
1089
+ ## STEP 5: CHECK GATE RESULT
1090
+
1091
+ - IF "GATE: APPROVED" → Continue to Step 6
1092
+ - IF "GATE: REJECTED" → Use AskUserQuestion to clarify issues, then re-run Step 4 (max 3 cycles)
1093
+
1094
+ ## STEP 6: SAVE AUDIT REPORT
1095
+
1096
+ Write auditor output to \`.dino/ralph-gate/audit-report.md\`
1097
+
1098
+ ## STEP 7: SPAWN RALPH EXECUTOR (ONLY IF APPROVED)
1099
+
1100
+ **USE THE TASK TOOL NOW** with:
1101
+ - subagent_type: "general-purpose"
1102
+ - description: "Ralph Loop Executor"
1103
+ - prompt: Include gate status and validated PRD. For each story: git checkpoint, implement changes, run test command, commit if pass or retry (max 2). Update \`.dino/ralph-progress.md\` after each story.
1104
+
1105
+ ## STEP 8: REPORT RESULTS
1106
+
1107
+ Save final status to \`.dino/ralph-gate/final-status.md\` and report: stories completed, stories failed, iterations used, files modified.
1108
+
1109
+ ---
1110
+
1111
+ **START NOW: Execute Step 1, then Step 2, etc. Do not summarize.**
1091
1112
  `,
1092
1113
  },
1093
1114
  ];
@@ -1105,138 +1126,147 @@ const RESEARCH_SKILL = {
1105
1126
  model: 'sonnet',
1106
1127
  context: 'fork',
1107
1128
  effort: 'medium',
1108
- allowedTools: ['Read', 'Grep', 'Glob', 'Task', 'WebSearch', 'WebFetch', 'Write', 'AskUserQuestion'],
1129
+ allowedTools: [
1130
+ 'Read',
1131
+ 'Grep',
1132
+ 'Glob',
1133
+ 'Task',
1134
+ 'WebSearch',
1135
+ 'WebFetch',
1136
+ 'Write',
1137
+ 'AskUserQuestion',
1138
+ ],
1109
1139
  disallowedTools: ['Edit', 'Bash'],
1110
1140
  },
1111
- content: `# Research Skill
1112
-
1113
- Research technical topics and save findings for future reuse. Avoids redundant web fetches by checking saved research first.
1114
-
1115
- ## Usage
1116
-
1117
- \`\`\`
1118
- /research <topic> # Research and save
1119
- /research list # List saved research
1120
- /research recall <topic> # Recall saved research without re-fetching
1121
- \`\`\`
1122
-
1123
- **Examples:**
1124
- - \`/research context engineering\`
1125
- - \`/research react hooks best practices\`
1126
- - \`/research recall typescript generics\`
1127
-
1128
- ## Workflow
1129
-
1130
- ### 1. Check Saved Research First (CRITICAL)
1131
-
1132
- Before ANY web search, check for existing research:
1133
-
1134
- \`\`\`
1135
- .dino/research/<topic-slug>.md
1136
- .claude/docs/<topic>.md
1137
- \`\`\`
1138
-
1139
- If found and recent (< 30 days), present it directly without web fetching.
1140
-
1141
- ### 2. Web Research (only if needed)
1142
-
1143
- Only fetch from web when:
1144
- - No saved research exists
1145
- - Saved research is stale (> 30 days)
1146
- - User explicitly requests fresh research with \`--fresh\`
1147
-
1148
- When researching:
1149
- - Search authoritative sources
1150
- - Cross-reference multiple sources
1151
- - Extract actionable information
1152
-
1153
- ### 3. Save Research (ALWAYS)
1154
-
1155
- Save ALL research to \`.dino/research/<topic-slug>.md\` in ready-to-use format:
1156
-
1157
- \`\`\`markdown
1158
- ---
1159
- topic: <Full Topic Name>
1160
- slug: <topic-slug>
1161
- created: <ISO date>
1162
- updated: <ISO date>
1163
- sources:
1164
- - url: <source url>
1165
- title: <source title>
1166
- accessed: <ISO date>
1167
- tags: [<tag1>, <tag2>]
1168
- ---
1169
-
1170
- # <Topic Name>
1171
-
1172
- ## TL;DR
1173
- <2-3 sentence summary for quick reference>
1174
-
1175
- ## Key Facts
1176
- - Fact 1
1177
- - Fact 2
1178
- - Fact 3
1179
-
1180
- ## Details
1181
- <Detailed explanation with examples>
1182
-
1183
- ## Code Examples (if applicable)
1184
- \\\`\\\`\\\`code
1185
- <ready-to-use code snippets>
1186
- \\\`\\\`\\\`
1187
-
1188
- ## Common Pitfalls
1189
- - Pitfall 1
1190
- - Pitfall 2
1191
-
1192
- ## See Also
1193
- - Related topic 1
1194
- - Related topic 2
1195
- \`\`\`
1196
-
1197
- ### 4. Present to User
1198
-
1199
- After saving, present a summary and note where it's saved.
1200
-
1201
- ## File Naming
1202
-
1203
- Convert topic to slug: lowercase, replace spaces with hyphens, remove special chars.
1204
-
1205
- Examples:
1206
- - "Context Engineering" → \`context-engineering.md\`
1207
- - "React Hooks Best Practices" → \`react-hooks-best-practices.md\`
1208
- - "TypeScript Generics" → \`typescript-generics.md\`
1209
-
1210
- ## Commands
1211
-
1212
- ### \`/research <topic>\`
1213
- 1. Check \`.dino/research/\` for existing research
1214
- 2. If found and fresh: present it
1215
- 3. If not found or stale: research, save, present
1216
-
1217
- ### \`/research list\`
1218
- List all saved research files with topics and dates.
1219
-
1220
- ### \`/research recall <topic>\`
1221
- Load and present saved research without any web fetching.
1222
- Returns error if no saved research exists.
1223
-
1224
- ### \`/research <topic> --fresh\`
1225
- Force fresh research even if saved version exists.
1226
- Updates the saved file with new findings.
1227
-
1228
- ## Benefits
1229
-
1230
- - **No redundant fetches**: Same topic researched once, reused many times
1231
- - **Git tracked**: Research persists across sessions and is shared with team
1232
- - **Ready-to-use format**: Code examples, key facts, TL;DR for quick reference
1233
- - **Source tracking**: Know where information came from and when
1234
-
1235
- ## Notes
1236
-
1237
- - Research is saved to \`.dino/research/\` which is now git-tracked
1238
- - High-value permanent docs can also go to \`.claude/docs/\`
1239
- - Fork context ensures clean separation from main conversation
1141
+ content: `# Research Skill
1142
+
1143
+ Research technical topics and save findings for future reuse. Avoids redundant web fetches by checking saved research first.
1144
+
1145
+ ## Usage
1146
+
1147
+ \`\`\`
1148
+ /research <topic> # Research and save
1149
+ /research list # List saved research
1150
+ /research recall <topic> # Recall saved research without re-fetching
1151
+ \`\`\`
1152
+
1153
+ **Examples:**
1154
+ - \`/research context engineering\`
1155
+ - \`/research react hooks best practices\`
1156
+ - \`/research recall typescript generics\`
1157
+
1158
+ ## Workflow
1159
+
1160
+ ### 1. Check Saved Research First (CRITICAL)
1161
+
1162
+ Before ANY web search, check for existing research:
1163
+
1164
+ \`\`\`
1165
+ .dino/research/<topic-slug>.md
1166
+ .claude/docs/<topic>.md
1167
+ \`\`\`
1168
+
1169
+ If found and recent (< 30 days), present it directly without web fetching.
1170
+
1171
+ ### 2. Web Research (only if needed)
1172
+
1173
+ Only fetch from web when:
1174
+ - No saved research exists
1175
+ - Saved research is stale (> 30 days)
1176
+ - User explicitly requests fresh research with \`--fresh\`
1177
+
1178
+ When researching:
1179
+ - Search authoritative sources
1180
+ - Cross-reference multiple sources
1181
+ - Extract actionable information
1182
+
1183
+ ### 3. Save Research (ALWAYS)
1184
+
1185
+ Save ALL research to \`.dino/research/<topic-slug>.md\` in ready-to-use format:
1186
+
1187
+ \`\`\`markdown
1188
+ ---
1189
+ topic: <Full Topic Name>
1190
+ slug: <topic-slug>
1191
+ created: <ISO date>
1192
+ updated: <ISO date>
1193
+ sources:
1194
+ - url: <source url>
1195
+ title: <source title>
1196
+ accessed: <ISO date>
1197
+ tags: [<tag1>, <tag2>]
1198
+ ---
1199
+
1200
+ # <Topic Name>
1201
+
1202
+ ## TL;DR
1203
+ <2-3 sentence summary for quick reference>
1204
+
1205
+ ## Key Facts
1206
+ - Fact 1
1207
+ - Fact 2
1208
+ - Fact 3
1209
+
1210
+ ## Details
1211
+ <Detailed explanation with examples>
1212
+
1213
+ ## Code Examples (if applicable)
1214
+ \\\`\\\`\\\`code
1215
+ <ready-to-use code snippets>
1216
+ \\\`\\\`\\\`
1217
+
1218
+ ## Common Pitfalls
1219
+ - Pitfall 1
1220
+ - Pitfall 2
1221
+
1222
+ ## See Also
1223
+ - Related topic 1
1224
+ - Related topic 2
1225
+ \`\`\`
1226
+
1227
+ ### 4. Present to User
1228
+
1229
+ After saving, present a summary and note where it's saved.
1230
+
1231
+ ## File Naming
1232
+
1233
+ Convert topic to slug: lowercase, replace spaces with hyphens, remove special chars.
1234
+
1235
+ Examples:
1236
+ - "Context Engineering" → \`context-engineering.md\`
1237
+ - "React Hooks Best Practices" → \`react-hooks-best-practices.md\`
1238
+ - "TypeScript Generics" → \`typescript-generics.md\`
1239
+
1240
+ ## Commands
1241
+
1242
+ ### \`/research <topic>\`
1243
+ 1. Check \`.dino/research/\` for existing research
1244
+ 2. If found and fresh: present it
1245
+ 3. If not found or stale: research, save, present
1246
+
1247
+ ### \`/research list\`
1248
+ List all saved research files with topics and dates.
1249
+
1250
+ ### \`/research recall <topic>\`
1251
+ Load and present saved research without any web fetching.
1252
+ Returns error if no saved research exists.
1253
+
1254
+ ### \`/research <topic> --fresh\`
1255
+ Force fresh research even if saved version exists.
1256
+ Updates the saved file with new findings.
1257
+
1258
+ ## Benefits
1259
+
1260
+ - **No redundant fetches**: Same topic researched once, reused many times
1261
+ - **Git tracked**: Research persists across sessions and is shared with team
1262
+ - **Ready-to-use format**: Code examples, key facts, TL;DR for quick reference
1263
+ - **Source tracking**: Know where information came from and when
1264
+
1265
+ ## Notes
1266
+
1267
+ - Research is saved to \`.dino/research/\` which is now git-tracked
1268
+ - High-value permanent docs can also go to \`.claude/docs/\`
1269
+ - Fork context ensures clean separation from main conversation
1240
1270
  `,
1241
1271
  };
1242
1272
  /**
@@ -1379,39 +1409,39 @@ function generateMainSkill() {
1379
1409
  model: 'sonnet',
1380
1410
  context: 'inherit',
1381
1411
  });
1382
- return `${frontmatter}
1383
-
1384
- # 🦖 Dino-Spec Skills (v${VERSION})
1385
-
1386
- Workflow phase skills for structured development.
1387
-
1388
- ## Phase Skills
1389
-
1390
- | Skill | Phase | Description |
1391
- |-------|-------|-------------|
1392
- | \`/dino.spec\` | Specification | Analyze prompts, clarify requirements |
1393
- | \`/dino.discover\` | Discovery | Capture requirements |
1394
- | \`/dino.scout\` | Research | Explore options |
1395
- | \`/dino.sniff\` | Clarification | Resolve ambiguities |
1396
- | \`/dino.nest\` | Planning | Design approach |
1397
- | \`/dino.hatch\` | Breakdown | Create tasks |
1398
- | \`/dino.hunt\` | Implementation | Execute tasks |
1399
- | \`/dino.aging\` | Verification | Run tests |
1400
- | \`/dino.fossil\` | Completion | Archive work |
1401
-
1402
- ## Utility Skills
1403
-
1404
- | Skill | Description |
1405
- |-------|-------------|
1406
- | \`/dino.init\` | Update dino-spec files safely |
1407
- | \`/dino.ralph\` | Fresh-context iterative execution |
1408
- | \`/dino.status\` | Check session state (--next, --focus, --tips) |
1409
- | \`/dino.release\` | Release workflow with doc updates |
1410
-
1411
- ## Usage
1412
-
1413
- Invoke any skill by typing its command (e.g., \`/dino.discover\`).
1414
- Skills automatically use session context from \`.dino/session.md\`.
1412
+ return `${frontmatter}
1413
+
1414
+ # 🦖 Dino-Spec Skills (v${VERSION})
1415
+
1416
+ Workflow phase skills for structured development.
1417
+
1418
+ ## Phase Skills
1419
+
1420
+ | Skill | Phase | Description |
1421
+ |-------|-------|-------------|
1422
+ | \`/dino.spec\` | Specification | Analyze prompts, clarify requirements |
1423
+ | \`/dino.discover\` | Discovery | Capture requirements |
1424
+ | \`/dino.scout\` | Research | Explore options |
1425
+ | \`/dino.sniff\` | Clarification | Resolve ambiguities |
1426
+ | \`/dino.nest\` | Planning | Design approach |
1427
+ | \`/dino.hatch\` | Breakdown | Create tasks |
1428
+ | \`/dino.hunt\` | Implementation | Execute tasks |
1429
+ | \`/dino.aging\` | Verification | Run tests |
1430
+ | \`/dino.fossil\` | Completion | Archive work |
1431
+
1432
+ ## Utility Skills
1433
+
1434
+ | Skill | Description |
1435
+ |-------|-------------|
1436
+ | \`/dino.init\` | Update dino files safely |
1437
+ | \`/dino.ralph\` | Fresh-context iterative execution |
1438
+ | \`/dino.status\` | Check session state (--next, --focus, --tips) |
1439
+ | \`/dino.release\` | Release workflow with doc updates |
1440
+
1441
+ ## Usage
1442
+
1443
+ Invoke any skill by typing its command (e.g., \`/dino.discover\`).
1444
+ Skills automatically use session context from \`.dino/session.md\`.
1415
1445
  `;
1416
1446
  }
1417
1447
  /**