@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,146 +0,0 @@
1
- /**
2
- * LLMCluster - Multi-LLM 병렬 쿼리 및 상태 관리
3
- * GPT, Antigravity, Claude 지원
4
- */
5
- import { spawn } from 'child_process';
6
- import * as gptApi from '../lib/gpt/index.js';
7
- import * as antigravityApi from '../lib/antigravity/index.js';
8
- import { warnLog } from '../lib/utils.js';
9
- /**
10
- * LLMCluster - GPT / Antigravity / Claude 병렬 쿼리 및 상태 관리
11
- */
12
- export class LLMCluster {
13
- defaultSystemPrompt;
14
- constructor(options = {}) {
15
- this.defaultSystemPrompt = options.defaultSystemPrompt ?? 'You are a helpful assistant.';
16
- }
17
- // WHY 180s: claude --print는 긴 추론에서 수 분까지 걸릴 수 있으나,
18
- // 그 이상은 행으로 간주하고 종료한다 (기존 execSync timeout과 동일).
19
- static CLAUDE_CLI_TIMEOUT_MS = 180000;
20
- /**
21
- * Claude CLI 오케스트레이션 (claude --print)
22
- *
23
- * 비동기 spawn — execSync는 최대 180초 이벤트 루프를 블로킹해
24
- * multiQuery의 GPT/Antigravity 병렬성을 무효화하므로 사용하지 않는다.
25
- */
26
- async claudeOrchestrate(prompt, systemPrompt) {
27
- const sys = systemPrompt ?? this.defaultSystemPrompt;
28
- const fullPrompt = `[System]\n${sys}\n\n[User]\n${prompt}`;
29
- // 재귀 가드 — spawn된 자식 claude 세션의 UserPromptSubmit/Stop hook이
30
- // 다시 외부 LLM/오케스트레이션을 돌리는 fork 폭주를 차단한다.
31
- // hook 스크립트는 VIBE_HOOK_DEPTH 가 존재하면 즉시 종료한다.
32
- return new Promise((resolve, reject) => {
33
- const child = spawn('claude', ['--print', '--dangerously-skip-permissions'], {
34
- stdio: ['pipe', 'pipe', 'pipe'],
35
- env: { ...process.env, VIBE_HOOK_DEPTH: process.env.VIBE_HOOK_DEPTH ?? '1' },
36
- });
37
- let stdout = '';
38
- let stderr = '';
39
- const timer = setTimeout(() => {
40
- child.kill('SIGKILL');
41
- reject(new Error(`claude --print timed out after ${LLMCluster.CLAUDE_CLI_TIMEOUT_MS}ms`));
42
- }, LLMCluster.CLAUDE_CLI_TIMEOUT_MS);
43
- child.stdout.on('data', (chunk) => { stdout += chunk.toString(); });
44
- child.stderr.on('data', (chunk) => { stderr += chunk.toString(); });
45
- child.on('error', (err) => {
46
- clearTimeout(timer);
47
- reject(err);
48
- });
49
- child.on('close', (code) => {
50
- clearTimeout(timer);
51
- if (code === 0) {
52
- resolve(stdout.trim());
53
- }
54
- else {
55
- reject(new Error(`claude --print failed (code ${code}): ${stderr.slice(0, 500)}`));
56
- }
57
- });
58
- child.stdin.write(fullPrompt);
59
- child.stdin.end();
60
- });
61
- }
62
- /**
63
- * GPT 오케스트레이션
64
- */
65
- async gptOrchestrate(prompt, systemPrompt, options) {
66
- return gptApi.coreGptOrchestrate(prompt, systemPrompt ?? this.defaultSystemPrompt, options);
67
- }
68
- /**
69
- * Antigravity 오케스트레이션
70
- */
71
- async antigravityOrchestrate(prompt, systemPrompt, options) {
72
- return antigravityApi.coreAntigravityOrchestrate(prompt, systemPrompt ?? this.defaultSystemPrompt, options);
73
- }
74
- /**
75
- * Antigravity 웹 검색
76
- */
77
- async antigravityWebSearch(query) {
78
- return antigravityApi.quickWebSearch(query);
79
- }
80
- /**
81
- * GPT 웹 검색 (Antigravity로 위임)
82
- * @deprecated GPT Codex API는 웹 검색을 지원하지 않습니다. antigravityWebSearch를 사용하세요.
83
- */
84
- async gptWebSearch(query) {
85
- return this.antigravityWebSearch(query);
86
- }
87
- /**
88
- * 멀티 LLM 병렬 쿼리
89
- */
90
- async multiQuery(prompt, options) {
91
- const { useGpt = true, useAntigravity = true, useClaude = false } = options || {};
92
- const results = {};
93
- const promises = [];
94
- if (useGpt) {
95
- promises.push(this.gptOrchestrate(prompt)
96
- .then(r => { results.gpt = r; })
97
- .catch(e => { warnLog('GPT query failed in multiLlm', e); }));
98
- }
99
- if (useAntigravity) {
100
- promises.push(this.antigravityOrchestrate(prompt)
101
- .then(r => { results.antigravity = r; })
102
- .catch(e => { warnLog('Antigravity query failed in multiLlm', e); }));
103
- }
104
- if (useClaude) {
105
- promises.push(this.claudeOrchestrate(prompt)
106
- .then(r => { results.claude = r; })
107
- .catch(e => { warnLog('Claude query failed in multiLlm', e); }));
108
- }
109
- await Promise.all(promises);
110
- return results;
111
- }
112
- /**
113
- * LLM 상태 확인 (전체)
114
- */
115
- async checkStatus() {
116
- let gptAvailable = false;
117
- let antigravityAvailable = false;
118
- let claudeAvailable = false;
119
- const promises = [
120
- this.gptOrchestrate('ping', 'Reply with pong')
121
- .then(() => { gptAvailable = true; })
122
- .catch(e => { warnLog('GPT status check failed', e); }),
123
- this.antigravityOrchestrate('ping', 'Reply with pong')
124
- .then(() => { antigravityAvailable = true; })
125
- .catch(e => { warnLog('Antigravity status check failed', e); }),
126
- this.claudeOrchestrate('ping', 'Reply with pong')
127
- .then(() => { claudeAvailable = true; })
128
- .catch(e => { warnLog('Claude status check failed', e); }),
129
- ];
130
- await Promise.all(promises);
131
- return {
132
- gpt: { available: gptAvailable },
133
- antigravity: { available: antigravityAvailable },
134
- claude: { available: claudeAvailable },
135
- };
136
- }
137
- }
138
- // 싱글톤 인스턴스
139
- let defaultCluster = null;
140
- export function getLLMCluster(options) {
141
- if (!defaultCluster || options) {
142
- defaultCluster = new LLMCluster(options);
143
- }
144
- return defaultCluster;
145
- }
146
- //# sourceMappingURL=LLMCluster.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LLMCluster.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/LLMCluster.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AA2B1C;;GAEG;AACH,MAAM,OAAO,UAAU;IACb,mBAAmB,CAAS;IAEpC,YAAY,UAA6B,EAAE;QACzC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,IAAI,8BAA8B,CAAC;IAC3F,CAAC;IAED,mDAAmD;IACnD,iDAAiD;IACzC,MAAM,CAAU,qBAAqB,GAAG,MAAM,CAAC;IAEvD;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,MAAc,EACd,YAAqB;QAErB,MAAM,GAAG,GAAG,YAAY,IAAI,IAAI,CAAC,mBAAmB,CAAC;QACrD,MAAM,UAAU,GAAG,aAAa,GAAG,eAAe,MAAM,EAAE,CAAC;QAC3D,2DAA2D;QAC3D,wCAAwC;QACxC,6CAA6C;QAC7C,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,gCAAgC,CAAC,EAAE;gBAC3E,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- */
4
- import { MultiLlmResult } from './types.js';
5
- /**
6
- * executeMultiLlmResearch 가 이번 호출에서 실제로 보낼 직접 LLM 호출 수.
7
- * 가용한 provider(GPT 2건 + Antigravity 2건) 기준. fan-out 전 preflight/budget gate 용.
8
- */
9
- export declare function countPlannedMultiLlmCalls(): number;
10
- /**
11
- * Multi-LLM 리서치 프롬프트 생성
12
- */
13
- export declare function createMultiLlmPrompts(feature: string, techStack: string[]): {
14
- bestPractices: {
15
- gpt: string;
16
- antigravity: string;
17
- };
18
- security: {
19
- gpt: string;
20
- antigravity: string;
21
- };
22
- };
23
- /**
24
- * Multi-LLM 병렬 리서치 실행
25
- */
26
- export declare function executeMultiLlmResearch(feature: string, techStack: string[]): Promise<MultiLlmResult[]>;
27
- /**
28
- * Multi-LLM 결과 포맷팅
29
- */
30
- export declare function formatMultiLlmResults(results: MultiLlmResult[]): string;
31
- //# sourceMappingURL=MultiLlmResearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiLlmResearch.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/MultiLlmResearch.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG;IAC3E,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD,CAqBA;AAsCD;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EAAE,GAClB,OAAO,CAAC,cAAc,EAAE,CAAC,CAmF3B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CA+BvE"}
@@ -1,160 +0,0 @@
1
- /**
2
- * MultiLlmResearch - GPT/Antigravity 기반 Multi-LLM 리서치
3
- */
4
- import { warnLog } from '../lib/utils.js';
5
- import * as gptApi from '../lib/gpt/index.js';
6
- import * as antigravityApi from '../lib/antigravity/index.js';
7
- import { isAntigravityAvailable, isCodexAvailable } from '../lib/llm-availability.js';
8
- /**
9
- * executeMultiLlmResearch 가 이번 호출에서 실제로 보낼 직접 LLM 호출 수.
10
- * 가용한 provider(GPT 2건 + Antigravity 2건) 기준. fan-out 전 preflight/budget gate 용.
11
- */
12
- export function countPlannedMultiLlmCalls() {
13
- return (isCodexAvailable() ? 2 : 0) + (isAntigravityAvailable() ? 2 : 0);
14
- }
15
- /**
16
- * Multi-LLM 리서치 프롬프트 생성
17
- */
18
- export function createMultiLlmPrompts(feature, techStack) {
19
- const stackStr = techStack.length > 0 ? techStack.join(', ') : 'the project';
20
- return {
21
- bestPractices: {
22
- gpt: `Best practices for implementing "${feature}" with ${stackStr}.
23
- Focus on: architecture patterns, code conventions, design patterns.
24
- Return JSON: { patterns: string[], antiPatterns: string[], libraries: string[] }`,
25
- antigravity: `Best practices for implementing "${feature}" with ${stackStr}.
26
- Focus on: latest trends, framework updates, modern approaches.
27
- Return JSON: { patterns: string[], antiPatterns: string[], libraries: string[] }`
28
- },
29
- security: {
30
- gpt: `Security considerations for "${feature}" with ${stackStr}.
31
- Focus on: CVE database, known vulnerabilities, exploit patterns.
32
- Return JSON: { vulnerabilities: string[], mitigations: string[], checklist: string[] }`,
33
- antigravity: `Security advisories for "${feature}" with ${stackStr}.
34
- Focus on: latest patches, recent incidents, security best practices.
35
- Return JSON: { advisories: string[], patches: string[], incidents: string[] }`
36
- }
37
- };
38
- }
39
- /**
40
- * GPT API 호출 (에러 처리 포함)
41
- */
42
- async function callGptSafe(prompt, systemPrompt, jsonMode = true) {
43
- try {
44
- const result = await gptApi.coreGptOrchestrate(prompt, systemPrompt, { jsonMode });
45
- return { result, success: true };
46
- }
47
- catch (error) {
48
- const errorMsg = error instanceof Error ? error.message : String(error);
49
- warnLog('[Multi-LLM] GPT call failed:', errorMsg);
50
- return { result: '', success: false, error: errorMsg };
51
- }
52
- }
53
- /**
54
- * Antigravity 호출 (에러 처리 포함)
55
- */
56
- async function callAntigravitySafe(prompt, systemPrompt, jsonMode = true) {
57
- try {
58
- const result = await antigravityApi.coreAntigravityOrchestrate(prompt, systemPrompt, { jsonMode });
59
- return { result, success: true };
60
- }
61
- catch (error) {
62
- const errorMsg = error instanceof Error ? error.message : String(error);
63
- warnLog('[Multi-LLM] Antigravity call failed:', errorMsg);
64
- return { result: '', success: false, error: errorMsg };
65
- }
66
- }
67
- /**
68
- * Multi-LLM 병렬 리서치 실행
69
- */
70
- export async function executeMultiLlmResearch(feature, techStack) {
71
- const prompts = createMultiLlmPrompts(feature, techStack);
72
- const results = [];
73
- const promises = [];
74
- // Best Practices - GPT
75
- if (isCodexAvailable()) {
76
- promises.push((async () => {
77
- const taskStart = Date.now();
78
- const { result, success, error } = await callGptSafe(prompts.bestPractices.gpt, 'You are an expert software architect. Provide best practices in JSON format.');
79
- results.push({
80
- provider: 'gpt',
81
- category: 'best-practices',
82
- result, success, error,
83
- duration: Date.now() - taskStart
84
- });
85
- })());
86
- }
87
- // Best Practices - Antigravity
88
- if (isAntigravityAvailable()) {
89
- promises.push((async () => {
90
- const taskStart = Date.now();
91
- const { result, success, error } = await callAntigravitySafe(prompts.bestPractices.antigravity, 'You are an expert in modern development trends. Provide best practices in JSON format.');
92
- results.push({
93
- provider: 'antigravity',
94
- category: 'best-practices',
95
- result, success, error,
96
- duration: Date.now() - taskStart
97
- });
98
- })());
99
- }
100
- // Security - GPT
101
- if (isCodexAvailable()) {
102
- promises.push((async () => {
103
- const taskStart = Date.now();
104
- const { result, success, error } = await callGptSafe(prompts.security.gpt, 'You are a security expert. Focus on CVE database and known vulnerabilities. Return JSON format.');
105
- results.push({
106
- provider: 'gpt',
107
- category: 'security',
108
- result, success, error,
109
- duration: Date.now() - taskStart
110
- });
111
- })());
112
- }
113
- // Security - Antigravity
114
- if (isAntigravityAvailable()) {
115
- promises.push((async () => {
116
- const taskStart = Date.now();
117
- const { result, success, error } = await callAntigravitySafe(prompts.security.antigravity, 'You are a security advisor. Focus on latest advisories and patches. Return JSON format.');
118
- results.push({
119
- provider: 'antigravity',
120
- category: 'security',
121
- result, success, error,
122
- duration: Date.now() - taskStart
123
- });
124
- })());
125
- }
126
- await Promise.all(promises);
127
- return results;
128
- }
129
- /**
130
- * Multi-LLM 결과 포맷팅
131
- */
132
- export function formatMultiLlmResults(results) {
133
- if (results.length === 0) {
134
- return '[Multi-LLM] No results available';
135
- }
136
- const successCount = results.filter(r => r.success).length;
137
- let output = `\n## Multi-LLM Research Results (${successCount}/${results.length} successful)\n\n`;
138
- // Best Practices 섹션
139
- const bestPractices = results.filter(r => r.category === 'best-practices');
140
- if (bestPractices.length > 0) {
141
- output += `### Best Practices\n\n`;
142
- for (const bp of bestPractices) {
143
- const status = bp.success ? '✅' : '❌';
144
- output += `#### ${status} ${bp.provider.toUpperCase()} (${(bp.duration / 1000).toFixed(1)}s)\n`;
145
- output += bp.success ? `${bp.result}\n\n` : `Error: ${bp.error}\n\n`;
146
- }
147
- }
148
- // Security 섹션
149
- const security = results.filter(r => r.category === 'security');
150
- if (security.length > 0) {
151
- output += `### Security Advisories\n\n`;
152
- for (const sec of security) {
153
- const status = sec.success ? '✅' : '❌';
154
- output += `#### ${status} ${sec.provider.toUpperCase()} (${(sec.duration / 1000).toFixed(1)}s)\n`;
155
- output += sec.success ? `${sec.result}\n\n` : `Error: ${sec.error}\n\n`;
156
- }
157
- }
158
- return output;
159
- }
160
- //# sourceMappingURL=MultiLlmResearch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiLlmResearch.js","sourceRoot":"","sources":["../../../src/infra/orchestrator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C,QAAQ,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;YAClG,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,KAAK,MAAM,CAAC;QAC1E,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,122 +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 { PhaseProgress } from '../lib/IterationTracker.js';
10
- import { ToolResult } from '../types/tool.js';
11
- import type { CheckpointGate } from './CheckpointManager.js';
12
- /** 파이프라인 스테이지 인터페이스 */
13
- export interface PipelineStage {
14
- /** 스테이지 이름 */
15
- name: string;
16
- /** 준비 작업 (백그라운드 실행 가능). signal 로 취소 가능. */
17
- prepare?: (signal?: AbortSignal) => Promise<StageContext>;
18
- /** 메인 실행 */
19
- execute: (context: StageContext) => Promise<StageResult>;
20
- /** 정리 작업 */
21
- cleanup?: (context: StageContext) => Promise<void>;
22
- }
23
- /** 스테이지 컨텍스트 (Phase 간 데이터 전달) */
24
- export interface StageContext {
25
- phaseNumber: number;
26
- phaseName: string;
27
- data: Record<string, unknown>;
28
- preparedData?: Record<string, unknown>;
29
- previousResult?: StageResult;
30
- /** All previous phase results (available when using resultStore or resumeFrom) */
31
- allPreviousResults?: StageResult[];
32
- /** 파이프라인 취소/타임아웃 signal — prepare·execute 가 길게 도는 작업을 중단할 때 사용. */
33
- signal?: AbortSignal;
34
- }
35
- /** 스테이지 결과 */
36
- export interface StageResult {
37
- success: boolean;
38
- output: string;
39
- error?: string;
40
- duration: number;
41
- artifacts?: string[];
42
- }
43
- /** 파이프라인 옵션 */
44
- export interface PipelineOptions {
45
- /** ULTRAWORK 모드 (대기 없음) */
46
- ultrawork?: boolean;
47
- /** 최대 재시도 횟수 */
48
- maxRetries?: number;
49
- /** 전체 파이프라인 타임아웃 (ms) */
50
- timeout?: number;
51
- /** 프로젝트 루트 경로 (progress 파일 저장용) */
52
- projectRoot?: string;
53
- /** Phase 완료 시 콜백 */
54
- onPhaseComplete?: (phase: PhaseProgress, result: StageResult) => void;
55
- /** Phase 시작 시 콜백 */
56
- onPhaseStart?: (phase: PhaseProgress) => void;
57
- /** 에러 발생 시 콜백 */
58
- onError?: (phase: PhaseProgress, error: Error) => void;
59
- /** Enable file-based result persistence */
60
- resultStore?: boolean;
61
- /** Checkpoint gates between phases */
62
- checkpoints?: CheckpointGate[];
63
- /** Resume from specific phase number (loads previous results from disk) */
64
- resumeFrom?: number;
65
- /** Callback when pipeline pauses at a checkpoint */
66
- onCheckpointPause?: (phaseNumber: number, gate: CheckpointGate) => void;
67
- }
68
- /** 파이프라인 결과 */
69
- export interface PipelineResult {
70
- success: boolean;
71
- featureName: string;
72
- totalPhases: number;
73
- completedPhases: number;
74
- failedPhase?: number;
75
- totalDuration: number;
76
- results: StageResult[];
77
- error?: string;
78
- /** Phase number where pipeline paused at a checkpoint (if any) */
79
- pausedAtCheckpoint?: number;
80
- }
81
- export declare class PhasePipeline {
82
- private featureName;
83
- private stages;
84
- private options;
85
- private abortController;
86
- private backgroundPreparations;
87
- private resultStore;
88
- private checkpointManager;
89
- constructor(featureName: string, options?: PipelineOptions);
90
- /** 스테이지 추가 */
91
- addStage(stage: PipelineStage): this;
92
- /** 여러 스테이지 추가 */
93
- addStages(stages: PipelineStage[]): this;
94
- /** 파이프라인 실행 */
95
- execute(): Promise<PipelineResult>;
96
- /** 파이프라인 취소 */
97
- cancel(): void;
98
- /** 특정 Phase 백그라운드 준비 시작 (다음 phase 1개만 — B-6) */
99
- private startBackgroundPreparation;
100
- }
101
- /**
102
- * 간단한 스테이지 생성 헬퍼
103
- */
104
- export declare function createStage(name: string, execute: (context: StageContext) => Promise<StageResult>, options?: {
105
- prepare?: () => Promise<StageContext>;
106
- cleanup?: (context: StageContext) => Promise<void>;
107
- }): PipelineStage;
108
- /**
109
- * 파이프라인 생성 헬퍼
110
- */
111
- export declare function createPipeline(featureName: string, stages: PipelineStage[], options?: PipelineOptions): PhasePipeline;
112
- /**
113
- * ULTRAWORK 파이프라인 생성 (권장)
114
- */
115
- export declare function createUltraworkPipeline(featureName: string, stages: PipelineStage[], options?: Omit<PipelineOptions, 'ultrawork'>): PhasePipeline;
116
- /**
117
- * 파이프라인 결과를 ToolResult로 변환
118
- */
119
- export declare function pipelineResultToToolResult(result: PipelineResult): ToolResult & {
120
- pipelineResult: PipelineResult;
121
- };
122
- //# sourceMappingURL=PhasePipeline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PhasePipeline.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/PhasePipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAUL,aAAa,EACd,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQ9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,uBAAuB;AACvB,MAAM,WAAW,aAAa;IAC5B,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1D,YAAY;IACZ,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IACzD,YAAY;IACZ,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AAED,iCAAiC;AACjC,MAAM,WAAW,YAAY;IAC3B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