dino-spec 13.6.1 → 14.0.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 (1277) hide show
  1. package/README.md +63 -3
  2. package/dist/agents/context-distributor.d.ts +1 -1
  3. package/dist/agents/context-distributor.d.ts.map +1 -1
  4. package/dist/agents/context-distributor.js +16 -15
  5. package/dist/agents/context-distributor.js.map +1 -1
  6. package/dist/agents/index.d.ts +1 -1
  7. package/dist/agents/index.d.ts.map +1 -1
  8. package/dist/agents/index.js +378 -370
  9. package/dist/agents/index.js.map +1 -1
  10. package/dist/cli/index.js +14 -14
  11. package/dist/cli/index.js.map +1 -1
  12. package/dist/cli/tui/index.d.ts +1 -1
  13. package/dist/cli/tui/index.d.ts.map +1 -1
  14. package/dist/cli/tui/index.js.map +1 -1
  15. package/dist/cli/tui/setup-wizard.d.ts.map +1 -1
  16. package/dist/cli/tui/setup-wizard.js +27 -24
  17. package/dist/cli/tui/setup-wizard.js.map +1 -1
  18. package/dist/commands/compact.d.ts.map +1 -1
  19. package/dist/commands/compact.js +2 -2
  20. package/dist/commands/compact.js.map +1 -1
  21. package/dist/commands/hooks/index.d.ts +3 -3
  22. package/dist/commands/hooks/index.d.ts.map +1 -1
  23. package/dist/commands/hooks/index.js +6 -6
  24. package/dist/commands/hooks/index.js.map +1 -1
  25. package/dist/commands/hooks/registry.d.ts +1 -1
  26. package/dist/commands/hooks/registry.d.ts.map +1 -1
  27. package/dist/commands/hooks/registry.js +6 -6
  28. package/dist/commands/hooks/registry.js.map +1 -1
  29. package/dist/commands/hooks/types.d.ts.map +1 -1
  30. package/dist/commands/hooks/utils.d.ts +1 -1
  31. package/dist/commands/hooks/utils.d.ts.map +1 -1
  32. package/dist/commands/hooks/utils.js +2 -2
  33. package/dist/commands/hooks/utils.js.map +1 -1
  34. package/dist/commands/hud.d.ts +1 -8
  35. package/dist/commands/hud.d.ts.map +1 -1
  36. package/dist/commands/hud.js +25 -42
  37. package/dist/commands/hud.js.map +1 -1
  38. package/dist/commands/init.d.ts.map +1 -1
  39. package/dist/commands/init.js +21 -20
  40. package/dist/commands/init.js.map +1 -1
  41. package/dist/commands/mcp-serve.js.map +1 -1
  42. package/dist/commands/mcp.d.ts.map +1 -1
  43. package/dist/commands/mcp.js +10 -4
  44. package/dist/commands/mcp.js.map +1 -1
  45. package/dist/commands/memory/consolidate.d.ts.map +1 -1
  46. package/dist/commands/memory/consolidate.js +1 -1
  47. package/dist/commands/memory/consolidate.js.map +1 -1
  48. package/dist/commands/memory/decay.d.ts.map +1 -1
  49. package/dist/commands/memory/decay.js +1 -1
  50. package/dist/commands/memory/decay.js.map +1 -1
  51. package/dist/commands/memory/index.d.ts +8 -8
  52. package/dist/commands/memory/index.d.ts.map +1 -1
  53. package/dist/commands/memory/index.js +4 -4
  54. package/dist/commands/memory/index.js.map +1 -1
  55. package/dist/commands/memory/list.d.ts.map +1 -1
  56. package/dist/commands/memory/list.js +5 -5
  57. package/dist/commands/memory/list.js.map +1 -1
  58. package/dist/commands/memory/prune.d.ts.map +1 -1
  59. package/dist/commands/memory/prune.js +1 -1
  60. package/dist/commands/memory/prune.js.map +1 -1
  61. package/dist/commands/memory/recall.d.ts.map +1 -1
  62. package/dist/commands/memory/recall.js +2 -2
  63. package/dist/commands/memory/recall.js.map +1 -1
  64. package/dist/commands/memory/reflect.d.ts.map +1 -1
  65. package/dist/commands/memory/reflect.js +5 -5
  66. package/dist/commands/memory/reflect.js.map +1 -1
  67. package/dist/commands/memory/search.d.ts.map +1 -1
  68. package/dist/commands/memory/search.js +16 -16
  69. package/dist/commands/memory/search.js.map +1 -1
  70. package/dist/commands/memory/stats.d.ts.map +1 -1
  71. package/dist/commands/memory/stats.js +15 -10
  72. package/dist/commands/memory/stats.js.map +1 -1
  73. package/dist/commands/provider.d.ts.map +1 -1
  74. package/dist/commands/provider.js +3 -3
  75. package/dist/commands/provider.js.map +1 -1
  76. package/dist/commands/refresh.d.ts.map +1 -1
  77. package/dist/commands/refresh.js +4 -6
  78. package/dist/commands/refresh.js.map +1 -1
  79. package/dist/commands/session-sync.d.ts.map +1 -1
  80. package/dist/commands/session-sync.js +2 -2
  81. package/dist/commands/session-sync.js.map +1 -1
  82. package/dist/commands/session.d.ts.map +1 -1
  83. package/dist/commands/session.js +9 -9
  84. package/dist/commands/session.js.map +1 -1
  85. package/dist/commands/setup.d.ts.map +1 -1
  86. package/dist/commands/setup.js +7 -5
  87. package/dist/commands/setup.js.map +1 -1
  88. package/dist/commands/status.d.ts.map +1 -1
  89. package/dist/commands/status.js +19 -13
  90. package/dist/commands/status.js.map +1 -1
  91. package/dist/commands/store/index.d.ts +4 -4
  92. package/dist/commands/store/index.d.ts.map +1 -1
  93. package/dist/commands/store/index.js +2 -2
  94. package/dist/commands/store/index.js.map +1 -1
  95. package/dist/commands/store/install.d.ts.map +1 -1
  96. package/dist/commands/store/install.js +1 -1
  97. package/dist/commands/store/install.js.map +1 -1
  98. package/dist/commands/store/list.d.ts.map +1 -1
  99. package/dist/commands/store/list.js +5 -5
  100. package/dist/commands/store/list.js.map +1 -1
  101. package/dist/commands/store/remove.d.ts.map +1 -1
  102. package/dist/commands/store/remove.js.map +1 -1
  103. package/dist/commands/store/search.d.ts.map +1 -1
  104. package/dist/commands/store/search.js +4 -6
  105. package/dist/commands/store/search.js.map +1 -1
  106. package/dist/commands/store/sync.js.map +1 -1
  107. package/dist/commands/update.d.ts +1 -1
  108. package/dist/commands/update.d.ts.map +1 -1
  109. package/dist/commands/update.js +5 -8
  110. package/dist/commands/update.js.map +1 -1
  111. package/dist/core/agents/__tests__/action-mask.test.js +12 -8
  112. package/dist/core/agents/__tests__/action-mask.test.js.map +1 -1
  113. package/dist/core/agents/__tests__/budgets.test.js +17 -7
  114. package/dist/core/agents/__tests__/budgets.test.js.map +1 -1
  115. package/dist/core/agents/__tests__/communication.test.js +3 -3
  116. package/dist/core/agents/__tests__/communication.test.js.map +1 -1
  117. package/dist/core/agents/__tests__/orchestrator.test.js +36 -23
  118. package/dist/core/agents/__tests__/orchestrator.test.js.map +1 -1
  119. package/dist/core/agents/action-mask.d.ts +2 -2
  120. package/dist/core/agents/action-mask.d.ts.map +1 -1
  121. package/dist/core/agents/action-mask.js.map +1 -1
  122. package/dist/core/agents/blackboard.d.ts.map +1 -1
  123. package/dist/core/agents/blackboard.js +2 -2
  124. package/dist/core/agents/blackboard.js.map +1 -1
  125. package/dist/core/agents/budgets.d.ts +1 -1
  126. package/dist/core/agents/budgets.d.ts.map +1 -1
  127. package/dist/core/agents/budgets.js +3 -2
  128. package/dist/core/agents/budgets.js.map +1 -1
  129. package/dist/core/agents/circuit-breaker.d.ts.map +1 -1
  130. package/dist/core/agents/circuit-breaker.js.map +1 -1
  131. package/dist/core/agents/circuit-registry.d.ts +1 -1
  132. package/dist/core/agents/circuit-registry.d.ts.map +1 -1
  133. package/dist/core/agents/circuit-registry.js.map +1 -1
  134. package/dist/core/agents/context-isolation.d.ts.map +1 -1
  135. package/dist/core/agents/context-isolation.js +39 -43
  136. package/dist/core/agents/context-isolation.js.map +1 -1
  137. package/dist/core/agents/index.d.ts +11 -11
  138. package/dist/core/agents/index.d.ts.map +1 -1
  139. package/dist/core/agents/index.js +37 -37
  140. package/dist/core/agents/index.js.map +1 -1
  141. package/dist/core/agents/initializer.d.ts.map +1 -1
  142. package/dist/core/agents/initializer.js +12 -12
  143. package/dist/core/agents/initializer.js.map +1 -1
  144. package/dist/core/agents/message-protocol.d.ts.map +1 -1
  145. package/dist/core/agents/message-protocol.js.map +1 -1
  146. package/dist/core/agents/orchestrator.d.ts +3 -3
  147. package/dist/core/agents/orchestrator.d.ts.map +1 -1
  148. package/dist/core/agents/orchestrator.js +7 -10
  149. package/dist/core/agents/orchestrator.js.map +1 -1
  150. package/dist/core/agents/programmatic/context-delegate.d.ts.map +1 -1
  151. package/dist/core/agents/programmatic/context-delegate.js +10 -10
  152. package/dist/core/agents/programmatic/context-delegate.js.map +1 -1
  153. package/dist/core/agents/programmatic/index.d.ts +3 -3
  154. package/dist/core/agents/programmatic/index.d.ts.map +1 -1
  155. package/dist/core/agents/programmatic/index.js +4 -4
  156. package/dist/core/agents/programmatic/index.js.map +1 -1
  157. package/dist/core/agents/programmatic/result-collector.d.ts +2 -2
  158. package/dist/core/agents/programmatic/result-collector.d.ts.map +1 -1
  159. package/dist/core/agents/programmatic/result-collector.js +16 -16
  160. package/dist/core/agents/programmatic/result-collector.js.map +1 -1
  161. package/dist/core/agents/programmatic/script-executor.d.ts.map +1 -1
  162. package/dist/core/agents/programmatic/script-executor.js +152 -149
  163. package/dist/core/agents/programmatic/script-executor.js.map +1 -1
  164. package/dist/core/agents/recursive/aggregator.d.ts +1 -1
  165. package/dist/core/agents/recursive/aggregator.d.ts.map +1 -1
  166. package/dist/core/agents/recursive/aggregator.js +12 -17
  167. package/dist/core/agents/recursive/aggregator.js.map +1 -1
  168. package/dist/core/agents/recursive/budget-allocator.d.ts +1 -1
  169. package/dist/core/agents/recursive/budget-allocator.d.ts.map +1 -1
  170. package/dist/core/agents/recursive/budget-allocator.js +7 -9
  171. package/dist/core/agents/recursive/budget-allocator.js.map +1 -1
  172. package/dist/core/agents/recursive/checkpoint-chain.d.ts +4 -4
  173. package/dist/core/agents/recursive/checkpoint-chain.d.ts.map +1 -1
  174. package/dist/core/agents/recursive/checkpoint-chain.js +12 -15
  175. package/dist/core/agents/recursive/checkpoint-chain.js.map +1 -1
  176. package/dist/core/agents/recursive/complexity-analyzer.d.ts.map +1 -1
  177. package/dist/core/agents/recursive/complexity-analyzer.js +52 -20
  178. package/dist/core/agents/recursive/complexity-analyzer.js.map +1 -1
  179. package/dist/core/agents/recursive/index.d.ts +6 -6
  180. package/dist/core/agents/recursive/index.d.ts.map +1 -1
  181. package/dist/core/agents/recursive/index.js +11 -11
  182. package/dist/core/agents/recursive/index.js.map +1 -1
  183. package/dist/core/agents/recursive/orchestrator.d.ts +2 -2
  184. package/dist/core/agents/recursive/orchestrator.d.ts.map +1 -1
  185. package/dist/core/agents/recursive/orchestrator.js +60 -20
  186. package/dist/core/agents/recursive/orchestrator.js.map +1 -1
  187. package/dist/core/agents/recursive/spawn-controller.d.ts +3 -3
  188. package/dist/core/agents/recursive/spawn-controller.d.ts.map +1 -1
  189. package/dist/core/agents/recursive/spawn-controller.js +10 -10
  190. package/dist/core/agents/recursive/spawn-controller.js.map +1 -1
  191. package/dist/core/agents/recursive/types.d.ts +2 -2
  192. package/dist/core/agents/recursive/types.d.ts.map +1 -1
  193. package/dist/core/agents/recursive/types.js +2 -2
  194. package/dist/core/agents/recursive/types.js.map +1 -1
  195. package/dist/core/agents/types.d.ts +1 -1
  196. package/dist/core/agents/types.d.ts.map +1 -1
  197. package/dist/core/analyzer/change-intent.d.ts +1 -1
  198. package/dist/core/analyzer/change-intent.d.ts.map +1 -1
  199. package/dist/core/analyzer/change-intent.js +6 -5
  200. package/dist/core/analyzer/change-intent.js.map +1 -1
  201. package/dist/core/analyzer/command-extractor.d.ts.map +1 -1
  202. package/dist/core/analyzer/command-extractor.js +1 -3
  203. package/dist/core/analyzer/command-extractor.js.map +1 -1
  204. package/dist/core/analyzer/dependency-graph.d.ts.map +1 -1
  205. package/dist/core/analyzer/dependency-graph.js +364 -74
  206. package/dist/core/analyzer/dependency-graph.js.map +1 -1
  207. package/dist/core/analyzer/focus-detector.d.ts.map +1 -1
  208. package/dist/core/analyzer/focus-detector.js +21 -24
  209. package/dist/core/analyzer/focus-detector.js.map +1 -1
  210. package/dist/core/analyzer/index.d.ts +8 -8
  211. package/dist/core/analyzer/index.d.ts.map +1 -1
  212. package/dist/core/analyzer/index.js +17 -17
  213. package/dist/core/analyzer/index.js.map +1 -1
  214. package/dist/core/analyzer/multi-lang/index.d.ts +2 -2
  215. package/dist/core/analyzer/multi-lang/index.d.ts.map +1 -1
  216. package/dist/core/analyzer/multi-lang/index.js +36 -38
  217. package/dist/core/analyzer/multi-lang/index.js.map +1 -1
  218. package/dist/core/analyzer/multi-lang/language-detector.d.ts +1 -1
  219. package/dist/core/analyzer/multi-lang/language-detector.d.ts.map +1 -1
  220. package/dist/core/analyzer/multi-lang/language-detector.js +24 -13
  221. package/dist/core/analyzer/multi-lang/language-detector.js.map +1 -1
  222. package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts +1 -1
  223. package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts.map +1 -1
  224. package/dist/core/analyzer/multi-lang/pattern-extractor.js +20 -7
  225. package/dist/core/analyzer/multi-lang/pattern-extractor.js.map +1 -1
  226. package/dist/core/analyzer/multi-lang/types.d.ts.map +1 -1
  227. package/dist/core/analyzer/pattern-detector.d.ts.map +1 -1
  228. package/dist/core/analyzer/pattern-detector.js.map +1 -1
  229. package/dist/core/analyzer/project-detector.d.ts.map +1 -1
  230. package/dist/core/analyzer/project-detector.js +11 -8
  231. package/dist/core/analyzer/project-detector.js.map +1 -1
  232. package/dist/core/analyzer/semantic-diff.d.ts.map +1 -1
  233. package/dist/core/analyzer/semantic-diff.js +17 -8
  234. package/dist/core/analyzer/semantic-diff.js.map +1 -1
  235. package/dist/core/analyzer/structure-mapper.d.ts +2 -2
  236. package/dist/core/analyzer/structure-mapper.d.ts.map +1 -1
  237. package/dist/core/analyzer/structure-mapper.js +2 -2
  238. package/dist/core/analyzer/structure-mapper.js.map +1 -1
  239. package/dist/core/analyzer/types.d.ts.map +1 -1
  240. package/dist/core/budget/cross-section-dedup.d.ts.map +1 -1
  241. package/dist/core/budget/cross-section-dedup.js +20 -17
  242. package/dist/core/budget/cross-section-dedup.js.map +1 -1
  243. package/dist/core/budget/entropy-budget.d.ts.map +1 -1
  244. package/dist/core/budget/entropy-budget.js +16 -22
  245. package/dist/core/budget/entropy-budget.js.map +1 -1
  246. package/dist/core/budget/index.d.ts +2 -2
  247. package/dist/core/budget/index.d.ts.map +1 -1
  248. package/dist/core/budget/index.js +3 -3
  249. package/dist/core/budget/index.js.map +1 -1
  250. package/dist/core/budget/language-entropy-profiles.d.ts.map +1 -1
  251. package/dist/core/budget/language-entropy-profiles.js +60 -7
  252. package/dist/core/budget/language-entropy-profiles.js.map +1 -1
  253. package/dist/core/budget/token-estimator.d.ts.map +1 -1
  254. package/dist/core/budget/token-estimator.js.map +1 -1
  255. package/dist/core/cache/cache-analyzer.d.ts.map +1 -1
  256. package/dist/core/cache/cache-analyzer.js +21 -24
  257. package/dist/core/cache/cache-analyzer.js.map +1 -1
  258. package/dist/core/cache/cache-metrics.d.ts +1 -1
  259. package/dist/core/cache/cache-metrics.d.ts.map +1 -1
  260. package/dist/core/cache/cache-metrics.js +6 -11
  261. package/dist/core/cache/cache-metrics.js.map +1 -1
  262. package/dist/core/cache/file-cache.d.ts.map +1 -1
  263. package/dist/core/cache/file-cache.js +3 -4
  264. package/dist/core/cache/file-cache.js.map +1 -1
  265. package/dist/core/cache/index.d.ts +3 -3
  266. package/dist/core/cache/index.d.ts.map +1 -1
  267. package/dist/core/cache/index.js +3 -3
  268. package/dist/core/cache/index.js.map +1 -1
  269. package/dist/core/checkpoints/category-compressor.d.ts +1 -1
  270. package/dist/core/checkpoints/category-compressor.d.ts.map +1 -1
  271. package/dist/core/checkpoints/category-compressor.js +4 -5
  272. package/dist/core/checkpoints/category-compressor.js.map +1 -1
  273. package/dist/core/checkpoints/checkpoint-store.d.ts.map +1 -1
  274. package/dist/core/checkpoints/checkpoint-store.js +1 -1
  275. package/dist/core/checkpoints/checkpoint-store.js.map +1 -1
  276. package/dist/core/checkpoints/checkpoint.d.ts +2 -2
  277. package/dist/core/checkpoints/checkpoint.d.ts.map +1 -1
  278. package/dist/core/checkpoints/checkpoint.js +17 -14
  279. package/dist/core/checkpoints/checkpoint.js.map +1 -1
  280. package/dist/core/checkpoints/compression-templates.d.ts +1 -1
  281. package/dist/core/checkpoints/compression-templates.d.ts.map +1 -1
  282. package/dist/core/checkpoints/compression-templates.js +2 -4
  283. package/dist/core/checkpoints/compression-templates.js.map +1 -1
  284. package/dist/core/checkpoints/compression-verifier.d.ts.map +1 -1
  285. package/dist/core/checkpoints/compression-verifier.js.map +1 -1
  286. package/dist/core/checkpoints/context-serializer.d.ts.map +1 -1
  287. package/dist/core/checkpoints/context-serializer.js +4 -10
  288. package/dist/core/checkpoints/context-serializer.js.map +1 -1
  289. package/dist/core/checkpoints/git-recovery.d.ts.map +1 -1
  290. package/dist/core/checkpoints/git-recovery.js +1 -2
  291. package/dist/core/checkpoints/git-recovery.js.map +1 -1
  292. package/dist/core/checkpoints/handoff-schema.d.ts.map +1 -1
  293. package/dist/core/checkpoints/handoff-schema.js +24 -16
  294. package/dist/core/checkpoints/handoff-schema.js.map +1 -1
  295. package/dist/core/checkpoints/handoff.d.ts +1 -1
  296. package/dist/core/checkpoints/handoff.d.ts.map +1 -1
  297. package/dist/core/checkpoints/handoff.js +3 -3
  298. package/dist/core/checkpoints/handoff.js.map +1 -1
  299. package/dist/core/checkpoints/index.d.ts +4 -4
  300. package/dist/core/checkpoints/index.d.ts.map +1 -1
  301. package/dist/core/checkpoints/index.js +4 -4
  302. package/dist/core/checkpoints/index.js.map +1 -1
  303. package/dist/core/chunking/index.d.ts +2 -2
  304. package/dist/core/chunking/index.d.ts.map +1 -1
  305. package/dist/core/chunking/index.js +8 -10
  306. package/dist/core/chunking/index.js.map +1 -1
  307. package/dist/core/chunking/types.d.ts.map +1 -1
  308. package/dist/core/chunking/types.js.map +1 -1
  309. package/dist/core/chunking/typescript-chunker.d.ts +1 -1
  310. package/dist/core/chunking/typescript-chunker.d.ts.map +1 -1
  311. package/dist/core/chunking/typescript-chunker.js +15 -10
  312. package/dist/core/chunking/typescript-chunker.js.map +1 -1
  313. package/dist/core/chunking/utils.d.ts.map +1 -1
  314. package/dist/core/chunking/utils.js +13 -13
  315. package/dist/core/chunking/utils.js.map +1 -1
  316. package/dist/core/config/constants.js.map +1 -1
  317. package/dist/core/config/feature-flags.d.ts +15 -0
  318. package/dist/core/config/feature-flags.d.ts.map +1 -1
  319. package/dist/core/config/feature-flags.js +3 -0
  320. package/dist/core/config/feature-flags.js.map +1 -1
  321. package/dist/core/config/generated-files.d.ts.map +1 -1
  322. package/dist/core/config/generated-files.js.map +1 -1
  323. package/dist/core/config/index.d.ts +2 -2
  324. package/dist/core/config/index.d.ts.map +1 -1
  325. package/dist/core/config/index.js +2 -2
  326. package/dist/core/config/index.js.map +1 -1
  327. package/dist/core/config/markers.js.map +1 -1
  328. package/dist/core/config/optional-commands.d.ts.map +1 -1
  329. package/dist/core/config/optional-commands.js.map +1 -1
  330. package/dist/core/config/paths.js.map +1 -1
  331. package/dist/core/context/access-tracker.d.ts.map +1 -1
  332. package/dist/core/context/access-tracker.js +10 -11
  333. package/dist/core/context/access-tracker.js.map +1 -1
  334. package/dist/core/context/auto-injection-engine.d.ts.map +1 -1
  335. package/dist/core/context/auto-injection-engine.js +12 -9
  336. package/dist/core/context/auto-injection-engine.js.map +1 -1
  337. package/dist/core/context/auto-unload-engine.d.ts.map +1 -1
  338. package/dist/core/context/auto-unload-engine.js +5 -5
  339. package/dist/core/context/auto-unload-engine.js.map +1 -1
  340. package/dist/core/context/context-auditor.d.ts.map +1 -1
  341. package/dist/core/context/context-auditor.js +19 -22
  342. package/dist/core/context/context-auditor.js.map +1 -1
  343. package/dist/core/context/context-health.d.ts +28 -3
  344. package/dist/core/context/context-health.d.ts.map +1 -1
  345. package/dist/core/context/context-health.js +105 -22
  346. package/dist/core/context/context-health.js.map +1 -1
  347. package/dist/core/context/context-manifest.d.ts.map +1 -1
  348. package/dist/core/context/context-manifest.js +8 -12
  349. package/dist/core/context/context-manifest.js.map +1 -1
  350. package/dist/core/context/demand-detector.d.ts +3 -3
  351. package/dist/core/context/demand-detector.d.ts.map +1 -1
  352. package/dist/core/context/demand-detector.js +13 -16
  353. package/dist/core/context/demand-detector.js.map +1 -1
  354. package/dist/core/context/focus-resource-loader.d.ts +143 -0
  355. package/dist/core/context/focus-resource-loader.d.ts.map +1 -0
  356. package/dist/core/context/focus-resource-loader.js +311 -0
  357. package/dist/core/context/focus-resource-loader.js.map +1 -0
  358. package/dist/core/context/index.d.ts +15 -15
  359. package/dist/core/context/index.d.ts.map +1 -1
  360. package/dist/core/context/index.js +122 -109
  361. package/dist/core/context/index.js.map +1 -1
  362. package/dist/core/context/lazy-loader.d.ts +45 -2
  363. package/dist/core/context/lazy-loader.d.ts.map +1 -1
  364. package/dist/core/context/lazy-loader.js +75 -13
  365. package/dist/core/context/lazy-loader.js.map +1 -1
  366. package/dist/core/context/positional-optimizer.d.ts.map +1 -1
  367. package/dist/core/context/positional-optimizer.js +15 -16
  368. package/dist/core/context/positional-optimizer.js.map +1 -1
  369. package/dist/core/context/prefetch-optimizer.d.ts.map +1 -1
  370. package/dist/core/context/prefetch-optimizer.js +8 -8
  371. package/dist/core/context/prefetch-optimizer.js.map +1 -1
  372. package/dist/core/context/token-tracker.d.ts.map +1 -1
  373. package/dist/core/context/token-tracker.js +30 -22
  374. package/dist/core/context/token-tracker.js.map +1 -1
  375. package/dist/core/context/tool-clearing.d.ts +1 -1
  376. package/dist/core/context/tool-clearing.d.ts.map +1 -1
  377. package/dist/core/context/tool-clearing.js +21 -18
  378. package/dist/core/context/tool-clearing.js.map +1 -1
  379. package/dist/core/context/tool-protection.d.ts.map +1 -1
  380. package/dist/core/context/tool-protection.js +1 -3
  381. package/dist/core/context/tool-protection.js.map +1 -1
  382. package/dist/core/context/tool-summarization.d.ts.map +1 -1
  383. package/dist/core/context/tool-summarization.js +24 -19
  384. package/dist/core/context/tool-summarization.js.map +1 -1
  385. package/dist/core/context-repl/__tests__/condensation.test.js +3 -3
  386. package/dist/core/context-repl/__tests__/condensation.test.js.map +1 -1
  387. package/dist/core/context-repl/__tests__/query-executor.test.js +16 -6
  388. package/dist/core/context-repl/__tests__/query-executor.test.js.map +1 -1
  389. package/dist/core/context-repl/__tests__/query-parser.test.js +5 -5
  390. package/dist/core/context-repl/__tests__/query-parser.test.js.map +1 -1
  391. package/dist/core/context-repl/condensation.d.ts +1 -1
  392. package/dist/core/context-repl/condensation.d.ts.map +1 -1
  393. package/dist/core/context-repl/condensation.js +15 -9
  394. package/dist/core/context-repl/condensation.js.map +1 -1
  395. package/dist/core/context-repl/index.d.ts +11 -11
  396. package/dist/core/context-repl/index.d.ts.map +1 -1
  397. package/dist/core/context-repl/index.js +15 -15
  398. package/dist/core/context-repl/index.js.map +1 -1
  399. package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js +7 -20
  400. package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js.map +1 -1
  401. package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js +10 -18
  402. package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js.map +1 -1
  403. package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js +22 -31
  404. package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js.map +1 -1
  405. package/dist/core/context-repl/partitioning/__tests__/by-time.test.js +14 -19
  406. package/dist/core/context-repl/partitioning/__tests__/by-time.test.js.map +1 -1
  407. package/dist/core/context-repl/partitioning/__tests__/index.test.js +4 -12
  408. package/dist/core/context-repl/partitioning/__tests__/index.test.js.map +1 -1
  409. package/dist/core/context-repl/partitioning/index.d.ts +5 -5
  410. package/dist/core/context-repl/partitioning/index.d.ts.map +1 -1
  411. package/dist/core/context-repl/partitioning/index.js +17 -18
  412. package/dist/core/context-repl/partitioning/index.js.map +1 -1
  413. package/dist/core/context-repl/partitioning/partition-cache.d.ts +1 -1
  414. package/dist/core/context-repl/partitioning/partition-cache.d.ts.map +1 -1
  415. package/dist/core/context-repl/partitioning/partition-cache.js +1 -1
  416. package/dist/core/context-repl/partitioning/partition-cache.js.map +1 -1
  417. package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts +1 -1
  418. package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts.map +1 -1
  419. package/dist/core/context-repl/partitioning/strategies/by-dependency.js +20 -17
  420. package/dist/core/context-repl/partitioning/strategies/by-dependency.js.map +1 -1
  421. package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts +1 -1
  422. package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts.map +1 -1
  423. package/dist/core/context-repl/partitioning/strategies/by-directory.js +5 -5
  424. package/dist/core/context-repl/partitioning/strategies/by-directory.js.map +1 -1
  425. package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts +1 -1
  426. package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts.map +1 -1
  427. package/dist/core/context-repl/partitioning/strategies/by-feature.js +18 -38
  428. package/dist/core/context-repl/partitioning/strategies/by-feature.js.map +1 -1
  429. package/dist/core/context-repl/partitioning/strategies/by-time.d.ts +1 -1
  430. package/dist/core/context-repl/partitioning/strategies/by-time.d.ts.map +1 -1
  431. package/dist/core/context-repl/partitioning/strategies/by-time.js +8 -8
  432. package/dist/core/context-repl/partitioning/strategies/by-time.js.map +1 -1
  433. package/dist/core/context-repl/partitioning/strategies/index.d.ts +4 -4
  434. package/dist/core/context-repl/partitioning/strategies/index.d.ts.map +1 -1
  435. package/dist/core/context-repl/partitioning/strategies/index.js +8 -8
  436. package/dist/core/context-repl/partitioning/strategies/index.js.map +1 -1
  437. package/dist/core/context-repl/partitioning/types.d.ts.map +1 -1
  438. package/dist/core/context-repl/partitioning/types.js.map +1 -1
  439. package/dist/core/context-repl/query-executor.d.ts +1 -1
  440. package/dist/core/context-repl/query-executor.d.ts.map +1 -1
  441. package/dist/core/context-repl/query-executor.js +42 -20
  442. package/dist/core/context-repl/query-executor.js.map +1 -1
  443. package/dist/core/context-repl/query-parser.d.ts +1 -1
  444. package/dist/core/context-repl/query-parser.d.ts.map +1 -1
  445. package/dist/core/context-repl/query-parser.js +36 -38
  446. package/dist/core/context-repl/query-parser.js.map +1 -1
  447. package/dist/core/context-repl/recursive/__tests__/budget.test.js +4 -4
  448. package/dist/core/context-repl/recursive/__tests__/budget.test.js.map +1 -1
  449. package/dist/core/context-repl/recursive/__tests__/decomposer.test.js +6 -6
  450. package/dist/core/context-repl/recursive/__tests__/decomposer.test.js.map +1 -1
  451. package/dist/core/context-repl/recursive/__tests__/integration.test.js +9 -6
  452. package/dist/core/context-repl/recursive/__tests__/integration.test.js.map +1 -1
  453. package/dist/core/context-repl/recursive/__tests__/quality.test.js +9 -29
  454. package/dist/core/context-repl/recursive/__tests__/quality.test.js.map +1 -1
  455. package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js +26 -10
  456. package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js.map +1 -1
  457. package/dist/core/context-repl/recursive/budget.d.ts +1 -1
  458. package/dist/core/context-repl/recursive/budget.d.ts.map +1 -1
  459. package/dist/core/context-repl/recursive/budget.js +2 -2
  460. package/dist/core/context-repl/recursive/budget.js.map +1 -1
  461. package/dist/core/context-repl/recursive/decomposer.d.ts +4 -4
  462. package/dist/core/context-repl/recursive/decomposer.d.ts.map +1 -1
  463. package/dist/core/context-repl/recursive/decomposer.js +52 -35
  464. package/dist/core/context-repl/recursive/decomposer.js.map +1 -1
  465. package/dist/core/context-repl/recursive/index.d.ts +7 -7
  466. package/dist/core/context-repl/recursive/index.d.ts.map +1 -1
  467. package/dist/core/context-repl/recursive/index.js +31 -27
  468. package/dist/core/context-repl/recursive/index.js.map +1 -1
  469. package/dist/core/context-repl/recursive/quality.d.ts +1 -1
  470. package/dist/core/context-repl/recursive/quality.d.ts.map +1 -1
  471. package/dist/core/context-repl/recursive/quality.js +15 -5
  472. package/dist/core/context-repl/recursive/quality.js.map +1 -1
  473. package/dist/core/context-repl/recursive/synthesizer.d.ts +2 -2
  474. package/dist/core/context-repl/recursive/synthesizer.d.ts.map +1 -1
  475. package/dist/core/context-repl/recursive/synthesizer.js +11 -11
  476. package/dist/core/context-repl/recursive/synthesizer.js.map +1 -1
  477. package/dist/core/context-repl/recursive/trajectory.d.ts +1 -1
  478. package/dist/core/context-repl/recursive/trajectory.d.ts.map +1 -1
  479. package/dist/core/context-repl/recursive/trajectory.js +18 -16
  480. package/dist/core/context-repl/recursive/trajectory.js.map +1 -1
  481. package/dist/core/context-repl/recursive/types.d.ts.map +1 -1
  482. package/dist/core/context-repl/recursive/types.js.map +1 -1
  483. package/dist/core/context-repl/types.d.ts +2 -2
  484. package/dist/core/context-repl/types.d.ts.map +1 -1
  485. package/dist/core/context-repl/types.js +16 -5
  486. package/dist/core/context-repl/types.js.map +1 -1
  487. package/dist/core/context-repl/variable-loader.d.ts +1 -1
  488. package/dist/core/context-repl/variable-loader.d.ts.map +1 -1
  489. package/dist/core/context-repl/variable-loader.js +7 -9
  490. package/dist/core/context-repl/variable-loader.js.map +1 -1
  491. package/dist/core/conversations/conversation-manager.d.ts.map +1 -1
  492. package/dist/core/conversations/conversation-manager.js.map +1 -1
  493. package/dist/core/embeddings/adapters/index.d.ts +4 -4
  494. package/dist/core/embeddings/adapters/index.d.ts.map +1 -1
  495. package/dist/core/embeddings/adapters/index.js +3 -3
  496. package/dist/core/embeddings/adapters/index.js.map +1 -1
  497. package/dist/core/embeddings/adapters/local.d.ts +2 -2
  498. package/dist/core/embeddings/adapters/local.d.ts.map +1 -1
  499. package/dist/core/embeddings/adapters/local.js +4 -4
  500. package/dist/core/embeddings/adapters/local.js.map +1 -1
  501. package/dist/core/embeddings/adapters/qdrant.d.ts +1 -1
  502. package/dist/core/embeddings/adapters/qdrant.d.ts.map +1 -1
  503. package/dist/core/embeddings/adapters/qdrant.js +2 -2
  504. package/dist/core/embeddings/adapters/qdrant.js.map +1 -1
  505. package/dist/core/embeddings/adapters/types.d.ts +1 -1
  506. package/dist/core/embeddings/adapters/types.d.ts.map +1 -1
  507. package/dist/core/embeddings/adapters/types.js.map +1 -1
  508. package/dist/core/embeddings/backends/index.d.ts.map +1 -1
  509. package/dist/core/embeddings/backends/index.js.map +1 -1
  510. package/dist/core/embeddings/backends/local.d.ts.map +1 -1
  511. package/dist/core/embeddings/backends/local.js +41 -13
  512. package/dist/core/embeddings/backends/local.js.map +1 -1
  513. package/dist/core/embeddings/index.d.ts +9 -9
  514. package/dist/core/embeddings/index.d.ts.map +1 -1
  515. package/dist/core/embeddings/index.js +9 -6
  516. package/dist/core/embeddings/index.js.map +1 -1
  517. package/dist/core/embeddings/query-cache.d.ts.map +1 -1
  518. package/dist/core/embeddings/query-cache.js.map +1 -1
  519. package/dist/core/embeddings/types.d.ts.map +1 -1
  520. package/dist/core/embeddings/types.js.map +1 -1
  521. package/dist/core/embeddings/vector-store.d.ts.map +1 -1
  522. package/dist/core/embeddings/vector-store.js +17 -16
  523. package/dist/core/embeddings/vector-store.js.map +1 -1
  524. package/dist/core/embeddings/vector-utils.d.ts.map +1 -1
  525. package/dist/core/embeddings/vector-utils.js +4 -4
  526. package/dist/core/embeddings/vector-utils.js.map +1 -1
  527. package/dist/core/errors/index.d.ts.map +1 -1
  528. package/dist/core/errors/index.js.map +1 -1
  529. package/dist/core/errors.d.ts.map +1 -1
  530. package/dist/core/errors.js.map +1 -1
  531. package/dist/core/examples/index.d.ts +1 -1
  532. package/dist/core/examples/index.d.ts.map +1 -1
  533. package/dist/core/examples/index.js +1 -1
  534. package/dist/core/examples/index.js.map +1 -1
  535. package/dist/core/examples/tool-examples.d.ts.map +1 -1
  536. package/dist/core/examples/tool-examples.js +6 -15
  537. package/dist/core/examples/tool-examples.js.map +1 -1
  538. package/dist/core/features/index.d.ts +1 -1
  539. package/dist/core/features/index.d.ts.map +1 -1
  540. package/dist/core/features/index.js +2 -6
  541. package/dist/core/features/index.js.map +1 -1
  542. package/dist/core/features/types.d.ts.map +1 -1
  543. package/dist/core/generator/claude-md.d.ts.map +1 -1
  544. package/dist/core/generator/claude-md.js +36 -41
  545. package/dist/core/generator/claude-md.js.map +1 -1
  546. package/dist/core/generator/index.d.ts +2 -2
  547. package/dist/core/generator/index.d.ts.map +1 -1
  548. package/dist/core/generator/index.js +2 -2
  549. package/dist/core/generator/index.js.map +1 -1
  550. package/dist/core/generator/session-md.d.ts +1 -1
  551. package/dist/core/generator/session-md.d.ts.map +1 -1
  552. package/dist/core/generator/session-md.js +35 -28
  553. package/dist/core/generator/session-md.js.map +1 -1
  554. package/dist/core/handoff/index.d.ts +2 -2
  555. package/dist/core/handoff/index.d.ts.map +1 -1
  556. package/dist/core/handoff/index.js +1 -1
  557. package/dist/core/handoff/index.js.map +1 -1
  558. package/dist/core/handoff/writer.d.ts.map +1 -1
  559. package/dist/core/handoff/writer.js.map +1 -1
  560. package/dist/core/intelligence/adaptive-compaction.d.ts.map +1 -1
  561. package/dist/core/intelligence/adaptive-compaction.js +25 -23
  562. package/dist/core/intelligence/adaptive-compaction.js.map +1 -1
  563. package/dist/core/intelligence/budget-forecast.d.ts +1 -1
  564. package/dist/core/intelligence/budget-forecast.d.ts.map +1 -1
  565. package/dist/core/intelligence/budget-forecast.js +8 -9
  566. package/dist/core/intelligence/budget-forecast.js.map +1 -1
  567. package/dist/core/intelligence/context-budget.d.ts +1 -1
  568. package/dist/core/intelligence/context-budget.d.ts.map +1 -1
  569. package/dist/core/intelligence/context-budget.js +30 -30
  570. package/dist/core/intelligence/context-budget.js.map +1 -1
  571. package/dist/core/intelligence/effort-advisor.d.ts.map +1 -1
  572. package/dist/core/intelligence/effort-advisor.js +5 -7
  573. package/dist/core/intelligence/effort-advisor.js.map +1 -1
  574. package/dist/core/intelligence/index.d.ts +8 -8
  575. package/dist/core/intelligence/index.d.ts.map +1 -1
  576. package/dist/core/intelligence/index.js +46 -46
  577. package/dist/core/intelligence/index.js.map +1 -1
  578. package/dist/core/intelligence/playbook/evolution-engine.d.ts +1 -1
  579. package/dist/core/intelligence/playbook/evolution-engine.d.ts.map +1 -1
  580. package/dist/core/intelligence/playbook/evolution-engine.js +29 -27
  581. package/dist/core/intelligence/playbook/evolution-engine.js.map +1 -1
  582. package/dist/core/intelligence/playbook/feedback-collector.d.ts +2 -2
  583. package/dist/core/intelligence/playbook/feedback-collector.d.ts.map +1 -1
  584. package/dist/core/intelligence/playbook/feedback-collector.js +20 -19
  585. package/dist/core/intelligence/playbook/feedback-collector.js.map +1 -1
  586. package/dist/core/intelligence/playbook/index.d.ts +7 -7
  587. package/dist/core/intelligence/playbook/index.d.ts.map +1 -1
  588. package/dist/core/intelligence/playbook/index.js +20 -22
  589. package/dist/core/intelligence/playbook/index.js.map +1 -1
  590. package/dist/core/intelligence/playbook/playbook-store.d.ts +1 -1
  591. package/dist/core/intelligence/playbook/playbook-store.d.ts.map +1 -1
  592. package/dist/core/intelligence/playbook/playbook-store.js +16 -14
  593. package/dist/core/intelligence/playbook/playbook-store.js.map +1 -1
  594. package/dist/core/intelligence/playbook/strategy-extractor.d.ts +2 -2
  595. package/dist/core/intelligence/playbook/strategy-extractor.d.ts.map +1 -1
  596. package/dist/core/intelligence/playbook/strategy-extractor.js +41 -43
  597. package/dist/core/intelligence/playbook/strategy-extractor.js.map +1 -1
  598. package/dist/core/intelligence/playbook/tool-sequence.d.ts.map +1 -1
  599. package/dist/core/intelligence/playbook/tool-sequence.js +1 -2
  600. package/dist/core/intelligence/playbook/tool-sequence.js.map +1 -1
  601. package/dist/core/intelligence/playbook/types.d.ts.map +1 -1
  602. package/dist/core/intelligence/progress-tracker.d.ts +1 -1
  603. package/dist/core/intelligence/progress-tracker.d.ts.map +1 -1
  604. package/dist/core/intelligence/progress-tracker.js.map +1 -1
  605. package/dist/core/intelligence/session-compactor.d.ts.map +1 -1
  606. package/dist/core/intelligence/session-compactor.js +23 -27
  607. package/dist/core/intelligence/session-compactor.js.map +1 -1
  608. package/dist/core/intelligence/trajectory.d.ts.map +1 -1
  609. package/dist/core/intelligence/trajectory.js +37 -26
  610. package/dist/core/intelligence/trajectory.js.map +1 -1
  611. package/dist/core/knowledge-graph/entity-extractor.d.ts +1 -1
  612. package/dist/core/knowledge-graph/entity-extractor.d.ts.map +1 -1
  613. package/dist/core/knowledge-graph/entity-extractor.js +13 -13
  614. package/dist/core/knowledge-graph/entity-extractor.js.map +1 -1
  615. package/dist/core/knowledge-graph/graph.d.ts +1 -1
  616. package/dist/core/knowledge-graph/graph.d.ts.map +1 -1
  617. package/dist/core/knowledge-graph/graph.js +59 -64
  618. package/dist/core/knowledge-graph/graph.js.map +1 -1
  619. package/dist/core/knowledge-graph/index.d.ts +3 -3
  620. package/dist/core/knowledge-graph/index.d.ts.map +1 -1
  621. package/dist/core/knowledge-graph/index.js +13 -13
  622. package/dist/core/knowledge-graph/index.js.map +1 -1
  623. package/dist/core/knowledge-graph/types.d.ts.map +1 -1
  624. package/dist/core/knowledge-graph/types.js.map +1 -1
  625. package/dist/core/memory/access-heatmap.d.ts.map +1 -1
  626. package/dist/core/memory/access-heatmap.js +5 -7
  627. package/dist/core/memory/access-heatmap.js.map +1 -1
  628. package/dist/core/memory/adaptive-strategy.d.ts +1 -1
  629. package/dist/core/memory/adaptive-strategy.d.ts.map +1 -1
  630. package/dist/core/memory/adaptive-strategy.js +11 -15
  631. package/dist/core/memory/adaptive-strategy.js.map +1 -1
  632. package/dist/core/memory/consolidation.d.ts +2 -2
  633. package/dist/core/memory/consolidation.d.ts.map +1 -1
  634. package/dist/core/memory/consolidation.js +49 -54
  635. package/dist/core/memory/consolidation.js.map +1 -1
  636. package/dist/core/memory/cross-linker.d.ts +1 -1
  637. package/dist/core/memory/cross-linker.d.ts.map +1 -1
  638. package/dist/core/memory/cross-linker.js +10 -12
  639. package/dist/core/memory/cross-linker.js.map +1 -1
  640. package/dist/core/memory/distillation.d.ts +1 -1
  641. package/dist/core/memory/distillation.d.ts.map +1 -1
  642. package/dist/core/memory/distillation.js +82 -22
  643. package/dist/core/memory/distillation.js.map +1 -1
  644. package/dist/core/memory/failure-registry.d.ts.map +1 -1
  645. package/dist/core/memory/failure-registry.js +9 -8
  646. package/dist/core/memory/failure-registry.js.map +1 -1
  647. package/dist/core/memory/formatters.d.ts +1 -1
  648. package/dist/core/memory/formatters.d.ts.map +1 -1
  649. package/dist/core/memory/formatters.js +3 -3
  650. package/dist/core/memory/formatters.js.map +1 -1
  651. package/dist/core/memory/global-memory.d.ts +1 -1
  652. package/dist/core/memory/global-memory.d.ts.map +1 -1
  653. package/dist/core/memory/global-memory.js +21 -16
  654. package/dist/core/memory/global-memory.js.map +1 -1
  655. package/dist/core/memory/graph.d.ts.map +1 -1
  656. package/dist/core/memory/graph.js +34 -22
  657. package/dist/core/memory/graph.js.map +1 -1
  658. package/dist/core/memory/hybrid-retrieval.d.ts +1 -1
  659. package/dist/core/memory/hybrid-retrieval.d.ts.map +1 -1
  660. package/dist/core/memory/hybrid-retrieval.js +12 -10
  661. package/dist/core/memory/hybrid-retrieval.js.map +1 -1
  662. package/dist/core/memory/index.d.ts +29 -35
  663. package/dist/core/memory/index.d.ts.map +1 -1
  664. package/dist/core/memory/index.js +219 -223
  665. package/dist/core/memory/index.js.map +1 -1
  666. package/dist/core/memory/memory-capture-agent.d.ts +1 -1
  667. package/dist/core/memory/memory-capture-agent.d.ts.map +1 -1
  668. package/dist/core/memory/memory-capture-agent.js +108 -17
  669. package/dist/core/memory/memory-capture-agent.js.map +1 -1
  670. package/dist/core/memory/memory-decay.d.ts +1 -1
  671. package/dist/core/memory/memory-decay.d.ts.map +1 -1
  672. package/dist/core/memory/memory-decay.js +7 -9
  673. package/dist/core/memory/memory-decay.js.map +1 -1
  674. package/dist/core/memory/memory-rehearsal-agent.d.ts +2 -2
  675. package/dist/core/memory/memory-rehearsal-agent.d.ts.map +1 -1
  676. package/dist/core/memory/memory-rehearsal-agent.js +9 -11
  677. package/dist/core/memory/memory-rehearsal-agent.js.map +1 -1
  678. package/dist/core/memory/memory-retrieval-agent.d.ts +1 -1
  679. package/dist/core/memory/memory-retrieval-agent.d.ts.map +1 -1
  680. package/dist/core/memory/memory-retrieval-agent.js +11 -11
  681. package/dist/core/memory/memory-retrieval-agent.js.map +1 -1
  682. package/dist/core/memory/memory-staging.d.ts +1 -1
  683. package/dist/core/memory/memory-staging.d.ts.map +1 -1
  684. package/dist/core/memory/memory-staging.js +7 -7
  685. package/dist/core/memory/memory-staging.js.map +1 -1
  686. package/dist/core/memory/memory-store.d.ts +2 -2
  687. package/dist/core/memory/memory-store.d.ts.map +1 -1
  688. package/dist/core/memory/memory-store.js +13 -13
  689. package/dist/core/memory/memory-store.js.map +1 -1
  690. package/dist/core/memory/pattern-feedback.d.ts +1 -1
  691. package/dist/core/memory/pattern-feedback.d.ts.map +1 -1
  692. package/dist/core/memory/pattern-feedback.js +3 -5
  693. package/dist/core/memory/pattern-feedback.js.map +1 -1
  694. package/dist/core/memory/pattern-learner.d.ts.map +1 -1
  695. package/dist/core/memory/pattern-learner.js +13 -13
  696. package/dist/core/memory/pattern-learner.js.map +1 -1
  697. package/dist/core/memory/proactive-extractor.d.ts.map +1 -1
  698. package/dist/core/memory/proactive-extractor.js +3 -5
  699. package/dist/core/memory/proactive-extractor.js.map +1 -1
  700. package/dist/core/memory/recitation.d.ts.map +1 -1
  701. package/dist/core/memory/recitation.js +5 -9
  702. package/dist/core/memory/recitation.js.map +1 -1
  703. package/dist/core/memory/retrieval-optimizer.d.ts.map +1 -1
  704. package/dist/core/memory/retrieval-optimizer.js +13 -16
  705. package/dist/core/memory/retrieval-optimizer.js.map +1 -1
  706. package/dist/core/memory/retrieval.d.ts +1 -1
  707. package/dist/core/memory/retrieval.d.ts.map +1 -1
  708. package/dist/core/memory/retrieval.js +4 -5
  709. package/dist/core/memory/retrieval.js.map +1 -1
  710. package/dist/core/memory/semantic-recall.d.ts +2 -2
  711. package/dist/core/memory/semantic-recall.d.ts.map +1 -1
  712. package/dist/core/memory/semantic-recall.js +6 -8
  713. package/dist/core/memory/semantic-recall.js.map +1 -1
  714. package/dist/core/memory/semantic-validation.d.ts.map +1 -1
  715. package/dist/core/memory/semantic-validation.js +22 -21
  716. package/dist/core/memory/semantic-validation.js.map +1 -1
  717. package/dist/core/memory/similarity-utils.d.ts +1 -1
  718. package/dist/core/memory/similarity-utils.d.ts.map +1 -1
  719. package/dist/core/memory/similarity-utils.js +2 -3
  720. package/dist/core/memory/similarity-utils.js.map +1 -1
  721. package/dist/core/memory/spaced-repetition.d.ts.map +1 -1
  722. package/dist/core/memory/spaced-repetition.js +9 -8
  723. package/dist/core/memory/spaced-repetition.js.map +1 -1
  724. package/dist/core/memory/store.d.ts +1 -1
  725. package/dist/core/memory/store.d.ts.map +1 -1
  726. package/dist/core/memory/store.js +3 -3
  727. package/dist/core/memory/store.js.map +1 -1
  728. package/dist/core/memory/types.d.ts.map +1 -1
  729. package/dist/core/memory/types.js +4 -4
  730. package/dist/core/memory/types.js.map +1 -1
  731. package/dist/core/memory/virtual-memory.d.ts +1 -1
  732. package/dist/core/memory/virtual-memory.d.ts.map +1 -1
  733. package/dist/core/memory/virtual-memory.js +23 -35
  734. package/dist/core/memory/virtual-memory.js.map +1 -1
  735. package/dist/core/memory/xml-utils.d.ts +1 -1
  736. package/dist/core/memory/xml-utils.d.ts.map +1 -1
  737. package/dist/core/memory/xml-utils.js +5 -6
  738. package/dist/core/memory/xml-utils.js.map +1 -1
  739. package/dist/core/plans/plan-manager.d.ts.map +1 -1
  740. package/dist/core/plans/plan-manager.js +15 -7
  741. package/dist/core/plans/plan-manager.js.map +1 -1
  742. package/dist/core/provider/storage.d.ts.map +1 -1
  743. package/dist/core/provider/storage.js +14 -15
  744. package/dist/core/provider/storage.js.map +1 -1
  745. package/dist/core/ralph/git-integration.d.ts.map +1 -1
  746. package/dist/core/ralph/git-integration.js +2 -4
  747. package/dist/core/ralph/git-integration.js.map +1 -1
  748. package/dist/core/ralph/index.d.ts +13 -13
  749. package/dist/core/ralph/index.d.ts.map +1 -1
  750. package/dist/core/ralph/index.js +11 -11
  751. package/dist/core/ralph/index.js.map +1 -1
  752. package/dist/core/ralph/learning-consolidator.d.ts +1 -1
  753. package/dist/core/ralph/learning-consolidator.d.ts.map +1 -1
  754. package/dist/core/ralph/learning-consolidator.js +141 -33
  755. package/dist/core/ralph/learning-consolidator.js.map +1 -1
  756. package/dist/core/ralph/metrics.d.ts +1 -1
  757. package/dist/core/ralph/metrics.d.ts.map +1 -1
  758. package/dist/core/ralph/metrics.js +14 -22
  759. package/dist/core/ralph/metrics.js.map +1 -1
  760. package/dist/core/ralph/prd-generator.d.ts +1 -1
  761. package/dist/core/ralph/prd-generator.d.ts.map +1 -1
  762. package/dist/core/ralph/prd-generator.js +20 -20
  763. package/dist/core/ralph/prd-generator.js.map +1 -1
  764. package/dist/core/ralph/progress-tracker.d.ts +1 -1
  765. package/dist/core/ralph/progress-tracker.d.ts.map +1 -1
  766. package/dist/core/ralph/progress-tracker.js +26 -27
  767. package/dist/core/ralph/progress-tracker.js.map +1 -1
  768. package/dist/core/ralph/sub-agent-spawner.d.ts +1 -1
  769. package/dist/core/ralph/sub-agent-spawner.d.ts.map +1 -1
  770. package/dist/core/ralph/sub-agent-spawner.js +14 -16
  771. package/dist/core/ralph/sub-agent-spawner.js.map +1 -1
  772. package/dist/core/ralph/task-integration.d.ts +1 -1
  773. package/dist/core/ralph/task-integration.d.ts.map +1 -1
  774. package/dist/core/ralph/task-integration.js +13 -16
  775. package/dist/core/ralph/task-integration.js.map +1 -1
  776. package/dist/core/ralph/types.d.ts.map +1 -1
  777. package/dist/core/ralph/types.js.map +1 -1
  778. package/dist/core/retrieval/hybrid.d.ts +2 -2
  779. package/dist/core/retrieval/hybrid.d.ts.map +1 -1
  780. package/dist/core/retrieval/hybrid.js +3 -3
  781. package/dist/core/retrieval/hybrid.js.map +1 -1
  782. package/dist/core/retrieval/index.d.ts +5 -5
  783. package/dist/core/retrieval/index.d.ts.map +1 -1
  784. package/dist/core/retrieval/index.js +3 -3
  785. package/dist/core/retrieval/index.js.map +1 -1
  786. package/dist/core/retrieval/ranker.d.ts.map +1 -1
  787. package/dist/core/retrieval/ranker.js +17 -15
  788. package/dist/core/retrieval/ranker.js.map +1 -1
  789. package/dist/core/retrieval/stages.d.ts +5 -5
  790. package/dist/core/retrieval/stages.d.ts.map +1 -1
  791. package/dist/core/retrieval/stages.js +14 -15
  792. package/dist/core/retrieval/stages.js.map +1 -1
  793. package/dist/core/retrieval/types.d.ts.map +1 -1
  794. package/dist/core/retrieval/types.js.map +1 -1
  795. package/dist/core/session/index.d.ts +1 -1
  796. package/dist/core/session/index.d.ts.map +1 -1
  797. package/dist/core/session/index.js +1 -1
  798. package/dist/core/session/index.js.map +1 -1
  799. package/dist/core/session/roadmap-sync.d.ts.map +1 -1
  800. package/dist/core/session/roadmap-sync.js +10 -10
  801. package/dist/core/session/roadmap-sync.js.map +1 -1
  802. package/dist/core/spec-analyzer/feedback.d.ts +1 -1
  803. package/dist/core/spec-analyzer/feedback.d.ts.map +1 -1
  804. package/dist/core/spec-analyzer/feedback.js +8 -4
  805. package/dist/core/spec-analyzer/feedback.js.map +1 -1
  806. package/dist/core/spec-analyzer/index.d.ts +3 -3
  807. package/dist/core/spec-analyzer/index.d.ts.map +1 -1
  808. package/dist/core/spec-analyzer/index.js +4 -4
  809. package/dist/core/spec-analyzer/index.js.map +1 -1
  810. package/dist/core/spec-analyzer/learning-engine.d.ts +1 -1
  811. package/dist/core/spec-analyzer/learning-engine.d.ts.map +1 -1
  812. package/dist/core/spec-analyzer/learning-engine.js +6 -4
  813. package/dist/core/spec-analyzer/learning-engine.js.map +1 -1
  814. package/dist/core/spec-analyzer/outcome-store.d.ts +1 -1
  815. package/dist/core/spec-analyzer/outcome-store.d.ts.map +1 -1
  816. package/dist/core/spec-analyzer/outcome-store.js +11 -17
  817. package/dist/core/spec-analyzer/outcome-store.js.map +1 -1
  818. package/dist/core/spec-analyzer/question-context.d.ts.map +1 -1
  819. package/dist/core/spec-analyzer/question-context.js +6 -13
  820. package/dist/core/spec-analyzer/question-context.js.map +1 -1
  821. package/dist/core/spec-analyzer/question-generator.d.ts.map +1 -1
  822. package/dist/core/spec-analyzer/question-generator.js +7 -8
  823. package/dist/core/spec-analyzer/question-generator.js.map +1 -1
  824. package/dist/core/spec-analyzer/question-templates.d.ts.map +1 -1
  825. package/dist/core/spec-analyzer/question-templates.js +6 -12
  826. package/dist/core/spec-analyzer/question-templates.js.map +1 -1
  827. package/dist/core/spec-analyzer/question-types.d.ts.map +1 -1
  828. package/dist/core/spec-analyzer/question-types.js.map +1 -1
  829. package/dist/core/spec-analyzer/types.d.ts.map +1 -1
  830. package/dist/core/spec-analyzer/types.js.map +1 -1
  831. package/dist/core/tasks/index.d.ts +2 -2
  832. package/dist/core/tasks/index.d.ts.map +1 -1
  833. package/dist/core/tasks/index.js +7 -7
  834. package/dist/core/tasks/index.js.map +1 -1
  835. package/dist/core/tasks/registry.d.ts +1 -1
  836. package/dist/core/tasks/registry.d.ts.map +1 -1
  837. package/dist/core/tasks/registry.js.map +1 -1
  838. package/dist/core/tasks/todo-sync.d.ts +1 -1
  839. package/dist/core/tasks/todo-sync.d.ts.map +1 -1
  840. package/dist/core/tasks/todo-sync.js +2 -2
  841. package/dist/core/tasks/todo-sync.js.map +1 -1
  842. package/dist/core/tasks/types.d.ts.map +1 -1
  843. package/dist/core/tasks/types.js.map +1 -1
  844. package/dist/core/test-optimization/file-test-mapper.d.ts +1 -1
  845. package/dist/core/test-optimization/file-test-mapper.d.ts.map +1 -1
  846. package/dist/core/test-optimization/file-test-mapper.js +2 -2
  847. package/dist/core/test-optimization/file-test-mapper.js.map +1 -1
  848. package/dist/core/test-optimization/impact-analyzer.d.ts.map +1 -1
  849. package/dist/core/test-optimization/impact-analyzer.js +4 -4
  850. package/dist/core/test-optimization/impact-analyzer.js.map +1 -1
  851. package/dist/core/test-optimization/index.d.ts +6 -6
  852. package/dist/core/test-optimization/index.d.ts.map +1 -1
  853. package/dist/core/test-optimization/index.js +6 -6
  854. package/dist/core/test-optimization/index.js.map +1 -1
  855. package/dist/core/test-optimization/scope-analyzer.d.ts +1 -1
  856. package/dist/core/test-optimization/scope-analyzer.d.ts.map +1 -1
  857. package/dist/core/test-optimization/scope-analyzer.js +14 -14
  858. package/dist/core/test-optimization/scope-analyzer.js.map +1 -1
  859. package/dist/core/test-optimization/test-state-manager.d.ts +1 -1
  860. package/dist/core/test-optimization/test-state-manager.d.ts.map +1 -1
  861. package/dist/core/test-optimization/test-state-manager.js.map +1 -1
  862. package/dist/core/test-optimization/types.d.ts.map +1 -1
  863. package/dist/core/traces/context-transitions.d.ts +1 -1
  864. package/dist/core/traces/context-transitions.d.ts.map +1 -1
  865. package/dist/core/traces/context-transitions.js +5 -7
  866. package/dist/core/traces/context-transitions.js.map +1 -1
  867. package/dist/core/traces/execution-tree.d.ts +1 -1
  868. package/dist/core/traces/execution-tree.d.ts.map +1 -1
  869. package/dist/core/traces/execution-tree.js +16 -10
  870. package/dist/core/traces/execution-tree.js.map +1 -1
  871. package/dist/core/traces/index.d.ts +6 -6
  872. package/dist/core/traces/index.d.ts.map +1 -1
  873. package/dist/core/traces/index.js +16 -16
  874. package/dist/core/traces/index.js.map +1 -1
  875. package/dist/core/traces/memory-access-log.d.ts +1 -1
  876. package/dist/core/traces/memory-access-log.d.ts.map +1 -1
  877. package/dist/core/traces/memory-access-log.js +21 -15
  878. package/dist/core/traces/memory-access-log.js.map +1 -1
  879. package/dist/core/traces/trace-exporter.d.ts +1 -1
  880. package/dist/core/traces/trace-exporter.d.ts.map +1 -1
  881. package/dist/core/traces/trace-exporter.js +533 -522
  882. package/dist/core/traces/trace-exporter.js.map +1 -1
  883. package/dist/core/traces/types.d.ts.map +1 -1
  884. package/dist/core/traces/types.js.map +1 -1
  885. package/dist/core/updater/index.d.ts +3 -3
  886. package/dist/core/updater/index.d.ts.map +1 -1
  887. package/dist/core/updater/index.js +3 -3
  888. package/dist/core/updater/index.js.map +1 -1
  889. package/dist/core/updater/types.d.ts.map +1 -1
  890. package/dist/core/updater/types.js.map +1 -1
  891. package/dist/core/updater/update-executor.d.ts +1 -1
  892. package/dist/core/updater/update-executor.d.ts.map +1 -1
  893. package/dist/core/updater/update-executor.js +5 -5
  894. package/dist/core/updater/update-executor.js.map +1 -1
  895. package/dist/core/updater/version-checker.d.ts +1 -1
  896. package/dist/core/updater/version-checker.d.ts.map +1 -1
  897. package/dist/core/updater/version-checker.js +2 -2
  898. package/dist/core/updater/version-checker.js.map +1 -1
  899. package/dist/core/validation/ambiguity-detector.d.ts +1 -1
  900. package/dist/core/validation/ambiguity-detector.d.ts.map +1 -1
  901. package/dist/core/validation/ambiguity-detector.js +1 -1
  902. package/dist/core/validation/ambiguity-detector.js.map +1 -1
  903. package/dist/core/validation/confidence-display.d.ts.map +1 -1
  904. package/dist/core/validation/confidence-display.js +1 -1
  905. package/dist/core/validation/confidence-display.js.map +1 -1
  906. package/dist/core/validation/confidence-scorer.d.ts +1 -1
  907. package/dist/core/validation/confidence-scorer.d.ts.map +1 -1
  908. package/dist/core/validation/confidence-scorer.js +2 -3
  909. package/dist/core/validation/confidence-scorer.js.map +1 -1
  910. package/dist/core/validation/edge-case-analyzer.d.ts +1 -1
  911. package/dist/core/validation/edge-case-analyzer.d.ts.map +1 -1
  912. package/dist/core/validation/edge-case-analyzer.js +1 -1
  913. package/dist/core/validation/edge-case-analyzer.js.map +1 -1
  914. package/dist/core/validation/engine.d.ts +2 -2
  915. package/dist/core/validation/engine.d.ts.map +1 -1
  916. package/dist/core/validation/engine.js +4 -4
  917. package/dist/core/validation/engine.js.map +1 -1
  918. package/dist/core/validation/impact-assessor.d.ts +1 -1
  919. package/dist/core/validation/impact-assessor.d.ts.map +1 -1
  920. package/dist/core/validation/impact-assessor.js +5 -1
  921. package/dist/core/validation/impact-assessor.js.map +1 -1
  922. package/dist/core/validation/index.d.ts +11 -11
  923. package/dist/core/validation/index.d.ts.map +1 -1
  924. package/dist/core/validation/index.js +11 -11
  925. package/dist/core/validation/index.js.map +1 -1
  926. package/dist/core/validation/pattern-trust.d.ts.map +1 -1
  927. package/dist/core/validation/pattern-trust.js +2 -2
  928. package/dist/core/validation/pattern-trust.js.map +1 -1
  929. package/dist/core/validation/question-generator.d.ts +1 -1
  930. package/dist/core/validation/question-generator.d.ts.map +1 -1
  931. package/dist/core/validation/question-generator.js +10 -6
  932. package/dist/core/validation/question-generator.js.map +1 -1
  933. package/dist/core/validation/rules.d.ts +1 -1
  934. package/dist/core/validation/rules.d.ts.map +1 -1
  935. package/dist/core/validation/rules.js +2 -2
  936. package/dist/core/validation/rules.js.map +1 -1
  937. package/dist/core/validation/types.d.ts.map +1 -1
  938. package/dist/hooks/index.d.ts +2 -5
  939. package/dist/hooks/index.d.ts.map +1 -1
  940. package/dist/hooks/index.js +3 -6
  941. package/dist/hooks/index.js.map +1 -1
  942. package/dist/hooks/post-edit.js +692 -619
  943. package/dist/hooks/post-edit.js.map +1 -1
  944. package/dist/hooks/post-execution.js +615 -615
  945. package/dist/hooks/post-execution.js.map +1 -1
  946. package/dist/hooks/pre-compact.js +331 -331
  947. package/dist/hooks/pre-compact.js.map +1 -1
  948. package/dist/hooks/pre-tool-use.js +309 -309
  949. package/dist/hooks/pre-tool-use.js.map +1 -1
  950. package/dist/hooks/pre-validate.js +542 -542
  951. package/dist/hooks/pre-validate.js.map +1 -1
  952. package/dist/hooks/session-end.js +157 -157
  953. package/dist/hooks/session-end.js.map +1 -1
  954. package/dist/hooks/session-start-verify.d.ts.map +1 -1
  955. package/dist/hooks/session-start-verify.js +6 -7
  956. package/dist/hooks/session-start-verify.js.map +1 -1
  957. package/dist/hooks/session-start.js +494 -379
  958. package/dist/hooks/session-start.js.map +1 -1
  959. package/dist/hooks/shared/index.d.ts +1 -1
  960. package/dist/hooks/shared/index.d.ts.map +1 -1
  961. package/dist/hooks/shared/index.js +39 -46
  962. package/dist/hooks/shared/index.js.map +1 -1
  963. package/dist/hooks/shared/paths.js +27 -27
  964. package/dist/hooks/shared/paths.js.map +1 -1
  965. package/dist/hooks/shared/session.d.ts.map +1 -1
  966. package/dist/hooks/shared/session.js +59 -59
  967. package/dist/hooks/shared/session.js.map +1 -1
  968. package/dist/hooks/shared/utils.d.ts +1 -1
  969. package/dist/hooks/shared/utils.d.ts.map +1 -1
  970. package/dist/hooks/shared/utils.js +43 -43
  971. package/dist/hooks/shared/utils.js.map +1 -1
  972. package/dist/hooks/subagent-start.js.map +1 -1
  973. package/dist/hooks/subagent-stop.js +222 -222
  974. package/dist/hooks/subagent-stop.js.map +1 -1
  975. package/dist/hooks/types.d.ts.map +1 -1
  976. package/dist/hooks/types.js +1 -1
  977. package/dist/hooks/types.js.map +1 -1
  978. package/dist/hooks/user-prompt-submit.js +951 -851
  979. package/dist/hooks/user-prompt-submit.js.map +1 -1
  980. package/dist/hud/config-counter.js +2 -5
  981. package/dist/hud/config-counter.js.map +1 -1
  982. package/dist/hud/config.d.ts +3 -28
  983. package/dist/hud/config.d.ts.map +1 -1
  984. package/dist/hud/config.js +9 -61
  985. package/dist/hud/config.js.map +1 -1
  986. package/dist/hud/context-tracker.d.ts.map +1 -1
  987. package/dist/hud/context-tracker.js +1 -1
  988. package/dist/hud/context-tracker.js.map +1 -1
  989. package/dist/hud/index.d.ts +10 -10
  990. package/dist/hud/index.d.ts.map +1 -1
  991. package/dist/hud/index.js +21 -20
  992. package/dist/hud/index.js.map +1 -1
  993. package/dist/hud/mcp-status.js +1 -1
  994. package/dist/hud/mcp-status.js.map +1 -1
  995. package/dist/hud/plan-detector.js +1 -1
  996. package/dist/hud/plan-detector.js.map +1 -1
  997. package/dist/hud/render/agent-status.d.ts.map +1 -1
  998. package/dist/hud/render/agent-status.js +4 -8
  999. package/dist/hud/render/agent-status.js.map +1 -1
  1000. package/dist/hud/render/blockers-badge.d.ts +1 -1
  1001. package/dist/hud/render/blockers-badge.d.ts.map +1 -1
  1002. package/dist/hud/render/blockers-badge.js.map +1 -1
  1003. package/dist/hud/render/budget-bar.d.ts +1 -3
  1004. package/dist/hud/render/budget-bar.d.ts.map +1 -1
  1005. package/dist/hud/render/budget-bar.js +5 -9
  1006. package/dist/hud/render/budget-bar.js.map +1 -1
  1007. package/dist/hud/render/budget-pressure.d.ts +1 -1
  1008. package/dist/hud/render/budget-pressure.d.ts.map +1 -1
  1009. package/dist/hud/render/budget-pressure.js.map +1 -1
  1010. package/dist/hud/render/cache-stats.d.ts +1 -1
  1011. package/dist/hud/render/cache-stats.d.ts.map +1 -1
  1012. package/dist/hud/render/cache-stats.js.map +1 -1
  1013. package/dist/hud/render/circuit.d.ts +1 -1
  1014. package/dist/hud/render/circuit.d.ts.map +1 -1
  1015. package/dist/hud/render/circuit.js +2 -6
  1016. package/dist/hud/render/circuit.js.map +1 -1
  1017. package/dist/hud/render/config-counts.js.map +1 -1
  1018. package/dist/hud/render/context-health.d.ts +1 -1
  1019. package/dist/hud/render/context-health.d.ts.map +1 -1
  1020. package/dist/hud/render/context-health.js.map +1 -1
  1021. package/dist/hud/render/cost-display.d.ts +1 -1
  1022. package/dist/hud/render/cost-display.d.ts.map +1 -1
  1023. package/dist/hud/render/cost-display.js.map +1 -1
  1024. package/dist/hud/render/deferred-status.d.ts +1 -1
  1025. package/dist/hud/render/deferred-status.d.ts.map +1 -1
  1026. package/dist/hud/render/deferred-status.js.map +1 -1
  1027. package/dist/hud/render/focus-display.d.ts +1 -1
  1028. package/dist/hud/render/focus-display.d.ts.map +1 -1
  1029. package/dist/hud/render/focus-display.js +2 -2
  1030. package/dist/hud/render/focus-display.js.map +1 -1
  1031. package/dist/hud/render/git-status.d.ts +1 -1
  1032. package/dist/hud/render/git-status.d.ts.map +1 -1
  1033. package/dist/hud/render/git-status.js +1 -1
  1034. package/dist/hud/render/git-status.js.map +1 -1
  1035. package/dist/hud/render/index.d.ts +19 -19
  1036. package/dist/hud/render/index.d.ts.map +1 -1
  1037. package/dist/hud/render/index.js +29 -29
  1038. package/dist/hud/render/index.js.map +1 -1
  1039. package/dist/hud/render/layouts.d.ts +1 -1
  1040. package/dist/hud/render/layouts.d.ts.map +1 -1
  1041. package/dist/hud/render/layouts.js +20 -18
  1042. package/dist/hud/render/layouts.js.map +1 -1
  1043. package/dist/hud/render/model-plan.d.ts.map +1 -1
  1044. package/dist/hud/render/model-plan.js.map +1 -1
  1045. package/dist/hud/render/phase-indicator.d.ts.map +1 -1
  1046. package/dist/hud/render/phase-indicator.js.map +1 -1
  1047. package/dist/hud/render/session-limit.d.ts +1 -1
  1048. package/dist/hud/render/session-limit.d.ts.map +1 -1
  1049. package/dist/hud/render/session-limit.js +0 -1
  1050. package/dist/hud/render/session-limit.js.map +1 -1
  1051. package/dist/hud/render/session-timer.js.map +1 -1
  1052. package/dist/hud/render/status-icons.d.ts +1 -1
  1053. package/dist/hud/render/status-icons.d.ts.map +1 -1
  1054. package/dist/hud/render/status-icons.js +1 -3
  1055. package/dist/hud/render/status-icons.js.map +1 -1
  1056. package/dist/hud/render/todo-progress.d.ts +1 -1
  1057. package/dist/hud/render/todo-progress.d.ts.map +1 -1
  1058. package/dist/hud/render/todo-progress.js +10 -14
  1059. package/dist/hud/render/todo-progress.js.map +1 -1
  1060. package/dist/hud/render/tool-usage.d.ts +1 -1
  1061. package/dist/hud/render/tool-usage.d.ts.map +1 -1
  1062. package/dist/hud/render/tool-usage.js +4 -8
  1063. package/dist/hud/render/tool-usage.js.map +1 -1
  1064. package/dist/hud/render/tools.d.ts.map +1 -1
  1065. package/dist/hud/render/tools.js +3 -7
  1066. package/dist/hud/render/tools.js.map +1 -1
  1067. package/dist/hud/render/weekly-usage.d.ts +1 -1
  1068. package/dist/hud/render/weekly-usage.d.ts.map +1 -1
  1069. package/dist/hud/render/weekly-usage.js +0 -1
  1070. package/dist/hud/render/weekly-usage.js.map +1 -1
  1071. package/dist/hud/session-reader.js +4 -4
  1072. package/dist/hud/session-reader.js.map +1 -1
  1073. package/dist/hud/stdin.d.ts +0 -3
  1074. package/dist/hud/stdin.d.ts.map +1 -1
  1075. package/dist/hud/stdin.js +10 -35
  1076. package/dist/hud/stdin.js.map +1 -1
  1077. package/dist/hud/transcript-reader.d.ts +1 -1
  1078. package/dist/hud/transcript-reader.d.ts.map +1 -1
  1079. package/dist/hud/transcript-reader.js +10 -16
  1080. package/dist/hud/transcript-reader.js.map +1 -1
  1081. package/dist/hud/types.d.ts +1 -3
  1082. package/dist/hud/types.d.ts.map +1 -1
  1083. package/dist/hud/usage-api.d.ts.map +1 -1
  1084. package/dist/hud/usage-api.js +4 -4
  1085. package/dist/hud/usage-api.js.map +1 -1
  1086. package/dist/hud/usage-rotation.d.ts.map +1 -1
  1087. package/dist/hud/usage-rotation.js +2 -2
  1088. package/dist/hud/usage-rotation.js.map +1 -1
  1089. package/dist/hud/usage-tracker.d.ts +1 -1
  1090. package/dist/hud/usage-tracker.d.ts.map +1 -1
  1091. package/dist/hud/usage-tracker.js +7 -7
  1092. package/dist/hud/usage-tracker.js.map +1 -1
  1093. package/dist/index.d.ts +1 -1
  1094. package/dist/index.d.ts.map +1 -1
  1095. package/dist/index.js +1 -1
  1096. package/dist/index.js.map +1 -1
  1097. package/dist/mcp/cache.d.ts.map +1 -1
  1098. package/dist/mcp/cache.js.map +1 -1
  1099. package/dist/mcp/focus-filter.d.ts +74 -0
  1100. package/dist/mcp/focus-filter.d.ts.map +1 -0
  1101. package/dist/mcp/focus-filter.js +229 -0
  1102. package/dist/mcp/focus-filter.js.map +1 -0
  1103. package/dist/mcp/index.d.ts +3 -3
  1104. package/dist/mcp/index.d.ts.map +1 -1
  1105. package/dist/mcp/index.js +9 -9
  1106. package/dist/mcp/index.js.map +1 -1
  1107. package/dist/mcp/registry.d.ts.map +1 -1
  1108. package/dist/mcp/registry.js +9 -9
  1109. package/dist/mcp/registry.js.map +1 -1
  1110. package/dist/mcp/resources/index.d.ts.map +1 -1
  1111. package/dist/mcp/resources/index.js +20 -13
  1112. package/dist/mcp/resources/index.js.map +1 -1
  1113. package/dist/mcp/server.d.ts +3 -2
  1114. package/dist/mcp/server.d.ts.map +1 -1
  1115. package/dist/mcp/server.js +28 -13
  1116. package/dist/mcp/server.js.map +1 -1
  1117. package/dist/mcp/setup.d.ts.map +1 -1
  1118. package/dist/mcp/setup.js +5 -2
  1119. package/dist/mcp/setup.js.map +1 -1
  1120. package/dist/mcp/tool-catalog.d.ts.map +1 -1
  1121. package/dist/mcp/tool-catalog.js +43 -15
  1122. package/dist/mcp/tool-catalog.js.map +1 -1
  1123. package/dist/mcp/tool-loader.d.ts +2 -2
  1124. package/dist/mcp/tool-loader.d.ts.map +1 -1
  1125. package/dist/mcp/tool-loader.js +1 -1
  1126. package/dist/mcp/tool-loader.js.map +1 -1
  1127. package/dist/mcp/tool-recommender.d.ts +1 -1
  1128. package/dist/mcp/tool-recommender.d.ts.map +1 -1
  1129. package/dist/mcp/tool-recommender.js +101 -26
  1130. package/dist/mcp/tool-recommender.js.map +1 -1
  1131. package/dist/mcp/tool-tiers.d.ts.map +1 -1
  1132. package/dist/mcp/tool-tiers.js.map +1 -1
  1133. package/dist/mcp/tools/agents.d.ts.map +1 -1
  1134. package/dist/mcp/tools/agents.js +93 -59
  1135. package/dist/mcp/tools/agents.js.map +1 -1
  1136. package/dist/mcp/tools/auto-inject.d.ts +36 -0
  1137. package/dist/mcp/tools/auto-inject.d.ts.map +1 -0
  1138. package/dist/mcp/tools/auto-inject.js +143 -0
  1139. package/dist/mcp/tools/auto-inject.js.map +1 -0
  1140. package/dist/mcp/tools/auto-unload.d.ts +29 -0
  1141. package/dist/mcp/tools/auto-unload.d.ts.map +1 -0
  1142. package/dist/mcp/tools/auto-unload.js +148 -0
  1143. package/dist/mcp/tools/auto-unload.js.map +1 -0
  1144. package/dist/mcp/tools/chunking.d.ts.map +1 -1
  1145. package/dist/mcp/tools/chunking.js +8 -12
  1146. package/dist/mcp/tools/chunking.js.map +1 -1
  1147. package/dist/mcp/tools/effort.d.ts.map +1 -1
  1148. package/dist/mcp/tools/effort.js +8 -7
  1149. package/dist/mcp/tools/effort.js.map +1 -1
  1150. package/dist/mcp/tools/embeddings.d.ts.map +1 -1
  1151. package/dist/mcp/tools/embeddings.js +3 -3
  1152. package/dist/mcp/tools/embeddings.js.map +1 -1
  1153. package/dist/mcp/tools/health.d.ts +29 -0
  1154. package/dist/mcp/tools/health.d.ts.map +1 -0
  1155. package/dist/mcp/tools/health.js +168 -0
  1156. package/dist/mcp/tools/health.js.map +1 -0
  1157. package/dist/mcp/tools/index.d.ts +20 -16
  1158. package/dist/mcp/tools/index.d.ts.map +1 -1
  1159. package/dist/mcp/tools/index.js +33 -18
  1160. package/dist/mcp/tools/index.js.map +1 -1
  1161. package/dist/mcp/tools/knowledge-graph.d.ts +1 -1
  1162. package/dist/mcp/tools/knowledge-graph.d.ts.map +1 -1
  1163. package/dist/mcp/tools/knowledge-graph.js +31 -16
  1164. package/dist/mcp/tools/knowledge-graph.js.map +1 -1
  1165. package/dist/mcp/tools/lazy-context.d.ts +1 -1
  1166. package/dist/mcp/tools/lazy-context.d.ts.map +1 -1
  1167. package/dist/mcp/tools/lazy-context.js +15 -13
  1168. package/dist/mcp/tools/lazy-context.js.map +1 -1
  1169. package/dist/mcp/tools/memory.d.ts.map +1 -1
  1170. package/dist/mcp/tools/memory.js +4 -4
  1171. package/dist/mcp/tools/memory.js.map +1 -1
  1172. package/dist/mcp/tools/observability.d.ts.map +1 -1
  1173. package/dist/mcp/tools/observability.js +47 -43
  1174. package/dist/mcp/tools/observability.js.map +1 -1
  1175. package/dist/mcp/tools/plans.d.ts.map +1 -1
  1176. package/dist/mcp/tools/plans.js +3 -7
  1177. package/dist/mcp/tools/plans.js.map +1 -1
  1178. package/dist/mcp/tools/ralph.d.ts +1 -1
  1179. package/dist/mcp/tools/ralph.d.ts.map +1 -1
  1180. package/dist/mcp/tools/ralph.js +36 -33
  1181. package/dist/mcp/tools/ralph.js.map +1 -1
  1182. package/dist/mcp/tools/retrieval.d.ts.map +1 -1
  1183. package/dist/mcp/tools/retrieval.js +10 -14
  1184. package/dist/mcp/tools/retrieval.js.map +1 -1
  1185. package/dist/mcp/tools/scripts.d.ts.map +1 -1
  1186. package/dist/mcp/tools/scripts.js +42 -42
  1187. package/dist/mcp/tools/scripts.js.map +1 -1
  1188. package/dist/mcp/tools/session.d.ts.map +1 -1
  1189. package/dist/mcp/tools/session.js +74 -75
  1190. package/dist/mcp/tools/session.js.map +1 -1
  1191. package/dist/mcp/tools/spec-feedback.d.ts.map +1 -1
  1192. package/dist/mcp/tools/spec-feedback.js +9 -10
  1193. package/dist/mcp/tools/spec-feedback.js.map +1 -1
  1194. package/dist/mcp/tools/tasks.d.ts.map +1 -1
  1195. package/dist/mcp/tools/tasks.js +11 -7
  1196. package/dist/mcp/tools/tasks.js.map +1 -1
  1197. package/dist/mcp/types.d.ts.map +1 -1
  1198. package/dist/mcp/types.js.map +1 -1
  1199. package/dist/mcp/utils/format-helpers.d.ts.map +1 -1
  1200. package/dist/mcp/utils/format-helpers.js +10 -8
  1201. package/dist/mcp/utils/format-helpers.js.map +1 -1
  1202. package/dist/mcp/utils/index.d.ts +4 -4
  1203. package/dist/mcp/utils/index.d.ts.map +1 -1
  1204. package/dist/mcp/utils/index.js +14 -14
  1205. package/dist/mcp/utils/index.js.map +1 -1
  1206. package/dist/mcp/utils/response-builder.d.ts +1 -1
  1207. package/dist/mcp/utils/response-builder.d.ts.map +1 -1
  1208. package/dist/mcp/utils/response-builder.js +2 -6
  1209. package/dist/mcp/utils/response-builder.js.map +1 -1
  1210. package/dist/mcp/utils/response-helpers.d.ts.map +1 -1
  1211. package/dist/mcp/utils/response-helpers.js.map +1 -1
  1212. package/dist/mcp/utils/session-helpers.d.ts.map +1 -1
  1213. package/dist/mcp/utils/session-helpers.js +6 -10
  1214. package/dist/mcp/utils/session-helpers.js.map +1 -1
  1215. package/dist/mcp-server.d.ts.map +1 -1
  1216. package/dist/mcp-server.js +14 -10
  1217. package/dist/mcp-server.js.map +1 -1
  1218. package/dist/plugin/index.d.ts.map +1 -1
  1219. package/dist/plugin/index.js +6 -16
  1220. package/dist/plugin/index.js.map +1 -1
  1221. package/dist/plugin/loader.d.ts +1 -1
  1222. package/dist/plugin/loader.d.ts.map +1 -1
  1223. package/dist/plugin/loader.js +1 -1
  1224. package/dist/plugin/loader.js.map +1 -1
  1225. package/dist/rules/index.d.ts.map +1 -1
  1226. package/dist/rules/index.js +799 -799
  1227. package/dist/rules/index.js.map +1 -1
  1228. package/dist/skills/index.d.ts.map +1 -1
  1229. package/dist/skills/index.js +926 -896
  1230. package/dist/skills/index.js.map +1 -1
  1231. package/dist/statusline/index.d.ts.map +1 -1
  1232. package/dist/statusline/index.js +55 -55
  1233. package/dist/statusline/index.js.map +1 -1
  1234. package/dist/store/index.d.ts +4 -4
  1235. package/dist/store/index.d.ts.map +1 -1
  1236. package/dist/store/index.js +5 -5
  1237. package/dist/store/index.js.map +1 -1
  1238. package/dist/store/installer.d.ts +1 -1
  1239. package/dist/store/installer.d.ts.map +1 -1
  1240. package/dist/store/installer.js +19 -13
  1241. package/dist/store/installer.js.map +1 -1
  1242. package/dist/store/registry.d.ts +1 -1
  1243. package/dist/store/registry.d.ts.map +1 -1
  1244. package/dist/store/registry.js +2 -2
  1245. package/dist/store/registry.js.map +1 -1
  1246. package/dist/store/remote.d.ts +1 -1
  1247. package/dist/store/remote.d.ts.map +1 -1
  1248. package/dist/store/remote.js +9 -6
  1249. package/dist/store/remote.js.map +1 -1
  1250. package/dist/store/types.d.ts.map +1 -1
  1251. package/dist/store/types.js.map +1 -1
  1252. package/dist/utils/ascii-art.js +11 -11
  1253. package/dist/utils/ascii-art.js.map +1 -1
  1254. package/dist/utils/exec.d.ts.map +1 -1
  1255. package/dist/utils/exec.js.map +1 -1
  1256. package/dist/utils/file-system.d.ts.map +1 -1
  1257. package/dist/utils/file-system.js +13 -14
  1258. package/dist/utils/file-system.js.map +1 -1
  1259. package/dist/utils/gitignore.d.ts.map +1 -1
  1260. package/dist/utils/gitignore.js +39 -34
  1261. package/dist/utils/gitignore.js.map +1 -1
  1262. package/dist/utils/validation.d.ts.map +1 -1
  1263. package/dist/utils/validation.js +1 -1
  1264. package/dist/utils/validation.js.map +1 -1
  1265. package/package.json +6 -3
  1266. package/dist/hud/config-tui.d.ts +0 -25
  1267. package/dist/hud/config-tui.d.ts.map +0 -1
  1268. package/dist/hud/config-tui.js +0 -199
  1269. package/dist/hud/config-tui.js.map +0 -1
  1270. package/dist/hud/models.d.ts +0 -58
  1271. package/dist/hud/models.d.ts.map +0 -1
  1272. package/dist/hud/models.js +0 -124
  1273. package/dist/hud/models.js.map +0 -1
  1274. package/dist/hud/token-estimator.d.ts +0 -79
  1275. package/dist/hud/token-estimator.d.ts.map +0 -1
  1276. package/dist/hud/token-estimator.js +0 -126
  1277. package/dist/hud/token-estimator.js.map +0 -1
