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,864 +5,864 @@
5
5
  * that Claude Code reads for contextual guidance.
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 session context rule content (merged with workflow-phases in v12.2.0)
12
12
  */
13
13
  function generateSessionContextRule() {
14
- return `# Session Context Interpretation (dino-spec v${VERSION})
15
-
16
- ## Reading session.md
17
-
18
- The \`.dino/session.md\` file contains live session state:
19
-
20
- ### Focus Section
21
- \`\`\`markdown
22
- ## Focus
23
- **src/commands/** (high confidence, directory-cluster)
24
- \`\`\`
25
- - Indicates current working area
26
- - Confidence: high/medium/low
27
- - Source: directory-cluster, feature-pair, entry-point, manual
28
-
29
- ### Recent Changes
30
- \`\`\`markdown
31
- ## Recent Changes
32
- - 10:30 [dependency] package.json
33
- - 10:25 [code] src/core/analyzer.ts
34
- \`\`\`
35
- - Categories: dependency, structural, config, test, code, documentation
36
- - Ordered by recency (newest first)
37
- - Last 10 changes shown
38
-
39
- ### Test/Build/Lint Status
40
- \`\`\`markdown
41
- ## Test Status
42
- **Status:** failing (2025-01-17 10:45)
43
- **Counts:** 23 passed, 2 failed, 1 skipped
44
- \`\`\`
45
- - Statuses: passing, failing, partial, unknown
46
- - Tracked automatically by hooks
47
-
48
- ### Progress Signals
49
- \`\`\`markdown
50
- ## Progress
51
- - 2025-01-17 10:45: build-fixed - Build now passing
52
- \`\`\`
53
- - Auto-detected state transitions
54
- - Types: tests-fixed, tests-broken, build-fixed, build-broken, lint-fixed
55
-
56
- ### Blockers
57
- \`\`\`markdown
58
- ## Blockers
59
- - Fix failing test: handle edge case
60
- \`\`\`
61
- - Active issues preventing completion
62
- - Auto-resolved when tests/build pass
63
-
64
- ### Pending Actions
65
- \`\`\`markdown
66
- ## Pending Actions
67
- - Run npm install after dependency changes
68
- \`\`\`
69
- - Auto-generated from change categories
70
- - dependency changes → npm install
71
- - structural changes → verify imports
72
-
73
- ## Using Context
74
-
75
- 1. **Check focus first** - Work within focus area when possible
76
- 2. **Review blockers** - Address blockers before new work
77
- 3. **Track pending actions** - Execute before testing
78
- 4. **Note progress** - Build on recent progress signals
79
-
80
- ## Phase Progression
81
-
82
- When working with dino-spec session context, follow these phase patterns:
83
-
84
- ### Discovery Phase
85
- - Capture requirements from user prompts
86
- - Record in session.md under Notes
87
- - Ask clarifying questions before planning
88
-
89
- ### Research Phase
90
- - Explore codebase for existing patterns
91
- - Document findings in session context
92
- - Identify reusable components
93
-
94
- ### Clarification Phase
95
- - Use AskUserQuestion for ambiguities
96
- - Validate assumptions with user
97
- - Update session.md with decisions
98
-
99
- ### Planning Phase
100
- - Enter plan mode for non-trivial tasks
101
- - Create structured implementation plan
102
- - Get user approval before proceeding
103
-
104
- ### Breakdown Phase
105
- - Break plan into TodoWrite items
106
- - Create atomic, verifiable tasks
107
- - Mark dependencies between tasks
108
-
109
- ### Implementation Phase
110
- - Execute todos sequentially
111
- - Update session.md focus area
112
- - Track progress signals
113
-
114
- ### Verification Phase
115
- - Run tests after implementation
116
- - Verify build passes
117
- - Check lint status
118
-
119
- ### Completion Phase
120
- - Archive completed work
121
- - Update session notes
122
- - Clear blockers
123
-
124
- ## Auto-Detection
125
-
126
- The hook system automatically detects phase transitions:
127
- - File edits → Implementation phase
128
- - Test runs → Verification phase
129
- - Build runs → Verification phase
130
- - Session start → Discovery/Resume phase
131
-
132
- ## Focus Management
133
-
134
- Focus is auto-detected from edit clustering:
135
- - \`high\` confidence: 70%+ edits in same directory
136
- - \`medium\` confidence: 50-70% clustering
137
- - \`low\` confidence: < 50% clustering
14
+ return `# Session Context Interpretation (dino-spec v${VERSION})
15
+
16
+ ## Reading session.md
17
+
18
+ The \`.dino/session.md\` file contains live session state:
19
+
20
+ ### Focus Section
21
+ \`\`\`markdown
22
+ ## Focus
23
+ **src/commands/** (high confidence, directory-cluster)
24
+ \`\`\`
25
+ - Indicates current working area
26
+ - Confidence: high/medium/low
27
+ - Source: directory-cluster, feature-pair, entry-point, manual
28
+
29
+ ### Recent Changes
30
+ \`\`\`markdown
31
+ ## Recent Changes
32
+ - 10:30 [dependency] package.json
33
+ - 10:25 [code] src/core/analyzer.ts
34
+ \`\`\`
35
+ - Categories: dependency, structural, config, test, code, documentation
36
+ - Ordered by recency (newest first)
37
+ - Last 10 changes shown
38
+
39
+ ### Test/Build/Lint Status
40
+ \`\`\`markdown
41
+ ## Test Status
42
+ **Status:** failing (2025-01-17 10:45)
43
+ **Counts:** 23 passed, 2 failed, 1 skipped
44
+ \`\`\`
45
+ - Statuses: passing, failing, partial, unknown
46
+ - Tracked automatically by hooks
47
+
48
+ ### Progress Signals
49
+ \`\`\`markdown
50
+ ## Progress
51
+ - 2025-01-17 10:45: build-fixed - Build now passing
52
+ \`\`\`
53
+ - Auto-detected state transitions
54
+ - Types: tests-fixed, tests-broken, build-fixed, build-broken, lint-fixed
55
+
56
+ ### Blockers
57
+ \`\`\`markdown
58
+ ## Blockers
59
+ - Fix failing test: handle edge case
60
+ \`\`\`
61
+ - Active issues preventing completion
62
+ - Auto-resolved when tests/build pass
63
+
64
+ ### Pending Actions
65
+ \`\`\`markdown
66
+ ## Pending Actions
67
+ - Run bun install after dependency changes
68
+ \`\`\`
69
+ - Auto-generated from change categories
70
+ - dependency changes → bun install
71
+ - structural changes → verify imports
72
+
73
+ ## Using Context
74
+
75
+ 1. **Check focus first** - Work within focus area when possible
76
+ 2. **Review blockers** - Address blockers before new work
77
+ 3. **Track pending actions** - Execute before testing
78
+ 4. **Note progress** - Build on recent progress signals
79
+
80
+ ## Phase Progression
81
+
82
+ When working with dino-spec session context, follow these phase patterns:
83
+
84
+ ### Discovery Phase
85
+ - Capture requirements from user prompts
86
+ - Record in session.md under Notes
87
+ - Ask clarifying questions before planning
88
+
89
+ ### Research Phase
90
+ - Explore codebase for existing patterns
91
+ - Document findings in session context
92
+ - Identify reusable components
93
+
94
+ ### Clarification Phase
95
+ - Use AskUserQuestion for ambiguities
96
+ - Validate assumptions with user
97
+ - Update session.md with decisions
98
+
99
+ ### Planning Phase
100
+ - Enter plan mode for non-trivial tasks
101
+ - Create structured implementation plan
102
+ - Get user approval before proceeding
103
+
104
+ ### Breakdown Phase
105
+ - Break plan into TodoWrite items
106
+ - Create atomic, verifiable tasks
107
+ - Mark dependencies between tasks
108
+
109
+ ### Implementation Phase
110
+ - Execute todos sequentially
111
+ - Update session.md focus area
112
+ - Track progress signals
113
+
114
+ ### Verification Phase
115
+ - Run tests after implementation
116
+ - Verify build passes
117
+ - Check lint status
118
+
119
+ ### Completion Phase
120
+ - Archive completed work
121
+ - Update session notes
122
+ - Clear blockers
123
+
124
+ ## Auto-Detection
125
+
126
+ The hook system automatically detects phase transitions:
127
+ - File edits → Implementation phase
128
+ - Test runs → Verification phase
129
+ - Build runs → Verification phase
130
+ - Session start → Discovery/Resume phase
131
+
132
+ ## Focus Management
133
+
134
+ Focus is auto-detected from edit clustering:
135
+ - \`high\` confidence: 70%+ edits in same directory
136
+ - \`medium\` confidence: 50-70% clustering
137
+ - \`low\` confidence: < 50% clustering
138
138
  `;
139
139
  }
