@su-record/vibe 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/CLAUDE.md +2 -2
  2. package/README.en.md +6 -4
  3. package/README.md +5 -3
  4. package/dist/__tests__/wiring-integrity.test.d.ts +2 -0
  5. package/dist/__tests__/wiring-integrity.test.d.ts.map +1 -0
  6. package/dist/__tests__/wiring-integrity.test.js +160 -0
  7. package/dist/__tests__/wiring-integrity.test.js.map +1 -0
  8. package/dist/cli/commands/info.d.ts.map +1 -1
  9. package/dist/cli/commands/info.js +2 -1
  10. package/dist/cli/commands/info.js.map +1 -1
  11. package/dist/cli/commands/init.d.ts.map +1 -1
  12. package/dist/cli/commands/init.js +4 -2
  13. package/dist/cli/commands/init.js.map +1 -1
  14. package/dist/cli/index.js +102 -128
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
  17. package/dist/cli/postinstall/claude-agents.js +0 -5
  18. package/dist/cli/postinstall/claude-agents.js.map +1 -1
  19. package/dist/cli/postinstall/constants.d.ts +6 -0
  20. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  21. package/dist/cli/postinstall/constants.js +42 -60
  22. package/dist/cli/postinstall/constants.js.map +1 -1
  23. package/dist/cli/postinstall/inline-skills.js +2 -2
  24. package/dist/cli/postinstall/inline-skills.js.map +1 -1
  25. package/dist/cli/postinstall/main.d.ts.map +1 -1
  26. package/dist/cli/postinstall/main.js +2 -0
  27. package/dist/cli/postinstall/main.js.map +1 -1
  28. package/dist/cli/postinstall.d.ts +6 -1
  29. package/dist/cli/postinstall.d.ts.map +1 -1
  30. package/dist/cli/postinstall.js +6 -1
  31. package/dist/cli/postinstall.js.map +1 -1
  32. package/dist/cli/setup/GlobalInstaller.d.ts +1 -15
  33. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  34. package/dist/cli/setup/GlobalInstaller.js +16 -115
  35. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  36. package/dist/cli/setup/GlobalInstaller.test.d.ts +2 -0
  37. package/dist/cli/setup/GlobalInstaller.test.d.ts.map +1 -0
  38. package/dist/cli/setup/GlobalInstaller.test.js +16 -0
  39. package/dist/cli/setup/GlobalInstaller.test.js.map +1 -0
  40. package/dist/cli/setup/ProjectSetup.js +2 -2
  41. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  42. package/dist/cli/setup.d.ts +1 -1
  43. package/dist/cli/setup.d.ts.map +1 -1
  44. package/dist/cli/setup.js +1 -1
  45. package/dist/cli/setup.js.map +1 -1
  46. package/dist/infra/lib/SkillRepository.js +1 -1
  47. package/dist/infra/lib/evolution/__tests__/integration.test.js +0 -42
  48. package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
  49. package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
  50. package/hooks/scripts/__tests__/clone-behaviors.test.js +97 -1
  51. package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
  52. package/hooks/scripts/__tests__/code-check-memory-write.test.js +81 -0
  53. package/hooks/scripts/__tests__/step-counter.test.js +21 -0
  54. package/hooks/scripts/auto-format.js +2 -11
  55. package/hooks/scripts/auto-test.js +2 -11
  56. package/hooks/scripts/clone-extract.js +388 -38
  57. package/hooks/scripts/clone-merge-responsive.js +184 -0
  58. package/hooks/scripts/clone-spec.js +33 -8
  59. package/hooks/scripts/clone-validate.js +15 -9
  60. package/hooks/scripts/code-check.js +27 -55
  61. package/hooks/scripts/lib/glob.js +32 -0
  62. package/hooks/scripts/lib/hook-context.js +19 -2
  63. package/hooks/scripts/post-edit.js +2 -3
  64. package/hooks/scripts/prompt-dispatcher.js +1 -1
  65. package/hooks/scripts/scope-guard.js +3 -42
  66. package/hooks/scripts/sentinel-guard.js +5 -20
  67. package/hooks/scripts/session-start.js +2 -2
  68. package/hooks/scripts/step-counter.js +35 -57
  69. package/package.json +6 -4
  70. package/skills/clone/SKILL.md +74 -203
  71. package/skills/clone/references/capture-rules.md +48 -0
  72. package/skills/clone/references/legal-and-error-recovery.md +40 -0
  73. package/skills/clone/references/refine-rules.md +61 -0
  74. package/skills/clone/references/scaffold-phases.md +59 -0
  75. package/skills/clone/references/setup-and-layout.md +30 -0
  76. package/skills/docs/SKILL.md +39 -4
  77. package/skills/docs/references/api-docs-changelog.md +34 -0
  78. package/skills/docs/references/codemaps-output.md +23 -0
  79. package/{agents/diagrammer.md → skills/docs/references/diagram-spec.md} +2 -15
  80. package/skills/exec-plan/SKILL.md +1 -1
  81. package/skills/exec-plan/templates/plan.md +1 -1
  82. package/skills/handoff/SKILL.md +3 -3
  83. package/skills/handoff/templates/handoff.md +1 -1
  84. package/skills/vibe/SKILL.md +3 -2
  85. package/skills/vibe.analyze/SKILL.md +12 -249
  86. package/skills/vibe.analyze/references/output-templates.md +188 -0
  87. package/skills/vibe.analyze/references/quality-gate.md +93 -0
  88. package/skills/vibe.clone/SKILL.md +52 -19
  89. package/skills/vibe.continue/SKILL.md +32 -0
  90. package/skills/vibe.design/SKILL.md +23 -1
  91. package/skills/vibe.design/references/ui-preview.md +20 -0
  92. package/skills/vibe.docs/SKILL.md +4 -2
  93. package/skills/vibe.figma/SKILL.md +33 -260
  94. package/skills/vibe.figma/references/branch-phases.md +113 -0
  95. package/skills/vibe.figma/references/state-schema.md +42 -0
  96. package/skills/vibe.figma/references/step-algorithms.md +204 -0
  97. package/skills/vibe.image/SKILL.md +62 -0
  98. package/skills/vibe.image/references/image-generation-examples.md +39 -0
  99. package/skills/vibe.reason/SKILL.md +3 -183
  100. package/skills/vibe.reason/references/output-format-template.md +57 -0
  101. package/skills/vibe.reason/references/quality-rubrics.md +94 -0
  102. package/skills/vibe.reason/references/worked-example.md +45 -0
  103. package/skills/vibe.review/SKILL.md +13 -348
  104. package/skills/vibe.review/references/boundary-check.md +25 -0
  105. package/skills/vibe.review/references/output-template.md +74 -0
  106. package/skills/vibe.review/references/quality-gate.md +84 -0
  107. package/skills/vibe.review/references/race-mode.md +117 -0
  108. package/skills/vibe.review/references/worked-examples.md +94 -0
  109. package/vibe/templates/claudemd-template.md +1 -1
  110. package/agents/acceptance-tester.md +0 -56
  111. package/agents/documenter.md +0 -43
  112. package/agents/figma/figma-engineer.md +0 -76
  113. package/dist/cli/llm/gemini-commands.d.ts +0 -25
  114. package/dist/cli/llm/gemini-commands.d.ts.map +0 -1
  115. package/dist/cli/llm/gemini-commands.js +0 -143
  116. package/dist/cli/llm/gemini-commands.js.map +0 -1
  117. package/dist/cli/postinstall/codex-agents.d.ts +0 -24
  118. package/dist/cli/postinstall/codex-agents.d.ts.map +0 -1
  119. package/dist/cli/postinstall/codex-agents.js +0 -114
  120. package/dist/cli/postinstall/codex-agents.js.map +0 -1
  121. package/dist/cli/postinstall/codex-instruction.d.ts +0 -10
  122. package/dist/cli/postinstall/codex-instruction.d.ts.map +0 -1
  123. package/dist/cli/postinstall/codex-instruction.js +0 -56
  124. package/dist/cli/postinstall/codex-instruction.js.map +0 -1
  125. package/dist/cli/postinstall/gemini-agents.d.ts +0 -12
  126. package/dist/cli/postinstall/gemini-agents.d.ts.map +0 -1
  127. package/dist/cli/postinstall/gemini-agents.js +0 -80
  128. package/dist/cli/postinstall/gemini-agents.js.map +0 -1
  129. package/dist/cli/postinstall/gemini-instruction.d.ts +0 -10
  130. package/dist/cli/postinstall/gemini-instruction.d.ts.map +0 -1
  131. package/dist/cli/postinstall/gemini-instruction.js +0 -59
  132. package/dist/cli/postinstall/gemini-instruction.js.map +0 -1
  133. package/dist/cli/postinstall/index.d.ts +0 -23
  134. package/dist/cli/postinstall/index.d.ts.map +0 -1
  135. package/dist/cli/postinstall/index.js +0 -23
  136. package/dist/cli/postinstall/index.js.map +0 -1
  137. package/dist/cli/setup/index.d.ts +0 -9
  138. package/dist/cli/setup/index.d.ts.map +0 -1
  139. package/dist/cli/setup/index.js +0 -12
  140. package/dist/cli/setup/index.js.map +0 -1
  141. package/dist/infra/lib/ContextCompressor.d.ts +0 -104
  142. package/dist/infra/lib/ContextCompressor.d.ts.map +0 -1
  143. package/dist/infra/lib/ContextCompressor.js +0 -297
  144. package/dist/infra/lib/ContextCompressor.js.map +0 -1
  145. package/dist/infra/lib/ContextCompressor.test.d.ts +0 -2
  146. package/dist/infra/lib/ContextCompressor.test.d.ts.map +0 -1
  147. package/dist/infra/lib/ContextCompressor.test.js +0 -25
  148. package/dist/infra/lib/ContextCompressor.test.js.map +0 -1
  149. package/dist/infra/lib/ProgressTracker.d.ts +0 -73
  150. package/dist/infra/lib/ProgressTracker.d.ts.map +0 -1
  151. package/dist/infra/lib/ProgressTracker.js +0 -267
  152. package/dist/infra/lib/ProgressTracker.js.map +0 -1
  153. package/dist/infra/lib/TokenBudgetTracker.d.ts +0 -68
  154. package/dist/infra/lib/TokenBudgetTracker.d.ts.map +0 -1
  155. package/dist/infra/lib/TokenBudgetTracker.js +0 -191
  156. package/dist/infra/lib/TokenBudgetTracker.js.map +0 -1
  157. package/dist/infra/lib/autonomy/AuditStore.d.ts +0 -63
  158. package/dist/infra/lib/autonomy/AuditStore.d.ts.map +0 -1
  159. package/dist/infra/lib/autonomy/AuditStore.js +0 -185
  160. package/dist/infra/lib/autonomy/AuditStore.js.map +0 -1
  161. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +0 -84
  162. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +0 -1
  163. package/dist/infra/lib/autonomy/AutonomyConfig.js +0 -49
  164. package/dist/infra/lib/autonomy/AutonomyConfig.js.map +0 -1
  165. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +0 -78
  166. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +0 -1
  167. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +0 -246
  168. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +0 -1
  169. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +0 -36
  170. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +0 -1
  171. package/dist/infra/lib/autonomy/BackgroundMonitor.js +0 -138
  172. package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +0 -1
  173. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +0 -56
  174. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +0 -1
  175. package/dist/infra/lib/autonomy/CollaborationProtocol.js +0 -122
  176. package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +0 -1
  177. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +0 -42
  178. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +0 -1
  179. package/dist/infra/lib/autonomy/ConfirmationManager.js +0 -200
  180. package/dist/infra/lib/autonomy/ConfirmationManager.js.map +0 -1
  181. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +0 -55
  182. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +0 -1
  183. package/dist/infra/lib/autonomy/ConfirmationStore.js +0 -130
  184. package/dist/infra/lib/autonomy/ConfirmationStore.js.map +0 -1
  185. package/dist/infra/lib/autonomy/EventBus.d.ts +0 -20
  186. package/dist/infra/lib/autonomy/EventBus.d.ts.map +0 -1
  187. package/dist/infra/lib/autonomy/EventBus.js +0 -119
  188. package/dist/infra/lib/autonomy/EventBus.js.map +0 -1
  189. package/dist/infra/lib/autonomy/EventOutbox.d.ts +0 -32
  190. package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +0 -1
  191. package/dist/infra/lib/autonomy/EventOutbox.js +0 -152
  192. package/dist/infra/lib/autonomy/EventOutbox.js.map +0 -1
  193. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +0 -24
  194. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +0 -1
  195. package/dist/infra/lib/autonomy/NotificationDispatcher.js +0 -112
  196. package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +0 -1
  197. package/dist/infra/lib/autonomy/PolicyEngine.d.ts +0 -76
  198. package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +0 -1
  199. package/dist/infra/lib/autonomy/PolicyEngine.js +0 -208
  200. package/dist/infra/lib/autonomy/PolicyEngine.js.map +0 -1
  201. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +0 -61
  202. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +0 -1
  203. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +0 -236
  204. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +0 -1
  205. package/dist/infra/lib/autonomy/RiskClassifier.d.ts +0 -35
  206. package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +0 -1
  207. package/dist/infra/lib/autonomy/RiskClassifier.js +0 -147
  208. package/dist/infra/lib/autonomy/RiskClassifier.js.map +0 -1
  209. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +0 -51
  210. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +0 -1
  211. package/dist/infra/lib/autonomy/SecuritySentinel.js +0 -162
  212. package/dist/infra/lib/autonomy/SecuritySentinel.js.map +0 -1
  213. package/dist/infra/lib/autonomy/SuggestionStore.d.ts +0 -54
  214. package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +0 -1
  215. package/dist/infra/lib/autonomy/SuggestionStore.js +0 -144
  216. package/dist/infra/lib/autonomy/SuggestionStore.js.map +0 -1
  217. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +0 -38
  218. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +0 -1
  219. package/dist/infra/lib/autonomy/TaskDecomposer.js +0 -175
  220. package/dist/infra/lib/autonomy/TaskDecomposer.js.map +0 -1
  221. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +0 -2
  222. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +0 -1
  223. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +0 -198
  224. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +0 -1
  225. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +0 -2
  226. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +0 -1
  227. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +0 -225
  228. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +0 -1
  229. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +0 -2
  230. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +0 -1
  231. package/dist/infra/lib/autonomy/__tests__/event-core.test.js +0 -194
  232. package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +0 -1
  233. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +0 -2
  234. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +0 -1
  235. package/dist/infra/lib/autonomy/__tests__/governance.test.js +0 -540
  236. package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +0 -1
  237. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +0 -2
  238. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +0 -1
  239. package/dist/infra/lib/autonomy/__tests__/integration.test.js +0 -480
  240. package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +0 -1
  241. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +0 -2
  242. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +0 -1
  243. package/dist/infra/lib/autonomy/__tests__/proactive.test.js +0 -410
  244. package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +0 -1
  245. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +0 -2
  246. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +0 -1
  247. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +0 -486
  248. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +0 -1
  249. package/dist/infra/lib/autonomy/index.d.ts +0 -18
  250. package/dist/infra/lib/autonomy/index.d.ts.map +0 -1
  251. package/dist/infra/lib/autonomy/index.js +0 -22
  252. package/dist/infra/lib/autonomy/index.js.map +0 -1
  253. package/dist/infra/lib/autonomy/schemas.d.ts +0 -317
  254. package/dist/infra/lib/autonomy/schemas.d.ts.map +0 -1
  255. package/dist/infra/lib/autonomy/schemas.js +0 -90
  256. package/dist/infra/lib/autonomy/schemas.js.map +0 -1
  257. package/dist/infra/lib/claude/index.d.ts +0 -5
  258. package/dist/infra/lib/claude/index.d.ts.map +0 -1
  259. package/dist/infra/lib/claude/index.js +0 -5
  260. package/dist/infra/lib/claude/index.js.map +0 -1
  261. package/dist/infra/lib/claude/storage.d.ts +0 -12
  262. package/dist/infra/lib/claude/storage.d.ts.map +0 -1
  263. package/dist/infra/lib/claude/storage.js +0 -54
  264. package/dist/infra/lib/claude/storage.js.map +0 -1
  265. package/dist/infra/lib/gemini/auth.d.ts +0 -18
  266. package/dist/infra/lib/gemini/auth.d.ts.map +0 -1
  267. package/dist/infra/lib/gemini/auth.js +0 -32
  268. package/dist/infra/lib/gemini/auth.js.map +0 -1
  269. package/dist/infra/lib/gemini/capabilities.d.ts +0 -28
  270. package/dist/infra/lib/gemini/capabilities.d.ts.map +0 -1
  271. package/dist/infra/lib/gemini/capabilities.js +0 -178
  272. package/dist/infra/lib/gemini/capabilities.js.map +0 -1
  273. package/dist/infra/lib/gemini/chat.d.ts +0 -35
  274. package/dist/infra/lib/gemini/chat.d.ts.map +0 -1
  275. package/dist/infra/lib/gemini/chat.js +0 -161
  276. package/dist/infra/lib/gemini/chat.js.map +0 -1
  277. package/dist/infra/lib/gemini/completion.d.ts +0 -12
  278. package/dist/infra/lib/gemini/completion.d.ts.map +0 -1
  279. package/dist/infra/lib/gemini/completion.js +0 -13
  280. package/dist/infra/lib/gemini/completion.js.map +0 -1
  281. package/dist/infra/lib/gemini/constants.d.ts +0 -8
  282. package/dist/infra/lib/gemini/constants.d.ts.map +0 -1
  283. package/dist/infra/lib/gemini/constants.js +0 -11
  284. package/dist/infra/lib/gemini/constants.js.map +0 -1
  285. package/dist/infra/lib/gemini/index.d.ts +0 -13
  286. package/dist/infra/lib/gemini/index.d.ts.map +0 -1
  287. package/dist/infra/lib/gemini/index.js +0 -12
  288. package/dist/infra/lib/gemini/index.js.map +0 -1
  289. package/dist/infra/lib/gemini/models.d.ts +0 -11
  290. package/dist/infra/lib/gemini/models.d.ts.map +0 -1
  291. package/dist/infra/lib/gemini/models.js +0 -38
  292. package/dist/infra/lib/gemini/models.js.map +0 -1
  293. package/dist/infra/lib/gemini/orchestration.d.ts +0 -33
  294. package/dist/infra/lib/gemini/orchestration.d.ts.map +0 -1
  295. package/dist/infra/lib/gemini/orchestration.js +0 -62
  296. package/dist/infra/lib/gemini/orchestration.js.map +0 -1
  297. package/dist/infra/lib/gemini/types.d.ts +0 -115
  298. package/dist/infra/lib/gemini/types.d.ts.map +0 -1
  299. package/dist/infra/lib/gemini/types.js +0 -5
  300. package/dist/infra/lib/gemini/types.js.map +0 -1
  301. package/dist/infra/orchestrator/AgentAnnouncer.d.ts +0 -64
  302. package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +0 -1
  303. package/dist/infra/orchestrator/AgentAnnouncer.js +0 -127
  304. package/dist/infra/orchestrator/AgentAnnouncer.js.map +0 -1
  305. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +0 -5
  306. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +0 -1
  307. package/dist/infra/orchestrator/AgentAnnouncer.test.js +0 -119
  308. package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +0 -1
  309. package/dist/infra/orchestrator/AgentExecutor.d.ts +0 -22
  310. package/dist/infra/orchestrator/AgentExecutor.d.ts.map +0 -1
  311. package/dist/infra/orchestrator/AgentExecutor.js +0 -272
  312. package/dist/infra/orchestrator/AgentExecutor.js.map +0 -1
  313. package/dist/infra/orchestrator/AgentManager.d.ts +0 -72
  314. package/dist/infra/orchestrator/AgentManager.d.ts.map +0 -1
  315. package/dist/infra/orchestrator/AgentManager.js +0 -183
  316. package/dist/infra/orchestrator/AgentManager.js.map +0 -1
  317. package/dist/infra/orchestrator/AgentManifestCache.d.ts +0 -54
  318. package/dist/infra/orchestrator/AgentManifestCache.d.ts.map +0 -1
  319. package/dist/infra/orchestrator/AgentManifestCache.js +0 -191
  320. package/dist/infra/orchestrator/AgentManifestCache.js.map +0 -1
  321. package/dist/infra/orchestrator/AgentRegistry.d.ts +0 -76
  322. package/dist/infra/orchestrator/AgentRegistry.d.ts.map +0 -1
  323. package/dist/infra/orchestrator/AgentRegistry.js +0 -217
  324. package/dist/infra/orchestrator/AgentRegistry.js.map +0 -1
  325. package/dist/infra/orchestrator/AgentRegistry.test.d.ts +0 -5
  326. package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +0 -1
  327. package/dist/infra/orchestrator/AgentRegistry.test.js +0 -122
  328. package/dist/infra/orchestrator/AgentRegistry.test.js.map +0 -1
  329. package/dist/infra/orchestrator/BackgroundManager.d.ts +0 -128
  330. package/dist/infra/orchestrator/BackgroundManager.d.ts.map +0 -1
  331. package/dist/infra/orchestrator/BackgroundManager.js +0 -620
  332. package/dist/infra/orchestrator/BackgroundManager.js.map +0 -1
  333. package/dist/infra/orchestrator/BackgroundManager.test.d.ts +0 -6
  334. package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +0 -1
  335. package/dist/infra/orchestrator/BackgroundManager.test.js +0 -162
  336. package/dist/infra/orchestrator/BackgroundManager.test.js.map +0 -1
  337. package/dist/infra/orchestrator/CheckpointManager.d.ts +0 -54
  338. package/dist/infra/orchestrator/CheckpointManager.d.ts.map +0 -1
  339. package/dist/infra/orchestrator/CheckpointManager.js +0 -121
  340. package/dist/infra/orchestrator/CheckpointManager.js.map +0 -1
  341. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts +0 -12
  342. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts.map +0 -1
  343. package/dist/infra/orchestrator/CodexAgentRuntime.js +0 -94
  344. package/dist/infra/orchestrator/CodexAgentRuntime.js.map +0 -1
  345. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts +0 -2
  346. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts.map +0 -1
  347. package/dist/infra/orchestrator/CodexAgentRuntime.test.js +0 -37
  348. package/dist/infra/orchestrator/CodexAgentRuntime.test.js.map +0 -1
  349. package/dist/infra/orchestrator/LLMCluster.d.ts +0 -82
  350. package/dist/infra/orchestrator/LLMCluster.d.ts.map +0 -1
  351. package/dist/infra/orchestrator/LLMCluster.js +0 -146
  352. package/dist/infra/orchestrator/LLMCluster.js.map +0 -1
  353. package/dist/infra/orchestrator/MultiLlmResearch.d.ts +0 -31
  354. package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +0 -1
  355. package/dist/infra/orchestrator/MultiLlmResearch.js +0 -160
  356. package/dist/infra/orchestrator/MultiLlmResearch.js.map +0 -1
  357. package/dist/infra/orchestrator/PhasePipeline.d.ts +0 -122
  358. package/dist/infra/orchestrator/PhasePipeline.d.ts.map +0 -1
  359. package/dist/infra/orchestrator/PhasePipeline.js +0 -385
  360. package/dist/infra/orchestrator/PhasePipeline.js.map +0 -1
  361. package/dist/infra/orchestrator/PhaseResultStore.d.ts +0 -39
  362. package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +0 -1
  363. package/dist/infra/orchestrator/PhaseResultStore.js +0 -151
  364. package/dist/infra/orchestrator/PhaseResultStore.js.map +0 -1
  365. package/dist/infra/orchestrator/SessionStore.d.ts +0 -40
  366. package/dist/infra/orchestrator/SessionStore.d.ts.map +0 -1
  367. package/dist/infra/orchestrator/SessionStore.js +0 -116
  368. package/dist/infra/orchestrator/SessionStore.js.map +0 -1
  369. package/dist/infra/orchestrator/SmartRouter.d.ts +0 -90
  370. package/dist/infra/orchestrator/SmartRouter.d.ts.map +0 -1
  371. package/dist/infra/orchestrator/SmartRouter.js +0 -277
  372. package/dist/infra/orchestrator/SmartRouter.js.map +0 -1
  373. package/dist/infra/orchestrator/SmartRouter.test.d.ts +0 -5
  374. package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +0 -1
  375. package/dist/infra/orchestrator/SmartRouter.test.js +0 -484
  376. package/dist/infra/orchestrator/SmartRouter.test.js.map +0 -1
  377. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +0 -143
  378. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
  379. package/dist/infra/orchestrator/SwarmOrchestrator.js +0 -378
  380. package/dist/infra/orchestrator/SwarmOrchestrator.js.map +0 -1
  381. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts +0 -5
  382. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
  383. package/dist/infra/orchestrator/SwarmOrchestrator.test.js +0 -95
  384. package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +0 -1
  385. package/dist/infra/orchestrator/agentDiscovery.d.ts +0 -26
  386. package/dist/infra/orchestrator/agentDiscovery.d.ts.map +0 -1
  387. package/dist/infra/orchestrator/agentDiscovery.js +0 -175
  388. package/dist/infra/orchestrator/agentDiscovery.js.map +0 -1
  389. package/dist/infra/orchestrator/backgroundAgent.d.ts +0 -9
  390. package/dist/infra/orchestrator/backgroundAgent.d.ts.map +0 -1
  391. package/dist/infra/orchestrator/backgroundAgent.js +0 -10
  392. package/dist/infra/orchestrator/backgroundAgent.js.map +0 -1
  393. package/dist/infra/orchestrator/index.d.ts +0 -207
  394. package/dist/infra/orchestrator/index.d.ts.map +0 -1
  395. package/dist/infra/orchestrator/index.js +0 -362
  396. package/dist/infra/orchestrator/index.js.map +0 -1
  397. package/dist/infra/orchestrator/orchestrator.d.ts +0 -60
  398. package/dist/infra/orchestrator/orchestrator.d.ts.map +0 -1
  399. package/dist/infra/orchestrator/orchestrator.js +0 -214
  400. package/dist/infra/orchestrator/orchestrator.js.map +0 -1
  401. package/dist/infra/orchestrator/parallelResearch.d.ts +0 -27
  402. package/dist/infra/orchestrator/parallelResearch.d.ts.map +0 -1
  403. package/dist/infra/orchestrator/parallelResearch.js +0 -285
  404. package/dist/infra/orchestrator/parallelResearch.js.map +0 -1
  405. package/dist/infra/orchestrator/types.d.ts +0 -205
  406. package/dist/infra/orchestrator/types.d.ts.map +0 -1
  407. package/dist/infra/orchestrator/types.js +0 -87
  408. package/dist/infra/orchestrator/types.js.map +0 -1
  409. package/dist/infra/orchestrator/types.test.d.ts +0 -2
  410. package/dist/infra/orchestrator/types.test.d.ts.map +0 -1
  411. package/dist/infra/orchestrator/types.test.js +0 -57
  412. package/dist/infra/orchestrator/types.test.js.map +0 -1
  413. package/dist/tools/semantic/analyzeDependencyGraph.d.ts +0 -12
  414. package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +0 -1
  415. package/dist/tools/semantic/analyzeDependencyGraph.js +0 -359
  416. package/dist/tools/semantic/analyzeDependencyGraph.js.map +0 -1
  417. package/dist/tools/semantic/astGrep.d.ts +0 -25
  418. package/dist/tools/semantic/astGrep.d.ts.map +0 -1
  419. package/dist/tools/semantic/astGrep.js +0 -324
  420. package/dist/tools/semantic/astGrep.js.map +0 -1
  421. package/dist/tools/semantic/astGrep.test.d.ts +0 -2
  422. package/dist/tools/semantic/astGrep.test.d.ts.map +0 -1
  423. package/dist/tools/semantic/astGrep.test.js +0 -74
  424. package/dist/tools/semantic/astGrep.test.js.map +0 -1
  425. package/dist/tools/semantic/findReferences.d.ts +0 -9
  426. package/dist/tools/semantic/findReferences.d.ts.map +0 -1
  427. package/dist/tools/semantic/findReferences.js +0 -200
  428. package/dist/tools/semantic/findReferences.js.map +0 -1
  429. package/dist/tools/semantic/findSymbol.d.ts +0 -8
  430. package/dist/tools/semantic/findSymbol.d.ts.map +0 -1
  431. package/dist/tools/semantic/findSymbol.js +0 -204
  432. package/dist/tools/semantic/findSymbol.js.map +0 -1
  433. package/dist/tools/semantic/index.d.ts +0 -9
  434. package/dist/tools/semantic/index.d.ts.map +0 -1
  435. package/dist/tools/semantic/index.js +0 -11
  436. package/dist/tools/semantic/index.js.map +0 -1
  437. package/dist/tools/semantic/lsp.d.ts +0 -68
  438. package/dist/tools/semantic/lsp.d.ts.map +0 -1
  439. package/dist/tools/semantic/lsp.js +0 -561
  440. package/dist/tools/semantic/lsp.js.map +0 -1
  441. package/dist/tools/spec/e2eTestGenerator.d.ts +0 -61
  442. package/dist/tools/spec/e2eTestGenerator.d.ts.map +0 -1
  443. package/dist/tools/spec/e2eTestGenerator.js +0 -255
  444. package/dist/tools/spec/e2eTestGenerator.js.map +0 -1
  445. package/dist/tools/spec/specVersioning.d.ts +0 -76
  446. package/dist/tools/spec/specVersioning.d.ts.map +0 -1
  447. package/dist/tools/spec/specVersioning.js +0 -236
  448. package/dist/tools/spec/specVersioning.js.map +0 -1
  449. package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
  450. package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
  451. package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
  452. package/hooks/scripts/evolution-engine.js +0 -91
  453. package/hooks/scripts/hud-status.js +0 -321
  454. package/hooks/scripts/skill-injector.js +0 -83
  455. package/skills/vibe.utils/SKILL.md +0 -415