@@ -5,8 +5,8 @@
5
5
  * Each skill represents a workflow phase with appropriate tools and context.
6
6
  */
7
7
  import { join } from 'path';
8
- import { FileSystem } from '../utils/file-system.js';
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
  ];
@@ -545,49 +545,49 @@ const UTILITY_SKILLS = [
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
  {
@@ -601,47 +601,59 @@ Run \`/dino.handoff\` at the start of a new session to restore context from a pr
601
601
  model: 'sonnet',
602
602
  context: 'fork',
603
603
  effort: 'high',
604
- allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'Glob', 'Grep', 'Task', 'TaskCreate', 'TaskUpdate', 'TaskList', 'AskUserQuestion'],
604
+ allowedTools: [
605
+ 'Read',
606
+ 'Edit',
607
+ 'Write',
608
+ 'Bash',
609
+ 'Glob',
610
+ 'Grep',
611
+ 'Task',
612
+ 'TaskCreate',
613
+ 'TaskUpdate',
614
+ 'TaskList',
615
+ 'AskUserQuestion',
616
+ ],
605
617
  },
606
- content: `# 🔄 Ralph Loop
607
-
608
- Fresh-context iterative execution for large-scale multi-story work.
609
-
610
- ## Prerequisites
611
-
612
- Before starting Ralph Loop:
613
- 1. Run \`/dino.spec\` and achieve **90%+ confidence**
614
- 2. Have a PRD with stories in the required format
615
-
616
- ## Algorithm
617
-
618
- 1. **Initialize** - Parse PRD, create progress file, set max 10 iterations
619
- 2. **Iterate** - For each story:
620
- - Create git checkpoint
621
- - Build sub-agent context (~2K tokens)
622
- - Spawn fresh sub-agent via Task tool
623
- - Run test command
624
- - If pass: mark complete, commit
625
- - If fail: extract learnings, retry (max 2 per story)
626
- 3. **Complete** - Report final status
627
-
628
- ## Story Format
629
-
630
- \`\`\`markdown
631
- ### Story: {title}
632
- **ID:** {unique_id}
633
- **Files:** file1.ts, file2.ts
634
- **Acceptance Criteria:**
635
- - [ ] Criterion 1
636
- - [ ] Criterion 2
637
- **Test Command:** vitest run src/path
638
- \`\`\`
639
-
640
- ## Limits
641
-
642
- - Max 10 total iterations
643
- - Max 2 iterations per story (then manual review)
644
- - Fresh context each iteration (no history accumulation)
618
+ content: `# 🔄 Ralph Loop
619
+
620
+ Fresh-context iterative execution for large-scale multi-story work.
621
+
622
+ ## Prerequisites
623
+
624
+ Before starting Ralph Loop:
625
+ 1. Run \`/dino.spec\` and achieve **90%+ confidence**
626
+ 2. Have a PRD with stories in the required format
627
+
628
+ ## Algorithm
629
+
630
+ 1. **Initialize** - Parse PRD, create progress file, set max 10 iterations
631
+ 2. **Iterate** - For each story:
632
+ - Create git checkpoint
633
+ - Build sub-agent context (~2K tokens)
634
+ - Spawn fresh sub-agent via Task tool
635
+ - Run test command
636
+ - If pass: mark complete, commit
637
+ - If fail: extract learnings, retry (max 2 per story)
638
+ 3. **Complete** - Report final status
639
+
640
+ ## Story Format
641
+
642
+ \`\`\`markdown
643
+ ### Story: {title}
644
+ **ID:** {unique_id}
645
+ **Files:** file1.ts, file2.ts
646
+ **Acceptance Criteria:**
647
+ - [ ] Criterion 1
648
+ - [ ] Criterion 2
649
+ **Test Command:** vitest run src/path
650
+ \`\`\`
651
+
652
+ ## Limits
653
+
654
+ - Max 10 total iterations
655
+ - Max 2 iterations per story (then manual review)
656
+ - Fresh context each iteration (no history accumulation)
645
657
  `,
646
658
  },
647
659
  {
@@ -657,21 +669,21 @@ Before starting Ralph Loop:
657
669
  effort: 'low',
658
670
  allowedTools: ['Read', 'Bash'],
659
671
  },
660
- content: `# 📊 Status
661
-
662
- Quick check of current session state.
663
-
664
- ## Usage
665
-
666
- Run \`/dino.status\` to see:
667
- - Current focus area
668
- - Test/build/lint status
669
- - Active blockers
670
- - Recent changes
671
-
672
- ## Output
673
-
674
- Reads \`.dino/session.md\` and displays formatted status.
672
+ content: `# 📊 Status
673
+
674
+ Quick check of current session state.
675
+
676
+ ## Usage
677
+
678
+ Run \`/dino.status\` to see:
679
+ - Current focus area
680
+ - Test/build/lint status
681
+ - Active blockers
682
+ - Recent changes
683
+
684
+ ## Output
685
+
686
+ Reads \`.dino/session.md\` and displays formatted status.
675
687
  `,
676
688
  },