140
140
  /**
141
141
  * Generate auto-context engineering rule content
142
142
  */
143
143
  function generateAutoContextEngineeringRule() {
144
- return `# Auto Context Engineering (dino-spec v${VERSION})
145
-
146
- ## Automatic Features
147
-
148
- All context engineering features are enabled by default:
149
-
150
- 1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
151
- 2. **Lazy Context Loading** - Resources deferred until needed
152
- 3. **Session State Tracking** - Focus, blockers, progress auto-tracked
153
-
154
- ## No Configuration Required
155
-
156
- Users do NOT need to:
157
- - Set environment variables
158
- - Pass special flags
159
- - Configure anything manually
160
-
161
- These features auto-apply via \`dino init\` and \`dino update\`.
162
-
163
- ## Opt-Out (Not Recommended)
164
-
165
- To disable MCP tool filtering:
166
- \`\`\`bash
167
- DINO_AGGRESSIVE_FILTERING=false
168
- \`\`\`
169
-
170
- This is NOT recommended as it increases context overhead significantly.
171
-
172
- ## Token Savings by Phase
173
-
174
- | Phase | Tools Loaded | Savings |
175
- |-------|-------------|---------|
176
- | Discovery | ~17 | ~60% |
177
- | Planning | ~22 | ~53% |
178
- | Implementation | ~23 | ~51% |
179
- | Completing | ~12 | ~74% |
180
-
181
- ## Phase Auto-Detection
182
-
183
- Phase is auto-detected from:
184
- 1. \`## Phase\` section in session.md
185
- 2. Default: \`discovery\` if not set
186
-
187
- The MCP server parses session.md on each \`tools/list\` request to get the current phase.
144
+ return `# Auto Context Engineering (dino-spec v${VERSION})
145
+
146
+ ## Automatic Features
147
+
148
+ All context engineering features are enabled by default:
149
+
150
+ 1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
151
+ 2. **Lazy Context Loading** - Resources deferred until needed
152
+ 3. **Session State Tracking** - Focus, blockers, progress auto-tracked
153
+
154
+ ## No Configuration Required
155
+
156
+ Users do NOT need to:
157
+ - Set environment variables
158
+ - Pass special flags
159
+ - Configure anything manually
160
+
161
+ These features auto-apply via \`dino init\` and \`dino update\`.
162
+
163
+ ## Opt-Out (Not Recommended)
164
+
165
+ To disable MCP tool filtering:
166
+ \`\`\`bash
167
+ DINO_AGGRESSIVE_FILTERING=false
168
+ \`\`\`
169
+
170
+ This is NOT recommended as it increases context overhead significantly.
171
+
172
+ ## Token Savings by Phase
173
+
174
+ | Phase | Tools Loaded | Savings |
175
+ |-------|-------------|---------|
176
+ | Discovery | ~17 | ~60% |
177
+ | Planning | ~22 | ~53% |
178
+ | Implementation | ~23 | ~51% |
179
+ | Completing | ~12 | ~74% |
180
+
181
+ ## Phase Auto-Detection
182
+
183
+ Phase is auto-detected from:
184
+ 1. \`## Phase\` section in session.md
185
+ 2. Default: \`discovery\` if not set
186
+
187
+ The MCP server parses session.md on each \`tools/list\` request to get the current phase.
188
188
  `;
189
189
  }
190
190
  /**
191
191
  * Generate effort guidance rule content
192
192
  */