@@ -0,0 +1,117 @@
1
+ # Race Mode — Full Reference
2
+
3
+ > Loaded by vibe.review SKILL.md when Race Mode (`--race`, Multi-LLM competitive review) is invoked.
4
+
5
+ ### How It Works
6
+
7
+ ```
8
+ /vibe.review --race
9
+
10
+ security-review:
11
+ ├─ GPT Codex → [SQL injection, XSS]
12
+ └─ Antigravity → [SQL injection, CSRF]
13
+
14
+ Cross-validation:
15
+ - SQL injection (2/2) → 🔴 P1 (100% confidence)
16
+ - XSS (1/2) → 🟡 P2 (50% confidence)
17
+ - CSRF (1/2) → 🟡 P2 (50% confidence)
18
+ ```
19
+
20
+ ### Confidence-Based Priority
21
+
22
+ | Confidence | Priority | Meaning |
23
+ |------------|----------|---------|
24
+ | 100% (2/2) | P1 | Both models agree - high confidence |
25
+ | 50% (1/2) | P2 | One model found - needs verification |
26
+
27
+ ### Race Mode Options
28
+
29
+ ```
30
+ /vibe.review --race # All review types
31
+ /vibe.review --race security # Security only
32
+ /vibe.review --race performance # Performance only
33
+ /vibe.review --race architecture # Architecture only
34
+ ```
35
+
36
+ ### Race Mode Output
37
+
38
+ ```
39
+ ## SECURITY Review (Race Mode)
40
+
41
+ **Duration**: 3420ms
42
+ **Models**: GPT Codex, Antigravity
43
+
44
+ ### Model Results
45
+
46
+ | Model | Issues Found | Duration | Status |
47
+ |-------|--------------|----------|--------|
48
+ | gpt | 3 | 1823ms | OK |
49
+ | antigravity | 2 | 2156ms | OK |
50
+
51
+ ### Cross-Validated Issues
52
+
53
+ **Summary**: 3 issues (P1: 1, P2: 2)
54
+ **Consensus Rate**: 67%
55
+
56
+ #### 🔴 P1 - SQL Injection in user query
57
+
58
+ - **Confidence**: 100% (gpt, antigravity)
59
+ - **Severity**: critical
60
+ - **Location**: `src/api/users.ts:42`
61
+ - **Suggestion**: Use parameterized queries
62
+
63
+ #### 🟡 P2 - XSS vulnerability in render
64
+
65
+ - **Confidence**: 50% (gpt)
66
+ - **Severity**: high
67
+ - **Location**: `src/components/Comment.tsx:15`
68
+ ```
69
+
70
+ ### Codex Review (Codex 플러그인 활성화 시)
71
+
72
+ Race Mode에서 GPT+Antigravity와 **동시에** Codex review 실행하여 3중 교차 검증:
73
+
74
+ ```
75
+ /codex:review
76
+ ```
77
+
78
+ 교차 검증 테이블:
79
+
80
+ ```markdown
81
+ | Issue | GPT | Antigravity | Codex | Confidence |
82
+ |-------|-----|--------|-------|------------|
83
+ | {이슈} | ✅/❌ | ✅/❌ | ✅/❌ | {%} |
84
+ ```
85
+
86
+ - 3개 모델 중 2개 이상 동의 → **High Confidence** (P1 자동 수정)
87
+ - Codex만 발견 → **Medium Confidence** (P2 수동 검토)
88
+
89
+ ### When to Use Race Mode
90
+
91
+ | Scenario | Recommended |
92
+ |----------|-------------|
93
+ | Critical security review | ✅ `--race security` |
94
+ | Pre-production audit | ✅ `--race` |
95
+ | Quick iteration | ❌ Standard review |
96
+ | API cost concerns | ❌ Standard review |
97
+
98
+ ### Tool Invocation (Race Mode - GPT + Antigravity in parallel via Bash)
99
+
100
+ **🚨 Use --input file to avoid CLI argument length limits and Windows pipe issues.**
101
+
102
+ 1. Save code to review into `[SCRATCHPAD]/review-code.txt` (using Write tool)
103
+ 2. Write JSON input file `[SCRATCHPAD]/review-input.json` (using Write tool):
104
+ - `{"prompt": "Review this code for [REVIEW_TYPE]. Return JSON: {issues: [{id, title, description, severity, suggestion}]}. Code: [CODE_CONTENT]"}`
105
+ - Where `[CODE_CONTENT]` is the code text (properly JSON-escaped inside the prompt string)
106
+ 3. Script path: `[LLM_SCRIPT]` = `{{VIBE_PATH}}/hooks/scripts/llm-orchestrate.js`
107
+ 4. Run GPT + Antigravity in PARALLEL (two Bash tool calls at once):
108
+
109
+ ```bash
110
+ # GPT review (Bash tool call 1)
111
+ node "[LLM_SCRIPT]" gpt orchestrate-json --input "[SCRATCHPAD]/review-input.json"
112
+ ```
113
+
114
+ ```bash
115
+ # Antigravity review (Bash tool call 2 - run in parallel)
116
+ node "[LLM_SCRIPT]" antigravity orchestrate-json --input "[SCRATCHPAD]/review-input.json"
117
+ ```
@@ -0,0 +1,94 @@
1
+ # Review Worked Examples — Full Reference
2
+
3
+ > Loaded by vibe.review SKILL.md for Tech Stack Detection, Review Debate output, Auto-Fix output, Todo file naming, and Core Tool usage examples.
4
+
5
+ ## Phase 1 Tech Stack Detection — Full Detection List
6
+
7
+ ```
8
+ Read package.json -> TypeScript, React, Node.js
9
+ Read pyproject.toml -> Python, FastAPI, Django
10
+ Read Gemfile -> Ruby, Rails
11
+ Read pubspec.yaml -> Flutter, Dart
12
+ Read go.mod -> Go
13
+ Read CLAUDE.md -> Explicit tech stack declaration
14
+ ```
15
+
16
+ ## Phase 4.5 Review Debate — Example Output
17
+
18
+ **토론 결과 예시:**
19
+
20
+ ```
21
+ 🤝 REVIEW DEBATE RESULTS
22
+
23
+ Consensus (4 parallel reviewers):
24
+
25
+ ✅ Validated P1 (unanimous):
26
+ 1. [SECURITY] SQL Injection — 4/4 agree critical
27
+
28
+ ⬆️ Upgraded P2→P1 (debate result):
29
+ 2. [PERF] Unbounded query — code-reviewer (focus: architecture) pointed out
30
+ cascading failure risk under load → agreed P1
31
+
32
+ ⬇️ Downgraded P1→P2 (debate result):
33
+ 3. [SECURITY] CSRF on read-only endpoint — code-reviewer (focus: complexity)
34
+ noted endpoint has no side effects → agreed P2
35
+
36
+ ❌ Removed (false positive):
37
+ 4. [ARCH] "Circular dependency" — code-reviewer (focus: architecture) confirmed
38
+ this is intentional bi-directional reference, not a cycle
39
+
40
+ 🆕 New findings (cross-review discussion):
41
+ 5. [DATA] Race condition in concurrent updates — emerged from
42
+ security + performance cross-review
43
+ ```
44
+
45
+ ## Phase 5 Auto-Fix — Example Output
46
+
47
+ ```
48
+ 🔧 AUTO-FIX Starting...
49
+
50
+ P1 Critical:
51
+ 1. [SECURITY] SQL Injection → Fixed with parameterized query ✅
52
+ 2. [DATA] Missing transaction rollback → Added try-finally ✅
53
+
54
+ P2 Important:
55
+ 3. [PERF] N+1 query → Added select_related ✅
56
+ 4. [ARCH] Circular dependency → Separated dependencies ✅
57
+ 5. [TEST] Missing edge case → Added test ✅
58
+
59
+ 🔍 Re-validating...
60
+ ✅ Build successful
61
+ ✅ Tests passed
62
+
63
+ ✅ 5 issues auto-fixed!
64
+ ```
65
+
66
+ ## Phase 6 Todo File Creation — Naming Examples
67
+
68
+ ```
69
+ {priority}-{category}-{short-desc}.md
70
+
71
+ Examples:
72
+ - P2-arch-large-refactor.md (Cannot be auto-fixed)
73
+ - P3-style-extract-helper.md (Backlog)
74
+ ```
75
+
76
+ ## Core Tools — Example Tool Usage in Review
77
+
78
+ **1. Validate code quality before review:**
79
+
80
+ ```bash
81
+ node -e "import('{{VIBE_PATH_URL}}/node_modules/@su-record/vibe/dist/tools/index.js').then(t => t.validateCodeQuality({targetPath: 'src/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
82
+ ```
83
+
84
+ **2. Analyze complexity of changed files:**
85
+
86
+ ```bash
87
+ node -e "import('{{VIBE_PATH_URL}}/node_modules/@su-record/vibe/dist/tools/index.js').then(t => t.analyzeComplexity({targetPath: 'src/api/users.ts', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
88
+ ```
89
+
90
+ **3. Save critical finding for reference:**
91
+
92
+ ```bash
93
+ node -e "import('{{VIBE_PATH_URL}}/node_modules/@su-record/vibe/dist/tools/index.js').then(t => t.saveMemory({key: 'review-pr123-critical', value: 'SQL injection in users.py:42', category: 'review', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
94
+ ```
@@ -64,7 +64,7 @@ Convergence Principle: loop until P1 = 0. Changed files only.
64
64
 
