dino-spec 20.4.0 → 21.1.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 (360) hide show
  1. package/.claude/rules/dino/change-categories.md +56 -56
  2. package/.claude/rules/dino/confidence.md +147 -147
  3. package/.claude/rules/dino/quality.md +112 -112
  4. package/.claude/skills/dino.analyze-codebase/SKILL.md +139 -139
  5. package/.claude/skills/dino.refactor/SKILL.md +146 -146
  6. package/.claude/skills/dino.statusline/SKILL.md +56 -56
  7. package/.claude/skills/dino.team/SKILL.md +136 -136
  8. package/.claude/skills/dino.verify/SKILL.md +195 -195
  9. package/.claude/skills/research/SKILL.md +149 -149
  10. package/bin/dino.js +23 -1
  11. package/dist/.build-meta.json +1 -0
  12. package/dist/commands/debug.js +27 -27
  13. package/dist/commands/hooks/index.d.ts +1 -0
  14. package/dist/commands/hooks/index.d.ts.map +1 -1
  15. package/dist/commands/hooks/index.js +18 -53
  16. package/dist/commands/hooks/index.js.map +1 -1
  17. package/dist/commands/hooks/registry.d.ts.map +1 -1
  18. package/dist/commands/hooks/registry.js +0 -46
  19. package/dist/commands/hooks/registry.js.map +1 -1
  20. package/dist/commands/hooks/types.d.ts +2 -1
  21. package/dist/commands/hooks/types.d.ts.map +1 -1
  22. package/dist/commands/hooks/types.js.map +1 -1
  23. package/dist/commands/hooks/utils.d.ts +0 -4
  24. package/dist/commands/hooks/utils.d.ts.map +1 -1
  25. package/dist/commands/hooks/utils.js +0 -4
  26. package/dist/commands/hooks/utils.js.map +1 -1
  27. package/dist/commands/init.d.ts.map +1 -1
  28. package/dist/commands/init.js +27 -13
  29. package/dist/commands/init.js.map +1 -1
  30. package/dist/commands/mcp.js +12 -12
  31. package/dist/commands/mcp.js.map +1 -1
  32. package/dist/commands/update.js +2 -2
  33. package/dist/commands/update.js.map +1 -1
  34. package/dist/core/agents/__tests__/skill-creator.test.js +13 -13
  35. package/dist/core/agents/coordination/checkpoint.d.ts +65 -0
  36. package/dist/core/agents/coordination/checkpoint.d.ts.map +1 -0
  37. package/dist/core/agents/coordination/checkpoint.js +187 -0
  38. package/dist/core/agents/coordination/checkpoint.js.map +1 -0
  39. package/dist/core/agents/coordination/index.d.ts +5 -0
  40. package/dist/core/agents/coordination/index.d.ts.map +1 -1
  41. package/dist/core/agents/coordination/index.js +7 -0
  42. package/dist/core/agents/coordination/index.js.map +1 -1
  43. package/dist/core/agents/coordination/self-healing.d.ts +58 -0
  44. package/dist/core/agents/coordination/self-healing.d.ts.map +1 -0
  45. package/dist/core/agents/coordination/self-healing.js +318 -0
  46. package/dist/core/agents/coordination/self-healing.js.map +1 -0
  47. package/dist/core/agents/core/index.d.ts +4 -6
  48. package/dist/core/agents/core/index.d.ts.map +1 -1
  49. package/dist/core/agents/core/index.js +4 -7
  50. package/dist/core/agents/core/index.js.map +1 -1
  51. package/dist/core/agents/index.d.ts +0 -1
  52. package/dist/core/agents/index.d.ts.map +1 -1
  53. package/dist/core/agents/index.js +0 -2
  54. package/dist/core/agents/index.js.map +1 -1
  55. package/dist/core/agents/programmatic/script-executor.js +134 -134
  56. package/dist/core/agents/skill-creator.js +75 -75
  57. package/dist/core/analyzer/index.d.ts +0 -1
  58. package/dist/core/analyzer/index.d.ts.map +1 -1
  59. package/dist/core/analyzer/index.js +0 -2
  60. package/dist/core/analyzer/index.js.map +1 -1
  61. package/dist/core/analyzer/multi-lang/index.d.ts +4 -2
  62. package/dist/core/analyzer/multi-lang/index.d.ts.map +1 -1
  63. package/dist/core/analyzer/multi-lang/index.js +44 -33
  64. package/dist/core/analyzer/multi-lang/index.js.map +1 -1
  65. package/dist/core/analyzer/multi-lang/language-detector.d.ts.map +1 -1
  66. package/dist/core/analyzer/multi-lang/language-detector.js +67 -0
  67. package/dist/core/analyzer/multi-lang/language-detector.js.map +1 -1
  68. package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts.map +1 -1
  69. package/dist/core/analyzer/multi-lang/pattern-extractor.js +92 -0
  70. package/dist/core/analyzer/multi-lang/pattern-extractor.js.map +1 -1
  71. package/dist/core/analyzer/multi-lang/semantic-diff.d.ts +29 -0
  72. package/dist/core/analyzer/multi-lang/semantic-diff.d.ts.map +1 -0
  73. package/dist/core/analyzer/multi-lang/semantic-diff.js +163 -0
  74. package/dist/core/analyzer/multi-lang/semantic-diff.js.map +1 -0
  75. package/dist/core/analyzer/multi-lang/types.d.ts +1 -1
  76. package/dist/core/analyzer/multi-lang/types.d.ts.map +1 -1
  77. package/dist/core/cache/index.d.ts +0 -1
  78. package/dist/core/cache/index.d.ts.map +1 -1
  79. package/dist/core/cache/index.js +0 -1
  80. package/dist/core/cache/index.js.map +1 -1
  81. package/dist/core/config/index.d.ts +0 -1
  82. package/dist/core/config/index.d.ts.map +1 -1
  83. package/dist/core/config/index.js +0 -1
  84. package/dist/core/config/index.js.map +1 -1
  85. package/dist/core/context/budget-thresholds.d.ts +6 -0
  86. package/dist/core/context/budget-thresholds.d.ts.map +1 -1
  87. package/dist/core/context/budget-thresholds.js +18 -46
  88. package/dist/core/context/budget-thresholds.js.map +1 -1
  89. package/dist/core/context/context-health.js +1 -1
  90. package/dist/core/context/context-health.js.map +1 -1
  91. package/dist/core/context/index.d.ts +1 -3
  92. package/dist/core/context/index.d.ts.map +1 -1
  93. package/dist/core/context/index.js +1 -5
  94. package/dist/core/context/index.js.map +1 -1
  95. package/dist/core/context/lazy-loader.js +3 -3
  96. package/dist/core/environment/__tests__/pre-verify.test.js +8 -8
  97. package/dist/core/environment/index.d.ts +0 -1
  98. package/dist/core/environment/index.d.ts.map +1 -1
  99. package/dist/core/generator/claude-md.js +40 -40
  100. package/dist/core/generator/session-md.js +31 -31
  101. package/dist/core/memory/agents/index.d.ts +0 -1
  102. package/dist/core/memory/agents/index.d.ts.map +1 -1
  103. package/dist/core/memory/agents/index.js +0 -2
  104. package/dist/core/memory/agents/index.js.map +1 -1
  105. package/dist/core/memory/index.d.ts +1 -2
  106. package/dist/core/memory/index.d.ts.map +1 -1
  107. package/dist/core/memory/index.js +1 -5
  108. package/dist/core/memory/index.js.map +1 -1
  109. package/dist/core/ralph/__tests__/prd-generator-session-context.test.js +31 -31
  110. package/dist/core/ralph/index.d.ts +0 -2
  111. package/dist/core/ralph/index.d.ts.map +1 -1
  112. package/dist/core/ralph/index.js +0 -1
  113. package/dist/core/ralph/index.js.map +1 -1
  114. package/dist/core/ralph/progress-tracker.js +14 -14
  115. package/dist/core/ralph/state-handler.js +5 -5
  116. package/dist/core/ralph/sub-agent-spawner.js +9 -9
  117. package/dist/core/registry/feature-registry.d.ts.map +1 -1
  118. package/dist/core/registry/feature-registry.js +0 -56
  119. package/dist/core/registry/feature-registry.js.map +1 -1
  120. package/dist/core/updater/deprecated-files.d.ts.map +1 -1
  121. package/dist/core/updater/deprecated-files.js +21 -0
  122. package/dist/core/updater/deprecated-files.js.map +1 -1
  123. package/dist/hooks/code-safety-patterns.d.ts.map +1 -1
  124. package/dist/hooks/code-safety-patterns.js +81 -4
  125. package/dist/hooks/code-safety-patterns.js.map +1 -1
  126. package/dist/hooks/constants.d.ts.map +1 -1
  127. package/dist/hooks/constants.js +0 -1
  128. package/dist/hooks/constants.js.map +1 -1
  129. package/dist/hooks/generator-factory.d.ts +7 -5
  130. package/dist/hooks/generator-factory.d.ts.map +1 -1
  131. package/dist/hooks/generator-factory.js +49 -36
  132. package/dist/hooks/generator-factory.js.map +1 -1
  133. package/dist/hooks/handlers/execution.d.ts.map +1 -1
  134. package/dist/hooks/handlers/execution.js +9 -21
  135. package/dist/hooks/handlers/execution.js.map +1 -1
  136. package/dist/hooks/handlers/index.d.ts +1 -1
  137. package/dist/hooks/handlers/index.d.ts.map +1 -1
  138. package/dist/hooks/handlers/index.js +45 -10
  139. package/dist/hooks/handlers/index.js.map +1 -1
  140. package/dist/hooks/handlers/memory-lifecycle.d.ts +2 -2
  141. package/dist/hooks/handlers/memory-lifecycle.d.ts.map +1 -1
  142. package/dist/hooks/handlers/memory-lifecycle.js +29 -10
  143. package/dist/hooks/handlers/memory-lifecycle.js.map +1 -1
  144. package/dist/hooks/handlers/post-edit.d.ts.map +1 -1
  145. package/dist/hooks/handlers/post-edit.js +39 -1
  146. package/dist/hooks/handlers/post-edit.js.map +1 -1
  147. package/dist/hooks/handlers/types.d.ts +19 -1
  148. package/dist/hooks/handlers/types.d.ts.map +1 -1
  149. package/dist/hooks/handlers/types.js +42 -0
  150. package/dist/hooks/handlers/types.js.map +1 -1
  151. package/dist/hooks/handlers/user-input.d.ts +0 -4
  152. package/dist/hooks/handlers/user-input.d.ts.map +1 -1
  153. package/dist/hooks/handlers/user-input.js +6 -28
  154. package/dist/hooks/handlers/user-input.js.map +1 -1
  155. package/dist/hooks/index.d.ts +0 -1
  156. package/dist/hooks/index.d.ts.map +1 -1
  157. package/dist/hooks/index.js +0 -1
  158. package/dist/hooks/index.js.map +1 -1
  159. package/dist/hooks/memory-correlator.js +1 -1
  160. package/dist/hud/charts/bar-chart.d.ts +47 -0
  161. package/dist/hud/charts/bar-chart.d.ts.map +1 -0
  162. package/dist/hud/charts/bar-chart.js +91 -0
  163. package/dist/hud/charts/bar-chart.js.map +1 -0
  164. package/dist/hud/charts/index.d.ts +8 -0
  165. package/dist/hud/charts/index.d.ts.map +1 -0
  166. package/dist/hud/charts/index.js +8 -0
  167. package/dist/hud/charts/index.js.map +1 -0
  168. package/dist/hud/charts/sparkline.d.ts +38 -0
  169. package/dist/hud/charts/sparkline.d.ts.map +1 -0
  170. package/dist/hud/charts/sparkline.js +105 -0
  171. package/dist/hud/charts/sparkline.js.map +1 -0
  172. package/dist/hud/render/index.d.ts +0 -6
  173. package/dist/hud/render/index.d.ts.map +1 -1
  174. package/dist/hud/render/index.js +0 -9
  175. package/dist/hud/render/index.js.map +1 -1
  176. package/dist/mcp/cache.d.ts.map +1 -1
  177. package/dist/mcp/cache.js +0 -1
  178. package/dist/mcp/cache.js.map +1 -1
  179. package/dist/mcp/index.d.ts +0 -1
  180. package/dist/mcp/index.d.ts.map +1 -1
  181. package/dist/mcp/index.js +0 -1
  182. package/dist/mcp/index.js.map +1 -1
  183. package/dist/mcp/setup.d.ts +6 -6
  184. package/dist/mcp/setup.d.ts.map +1 -1
  185. package/dist/mcp/setup.js +24 -24
  186. package/dist/mcp/setup.js.map +1 -1
  187. package/dist/mcp/tool-recommender.d.ts +1 -0
  188. package/dist/mcp/tool-recommender.d.ts.map +1 -1
  189. package/dist/mcp/tool-recommender.js +1 -16
  190. package/dist/mcp/tool-recommender.js.map +1 -1
  191. package/dist/mcp/tool-sequence-store.d.ts +99 -0
  192. package/dist/mcp/tool-sequence-store.d.ts.map +1 -0
  193. package/dist/mcp/tool-sequence-store.js +316 -0
  194. package/dist/mcp/tool-sequence-store.js.map +1 -0
  195. package/dist/mcp/tools/index.d.ts +1 -2
  196. package/dist/mcp/tools/index.d.ts.map +1 -1
  197. package/dist/mcp/tools/index.js +0 -5
  198. package/dist/mcp/tools/index.js.map +1 -1
  199. package/dist/mcp/tools/lazy-context.js +6 -6
  200. package/dist/services/memory/migrations.d.ts.map +1 -1
  201. package/dist/services/memory/migrations.js +221 -199
  202. package/dist/services/memory/migrations.js.map +1 -1
  203. package/dist/services/memory/repos/contradiction-repo.js +4 -4
  204. package/dist/services/memory/repos/decision-repo.js +1 -1
  205. package/dist/services/memory/repos/heatmap-repo.js +5 -5
  206. package/dist/services/memory/repos/injection-snapshot-repo.js +1 -1
  207. package/dist/services/memory/repos/learning-repo.js +1 -1
  208. package/dist/services/memory/repos/negative-repo.js +1 -1
  209. package/dist/services/memory/repos/observation-repo.js +4 -4
  210. package/dist/services/memory/repos/pain-point-repo.js +1 -1
  211. package/dist/services/memory/repos/pattern-repo.js +1 -1
  212. package/dist/services/memory/repos/pending-message-repo.js +2 -2
  213. package/dist/services/memory/repos/session-summary-repo.js +3 -3
  214. package/dist/services/memory/repos/sync-status-repo.js +4 -4
  215. package/dist/statusline/index.d.ts +0 -1
  216. package/dist/statusline/index.d.ts.map +1 -1
  217. package/dist/statusline/index.js +54 -56
  218. package/dist/statusline/index.js.map +1 -1
  219. package/dist/utils/ascii-art.js +11 -11
  220. package/dist/utils/dead-export-detector.d.ts +32 -0
  221. package/dist/utils/dead-export-detector.d.ts.map +1 -0
  222. package/dist/utils/dead-export-detector.js +189 -0
  223. package/dist/utils/dead-export-detector.js.map +1 -0
  224. package/dist/utils/dino-dist-path.d.ts +16 -0
  225. package/dist/utils/dino-dist-path.d.ts.map +1 -0
  226. package/dist/utils/dino-dist-path.js +31 -0
  227. package/dist/utils/dino-dist-path.js.map +1 -0
  228. package/package.json +1 -2
  229. package/dist/core/agents/__tests__/orchestrator.test.d.ts +0 -5
  230. package/dist/core/agents/__tests__/orchestrator.test.d.ts.map +0 -1
  231. package/dist/core/agents/__tests__/orchestrator.test.js +0 -332
  232. package/dist/core/agents/__tests__/orchestrator.test.js.map +0 -1
  233. package/dist/core/agents/core/orchestrator.d.ts +0 -125
  234. package/dist/core/agents/core/orchestrator.d.ts.map +0 -1
  235. package/dist/core/agents/core/orchestrator.js +0 -548
  236. package/dist/core/agents/core/orchestrator.js.map +0 -1
  237. package/dist/core/analyzer/change-intent.d.ts +0 -59
  238. package/dist/core/analyzer/change-intent.d.ts.map +0 -1
  239. package/dist/core/analyzer/change-intent.js +0 -306
  240. package/dist/core/analyzer/change-intent.js.map +0 -1
  241. package/dist/core/cache/cache-analyzer.d.ts +0 -67
  242. package/dist/core/cache/cache-analyzer.d.ts.map +0 -1
  243. package/dist/core/cache/cache-analyzer.js +0 -325
  244. package/dist/core/cache/cache-analyzer.js.map +0 -1
  245. package/dist/core/config/generated-files.d.ts +0 -30
  246. package/dist/core/config/generated-files.d.ts.map +0 -1
  247. package/dist/core/config/generated-files.js +0 -41
  248. package/dist/core/config/generated-files.js.map +0 -1
  249. package/dist/core/context/adaptation-strategy.d.ts +0 -125
  250. package/dist/core/context/adaptation-strategy.d.ts.map +0 -1
  251. package/dist/core/context/adaptation-strategy.js +0 -233
  252. package/dist/core/context/adaptation-strategy.js.map +0 -1
  253. package/dist/core/context/auto-unload-engine.d.ts +0 -102
  254. package/dist/core/context/auto-unload-engine.d.ts.map +0 -1
  255. package/dist/core/context/auto-unload-engine.js +0 -299
  256. package/dist/core/context/auto-unload-engine.js.map +0 -1
  257. package/dist/core/context/feedback-loop-engine.d.ts +0 -129
  258. package/dist/core/context/feedback-loop-engine.d.ts.map +0 -1
  259. package/dist/core/context/feedback-loop-engine.js +0 -354
  260. package/dist/core/context/feedback-loop-engine.js.map +0 -1
  261. package/dist/core/environment/types.d.ts +0 -37
  262. package/dist/core/environment/types.d.ts.map +0 -1
  263. package/dist/core/environment/types.js +0 -5
  264. package/dist/core/environment/types.js.map +0 -1
  265. package/dist/core/memory/agents/memory-capture-agent.d.ts +0 -83
  266. package/dist/core/memory/agents/memory-capture-agent.d.ts.map +0 -1
  267. package/dist/core/memory/agents/memory-capture-agent.js +0 -603
  268. package/dist/core/memory/agents/memory-capture-agent.js.map +0 -1
  269. package/dist/core/ralph/executor.d.ts +0 -105
  270. package/dist/core/ralph/executor.d.ts.map +0 -1
  271. package/dist/core/ralph/executor.js +0 -319
  272. package/dist/core/ralph/executor.js.map +0 -1
  273. package/dist/core/retrieval/coordinator.d.ts +0 -129
  274. package/dist/core/retrieval/coordinator.d.ts.map +0 -1
  275. package/dist/core/retrieval/coordinator.js +0 -290
  276. package/dist/core/retrieval/coordinator.js.map +0 -1
  277. package/dist/core/retrieval/hybrid.d.ts +0 -28
  278. package/dist/core/retrieval/hybrid.d.ts.map +0 -1
  279. package/dist/core/retrieval/hybrid.js +0 -190
  280. package/dist/core/retrieval/hybrid.js.map +0 -1
  281. package/dist/core/retrieval/index.d.ts +0 -45
  282. package/dist/core/retrieval/index.d.ts.map +0 -1
  283. package/dist/core/retrieval/index.js +0 -95
  284. package/dist/core/retrieval/index.js.map +0 -1
  285. package/dist/core/retrieval/ranker.d.ts +0 -112
  286. package/dist/core/retrieval/ranker.d.ts.map +0 -1
  287. package/dist/core/retrieval/ranker.js +0 -307
  288. package/dist/core/retrieval/ranker.js.map +0 -1
  289. package/dist/core/retrieval/stages.d.ts +0 -33
  290. package/dist/core/retrieval/stages.d.ts.map +0 -1
  291. package/dist/core/retrieval/stages.js +0 -250
  292. package/dist/core/retrieval/stages.js.map +0 -1
  293. package/dist/core/retrieval/types.d.ts +0 -147
  294. package/dist/core/retrieval/types.d.ts.map +0 -1
  295. package/dist/core/retrieval/types.js +0 -45
  296. package/dist/core/retrieval/types.js.map +0 -1
  297. package/dist/hooks/post-typecheck.d.ts +0 -14
  298. package/dist/hooks/post-typecheck.d.ts.map +0 -1
  299. package/dist/hooks/post-typecheck.js +0 -15
  300. package/dist/hooks/post-typecheck.js.map +0 -1
  301. package/dist/hooks/session-end.d.ts +0 -14
  302. package/dist/hooks/session-end.d.ts.map +0 -1
  303. package/dist/hooks/session-end.js +0 -15
  304. package/dist/hooks/session-end.js.map +0 -1
  305. package/dist/hooks/shared/index.d.ts +0 -12
  306. package/dist/hooks/shared/index.d.ts.map +0 -1
  307. package/dist/hooks/shared/index.js +0 -12
  308. package/dist/hooks/shared/index.js.map +0 -1
  309. package/dist/hooks/shared/utils.d.ts +0 -117
  310. package/dist/hooks/shared/utils.d.ts.map +0 -1
  311. package/dist/hooks/shared/utils.js +0 -295
  312. package/dist/hooks/shared/utils.js.map +0 -1
  313. package/dist/hooks/subagent-start.d.ts +0 -14
  314. package/dist/hooks/subagent-start.d.ts.map +0 -1
  315. package/dist/hooks/subagent-start.js +0 -15
  316. package/dist/hooks/subagent-start.js.map +0 -1
  317. package/dist/hooks/subagent-stop.d.ts +0 -14
  318. package/dist/hooks/subagent-stop.d.ts.map +0 -1
  319. package/dist/hooks/subagent-stop.js +0 -15
  320. package/dist/hooks/subagent-stop.js.map +0 -1
  321. package/dist/hud/render/blockers-badge.d.ts +0 -38
  322. package/dist/hud/render/blockers-badge.d.ts.map +0 -1
  323. package/dist/hud/render/blockers-badge.js +0 -81
  324. package/dist/hud/render/blockers-badge.js.map +0 -1
  325. package/dist/hud/render/budget-pressure.d.ts +0 -64
  326. package/dist/hud/render/budget-pressure.d.ts.map +0 -1
  327. package/dist/hud/render/budget-pressure.js +0 -158
  328. package/dist/hud/render/budget-pressure.js.map +0 -1
  329. package/dist/hud/render/focus-display.d.ts +0 -68
  330. package/dist/hud/render/focus-display.d.ts.map +0 -1
  331. package/dist/hud/render/focus-display.js +0 -217
  332. package/dist/hud/render/focus-display.js.map +0 -1
  333. package/dist/hud/render/phase-indicator.d.ts +0 -27
  334. package/dist/hud/render/phase-indicator.d.ts.map +0 -1
  335. package/dist/hud/render/phase-indicator.js +0 -62
  336. package/dist/hud/render/phase-indicator.js.map +0 -1
  337. package/dist/hud/render/status-icons.d.ts +0 -51
  338. package/dist/hud/render/status-icons.d.ts.map +0 -1
  339. package/dist/hud/render/status-icons.js +0 -158
  340. package/dist/hud/render/status-icons.js.map +0 -1
  341. package/dist/hud/render/tools.d.ts +0 -54
  342. package/dist/hud/render/tools.d.ts.map +0 -1
  343. package/dist/hud/render/tools.js +0 -139
  344. package/dist/hud/render/tools.js.map +0 -1
  345. package/dist/mcp/focus-tag-learner.d.ts +0 -135
  346. package/dist/mcp/focus-tag-learner.d.ts.map +0 -1
  347. package/dist/mcp/focus-tag-learner.js +0 -274
  348. package/dist/mcp/focus-tag-learner.js.map +0 -1
  349. package/dist/mcp/tool-loader.d.ts +0 -191
  350. package/dist/mcp/tool-loader.d.ts.map +0 -1
  351. package/dist/mcp/tool-loader.js +0 -381
  352. package/dist/mcp/tool-loader.js.map +0 -1
  353. package/dist/mcp/tools/retrieval.d.ts +0 -34
  354. package/dist/mcp/tools/retrieval.d.ts.map +0 -1
  355. package/dist/mcp/tools/retrieval.js +0 -124
  356. package/dist/mcp/tools/retrieval.js.map +0 -1
  357. package/dist/statusline/budget-tracker.d.ts +0 -94
  358. package/dist/statusline/budget-tracker.d.ts.map +0 -1
  359. package/dist/statusline/budget-tracker.js +0 -237
  360. package/dist/statusline/budget-tracker.js.map +0 -1