677
689
  {
@@ -687,57 +699,57 @@ Reads \`.dino/session.md\` and displays formatted status.
687
699
  effort: 'high',
688
700
  allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'AskUserQuestion', 'Glob', 'Grep'],
689
701
  },
690
- content: `# 🚀 Release
691
-
692
- Release workflow with intelligent documentation updates.
693
-
694
- ## Workflow
695
-
696
- 1. **Analyze Context for Doc Updates**
697
- - Check if README.md, ARCHITECTURE.md, CLAUDE.md are in context
698
- - Detect if changes warrant documentation updates:
699
- - New features → README.md
700
- - Architecture changes → ARCHITECTURE.md
701
- - Pattern/command changes → CLAUDE.md
702
- - If file not in context, only read if update is likely needed
703
-
704
- 2. **Confirm Doc Updates**
705
- - Use AskUserQuestion to confirm which docs to update
706
- - Options: Update all detected, Select specific, Skip doc updates
707
- - Show reasoning for each suggested update
708
-
709
- 3. **Update Documentation**
710
- - Apply confirmed documentation changes
711
- - Keep updates focused and minimal
712
-
713
- 4. **Execute Release**
714
- - Run build: \`node build.js\`
715
- - Run tests: \`vitest run\`
716
- - If tests pass, bump version in package.json
717
- - Publish to npm: \`npm publish\`
718
- - Verify publish succeeded
719
-
720
- 5. **Commit and Push**
721
- - Stage all changes
722
- - Create release commit: \`chore: release vX.Y.Z\`
723
- - Push to remote
724
-
725
- ## Doc Update Detection Rules
726
-
727
- | Change Type | Documentation |
728
- |-------------|---------------|
729
- | New feature/command | README.md |
730
- | API changes | README.md, ARCHITECTURE.md |
731
- | Architecture changes | ARCHITECTURE.md |
732
- | Pattern changes | CLAUDE.md |
733
- | Config changes | CLAUDE.md |
734
- | Bug fixes only | None |
735
-
736
- ## Context Efficiency
737
-
738
- - Uses \`context: inherit\` to leverage already-loaded files
739
- - Only reads files not in context when update is detected
740
- - Minimizes token usage by analyzing existing context first
702
+ content: `# 🚀 Release
703
+
704
+ Release workflow with intelligent documentation updates.
705
+
706
+ ## Workflow
707
+
708
+ 1. **Analyze Context for Doc Updates**
709
+ - Check if README.md, ARCHITECTURE.md, CLAUDE.md are in context
710
+ - Detect if changes warrant documentation updates:
711
+ - New features → README.md
712
+ - Architecture changes → ARCHITECTURE.md
713
+ - Pattern/command changes → CLAUDE.md
714
+ - If file not in context, only read if update is likely needed
715
+
716
+ 2. **Confirm Doc Updates**
717
+ - Use AskUserQuestion to confirm which docs to update
718
+ - Options: Update all detected, Select specific, Skip doc updates
719
+ - Show reasoning for each suggested update
720
+
721
+ 3. **Update Documentation**
722
+ - Apply confirmed documentation changes
723
+ - Keep updates focused and minimal
724
+
725
+ 4. **Execute Release**
726
+ - Run build: \`node build.js\`
727
+ - Run tests: \`vitest run\`
728
+ - If tests pass, bump version in package.json
729
+ - Publish to npm: \`npm publish\`
730
+ - Verify publish succeeded
731
+
732
+ 5. **Commit and Push**
733
+ - Stage all changes
734
+ - Create release commit: \`chore: release vX.Y.Z\`
735
+ - Push to remote
736
+
737
+ ## Doc Update Detection Rules
738
+
739
+ | Change Type | Documentation |
740
+ |-------------|---------------|
741
+ | New feature/command | README.md |
742
+ | API changes | README.md, ARCHITECTURE.md |
743
+ | Architecture changes | ARCHITECTURE.md |
744
+ | Pattern changes | CLAUDE.md |
745
+ | Config changes | CLAUDE.md |
746
+ | Bug fixes only | None |
747
+
748
+ ## Context Efficiency
749
+
750
+ - Uses \`context: inherit\` to leverage already-loaded files
751
+ - Only reads files not in context when update is detected
752
+ - Minimizes token usage by analyzing existing context first
741
753
  `,
742
754
  },