65
65
  ## Context Management
66
66
 
67
- At 85%+ context: `save_memory` → `/new` → `/vibe.utils --continue` (raised from 70% — `/new` discards the entire KV prefix cache, so compacting less often preserves cache reuse)
67
+ At 85%+ context: `save_memory` → `/new` → `/vibe.continue` (raised from 70% — `/new` discards the entire KV prefix cache, so compacting less often preserves cache reuse)
68
68
 
69
69
  ## Git Commit Rules
70
70
 
@@ -1,56 +0,0 @@
1
- # Acceptance Tester Agent
2
-
3
- Acceptance gate for a feature: verifies that acceptance criteria are testable,
4
- routes changed code to the right reviews, and synthesizes one QA verdict.
5
-
6
- ## Role
7
-
8
- - Verify SPEC acceptance criteria are measurable and Feature scenarios complete
9
- - Route changed files to the right QA focus and dispatch reviews in parallel
10
- - Synthesize findings into a single prioritized QA report
11
-
12
- ## Model
13
-
14
- **Sonnet** — routing judgement plus criteria analysis
15
-
16
- ## Goal
17
-
18
- Answer "is this feature acceptably done, and how would we know?". Two halves:
19
-
20
- **Criteria testability** — read `.vibe/specs/{feature}.md` (`<acceptance>`
21
- section) and `.vibe/features/{feature}.feature`. Every acceptance criterion
22
- needs a concrete pass/fail condition (numeric thresholds, not "fast" or
23
- "user-friendly"), at least one Given/When/Then scenario, and an automatable
24
- check. Error paths and boundary conditions must be covered, not just the
25
- happy path. Report untestable criteria with a concrete measurable rewrite.
26
-
27
- **QA routing** — check readiness first: if the build fails, stop and report
28
- build errors only. Then classify `git diff --name-only` output and dispatch
29
- the matching reviews in parallel (max 5), each with its explicit file list:
30
-
31
- | Change signal | Dispatch |
32
- |---|---|
33
- | API/services/controllers | code-reviewer (correctness, performance), security-reviewer |
34
- | UI components/pages | design-reviewer, code-reviewer (correctness) |
35
- | Models/migrations/schema | code-reviewer (data-integrity) |
36
- | Auth/session/middleware | security-reviewer, e2e-tester |
37
- | Multi-step flows (checkout, forms) | e2e-tester, tester (edge cases) |
38
- | Config/CI/infra | security-reviewer, code-reviewer (architecture) |
39
-
40
- Merge results by priority (P1/P2/P3), de-duplicate, and elevate confidence on
41
- findings flagged by two or more reviewers. State which QA modalities were
42
- *not* run and why — coverage gaps are part of the verdict.
43
-
44
- ## Constraints
45
-
46
- Report-only: never modify source code, write tests, or create files — output
47
- is the QA report text; fixes belong to the implementer. If a dispatched
48
- review fails, retry once, then record it as a coverage gap rather than
49
- blocking. Judge completion by evidence (test exit codes, reviewer findings),
50
- never by the implementer's self-report.
51
-
52
- ## Done
53
-
54
- - Every acceptance criterion classified: testable / needs rewrite (with proposed measurable version) / not automatable
55
- - Build status verified before any review dispatch
56
- - Unified report: P1/P2/P3 findings with locations, cross-validated findings marked, coverage gaps listed
@@ -1,43 +0,0 @@
1
- # Documenter Agent
2
-
3
- Documentation generator for the two artifacts that go stale fastest: API docs
4
- and changelogs.
5
-
6
- ## Role
7
-
8
- - Extract API endpoints/interfaces from source and document them with schemas and examples
9
- - Generate changelog entries from git diff with semantic version bump suggestion
10
- - Flag undocumented endpoints and missing migration guides
11
-
12
- ## Model
13
-
14
- **Haiku** — fast extraction and drafting
15
-
16
- ## Goal
17
-
18
- **API mode** — walk the route handlers/controllers in the given scope and
19
- document each endpoint: method + path, auth requirement, parameters (path/
20
- query/body with types, required vs optional, enum values), success and error
21
- responses (all status codes actually returned), and a runnable example (curl
22
- or fetch). List endpoints that exist in code but lack documentation — the gap
23
- list is as valuable as the docs.
24
-
25
- **Changelog mode** — from `git diff` and `git log`, classify changes as
26
- breaking / added / changed / fixed / performance / internal / dependencies.
27
- Recommend the semantic version bump with a one-line reason. Every breaking
28
- change gets migration steps; every fix states old vs new behavior.
29
-
30
- ## Constraints
31
-
32
- Return documentation as text output only — never create or write files; the
33
- calling command decides where content lands. Descriptions are user-facing:
34
- what changed for the consumer, not which internal function was refactored
35
- (pure refactors go under Internal, briefly). Document what the code actually
36
- does, not what comments claim — when they disagree, flag the discrepancy
37
- rather than picking one silently.
38
-
39
- ## Done
40
-
41
- - API mode: every endpoint in scope documented or explicitly listed as an undocumented gap
42
- - Changelog mode: all changes classified, version bump recommended with reason, breaking changes have migration steps
43
- - Output is paste-ready text; zero files created
@@ -1,76 +0,0 @@
1
- # Figma Engineer Agent
2
-
3
- End-to-end Figma → production code specialist: extract, refine, design, build,
4
- and pixel-verify — one agent owning the whole pipeline per breakpoint.
5
-
6
- ## Role
7
-
8
- - Collect and refine Figma design data (tree.json → sections.json) per breakpoint
9
- - Design the component tree and build HTML + script-generated SCSS
10
- - Verify with compile gates and pixel-level visual comparison until P1 = 0
11
-
12
- ## Model
13
-
14
- **Sonnet** — structured pipeline work with strict invariants
15
-
16
- ## Goal
17
-
18
- Turn a Figma file/node into components that match the design pixel-for-pixel.
19
- Work per breakpoint under `/tmp/{feature}/{bp}-main/`, section by section
20
- (sequential, never parallel), and treat visual verification as part of the
21
- work — code that compiles but hasn't been compared against the Figma
22
- screenshots is unfinished.
23
-
24
- ## Pipeline Knowledge
25
-
26
- **Refine (tree.json → sections.json)** — run `figma-refine.js`. The result
27
- must contain the full recursive subtree (leaf nodes included) so code can be
28
- generated without ever re-reading tree.json. Refinement rules: drop 0px nodes,
29
- VECTOR decoration lines (w/h ≤ 2px), and `isMask` nodes; move BG frames out of
30
- children into `images.bg`; move vector-lettering GROUPs and designed TEXT
31
- (multi-fill/gradient/effects) into `images.content`; everything else stays in
32
- children with its CSS.
33
-
34
- **Image classification (blocking — settle before any code)**: TEXT child →
35
- HTML (exception: designed text stays an image); repeated INSTANCE → HTML
36
- `v-for`; interactive → HTML button/a; dynamic data → HTML text; all four no →
37
- image is allowed.
38
-
39
- **Component design (sections.json → component-spec.json)** — 1-depth children
40
- become section components; an INSTANCE repeated 2+ times is a shared-component
41
- candidate, used in 3+ places makes it shared. Semantic tags: top level
42
- `section`, headings `h1–h6` in order, copy `p`, clickable `button`/`a`, lists
43
- `ul/ol > li`. The spec fixes tags/structure/roles/props — build follows it, no
44
- ad-hoc restructuring.
45
-
46
- **Build (per section)** — run `figma-to-scss.js` for the SCSS skeleton, write
47
- the HTML template from the spec, add interactions (@click, v-for, state), then
48
- run `figma-validate.js` and fix mismatches until it passes before moving to
49
- the next section.
50
-
51
- **Verify** — capture a tsc/build error baseline before building (only new
52
- errors are yours). Gate 1: typecheck + build + dev server up. Gate 2 (visual,
53
- mandatory): rendered screenshots vs Figma `sections/` screenshots — pixelmatch
54
- diffRatio > 0.1 → P1; computed CSS vs sections.json — delta > 4px → P1,
55
- ≤ 4px → P2; check for missing images/text. Fix and re-verify until P1 = 0;
56
- no iteration cap.
57
-
58
- ## Constraints
59
-
60
- SCSS is never hand-written: only `figma-to-scss.js` output, imported as-is —
61
- no edits to its values, no custom functions/mixins, no CSS in Vue/React
62
- `<style>` blocks beyond `@import`, no project tokens (the script emits its
63
- own). Use only the installed `~/.vibe/hooks/scripts/figma-*.js` scripts; never
64
- write substitute refine/generate scripts in `/tmp` — if a script's output is wrong,
65
- report that the script needs fixing. CSS values stay Figma-original px (no
66
- vw/clamp/@media — this is static implementation). Image files are kebab-case
67
- (`hero-bg.webp`, never hash names); BG renders via CSS `background-image`,
68
- never `<img>`. Before building, confirm sections.json exists (run
69
- figma-refine.js if not) and that every SCSS file traces to a figma-to-scss.js
70
- invocation.
71
-
72
- ## Done
73
-
74
- - Every section built per component-spec.json and passing figma-validate.js
75
- - Typecheck + build green (against the pre-existing baseline)
76
- - Visual verification executed with P1 = 0 (diffRatio ≤ 0.1, CSS deltas ≤ 4px); remaining P2s listed
@@ -1,25 +0,0 @@
1
- /**
2
- * Gemini CLI 명령어
3
- *
4
- * - vibe gemini key: API Key 설정
5
- * - vibe gemini status: 상태 확인
6
- * - vibe gemini logout: 설정 제거
7
- */
8
- /**
9
- * Gemini 인증 핵심 로직 (process.exit 없음)
10
- * API Key 확인
11
- */
12
- export declare function geminiAuthCore(): boolean;
13
- /**
14
- * Gemini 인증 (CLI 명령어용)
15
- */
16
- export declare function geminiAuth(): Promise<void>;
17
- /**
18
- * Gemini 상태 확인
19
- */
20
- export declare function geminiStatus(): void;
21
- /**
22
- * Gemini 로그아웃
23
- */
24
- export declare function geminiLogout(): void;
25
- //# sourceMappingURL=gemini-commands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gemini-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/llm/gemini-commands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAYxC;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBhD;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAiCnC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CA6BnC"}
@@ -1,143 +0,0 @@
1
- /**
2
- * Gemini CLI 명령어
3
- *
4
- * - vibe gemini key: API Key 설정
5
- * - vibe gemini status: 상태 확인
6
- * - vibe gemini logout: 설정 제거
7
- */
8
- import fs from 'fs';
9
- import { getProjectConfigPath, getProjectConfigPaths, readGlobalConfig, writeGlobalConfig, } from '../../infra/lib/config/GlobalConfigManager.js';
10
- /**
11
- * Gemini 인증 핵심 로직 (process.exit 없음)
12
- * API Key 확인
13
- */
14
- export function geminiAuthCore() {
15
- const config = readGlobalConfig();
16
- const apiKey = config.credentials?.gemini?.apiKey || process.env.GEMINI_API_KEY;
17
- if (apiKey) {
18
- updateConfigOnAuth('apikey');
19
- console.log('Gemini API Key configured.');
20
- return true;
21
- }
22
- console.log('No API key found. Run "vibe gemini key <key>" to set up.');
23
- return false;
24
- }
25
- /**
26
- * Gemini 인증 (CLI 명령어용)
27
- */
28
- export async function geminiAuth() {
29
- console.log(`
30
- Gemini Authentication
31
-
32
- API Key (Google AI Studio):
33
- vibe gemini key <your-api-key>
34
-
35
- Get your API key from:
36
- https://aistudio.google.com/apikey
37
- `);
38
- const config = readGlobalConfig();
39
- const apiKey = config.credentials?.gemini?.apiKey;
40
- if (apiKey) {
41
- console.log('API Key: configured');
42
- console.log('\nStatus: vibe gemini status');
43
- console.log('Logout: vibe gemini logout');
44
- process.exit(0);
45
- }
46
- console.log('No API key configured.');
47
- console.log('Run: vibe gemini key <your-api-key>');
48
- process.exit(1);
49
- }
50
- /**
51
- * Gemini 상태 확인
52
- */
53
- export function geminiStatus() {
54
- try {
55
- const config = readGlobalConfig();
56
- const geminiCreds = config.credentials?.gemini;
57
- const hasApiKey = Boolean(geminiCreds?.apiKey) || Boolean(process.env.GEMINI_API_KEY);
58
- if (hasApiKey) {
59
- const modelOverrides = config.models;
60
- const lines = [
61
- '\nGemini Status\n',
62
- 'Auth: API Key',
63
- `Source: ${geminiCreds?.apiKey ? '~/.vibe/config.json' : 'GEMINI_API_KEY env'}`,
64
- ];
65
- lines.push('\nModels:');
66
- lines.push(` gemini=${modelOverrides?.gemini || process.env.GEMINI_MODEL || '(default)'}`);
67
- lines.push(` geminiFlash=${modelOverrides?.geminiFlash || process.env.GEMINI_FLASH_MODEL || '(default)'}\n`);
68
- console.log(lines.join('\n'));
69
- return;
70
- }
71
- console.log(`
72
- Gemini Status
73
-
74
- No credentials found.
75
-
76
- Set up:
77
- vibe gemini key <your-api-key>
78
- or set GEMINI_API_KEY env var
79
- `);
80
- }
81
- catch (error) {
82
- const message = error instanceof Error ? error.message : String(error);
83
- console.error('Status check failed:', message);
84
- }
85
- }
86
- /**
87
- * Gemini 로그아웃
88
- */
89
- export function geminiLogout() {
90
- try {
91
- const config = readGlobalConfig();
92
- if (config.credentials?.gemini) {
93
- delete config.credentials.gemini;
94
- writeGlobalConfig(config);
95
- console.log('Gemini credentials removed from ~/.vibe/config.json');
96
- }
97
- const projectRoot = process.cwd();
98
- const configPath = findExistingProjectConfig(projectRoot);
99
- if (fs.existsSync(configPath)) {
100
- try {
101
- const projConfig = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
102
- if (projConfig.models?.gemini) {
103
- projConfig.models.gemini.enabled = false;
104
- projConfig.models.gemini.authType = undefined;
105
- projConfig.models.gemini.email = undefined;
106
- fs.writeFileSync(configPath, JSON.stringify(projConfig, null, 2));
107
- }
108
- }
109
- catch { /* ignore */ }
110
- }
111
- console.log('Gemini credentials cleared.');
112
- }
113
- catch (error) {
114
- const message = error instanceof Error ? error.message : String(error);
115
- console.error('Logout failed:', message);
116
- }
117
- }
118
- /**
119
- * config.json에 Gemini 활성화 기록
120
- */
121
- function updateConfigOnAuth(method) {
122
- const configPath = findExistingProjectConfig(process.cwd());
123
- if (!fs.existsSync(configPath))
124
- return;
125
- try {
126
- const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
127
- if (!config.models)
128
- config.models = {};
129
- config.models.gemini = {
130
- enabled: true,
131
- authType: method,
132
- role: 'exploration',
133
- description: 'Gemini (API Key)',
134
- };
135
- fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
136
- }
137
- catch { /* ignore */ }
138
- }
139
- function findExistingProjectConfig(projectRoot) {
140
- return getProjectConfigPaths(projectRoot).find(p => fs.existsSync(p))
141
- || getProjectConfigPath(projectRoot);
142
- }
143
- //# sourceMappingURL=gemini-commands.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gemini-commands.js","sourceRoot":"","sources":["../../../src/cli/llm/gemini-commands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAErB,gBAAgB,E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SAAS,kBAAkB,CAAC,MAAc;IACxC,MAAM,UAAU,GAAG,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,OAAO;IAEvC,IAAI,CAAC;QACH,MAAM,MAAM,GAAe,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;QAC5E,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC;QACvC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG;YACrB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,kBAAkB;SAChC,CAAC;QACF,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,yBAAyB,CAAC,WAAmB;IACpD,OAAO,qBAAqB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;WAChE,oBAAoB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Codex 플러그인 설치
3
- *
4
- * Codex v0.117.0+ 플러그인 시스템 대응.
5
- * agents + skills → ~/.codex/plugins/vibe/ 플러그인 번들로 패키징.
6
- *
7
- * 생성 구조:
8
- * ~/.codex/plugins/vibe/
9
- * ├── .codex-plugin/plugin.json
10
- * ├── skills/
11
- * ├── agents/
12
- * └── AGENTS.md
13
- */
14
- /**
15
- * Codex 플러그인 설치 (agents + skills + manifest + AGENTS.md)
16
- *
17
- * @param agentsSource - agents/ 소스 디렉토리
18
- * @param skillsSource - skills/ 소스 디렉토리
19
- * @param codexConfigDir - ~/.codex/ 디렉토리
20
- * @param packageRoot - 패키지 루트 디렉토리
21
- */
22
- export declare function installCodexPlugin(agentsSource: string, skillsSource: string, codexConfigDir: string, packageRoot: string): void;
23
- export declare const installCodexAgents: typeof installCodexPlugin;
24
- //# sourceMappingURL=codex-agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codex-agents.d.ts","sourceRoot":"","sources":["../../../src/cli/postinstall/codex-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAgFH;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,GAClB,IAAI,CA+BN;AAGD,eAAO,MAAM,kBAAkB,2BAAqB,CAAC"}