@@ -1,56 +1,56 @@
1
- # Change Categories
2
-
3
- ## File Classification
4
-
5
- Files are classified into categories based on path and name:
6
-
7
- ### dependency (High Significance)
8
- Files that affect project dependencies:
9
- - `package.json`, `bun.lockb`, `package-lock.json`
10
-
11
- **Pending Action:** Run package manager install command
12
-
13
- ### structural (High Significance)
14
- Files that affect project structure:
15
- - Entry points: `index.ts`, `main.ts`, `app.ts`
16
- - Configuration: `tsconfig.json`, `webpack.config.js`
17
- - Build configs: `build.js`, `vite.config.ts`
18
- - Directory additions/removals
19
-
20
- **Pending Action:** Verify import paths
21
-
22
- ### config (Medium Significance)
23
- Configuration files:
24
- - `.env`, `.env.*`
25
- - `*.config.js`, `*.config.ts`
26
- - `.eslintrc`, `.prettierrc`
27
- - CI/CD files: `.github/`, `.gitlab-ci.yml`
28
-
29
- ### test (Medium Significance)
30
- Test files:
31
- - `*.test.ts`, `*.test.js`
32
- - `*.spec.ts`, `*.spec.js`
33
- - `test/`, `tests/`, `__tests__/` directories
34
-
35
- ### code (Low Significance)
36
- Source code files:
37
- - `src/`, `lib/` directories
38
- - Main programming language files
39
- - Utility and helper files
40
-
41
- ### documentation (Low Significance)
42
- Documentation files:
43
- - `*.md`, `README*`
44
- - `docs/` directory
45
- - Code comments (when detected)
46
-
47
- ## Impact on Workflow
48
-
49
- | Category | Run Tests | Run Build | Review |
50
- |----------|-----------|-----------|--------|
51
- | dependency | After install | Yes | Changelog |
52
- | structural | Yes | Yes | Imports |
53
- | config | Maybe | Maybe | Side effects |
54
- | test | Yes | No | Coverage |
55
- | code | Yes | Yes | Normal |
56
- | documentation | No | No | Spelling |
1
+ # Change Categories
2
+
3
+ ## File Classification
4
+
5
+ Files are classified into categories based on path and name:
6
+
7
+ ### dependency (High Significance)
8
+ Files that affect project dependencies:
9
+ - `package.json`, `bun.lockb`, `package-lock.json`
10
+
11
+ **Pending Action:** Run package manager install command
12
+
13
+ ### structural (High Significance)
14
+ Files that affect project structure:
15
+ - Entry points: `index.ts`, `main.ts`, `app.ts`
16
+ - Configuration: `tsconfig.json`, `webpack.config.js`
17
+ - Build configs: `build.js`, `vite.config.ts`
18
+ - Directory additions/removals
19
+
20
+ **Pending Action:** Verify import paths
21
+
22
+ ### config (Medium Significance)
23
+ Configuration files:
24
+ - `.env`, `.env.*`
25
+ - `*.config.js`, `*.config.ts`
26
+ - `.eslintrc`, `.prettierrc`
27
+ - CI/CD files: `.github/`, `.gitlab-ci.yml`
28
+
29
+ ### test (Medium Significance)
30
+ Test files:
31
+ - `*.test.ts`, `*.test.js`
32
+ - `*.spec.ts`, `*.spec.js`
33
+ - `test/`, `tests/`, `__tests__/` directories
34
+
35
+ ### code (Low Significance)
36
+ Source code files:
37
+ - `src/`, `lib/` directories
38
+ - Main programming language files
39
+ - Utility and helper files
40
+
41
+ ### documentation (Low Significance)
42
+ Documentation files:
43
+ - `*.md`, `README*`
44
+ - `docs/` directory
45
+ - Code comments (when detected)
46
+
47
+ ## Impact on Workflow
48
+
49
+ | Category | Run Tests | Run Build | Review |
50
+ |----------|-----------|-----------|--------|
51
+ | dependency | After install | Yes | Changelog |
52
+ | structural | Yes | Yes | Imports |
53
+ | config | Maybe | Maybe | Side effects |
54
+ | test | Yes | No | Coverage |
55
+ | code | Yes | Yes | Normal |
56
+ | documentation | No | No | Spelling |
@@ -1,147 +1,147 @@
1
- # Confidence & Validation
2
-
3
- Consolidated from: confidence-handling, spec-kit, research-validation
4
-
5
- ---
6
-
7
- ## Confidence Gate
8
-
9
- Implementation BLOCKED until confidence threshold reached.
10
-
11
- ### Thresholds
12
-
13
- | Task Type | Required | Reason |
14
- |-----------|----------|--------|
15
- | Standard | 80% | Typical implementation |
16
- | Complex (Ralph-eligible) | 90% | Multi-story work |
17
-
18
- ### Confidence Factors
19
-
20
- | Factor | Impact |
21
- |--------|--------|
22
- | Vague verbs | -5% each |
23
- | Missing target | -5% |
24
- | Unclear success | -5% |
25
- | Security-related | -15% |
26
- | Data-related | -10% |
27
- | Breaking change | -10% |
28
- | Package recommendation | -15% |
29
- | API usage from training | -10% |
30
-
31
- ### Gate Flow
32
-
33
- ```
34
- Task → Analyze Confidence → [>= threshold?]
35
- ↓ no
36
- [ambiguity > 40?] → Research
37
- ↓ no
38
- Clarification → Re-check
39
- ```
40
-
41
- ### Max Rounds
42
-
43
- | Phase | Max |
44
- |-------|-----|
45
- | Research | 2 |
46
- | Clarification | 5 |
47
-
48
- After max rounds: User must validate assumptions explicitly.
49
-
50
- ---
51
-
52
- ## Spec Analysis
53
-
54
- ### Auto-Trigger
55
-
56
- Triggers when:
57
- - Ambiguity > 40 (vague verbs, missing details)
58
- - Implementation request ("add", "create", "build", "fix")
59
-
60
- Does NOT trigger for:
61
- - Status checks
62
- - Simple queries
63
- - Explicit skip (`--skip-spec`)
64
-
65
- ### Modes
66
-
67
- | Mode | When | Behavior |
68
- |------|------|----------|
69
- | Skip | complexity < 30, ambiguity < 20 | Proceed directly |
70
- | Lightweight | complexity < 30, ambiguity >= 20 | Quick check |
71
- | Full | complexity >= 30 | Thorough analysis |
72
-
73
- ### Multi-Part Requests
74
-
75
- 1. Split into discrete tasks
76
- 2. Present recommended order
77
- 3. Analyze first task only
78
- 4. Queue remaining tasks
79
-
80
- ### Routing After Spec
81
-
82
- | Complexity | Route |
83
- |------------|-------|
84
- | < 30 points | Direct action |
85
- | 30-70 points | EnterPlanMode |
86
- | > 70 points | /ralph-gate |
87
-
88
- ---
89
-
90
- ## Research Validation
91
-
92
- Validates packages, APIs, and libraries for security and quality.
93
-
94
- ### Trigger Points
95
-
96
- | Trigger | Validated |
97
- |---------|-----------|
98
- | `bun add <pkg>` | Package before install |
99
- | `/validate-deps` | All dependencies |
100
- | `/ralph-gate` | PRD dependencies |
101
- | Research output | Package recommendations |
102
-
103
- ### Security Checks
104
-
105
- | Check | Action |
106
- |-------|--------|
107
- | Critical vulnerability | BLOCK |
108
- | High vulnerability | BLOCK + require override |
109
- | Deprecated | Warn with alternative |
110
- | Malicious | BLOCK |
111
-
112
- ### Quality Checks
113
-
114
- | Check | Threshold | Action |
115
- |-------|-----------|--------|
116
- | Size | > 100KB gzipped | Warn |
117
- | Downloads | < 1000/week | Info |
118
- | Last update | > 2 years | Warn |
119
- | No maintainers | - | Block |
120
-
121
- ### Severity Levels
122
-
123
- | Level | Action |
124
- |-------|--------|
125
- | critical | BLOCK |
126
- | high | BLOCK + override |
127
- | moderate | WARN |
128
- | low | Note |
129
- | info | Note only |
130
-
131
- ### MCP Tools
132
-
133
- - `dino_validate_package` - Single package
134
- - `dino_validate` (action: deps) - Batch validation
135
- - `dino_validate` (action: scan) - Security-only
136
-
137
- ---
138
-
139
- ## Bypassing
140
-
141
- Not recommended, but available:
142
-
143
- - `--force` flag
144
- - Explicit validation after max rounds
145
- - `DINO_SKIP_VALIDATION=true`
146
-
147
- All bypasses logged in session.md.
1
+ # Confidence & Validation
2
+
3
+ Consolidated from: confidence-handling, spec-kit, research-validation
4
+
5
+ ---
6
+
7
+ ## Confidence Gate
8
+
9
+ Implementation BLOCKED until confidence threshold reached.
10
+
11
+ ### Thresholds
12
+
13
+ | Task Type | Required | Reason |
14
+ |-----------|----------|--------|
15
+ | Standard | 80% | Typical implementation |
16
+ | Complex (Ralph-eligible) | 90% | Multi-story work |
17
+
18
+ ### Confidence Factors
19
+
20
+ | Factor | Impact |
21
+ |--------|--------|
22
+ | Vague verbs | -5% each |
23
+ | Missing target | -5% |
24
+ | Unclear success | -5% |
25
+ | Security-related | -15% |
26
+ | Data-related | -10% |
27
+ | Breaking change | -10% |
28
+ | Package recommendation | -15% |
29
+ | API usage from training | -10% |
30
+
31
+ ### Gate Flow
32
+
33
+ ```
34
+ Task → Analyze Confidence → [>= threshold?]
35
+ ↓ no
36
+ [ambiguity > 40?] → Research
37
+ ↓ no
38
+ Clarification → Re-check
39
+ ```
40
+
41
+ ### Max Rounds
42
+
43
+ | Phase | Max |
44
+ |-------|-----|
45
+ | Research | 2 |
46
+ | Clarification | 5 |
47
+
48
+ After max rounds: User must validate assumptions explicitly.
49
+
50
+ ---
51
+
52
+ ## Spec Analysis
53
+
54
+ ### Auto-Trigger
55
+
56
+ Triggers when:
57
+ - Ambiguity > 40 (vague verbs, missing details)
58
+ - Implementation request ("add", "create", "build", "fix")
59
+
60
+ Does NOT trigger for:
61
+ - Status checks
62
+ - Simple queries
63
+ - Explicit skip (`--skip-spec`)
64
+
65
+ ### Modes
66
+
67
+ | Mode | When | Behavior |
68
+ |------|------|----------|
69
+ | Skip | complexity < 30, ambiguity < 20 | Proceed directly |
70
+ | Lightweight | complexity < 30, ambiguity >= 20 | Quick check |
71
+ | Full | complexity >= 30 | Thorough analysis |
72
+
73
+ ### Multi-Part Requests
74
+
75
+ 1. Split into discrete tasks
76
+ 2. Present recommended order
77
+ 3. Analyze first task only
78
+ 4. Queue remaining tasks
79
+
80
+ ### Routing After Spec
81
+
82
+ | Complexity | Route |
83
+ |------------|-------|
84
+ | < 30 points | Direct action |
85
+ | 30-70 points | EnterPlanMode |
86
+ | > 70 points | /ralph-gate |
87
+
88
+ ---
89
+
90
+ ## Research Validation
91
+
92
+ Validates packages, APIs, and libraries for security and quality.
93
+
94
+ ### Trigger Points
95
+
96
+ | Trigger | Validated |
97
+ |---------|-----------|
98
+ | `bun add <pkg>` | Package before install |
99
+ | `/validate-deps` | All dependencies |
100
+ | `/ralph-gate` | PRD dependencies |
101
+ | Research output | Package recommendations |
102
+
103
+ ### Security Checks
104
+
105
+ | Check | Action |
106
+ |-------|--------|
107
+ | Critical vulnerability | BLOCK |
108
+ | High vulnerability | BLOCK + require override |
109
+ | Deprecated | Warn with alternative |
110
+ | Malicious | BLOCK |
111
+
112
+ ### Quality Checks
113
+
114
+ | Check | Threshold | Action |
115
+ |-------|-----------|--------|
116
+ | Size | > 100KB gzipped | Warn |
117
+ | Downloads | < 1000/week | Info |
118
+ | Last update | > 2 years | Warn |
119
+ | No maintainers | - | Block |
120
+
121
+ ### Severity Levels
122
+
123
+ | Level | Action |
124
+ |-------|--------|
125
+ | critical | BLOCK |
126
+ | high | BLOCK + override |
127
+ | moderate | WARN |
128
+ | low | Note |
129
+ | info | Note only |
130
+
131
+ ### MCP Tools
132
+
133
+ - `dino_validate_package` - Single package
134
+ - `dino_validate` (action: deps) - Batch validation
135
+ - `dino_validate` (action: scan) - Security-only
136
+
137
+ ---
138
+
139
+ ## Bypassing
140
+
141
+ Not recommended, but available:
142
+
143
+ - `--force` flag
144
+ - Explicit validation after max rounds
145
+ - `DINO_SKIP_VALIDATION=true`
146
+
147
+ All bypasses logged in session.md.
@@ -1,112 +1,112 @@
1
- # Testing & Quality
2
-
3
- Consolidated from: smart-tests, mandatory-review, auto-memory-capture, confidence-gate
4
-
5
- ---
6
-
7
- ## 80% Confidence Gate
8
-
9
- **Confidence Gate**: See `.claude/rules/dino/confidence.md` for thresholds, factors, and flow.
10
-
11
- ---
12
-
13
- ## Smart Test Optimization
14
-
15
- Reduce test run times by 60-80% through intelligent scope detection.
16
-
17
- ### Test Scopes
18
-
19
- | Scope | When | Duration |
20
- |-------|------|----------|
21
- | SKIP | No changes since passing | Instant |
22
- | TARGETED | Single feature changes | Fast |
23
- | FULL | Cross-cutting changes | Complete |
24
-
25
- ### Decision Tree
26
-
27
- ```
28
- No changes since passing → SKIP
29
- Dependency/config changes → FULL
30
- Shared code (utils/, core/) → FULL
31
- Single feature changes → TARGETED
32
- Documentation only → SKIP
33
- ```
34
-
35
- ### Full Test Triggers
36
-
37
- - `package.json`, lock files
38
- - `tsconfig.json`, `vitest.config.ts`
39
- - Entry points (`index.ts`, `main.ts`)
40
- - Shared modules (`src/utils/`, `src/core/`, `src/lib/`)
41
-
42
- ### Targeted Patterns
43
-
44
- | Focus | Pattern |
45
- |-------|---------|
46
- | `src/hooks/` | `hooks` |
47
- | `src/core/ralph/` | `ralph` |
48
- | `src/commands/*.ts` | `commands` |
49
- | Multiple features | FULL |
50
-
51
- ### Usage in Skills
52
-
53
- **`/dino.aging`**: Uses smart test workflow to analyze scope before running tests.
54
-
55
- **`/dino.release`**: Uses smart test detection to optimize release verification.
56
-
57
- **`/dino.hunt`**: Uses incremental testing during implementation.
58
-
59
- ### Performance Targets
60
-
61
- | Scenario | Target Duration |
62
- |----------|-----------------|
63
- | SKIP (no changes) | 0s |
64
- | TARGETED (single feature) | 10-30s |
65
- | FULL (must run all) | < 3 min |
66
-
67
- ---
68
-
69
- ## Mandatory Review
70
-
71
- Set `DINO_MANDATORY_REVIEW=true` to enable code review gate. Disabled by default.
72
-
73
- ---
74
-
75
- ## Auto-Memory Capture
76
-
77
- Preserve learnings after significant work.
78
-
79
- ### When to Capture
80
-
81
- | Event | Source |
82
- |-------|--------|
83
- | /spec completes | Analysis decisions |
84
- | /hunt task completes | Implementation learnings |
85
- | Tests pass after fix | What fixed the issue |
86
- | User confirms decision | Decision text |
87
- | Ralph iteration | Iteration learnings |
88
-
89
- ### How to Capture
90
-
91
- ```
92
- dino_memory_auto_capture({
93
- text: "Summary of decision or learning",
94
- source: "spec-complete" | "test-fix" | "ralph-iteration",
95
- focusArea: "src/core/"
96
- })
97
- ```
98
-
99
- ### Detection Patterns
100
-
101
- | Type | Keywords |
102
- |------|----------|
103
- | Decisions | "decided", "chose", "selected" |
104
- | Learnings | "didn't work", "failed", "learned" |
105
- | Patterns | "pattern", "convention", "prefer" |
106
-
107
- ### Skip Capture When
108
-
109
- - Trivial task (typo fix)
110
- - No decisions made
111
- - Only reading/exploring
112
- - Already captured recently
1
+ # Testing & Quality
2
+
3
+ Consolidated from: smart-tests, mandatory-review, auto-memory-capture, confidence-gate
4
+
5
+ ---
6
+
7
+ ## 80% Confidence Gate
8
+
9
+ **Confidence Gate**: See `.claude/rules/dino/confidence.md` for thresholds, factors, and flow.
10
+
11
+ ---
12
+
13
+ ## Smart Test Optimization
14
+
15
+ Reduce test run times by 60-80% through intelligent scope detection.
16
+
17
+ ### Test Scopes
18
+
19
+ | Scope | When | Duration |
20
+ |-------|------|----------|
21
+ | SKIP | No changes since passing | Instant |
22
+ | TARGETED | Single feature changes | Fast |
23
+ | FULL | Cross-cutting changes | Complete |
24
+
25
+ ### Decision Tree
26
+
27
+ ```
28
+ No changes since passing → SKIP
29
+ Dependency/config changes → FULL
30
+ Shared code (utils/, core/) → FULL
31
+ Single feature changes → TARGETED
32
+ Documentation only → SKIP
33
+ ```
34
+
35
+ ### Full Test Triggers
36
+
37
+ - `package.json`, lock files
38
+ - `tsconfig.json`, `vitest.config.ts`
39
+ - Entry points (`index.ts`, `main.ts`)
40
+ - Shared modules (`src/utils/`, `src/core/`, `src/lib/`)
41
+
42
+ ### Targeted Patterns
43
+
44
+ | Focus | Pattern |
45
+ |-------|---------|
46
+ | `src/hooks/` | `hooks` |
47
+ | `src/core/ralph/` | `ralph` |
48
+ | `src/commands/*.ts` | `commands` |
49
+ | Multiple features | FULL |
50
+
51
+ ### Usage in Skills
52
+
53
+ **`/dino.aging`**: Uses smart test workflow to analyze scope before running tests.
54
+
55
+ **`/dino.release`**: Uses smart test detection to optimize release verification.
56
+
57
+ **`/dino.hunt`**: Uses incremental testing during implementation.
58
+
59
+ ### Performance Targets
60
+
61
+ | Scenario | Target Duration |
62
+ |----------|-----------------|
63
+ | SKIP (no changes) | 0s |
64
+ | TARGETED (single feature) | 10-30s |
65
+ | FULL (must run all) | < 3 min |
66
+
67
+ ---
68
+
69
+ ## Mandatory Review
70
+
71
+ Set `DINO_MANDATORY_REVIEW=true` to enable code review gate. Disabled by default.
72
+
73
+ ---
74
+
75
+ ## Auto-Memory Capture
76
+
77
+ Preserve learnings after significant work.
78
+
79
+ ### When to Capture
80
+
81
+ | Event | Source |
82
+ |-------|--------|
83
+ | /spec completes | Analysis decisions |
84
+ | /hunt task completes | Implementation learnings |
85
+ | Tests pass after fix | What fixed the issue |
86
+ | User confirms decision | Decision text |
87
+ | Ralph iteration | Iteration learnings |
88
+
89
+ ### How to Capture
90
+
91
+ ```
92
+ dino_memory_auto_capture({
93
+ text: "Summary of decision or learning",
94
+ source: "spec-complete" | "test-fix" | "ralph-iteration",
95
+ focusArea: "src/core/"
96
+ })
97
+ ```
98
+
99
+ ### Detection Patterns
100
+
101
+ | Type | Keywords |
102
+ |------|----------|
103
+ | Decisions | "decided", "chose", "selected" |
104
+ | Learnings | "didn't work", "failed", "learned" |
105
+ | Patterns | "pattern", "convention", "prefer" |
106
+
107
+ ### Skip Capture When
108
+
109
+ - Trivial task (typo fix)
110
+ - No decisions made
111
+ - Only reading/exploring
112
+ - Already captured recently