743
755
  {
@@ -753,97 +765,97 @@ Release workflow with intelligent documentation updates.
753
765
  effort: 'low',
754
766
  allowedTools: ['Read', 'Glob', 'Write', 'Bash'],
755
767
  },
756
- content: `# Roadmap Management
757
-
758
- Efficiently manage roadmap lifecycle: read, update, and auto-cleanup.
759
-
760
- ## Trigger Detection
761
-
762
- This skill auto-triggers when user prompts contain:
763
- - "continue roadmap", "roadmap progress", "resume roadmap"
764
- - "next phase", "what's next on roadmap"
765
- - "roadmap status", "check roadmap"
766
-
767
- ## Workflow
768
-
769
- ### 1. Load Active Roadmaps
770
-
771
- Read all files from \`.dino/roadmaps/*.md\`:
772
-
773
- \`\`\`bash
774
- ls .dino/roadmaps/*.md 2>/dev/null
775
- \`\`\`
776
-
777
- For each roadmap found, read and parse:
778
- - Title (first H1)
779
- - Phases with status (✅ = done, ⏳ = pending)
780
- - Current phase (first ⏳ phase)
781
-
782
- ### 2. Display Summary
783
-
784
- Output format:
785
- \`\`\`
786
- ## Active Roadmaps
787
-
788
- ### {roadmap-name}
789
- Progress: {completed}/{total} phases ({percentage}%)
790
- Current: Phase {N}: {phase-name}
791
- Next tasks:
792
- - [ ] Task 1
793
- - [ ] Task 2
794
- \`\`\`
795
-
796
- ### 3. On Completion
797
-
798
- When user completes phase work:
799
-
800
- 1. **Update roadmap file** - Change \`⏳\` to \`✅\` for completed phase
801
- 2. **Check if all complete** - If all phases are \`✅\`:
802
- - Move to \`.dino/archives/{roadmap-name}-complete.md\`
803
- - Add completion timestamp at top
804
- - Remove from active roadmaps
805
-
806
- ### 4. Auto-Archive Logic
807
-
808
- A roadmap is complete when:
809
- - All \`### Phase\` sections contain \`✅\` in their header
810
- - OR all \`- [ ]\` items are \`- [x]\`
811
-
812
- Archive command:
813
- \`\`\`bash
814
- mkdir -p .dino/archives
815
- mv .dino/roadmaps/{name}.md .dino/archives/{name}-complete.md
816
- \`\`\`
817
-
818
- ## Output Minimization
819
-
820
- Keep output minimal for token efficiency:
821
- - Only show current phase details
822
- - Collapse completed phases to single line
823
- - Don't repeat full roadmap content
824
-
825
- ## Integration
826
-
827
- Works with:
828
- - \`/dino.hunt\` - Implementation of roadmap tasks
829
- - \`/dino.aging\` - Verification before phase completion
830
- - \`/dino.fossil\` - Archives completed roadmaps
831
-
832
- ## Example Session
833
-
834
- User: "continue roadmap"
835
- 1. Read \`.dino/roadmaps/*.md\`
836
- 2. Output summary of active roadmaps
837
- 3. Show current phase tasks
838
- 4. User completes tasks
839
- 5. Update phase status
840
- 6. If all done, archive roadmap
841
-
842
- ## Notes
843
-
844
- - Roadmaps live in \`.dino/roadmaps/\` (active) or \`.dino/archives/\` (complete)
845
- - Use \`⏳\` for pending, \`✅\` for complete in phase headers
846
- - Archived roadmaps include completion date for reference
768
+ content: `# Roadmap Management
769
+
770
+ Efficiently manage roadmap lifecycle: read, update, and auto-cleanup.
771
+
772
+ ## Trigger Detection
773
+
774
+ This skill auto-triggers when user prompts contain:
775
+ - "continue roadmap", "roadmap progress", "resume roadmap"
776
+ - "next phase", "what's next on roadmap"
777
+ - "roadmap status", "check roadmap"
778
+
779
+ ## Workflow
780
+
781
+ ### 1. Load Active Roadmaps
782
+
783
+ Read all files from \`.dino/roadmaps/*.md\`:
784
+
785
+ \`\`\`bash
786
+ ls .dino/roadmaps/*.md 2>/dev/null
787
+ \`\`\`
788
+
789
+ For each roadmap found, read and parse:
790
+ - Title (first H1)
791
+ - Phases with status (✅ = done, ⏳ = pending)
792
+ - Current phase (first ⏳ phase)
793
+
794
+ ### 2. Display Summary
795
+
796
+ Output format:
797
+ \`\`\`
798
+ ## Active Roadmaps
799
+
800
+ ### {roadmap-name}
801
+ Progress: {completed}/{total} phases ({percentage}%)
802
+ Current: Phase {N}: {phase-name}
803
+ Next tasks:
804
+ - [ ] Task 1
805
+ - [ ] Task 2
806
+ \`\`\`
807
+
808
+ ### 3. On Completion
809
+
810
+ When user completes phase work:
811
+
812
+ 1. **Update roadmap file** - Change \`⏳\` to \`✅\` for completed phase
813
+ 2. **Check if all complete** - If all phases are \`✅\`:
814
+ - Move to \`.dino/archives/{roadmap-name}-complete.md\`
815
+ - Add completion timestamp at top
816
+ - Remove from active roadmaps
817
+
818
+ ### 4. Auto-Archive Logic
819
+
820
+ A roadmap is complete when:
821
+ - All \`### Phase\` sections contain \`✅\` in their header
822
+ - OR all \`- [ ]\` items are \`- [x]\`
823
+
824
+ Archive command:
825
+ \`\`\`bash
826
+ mkdir -p .dino/archives
827
+ mv .dino/roadmaps/{name}.md .dino/archives/{name}-complete.md
828
+ \`\`\`
829
+
830
+ ## Output Minimization
831
+
832
+ Keep output minimal for token efficiency:
833
+ - Only show current phase details
834
+ - Collapse completed phases to single line
835
+ - Don't repeat full roadmap content
836
+
837
+ ## Integration
838
+
839
+ Works with:
840
+ - \`/dino.hunt\` - Implementation of roadmap tasks
841
+ - \`/dino.aging\` - Verification before phase completion
842
+ - \`/dino.fossil\` - Archives completed roadmaps
843
+
844
+ ## Example Session
845
+
846
+ User: "continue roadmap"
847
+ 1. Read \`.dino/roadmaps/*.md\`
848
+ 2. Output summary of active roadmaps
849
+ 3. Show current phase tasks
850
+ 4. User completes tasks
851
+ 5. Update phase status
852
+ 6. If all done, archive roadmap
853
+
854
+ ## Notes
855
+
856
+ - Roadmaps live in \`.dino/roadmaps/\` (active) or \`.dino/archives/\` (complete)
857
+ - Use \`⏳\` for pending, \`✅\` for complete in phase headers
858
+ - Archived roadmaps include completion date for reference
847
859
  `,