193
193
  function generateEffortGuidanceRule() {
194
- return `# Effort Parameter Guidance (dino-spec v${VERSION})
195
-
196
- ## Overview
197
-
198
- The \`effort\` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
199
-
200
- ## Effort Levels
201
-
202
- | Level | Model | Thinking Tokens | Use Cases |
203
- |-------|-------|-----------------|-----------|
204
- | **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
205
- | **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
206
- | **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
207
-
208
- ## When to Use Each Level
209
-
210
- ### Low Effort
211
- - Quick status checks (\`/dino.status\`)
212
- - Simple lookups and reads
213
- - Archival tasks (\`/dino.fossil\`)
214
- - Focus changes (\`/dino.status --focus\`)
215
- - Clarification questions (\`/dino.sniff\`)
216
- - Loading handoff context (\`/dino.handoff\`)
217
- - Next step suggestions (\`/dino.status --next\`)
218
- - Context optimization guidance (\`/dino.status --tips\`)
219
-
220
- **Characteristics:**
221
- - Single-step operations
222
- - Minimal reasoning required
223
- - Speed is more important than depth
224
- - Read-heavy, write-light
225
-
226
- ### Medium Effort
227
- - Research tasks (\`/dino.scout\`, \`/research\`)
228
- - Implementation execution (\`/dino.hunt\`)
229
- - Test verification (\`/dino.aging\`)
230
- - Task breakdown (\`/dino.hatch\`)
231
- - Release workflows (\`/dino.release\`)
232
-
233
- **Characteristics:**
234
- - Multi-step operations
235
- - Moderate reasoning required
236
- - Balance of speed and quality
237
- - Mix of reading and writing
238
-
239
- ### High Effort
240
- - Architecture planning (\`/dino.nest\`)
241
- - Complex analysis
242
- - Design decisions
243
- - Multi-component changes
244
-
245
- **Characteristics:**
246
- - Deep reasoning required
247
- - Many interdependent decisions
248
- - Quality is more important than speed
249
- - Significant impact on codebase
250
-
251
- ## Opus 4.5 Extended Thinking
252
-
253
- For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
254
-
255
- \`\`\`yaml
256
- # In SKILL.md frontmatter
257
- effort: high # Signals to use extended thinking
258
- \`\`\`
259
-
260
- **Extended thinking is useful for:**
261
- - Understanding complex requirements
262
- - Exploring multiple approaches
263
- - Identifying edge cases
264
- - Planning multi-file changes
265
- - Architectural decisions
266
-
267
- ## Mapping to SKILL.md
268
-
269
- Each skill specifies its effort level in frontmatter:
270
-
271
- \`\`\`yaml
272
- ---
273
- description: Plan implementation with structured approach
274
- model: opus
275
- effort: high
276
- context: fork
277
- ---
278
- \`\`\`
279
-
280
- ## Budget Considerations
281
-
282
- Effort level affects token budget:
283
-
284
- | Level | Typical Budget Impact | Cost Factor |
285
- |-------|----------------------|-------------|
286
- | low | ~1K tokens | 1x (cheapest) |
287
- | medium | ~5K tokens | 3x |
288
- | high | ~15K+ tokens | 10x |
289
-
290
- Use the lowest effort level that produces good results for the task.
291
-
292
- ## Dynamic Effort Adjustment
293
-
294
- Consider increasing effort when:
295
- - Initial attempt fails or produces poor results
296
- - Task complexity is higher than expected
297
- - User feedback indicates need for deeper analysis
298
-
299
- Consider decreasing effort when:
300
- - Task is simpler than expected
301
- - Budget constraints are tight
302
- - Speed is prioritized over depth
194
+ return `# Effort Parameter Guidance (dino-spec v${VERSION})
195
+
196
+ ## Overview
197
+
198
+ The \`effort\` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
199
+
200
+ ## Effort Levels
201
+
202
+ | Level | Model | Thinking Tokens | Use Cases |
203
+ |-------|-------|-----------------|-----------|
204
+ | **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
205
+ | **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
206
+ | **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
207
+
208
+ ## When to Use Each Level
209
+
210
+ ### Low Effort
211
+ - Quick status checks (\`/dino.status\`)
212
+ - Simple lookups and reads
213
+ - Archival tasks (\`/dino.fossil\`)
214
+ - Focus changes (\`/dino.status --focus\`)
215
+ - Clarification questions (\`/dino.sniff\`)
216
+ - Loading handoff context (\`/dino.handoff\`)
217
+ - Next step suggestions (\`/dino.status --next\`)
218
+ - Context optimization guidance (\`/dino.status --tips\`)
219
+
220
+ **Characteristics:**
221
+ - Single-step operations
222
+ - Minimal reasoning required
223
+ - Speed is more important than depth
224
+ - Read-heavy, write-light
225
+
226
+ ### Medium Effort
227
+ - Research tasks (\`/dino.scout\`, \`/research\`)
228
+ - Implementation execution (\`/dino.hunt\`)
229
+ - Test verification (\`/dino.aging\`)
230
+ - Task breakdown (\`/dino.hatch\`)
231
+ - Release workflows (\`/dino.release\`)
232
+
233
+ **Characteristics:**
234
+ - Multi-step operations
235
+ - Moderate reasoning required
236
+ - Balance of speed and quality
237
+ - Mix of reading and writing
238
+
239
+ ### High Effort
240
+ - Architecture planning (\`/dino.nest\`)
241
+ - Complex analysis
242
+ - Design decisions
243
+ - Multi-component changes
244
+
245
+ **Characteristics:**
246
+ - Deep reasoning required
247
+ - Many interdependent decisions
248
+ - Quality is more important than speed
249
+ - Significant impact on codebase
250
+
251
+ ## Opus 4.5 Extended Thinking
252
+
253
+ For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
254
+
255
+ \`\`\`yaml
256
+ # In SKILL.md frontmatter
257
+ effort: high # Signals to use extended thinking
258
+ \`\`\`
259
+
260
+ **Extended thinking is useful for:**
261
+ - Understanding complex requirements
262
+ - Exploring multiple approaches
263
+ - Identifying edge cases
264
+ - Planning multi-file changes
265
+ - Architectural decisions
266
+
267
+ ## Mapping to SKILL.md
268
+
269
+ Each skill specifies its effort level in frontmatter:
270
+
271
+ \`\`\`yaml
272
+ ---
273
+ description: Plan implementation with structured approach
274
+ model: opus
275
+ effort: high
276
+ context: fork
277
+ ---
278
+ \`\`\`
279
+
280
+ ## Budget Considerations
281
+
282
+ Effort level affects token budget:
283
+
284
+ | Level | Typical Budget Impact | Cost Factor |
285
+ |-------|----------------------|-------------|
286
+ | low | ~1K tokens | 1x (cheapest) |
287
+ | medium | ~5K tokens | 3x |
288
+ | high | ~15K+ tokens | 10x |
289
+
290
+ Use the lowest effort level that produces good results for the task.
291
+
292
+ ## Dynamic Effort Adjustment
293
+
294
+ Consider increasing effort when:
295
+ - Initial attempt fails or produces poor results
296
+ - Task complexity is higher than expected
297
+ - User feedback indicates need for deeper analysis
298
+
299
+ Consider decreasing effort when:
300
+ - Task is simpler than expected
301
+ - Budget constraints are tight
302
+ - Speed is prioritized over depth
303
303
  `;
304
304
  }
305
305
  /**
306
306
  * Generate ralph loop rule content
307
307
  */
308
308
  function generateRalphLoopRule() {
309
- return `# Ralph Loop Guidelines (dino-spec v${VERSION})
310
-
311
- ## When to Use Ralph Loop
312
-
313
- Use \`/dino.ralph\` when:
314
- - Complexity score > 70
315
- - Task involves 10+ files
316
- - Multi-story feature work
317
- - Major refactoring
318
- - System-wide changes
319
-
320
- ## Prerequisites
321
-
322
- Before starting ralph loop:
323
- 1. Run \`/dino.spec\` to achieve 90%+ confidence
324
- 2. Have clear PRD with stories
325
- 3. Each story must have acceptance criteria
326
- 4. Estimated scope should fit in one iteration
327
-
328
- ## Iteration Guidelines
329
-
330
- Each iteration:
331
- 1. Starts with FRESH context (no history accumulation)
332
- 2. Creates git checkpoint before changes
333
- 3. Focuses on ONE story only
334
- 4. Runs tests after completion
335
- 5. Records learnings for future iterations
336
-
337
- ## Git as Memory
338
-
339
- Ralph uses git for persistence:
340
- - \`ralph-cp-{n}\`: Checkpoint commits
341
- - \`ralph: complete story {id}\`: Story completion commits
342
- - \`.dino/ralph-progress.md\`: Persistent state file
343
-
344
- ## Maximum Iterations
345
-
346
- Hard limit: 10 iterations per ralph loop
347
- - If not complete after 10: Manual review required
348
- - Each story should ideally complete in 1-2 iterations
349
-
350
- ## Backpressure Signals
351
-
352
- Tests/types/lints provide guidance:
353
- - Failing tests → Story not complete
354
- - Type errors → Implementation incomplete
355
- - Lint errors → Code quality issues
356
-
357
- Address these before marking story complete.
358
-
359
- ## PRD Story Format
360
-
361
- Each story must have:
362
- \`\`\`markdown
363
- ### Story: {title}
364
- **ID:** {unique_id}
365
- **Files:** {list of files to modify}
366
- **Acceptance Criteria:**
367
- - [ ] Criterion 1
368
- - [ ] Criterion 2
369
- **Test Command:** {command to verify}
370
- \`\`\`
371
-
372
- ## Sub-Agent Context
373
-
374
- Each sub-agent receives ONLY:
375
- - Story requirements
376
- - Acceptance criteria
377
- - Relevant files (scoped)
378
- - Previous learnings
379
- - Test command
380
-
381
- NO conversation history, NO unrelated context.
309
+ return `# Ralph Loop Guidelines (dino-spec v${VERSION})
310
+
311
+ ## When to Use Ralph Loop
312
+
313
+ Use \`/dino.ralph\` when:
314
+ - Complexity score > 70
315
+ - Task involves 10+ files
316
+ - Multi-story feature work
317
+ - Major refactoring
318
+ - System-wide changes
319
+
320
+ ## Prerequisites
321
+
322
+ Before starting ralph loop:
323
+ 1. Run \`/dino.spec\` to achieve 90%+ confidence
324
+ 2. Have clear PRD with stories
325
+ 3. Each story must have acceptance criteria
326
+ 4. Estimated scope should fit in one iteration
327
+
328
+ ## Iteration Guidelines
329
+
330
+ Each iteration:
331
+ 1. Starts with FRESH context (no history accumulation)
332
+ 2. Creates git checkpoint before changes
333
+ 3. Focuses on ONE story only
334
+ 4. Runs tests after completion
335
+ 5. Records learnings for future iterations
336
+
337
+ ## Git as Memory
338
+
339
+ Ralph uses git for persistence:
340
+ - \`ralph-cp-{n}\`: Checkpoint commits
341
+ - \`ralph: complete story {id}\`: Story completion commits
342
+ - \`.dino/ralph-progress.md\`: Persistent state file
343
+
344
+ ## Maximum Iterations
345
+
346
+ Hard limit: 10 iterations per ralph loop
347
+ - If not complete after 10: Manual review required
348
+ - Each story should ideally complete in 1-2 iterations
349
+
350
+ ## Backpressure Signals
351
+
352
+ Tests/types/lints provide guidance:
353
+ - Failing tests → Story not complete
354
+ - Type errors → Implementation incomplete
355
+ - Lint errors → Code quality issues
356
+
357
+ Address these before marking story complete.
358
+
359
+ ## PRD Story Format
360
+
361
+ Each story must have:
362
+ \`\`\`markdown
363
+ ### Story: {title}
364
+ **ID:** {unique_id}
365
+ **Files:** {list of files to modify}
366
+ **Acceptance Criteria:**
367
+ - [ ] Criterion 1
368
+ - [ ] Criterion 2
369
+ **Test Command:** {command to verify}
370
+ \`\`\`
371
+
372
+ ## Sub-Agent Context
373
+
374
+ Each sub-agent receives ONLY:
375
+ - Story requirements
376
+ - Acceptance criteria
377
+ - Relevant files (scoped)
378
+ - Previous learnings
379
+ - Test command
380
+
381
+ NO conversation history, NO unrelated context.
382
382
  `;
383
383
  }
