@su-record/vibe 3.2.13 → 3.2.15

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 (305) hide show
  1. package/CLAUDE.md +15 -14
  2. package/README.en.md +1 -1
  3. package/README.md +1 -1
  4. package/dist/cli/setup/ProjectSetup.d.ts +6 -0
  5. package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
  6. package/dist/cli/setup/ProjectSetup.js +19 -13
  7. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  8. package/dist/infra/lib/codex-proxy.d.ts +126 -0
  9. package/dist/infra/lib/codex-proxy.d.ts.map +1 -1
  10. package/dist/infra/lib/codex-proxy.js +16 -16
  11. package/dist/infra/lib/codex-proxy.js.map +1 -1
  12. package/dist/infra/lib/figma/audit.d.ts.map +1 -1
  13. package/dist/infra/lib/figma/audit.js +0 -2
  14. package/dist/infra/lib/figma/audit.js.map +1 -1
  15. package/dist/infra/lib/figma/extract.d.ts +6 -1
  16. package/dist/infra/lib/figma/extract.d.ts.map +1 -1
  17. package/dist/infra/lib/figma/extract.js +17 -15
  18. package/dist/infra/lib/figma/extract.js.map +1 -1
  19. package/dist/infra/lib/figma/types.d.ts +103 -0
  20. package/dist/infra/lib/figma/types.d.ts.map +1 -1
  21. package/dist/infra/lib/figma/types.js +8 -0
  22. package/dist/infra/lib/figma/types.js.map +1 -1
  23. package/hooks/hooks.json +1 -1
  24. package/hooks/scripts/clone-extract.js +16 -1
  25. package/hooks/scripts/code-check.js +72 -55
  26. package/hooks/scripts/lib/anchor.js +74 -0
  27. package/hooks/scripts/lib/console-allow.js +66 -0
  28. package/hooks/scripts/lib/dispatcher.js +71 -19
  29. package/hooks/scripts/lib/inbox.js +60 -0
  30. package/hooks/scripts/loop-ledger.js +24 -1
  31. package/hooks/scripts/post-edit-dispatcher.js +4 -3
  32. package/hooks/scripts/post-edit.js +2 -2
  33. package/package.json +13 -9
  34. package/skills/vibe/SKILL.md +2 -1
  35. package/skills/vibe.clone/references/verification-loops.md +6 -3
  36. package/skills/vibe.loop/SKILL.md +7 -4
  37. package/skills/vibe.review/SKILL.md +5 -1
  38. package/skills/vibe.run/references/e2e-and-autofix.md +1 -1
  39. package/skills/vibe.run/references/process-steps.md +1 -1
  40. package/vibe/constitution.md +1 -1
  41. package/vibe/rules/loop-contract.md +40 -3
  42. package/vibe/rules/quality/checklist.md +3 -3
  43. package/vibe/templates/constitution-template.md +1 -1
  44. package/dist/__tests__/agent-model-sync.test.d.ts +0 -2
  45. package/dist/__tests__/agent-model-sync.test.d.ts.map +0 -1
  46. package/dist/__tests__/agent-model-sync.test.js +0 -71
  47. package/dist/__tests__/agent-model-sync.test.js.map +0 -1
  48. package/dist/__tests__/architecture.test.d.ts +0 -2
  49. package/dist/__tests__/architecture.test.d.ts.map +0 -1
  50. package/dist/__tests__/architecture.test.js +0 -207
  51. package/dist/__tests__/architecture.test.js.map +0 -1
  52. package/dist/__tests__/skill-namespace.test.d.ts +0 -2
  53. package/dist/__tests__/skill-namespace.test.d.ts.map +0 -1
  54. package/dist/__tests__/skill-namespace.test.js +0 -60
  55. package/dist/__tests__/skill-namespace.test.js.map +0 -1
  56. package/dist/__tests__/stakes-contract.test.d.ts +0 -2
  57. package/dist/__tests__/stakes-contract.test.d.ts.map +0 -1
  58. package/dist/__tests__/stakes-contract.test.js +0 -166
  59. package/dist/__tests__/stakes-contract.test.js.map +0 -1
  60. package/dist/__tests__/stuck-semantics.test.d.ts +0 -2
  61. package/dist/__tests__/stuck-semantics.test.d.ts.map +0 -1
  62. package/dist/__tests__/stuck-semantics.test.js +0 -109
  63. package/dist/__tests__/stuck-semantics.test.js.map +0 -1
  64. package/dist/__tests__/wiring-integrity.test.d.ts +0 -2
  65. package/dist/__tests__/wiring-integrity.test.d.ts.map +0 -1
  66. package/dist/__tests__/wiring-integrity.test.js +0 -160
  67. package/dist/__tests__/wiring-integrity.test.js.map +0 -1
  68. package/dist/cli/commands/info.test.d.ts +0 -2
  69. package/dist/cli/commands/info.test.d.ts.map +0 -1
  70. package/dist/cli/commands/info.test.js +0 -74
  71. package/dist/cli/commands/info.test.js.map +0 -1
  72. package/dist/cli/commands/upgrade.test.d.ts +0 -2
  73. package/dist/cli/commands/upgrade.test.d.ts.map +0 -1
  74. package/dist/cli/commands/upgrade.test.js +0 -99
  75. package/dist/cli/commands/upgrade.test.js.map +0 -1
  76. package/dist/cli/design/design-md-parser.test.d.ts +0 -2
  77. package/dist/cli/design/design-md-parser.test.d.ts.map +0 -1
  78. package/dist/cli/design/design-md-parser.test.js +0 -149
  79. package/dist/cli/design/design-md-parser.test.js.map +0 -1
  80. package/dist/cli/detect.characterization.test.d.ts +0 -7
  81. package/dist/cli/detect.characterization.test.d.ts.map +0 -1
  82. package/dist/cli/detect.characterization.test.js +0 -294
  83. package/dist/cli/detect.characterization.test.js.map +0 -1
  84. package/dist/cli/postinstall/fs-utils.test.d.ts +0 -2
  85. package/dist/cli/postinstall/fs-utils.test.d.ts.map +0 -1
  86. package/dist/cli/postinstall/fs-utils.test.js +0 -259
  87. package/dist/cli/postinstall/fs-utils.test.js.map +0 -1
  88. package/dist/cli/setup/CodexHooks.test.d.ts +0 -2
  89. package/dist/cli/setup/CodexHooks.test.d.ts.map +0 -1
  90. package/dist/cli/setup/CodexHooks.test.js +0 -52
  91. package/dist/cli/setup/CodexHooks.test.js.map +0 -1
  92. package/dist/cli/setup/GlobalInstaller.test.d.ts +0 -2
  93. package/dist/cli/setup/GlobalInstaller.test.d.ts.map +0 -1
  94. package/dist/cli/setup/GlobalInstaller.test.js +0 -16
  95. package/dist/cli/setup/GlobalInstaller.test.js.map +0 -1
  96. package/dist/cli/utils/cli-detector.test.d.ts +0 -2
  97. package/dist/cli/utils/cli-detector.test.d.ts.map +0 -1
  98. package/dist/cli/utils/cli-detector.test.js +0 -52
  99. package/dist/cli/utils/cli-detector.test.js.map +0 -1
  100. package/dist/infra/lib/SkillFrontmatter.test.d.ts +0 -2
  101. package/dist/infra/lib/SkillFrontmatter.test.d.ts.map +0 -1
  102. package/dist/infra/lib/SkillFrontmatter.test.js +0 -60
  103. package/dist/infra/lib/SkillFrontmatter.test.js.map +0 -1
  104. package/dist/infra/lib/__tests__/AutomationLevel.test.d.ts +0 -2
  105. package/dist/infra/lib/__tests__/AutomationLevel.test.d.ts.map +0 -1
  106. package/dist/infra/lib/__tests__/AutomationLevel.test.js +0 -297
  107. package/dist/infra/lib/__tests__/AutomationLevel.test.js.map +0 -1
  108. package/dist/infra/lib/__tests__/ComponentRegistry.test.d.ts +0 -2
  109. package/dist/infra/lib/__tests__/ComponentRegistry.test.d.ts.map +0 -1
  110. package/dist/infra/lib/__tests__/ComponentRegistry.test.js +0 -99
  111. package/dist/infra/lib/__tests__/ComponentRegistry.test.js.map +0 -1
  112. package/dist/infra/lib/__tests__/DecisionTracer.test.d.ts +0 -2
  113. package/dist/infra/lib/__tests__/DecisionTracer.test.d.ts.map +0 -1
  114. package/dist/infra/lib/__tests__/DecisionTracer.test.js +0 -274
  115. package/dist/infra/lib/__tests__/DecisionTracer.test.js.map +0 -1
  116. package/dist/infra/lib/__tests__/InteractiveCheckpoint.test.d.ts +0 -2
  117. package/dist/infra/lib/__tests__/InteractiveCheckpoint.test.d.ts.map +0 -1
  118. package/dist/infra/lib/__tests__/InteractiveCheckpoint.test.js +0 -350
  119. package/dist/infra/lib/__tests__/InteractiveCheckpoint.test.js.map +0 -1
  120. package/dist/infra/lib/__tests__/LoopBreaker.test.d.ts +0 -2
  121. package/dist/infra/lib/__tests__/LoopBreaker.test.d.ts.map +0 -1
  122. package/dist/infra/lib/__tests__/LoopBreaker.test.js +0 -340
  123. package/dist/infra/lib/__tests__/LoopBreaker.test.js.map +0 -1
  124. package/dist/infra/lib/__tests__/VerificationLoop.test.d.ts +0 -2
  125. package/dist/infra/lib/__tests__/VerificationLoop.test.d.ts.map +0 -1
  126. package/dist/infra/lib/__tests__/VerificationLoop.test.js +0 -486
  127. package/dist/infra/lib/__tests__/VerificationLoop.test.js.map +0 -1
  128. package/dist/infra/lib/config/GlobalConfigManager.test.d.ts +0 -2
  129. package/dist/infra/lib/config/GlobalConfigManager.test.d.ts.map +0 -1
  130. package/dist/infra/lib/config/GlobalConfigManager.test.js +0 -9
  131. package/dist/infra/lib/config/GlobalConfigManager.test.js.map +0 -1
  132. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.d.ts +0 -2
  133. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.d.ts.map +0 -1
  134. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.js +0 -43
  135. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.js.map +0 -1
  136. package/dist/infra/lib/embedding/__tests__/VectorStore.test.d.ts +0 -2
  137. package/dist/infra/lib/embedding/__tests__/VectorStore.test.d.ts.map +0 -1
  138. package/dist/infra/lib/embedding/__tests__/VectorStore.test.js +0 -94
  139. package/dist/infra/lib/embedding/__tests__/VectorStore.test.js.map +0 -1
  140. package/dist/infra/lib/embedding/__tests__/cosine.test.d.ts +0 -2
  141. package/dist/infra/lib/embedding/__tests__/cosine.test.d.ts.map +0 -1
  142. package/dist/infra/lib/embedding/__tests__/cosine.test.js +0 -73
  143. package/dist/infra/lib/embedding/__tests__/cosine.test.js.map +0 -1
  144. package/dist/infra/lib/evolution/__tests__/deprecation.test.d.ts +0 -2
  145. package/dist/infra/lib/evolution/__tests__/deprecation.test.d.ts.map +0 -1
  146. package/dist/infra/lib/evolution/__tests__/deprecation.test.js +0 -251
  147. package/dist/infra/lib/evolution/__tests__/deprecation.test.js.map +0 -1
  148. package/dist/infra/lib/evolution/__tests__/eval.test.d.ts +0 -2
  149. package/dist/infra/lib/evolution/__tests__/eval.test.d.ts.map +0 -1
  150. package/dist/infra/lib/evolution/__tests__/eval.test.js +0 -603
  151. package/dist/infra/lib/evolution/__tests__/eval.test.js.map +0 -1
  152. package/dist/infra/lib/evolution/__tests__/generation.test.d.ts +0 -2
  153. package/dist/infra/lib/evolution/__tests__/generation.test.d.ts.map +0 -1
  154. package/dist/infra/lib/evolution/__tests__/generation.test.js +0 -396
  155. package/dist/infra/lib/evolution/__tests__/generation.test.js.map +0 -1
  156. package/dist/infra/lib/evolution/__tests__/insight.test.d.ts +0 -2
  157. package/dist/infra/lib/evolution/__tests__/insight.test.d.ts.map +0 -1
  158. package/dist/infra/lib/evolution/__tests__/insight.test.js +0 -204
  159. package/dist/infra/lib/evolution/__tests__/insight.test.js.map +0 -1
  160. package/dist/infra/lib/evolution/__tests__/integration.test.d.ts +0 -2
  161. package/dist/infra/lib/evolution/__tests__/integration.test.d.ts.map +0 -1
  162. package/dist/infra/lib/evolution/__tests__/integration.test.js +0 -206
  163. package/dist/infra/lib/evolution/__tests__/integration.test.js.map +0 -1
  164. package/dist/infra/lib/evolution/__tests__/lifecycle.test.d.ts +0 -2
  165. package/dist/infra/lib/evolution/__tests__/lifecycle.test.d.ts.map +0 -1
  166. package/dist/infra/lib/evolution/__tests__/lifecycle.test.js +0 -350
  167. package/dist/infra/lib/evolution/__tests__/lifecycle.test.js.map +0 -1
  168. package/dist/infra/lib/evolution/__tests__/parity.test.d.ts +0 -2
  169. package/dist/infra/lib/evolution/__tests__/parity.test.d.ts.map +0 -1
  170. package/dist/infra/lib/evolution/__tests__/parity.test.js +0 -319
  171. package/dist/infra/lib/evolution/__tests__/parity.test.js.map +0 -1
  172. package/dist/infra/lib/llm/auth/AuthProfileManager.test.d.ts +0 -5
  173. package/dist/infra/lib/llm/auth/AuthProfileManager.test.d.ts.map +0 -1
  174. package/dist/infra/lib/llm/auth/AuthProfileManager.test.js +0 -168
  175. package/dist/infra/lib/llm/auth/AuthProfileManager.test.js.map +0 -1
  176. package/dist/infra/lib/llm/auth/TokenRefresher.test.d.ts +0 -2
  177. package/dist/infra/lib/llm/auth/TokenRefresher.test.d.ts.map +0 -1
  178. package/dist/infra/lib/llm/auth/TokenRefresher.test.js +0 -120
  179. package/dist/infra/lib/llm/auth/TokenRefresher.test.js.map +0 -1
  180. package/dist/infra/lib/llm/timeout.test.d.ts +0 -2
  181. package/dist/infra/lib/llm/timeout.test.d.ts.map +0 -1
  182. package/dist/infra/lib/llm/timeout.test.js +0 -50
  183. package/dist/infra/lib/llm/timeout.test.js.map +0 -1
  184. package/dist/infra/lib/llm-availability.test.d.ts +0 -2
  185. package/dist/infra/lib/llm-availability.test.d.ts.map +0 -1
  186. package/dist/infra/lib/llm-availability.test.js +0 -37
  187. package/dist/infra/lib/llm-availability.test.js.map +0 -1
  188. package/dist/infra/lib/memory/KnowledgeGraph.test.d.ts +0 -2
  189. package/dist/infra/lib/memory/KnowledgeGraph.test.d.ts.map +0 -1
  190. package/dist/infra/lib/memory/KnowledgeGraph.test.js +0 -189
  191. package/dist/infra/lib/memory/KnowledgeGraph.test.js.map +0 -1
  192. package/dist/infra/lib/memory/MemorySearch.test.d.ts +0 -2
  193. package/dist/infra/lib/memory/MemorySearch.test.d.ts.map +0 -1
  194. package/dist/infra/lib/memory/MemorySearch.test.js +0 -149
  195. package/dist/infra/lib/memory/MemorySearch.test.js.map +0 -1
  196. package/dist/infra/lib/memory/MemoryStorage.test.d.ts +0 -2
  197. package/dist/infra/lib/memory/MemoryStorage.test.d.ts.map +0 -1
  198. package/dist/infra/lib/memory/MemoryStorage.test.js +0 -198
  199. package/dist/infra/lib/memory/MemoryStorage.test.js.map +0 -1
  200. package/dist/infra/lib/memory/SessionRAGRetriever.test.d.ts +0 -2
  201. package/dist/infra/lib/memory/SessionRAGRetriever.test.d.ts.map +0 -1
  202. package/dist/infra/lib/memory/SessionRAGRetriever.test.js +0 -180
  203. package/dist/infra/lib/memory/SessionRAGRetriever.test.js.map +0 -1
  204. package/dist/infra/lib/memory/SessionRAGStore.test.d.ts +0 -2
  205. package/dist/infra/lib/memory/SessionRAGStore.test.d.ts.map +0 -1
  206. package/dist/infra/lib/memory/SessionRAGStore.test.js +0 -326
  207. package/dist/infra/lib/memory/SessionRAGStore.test.js.map +0 -1
  208. package/dist/infra/lib/memory/__tests__/InMemoryStorage.test.d.ts +0 -2
  209. package/dist/infra/lib/memory/__tests__/InMemoryStorage.test.d.ts.map +0 -1
  210. package/dist/infra/lib/memory/__tests__/InMemoryStorage.test.js +0 -114
  211. package/dist/infra/lib/memory/__tests__/InMemoryStorage.test.js.map +0 -1
  212. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.d.ts +0 -2
  213. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.d.ts.map +0 -1
  214. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.js +0 -196
  215. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.js.map +0 -1
  216. package/dist/infra/lib/memory/index.test.d.ts +0 -2
  217. package/dist/infra/lib/memory/index.test.d.ts.map +0 -1
  218. package/dist/infra/lib/memory/index.test.js +0 -23
  219. package/dist/infra/lib/memory/index.test.js.map +0 -1
  220. package/dist/infra/lib/telemetry/SkillTelemetry.test.d.ts +0 -2
  221. package/dist/infra/lib/telemetry/SkillTelemetry.test.d.ts.map +0 -1
  222. package/dist/infra/lib/telemetry/SkillTelemetry.test.js +0 -124
  223. package/dist/infra/lib/telemetry/SkillTelemetry.test.js.map +0 -1
  224. package/dist/infra/lib/ui-ux/Bm25Engine.test.d.ts +0 -2
  225. package/dist/infra/lib/ui-ux/Bm25Engine.test.d.ts.map +0 -1
  226. package/dist/infra/lib/ui-ux/Bm25Engine.test.js +0 -159
  227. package/dist/infra/lib/ui-ux/Bm25Engine.test.js.map +0 -1
  228. package/dist/infra/lib/ui-ux/CsvDataLoader.test.d.ts +0 -2
  229. package/dist/infra/lib/ui-ux/CsvDataLoader.test.d.ts.map +0 -1
  230. package/dist/infra/lib/ui-ux/CsvDataLoader.test.js +0 -141
  231. package/dist/infra/lib/ui-ux/CsvDataLoader.test.js.map +0 -1
  232. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.d.ts +0 -2
  233. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.d.ts.map +0 -1
  234. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.js +0 -370
  235. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.js.map +0 -1
  236. package/dist/infra/lib/ui-ux/SearchService.test.d.ts +0 -2
  237. package/dist/infra/lib/ui-ux/SearchService.test.d.ts.map +0 -1
  238. package/dist/infra/lib/ui-ux/SearchService.test.js +0 -215
  239. package/dist/infra/lib/ui-ux/SearchService.test.js.map +0 -1
  240. package/dist/test-helpers/index.d.ts +0 -36
  241. package/dist/test-helpers/index.d.ts.map +0 -1
  242. package/dist/test-helpers/index.js +0 -85
  243. package/dist/test-helpers/index.js.map +0 -1
  244. package/dist/test-helpers/index.test.d.ts +0 -2
  245. package/dist/test-helpers/index.test.d.ts.map +0 -1
  246. package/dist/test-helpers/index.test.js +0 -92
  247. package/dist/test-helpers/index.test.js.map +0 -1
  248. package/dist/tests/curated-release-notes.test.d.ts +0 -2
  249. package/dist/tests/curated-release-notes.test.d.ts.map +0 -1
  250. package/dist/tests/curated-release-notes.test.js +0 -160
  251. package/dist/tests/curated-release-notes.test.js.map +0 -1
  252. package/dist/tools/convention/analyzeComplexity.test.d.ts +0 -2
  253. package/dist/tools/convention/analyzeComplexity.test.d.ts.map +0 -1
  254. package/dist/tools/convention/analyzeComplexity.test.js +0 -207
  255. package/dist/tools/convention/analyzeComplexity.test.js.map +0 -1
  256. package/dist/tools/convention/validateCodeQuality.test.d.ts +0 -2
  257. package/dist/tools/convention/validateCodeQuality.test.d.ts.map +0 -1
  258. package/dist/tools/convention/validateCodeQuality.test.js +0 -230
  259. package/dist/tools/convention/validateCodeQuality.test.js.map +0 -1
  260. package/dist/tools/loop/validateLoopDefinition.test.d.ts +0 -14
  261. package/dist/tools/loop/validateLoopDefinition.test.d.ts.map +0 -1
  262. package/dist/tools/loop/validateLoopDefinition.test.js +0 -229
  263. package/dist/tools/loop/validateLoopDefinition.test.js.map +0 -1
  264. package/dist/tools/spec/executionPacket.test.d.ts +0 -2
  265. package/dist/tools/spec/executionPacket.test.d.ts.map +0 -1
  266. package/dist/tools/spec/executionPacket.test.js +0 -374
  267. package/dist/tools/spec/executionPacket.test.js.map +0 -1
  268. package/dist/tools/spec/prdParser.test.d.ts +0 -6
  269. package/dist/tools/spec/prdParser.test.d.ts.map +0 -1
  270. package/dist/tools/spec/prdParser.test.js +0 -332
  271. package/dist/tools/spec/prdParser.test.js.map +0 -1
  272. package/dist/tools/spec/specGenerator.test.d.ts +0 -2
  273. package/dist/tools/spec/specGenerator.test.d.ts.map +0 -1
  274. package/dist/tools/spec/specGenerator.test.js +0 -130
  275. package/dist/tools/spec/specGenerator.test.js.map +0 -1
  276. package/dist/tools/spec/traceabilityMatrix.path-resolution.test.d.ts +0 -10
  277. package/dist/tools/spec/traceabilityMatrix.path-resolution.test.d.ts.map +0 -1
  278. package/dist/tools/spec/traceabilityMatrix.path-resolution.test.js +0 -120
  279. package/dist/tools/spec/traceabilityMatrix.path-resolution.test.js.map +0 -1
  280. package/dist/tools/spec/traceabilityMatrix.test.d.ts +0 -6
  281. package/dist/tools/spec/traceabilityMatrix.test.d.ts.map +0 -1
  282. package/dist/tools/spec/traceabilityMatrix.test.js +0 -359
  283. package/dist/tools/spec/traceabilityMatrix.test.js.map +0 -1
  284. package/hooks/scripts/__tests__/.vibe/command-log.txt +0 -3
  285. package/hooks/scripts/__tests__/auto-test-debounce.test.js +0 -145
  286. package/hooks/scripts/__tests__/clone-behaviors.test.js +0 -152
  287. package/hooks/scripts/__tests__/clone-merge-responsive.test.js +0 -106
  288. package/hooks/scripts/__tests__/code-check-detectors.test.js +0 -213
  289. package/hooks/scripts/__tests__/code-check-memory-write.test.js +0 -81
  290. package/hooks/scripts/__tests__/codex-hook-adapter.test.js +0 -64
  291. package/hooks/scripts/__tests__/curation-index.test.js +0 -157
  292. package/hooks/scripts/__tests__/dispatcher-inprocess.test.js +0 -99
  293. package/hooks/scripts/__tests__/figma-extract.test.js +0 -338
  294. package/hooks/scripts/__tests__/hook-payload.test.js +0 -29
  295. package/hooks/scripts/__tests__/llm-orchestrate-antigravity.test.js +0 -66
  296. package/hooks/scripts/__tests__/loop-ledger.test.js +0 -321
  297. package/hooks/scripts/__tests__/post-edit-dispatcher.test.js +0 -139
  298. package/hooks/scripts/__tests__/pre-tool-guard.test.js +0 -523
  299. package/hooks/scripts/__tests__/recipe-extractor.test.js +0 -244
  300. package/hooks/scripts/__tests__/run-ledger-verify-required.test.js +0 -151
  301. package/hooks/scripts/__tests__/run-ledger.test.js +0 -481
  302. package/hooks/scripts/__tests__/scope-from-spec.test.js +0 -215
  303. package/hooks/scripts/__tests__/sentinel-guard.test.js +0 -263
  304. package/hooks/scripts/__tests__/step-counter.test.js +0 -459
  305. package/hooks/scripts/__tests__/utils-npm-root.test.js +0 -99