848
860
  },
849
861
  {
@@ -860,96 +872,96 @@ User: "continue roadmap"
860
872
  allowedTools: ['Read', 'Grep', 'Glob', 'AskUserQuestion'],
861
873
  disallowedTools: ['Edit', 'Write', 'Bash', 'Task'],
862
874
  },
863
- content: `# 🔒 Audit Phase
864
-
865
- **Strict gatekeeper that validates specifications before implementation.**
866
-
867
- This skill is the AUDITOR agent in the three-agent Ralph Gate system. It can also be used standalone to validate any specification.
868
-
869
- ## Role
870
-
871
- 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.
872
-
873
- ## Scoring System
874
-
875
- ### 1. Specification Completeness (25 points)
876
-
877
- | Criterion | Points | Check |
878
- |-----------|--------|-------|
879
- | Clear problem statement | 5 | What problem are we solving? |
880
- | Explicit success criteria | 5 | How do we know when done? |
881
- | Defined scope boundaries | 5 | What is NOT included? |
882
- | Edge cases identified | 5 | What could go wrong? |
883
- | Error handling specified | 5 | How to handle failures? |
884
-
885
- ### 2. Ambiguity Score (MUST BE ZERO)
886
-
887
- Check for these ambiguity types:
888
-
889
- | Type | Example | Fix Required |
890
- |------|---------|--------------|
891
- | Vague verbs | "improve", "enhance", "better" | Specify measurable outcome |
892
- | Undefined terms | "fast", "clean", "modern" | Define with numbers/criteria |
893
- | Implicit assumptions | "the usual way" | Make explicit |
894
- | Conflicting requirements | "fast AND thorough" | Prioritize or resolve |
895
- | Missing details | "handle errors" | Specify which errors, how |
896
-
897
- **Any ambiguity = AUTOMATIC REJECTION**
898
-
899
- ### 3. PRD Quality (25 points) - For Ralph-eligible tasks
900
-
901
- | Criterion | Points | Check |
902
- |-----------|--------|-------|
903
- | Stories in correct format | 5 | Markdown headers, fields |
904
- | Each story has unique ID | 5 | story-1, story-2, etc. |
905
- | Each story has file list | 5 | Explicit file paths |
906
- | Each story has acceptance criteria | 5 | Checkbox list |
907
- | Each story has test command | 5 | Runnable command |
908
-
909
- ### 4. Risk Mitigation (25 points)
910
-
911
- | Criterion | Points | Check |
912
- |-----------|--------|-------|
913
- | Security risks addressed | 5 | Input validation, auth, etc. |
914
- | Performance risks addressed | 5 | Scale, complexity, etc. |
915
- | Breaking changes identified | 5 | API changes, migrations |
916
- | Rollback plan exists | 5 | How to undo if needed |
917
- | Dependencies validated | 5 | External deps checked |
918
-
919
- ### 5. Research Completeness (25 points) - When research provided
920
-
921
- | Criterion | Points | Check |
922
- |-----------|--------|-------|
923
- | All patterns documented | 5 | Similar code found |
924
- | Architecture understood | 5 | Fits existing structure |
925
- | Integration points mapped | 5 | Connections identified |
926
- | Test strategy defined | 5 | What tests to add/modify |
927
- | File impact complete | 5 | All affected files listed |
928
-
929
- ## Pass/Fail Criteria
930
-
931
- | Condition | Result |
932
- |-----------|--------|
933
- | Score >= 95 AND ambiguity == 0 | GATE: APPROVED |
934
- | Score < 95 OR ambiguity > 0 | GATE: REJECTED |
935
-
936
- ## Auditor Mindset
937
-
938
- - Assume the specification is INCOMPLETE until proven otherwise
939
- - Look for what's MISSING, not just what's wrong
940
- - Ask "what could go wrong?" for every part
941
- - Prefer rejection over approval when uncertain
942
- - Better to ask one more question than to approve prematurely
943
-
944
- ## Standalone Usage
945
-
946
- Can be invoked directly: \`/dino.audit\`
947
-
948
- Use when:
949
- - Validating a specification before implementation
950
- - Reviewing a PR description
951
- - Checking requirements completeness
952
- - Gate-checking before major changes
875
+ content: `# 🔒 Audit Phase
876
+
877
+ **Strict gatekeeper that validates specifications before implementation.**
878
+
879
+ This skill is the AUDITOR agent in the three-agent Ralph Gate system. It can also be used standalone to validate any specification.
880
+
881
+ ## Role
882
+
883
+ 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.
884
+
885
+ ## Scoring System
886
+
887
+ ### 1. Specification Completeness (25 points)
888
+
889
+ | Criterion | Points | Check |
890
+ |-----------|--------|-------|
891
+ | Clear problem statement | 5 | What problem are we solving? |
892
+ | Explicit success criteria | 5 | How do we know when done? |
893
+ | Defined scope boundaries | 5 | What is NOT included? |
894
+ | Edge cases identified | 5 | What could go wrong? |
895
+ | Error handling specified | 5 | How to handle failures? |
896
+
897
+ ### 2. Ambiguity Score (MUST BE ZERO)
898
+
899
+ Check for these ambiguity types:
900
+
901
+ | Type | Example | Fix Required |
902
+ |------|---------|--------------|
903
+ | Vague verbs | "improve", "enhance", "better" | Specify measurable outcome |
904
+ | Undefined terms | "fast", "clean", "modern" | Define with numbers/criteria |
905
+ | Implicit assumptions | "the usual way" | Make explicit |
906
+ | Conflicting requirements | "fast AND thorough" | Prioritize or resolve |
907
+ | Missing details | "handle errors" | Specify which errors, how |
908
+
909
+ **Any ambiguity = AUTOMATIC REJECTION**
910
+
911
+ ### 3. PRD Quality (25 points) - For Ralph-eligible tasks
912
+
913
+ | Criterion | Points | Check |
914
+ |-----------|--------|-------|
915
+ | Stories in correct format | 5 | Markdown headers, fields |
916
+ | Each story has unique ID | 5 | story-1, story-2, etc. |
917
+ | Each story has file list | 5 | Explicit file paths |
918
+ | Each story has acceptance criteria | 5 | Checkbox list |
919
+ | Each story has test command | 5 | Runnable command |
920
+
921
+ ### 4. Risk Mitigation (25 points)
922
+
923
+ | Criterion | Points | Check |
924
+ |-----------|--------|-------|
925
+ | Security risks addressed | 5 | Input validation, auth, etc. |
926
+ | Performance risks addressed | 5 | Scale, complexity, etc. |
927
+ | Breaking changes identified | 5 | API changes, migrations |
928
+ | Rollback plan exists | 5 | How to undo if needed |
929
+ | Dependencies validated | 5 | External deps checked |
930
+
931
+ ### 5. Research Completeness (25 points) - When research provided
932
+
933
+ | Criterion | Points | Check |
934
+ |-----------|--------|-------|
935
+ | All patterns documented | 5 | Similar code found |
936
+ | Architecture understood | 5 | Fits existing structure |
937
+ | Integration points mapped | 5 | Connections identified |
938
+ | Test strategy defined | 5 | What tests to add/modify |
939
+ | File impact complete | 5 | All affected files listed |
940
+
941
+ ## Pass/Fail Criteria
942
+
943
+ | Condition | Result |
944
+ |-----------|--------|
945
+ | Score >= 95 AND ambiguity == 0 | GATE: APPROVED |
946
+ | Score < 95 OR ambiguity > 0 | GATE: REJECTED |
947
+
948
+ ## Auditor Mindset
949
+
950
+ - Assume the specification is INCOMPLETE until proven otherwise
951
+ - Look for what's MISSING, not just what's wrong
952
+ - Ask "what could go wrong?" for every part
953
+ - Prefer rejection over approval when uncertain
954
+ - Better to ask one more question than to approve prematurely
955
+
956
+ ## Standalone Usage
957
+
958
+ Can be invoked directly: \`/dino.audit\`
959
+
960
+ Use when:
961
+ - Validating a specification before implementation
962
+ - Reviewing a PR description
963
+ - Checking requirements completeness
964
+ - Gate-checking before major changes
953
965
  `,
