@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
@@ -1,385 +0,0 @@
1
- /**
2
- * PhasePipeline - Phase 간 대기 시간 제거를 위한 파이프라인 시스템
3
- *
4
- * 핵심 기능:
5
- * 1. 현재 Phase 실행 중 다음 Phase 준비 (background)
6
- * 2. Phase 완료 시 즉시 다음 Phase 시작 (no wait)
7
- * 3. Phase 실패 시 파이프라인 중단
8
- */
9
- import { startIteration, startPhase, completePhase, failPhase, completeIteration, formatPhaseStart, formatPhaseComplete, formatIterationComplete } from '../lib/IterationTracker.js';
10
- import { PipelineTimeoutError } from './BackgroundManager.js';
11
- import { CONCURRENCY } from '../lib/constants.js';
12
- import { warnLog } from '../lib/utils.js';
13
- import { initProgress, updatePhase as updateProgressPhase, writeProgressText, } from '../lib/IterationTracker.js';
14
- import { PhaseResultStore } from './PhaseResultStore.js';
15
- import { CheckpointManager } from './CheckpointManager.js';
16
- // ============================================
17
- // PhasePipeline Class
18
- // ============================================
19
- export class PhasePipeline {
20
- featureName;
21
- stages = [];
22
- options;
23
- abortController;
24
- backgroundPreparations = new Map();
25
- resultStore = null;
26
- checkpointManager = null;
27
- constructor(featureName, options = {}) {
28
- this.featureName = featureName;
29
- this.options = {
30
- ultrawork: options.ultrawork ?? false,
31
- maxRetries: options.maxRetries ?? 3,
32
- timeout: options.timeout ?? CONCURRENCY.PIPELINE_TIMEOUT,
33
- projectRoot: options.projectRoot ?? '',
34
- onPhaseComplete: options.onPhaseComplete ?? (() => { }),
35
- onPhaseStart: options.onPhaseStart ?? (() => { }),
36
- onError: options.onError ?? (() => { }),
37
- resultStore: options.resultStore ?? false,
38
- checkpoints: options.checkpoints ?? [],
39
- resumeFrom: options.resumeFrom ?? 0,
40
- onCheckpointPause: options.onCheckpointPause ?? (() => { }),
41
- };
42
- this.abortController = new AbortController();
43
- // Initialize result store if enabled
44
- if (this.options.resultStore && this.options.projectRoot) {
45
- this.resultStore = new PhaseResultStore(this.options.projectRoot, featureName);
46
- }
47
- // Initialize checkpoint manager if gates provided
48
- if (this.options.checkpoints.length > 0) {
49
- this.checkpointManager = new CheckpointManager(this.options.checkpoints, {
50
- ultrawork: this.options.ultrawork,
51
- storeDir: this.resultStore?.getStoreDir(),
52
- });
53
- }
54
- }
55
- /** 스테이지 추가 */
56
- addStage(stage) {
57
- this.stages.push(stage);
58
- return this;
59
- }
60
- /** 여러 스테이지 추가 */
61
- addStages(stages) {
62
- this.stages.push(...stages);
63
- return this;
64
- }
65
- /** 파이프라인 실행 */
66
- async execute() {
67
- const startTime = Date.now();
68
- const results = [];
69
- let lastContext = null;
70
- // Determine start phase (for resume support)
71
- const resumeFrom = this.options.resumeFrom || 0;
72
- let startIndex = 0;
73
- // Load previous results when resuming
74
- if (resumeFrom > 0 && this.resultStore) {
75
- const savedResults = this.resultStore.loadAll();
76
- for (const saved of savedResults) {
77
- if (saved.phaseNumber < resumeFrom) {
78
- results.push(saved.result);
79
- }
80
- }
81
- startIndex = resumeFrom - 1; // 0-based index
82
- warnLog(`[Pipeline] Resuming from phase ${resumeFrom} (${results.length} previous results loaded)`);
83
- }
84
- // 타임아웃 설정
85
- const timeoutId = setTimeout(() => {
86
- this.abortController.abort();
87
- }, this.options.timeout);
88
- try {
89
- // Iteration 시작
90
- const phaseNames = this.stages.map(s => s.name);
91
- const iteration = startIteration(this.featureName, phaseNames, this.options.ultrawork, this.options.maxRetries);
92
- // Progress 파일 초기화 (projectRoot가 설정된 경우)
93
- if (this.options.projectRoot) {
94
- try {
95
- initProgress(this.options.projectRoot, this.featureName, '', phaseNames);
96
- writeProgressText(this.options.projectRoot);
97
- }
98
- catch { /* progress 파일 실패는 무시 */ }
99
- }
100
- // ULTRAWORK 모드: 다음 phase 1개만 미리 준비한다 (B-6).
101
- // 이전에는 시작 시 미래 phase 전부를 speculative 실행해, 앞 phase 가 성공하기도
102
- // 전에 token 을 소비하고 실패/취소 시에도 정리되지 않았다. 이제는 각 phase 실행 직전
103
- // 다음 phase 만 준비하고, abortController.signal 로 취소 가능하다.
104
- // Phase 순차 실행 (startIndex부터)
105
- for (let i = startIndex; i < this.stages.length; i++) {
106
- if (this.abortController.signal.aborted) {
107
- throw new PipelineTimeoutError(this.options.timeout);
108
- }
109
- const stage = this.stages[i];
110
- const phaseNumber = i + 1;
111
- // Phase 시작
112
- const phaseProgress = startPhase(phaseNumber);
113
- if (!phaseProgress) {
114
- throw new Error(`Failed to start phase ${phaseNumber}`);
115
- }
116
- this.options.onPhaseStart(phaseProgress);
117
- console.log(formatPhaseStart(phaseNumber, stage.name, this.stages.length));
118
- // Progress 파일 업데이트
119
- if (this.options.projectRoot) {
120
- try {
121
- updateProgressPhase(this.options.projectRoot, phaseNumber, 'in_progress');
122
- writeProgressText(this.options.projectRoot);
123
- }
124
- catch { /* 무시 */ }
125
- }
126
- // 컨텍스트 생성
127
- let context = {
128
- phaseNumber,
129
- phaseName: stage.name,
130
- data: {},
131
- previousResult: results.length > 0 ? results[results.length - 1] : undefined,
132
- allPreviousResults: results.length > 0 ? [...results] : undefined,
133
- signal: this.abortController.signal,
134
- };
135
- // ULTRAWORK: 현재 phase 가 실행되는 동안 "다음 phase 하나"를 미리 준비한다.
136
- // (한 단계만 앞서가므로 speculative token 소비를 최소화)
137
- if (this.options.ultrawork) {
138
- this.startBackgroundPreparation(phaseNumber + 1);
139
- }
140
- // 백그라운드 준비 결과 병합
141
- if (this.options.ultrawork && this.backgroundPreparations.has(phaseNumber)) {
142
- try {
143
- const preparedContext = await this.backgroundPreparations.get(phaseNumber);
144
- if (preparedContext) {
145
- context.preparedData = preparedContext.data;
146
- }
147
- }
148
- catch {
149
- // 백그라운드 준비 실패는 무시 (메인 실행에서 처리)
150
- }
151
- }
152
- // 동기 준비 (백그라운드 준비가 없거나 실패한 경우)
153
- if (!context.preparedData && stage.prepare) {
154
- const preparedContext = await stage.prepare(this.abortController.signal);
155
- context.preparedData = preparedContext.data;
156
- }
157
- // 메인 실행 (재시도 포함)
158
- let result = null;
159
- let lastError = null;
160
- for (let retry = 0; retry <= this.options.maxRetries; retry++) {
161
- try {
162
- result = await stage.execute(context);
163
- if (result.success)
164
- break;
165
- lastError = new Error(result.error || 'Stage execution failed');
166
- }
167
- catch (error) {
168
- lastError = error instanceof Error ? error : new Error(String(error));
169
- const failResult = failPhase(phaseNumber, lastError.message);
170
- if (!failResult?.canRetry)
171
- break;
172
- warnLog(`[Pipeline] Phase ${phaseNumber} retry ${retry + 1}/${this.options.maxRetries}`);
173
- }
174
- }
175
- if (!result || !result.success) {
176
- const error = lastError || new Error('Unknown error');
177
- this.options.onError(phaseProgress, error);
178
- // Progress 파일 업데이트 (blocked)
179
- if (this.options.projectRoot) {
180
- try {
181
- updateProgressPhase(this.options.projectRoot, phaseNumber, 'blocked', [error.message]);
182
- writeProgressText(this.options.projectRoot);
183
- }
184
- catch { /* 무시 */ }
185
- }
186
- // 정리 실행
187
- if (stage.cleanup) {
188
- await stage.cleanup(context).catch(() => { });
189
- }
190
- // 파이프라인 중단 — 진행 중인 다음 phase 준비(speculative)를 취소한다 (B-6)
191
- this.abortController.abort();
192
- completeIteration();
193
- clearTimeout(timeoutId);
194
- return {
195
- success: false,
196
- featureName: this.featureName,
197
- totalPhases: this.stages.length,
198
- completedPhases: i,
199
- failedPhase: phaseNumber,
200
- totalDuration: Date.now() - startTime,
201
- results,
202
- error: error.message,
203
- };
204
- }
205
- // Phase 완료
206
- results.push(result);
207
- completePhase(phaseNumber);
208
- this.options.onPhaseComplete(phaseProgress, result);
209
- console.log(formatPhaseComplete(phaseNumber, this.stages.length));
210
- // Save result to disk (if result store enabled)
211
- if (this.resultStore) {
212
- try {
213
- this.resultStore.save(phaseNumber, stage.name, result);
214
- }
215
- catch {
216
- warnLog(`[Pipeline] Failed to save phase ${phaseNumber} result to disk`);
217
- }
218
- }
219
- // Checkpoint gate check
220
- if (this.checkpointManager && this.checkpointManager.shouldPause(phaseNumber, result)) {
221
- const gate = this.checkpointManager.getGate(phaseNumber);
222
- if (gate) {
223
- this.options.onCheckpointPause(phaseNumber, gate);
224
- }
225
- // Progress 파일 업데이트
226
- if (this.options.projectRoot) {
227
- try {
228
- updateProgressPhase(this.options.projectRoot, phaseNumber, 'completed');
229
- writeProgressText(this.options.projectRoot);
230
- }
231
- catch { /* 무시 */ }
232
- }
233
- completeIteration();
234
- clearTimeout(timeoutId);
235
- return {
236
- success: false,
237
- featureName: this.featureName,
238
- totalPhases: this.stages.length,
239
- completedPhases: i + 1,
240
- totalDuration: Date.now() - startTime,
241
- results,
242
- pausedAtCheckpoint: phaseNumber,
243
- };
244
- }
245
- // Progress 파일 업데이트 (completed)
246
- if (this.options.projectRoot) {
247
- try {
248
- updateProgressPhase(this.options.projectRoot, phaseNumber, 'completed');
249
- writeProgressText(this.options.projectRoot);
250
- }
251
- catch { /* 무시 */ }
252
- }
253
- // 정리 실행
254
- if (stage.cleanup) {
255
- await stage.cleanup(context).catch(() => { });
256
- }
257
- lastContext = context;
258
- // 다음 Phase 백그라운드 준비 시작 (아직 안 했으면)
259
- if (this.options.ultrawork && i + 2 <= this.stages.length) {
260
- this.startBackgroundPreparation(i + 2);
261
- }
262
- }
263
- // 완료
264
- const finalState = completeIteration();
265
- if (finalState) {
266
- console.log(formatIterationComplete(finalState));
267
- }
268
- clearTimeout(timeoutId);
269
- return {
270
- success: true,
271
- featureName: this.featureName,
272
- totalPhases: this.stages.length,
273
- completedPhases: this.stages.length,
274
- totalDuration: Date.now() - startTime,
275
- results,
276
- };
277
- }
278
- catch (error) {
279
- clearTimeout(timeoutId);
280
- completeIteration();
281
- const errorMessage = error instanceof Error ? error.message : String(error);
282
- return {
283
- success: false,
284
- featureName: this.featureName,
285
- totalPhases: this.stages.length,
286
- completedPhases: results.length,
287
- totalDuration: Date.now() - startTime,
288
- results,
289
- error: errorMessage,
290
- };
291
- }
292
- }
293
- /** 파이프라인 취소 */
294
- cancel() {
295
- this.abortController.abort();
296
- }
297
- /** 특정 Phase 백그라운드 준비 시작 (다음 phase 1개만 — B-6) */
298
- startBackgroundPreparation(phaseNumber) {
299
- if (this.abortController.signal.aborted)
300
- return;
301
- if (this.backgroundPreparations.has(phaseNumber))
302
- return;
303
- const stageIndex = phaseNumber - 1;
304
- if (stageIndex >= this.stages.length)
305
- return;
306
- const stage = this.stages[stageIndex];
307
- if (!stage.prepare)
308
- return;
309
- const signal = this.abortController.signal;
310
- const preparation = (async () => {
311
- const context = {
312
- phaseNumber,
313
- phaseName: stage.name,
314
- data: {},
315
- signal,
316
- };
317
- try {
318
- const prepared = await stage.prepare(signal);
319
- context.data = prepared.data;
320
- context.preparedData = prepared.data;
321
- }
322
- catch (error) {
323
- warnLog(`[Pipeline] Background preparation for phase ${phaseNumber} failed: ${error}`);
324
- }
325
- return context;
326
- })();
327
- this.backgroundPreparations.set(phaseNumber, preparation);
328
- }
329
- }
330
- // ============================================
331
- // Helper Functions
332
- // ============================================
333
- /**
334
- * 간단한 스테이지 생성 헬퍼
335
- */
336
- export function createStage(name, execute, options) {
337
- return {
338
- name,
339
- execute,
340
- prepare: options?.prepare,
341
- cleanup: options?.cleanup,
342
- };
343
- }
344
- /**
345
- * 파이프라인 생성 헬퍼
346
- */
347
- export function createPipeline(featureName, stages, options) {
348
- const pipeline = new PhasePipeline(featureName, options);
349
- pipeline.addStages(stages);
350
- return pipeline;
351
- }
352
- /**
353
- * ULTRAWORK 파이프라인 생성 (권장)
354
- */
355
- export function createUltraworkPipeline(featureName, stages, options) {
356
- return createPipeline(featureName, stages, { ...options, ultrawork: true });
357
- }
358
- // ============================================
359
- // ToolResult Integration
360
- // ============================================
361
- /**
362
- * 파이프라인 결과를 ToolResult로 변환
363
- */
364
- export function pipelineResultToToolResult(result) {
365
- let text = `## Pipeline: ${result.featureName}\n\n`;
366
- text += `Status: ${result.success ? '✅ Success' : '❌ Failed'}\n`;
367
- text += `Phases: ${result.completedPhases}/${result.totalPhases}\n`;
368
- text += `Duration: ${(result.totalDuration / 1000).toFixed(1)}s\n\n`;
369
- if (result.error) {
370
- text += `Error: ${result.error}\n`;
371
- if (result.failedPhase) {
372
- text += `Failed at: Phase ${result.failedPhase}\n`;
373
- }
374
- }
375
- text += `\n### Phase Results\n`;
376
- result.results.forEach((r, i) => {
377
- const icon = r.success ? '✅' : '❌';
378
- text += `${icon} Phase ${i + 1}: ${(r.duration / 1000).toFixed(1)}s\n`;
379
- });
380
- return {
381
- content: [{ type: 'text', text }],
382
- pipelineResult: result,
383
- };
384
- }
385
- //# sourceMappingURL=PhasePipeline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PhasePipeline.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/PhasePipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EAGxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAA+B,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC3F,O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AAC;IACpD,IAAI,IAAI,WAAW,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC;IACjE,IAAI,IAAI,WAAW,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,WAAW,IAAI,CAAC;IACpE,IAAI,IAAI,aAAa,CAAC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAErE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,IAAI,IAAI,UAAU,MAAM,CAAC,KAAK,IAAI,CAAC;QACnC,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,IAAI,oBAAoB,MAAM,CAAC,WAAW,IAAI,CAAC;QACrD,CAAC;IACH,CAAC;IAED,IAAI,IAAI,uBAAuB,CAAC;IAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC9B,MAAM,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACnC,IAAI,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACjC,cAAc,EAAE,MAAM;KACvB,CAAC;AACJ,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * PhaseResultStore - File-based Phase result persistence
3
- *
4
- * Saves Phase execution results to disk so pipelines can:
5
- * - Resume from last completed phase after failure
6
- * - Share results across sessions
7
- * - Provide audit trail of Phase execution
8
- *
9
- * Storage: .claude/vibe/phase-results/{feature-name}/phase-{N}.json
10
- */
11
- import type { StageResult } from './PhasePipeline.js';
12
- export interface PhaseResultFile {
13
- featureName: string;
14
- phaseNumber: number;
15
- phaseName: string;
16
- result: StageResult;
17
- timestamp: number;
18
- checksum: string;
19
- }
20
- export declare class PhaseResultStore {
21
- private readonly projectRoot;
22
- private readonly featureName;
23
- private readonly storeDir;
24
- constructor(projectRoot: string, featureName: string);
25
- /** Save Phase result to disk */
26
- save(phaseNumber: number, phaseName: string, result: StageResult): void;
27
- /** Load a single Phase result */
28
- load(phaseNumber: number): PhaseResultFile | null;
29
- /** Load all saved Phase results, sorted by phaseNumber */
30
- loadAll(): PhaseResultFile[];
31
- /** Get the last completed phase number (0 if none) */
32
- getLastCompletedPhase(): number;
33
- /** Clear all stored results for this feature */
34
- clear(): void;
35
- /** Get store directory path */
36
- getStoreDir(): string;
37
- private getFilePath;
38
- }
39
- //# sourceMappingURL=PhaseResultStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PhaseResultStore.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/PhaseResultStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,qBAAa,gBAAgB;IAIzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAJ9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAGf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM;IAWtC,gCAAgC;IAChC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI;IAmBvE,iCAAiC;IACjC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;IAwBjD,0DAA0D;IAC1D,OAAO,IAAI,eAAe,EAAE;IAyB5B,sDAAsD;IACtD,qBAAqB,IAAI,MAAM;IAc/B,gDAAgD;IAChD,KAAK,IAAI,IAAI;IAcb,+BAA+B;IAC/B,WAAW,IAAI,MAAM;IAIrB,OAAO,CAAC,WAAW;CAGpB"}
@@ -1,151 +0,0 @@
1
- /**
2
- * PhaseResultStore - File-based Phase result persistence
3
- *
4
- * Saves Phase execution results to disk so pipelines can:
5
- * - Resume from last completed phase after failure
6
- * - Share results across sessions
7
- * - Provide audit trail of Phase execution
8
- *
9
- * Storage: .claude/vibe/phase-results/{feature-name}/phase-{N}.json
10
- */
11
- import fs from 'fs';
12
- import path from 'path';
13
- import crypto from 'crypto';
14
- // ============================================
15
- // PhaseResultStore
16
- // ============================================
17
- export class PhaseResultStore {
18
- projectRoot;
19
- featureName;
20
- storeDir;
21
- constructor(projectRoot, featureName) {
22
- this.projectRoot = projectRoot;
23
- this.featureName = featureName;
24
- this.storeDir = path.join(projectRoot, '.claude', 'vibe', 'phase-results', sanitizeFeatureName(featureName));
25
- }
26
- /** Save Phase result to disk */
27
- save(phaseNumber, phaseName, result) {
28
- ensureDir(this.storeDir);
29
- const data = {
30
- featureName: this.featureName,
31
- phaseNumber,
32
- phaseName,
33
- result,
34
- timestamp: Date.now(),
35
- checksum: '',
36
- };
37
- // Compute checksum over content (excluding checksum field itself)
38
- data.checksum = computeChecksum(data);
39
- const filePath = this.getFilePath(phaseNumber);
40
- fs.writeFileSync(filePath, JSON.stringify(data, null, 2), 'utf-8');
41
- }
42
- /** Load a single Phase result */
43
- load(phaseNumber) {
44
- const filePath = this.getFilePath(phaseNumber);
45
- if (!fs.existsSync(filePath))
46
- return null;
47
- try {
48
- const raw = fs.readFileSync(filePath, 'utf-8');
49
- const data = JSON.parse(raw);
50
- // Verify checksum
51
- const storedChecksum = data.checksum;
52
- data.checksum = '';
53
- const computed = computeChecksum(data);
54
- data.checksum = storedChecksum;
55
- if (storedChecksum !== computed) {
56
- return null; // Corrupted file
57
- }
58
- return data;
59
- }
60
- catch {
61
- return null;
62
- }
63
- }
64
- /** Load all saved Phase results, sorted by phaseNumber */
65
- loadAll() {
66
- if (!fs.existsSync(this.storeDir))
67
- return [];
68
- const results = [];
69
- try {
70
- const files = fs.readdirSync(this.storeDir)
71
- .filter(f => f.startsWith('phase-') && f.endsWith('.json'));
72
- for (const file of files) {
73
- const filePath = path.join(this.storeDir, file);
74
- try {
75
- const raw = fs.readFileSync(filePath, 'utf-8');
76
- const data = JSON.parse(raw);
77
- results.push(data);
78
- }
79
- catch {
80
- // Skip corrupted files
81
- }
82
- }
83
- }
84
- catch {
85
- return [];
86
- }
87
- return results.sort((a, b) => a.phaseNumber - b.phaseNumber);
88
- }
89
- /** Get the last completed phase number (0 if none) */
90
- getLastCompletedPhase() {
91
- const all = this.loadAll();
92
- if (all.length === 0)
93
- return 0;
94
- // Find highest phase number with successful result
95
- let last = 0;
96
- for (const entry of all) {
97
- if (entry.result.success && entry.phaseNumber > last) {
98
- last = entry.phaseNumber;
99
- }
100
- }
101
- return last;
102
- }
103
- /** Clear all stored results for this feature */
104
- clear() {
105
- if (!fs.existsSync(this.storeDir))
106
- return;
107
- try {
108
- const files = fs.readdirSync(this.storeDir);
109
- for (const file of files) {
110
- fs.unlinkSync(path.join(this.storeDir, file));
111
- }
112
- fs.rmdirSync(this.storeDir);
113
- }
114
- catch {
115
- // Best-effort cleanup
116
- }
117
- }
118
- /** Get store directory path */
119
- getStoreDir() {
120
- return this.storeDir;
121
- }
122
- getFilePath(phaseNumber) {
123
- return path.join(this.storeDir, `phase-${phaseNumber}.json`);
124
- }
125
- }
126
- // ============================================
127
- // Helpers
128
- // ============================================
129
- function sanitizeFeatureName(name) {
130
- return name
131
- .toLowerCase()
132
- .replace(/[^a-z0-9-_]/g, '-')
133
- .replace(/-+/g, '-')
134
- .replace(/^-|-$/g, '');
135
- }
136
- function ensureDir(dirPath) {
137
- if (!fs.existsSync(dirPath)) {
138
- fs.mkdirSync(dirPath, { recursive: true });
139
- }
140
- }
141
- function computeChecksum(data) {
142
- const content = JSON.stringify({
143
- featureName: data.featureName,
144
- phaseNumber: data.phaseNumber,
145
- phaseName: data.phaseName,
146
- result: data.result,
147
- timestamp: data.timestamp,
148
- });
149
- return crypto.createHash('sha256').update(content).digest('hex').slice(0, 16);
150
- }
151
- //# sourceMappingURL=PhaseResultStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PhaseResultStore.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/PhaseResultStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAgB5B,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,OAAO,gBAAgB;IAIR;IACA;IAJF,QAAQ,CAAS;IAElC,YACmB,WAAmB,EACnB,WAAmB;QADnB,gBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAW,GAAX,WAAW,CAAQ;QAEpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CACvB,WAAW,EACX,SAAS,EACT,MAAM,EACN,eAAe,EACf,mBAAmB,CAAC,WAAW,CAAC,CACjC,CAAC;IACJ,CAAC;IAED,gCAAgC;IAChC,IAAI,CAAC,WAAmB,EAAE,SAAiB,EAAE,MAAmB;QAC9D,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEzB,MAAM,IAAI,GAAoB;YAC5B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW;YACX,SAAS;YACT,MAAM;YACN,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,QAAQ,EAAE,E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AAC,IAAqB;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC;QAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,SAAS,EAAE,IAAI,CAAC,SAAS;KAC1B,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAChF,CAAC"}
@@ -1,40 +0,0 @@
1
- /**
2
- * SessionStore - 백그라운드 에이전트 세션 저장소
3
- */
4
- import { BackgroundAgentHandle, AgentResult, SessionInfo } from './types.js';
5
- import { ToolResult } from '../types/tool.js';
6
- export interface SessionData {
7
- handle: BackgroundAgentHandle;
8
- resultPromise: Promise<AgentResult>;
9
- cancelController: AbortController;
10
- createdAt: number;
11
- }
12
- /**
13
- * SessionStore - 세션 저장 및 관리
14
- */
15
- declare class SessionStoreImpl {
16
- private activeSessions;
17
- private sessionHistory;
18
- private cleanupTimer;
19
- constructor();
20
- private startCleanupTimer;
21
- private cleanup;
22
- add(sessionId: string, data: SessionData): void;
23
- get(sessionId: string): SessionData | undefined;
24
- delete(sessionId: string): void;
25
- addToHistory(info: SessionInfo): void;
26
- findInHistory(sessionId: string): SessionInfo | undefined;
27
- getActiveSessions(): SessionData[];
28
- getRecentHistory(limit: number): SessionInfo[];
29
- }
30
- export declare const sessionStore: SessionStoreImpl;
31
- /**
32
- * 활성 세션 목록 조회
33
- */
34
- export declare function listActiveSessions(): ToolResult;
35
- /**
36
- * 세션 히스토리 조회
37
- */
38
- export declare function getSessionHistory(limit?: number): ToolResult;
39
- export {};
40
- //# sourceMappingURL=SessionStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStore.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/SessionStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,gBAAgB,EAAE,eAAe,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AAOD;;GAEG;AACH,cAAM,gBAAgB;IACpB,OAAO,CAAC,cAAc,CAAkC;IACxD,OAAO,CAAC,cAAc,CAAqB;IAC3C,OAAO,CAAC,YAAY,CAA+C;;IAMnE,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,OAAO;IAoBf,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI;IAI/C,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAI/C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI/B,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAIrC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAIzD,iBAAiB,IAAI,WAAW,EAAE;IAIlC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,EAAE;CAG/C;AAGD,eAAO,MAAM,YAAY,kBAAyB,CAAC;AAEnD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAyB/C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,MAAW,GAAG,UAAU,CAsBhE"}