@@ -1,204 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import { join } from 'path';
3
- import { tmpdir } from 'os';
4
- import { rmSync } from 'fs';
5
- import { MemoryStorage } from '../../memory/MemoryStorage.js';
6
- import { ReflectionStore } from '../../memory/ReflectionStore.js';
7
- import { InsightStore } from '../InsightStore.js';
8
- import { InsightExtractor } from '../InsightExtractor.js';
9
- import { SkillGapDetector } from '../SkillGapDetector.js';
10
- describe('InsightStore', () => {
11
- let storage;
12
- let store;
13
- let testDir;
14
- beforeEach(() => {
15
- testDir = join(tmpdir(), `core-insight-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
16
- storage = new MemoryStorage(testDir);
17
- store = new InsightStore(storage);
18
- });
19
- afterEach(() => {
20
- storage.close();
21
- try {
22
- rmSync(testDir, { recursive: true, force: true });
23
- }
24
- catch { /* ignore */ }
25
- });
26
- describe('Table creation', () => {
27
- it('should create insights and skill_gaps tables', () => {
28
- const db = storage.getDatabase();
29
- const insTable = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='insights'").get();
30
- const gapTable = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='skill_gaps'").get();
31
- expect(insTable).toBeDefined();
32
- expect(gapTable).toBeDefined();
33
- });
34
- it('should not affect existing tables', () => {
35
- const db = storage.getDatabase();
36
- const memTable = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='memories'").get();
37
- const reflTable = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='reflections'").get();
38
- expect(memTable).toBeDefined();
39
- expect(reflTable).toBeDefined();
40
- });
41
- });
42
- describe('save and getById', () => {
43
- it('should save and retrieve an insight', () => {
44
- const id = store.save({
45
- type: 'anti_pattern',
46
- title: 'console.log in production',
47
- description: 'Found console.log statements in committed code',
48
- evidence: ['refl-1', 'refl-2'],
49
- confidence: 0.7,
50
- tags: ['code-quality'],
51
- generatedFrom: 'reflection',
52
- });
53
- const insight = store.getById(id);
54
- expect(insight).not.toBeNull();
55
- expect(insight.type).toBe('anti_pattern');
56
- expect(insight.title).toBe('console.log in production');
57
- expect(insight.evidence).toEqual(['refl-1', 'refl-2']);
58
- expect(insight.confidence).toBe(0.7);
59
- expect(insight.status).toBe('draft');
60
- expect(insight.occurrences).toBe(1);
61
- });
62
- });
63
- describe('findAndMergeDuplicate', () => {
64
- it('should merge duplicate insights by incrementing occurrences', () => {
65
- const id1 = store.save({
66
- type: 'pattern',
67
- title: 'Use TypeScript strict mode',
68
- description: 'Always enable strict mode',
69
- generatedFrom: 'reflection',
70
- });
71
- // Save to trigger FTS indexing if available
72
- const insight1 = store.getById(id1);
73
- expect(insight1.occurrences).toBe(1);
74
- // Try to merge
75
- const merged = store.findAndMergeDuplicate('Use TypeScript strict mode', 'Always enable strict mode');
76
- if (storage.isFTS5Available()) {
77
- expect(merged).toBe(id1);
78
- const updated = store.getById(id1);
79
- expect(updated.occurrences).toBe(2);
80
- }
81
- });
82
- });
83
- describe('getActionable', () => {
84
- it('should return confirmed insights of actionable types', () => {
85
- store.save({ type: 'skill_gap', title: 'Gap 1', description: 'desc', generatedFrom: 'observation' });
86
- const id = store.save({ type: 'pattern', title: 'Pattern 1', description: 'desc', generatedFrom: 'reflection' });
87
- store.updateStatus(id, 'confirmed');
88
- const actionable = store.getActionable();
89
- expect(actionable.length).toBeGreaterThanOrEqual(1);
90
- expect(actionable.every(i => i.status === 'confirmed')).toBe(true);
91
- });
92
- });
93
- describe('cleanupLowConfidence', () => {
94
- it('should remove old low-confidence insights', () => {
95
- // Save with low confidence
96
- const id = store.save({
97
- type: 'pattern',
98
- title: 'Low confidence',
99
- description: 'test',
100
- confidence: 0.1,
101
- generatedFrom: 'reflection',
102
- });
103
- // Manually backdate
104
- const db = storage.getDatabase();
105
- db.prepare(`UPDATE insights SET createdAt = ? WHERE id = ?`)
106
- .run(new Date(Date.now() - 8 * 24 * 60 * 60 * 1000).toISOString(), id);
107
- const removed = store.cleanupLowConfidence();
108
- expect(removed).toBe(1);
109
- expect(store.getById(id)).toBeNull();
110
- });
111
- });
112
- describe('getStats', () => {
113
- it('should return correct statistics', () => {
114
- store.save({ type: 'pattern', title: 'P1', description: 'd', generatedFrom: 'reflection' });
115
- store.save({ type: 'anti_pattern', title: 'AP1', description: 'd', generatedFrom: 'reflection' });
116
- store.save({ type: 'pattern', title: 'P2', description: 'd', generatedFrom: 'observation' });
117
- const stats = store.getStats();
118
- expect(stats.total).toBe(3);
119
- expect(stats.byType['pattern']).toBe(2);
120
- expect(stats.byType['anti_pattern']).toBe(1);
121
- expect(stats.byStatus['draft']).toBe(3);
122
- });
123
- });
124
- });
125
- describe('InsightExtractor', () => {
126
- let storage;
127
- let extractor;
128
- let reflectionStore;
129
- let testDir;
130
- beforeEach(() => {
131
- testDir = join(tmpdir(), `core-extract-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
132
- storage = new MemoryStorage(testDir);
133
- // Need to create InsightStore first to ensure tables exist
134
- new InsightStore(storage);
135
- extractor = new InsightExtractor(storage);
136
- reflectionStore = new ReflectionStore(storage);
137
- });
138
- afterEach(() => {
139
- storage.close();
140
- try {
141
- rmSync(testDir, { recursive: true, force: true });
142
- }
143
- catch { /* ignore */ }
144
- });
145
- it('should extract patterns from 3+ repeated observations', () => {
146
- // Create 3 reflections with same topic
147
- for (let i = 0; i < 3; i++) {
148
- reflectionStore.save({
149
- type: 'minor',
150
- trigger: 'manual',
151
- insights: ['TypeScript any type usage detected'],
152
- score: 0.5,
153
- });
154
- }
155
- const result = extractor.extractFromRecent();
156
- expect(result.newInsights.length).toBeGreaterThanOrEqual(1);
157
- });
158
- it('should skip topics with fewer than 3 occurrences', () => {
159
- reflectionStore.save({ type: 'minor', trigger: 'manual', insights: ['unique topic abc'] });
160
- const result = extractor.extractFromRecent();
161
- expect(result.skippedCount).toBeGreaterThan(0);
162
- });
163
- it('should handle invalid data gracefully', () => {
164
- // Even with no data, should not throw
165
- const result = extractor.extractFromRecent();
166
- expect(result.errorCount).toBe(0);
167
- });
168
- });
169
- describe('SkillGapDetector', () => {
170
- let storage;
171
- let detector;
172
- let testDir;
173
- beforeEach(() => {
174
- testDir = join(tmpdir(), `core-gap-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
175
- storage = new MemoryStorage(testDir);
176
- new InsightStore(storage); // Ensure tables exist
177
- detector = new SkillGapDetector(storage);
178
- });
179
- afterEach(() => {
180
- storage.close();
181
- try {
182
- rmSync(testDir, { recursive: true, force: true });
183
- }
184
- catch { /* ignore */ }
185
- });
186
- it('should log a miss', () => {
187
- detector.logMiss('CSV 파일 분석해줘');
188
- expect(detector.getGapCount()).toBe(1);
189
- });
190
- it('should detect gaps from 3+ similar misses', () => {
191
- for (let i = 0; i < 3; i++) {
192
- detector.logMiss('CSV 분석');
193
- }
194
- const result = detector.analyze();
195
- expect(result.newGaps.length).toBeGreaterThanOrEqual(1);
196
- });
197
- it('should not create gap for fewer than 3 misses', () => {
198
- detector.logMiss('unique prompt xyz');
199
- detector.logMiss('another unique prompt');
200
- const result = detector.analyze();
201
- expect(result.newGaps).toHaveLength(0);
202
- });
203
- });
204
- //# sourceMappingURL=insight.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"insight.test.js","sourceRoot":"","sources":["../../../../../src/infra/lib/evolution/__tests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CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QACtC,QAAQ,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;QAE1C,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/infra/lib/evolution/__tests__/integration.test.ts"],"names":[],"mappings":""}
@@ -1,206 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import { join } from 'path';
3
- import { tmpdir } from 'os';
4
- import { rmSync, existsSync, readFileSync } from 'fs';
5
- import { MemoryStorage } from '../../memory/MemoryStorage.js';
6
- // Module exports test (Scenario 10)
7
- describe('Evolution module exports', () => {
8
- it('should export all Phase 1-4 classes', async () => {
9
- const mod = await import('../index.js');
10
- // Phase 1
11
- expect(mod.ReflectionStore).toBeDefined();
12
- // Phase 2
13
- expect(mod.InsightStore).toBeDefined();
14
- expect(mod.InsightExtractor).toBeDefined();
15
- expect(mod.SkillGapDetector).toBeDefined();
16
- expect(mod.AgentAnalyzer).toBeDefined();
17
- // Phase 3
18
- expect(mod.GenerationRegistry).toBeDefined();
19
- expect(mod.SkillGenerator).toBeDefined();
20
- expect(mod.AgentGenerator).toBeDefined();
21
- expect(mod.RuleGenerator).toBeDefined();
22
- expect(mod.TriggerCollisionDetector).toBeDefined();
23
- expect(mod.EvolutionOrchestrator).toBeDefined();
24
- // Phase 4
25
- expect(mod.UsageTracker).toBeDefined();
26
- expect(mod.LifecycleManager).toBeDefined();
27
- expect(mod.RollbackManager).toBeDefined();
28
- expect(mod.CircuitBreaker).toBeDefined();
29
- });
30
- });
31
- // Tool exports test
32
- describe('Evolution tool exports', () => {
33
- it('should export all insight and dashboard tools', async () => {
34
- const mod = await import('../../../../tools/evolution/index.js');
35
- // Phase 2 tools
36
- expect(mod.extractInsightsDefinition).toBeDefined();
37
- expect(mod.extractInsights).toBeDefined();
38
- expect(mod.searchInsightsDefinition).toBeDefined();
39
- expect(mod.searchInsights).toBeDefined();
40
- expect(mod.listSkillGapsDefinition).toBeDefined();
41
- expect(mod.listSkillGaps).toBeDefined();
42
- expect(mod.insightStatsDefinition).toBeDefined();
43
- expect(mod.insightStats).toBeDefined();
44
- // Phase 4 tools
45
- expect(mod.evolutionStatusDefinition).toBeDefined();
46
- expect(mod.evolutionStatus).toBeDefined();
47
- expect(mod.evolutionApproveDefinition).toBeDefined();
48
- expect(mod.evolutionApprove).toBeDefined();
49
- expect(mod.evolutionRejectDefinition).toBeDefined();
50
- expect(mod.evolutionReject).toBeDefined();
51
- expect(mod.evolutionDisableDefinition).toBeDefined();
52
- expect(mod.evolutionDisable).toBeDefined();
53
- expect(mod.evolutionRollbackDefinition).toBeDefined();
54
- expect(mod.evolutionRollback).toBeDefined();
55
- });
56
- });
57
- // Config integration test (Scenario 6)
58
- describe('Evolution config', () => {
59
- it('should respect evolution.enabled=false', async () => {
60
- // CircuitBreaker is in-memory only, no config dependency
61
- const { CircuitBreaker } = await import('../CircuitBreaker.js');
62
- const cb = new CircuitBreaker();
63
- expect(cb.getState()).toBe('closed');
64
- });
65
- });
66
- // Full pipeline integration test
67
- describe('Full evolution pipeline', () => {
68
- let storage;
69
- let testDir;
70
- beforeEach(() => {
71
- testDir = join(tmpdir(), `core-integ-${Date.now()}-${Math.random().toString(36).slice(2)}`);
72
- storage = new MemoryStorage(testDir);
73
- });
74
- afterEach(() => {
75
- storage.close();
76
- try {
77
- rmSync(testDir, { recursive: true, force: true });
78
- }
79
- catch { /* ignore */ }
80
- });
81
- it('should run full pipeline: reflect → extract → generate → track → lifecycle', async () => {
82
- // Import all modules
83
- const { ReflectionStore } = await import('../../memory/ReflectionStore.js');
84
- const { InsightStore } = await import('../InsightStore.js');
85
- const { InsightExtractor } = await import('../InsightExtractor.js');
86
- const { GenerationRegistry } = await import('../GenerationRegistry.js');
87
- const { EvolutionOrchestrator } = await import('../EvolutionOrchestrator.js');
88
- const { UsageTracker } = await import('../UsageTracker.js');
89
- const { LifecycleManager } = await import('../LifecycleManager.js');
90
- // Phase 1: Create reflections
91
- const reflections = new ReflectionStore(storage);
92
- for (let i = 0; i < 5; i++) {
93
- reflections.save({
94
- type: 'minor',
95
- trigger: 'manual',
96
- insights: ['TypeScript any type detected in production code'],
97
- score: 0.6,
98
- });
99
- }
100
- // Phase 2: Extract insights
101
- const insightStore = new InsightStore(storage);
102
- const extractor = new InsightExtractor(storage);
103
- const extractResult = extractor.extractFromRecent();
104
- expect(extractResult.errorCount).toBe(0);
105
- // If insights were extracted, confirm one for generation
106
- const actionable = insightStore.getActionable();
107
- if (actionable.length === 0) {
108
- // Manually create an insight for the pipeline
109
- const insId = insightStore.save({
110
- type: 'anti_pattern',
111
- title: 'typescript any type usage',
112
- description: 'Detected any type in production code repeatedly across files',
113
- confidence: 0.9,
114
- tags: ['typescript', 'quality'],
115
- generatedFrom: 'reflection',
116
- });
117
- insightStore.updateStatus(insId, 'confirmed');
118
- }
119
- // Phase 3: Generate
120
- const orchestrator = new EvolutionOrchestrator(storage, { mode: 'suggest' });
121
- const genResult = orchestrator.generate();
122
- // May or may not generate depending on quality score
123
- // Phase 4: Track usage if any generation exists
124
- const registry = new GenerationRegistry(storage);
125
- const tracker = new UsageTracker(storage);
126
- const lifecycle = new LifecycleManager(storage);
127
- const stats = registry.getStats();
128
- expect(stats).toBeDefined();
129
- expect(typeof stats.total).toBe('number');
130
- // Verify lifecycle runs without errors
131
- const cleanupResult = lifecycle.cleanup();
132
- expect(cleanupResult.errors).toHaveLength(0);
133
- });
134
- });
135
- // Phase 5 Scenario 2: prompt-dispatcher gap detection
136
- describe('Prompt dispatcher gap detection', () => {
137
- it('should have gap logging code in prompt-dispatcher.js', () => {
138
- const hookPath = join(__dirname, '..', '..', '..', '..', '..', 'hooks', 'scripts', 'prompt-dispatcher.js');
139
- expect(existsSync(hookPath)).toBe(true);
140
- const content = readFileSync(hookPath, 'utf8');
141
- expect(content).toContain('gapDetection');
142
- expect(content).toContain('SkillGapDetector');
143
- expect(content).toContain('logMiss');
144
- });
145
- });
146
- // Phase 5 Scenario 4 & 5 & 9: CLI commands
147
- describe('Evolution CLI commands', () => {
148
- it('should export all CLI functions', async () => {
149
- const mod = await import('../../../../cli/commands/evolution.js');
150
- expect(mod.evolutionStatus).toBeDefined();
151
- expect(mod.evolutionList).toBeDefined();
152
- expect(mod.evolutionApprove).toBeDefined();
153
- expect(mod.evolutionReject).toBeDefined();
154
- expect(mod.evolutionDisable).toBeDefined();
155
- expect(mod.evolutionRollback).toBeDefined();
156
- expect(mod.evolutionDisableAll).toBeDefined();
157
- expect(mod.evolutionRun).toBeDefined();
158
- expect(mod.evolutionInsights).toBeDefined();
159
- expect(mod.evolutionGaps).toBeDefined();
160
- expect(mod.evolutionHelp).toBeDefined();
161
- });
162
- it('should NOT have evolution case in CLI router (removed: internal automation)', () => {
163
- const cliPath = join(__dirname, '..', '..', '..', '..', 'cli', 'index.ts');
164
- const content = readFileSync(cliPath, 'utf8');
165
- // Evolution commands removed from CLI — handled by hooks/automation
166
- expect(content).not.toContain("case 'evolution'");
167
- });
168
- });
169
- // Phase 5 Scenario 8 (P3-3 동결 이후): SessionStart 는 evolution 요약을 주입하지 않는다.
170
- // evolution 상태 조회는 명시적 CLI(vibe evolution) 전용.
171
- describe('Session start evolution status', () => {
172
- it('should NOT inject evolution status on session start (frozen, opt-in)', () => {
173
- const hookPath = join(__dirname, '..', '..', '..', '..', '..', 'hooks', 'scripts', 'session-start.js');
174
- const content = readFileSync(hookPath, 'utf8');
175
- expect(content).not.toContain('GenerationRegistry');
176
- expect(content).not.toContain('gaps detected');
177
- // 동결 사실이 주석으로 문서화되어 있어야 한다
178
- expect(content).toContain('동결');
179
- });
180
- });
181
- // Phase 2 Scenario 3: AgentAnalyzer
182
- describe('AgentAnalyzer', () => {
183
- let storage;
184
- let testDir;
185
- beforeEach(() => {
186
- testDir = join(tmpdir(), `core-agent-${Date.now()}-${Math.random().toString(36).slice(2)}`);
187
- storage = new MemoryStorage(testDir);
188
- });
189
- afterEach(() => {
190
- storage.close();
191
- try {
192
- rmSync(testDir, { recursive: true, force: true });
193
- }
194
- catch { /* ignore */ }
195
- });
196
- it('should analyze without errors even with empty data', async () => {
197
- const { InsightStore } = await import('../InsightStore.js');
198
- const { AgentAnalyzer } = await import('../AgentAnalyzer.js');
199
- const insightStore = new InsightStore(storage);
200
- const analyzer = new AgentAnalyzer(insightStore);
201
- const result = analyzer.analyze();
202
- expect(result.newInsights).toHaveLength(0);
203
- expect(result.agentsAnalyzed).toBe(0);
204
- });
205
- });
206
- //# sourceMappingURL=integration.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration.test.js","sourceRoot":"","sources":["../../../../../src/infra/lib/evolution/__tests__/integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,MAAM,EAA4B,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAChF,OAAO,EAAE,aAAa,EAA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,MAAM,QAAQ,GAAG,IAAI,aAAa,CAAC,YAAY,CAAC,CAAC;QAEjD,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lifecycle.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lifecycle.test.d.ts","sourceRoot":"","sources":["../../../../../src/infra/lib/evolution/__tests__/lifecycle.test.ts"],"names":[],"mappings":""}