954
966
  },
955
967
  {
@@ -963,62 +975,71 @@ Use when:
963
975
  model: 'opus',
964
976
  context: 'fork',
965
977
  effort: 'high',
966
- allowedTools: ['Read', 'Grep', 'Glob', 'Task', 'Write', 'AskUserQuestion', 'mcp__dino__dino_status', 'mcp__dino__dino_focus_set'],
978
+ allowedTools: [
979
+ 'Read',
980
+ 'Grep',
981
+ 'Glob',
982
+ 'Task',
983
+ 'Write',
984
+ 'AskUserQuestion',
985
+ 'mcp__dino__dino_status',
986
+ 'mcp__dino__dino_focus_set',
987
+ ],
967
988
  },
968
- content: `# 🦖 Ralph Gate - EXECUTE NOW
969
-
970
- **YOU MUST EXECUTE THE THREE-AGENT WORKFLOW BELOW. DO NOT JUST DESCRIBE IT.**
971
-
972
- ## STEP 1: CREATE OUTPUT DIRECTORY
973
-
974
- Write to \`.dino/ralph-gate/status.md\` with: "# Ralph Gate Status\\n\\nStatus: PHASE 1 - RESEARCH"
975
-
976
- ## STEP 2: SPAWN SCOUT AGENT (MANDATORY)
977
-
978
- **USE THE TASK TOOL NOW** with these parameters:
979
- - subagent_type: "Explore"
980
- - description: "Ralph Gate Scout - Deep Research"
981
- - 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.
982
-
983
- **WAIT FOR SCOUT TO COMPLETE.**
984
-
985
- ## STEP 3: SAVE SCOUT OUTPUT
986
-
987
- Write scout output to \`.dino/ralph-gate/research-report.md\`
988
-
989
- ## STEP 4: SPAWN AUDITOR AGENT (MANDATORY)
990
-
991
- **USE THE TASK TOOL NOW** with:
992
- - subagent_type: "Plan"
993
- - model: "opus"
994
- - description: "Ralph Gate Auditor - Strict Validation"
995
- - 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.
996
-
997
- **WAIT FOR AUDITOR TO COMPLETE.**
998
-
999
- ## STEP 5: CHECK GATE RESULT
1000
-
1001
- - IF "GATE: APPROVED" → Continue to Step 6
1002
- - IF "GATE: REJECTED" → Use AskUserQuestion to clarify issues, then re-run Step 4 (max 3 cycles)
1003
-
1004
- ## STEP 6: SAVE AUDIT REPORT
1005
-
1006
- Write auditor output to \`.dino/ralph-gate/audit-report.md\`
1007
-
1008
- ## STEP 7: SPAWN RALPH EXECUTOR (ONLY IF APPROVED)
1009
-
1010
- **USE THE TASK TOOL NOW** with:
1011
- - subagent_type: "general-purpose"
1012
- - description: "Ralph Loop Executor"
1013
- - 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.
1014
-
1015
- ## STEP 8: REPORT RESULTS
1016
-
1017
- Save final status to \`.dino/ralph-gate/final-status.md\` and report: stories completed, stories failed, iterations used, files modified.
1018
-
1019
- ---
1020
-
1021
- **START NOW: Execute Step 1, then Step 2, etc. Do not summarize.**
989
+ content: `# 🦖 Ralph Gate - EXECUTE NOW
990
+
991
+ **YOU MUST EXECUTE THE THREE-AGENT WORKFLOW BELOW. DO NOT JUST DESCRIBE IT.**
992
+
993
+ ## STEP 1: CREATE OUTPUT DIRECTORY
994
+
995
+ Write to \`.dino/ralph-gate/status.md\` with: "# Ralph Gate Status\\n\\nStatus: PHASE 1 - RESEARCH"
996
+
997
+ ## STEP 2: SPAWN SCOUT AGENT (MANDATORY)
998
+
999
+ **USE THE TASK TOOL NOW** with these parameters:
1000
+ - subagent_type: "Explore"
1001
+ - description: "Ralph Gate Scout - Deep Research"
1002
+ - 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.
1003
+
1004
+ **WAIT FOR SCOUT TO COMPLETE.**
1005
+
1006
+ ## STEP 3: SAVE SCOUT OUTPUT
1007
+
1008
+ Write scout output to \`.dino/ralph-gate/research-report.md\`
1009
+
1010
+ ## STEP 4: SPAWN AUDITOR AGENT (MANDATORY)
1011
+
1012
+ **USE THE TASK TOOL NOW** with:
1013
+ - subagent_type: "Plan"
1014
+ - model: "opus"
1015
+ - description: "Ralph Gate Auditor - Strict Validation"
1016
+ - 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.
1017
+
1018
+ **WAIT FOR AUDITOR TO COMPLETE.**
1019
+
1020
+ ## STEP 5: CHECK GATE RESULT
1021
+
1022
+ - IF "GATE: APPROVED" → Continue to Step 6
1023
+ - IF "GATE: REJECTED" → Use AskUserQuestion to clarify issues, then re-run Step 4 (max 3 cycles)
1024
+
1025
+ ## STEP 6: SAVE AUDIT REPORT
1026
+
1027
+ Write auditor output to \`.dino/ralph-gate/audit-report.md\`
1028
+
1029
+ ## STEP 7: SPAWN RALPH EXECUTOR (ONLY IF APPROVED)
1030
+
1031
+ **USE THE TASK TOOL NOW** with:
1032
+ - subagent_type: "general-purpose"
1033
+ - description: "Ralph Loop Executor"
1034
+ - 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.
1035
+
1036
+ ## STEP 8: REPORT RESULTS
1037
+
1038
+ Save final status to \`.dino/ralph-gate/final-status.md\` and report: stories completed, stories failed, iterations used, files modified.
1039
+
1040
+ ---
1041
+
1042
+ **START NOW: Execute Step 1, then Step 2, etc. Do not summarize.**
1022
1043
  `,