384
384
  /**
385
385
  * Generate ralph enforcement rule content (v13.1.0)
386
386
  */
387
387
  function generateRalphEnforcementRule() {
388
- return `# Ralph Loop Enforcement (dino-spec v${VERSION})
389
-
390
- ## CRITICAL: Mandatory Ralph Gate
391
-
392
- When a user requests Ralph Loop or any complex multi-story task, you MUST use the \`/dino.ralph-gate\` skill. This is NOT optional.
393
-
394
- ## Trigger Keywords (Case Insensitive)
395
-
396
- IMMEDIATELY invoke \`/dino.ralph-gate\` when user message contains:
397
-
398
- | Keyword | Example |
399
- |---------|---------|
400
- | "ralph loop" | "Start ralph loop for this feature" |
401
- | "ralph" | "Use ralph for this" |
402
- | "/dino.ralph" | "/dino.ralph" |
403
- | "fresh context" + "iteration" | "Use fresh context iterations" |
404
- | "multi-story" | "This is multi-story work" |
405
- | "three agent" | "Use three agent system" |
406
- | "gated implementation" | "I want gated implementation" |
407
-
408
- ## Complexity Auto-Trigger
409
-
410
- ALSO invoke \`/dino.ralph-gate\` when task analysis shows:
411
- - Complexity score > 70
412
- - File count > 10
413
- - Distinct parts >= 3
414
- - Breaking changes + scope >= 15
415
-
416
- ## Forbidden Bypass
417
-
418
- You MUST NOT:
419
- - Skip directly to \`/dino.ralph\` without gating
420
- - Start implementation without auditor approval
421
- - Proceed with ambiguity score > 0
422
- - Accept confidence < 95% for Ralph-eligible tasks
423
-
424
- ## Three-Agent Requirement
425
-
426
- ALL THREE agents must execute in sequence:
427
-
428
- \`\`\`
429
- 1. SCOUT (Research) -> Deep exploration, pattern mining
430
- |
431
- 2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
432
- |
433
- 3. RALPH (Executor) -> Only after GATE: APPROVED
434
- \`\`\`
435
-
436
- If auditor rejects, loop back to scout/clarification. Max 3 cycles.
437
-
438
- ## Skill Invocation
439
-
440
- When trigger detected, use Skill tool:
441
-
442
- \`\`\`
443
- Skill: dino.ralph-gate
444
- \`\`\`
445
-
446
- Do NOT use regular \`/dino.ralph\` for complex tasks - always use \`/dino.ralph-gate\`.
447
-
448
- ## Exception: Simple Ralph
449
-
450
- For tasks that:
451
- - Already have complete PRD with stories
452
- - Already went through spec with 90%+ confidence
453
- - User explicitly says "skip gate" or "already specified"
454
-
455
- You MAY use \`/dino.ralph\` directly, but MUST confirm with user first.
456
-
457
- ## Audit Trail
458
-
459
- All Ralph Gate executions produce:
460
- - \`.dino/ralph-gate/research-report.md\`
461
- - \`.dino/ralph-gate/audit-report.md\`
462
- - \`.dino/ralph-gate/validated-prd.md\`
463
-
464
- These files provide accountability and can be reviewed.
388
+ return `# Ralph Loop Enforcement (dino-spec v${VERSION})
389
+
390
+ ## CRITICAL: Mandatory Ralph Gate
391
+
392
+ When a user requests Ralph Loop or any complex multi-story task, you MUST use the \`/dino.ralph-gate\` skill. This is NOT optional.
393
+
394
+ ## Trigger Keywords (Case Insensitive)
395
+
396
+ IMMEDIATELY invoke \`/dino.ralph-gate\` when user message contains:
397
+
398
+ | Keyword | Example |
399
+ |---------|---------|
400
+ | "ralph loop" | "Start ralph loop for this feature" |
401
+ | "ralph" | "Use ralph for this" |
402
+ | "/dino.ralph" | "/dino.ralph" |
403
+ | "fresh context" + "iteration" | "Use fresh context iterations" |
404
+ | "multi-story" | "This is multi-story work" |
405
+ | "three agent" | "Use three agent system" |
406
+ | "gated implementation" | "I want gated implementation" |
407
+
408
+ ## Complexity Auto-Trigger
409
+
410
+ ALSO invoke \`/dino.ralph-gate\` when task analysis shows:
411
+ - Complexity score > 70
412
+ - File count > 10
413
+ - Distinct parts >= 3
414
+ - Breaking changes + scope >= 15
415
+
416
+ ## Forbidden Bypass
417
+
418
+ You MUST NOT:
419
+ - Skip directly to \`/dino.ralph\` without gating
420
+ - Start implementation without auditor approval
421
+ - Proceed with ambiguity score > 0
422
+ - Accept confidence < 95% for Ralph-eligible tasks
423
+
424
+ ## Three-Agent Requirement
425
+
426
+ ALL THREE agents must execute in sequence:
427
+
428
+ \`\`\`
429
+ 1. SCOUT (Research) -> Deep exploration, pattern mining
430
+ |
431
+ 2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
432
+ |
433
+ 3. RALPH (Executor) -> Only after GATE: APPROVED
434
+ \`\`\`
435
+
436
+ If auditor rejects, loop back to scout/clarification. Max 3 cycles.
437
+
438
+ ## Skill Invocation
439
+
440
+ When trigger detected, use Skill tool:
441
+
442
+ \`\`\`
443
+ Skill: dino.ralph-gate
444
+ \`\`\`
445
+
446
+ Do NOT use regular \`/dino.ralph\` for complex tasks - always use \`/dino.ralph-gate\`.
447
+
448
+ ## Exception: Simple Ralph
449
+
450
+ For tasks that:
451
+ - Already have complete PRD with stories
452
+ - Already went through spec with 90%+ confidence
453
+ - User explicitly says "skip gate" or "already specified"
454
+
455
+ You MAY use \`/dino.ralph\` directly, but MUST confirm with user first.
456
+
457
+ ## Audit Trail
458
+
459
+ All Ralph Gate executions produce:
460
+ - \`.dino/ralph-gate/research-report.md\`
461
+ - \`.dino/ralph-gate/audit-report.md\`
462
+ - \`.dino/ralph-gate/validated-prd.md\`
463
+
464
+ These files provide accountability and can be reviewed.
465
465
  `;
466
466
  }
467
467
  /**
468
468
  * Generate smart tests rule content (v12.3.0)
469
469
  */
