@su-record/vibe 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
  2. package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
  3. package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
  4. package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
  5. package/hooks/scripts/__tests__/clone-behaviors.test.js +64 -0
  6. package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
  7. package/hooks/scripts/clone-extract.js +242 -28
  8. package/hooks/scripts/clone-merge-responsive.js +184 -0
  9. package/hooks/scripts/clone-spec.js +33 -8
  10. package/hooks/scripts/clone-validate.js +15 -9
  11. package/package.json +5 -2
  12. package/skills/clone/SKILL.md +132 -55
  13. package/skills/vibe.clone/SKILL.md +39 -19
  14. package/dist/cli/llm/gemini-commands.d.ts +0 -25
  15. package/dist/cli/llm/gemini-commands.d.ts.map +0 -1
  16. package/dist/cli/llm/gemini-commands.js +0 -143
  17. package/dist/cli/llm/gemini-commands.js.map +0 -1
  18. package/dist/cli/postinstall/codex-agents.d.ts +0 -24
  19. package/dist/cli/postinstall/codex-agents.d.ts.map +0 -1
  20. package/dist/cli/postinstall/codex-agents.js +0 -114
  21. package/dist/cli/postinstall/codex-agents.js.map +0 -1
  22. package/dist/cli/postinstall/codex-instruction.d.ts +0 -10
  23. package/dist/cli/postinstall/codex-instruction.d.ts.map +0 -1
  24. package/dist/cli/postinstall/codex-instruction.js +0 -56
  25. package/dist/cli/postinstall/codex-instruction.js.map +0 -1
  26. package/dist/cli/postinstall/gemini-agents.d.ts +0 -12
  27. package/dist/cli/postinstall/gemini-agents.d.ts.map +0 -1
  28. package/dist/cli/postinstall/gemini-agents.js +0 -80
  29. package/dist/cli/postinstall/gemini-agents.js.map +0 -1
  30. package/dist/cli/postinstall/gemini-instruction.d.ts +0 -10
  31. package/dist/cli/postinstall/gemini-instruction.d.ts.map +0 -1
  32. package/dist/cli/postinstall/gemini-instruction.js +0 -59
  33. package/dist/cli/postinstall/gemini-instruction.js.map +0 -1
  34. package/dist/infra/lib/ContextCompressor.d.ts +0 -104
  35. package/dist/infra/lib/ContextCompressor.d.ts.map +0 -1
  36. package/dist/infra/lib/ContextCompressor.js +0 -297
  37. package/dist/infra/lib/ContextCompressor.js.map +0 -1
  38. package/dist/infra/lib/ContextCompressor.test.d.ts +0 -2
  39. package/dist/infra/lib/ContextCompressor.test.d.ts.map +0 -1
  40. package/dist/infra/lib/ContextCompressor.test.js +0 -25
  41. package/dist/infra/lib/ContextCompressor.test.js.map +0 -1
  42. package/dist/infra/lib/ProgressTracker.d.ts +0 -73
  43. package/dist/infra/lib/ProgressTracker.d.ts.map +0 -1
  44. package/dist/infra/lib/ProgressTracker.js +0 -267
  45. package/dist/infra/lib/ProgressTracker.js.map +0 -1
  46. package/dist/infra/lib/TokenBudgetTracker.d.ts +0 -68
  47. package/dist/infra/lib/TokenBudgetTracker.d.ts.map +0 -1
  48. package/dist/infra/lib/TokenBudgetTracker.js +0 -191
  49. package/dist/infra/lib/TokenBudgetTracker.js.map +0 -1
  50. package/dist/infra/lib/autonomy/AuditStore.d.ts +0 -63
  51. package/dist/infra/lib/autonomy/AuditStore.d.ts.map +0 -1
  52. package/dist/infra/lib/autonomy/AuditStore.js +0 -185
  53. package/dist/infra/lib/autonomy/AuditStore.js.map +0 -1
  54. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +0 -84
  55. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +0 -1
  56. package/dist/infra/lib/autonomy/AutonomyConfig.js +0 -49
  57. package/dist/infra/lib/autonomy/AutonomyConfig.js.map +0 -1
  58. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +0 -78
  59. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +0 -1
  60. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +0 -246
  61. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +0 -1
  62. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +0 -36
  63. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +0 -1
  64. package/dist/infra/lib/autonomy/BackgroundMonitor.js +0 -138
  65. package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +0 -1
  66. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +0 -56
  67. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +0 -1
  68. package/dist/infra/lib/autonomy/CollaborationProtocol.js +0 -122
  69. package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +0 -1
  70. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +0 -42
  71. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +0 -1
  72. package/dist/infra/lib/autonomy/ConfirmationManager.js +0 -200
  73. package/dist/infra/lib/autonomy/ConfirmationManager.js.map +0 -1
  74. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +0 -55
  75. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +0 -1
  76. package/dist/infra/lib/autonomy/ConfirmationStore.js +0 -130
  77. package/dist/infra/lib/autonomy/ConfirmationStore.js.map +0 -1
  78. package/dist/infra/lib/autonomy/EventBus.d.ts +0 -20
  79. package/dist/infra/lib/autonomy/EventBus.d.ts.map +0 -1
  80. package/dist/infra/lib/autonomy/EventBus.js +0 -119
  81. package/dist/infra/lib/autonomy/EventBus.js.map +0 -1
  82. package/dist/infra/lib/autonomy/EventOutbox.d.ts +0 -32
  83. package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +0 -1
  84. package/dist/infra/lib/autonomy/EventOutbox.js +0 -152
  85. package/dist/infra/lib/autonomy/EventOutbox.js.map +0 -1
  86. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +0 -24
  87. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +0 -1
  88. package/dist/infra/lib/autonomy/NotificationDispatcher.js +0 -112
  89. package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +0 -1
  90. package/dist/infra/lib/autonomy/PolicyEngine.d.ts +0 -76
  91. package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +0 -1
  92. package/dist/infra/lib/autonomy/PolicyEngine.js +0 -208
  93. package/dist/infra/lib/autonomy/PolicyEngine.js.map +0 -1
  94. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +0 -61
  95. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +0 -1
  96. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +0 -236
  97. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +0 -1
  98. package/dist/infra/lib/autonomy/RiskClassifier.d.ts +0 -35
  99. package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +0 -1
  100. package/dist/infra/lib/autonomy/RiskClassifier.js +0 -147
  101. package/dist/infra/lib/autonomy/RiskClassifier.js.map +0 -1
  102. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +0 -51
  103. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +0 -1
  104. package/dist/infra/lib/autonomy/SecuritySentinel.js +0 -162
  105. package/dist/infra/lib/autonomy/SecuritySentinel.js.map +0 -1
  106. package/dist/infra/lib/autonomy/SuggestionStore.d.ts +0 -54
  107. package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +0 -1
  108. package/dist/infra/lib/autonomy/SuggestionStore.js +0 -144
  109. package/dist/infra/lib/autonomy/SuggestionStore.js.map +0 -1
  110. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +0 -38
  111. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +0 -1
  112. package/dist/infra/lib/autonomy/TaskDecomposer.js +0 -175
  113. package/dist/infra/lib/autonomy/TaskDecomposer.js.map +0 -1
  114. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +0 -2
  115. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +0 -1
  116. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +0 -198
  117. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +0 -1
  118. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +0 -2
  119. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +0 -1
  120. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +0 -225
  121. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +0 -1
  122. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +0 -2
  123. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +0 -1
  124. package/dist/infra/lib/autonomy/__tests__/event-core.test.js +0 -194
  125. package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +0 -1
  126. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +0 -2
  127. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +0 -1
  128. package/dist/infra/lib/autonomy/__tests__/governance.test.js +0 -540
  129. package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +0 -1
  130. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +0 -2
  131. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +0 -1
  132. package/dist/infra/lib/autonomy/__tests__/integration.test.js +0 -480
  133. package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +0 -1
  134. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +0 -2
  135. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +0 -1
  136. package/dist/infra/lib/autonomy/__tests__/proactive.test.js +0 -410
  137. package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +0 -1
  138. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +0 -2
  139. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +0 -1
  140. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +0 -486
  141. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +0 -1
  142. package/dist/infra/lib/autonomy/index.d.ts +0 -18
  143. package/dist/infra/lib/autonomy/index.d.ts.map +0 -1
  144. package/dist/infra/lib/autonomy/index.js +0 -22
  145. package/dist/infra/lib/autonomy/index.js.map +0 -1
  146. package/dist/infra/lib/autonomy/schemas.d.ts +0 -317
  147. package/dist/infra/lib/autonomy/schemas.d.ts.map +0 -1
  148. package/dist/infra/lib/autonomy/schemas.js +0 -90
  149. package/dist/infra/lib/autonomy/schemas.js.map +0 -1
  150. package/dist/infra/lib/claude/index.d.ts +0 -5
  151. package/dist/infra/lib/claude/index.d.ts.map +0 -1
  152. package/dist/infra/lib/claude/index.js +0 -5
  153. package/dist/infra/lib/claude/index.js.map +0 -1
  154. package/dist/infra/lib/claude/storage.d.ts +0 -12
  155. package/dist/infra/lib/claude/storage.d.ts.map +0 -1
  156. package/dist/infra/lib/claude/storage.js +0 -54
  157. package/dist/infra/lib/claude/storage.js.map +0 -1
  158. package/dist/infra/lib/gemini/auth.d.ts +0 -18
  159. package/dist/infra/lib/gemini/auth.d.ts.map +0 -1
  160. package/dist/infra/lib/gemini/auth.js +0 -32
  161. package/dist/infra/lib/gemini/auth.js.map +0 -1
  162. package/dist/infra/lib/gemini/capabilities.d.ts +0 -28
  163. package/dist/infra/lib/gemini/capabilities.d.ts.map +0 -1
  164. package/dist/infra/lib/gemini/capabilities.js +0 -178
  165. package/dist/infra/lib/gemini/capabilities.js.map +0 -1
  166. package/dist/infra/lib/gemini/chat.d.ts +0 -35
  167. package/dist/infra/lib/gemini/chat.d.ts.map +0 -1
  168. package/dist/infra/lib/gemini/chat.js +0 -161
  169. package/dist/infra/lib/gemini/chat.js.map +0 -1
  170. package/dist/infra/lib/gemini/completion.d.ts +0 -12
  171. package/dist/infra/lib/gemini/completion.d.ts.map +0 -1
  172. package/dist/infra/lib/gemini/completion.js +0 -13
  173. package/dist/infra/lib/gemini/completion.js.map +0 -1
  174. package/dist/infra/lib/gemini/constants.d.ts +0 -8
  175. package/dist/infra/lib/gemini/constants.d.ts.map +0 -1
  176. package/dist/infra/lib/gemini/constants.js +0 -11
  177. package/dist/infra/lib/gemini/constants.js.map +0 -1
  178. package/dist/infra/lib/gemini/index.d.ts +0 -13
  179. package/dist/infra/lib/gemini/index.d.ts.map +0 -1
  180. package/dist/infra/lib/gemini/index.js +0 -12
  181. package/dist/infra/lib/gemini/index.js.map +0 -1
  182. package/dist/infra/lib/gemini/models.d.ts +0 -11
  183. package/dist/infra/lib/gemini/models.d.ts.map +0 -1
  184. package/dist/infra/lib/gemini/models.js +0 -38
  185. package/dist/infra/lib/gemini/models.js.map +0 -1
  186. package/dist/infra/lib/gemini/orchestration.d.ts +0 -33
  187. package/dist/infra/lib/gemini/orchestration.d.ts.map +0 -1
  188. package/dist/infra/lib/gemini/orchestration.js +0 -62
  189. package/dist/infra/lib/gemini/orchestration.js.map +0 -1
  190. package/dist/infra/lib/gemini/types.d.ts +0 -115
  191. package/dist/infra/lib/gemini/types.d.ts.map +0 -1
  192. package/dist/infra/lib/gemini/types.js +0 -5
  193. package/dist/infra/lib/gemini/types.js.map +0 -1
  194. package/dist/infra/orchestrator/AgentAnnouncer.d.ts +0 -64
  195. package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +0 -1
  196. package/dist/infra/orchestrator/AgentAnnouncer.js +0 -127
  197. package/dist/infra/orchestrator/AgentAnnouncer.js.map +0 -1
  198. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +0 -5
  199. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +0 -1
  200. package/dist/infra/orchestrator/AgentAnnouncer.test.js +0 -119
  201. package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +0 -1
  202. package/dist/infra/orchestrator/AgentExecutor.d.ts +0 -22
  203. package/dist/infra/orchestrator/AgentExecutor.d.ts.map +0 -1
  204. package/dist/infra/orchestrator/AgentExecutor.js +0 -272
  205. package/dist/infra/orchestrator/AgentExecutor.js.map +0 -1
  206. package/dist/infra/orchestrator/AgentManager.d.ts +0 -72
  207. package/dist/infra/orchestrator/AgentManager.d.ts.map +0 -1
  208. package/dist/infra/orchestrator/AgentManager.js +0 -183
  209. package/dist/infra/orchestrator/AgentManager.js.map +0 -1
  210. package/dist/infra/orchestrator/AgentManifestCache.d.ts +0 -54
  211. package/dist/infra/orchestrator/AgentManifestCache.d.ts.map +0 -1
  212. package/dist/infra/orchestrator/AgentManifestCache.js +0 -191
  213. package/dist/infra/orchestrator/AgentManifestCache.js.map +0 -1
  214. package/dist/infra/orchestrator/AgentRegistry.d.ts +0 -76
  215. package/dist/infra/orchestrator/AgentRegistry.d.ts.map +0 -1
  216. package/dist/infra/orchestrator/AgentRegistry.js +0 -217
  217. package/dist/infra/orchestrator/AgentRegistry.js.map +0 -1
  218. package/dist/infra/orchestrator/AgentRegistry.test.d.ts +0 -5
  219. package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +0 -1
  220. package/dist/infra/orchestrator/AgentRegistry.test.js +0 -122
  221. package/dist/infra/orchestrator/AgentRegistry.test.js.map +0 -1
  222. package/dist/infra/orchestrator/BackgroundManager.d.ts +0 -128
  223. package/dist/infra/orchestrator/BackgroundManager.d.ts.map +0 -1
  224. package/dist/infra/orchestrator/BackgroundManager.js +0 -620
  225. package/dist/infra/orchestrator/BackgroundManager.js.map +0 -1
  226. package/dist/infra/orchestrator/BackgroundManager.test.d.ts +0 -6
  227. package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +0 -1
  228. package/dist/infra/orchestrator/BackgroundManager.test.js +0 -162
  229. package/dist/infra/orchestrator/BackgroundManager.test.js.map +0 -1
  230. package/dist/infra/orchestrator/CheckpointManager.d.ts +0 -54
  231. package/dist/infra/orchestrator/CheckpointManager.d.ts.map +0 -1
  232. package/dist/infra/orchestrator/CheckpointManager.js +0 -121
  233. package/dist/infra/orchestrator/CheckpointManager.js.map +0 -1
  234. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts +0 -12
  235. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts.map +0 -1
  236. package/dist/infra/orchestrator/CodexAgentRuntime.js +0 -94
  237. package/dist/infra/orchestrator/CodexAgentRuntime.js.map +0 -1
  238. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts +0 -2
  239. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts.map +0 -1
  240. package/dist/infra/orchestrator/CodexAgentRuntime.test.js +0 -37
  241. package/dist/infra/orchestrator/CodexAgentRuntime.test.js.map +0 -1
  242. package/dist/infra/orchestrator/LLMCluster.d.ts +0 -82
  243. package/dist/infra/orchestrator/LLMCluster.d.ts.map +0 -1
  244. package/dist/infra/orchestrator/LLMCluster.js +0 -146
  245. package/dist/infra/orchestrator/LLMCluster.js.map +0 -1
  246. package/dist/infra/orchestrator/MultiLlmResearch.d.ts +0 -31
  247. package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +0 -1
  248. package/dist/infra/orchestrator/MultiLlmResearch.js +0 -160
  249. package/dist/infra/orchestrator/MultiLlmResearch.js.map +0 -1
  250. package/dist/infra/orchestrator/PhasePipeline.d.ts +0 -122
  251. package/dist/infra/orchestrator/PhasePipeline.d.ts.map +0 -1
  252. package/dist/infra/orchestrator/PhasePipeline.js +0 -385
  253. package/dist/infra/orchestrator/PhasePipeline.js.map +0 -1
  254. package/dist/infra/orchestrator/PhaseResultStore.d.ts +0 -39
  255. package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +0 -1
  256. package/dist/infra/orchestrator/PhaseResultStore.js +0 -151
  257. package/dist/infra/orchestrator/PhaseResultStore.js.map +0 -1
  258. package/dist/infra/orchestrator/SessionStore.d.ts +0 -40
  259. package/dist/infra/orchestrator/SessionStore.d.ts.map +0 -1
  260. package/dist/infra/orchestrator/SessionStore.js +0 -116
  261. package/dist/infra/orchestrator/SessionStore.js.map +0 -1
  262. package/dist/infra/orchestrator/SmartRouter.d.ts +0 -90
  263. package/dist/infra/orchestrator/SmartRouter.d.ts.map +0 -1
  264. package/dist/infra/orchestrator/SmartRouter.js +0 -277
  265. package/dist/infra/orchestrator/SmartRouter.js.map +0 -1
  266. package/dist/infra/orchestrator/SmartRouter.test.d.ts +0 -5
  267. package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +0 -1
  268. package/dist/infra/orchestrator/SmartRouter.test.js +0 -484
  269. package/dist/infra/orchestrator/SmartRouter.test.js.map +0 -1
  270. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +0 -143
  271. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
  272. package/dist/infra/orchestrator/SwarmOrchestrator.js +0 -378
  273. package/dist/infra/orchestrator/SwarmOrchestrator.js.map +0 -1
  274. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts +0 -5
  275. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
  276. package/dist/infra/orchestrator/SwarmOrchestrator.test.js +0 -95
  277. package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +0 -1
  278. package/dist/infra/orchestrator/agentDiscovery.d.ts +0 -26
  279. package/dist/infra/orchestrator/agentDiscovery.d.ts.map +0 -1
  280. package/dist/infra/orchestrator/agentDiscovery.js +0 -175
  281. package/dist/infra/orchestrator/agentDiscovery.js.map +0 -1
  282. package/dist/infra/orchestrator/backgroundAgent.d.ts +0 -9
  283. package/dist/infra/orchestrator/backgroundAgent.d.ts.map +0 -1
  284. package/dist/infra/orchestrator/backgroundAgent.js +0 -10
  285. package/dist/infra/orchestrator/backgroundAgent.js.map +0 -1
  286. package/dist/infra/orchestrator/index.d.ts +0 -207
  287. package/dist/infra/orchestrator/index.d.ts.map +0 -1
  288. package/dist/infra/orchestrator/index.js +0 -362
  289. package/dist/infra/orchestrator/index.js.map +0 -1
  290. package/dist/infra/orchestrator/orchestrator.d.ts +0 -60
  291. package/dist/infra/orchestrator/orchestrator.d.ts.map +0 -1
  292. package/dist/infra/orchestrator/orchestrator.js +0 -214
  293. package/dist/infra/orchestrator/orchestrator.js.map +0 -1
  294. package/dist/infra/orchestrator/parallelResearch.d.ts +0 -27
  295. package/dist/infra/orchestrator/parallelResearch.d.ts.map +0 -1
  296. package/dist/infra/orchestrator/parallelResearch.js +0 -285
  297. package/dist/infra/orchestrator/parallelResearch.js.map +0 -1
  298. package/dist/infra/orchestrator/types.d.ts +0 -205
  299. package/dist/infra/orchestrator/types.d.ts.map +0 -1
  300. package/dist/infra/orchestrator/types.js +0 -87
  301. package/dist/infra/orchestrator/types.js.map +0 -1
  302. package/dist/infra/orchestrator/types.test.d.ts +0 -2
  303. package/dist/infra/orchestrator/types.test.d.ts.map +0 -1
  304. package/dist/infra/orchestrator/types.test.js +0 -57
  305. package/dist/infra/orchestrator/types.test.js.map +0 -1
  306. package/dist/tools/semantic/analyzeDependencyGraph.d.ts +0 -12
  307. package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +0 -1
  308. package/dist/tools/semantic/analyzeDependencyGraph.js +0 -359
  309. package/dist/tools/semantic/analyzeDependencyGraph.js.map +0 -1
  310. package/dist/tools/semantic/astGrep.d.ts +0 -25
  311. package/dist/tools/semantic/astGrep.d.ts.map +0 -1
  312. package/dist/tools/semantic/astGrep.js +0 -324
  313. package/dist/tools/semantic/astGrep.js.map +0 -1
  314. package/dist/tools/semantic/astGrep.test.d.ts +0 -2
  315. package/dist/tools/semantic/astGrep.test.d.ts.map +0 -1
  316. package/dist/tools/semantic/astGrep.test.js +0 -74
  317. package/dist/tools/semantic/astGrep.test.js.map +0 -1
  318. package/dist/tools/semantic/findReferences.d.ts +0 -9
  319. package/dist/tools/semantic/findReferences.d.ts.map +0 -1
  320. package/dist/tools/semantic/findReferences.js +0 -200
  321. package/dist/tools/semantic/findReferences.js.map +0 -1
  322. package/dist/tools/semantic/findSymbol.d.ts +0 -8
  323. package/dist/tools/semantic/findSymbol.d.ts.map +0 -1
  324. package/dist/tools/semantic/findSymbol.js +0 -204
  325. package/dist/tools/semantic/findSymbol.js.map +0 -1
  326. package/dist/tools/semantic/index.d.ts +0 -9
  327. package/dist/tools/semantic/index.d.ts.map +0 -1
  328. package/dist/tools/semantic/index.js +0 -11
  329. package/dist/tools/semantic/index.js.map +0 -1
  330. package/dist/tools/semantic/lsp.d.ts +0 -68
  331. package/dist/tools/semantic/lsp.d.ts.map +0 -1
  332. package/dist/tools/semantic/lsp.js +0 -561
  333. package/dist/tools/semantic/lsp.js.map +0 -1
  334. package/dist/tools/spec/e2eTestGenerator.d.ts +0 -61
  335. package/dist/tools/spec/e2eTestGenerator.d.ts.map +0 -1
  336. package/dist/tools/spec/e2eTestGenerator.js +0 -255
  337. package/dist/tools/spec/e2eTestGenerator.js.map +0 -1
  338. package/dist/tools/spec/specVersioning.d.ts +0 -76
  339. package/dist/tools/spec/specVersioning.d.ts.map +0 -1
  340. package/dist/tools/spec/specVersioning.js +0 -236
  341. package/dist/tools/spec/specVersioning.js.map +0 -1