1023
1044
  },
1024
1045
  ];
@@ -1036,138 +1057,147 @@ const RESEARCH_SKILL = {
1036
1057
  model: 'sonnet',
1037
1058
  context: 'fork',
1038
1059
  effort: 'medium',
1039
- allowedTools: ['Read', 'Grep', 'Glob', 'Task', 'WebSearch', 'WebFetch', 'Write', 'AskUserQuestion'],
1060
+ allowedTools: [
1061
+ 'Read',
1062
+ 'Grep',
1063
+ 'Glob',
1064
+ 'Task',
1065
+ 'WebSearch',
1066
+ 'WebFetch',
1067
+ 'Write',
1068
+ 'AskUserQuestion',
1069
+ ],
1040
1070
  disallowedTools: ['Edit', 'Bash'],
1041
1071
  },
1042
- content: `# Research Skill
1043
-
1044
- Research technical topics and save findings for future reuse. Avoids redundant web fetches by checking saved research first.
1045
-
1046
- ## Usage
1047
-
1048
- \`\`\`
1049
- /research <topic> # Research and save
1050
- /research list # List saved research
1051
- /research recall <topic> # Recall saved research without re-fetching
1052
- \`\`\`
1053
-
1054
- **Examples:**
1055
- - \`/research context engineering\`
1056
- - \`/research react hooks best practices\`
1057
- - \`/research recall typescript generics\`
1058
-
1059
- ## Workflow
1060
-
1061
- ### 1. Check Saved Research First (CRITICAL)
1062
-
1063
- Before ANY web search, check for existing research:
1064
-
1065
- \`\`\`
1066
- .dino/research/<topic-slug>.md
1067
- .claude/docs/<topic>.md
1068
- \`\`\`
1069
-
1070
- If found and recent (< 30 days), present it directly without web fetching.
1071
-
1072
- ### 2. Web Research (only if needed)
1073
-
1074
- Only fetch from web when:
1075
- - No saved research exists
1076
- - Saved research is stale (> 30 days)
1077
- - User explicitly requests fresh research with \`--fresh\`
1078
-
1079
- When researching:
1080
- - Search authoritative sources
1081
- - Cross-reference multiple sources
1082
- - Extract actionable information
1083
-
1084
- ### 3. Save Research (ALWAYS)
1085
-
1086
- Save ALL research to \`.dino/research/<topic-slug>.md\` in ready-to-use format:
1087
-
1088
- \`\`\`markdown
1089
- ---
1090
- topic: <Full Topic Name>
1091
- slug: <topic-slug>
1092
- created: <ISO date>
1093
- updated: <ISO date>
1094
- sources:
1095
- - url: <source url>
1096
- title: <source title>
1097
- accessed: <ISO date>
1098
- tags: [<tag1>, <tag2>]
1099
- ---
1100
-
1101
- # <Topic Name>
1102
-
1103
- ## TL;DR
1104
- <2-3 sentence summary for quick reference>
1105
-
1106
- ## Key Facts
1107
- - Fact 1
1108
- - Fact 2
1109
- - Fact 3
1110
-
1111
- ## Details
1112
- <Detailed explanation with examples>
1113
-
1114
- ## Code Examples (if applicable)
1115
- \\\`\\\`\\\`code
1116
- <ready-to-use code snippets>
1117
- \\\`\\\`\\\`
1118
-
1119
- ## Common Pitfalls
1120
- - Pitfall 1
1121
- - Pitfall 2
1122
-
1123
- ## See Also
1124
- - Related topic 1
1125
- - Related topic 2
1126
- \`\`\`
1127
-
1128
- ### 4. Present to User
1129
-
1130
- After saving, present a summary and note where it's saved.
1131
-
1132
- ## File Naming
1133
-
1134
- Convert topic to slug: lowercase, replace spaces with hyphens, remove special chars.
1135
-
1136
- Examples:
1137
- - "Context Engineering" → \`context-engineering.md\`
1138
- - "React Hooks Best Practices" → \`react-hooks-best-practices.md\`
1139
- - "TypeScript Generics" → \`typescript-generics.md\`
1140
-
1141
- ## Commands
1142
-
1143
- ### \`/research <topic>\`
1144
- 1. Check \`.dino/research/\` for existing research
1145
- 2. If found and fresh: present it
1146
- 3. If not found or stale: research, save, present
1147
-
1148
- ### \`/research list\`
1149
- List all saved research files with topics and dates.
1150
-
1151
- ### \`/research recall <topic>\`
1152
- Load and present saved research without any web fetching.
1153
- Returns error if no saved research exists.
1154
-
1155
- ### \`/research <topic> --fresh\`
1156
- Force fresh research even if saved version exists.
1157
- Updates the saved file with new findings.
1158
-
1159
- ## Benefits
1160
-
1161
- - **No redundant fetches**: Same topic researched once, reused many times
1162
- - **Git tracked**: Research persists across sessions and is shared with team
1163
- - **Ready-to-use format**: Code examples, key facts, TL;DR for quick reference
1164
- - **Source tracking**: Know where information came from and when
1165
-
1166
- ## Notes
1167
-
1168
- - Research is saved to \`.dino/research/\` which is now git-tracked
1169
- - High-value permanent docs can also go to \`.claude/docs/\`
1170
- - Fork context ensures clean separation from main conversation
1072
+ content: `# Research Skill
1073
+
1074
+ Research technical topics and save findings for future reuse. Avoids redundant web fetches by checking saved research first.
1075
+
1076
+ ## Usage
1077
+
1078
+ \`\`\`
1079
+ /research <topic> # Research and save
1080
+ /research list # List saved research
1081
+ /research recall <topic> # Recall saved research without re-fetching
1082
+ \`\`\`
1083
+
1084
+ **Examples:**
1085
+ - \`/research context engineering\`
1086
+ - \`/research react hooks best practices\`
1087
+ - \`/research recall typescript generics\`
1088
+
1089
+ ## Workflow
1090
+
1091
+ ### 1. Check Saved Research First (CRITICAL)
1092
+
1093
+ Before ANY web search, check for existing research:
1094
+
1095
+ \`\`\`
1096
+ .dino/research/<topic-slug>.md
1097
+ .claude/docs/<topic>.md
1098
+ \`\`\`
1099
+
1100
+ If found and recent (< 30 days), present it directly without web fetching.
1101
+
1102
+ ### 2. Web Research (only if needed)
1103
+
1104
+ Only fetch from web when:
1105
+ - No saved research exists
1106
+ - Saved research is stale (> 30 days)
1107
+ - User explicitly requests fresh research with \`--fresh\`
1108
+
1109
+ When researching:
1110
+ - Search authoritative sources
1111
+ - Cross-reference multiple sources
1112
+ - Extract actionable information
1113
+
1114
+ ### 3. Save Research (ALWAYS)
1115
+
1116
+ Save ALL research to \`.dino/research/<topic-slug>.md\` in ready-to-use format:
1117
+
1118
+ \`\`\`markdown
1119
+ ---
1120
+ topic: <Full Topic Name>
1121
+ slug: <topic-slug>
1122
+ created: <ISO date>
1123
+ updated: <ISO date>
1124
+ sources:
1125
+ - url: <source url>
1126
+ title: <source title>
1127
+ accessed: <ISO date>
1128
+ tags: [<tag1>, <tag2>]
1129
+ ---
1130
+
1131
+ # <Topic Name>
1132
+
1133
+ ## TL;DR
1134
+ <2-3 sentence summary for quick reference>
1135
+
1136
+ ## Key Facts
1137
+ - Fact 1
1138
+ - Fact 2
1139
+ - Fact 3
1140
+
1141
+ ## Details
1142
+ <Detailed explanation with examples>
1143
+
1144
+ ## Code Examples (if applicable)
1145
+ \\\`\\\`\\\`code
1146
+ <ready-to-use code snippets>
1147
+ \\\`\\\`\\\`
1148
+
1149
+ ## Common Pitfalls
1150
+ - Pitfall 1
1151
+ - Pitfall 2
1152
+
1153
+ ## See Also
1154
+ - Related topic 1
1155
+ - Related topic 2
1156
+ \`\`\`
1157
+
1158
+ ### 4. Present to User
1159
+
1160
+ After saving, present a summary and note where it's saved.
1161
+
1162
+ ## File Naming
1163
+
1164
+ Convert topic to slug: lowercase, replace spaces with hyphens, remove special chars.
1165
+
1166
+ Examples:
1167
+ - "Context Engineering" → \`context-engineering.md\`
1168
+ - "React Hooks Best Practices" → \`react-hooks-best-practices.md\`
1169
+ - "TypeScript Generics" → \`typescript-generics.md\`
1170
+
1171
+ ## Commands
1172
+
1173
+ ### \`/research <topic>\`
1174
+ 1. Check \`.dino/research/\` for existing research
1175
+ 2. If found and fresh: present it
1176
+ 3. If not found or stale: research, save, present
1177
+
1178
+ ### \`/research list\`
1179
+ List all saved research files with topics and dates.
1180
+
1181
+ ### \`/research recall <topic>\`
1182
+ Load and present saved research without any web fetching.
1183
+ Returns error if no saved research exists.
1184
+
1185
+ ### \`/research <topic> --fresh\`
1186
+ Force fresh research even if saved version exists.
1187
+ Updates the saved file with new findings.
1188
+
1189
+ ## Benefits
1190
+
1191
+ - **No redundant fetches**: Same topic researched once, reused many times
1192
+ - **Git tracked**: Research persists across sessions and is shared with team
1193
+ - **Ready-to-use format**: Code examples, key facts, TL;DR for quick reference
1194
+ - **Source tracking**: Know where information came from and when
1195
+
1196
+ ## Notes
1197
+
1198
+ - Research is saved to \`.dino/research/\` which is now git-tracked
1199
+ - High-value permanent docs can also go to \`.claude/docs/\`
1200
+ - Fork context ensures clean separation from main conversation
1171
1201
  `,