470
470
  function generateSmartTestsRule() {
471
- return `# Smart Test Optimization (dino-spec v${VERSION})
472
-
473
- ## Overview
474
-
475
- Smart test optimization reduces test run times by 60-80% during typical development workflows. The system tracks test state, maps files to related tests, and makes intelligent decisions about when to skip, run targeted, or run full test suites.
476
-
477
- ## Test Scope Levels
478
-
479
- | Scope | When Used | Duration |
480
- |-------|-----------|----------|
481
- | **SKIP** | No changes since passing tests | 0s |
482
- | **TARGETED** | Changes isolated to single feature | 10-30s |
483
- | **FULL** | Cross-cutting or high-impact changes | < 3 min |
484
-
485
- ## Decision Tree
486
-
487
- \`\`\`
488
- File Changed?
489
- |
490
- +- No changes since last passing tests -> SKIP
491
- |
492
- +- dependency/structural/config changes -> FULL
493
- | (package.json, tsconfig.json, index.ts, etc.)
494
- |
495
- +- src/utils/ or src/core/ shared code -> FULL
496
- |
497
- +- Only code/test changes in single feature -> TARGETED
498
- |
499
- +- Only documentation -> SKIP
500
- \`\`\`
501
-
502
- ## Files That Always Trigger FULL Tests
503
-
504
- - \`package.json\`, \`package-lock.json\`, lock files
505
- - \`tsconfig.json\`, \`vitest.config.ts\`, config files
506
- - \`index.ts\`, \`main.ts\`, entry points
507
- - Files in \`src/utils/\`, \`src/core/\`, \`src/lib/\`, \`src/shared/\`
508
-
509
- ## Targeted Test Patterns
510
-
511
- Extract from focus area or changed files:
512
-
513
- | Focus/Changes | Pattern |
514
- |---------------|---------|
515
- | \`src/hooks/\` | \`hooks\` |
516
- | \`src/core/test-optimization/\` | \`test-optimization\` |
517
- | \`src/commands/provider.ts\` | \`provider\` |
518
- | Multiple features | FULL (no pattern) |
519
-
520
- ## Usage in Skills
521
-
522
- ### \`/dino.aging\`
523
- Uses smart test workflow to analyze scope before running tests.
524
-
525
- ### \`/dino.release\`
526
- Uses smart test detection to optimize release verification.
527
-
528
- ### \`/dino.hunt\`
529
- Uses incremental testing during implementation.
530
-
531
- ## Performance Targets
532
-
533
- | Scenario | Target Duration |
534
- |----------|-----------------|
535
- | SKIP (no changes) | 0s |
536
- | TARGETED (single feature) | 10-30s |
537
- | FULL (must run all) | < 3 min |
471
+ return `# Smart Test Optimization (dino-spec v${VERSION})
472
+
473
+ ## Overview
474
+
475
+ Smart test optimization reduces test run times by 60-80% during typical development workflows. The system tracks test state, maps files to related tests, and makes intelligent decisions about when to skip, run targeted, or run full test suites.
476
+
477
+ ## Test Scope Levels
478
+
479
+ | Scope | When Used | Duration |
480
+ |-------|-----------|----------|
481
+ | **SKIP** | No changes since passing tests | 0s |
482
+ | **TARGETED** | Changes isolated to single feature | 10-30s |
483
+ | **FULL** | Cross-cutting or high-impact changes | < 3 min |
484
+
485
+ ## Decision Tree
486
+
487
+ \`\`\`
488
+ File Changed?
489
+ |
490
+ +- No changes since last passing tests -> SKIP
491
+ |
492
+ +- dependency/structural/config changes -> FULL
493
+ | (package.json, tsconfig.json, index.ts, etc.)
494
+ |
495
+ +- src/utils/ or src/core/ shared code -> FULL
496
+ |
497
+ +- Only code/test changes in single feature -> TARGETED
498
+ |
499
+ +- Only documentation -> SKIP
500
+ \`\`\`
501
+
502
+ ## Files That Always Trigger FULL Tests
503
+
504
+ - \`package.json\`, \`package-lock.json\`, lock files
505
+ - \`tsconfig.json\`, \`vitest.config.ts\`, config files
506
+ - \`index.ts\`, \`main.ts\`, entry points
507
+ - Files in \`src/utils/\`, \`src/core/\`, \`src/lib/\`, \`src/shared/\`
508
+
509
+ ## Targeted Test Patterns
510
+
511
+ Extract from focus area or changed files:
512
+
513
+ | Focus/Changes | Pattern |
514
+ |---------------|---------|
515
+ | \`src/hooks/\` | \`hooks\` |
516
+ | \`src/core/test-optimization/\` | \`test-optimization\` |
517
+ | \`src/commands/provider.ts\` | \`provider\` |
518
+ | Multiple features | FULL (no pattern) |
519
+
520
+ ## Usage in Skills
521
+
522
+ ### \`/dino.aging\`
523
+ Uses smart test workflow to analyze scope before running tests.
524
+
525
+ ### \`/dino.release\`
526
+ Uses smart test detection to optimize release verification.
527
+
528
+ ### \`/dino.hunt\`
529
+ Uses incremental testing during implementation.
530
+
531
+ ## Performance Targets
532
+
533
+ | Scenario | Target Duration |
534
+ |----------|-----------------|
535
+ | SKIP (no changes) | 0s |
536
+ | TARGETED (single feature) | 10-30s |
537
+ | FULL (must run all) | < 3 min |
538
538
  `;
539
539
  }
540
540
  /**
541
541
  * Generate skill patterns rule content
542
542
  */