@@ -1,362 +0,0 @@
1
- /**
2
- * VIBE Orchestrator - Agent SDK 기반 멀티 에이전트 오케스트레이션
3
- *
4
- * 사용법 (hooks에서):
5
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.parallelResearch({...})).then(console.log)"
6
- *
7
- * 사용법 (코드에서):
8
- * import { CoreOrchestrator, parallelResearch } from '@su-record/vibe/orchestrator';
9
- */
10
- // Smart Routing constants
11
- export { TASK_LLM_PRIORITY } from './types.js';
12
- // Agent Discovery
13
- export { discoverAgents, loadAgent, listAgentsByCategory, parseAgentMarkdown, extractCategory } from './agentDiscovery.js';
14
- // Agent Manifest Cache
15
- export { AgentManifestCache } from './AgentManifestCache.js';
16
- // Parallel Research
17
- export { parallelResearch, researchFeature, createResearchTasks,
18
- // Multi-LLM Research
19
- parallelResearchWithMultiLlm, executeMultiLlmResearch, formatMultiLlmResults } from './parallelResearch.js';
20
- // Background Agent
21
- export { launchBackgroundAgent, getBackgroundAgentResult, cancelBackgroundAgent, listActiveSessions, getSessionHistory, launchParallelAgents,
22
- // BackgroundManager
23
- backgroundManager, launch, poll, cancel, getStats, QueueOverflowError, TaskTimeoutError, PipelineTimeoutError, AgentExecutionError } from './backgroundAgent.js';
24
- // Main Orchestrator Class
25
- export { CoreOrchestrator, getOrchestrator } from './orchestrator.js';
26
- // Decomposed Components
27
- export { SmartRouter, getSmartRouter, AllProvidersFailedError } from './SmartRouter.js';
28
- export { LLMCluster, getLLMCluster } from './LLMCluster.js';
29
- export { AgentManager, getAgentManager } from './AgentManager.js';
30
- // AgentAnnouncer
31
- export { AgentAnnouncer, agentAnnouncer } from './AgentAnnouncer.js';
32
- // AgentRegistry
33
- export { AgentRegistry } from './AgentRegistry.js';
34
- // PhasePipeline
35
- export { PhasePipeline, createStage, createPipeline, createUltraworkPipeline, pipelineResultToToolResult } from './PhasePipeline.js';
36
- // PhaseResultStore
37
- export { PhaseResultStore } from './PhaseResultStore.js';
38
- // CheckpointManager
39
- export { CheckpointManager } from './CheckpointManager.js';
40
- // SwarmOrchestrator
41
- export { SwarmOrchestrator, swarm, analyzeTaskComplexity } from './SwarmOrchestrator.js';
42
- // ============================================
43
- // 간편 함수 (hooks에서 직접 호출용)
44
- // ============================================
45
- import { CoreOrchestrator } from './orchestrator.js';
46
- import { parallelResearchWithMultiLlm as _parallelResearchWithMultiLlm, createResearchTasks } from './parallelResearch.js';
47
- import { launchBackgroundAgent as _launchBackgroundAgent, getBackgroundAgentResult as _getBackgroundAgentResult, listActiveSessions, getSessionHistory } from './backgroundAgent.js';
48
- import { discoverAgents as _discoverAgents } from './agentDiscovery.js';
49
- /**
50
- * 기능 기반 병렬 리서치 (간편 API)
51
- *
52
- * @example
53
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.research('login feature', ['React', 'TypeScript'])).then(console.log)"
54
- */
55
- export async function research(feature, techStack = [], projectPath = process.cwd()) {
56
- const tasks = createResearchTasks(feature, techStack);
57
- // Multi-LLM 리서치 (Claude 에이전트 + GPT + Antigravity 병렬 실행)
58
- return _parallelResearchWithMultiLlm({ tasks, projectPath, feature, techStack });
59
- }
60
- /**
61
- * 백그라운드 에이전트 시작 (간편 API)
62
- *
63
- * @example
64
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.runAgent('Fix the login bug', 'bug-fixer')).then(console.log)"
65
- */
66
- export async function runAgent(prompt, agentName, projectPath = process.cwd()) {
67
- return _launchBackgroundAgent({
68
- prompt,
69
- agentName: agentName || `agent-${Date.now()}`,
70
- projectPath
71
- });
72
- }
73
- /**
74
- * 에이전트 결과 조회 (간편 API)
75
- *
76
- * @example
77
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.getResult('session-id')).then(console.log)"
78
- */
79
- export async function getResult(sessionId) {
80
- return _getBackgroundAgentResult(sessionId);
81
- }
82
- /**
83
- * 에이전트 목록 조회 (간편 API)
84
- *
85
- * @example
86
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.listAgents()).then(console.log)"
87
- */
88
- export async function listAgents(category, projectPath = process.cwd()) {
89
- return _discoverAgents({ projectPath, category });
90
- }
91
- /**
92
- * 병렬 리뷰 실행 (간편 API)
93
- *
94
- * @example
95
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.review(['src/api/user.ts'], ['TypeScript'])).then(console.log)"
96
- */
97
- export async function review(filePaths, techStack = [], projectPath = process.cwd()) {
98
- const orchestrator = new CoreOrchestrator({ projectPath });
99
- const results = await orchestrator.runParallelReview(filePaths, techStack);
100
- // 결과 포맷팅
101
- let summary = `## Parallel Review Results\n\n`;
102
- summary += `**Files**: ${filePaths.length}\n`;
103
- summary += `**Reviewers**: ${results.length}\n\n`;
104
- const successCount = results.filter(r => r.success).length;
105
- summary += `**Success**: ${successCount}/${results.length}\n\n`;
106
- for (const result of results) {
107
- const status = result.success ? '✅' : '❌';
108
- summary += `### ${status} ${result.agentName}\n`;
109
- if (result.success) {
110
- summary += result.result;
111
- }
112
- else {
113
- summary += `Error: ${result.error}`;
114
- }
115
- summary += '\n\n';
116
- }
117
- return {
118
- content: [{ type: 'text', text: summary }],
119
- results
120
- };
121
- }
122
- /**
123
- * 오케스트레이터 상태 확인
124
- *
125
- * @example
126
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.status()).then(console.log)"
127
- */
128
- export function status() {
129
- const active = listActiveSessions();
130
- const history = getSessionHistory(5);
131
- return {
132
- content: [{
133
- type: 'text',
134
- text: `## Orchestrator Status\n\n${active.content[0].text}\n\n${history.content[0].text}`
135
- }]
136
- };
137
- }
138
- // ============================================
139
- // LLM Integration (GPT, Antigravity)
140
- // ============================================
141
- import * as gptApi from '../lib/gpt/index.js';
142
- import * as antigravityApi from '../lib/antigravity/index.js';
143
- // ============================================
144
- // GPT Integration (웹 검색, 아키텍처 분석)
145
- // ============================================
146
- /**
147
- * GPT 질문 (간편 API) - 웹 검색 없음, Antigravity로 위임
148
- *
149
- * @example
150
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.gptSearch('React 19 features')).then(console.log)"
151
- * @deprecated GPT Codex API는 웹 검색을 지원하지 않습니다. antigravitySearch를 사용하세요.
152
- */
153
- export async function gptSearch(query) {
154
- // GPT Codex API는 웹 검색 미지원 → Antigravity로 위임
155
- return antigravitySearch(query);
156
- }
157
- /**
158
- * GPT 오케스트레이션 (간편 API)
159
- *
160
- * @example
161
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.gpt('Analyze this architecture')).then(console.log)"
162
- */
163
- export async function gpt(prompt, systemPrompt = 'You are a helpful assistant.') {
164
- try {
165
- const result = await gptApi.coreGptOrchestrate(prompt, systemPrompt, { jsonMode: false });
166
- return {
167
- content: [{ type: 'text', text: result }],
168
- success: true
169
- };
170
- }
171
- catch (error) {
172
- return {
173
- content: [{ type: 'text', text: `[GPT Error] ${error.message}` }],
174
- success: false
175
- };
176
- }
177
- }
178
- // ============================================
179
- // Antigravity Integration (UI/UX 분석, 코드 분석)
180
- // ============================================
181
- /**
182
- * Antigravity 웹 검색 (간편 API)
183
- *
184
- * @example
185
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.antigravitySearch('React 19 features')).then(console.log)"
186
- */
187
- export async function antigravitySearch(query) {
188
- try {
189
- const result = await antigravityApi.quickWebSearch(query);
190
- return {
191
- content: [{ type: 'text', text: result }],
192
- success: true
193
- };
194
- }
195
- catch (error) {
196
- return {
197
- content: [{ type: 'text', text: `[Antigravity Error] ${error.message}` }],
198
- success: false
199
- };
200
- }
201
- }
202
- /**
203
- * Antigravity 오케스트레이션 (간편 API)
204
- *
205
- * @example
206
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.antigravity('Review this UI')).then(console.log)"
207
- */
208
- export async function antigravity(prompt, systemPrompt = 'You are a helpful assistant.') {
209
- try {
210
- const result = await antigravityApi.coreAntigravityOrchestrate(prompt, systemPrompt, { jsonMode: false });
211
- return {
212
- content: [{ type: 'text', text: result }],
213
- success: true
214
- };
215
- }
216
- catch (error) {
217
- return {
218
- content: [{ type: 'text', text: `[Antigravity Error] ${error.message}` }],
219
- success: false
220
- };
221
- }
222
- }
223
- // ============================================
224
- // Multi-LLM Orchestration
225
- // ============================================
226
- /**
227
- * 멀티 LLM 병렬 쿼리 (간편 API)
228
- * GPT, Antigravity 동시 호출
229
- *
230
- * @example
231
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.multiLlm('Review this code')).then(console.log)"
232
- */
233
- export async function multiLlm(prompt, options) {
234
- const orchestrator = new CoreOrchestrator();
235
- const results = await orchestrator.multiLlmQuery(prompt, options);
236
- let summary = '## Multi-LLM Results\n\n';
237
- if (results.gpt) {
238
- summary += `### GPT\n${results.gpt}\n\n`;
239
- }
240
- if (results.antigravity) {
241
- summary += `### Antigravity\n${results.antigravity}\n\n`;
242
- }
243
- return {
244
- content: [{ type: 'text', text: summary }],
245
- results
246
- };
247
- }
248
- /**
249
- * LLM 상태 확인 (간편 API)
250
- *
251
- * @example
252
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.llmStatus()).then(console.log)"
253
- */
254
- export async function llmStatus() {
255
- const orchestrator = new CoreOrchestrator();
256
- const llmStatusResult = await orchestrator.checkLlmStatus();
257
- const gptIcon = llmStatusResult.gpt.available ? '✓' : '✗';
258
- const antigravityIcon = llmStatusResult.antigravity.available ? '✓' : '✗';
259
- let text = '## LLM Status\n\n';
260
- text += `- GPT: ${gptIcon} ${llmStatusResult.gpt.available ? 'Available' : 'Unavailable'}\n`;
261
- text += `- Antigravity: ${antigravityIcon} ${llmStatusResult.antigravity.available ? 'Available' : 'Unavailable'}\n`;
262
- return {
263
- content: [{ type: 'text', text }],
264
- status: llmStatusResult
265
- };
266
- }
267
- import { TASK_SYSTEM_PROMPTS } from './types.js';
268
- /**
269
- * 스마트 라우팅 - 작업 유형에 따라 최적의 LLM 선택 + 자동 fallback
270
- * systemPrompt 미지정 시 작업 유형별 기본값(TASK_SYSTEM_PROMPTS SSOT)을 사용한다.
271
- *
272
- * @example
273
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartRoute({type:'architecture',prompt:'Review this design'})).then(console.log)"
274
- */
275
- export async function smartRoute(type, prompt, systemPrompt = TASK_SYSTEM_PROMPTS[type]) {
276
- const orchestrator = new CoreOrchestrator();
277
- const result = await orchestrator.smartRoute({ type, prompt, systemPrompt });
278
- const fallbackInfo = result.usedFallback
279
- ? ` (fallback from ${result.attemptedProviders.slice(0, -1).join(' → ')})`
280
- : '';
281
- return {
282
- content: [{
283
- type: 'text',
284
- text: `[${result.provider.toUpperCase()}${fallbackInfo}]\n\n${result.content}`
285
- }],
286
- result
287
- };
288
- }
289
- /**
290
- * 아키텍처 분석 with fallback (GPT → Antigravity → Claude)
291
- *
292
- * @example
293
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartArchitecture('Review this system design')).then(console.log)"
294
- */
295
- export async function smartArchitecture(prompt) {
296
- return smartRoute('architecture', prompt);
297
- }
298
- /**
299
- * UI/UX 분석 with fallback (Antigravity → GPT → Claude)
300
- *
301
- * @example
302
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartUiux('Improve this form UX')).then(console.log)"
303
- */
304
- export async function smartUiux(prompt) {
305
- return smartRoute('uiux', prompt);
306
- }
307
- /**
308
- * 코드 분석 with fallback (Antigravity → GPT → Claude)
309
- *
310
- * @example
311
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartCodeAnalysis('Analyze this code')).then(console.log)"
312
- */
313
- export async function smartCodeAnalysis(prompt) {
314
- return smartRoute('code-analysis', prompt);
315
- }
316
- /**
317
- * 디버깅 with fallback (GPT → Antigravity → Claude)
318
- *
319
- * @example
320
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartDebugging('Find bugs in this code')).then(console.log)"
321
- */
322
- export async function smartDebugging(prompt) {
323
- return smartRoute('debugging', prompt);
324
- }
325
- /**
326
- * 웹 검색 with fallback (GPT → Antigravity → Claude)
327
- *
328
- * @example
329
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartWebSearch('React 19 new features')).then(console.log)"
330
- */
331
- export async function smartWebSearch(query) {
332
- return smartRoute('web-search', query);
333
- }
334
- /**
335
- * 코드 생성 with fallback (Claude 직접)
336
- *
337
- * @example
338
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartCodeGen('Create a React button component')).then(console.log)"
339
- */
340
- export async function smartCodeGen(description, context) {
341
- const prompt = context ? `${description}\n\nContext:\n${context}` : description;
342
- return smartRoute('code-gen', prompt);
343
- }
344
- /**
345
- * 코드 리뷰 with fallback (GPT → Antigravity → Claude)
346
- *
347
- * @example
348
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartCodeReview('Review this PR')).then(console.log)"
349
- */
350
- export async function smartCodeReview(prompt) {
351
- return smartRoute('code-review', prompt);
352
- }
353
- /**
354
- * 추론/분석 with fallback (GPT → Antigravity → Claude)
355
- *
356
- * @example
357
- * node -e "import('@su-record/vibe/orchestrator').then(o => o.smartReasoning('Analyze this problem')).then(console.log)"
358
- */
359
- export async function smartReasoning(prompt) {
360
- return smartRoute('reasoning', prompt);
361
- }
362
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":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ackgroundAgentHandle, ParallelResearchArgs, ParallelResearchResult, DiscoveredAgent, SmartRouteRequest, SmartRouteResult } from './types.js';
5
- import { ToolResult } from '../types/tool.js';
6
- import { SmartRouter } from './SmartRouter.js';
7
- import { LLMCluster, MultiLlmQueryResult, LlmStatusResult } from './LLMCluster.js';
8
- import { AgentManager } from './AgentManager.js';
9
- /**
10
- * Core Orchestrator
11
- * 모든 /vibe.* 명령어의 오케스트레이션을 담당
12
- */
13
- export declare class CoreOrchestrator {
14
- private options;
15
- private memoryManager;
16
- private router;
17
- private llmCluster;
18
- private agentManager;
19
- constructor(options?: OrchestratorOptions);
20
- smartRoute(request: SmartRouteRequest): Promise<SmartRouteResult>;
21
- smartWebSearch(query: string): Promise<SmartRouteResult>;
22
- smartArchitectureReview(prompt: string): Promise<SmartRouteResult>;
23
- smartUiuxReview(prompt: string): Promise<SmartRouteResult>;
24
- smartCodeAnalysis(prompt: string): Promise<SmartRouteResult>;
25
- smartDebugging(prompt: string): Promise<SmartRouteResult>;
26
- smartCodeGen(description: string, context?: string): Promise<SmartRouteResult>;
27
- discoverAgents(category?: string): Promise<DiscoveredAgent[]>;
28
- loadAgent(agentName: string): Promise<DiscoveredAgent | null>;
29
- launchAgent(args: BackgroundAgentArgs): Promise<BackgroundAgentHandle | null>;
30
- launchAgents(configs: BackgroundAgentArgs[]): Promise<BackgroundAgentHandle[]>;
31
- getAgentResult(sessionId: string): Promise<AgentResult | null>;
32
- cancelAgent(sessionId: string): boolean;
33
- getActiveSessions(): ToolResult;
34
- getHistory(limit?: number): ToolResult;
35
- runParallelReview(filePaths: string[], techStack?: string[]): Promise<AgentResult[]>;
36
- runParallelResearch(args: ParallelResearchArgs): Promise<ParallelResearchResult>;
37
- researchFeature(feature: string, techStack?: string[]): Promise<ParallelResearchResult>;
38
- /** @deprecated GPT Codex API는 웹 검색을 지원하지 않습니다. antigravityWebSearch를 사용하세요. */
39
- gptWebSearch(query: string): Promise<string>;
40
- gptOrchestrate(prompt: string, systemPrompt?: string, options?: {
41
- jsonMode?: boolean;
42
- }): Promise<string>;
43
- antigravityWebSearch(query: string): Promise<string>;
44
- antigravityOrchestrate(prompt: string, systemPrompt?: string, options?: {
45
- jsonMode?: boolean;
46
- }): Promise<string>;
47
- multiLlmQuery(prompt: string, options?: {
48
- useGpt?: boolean;
49
- useAntigravity?: boolean;
50
- }): Promise<MultiLlmQueryResult>;
51
- checkLlmStatus(): Promise<LlmStatusResult>;
52
- saveToMemory(key: string, value: string, category?: string): void;
53
- getFromMemory(key: string): string | null;
54
- private saveOrchestratorResult;
55
- getRouter(): SmartRouter;
56
- getLLMCluster(): LLMCluster;
57
- getAgentManager(): AgentManager;
58
- }
59
- export declare function getOrchestrator(options?: OrchestratorOptions): CoreOrchestrator;
60
- //# sourceMappingURL=orchestrator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,OAAO,EAAE,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAqB,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EAAE,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAGtE;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,aAAa,CAAgB;IAGrC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAe;gBAEvB,OAAO,GAAE,mBAAwB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fs } from 'fs';
5
- import path from 'path';
6
- import { parallelResearch, createResearchTasks, parallelResearchWithMultiLlm } from './parallelResearch.js';
7
- import { MemoryManager } from '../lib/MemoryManager.js';
8
- import { debugLog, errorLog } from '../lib/utils.js';
9
- // 분리된 모듈 임포트
10
- import { SmartRouter } from './SmartRouter.js';
11
- import { LLMCluster } from './LLMCluster.js';
12
- import { AgentManager } from './AgentManager.js';
13
- import { backgroundManager } from './BackgroundManager.js';
14
- /**
15
- * Core Orchestrator
16
- * 모든 /vibe.* 명령어의 오케스트레이션을 담당
17
- */
18
- export class CoreOrchestrator {
19
- options;
20
- memoryManager;
21
- // 분리된 컴포넌트
22
- router;
23
- llmCluster;
24
- agentManager;
25
- constructor(options = {}) {
26
- this.options = {
27
- projectPath: process.cwd(),
28
- verbose: false,
29
- saveResults: true,
30
- resultsPath: '.claude/vibe/orchestrator',
31
- ...options
32
- };
33
- this.memoryManager = MemoryManager.getInstance(this.options.projectPath);
34
- // 컴포넌트 초기화
35
- this.router = new SmartRouter({ verbose: this.options.verbose });
36
- this.llmCluster = new LLMCluster();
37
- this.agentManager = new AgentManager({ projectPath: this.options.projectPath });
38
- // Registry 초기화 (프로젝트 경로가 있을 때만)
39
- if (this.options.projectPath) {
40
- backgroundManager.initRegistry(this.options.projectPath);
41
- }
42
- }
43
- // ============================================
44
- // Smart Routing (SmartRouter 위임)
45
- // ============================================
46
- async smartRoute(request) {
47
- return this.router.route(request);
48
- }
49
- async smartWebSearch(query) {
50
- return this.router.webSearch(query);
51
- }
52
- async smartArchitectureReview(prompt) {
53
- return this.router.architectureReview(prompt);
54
- }
55
- async smartUiuxReview(prompt) {
56
- return this.router.uiuxReview(prompt);
57
- }
58
- async smartCodeAnalysis(prompt) {
59
- return this.router.codeAnalysis(prompt);
60
- }
61
- async smartDebugging(prompt) {
62
- return this.router.debugging(prompt);
63
- }
64
- async smartCodeGen(description, context) {
65
- return this.router.codeGen(description, context);
66
- }
67
- // ============================================
68
- // Agent Management (AgentManager 위임)
69
- // ============================================
70
- async discoverAgents(category) {
71
- return this.agentManager.discover(category);
72
- }
73
- async loadAgent(agentName) {
74
- return this.agentManager.load(agentName);
75
- }
76
- async launchAgent(args) {
77
- return this.agentManager.launch(args);
78
- }
79
- async launchAgents(configs) {
80
- return this.agentManager.launchParallel(configs);
81
- }
82
- async getAgentResult(sessionId) {
83
- return this.agentManager.getResult(sessionId);
84
- }
85
- cancelAgent(sessionId) {
86
- return this.agentManager.cancel(sessionId);
87
- }
88
- getActiveSessions() {
89
- return this.agentManager.getActiveSessions();
90
- }
91
- getHistory(limit = 10) {
92
- return this.agentManager.getHistory(limit);
93
- }
94
- async runParallelReview(filePaths, techStack = []) {
95
- const results = await this.agentManager.runParallelReview(filePaths, techStack);
96
- if (this.options.saveResults) {
97
- await this.saveOrchestratorResult('review', { results, filePaths, techStack });
98
- }
99
- return results;
100
- }
101
- // ============================================
102
- // Parallel Research
103
- // ============================================
104
- async runParallelResearch(args) {
105
- const result = await parallelResearch({
106
- ...args,
107
- projectPath: args.projectPath || this.options.projectPath
108
- });
109
- if (this.options.saveResults && 'results' in result) {
110
- await this.saveOrchestratorResult('research', result);
111
- }
112
- if ('results' in result) {
113
- return result;
114
- }
115
- return {
116
- results: [],
117
- totalDuration: 0,
118
- successCount: 0,
119
- failureCount: 0
120
- };
121
- }
122
- async researchFeature(feature, techStack = []) {
123
- const tasks = createResearchTasks(feature, techStack);
124
- const result = await parallelResearchWithMultiLlm({
125
- tasks,
126
- projectPath: this.options.projectPath,
127
- feature,
128
- techStack
129
- });
130
- if (this.options.saveResults && 'results' in result) {
131
- await this.saveOrchestratorResult('research', result);
132
- }
133
- if ('results' in result) {
134
- return result;
135
- }
136
- return {
137
- results: [],
138
- totalDuration: 0,
139
- successCount: 0,
140
- failureCount: 0
141
- };
142
- }
143
- // ============================================
144
- // LLM Integration (LLMCluster 위임)
145
- // ============================================
146
- /** @deprecated GPT Codex API는 웹 검색을 지원하지 않습니다. antigravityWebSearch를 사용하세요. */
147
- async gptWebSearch(query) {
148
- return this.llmCluster.gptWebSearch(query);
149
- }
150
- async gptOrchestrate(prompt, systemPrompt, options) {
151
- return this.llmCluster.gptOrchestrate(prompt, systemPrompt, options);
152
- }
153
- async antigravityWebSearch(query) {
154
- return this.llmCluster.antigravityWebSearch(query);
155
- }
156
- async antigravityOrchestrate(prompt, systemPrompt, options) {
157
- return this.llmCluster.antigravityOrchestrate(prompt, systemPrompt, options);
158
- }
159
- async multiLlmQuery(prompt, options) {
160
- return this.llmCluster.multiQuery(prompt, options);
161
- }
162
- async checkLlmStatus() {
163
- return this.llmCluster.checkStatus();
164
- }
165
- // ============================================
166
- // Memory Management
167
- // ============================================
168
- saveToMemory(key, value, category = 'orchestrator') {
169
- this.memoryManager.save(key, value, category);
170
- }
171
- getFromMemory(key) {
172
- const memory = this.memoryManager.recall(key);
173
- return memory?.value || null;
174
- }
175
- // ============================================
176
- // Internal Utilities
177
- // ============================================
178
- async saveOrchestratorResult(type, data) {
179
- const resultsDir = path.join(this.options.projectPath, this.options.resultsPath);
180
- try {
181
- await fs.mkdir(resultsDir, { recursive: true });
182
- const filename = `${type}-${Date.now()}.json`;
183
- const filepath = path.join(resultsDir, filename);
184
- await fs.writeFile(filepath, JSON.stringify(data, null, 2));
185
- if (this.options.verbose) {
186
- debugLog(`Saved orchestrator result: ${filepath}`);
187
- }
188
- }
189
- catch (error) {
190
- errorLog('Failed to save orchestrator result:', error);
191
- }
192
- }
193
- // ============================================
194
- // Component Accessors (고급 사용)
195
- // ============================================
196
- getRouter() {
197
- return this.router;
198
- }
199
- getLLMCluster() {
200
- return this.llmCluster;
201
- }
202
- getAgentManager() {
203
- return this.agentManager;
204
- }
205
- }
206
- // 싱글톤 인스턴스 (선택적 사용)
207
- let defaultOrchestrator = null;
208
- export function getOrchestrator(options) {
209
- if (!defaultOrchestrator || options) {
210
- defaultOrchestrator = new CoreOrchestrator(options);
211
- }
212
- return defaultOrchestrator;
213
- }
214
- //# sourceMappingURL=orchestrator.js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