1172
1202
  };
1173
1203
  /**
@@ -1310,38 +1340,38 @@ function generateMainSkill() {
1310
1340
  model: 'sonnet',
1311
1341
  context: 'inherit',
1312
1342
  });
1313
- return `${frontmatter}
1314
-
1315
- # 🦖 Dino-Spec Skills (v${VERSION})
1316
-
1317
- Workflow phase skills for structured development.
1318
-
1319
- ## Phase Skills
1320
-
1321
- | Skill | Phase | Description |
1322
- |-------|-------|-------------|
1323
- | \`/dino.spec\` | Specification | Analyze prompts, clarify requirements |
1324
- | \`/dino.discover\` | Discovery | Capture requirements |
1325
- | \`/dino.scout\` | Research | Explore options |
1326
- | \`/dino.sniff\` | Clarification | Resolve ambiguities |
1327
- | \`/dino.nest\` | Planning | Design approach |
1328
- | \`/dino.hatch\` | Breakdown | Create tasks |
1329
- | \`/dino.hunt\` | Implementation | Execute tasks |
1330
- | \`/dino.aging\` | Verification | Run tests |
1331
- | \`/dino.fossil\` | Completion | Archive work |
1332
-
1333
- ## Utility Skills
1334
-
1335
- | Skill | Description |
1336
- |-------|-------------|
1337
- | \`/dino.ralph\` | Fresh-context iterative execution |
1338
- | \`/dino.status\` | Check session state (--next, --focus, --tips) |
1339
- | \`/dino.release\` | Release workflow with doc updates |
1340
-
1341
- ## Usage
1342
-
1343
- Invoke any skill by typing its command (e.g., \`/dino.discover\`).
1344
- Skills automatically use session context from \`.dino/session.md\`.
1343
+ return `${frontmatter}
1344
+
1345
+ # 🦖 Dino-Spec Skills (v${VERSION})
1346
+
1347
+ Workflow phase skills for structured development.
1348
+
1349
+ ## Phase Skills
1350
+
1351
+ | Skill | Phase | Description |
1352
+ |-------|-------|-------------|
1353
+ | \`/dino.spec\` | Specification | Analyze prompts, clarify requirements |
1354
+ | \`/dino.discover\` | Discovery | Capture requirements |
1355
+ | \`/dino.scout\` | Research | Explore options |
1356
+ | \`/dino.sniff\` | Clarification | Resolve ambiguities |
1357
+ | \`/dino.nest\` | Planning | Design approach |
1358
+ | \`/dino.hatch\` | Breakdown | Create tasks |
1359
+ | \`/dino.hunt\` | Implementation | Execute tasks |
1360
+ | \`/dino.aging\` | Verification | Run tests |
1361
+ | \`/dino.fossil\` | Completion | Archive work |
1362
+
1363
+ ## Utility Skills
1364
+
1365
+ | Skill | Description |
1366
+ |-------|-------------|
1367
+ | \`/dino.ralph\` | Fresh-context iterative execution |
1368
+ | \`/dino.status\` | Check session state (--next, --focus, --tips) |
1369
+ | \`/dino.release\` | Release workflow with doc updates |
1370
+
1371
+ ## Usage
1372
+
1373
+ Invoke any skill by typing its command (e.g., \`/dino.discover\`).
1374
+ Skills automatically use session context from \`.dino/session.md\`.
1345
1375
  `;
1346
1376
  }
1347
1377
  /**