543
543
  function generateSkillPatternsRule() {
544
- return `# Skill Patterns (dino-spec v${VERSION})
545
-
546
- ## v13.1.0 Three-Agent Ralph Gate System
547
-
548
- New enforced Ralph Loop workflow with strict gating:
549
-
550
- | Skill | Agent Role | Description |
551
- |-------|------------|-------------|
552
- | \`/dino.ralph-gate\` | Orchestrator | Coordinates all three agents |
553
- | \`/dino.audit\` | Gatekeeper | Blocks until 95% score, zero ambiguity |
554
- | \`/dino.ralph\` | Executor | Only runs after gate approval |
555
-
556
- **Flow:** Scout -> Auditor -> Ralph (enforced sequence)
557
-
558
- See \`ralph-enforcement.md\` for trigger keywords.
559
-
560
- ## v12.0.0 Skill Consolidation
561
-
562
- Several skills have been merged to reduce context overhead:
563
-
564
- | Old Skill | New Location | Usage |
565
- |-----------|-------------|-------|
566
- | \`/dino.next\` | \`/dino.status --next\` | Get next step suggestions |
567
- | \`/context-optimize\` | \`/dino.status --tips\` | Context optimization tips |
568
- | \`/dino.focus\` | \`/dino.status --focus\` | Set focus area |
569
- | \`/dino-statusline\` | HUD plugin | Use \`dino hud install\` |
570
-
571
- ## Argument Shorthand
572
-
573
- Skills can accept positional arguments using shorthand:
574
- - \`$0\` - First argument
575
- - \`$1\` - Second argument
576
- - \`$ARGUMENTS[N]\` - Bracket syntax (equivalent)
577
-
578
- **Example:** \`/dino.status --focus src/core/\` passes focus to status
579
-
580
- ## Frontmatter Fields
581
-
582
- | Field | Required | Values | Description |
583
- |-------|----------|--------|-------------|
584
- | description | Yes | string | One-line description |
585
- | model | Yes | haiku, sonnet, opus | Model to use |
586
- | effort | Yes | low, medium, high | Thinking budget |
587
- | context | Yes | inherit, fork | Context handling |
588
- | allowed-tools | Yes | Tool list | Permitted tools |
589
- | auto-approve | No | true | Skip permission prompts |
590
-
591
- ## Context Handling
592
-
593
- | Value | Behavior |
594
- |-------|----------|
595
- | inherit | Continues in current context |
596
- | fork | Creates isolated sub-context |
597
-
598
- Use \`fork\` for:
599
- - Research tasks that accumulate context
600
- - Long-running operations
601
- - Tasks that might pollute main context
602
-
603
- ## Model Selection by Effort
604
-
605
- | Effort | Model | Typical Use |
606
- |--------|-------|-------------|
607
- | low | haiku | Status checks, lookups |
608
- | medium | sonnet | Implementation, testing |
609
- | high | opus | Planning, architecture |
610
-
611
- ## Example Skill Frontmatter
612
-
613
- \`\`\`yaml
614
- ---
615
- description: Quick reference for context optimization
616
- model: haiku
617
- effort: low
618
- context: inherit
619
- allowed-tools:
620
- - Read
621
- auto-approve: true
622
- ---
623
- \`\`\`
624
-
625
- ## Auto-Approval
626
-
627
- Skills marked with \`auto-approve: true\` run without permission prompts. This improves UX for read-only operations.
628
-
629
- ### Qualifying Skills
630
-
631
- | Skill | Tools Used | Status |
632
- |-------|------------|--------|
633
- | \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
634
-
635
- ### Non-Qualifying Skills
636
-
637
- | Skill | Disqualifying Tool | Reason |
638
- |-------|-------------------|--------|
639
- | \`/dino.status\` | Bash | Git commands |
640
- | \`/dino.handoff\` | Bash | Git/file operations |
641
- | \`/dino.hunt\` | Edit, Write, Bash | Implementation |
642
- | \`/dino.fossil\` | Write | Archive updates |
643
- | \`/dino.ralph-gate\` | Write, Task | Orchestration, file writes |
644
- | \`/dino.ralph\` | Edit, Write, Bash | Implementation |
645
-
646
- ### Qualifying Skills (Read-Only)
647
-
648
- | Skill | Tools Used | Status |
649
- |-------|------------|--------|
650
- | \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
651
- | \`/dino.audit\` | Read, Grep, Glob, AskUserQuestion | Auto-approved |
652
-
653
- ### Requirements for Auto-Approval
654
-
655
- A skill qualifies for \`auto-approve: true\` when:
656
-
657
- 1. **No Bash tool** - Shell commands could have side effects
658
- 2. **No Edit tool** - Modifying files requires approval
659
- 3. **No Write tool** - Creating files requires approval
660
- 4. **No NotebookEdit** - Notebook changes require approval
661
-
662
- ### Allowed Tools for Auto-Approval
663
-
664
- - \`Read\` - Reading files
665
- - \`Glob\` - Finding files
666
- - \`Grep\` - Searching file contents
667
- - \`WebFetch\` - Fetching web content
668
- - \`WebSearch\` - Searching the web
669
- - \`Task\` (read-only subagents)
670
- - MCP tools (read-only)
671
-
672
- ### Security Considerations
673
-
674
- Auto-approval is safe because:
675
- - Read-only operations cannot modify system state
676
- - No shell execution means no command injection risk
677
- - File system remains unchanged
678
- - Network operations are read-only (fetch, search)
679
-
680
- Users can still configure hooks to intercept any skill invocation regardless of auto-approval status.
544
+ return `# Skill Patterns (dino-spec v${VERSION})
545
+
546
+ ## v13.1.0 Three-Agent Ralph Gate System
547
+
548
+ New enforced Ralph Loop workflow with strict gating:
549
+
550
+ | Skill | Agent Role | Description |
551
+ |-------|------------|-------------|
552
+ | \`/dino.ralph-gate\` | Orchestrator | Coordinates all three agents |
553
+ | \`/dino.audit\` | Gatekeeper | Blocks until 95% score, zero ambiguity |
554
+ | \`/dino.ralph\` | Executor | Only runs after gate approval |
555
+
556
+ **Flow:** Scout -> Auditor -> Ralph (enforced sequence)
557
+
558
+ See \`ralph-enforcement.md\` for trigger keywords.
559
+
560
+ ## v12.0.0 Skill Consolidation
561
+
562
+ Several skills have been merged to reduce context overhead:
563
+
564
+ | Old Skill | New Location | Usage |
565
+ |-----------|-------------|-------|
566
+ | \`/dino.next\` | \`/dino.status --next\` | Get next step suggestions |
567
+ | \`/context-optimize\` | \`/dino.status --tips\` | Context optimization tips |
568
+ | \`/dino.focus\` | \`/dino.status --focus\` | Set focus area |
569
+ | \`/dino-statusline\` | HUD plugin | Use \`dino hud install\` |
570
+
571
+ ## Argument Shorthand
572
+
573
+ Skills can accept positional arguments using shorthand:
574
+ - \`$0\` - First argument
575
+ - \`$1\` - Second argument
576
+ - \`$ARGUMENTS[N]\` - Bracket syntax (equivalent)
577
+
578
+ **Example:** \`/dino.status --focus src/core/\` passes focus to status
579
+
580
+ ## Frontmatter Fields
581
+
582
+ | Field | Required | Values | Description |
583
+ |-------|----------|--------|-------------|
584
+ | description | Yes | string | One-line description |
585
+ | model | Yes | haiku, sonnet, opus | Model to use |
586
+ | effort | Yes | low, medium, high | Thinking budget |
587
+ | context | Yes | inherit, fork | Context handling |
588
+ | allowed-tools | Yes | Tool list | Permitted tools |
589
+ | auto-approve | No | true | Skip permission prompts |
590
+
591
+ ## Context Handling
592
+
593
+ | Value | Behavior |
594
+ |-------|----------|
595
+ | inherit | Continues in current context |
596
+ | fork | Creates isolated sub-context |
597
+
598
+ Use \`fork\` for:
599
+ - Research tasks that accumulate context
600
+ - Long-running operations
601
+ - Tasks that might pollute main context
602
+
603
+ ## Model Selection by Effort
604
+
605
+ | Effort | Model | Typical Use |
606
+ |--------|-------|-------------|
607
+ | low | haiku | Status checks, lookups |
608
+ | medium | sonnet | Implementation, testing |
609
+ | high | opus | Planning, architecture |
610
+
611
+ ## Example Skill Frontmatter
612
+
613
+ \`\`\`yaml
614
+ ---
615
+ description: Quick reference for context optimization
616
+ model: haiku
617
+ effort: low
618
+ context: inherit
619
+ allowed-tools:
620
+ - Read
621
+ auto-approve: true
622
+ ---
623
+ \`\`\`
624
+
625
+ ## Auto-Approval
626
+
627
+ Skills marked with \`auto-approve: true\` run without permission prompts. This improves UX for read-only operations.
628
+
629
+ ### Qualifying Skills
630
+
631
+ | Skill | Tools Used | Status |
632
+ |-------|------------|--------|
633
+ | \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
634
+
635
+ ### Non-Qualifying Skills
636
+
637
+ | Skill | Disqualifying Tool | Reason |
638
+ |-------|-------------------|--------|
639
+ | \`/dino.status\` | Bash | Git commands |
640
+ | \`/dino.handoff\` | Bash | Git/file operations |
641
+ | \`/dino.hunt\` | Edit, Write, Bash | Implementation |
642
+ | \`/dino.fossil\` | Write | Archive updates |
643
+ | \`/dino.ralph-gate\` | Write, Task | Orchestration, file writes |
644
+ | \`/dino.ralph\` | Edit, Write, Bash | Implementation |
645
+
646
+ ### Qualifying Skills (Read-Only)
647
+
648
+ | Skill | Tools Used | Status |
649
+ |-------|------------|--------|
650
+ | \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
651
+ | \`/dino.audit\` | Read, Grep, Glob, AskUserQuestion | Auto-approved |
652
+
653
+ ### Requirements for Auto-Approval
654
+
655
+ A skill qualifies for \`auto-approve: true\` when:
656
+
657
+ 1. **No Bash tool** - Shell commands could have side effects
658
+ 2. **No Edit tool** - Modifying files requires approval
659
+ 3. **No Write tool** - Creating files requires approval
660
+ 4. **No NotebookEdit** - Notebook changes require approval
661
+
662
+ ### Allowed Tools for Auto-Approval
663
+
664
+ - \`Read\` - Reading files
665
+ - \`Glob\` - Finding files
666
+ - \`Grep\` - Searching file contents
667
+ - \`WebFetch\` - Fetching web content
668
+ - \`WebSearch\` - Searching the web
669
+ - \`Task\` (read-only subagents)
670
+ - MCP tools (read-only)
671
+
672
+ ### Security Considerations
673
+
674
+ Auto-approval is safe because:
675
+ - Read-only operations cannot modify system state
676
+ - No shell execution means no command injection risk
677
+ - File system remains unchanged
678
+ - Network operations are read-only (fetch, search)
679
+
680
+ Users can still configure hooks to intercept any skill invocation regardless of auto-approval status.
681
681
  `;
682
682
  }
683
683
  /**
684
684
  * Generate spec-kit rule content
685
685
  */
686
686
  function generateSpecKitRule() {
687
- return `# Spec-Kit Auto-Specification (dino-spec v${VERSION})
688
-
689
- ## Overview
690
-
691
- The \`/dino.spec\` skill provides intelligent prompt analysis and requirement clarification before implementation begins.
692
-
693
- ## Auto-Trigger Conditions
694
-
695
- Spec-kit auto-triggers when:
696
- - Ambiguity score > 40 (vague verbs, missing details, unclear success)
697
- - User request involves implementation ("add", "create", "implement", "build", "fix")
698
-
699
- Spec-kit does NOT trigger for:
700
- - Status checks (\`/dino.status\`)
701
- - Simple queries ("what does X do?")
702
- - Explicit skip (\`--skip-spec\` or complexity < 30 with ambiguity < 20)
703
-
704
- ## Modes
705
-
706
- | Mode | When | Behavior |
707
- |------|------|----------|
708
- | **Skip** | complexity < 30, ambiguity < 20 | Proceed directly to implementation |
709
- | **Lightweight** | complexity < 30, ambiguity >= 20 | Quick validation, one confirmation |
710
- | **Full** | complexity >= 30 | Thorough analysis with research/questions |
711
-
712
- ## Confidence Gate
713
-
714
- Implementation is BLOCKED until:
715
- - Confidence reaches 80%
716
- - OR user explicitly validates assumptions after 5 question rounds
717
-
718
- ## Multi-Part Request Handling
719
-
720
- When multiple requests detected ("add X and also Y"):
721
- 1. Split into discrete tasks
722
- 2. Present recommended order (quick wins first, foundational second)
723
- 3. Analyze first task only
724
- 4. Queue remaining tasks
725
-
726
- ## Context Awareness
727
-
728
- Spec-kit checks existing session context:
729
- - If active focus exists: "Is this related to [focus]?"
730
- - If related: Build on context, skip redundant questions
731
- - If unrelated: Fresh analysis
732
-
733
- ## Output Location
734
-
735
- Results written to \`.dino/session.md\` under \`## Spec-Kit Analysis\`
736
-
737
- ## Recommended Flow
738
-
739
- \`\`\`
740
- User Request
741
-
742
- [ambiguity > 40?] ──no──→ Proceed to /dino.hunt
743
- ↓ yes
744
- /dino.spec (auto)
745
-
746
- [confidence >= 80%?] ──no──→ More questions (max 5 rounds)
747
- ↓ yes
748
- [complexity > 60?]
749
- ↓ yes ↓ no
750
- /dino.nest /dino.hunt
751
- \`\`\`
752
-
753
- ## Manual Invocation
754
-
755
- Always available via \`/dino.spec\` for:
756
- - Explicit thorough analysis
757
- - Complex features that need planning
758
- - When unsure about requirements
687
+ return `# Spec-Kit Auto-Specification (dino-spec v${VERSION})
688
+
689
+ ## Overview
690
+
691
+ The \`/dino.spec\` skill provides intelligent prompt analysis and requirement clarification before implementation begins.
692
+
693
+ ## Auto-Trigger Conditions
694
+
695
+ Spec-kit auto-triggers when:
696
+ - Ambiguity score > 40 (vague verbs, missing details, unclear success)
697
+ - User request involves implementation ("add", "create", "implement", "build", "fix")
698
+
699
+ Spec-kit does NOT trigger for:
700
+ - Status checks (\`/dino.status\`)
701
+ - Simple queries ("what does X do?")
702
+ - Explicit skip (\`--skip-spec\` or complexity < 30 with ambiguity < 20)
703
+
704
+ ## Modes
705
+
706
+ | Mode | When | Behavior |
707
+ |------|------|----------|
708
+ | **Skip** | complexity < 30, ambiguity < 20 | Proceed directly to implementation |
709
+ | **Lightweight** | complexity < 30, ambiguity >= 20 | Quick validation, one confirmation |
710
+ | **Full** | complexity >= 30 | Thorough analysis with research/questions |
711
+
712
+ ## Confidence Gate
713
+
714
+ Implementation is BLOCKED until:
715
+ - Confidence reaches 80%
716
+ - OR user explicitly validates assumptions after 5 question rounds
717
+
718
+ ## Multi-Part Request Handling
719
+
720
+ When multiple requests detected ("add X and also Y"):
721
+ 1. Split into discrete tasks
722
+ 2. Present recommended order (quick wins first, foundational second)
723
+ 3. Analyze first task only
724
+ 4. Queue remaining tasks
725
+
726
+ ## Context Awareness
727
+
728
+ Spec-kit checks existing session context:
729
+ - If active focus exists: "Is this related to [focus]?"
730
+ - If related: Build on context, skip redundant questions
731
+ - If unrelated: Fresh analysis
732
+
733
+ ## Output Location
734
+
735
+ Results written to \`.dino/session.md\` under \`## Spec-Kit Analysis\`
736
+
737
+ ## Recommended Flow
738
+
739
+ \`\`\`
740
+ User Request
741
+
742
+ [ambiguity > 40?] ──no──→ Proceed to /dino.hunt
743
+ ↓ yes
744
+ /dino.spec (auto)
745
+
746
+ [confidence >= 80%?] ──no──→ More questions (max 5 rounds)
747
+ ↓ yes
748
+ [complexity > 60?]
749
+ ↓ yes ↓ no
750
+ /dino.nest /dino.hunt
751
+ \`\`\`
752
+
753
+ ## Manual Invocation
754
+
755
+ Always available via \`/dino.spec\` for:
756
+ - Explicit thorough analysis
757
+ - Complex features that need planning
758
+ - When unsure about requirements
759
759
  `;
760
760
  }
761
761
  /**
762
762
  * Generate standard paths rule content
763
763
  */
764
764
  function generateStandardPathsRule() {
765
- return `# Standard Paths (dino-spec v${VERSION})
766
-
767
- ## CRITICAL: Always Use These Paths
768
-
769
- When creating or reading dino-spec files, you MUST use these standard paths:
770
-
771
- ### Session State
772
- | Purpose | Path | Notes |
773
- |---------|------|-------|
774
- | Session state | \`.dino/session.md\` | Live session, auto-updated |
775
- | Config | \`.dino/config.json\` | Settings and features |
776
- | Structure | \`.dino/structure.json\` | Cached project analysis |
777
-
778
- ### Working Files
779
- | Purpose | Path | Notes |
780
- |---------|------|-------|
781
- | Research | \`.dino/research/<topic-slug>.md\` | Research findings |
782
- | Handoffs | \`.dino/handoff/latest.md\` | Session handoff notes |
783
- | Plans | \`.dino/plans/active.json\` | Active implementation plan |
784
- | Tasks | \`.dino/tasks/\` | Task registry |
785
- | Checkpoints | \`.dino/checkpoints/\` | Git checkpoints |
786
-
787
- ### Archive (Historical)
788
- | Purpose | Path | Notes |
789
- |---------|------|-------|
790
- | Old handoffs | \`.dino/archive/handoffs/\` | Completed handoffs |
791
- | Old sessions | \`.dino/archive/\` | Archived sessions |
792
-
793
- ## Rules
794
-
795
- 1. **NEVER create new top-level directories in \`.dino/\`** - Use existing paths
796
- 2. **ALWAYS check if file exists** before creating a new one
797
- 3. **Research files go in \`.dino/research/\`** - not root, not \`.claude/docs/\`
798
- 4. **Handoff context goes in \`.dino/handoff/\`** - singular, not handoffs
799
- 5. **Plans go in \`.dino/plans/\`** - with \`active.json\` for current plan
765
+ return `# Standard Paths (dino-spec v${VERSION})
766
+
767
+ ## CRITICAL: Always Use These Paths
768
+
769
+ When creating or reading dino-spec files, you MUST use these standard paths:
770
+
771
+ ### Session State
772
+ | Purpose | Path | Notes |
773
+ |---------|------|-------|
774
+ | Session state | \`.dino/session.md\` | Live session, auto-updated |
775
+ | Config | \`.dino/config.json\` | Settings and features |
776
+ | Structure | \`.dino/structure.json\` | Cached project analysis |
777
+
778
+ ### Working Files
779
+ | Purpose | Path | Notes |
780
+ |---------|------|-------|
781
+ | Research | \`.dino/research/<topic-slug>.md\` | Research findings |
782
+ | Handoffs | \`.dino/handoff/latest.md\` | Session handoff notes |
783
+ | Plans | \`.dino/plans/active.json\` | Active implementation plan |
784
+ | Tasks | \`.dino/tasks/\` | Task registry |
785
+ | Checkpoints | \`.dino/checkpoints/\` | Git checkpoints |
786
+
787
+ ### Archive (Historical)
788
+ | Purpose | Path | Notes |
789
+ |---------|------|-------|
790
+ | Old handoffs | \`.dino/archive/handoffs/\` | Completed handoffs |
791
+ | Old sessions | \`.dino/archive/\` | Archived sessions |
792
+
793
+ ## Rules
794
+
795
+ 1. **NEVER create new top-level directories in \`.dino/\`** - Use existing paths
796
+ 2. **ALWAYS check if file exists** before creating a new one
797
+ 3. **Research files go in \`.dino/research/\`** - not root, not \`.claude/docs/\`
798
+ 4. **Handoff context goes in \`.dino/handoff/\`** - singular, not handoffs
799
+ 5. **Plans go in \`.dino/plans/\`** - with \`active.json\` for current plan
800
800
  `;
801
801
  }
802
802
  /**
803
803
  * Generate change categories rule content
804
804
  */
805
805
  function generateChangeCategoriesRule() {
806
- return `# Change Categories (dino-spec v${VERSION})
807
-
808
- ## File Classification
809
-
810
- Files are classified into categories based on path and name:
811
-
812
- ### dependency (High Significance)
813
- Files that affect project dependencies:
814
- - \`package.json\`, \`package-lock.json\`, \`yarn.lock\`, \`pnpm-lock.yaml\`
815
- - \`requirements.txt\`, \`Pipfile\`, \`pyproject.toml\`
816
- - \`Cargo.toml\`, \`Cargo.lock\`
817
- - \`go.mod\`, \`go.sum\`
818
- - \`Gemfile\`, \`Gemfile.lock\`
819
-
820
- **Pending Action:** Run package manager install command
821
-
822
- ### structural (High Significance)
823
- Files that affect project structure:
824
- - Entry points: \`index.ts\`, \`main.ts\`, \`app.ts\`
825
- - Configuration: \`tsconfig.json\`, \`webpack.config.js\`
826
- - Build configs: \`build.js\`, \`vite.config.ts\`
827
- - Directory additions/removals
828
-
829
- **Pending Action:** Verify import paths
830
-
831
- ### config (Medium Significance)
832
- Configuration files:
833
- - \`.env\`, \`.env.*\`
834
- - \`*.config.js\`, \`*.config.ts\`
835
- - \`.eslintrc\`, \`.prettierrc\`
836
- - CI/CD files: \`.github/\`, \`.gitlab-ci.yml\`
837
-
838
- ### test (Medium Significance)
839
- Test files:
840
- - \`*.test.ts\`, \`*.test.js\`
841
- - \`*.spec.ts\`, \`*.spec.js\`
842
- - \`test/\`, \`tests/\`, \`__tests__/\` directories
843
-
844
- ### code (Low Significance)
845
- Source code files:
846
- - \`src/\`, \`lib/\` directories
847
- - Main programming language files
848
- - Utility and helper files
849
-
850
- ### documentation (Low Significance)
851
- Documentation files:
852
- - \`*.md\`, \`README*\`
853
- - \`docs/\` directory
854
- - Code comments (when detected)
855
-
856
- ## Impact on Workflow
857
-
858
- | Category | Run Tests | Run Build | Review |
859
- |----------|-----------|-----------|--------|
860
- | dependency | After install | Yes | Changelog |
861
- | structural | Yes | Yes | Imports |
862
- | config | Maybe | Maybe | Side effects |
863
- | test | Yes | No | Coverage |
864
- | code | Yes | Yes | Normal |
865
- | documentation | No | No | Spelling |
806
+ return `# Change Categories (dino-spec v${VERSION})
807
+
808
+ ## File Classification
809
+
810
+ Files are classified into categories based on path and name:
811
+
812
+ ### dependency (High Significance)
813
+ Files that affect project dependencies:
814
+ - \`package.json\`, \`package-lock.json\`, \`yarn.lock\`, \`pnpm-lock.yaml\`
815
+ - \`requirements.txt\`, \`Pipfile\`, \`pyproject.toml\`
816
+ - \`Cargo.toml\`, \`Cargo.lock\`
817
+ - \`go.mod\`, \`go.sum\`
818
+ - \`Gemfile\`, \`Gemfile.lock\`
819
+
820
+ **Pending Action:** Run package manager install command
821
+
822
+ ### structural (High Significance)
823
+ Files that affect project structure:
824
+ - Entry points: \`index.ts\`, \`main.ts\`, \`app.ts\`
825
+ - Configuration: \`tsconfig.json\`, \`webpack.config.js\`
826
+ - Build configs: \`build.js\`, \`vite.config.ts\`
827
+ - Directory additions/removals
828
+
829
+ **Pending Action:** Verify import paths
830
+
831
+ ### config (Medium Significance)
832
+ Configuration files:
833
+ - \`.env\`, \`.env.*\`
834
+ - \`*.config.js\`, \`*.config.ts\`
835
+ - \`.eslintrc\`, \`.prettierrc\`
836
+ - CI/CD files: \`.github/\`, \`.gitlab-ci.yml\`
837
+
838
+ ### test (Medium Significance)
839
+ Test files:
840
+ - \`*.test.ts\`, \`*.test.js\`
841
+ - \`*.spec.ts\`, \`*.spec.js\`
842
+ - \`test/\`, \`tests/\`, \`__tests__/\` directories
843
+
844
+ ### code (Low Significance)
845
+ Source code files:
846
+ - \`src/\`, \`lib/\` directories
847
+ - Main programming language files
848
+ - Utility and helper files
849
+
850
+ ### documentation (Low Significance)
851
+ Documentation files:
852
+ - \`*.md\`, \`README*\`
853
+ - \`docs/\` directory
854
+ - Code comments (when detected)
855
+
856
+ ## Impact on Workflow
857
+
858
+ | Category | Run Tests | Run Build | Review |
859
+ |----------|-----------|-----------|--------|
860
+ | dependency | After install | Yes | Changelog |
861
+ | structural | Yes | Yes | Imports |
862
+ | config | Maybe | Maybe | Side effects |
863
+ | test | Yes | No | Coverage |
864
+ | code | Yes | Yes | Normal |
865
+ | documentation | No | No | Spelling |
866
866
  `;
867
867
  }
868
868
  /**