@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,162 +0,0 @@
1
- /**
2
- * BackgroundManager Tests
3
- * Fire-and-forget pattern, Concurrency control, TaskQueue
4
- */
5
- import { describe, it, expect, vi } from 'vitest';
6
- import { launch, poll, cancel, getStats, QueueOverflowError, TaskTimeoutError, PipelineTimeoutError, AgentExecutionError, } from './BackgroundManager.js';
7
- // Mock the AgentExecutor
8
- vi.mock('./AgentExecutor.js', () => ({
9
- launchBackgroundAgent: vi.fn().mockResolvedValue({
10
- content: [{ type: 'text', text: 'Mocked' }],
11
- handle: {
12
- getResult: vi.fn().mockResolvedValue({
13
- success: true,
14
- result: 'Test result',
15
- }),
16
- cancel: vi.fn(),
17
- },
18
- }),
19
- }));
20
- describe('BackgroundManager', () => {
21
- describe('Error Classes', () => {
22
- it('should create QueueOverflowError with correct message', () => {
23
- const error = new QueueOverflowError(100, 100);
24
- expect(error.name).toBe('QueueOverflowError');
25
- expect(error.message).toContain('Queue overflow');
26
- expect(error.message).toContain('100/100');
27
- });
28
- it('should create TaskTimeoutError with correct message', () => {
29
- const error = new TaskTimeoutError('task-123', 180000);
30
- expect(error.name).toBe('TaskTimeoutError');
31
- expect(error.message).toContain('task-123');
32
- expect(error.message).toContain('180000ms');
33
- });
34
- it('should create PipelineTimeoutError with correct message', () => {
35
- const error = new PipelineTimeoutError(600000);
36
- expect(error.name).toBe('PipelineTimeoutError');
37
- expect(error.message).toContain('600000ms');
38
- });
39
- it('should create AgentExecutionError with correct message', () => {
40
- const error = new AgentExecutionError('test-agent', 'connection failed');
41
- expect(error.name).toBe('AgentExecutionError');
42
- expect(error.message).toContain('test-agent');
43
- expect(error.message).toContain('connection failed');
44
- });
45
- });
46
- describe('launch()', () => {
47
- it('should return taskId immediately (fire-and-forget)', () => {
48
- const result = launch({
49
- prompt: 'Test task',
50
- agentName: 'test-agent',
51
- });
52
- expect(result.taskId).toBeDefined();
53
- expect(result.taskId).toMatch(/^task-\d+-[a-z0-9]+$/);
54
- expect(result.content[0].text).toContain('Task queued');
55
- });
56
- it('should include agent name in response', () => {
57
- const result = launch({
58
- prompt: 'Test task',
59
- agentName: 'my-special-agent',
60
- });
61
- expect(result.content[0].text).toContain('my-special-agent');
62
- });
63
- it('should include model information', () => {
64
- const result = launch({
65
- prompt: 'Test task',
66
- agentName: 'test-agent',
67
- model: 'claude-sonnet-4-5',
68
- });
69
- expect(result.content[0].text).toContain('claude-sonnet-4-5');
70
- });
71
- });
72
- describe('poll()', () => {
73
- it('should return task not found for invalid taskId', async () => {
74
- const result = await poll('non-existent-task');
75
- expect(result.content[0].text).toContain('not found');
76
- });
77
- it('should return pending status for queued task', async () => {
78
- const launchResult = launch({
79
- prompt: 'Pending task',
80
- agentName: 'test-agent',
81
- });
82
- const pollResult = await poll(launchResult.taskId);
83
- expect(pollResult.task).toBeDefined();
84
- // Task could be pending or running depending on timing
85
- expect(['pending', 'running', 'completed']).toContain(pollResult.task?.status);
86
- });
87
- });
88
- describe('cancel()', () => {
89
- it('should return not found for invalid taskId', () => {
90
- const result = cancel('non-existent-task');
91
- expect(result.content[0].text).toContain('not found');
92
- });
93
- it('should cancel a pending task', async () => {
94
- const launchResult = launch({
95
- prompt: 'Task to cancel',
96
- agentName: 'test-agent',
97
- });
98
- const cancelResult = cancel(launchResult.taskId);
99
- // Could be cancelled or already running/completed
100
- expect(cancelResult.content[0].text).toMatch(/cancelled|already/);
101
- });
102
- });
103
- describe('getStats()', () => {
104
- it('should return queue statistics', () => {
105
- const result = getStats();
106
- expect(result.stats).toBeDefined();
107
- expect(result.stats.maxQueueSize).toBe(100);
108
- expect(typeof result.stats.total).toBe('number');
109
- expect(typeof result.stats.pending).toBe('number');
110
- expect(typeof result.stats.running).toBe('number');
111
- expect(typeof result.stats.completed).toBe('number');
112
- expect(typeof result.stats.failed).toBe('number');
113
- expect(typeof result.stats.cancelled).toBe('number');
114
- });
115
- it('should include formatted text output', () => {
116
- const result = getStats();
117
- expect(result.content[0].text).toContain('BackgroundManager Stats');
118
- expect(result.content[0].text).toContain('Queue');
119
- expect(result.content[0].text).toContain('Concurrency');
120
- });
121
- });
122
- describe('Concurrency Control', () => {
123
- it('should respect model limits', () => {
124
- // Launch multiple tasks
125
- const tasks = [];
126
- for (let i = 0; i < 5; i++) {
127
- tasks.push(launch({
128
- prompt: `Concurrent task ${i}`,
129
- agentName: `agent-${i}`,
130
- model: 'claude-opus-4',
131
- }));
132
- }
133
- // All should be queued successfully
134
- expect(tasks.every(t => t.taskId)).toBe(true);
135
- });
136
- });
137
- });
138
- describe('TaskQueue', () => {
139
- describe('bounded queue behavior', () => {
140
- it('should track queue size', () => {
141
- const stats = getStats();
142
- expect(stats.stats.queueSize).toBeGreaterThanOrEqual(0);
143
- expect(stats.stats.maxQueueSize).toBe(100);
144
- });
145
- });
146
- });
147
- describe('Integration', () => {
148
- it('should complete full task lifecycle', async () => {
149
- // Launch
150
- const launchResult = launch({
151
- prompt: 'Integration test task',
152
- agentName: 'integration-agent',
153
- });
154
- expect(launchResult.taskId).toBeDefined();
155
- // Wait for completion
156
- await new Promise(resolve => setTimeout(resolve, 100));
157
- // Poll for result
158
- const pollResult = await poll(launchResult.taskId);
159
- expect(pollResult.task).toBeDefined();
160
- });
161
- });
162
- //# sourceMappingURL=BackgroundManager.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackgroundManager.test.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/BackgroundManager.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAyB,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAEL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAGhC,yBAAyB;AACzB,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,CAAC;IACnC,qBAAqB,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;QAC/C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAC3C,MAAM,EAAE;YACN,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;gBACnC,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,aAAa;aACtB,CAAC;YACF,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE;SAChB;KACF,CAAC;CACH,CAAC,CAAC,CAAC;AAEJ,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC7B,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;YAC/D,MAAM,KAAK,GAAG,IAAI,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YAC/C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC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AAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACnD,SAAS;QACT,MAAM,YAAY,GAAG,MAAM,CAAC;YAC1B,MAAM,EAAE,uBAAuB;YAC/B,SAAS,EAAE,mBAAmB;SAC/B,CAAC,CAAC;QACH,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;QAE1C,sBAAsB;QACtB,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QAEvD,kBAAkB;QAClB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACnD,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * CheckpointManager - Approval gates between pipeline phases
3
- *
4
- * Supports two gate types:
5
- * - auto: condition function returns true → pass automatically
6
- * - manual: requires explicit approval (skipped in ULTRAWORK mode)
7
- *
8
- * Checkpoint state is persisted to disk alongside PhaseResultStore.
9
- */
10
- import type { StageResult } from './PhasePipeline.js';
11
- export interface CheckpointGate {
12
- /** Phase number after which this gate activates */
13
- afterPhase: number;
14
- /** Gate type: auto (condition-based) or manual (user approval) */
15
- type: 'auto' | 'manual';
16
- /** For auto gates: condition function (true = pass) */
17
- condition?: (result: StageResult) => boolean;
18
- /** Optional label for this checkpoint */
19
- label?: string;
20
- }
21
- export declare class CheckpointManager {
22
- private readonly gates;
23
- private readonly options;
24
- private state;
25
- private readonly statePath;
26
- /**
27
- * @param gates - Checkpoint gate definitions
28
- * @param options - Optional: ultrawork mode and persistence path
29
- */
30
- constructor(gates: CheckpointGate[], options?: {
31
- ultrawork?: boolean;
32
- storeDir?: string;
33
- });
34
- /**
35
- * Check if the pipeline should pause after the given phase.
36
- * Returns true if a gate exists and hasn't been approved yet.
37
- */
38
- shouldPause(phaseNumber: number, result: StageResult): boolean;
39
- /** Approve a checkpoint (manual or failed auto) */
40
- approve(phaseNumber: number, auto?: boolean): void;
41
- /** Check if a checkpoint has been approved */
42
- isApproved(phaseNumber: number): boolean;
43
- /** Get the phase number where pipeline is currently paused (if any) */
44
- getPausedPhase(): number | undefined;
45
- /** Get gate definition for a phase */
46
- getGate(phaseNumber: number): CheckpointGate | undefined;
47
- /** Get all gates */
48
- getGates(): CheckpointGate[];
49
- /** Reset all checkpoint state */
50
- reset(): void;
51
- private loadState;
52
- private saveState;
53
- }
54
- //# sourceMappingURL=CheckpointManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckpointManager.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/CheckpointManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;IACxB,uDAAuD;IACvD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC;IAC7C,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAWD,qBAAa,iBAAiB;IAS1B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAT1B,OAAO,CAAC,KAAK,CAAqC;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAE1C;;;OAGG;gBAEgB,KAAK,EAAE,cAAc,EAAE,EACvB,OAAO,GAAE;QACxB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACd;IAQR;;;OAGG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO;IA8B9D,mDAAmD;IACnD,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,UAAQ,GAAG,IAAI;IAWhD,8CAA8C;IAC9C,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAIxC,uEAAuE;IACvE,cAAc,IAAI,MAAM,GAAG,SAAS;IAIpC,sCAAsC;IACtC,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIxD,oBAAoB;IACpB,QAAQ,IAAI,cAAc,EAAE;IAI5B,iCAAiC;IACjC,KAAK,IAAI,IAAI;IAKb,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,SAAS;CAalB"}
@@ -1,121 +0,0 @@
1
- /**
2
- * CheckpointManager - Approval gates between pipeline phases
3
- *
4
- * Supports two gate types:
5
- * - auto: condition function returns true → pass automatically
6
- * - manual: requires explicit approval (skipped in ULTRAWORK mode)
7
- *
8
- * Checkpoint state is persisted to disk alongside PhaseResultStore.
9
- */
10
- import fs from 'fs';
11
- import path from 'path';
12
- // ============================================
13
- // CheckpointManager
14
- // ============================================
15
- export class CheckpointManager {
16
- gates;
17
- options;
18
- state = { approved: {} };
19
- statePath;
20
- /**
21
- * @param gates - Checkpoint gate definitions
22
- * @param options - Optional: ultrawork mode and persistence path
23
- */
24
- constructor(gates, options = {}) {
25
- this.gates = gates;
26
- this.options = options;
27
- this.statePath = options.storeDir
28
- ? path.join(options.storeDir, 'checkpoints.json')
29
- : null;
30
- this.loadState();
31
- }
32
- /**
33
- * Check if the pipeline should pause after the given phase.
34
- * Returns true if a gate exists and hasn't been approved yet.
35
- */
36
- shouldPause(phaseNumber, result) {
37
- const gate = this.gates.find(g => g.afterPhase === phaseNumber);
38
- if (!gate)
39
- return false;
40
- // Already approved
41
- if (this.state.approved[phaseNumber])
42
- return false;
43
- // Auto gate: evaluate condition
44
- if (gate.type === 'auto') {
45
- const pass = gate.condition ? gate.condition(result) : result.success;
46
- if (pass) {
47
- this.approve(phaseNumber, true);
48
- return false;
49
- }
50
- this.state.paused = phaseNumber;
51
- this.saveState();
52
- return true;
53
- }
54
- // Manual gate: skip in ULTRAWORK mode
55
- if (this.options.ultrawork) {
56
- this.approve(phaseNumber, true);
57
- return false;
58
- }
59
- this.state.paused = phaseNumber;
60
- this.saveState();
61
- return true;
62
- }
63
- /** Approve a checkpoint (manual or failed auto) */
64
- approve(phaseNumber, auto = false) {
65
- this.state.approved[phaseNumber] = {
66
- timestamp: Date.now(),
67
- auto,
68
- };
69
- if (this.state.paused === phaseNumber) {
70
- delete this.state.paused;
71
- }
72
- this.saveState();
73
- }
74
- /** Check if a checkpoint has been approved */
75
- isApproved(phaseNumber) {
76
- return !!this.state.approved[phaseNumber];
77
- }
78
- /** Get the phase number where pipeline is currently paused (if any) */
79
- getPausedPhase() {
80
- return this.state.paused;
81
- }
82
- /** Get gate definition for a phase */
83
- getGate(phaseNumber) {
84
- return this.gates.find(g => g.afterPhase === phaseNumber);
85
- }
86
- /** Get all gates */
87
- getGates() {
88
- return [...this.gates];
89
- }
90
- /** Reset all checkpoint state */
91
- reset() {
92
- this.state = { approved: {} };
93
- this.saveState();
94
- }
95
- loadState() {
96
- if (!this.statePath || !fs.existsSync(this.statePath))
97
- return;
98
- try {
99
- const raw = fs.readFileSync(this.statePath, 'utf-8');
100
- this.state = JSON.parse(raw);
101
- }
102
- catch {
103
- this.state = { approved: {} };
104
- }
105
- }
106
- saveState() {
107
- if (!this.statePath)
108
- return;
109
- try {
110
- const dir = path.dirname(this.statePath);
111
- if (!fs.existsSync(dir)) {
112
- fs.mkdirSync(dir, { recursive: true });
113
- }
114
- fs.writeFileSync(this.statePath, JSON.stringify(this.state, null, 2), 'utf-8');
115
- }
116
- catch {
117
- // Best-effort persistence
118
- }
119
- }
120
- }
121
- //# sourceMappingURL=CheckpointManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckpointManager.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/CheckpointManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAuBxB,+CAA+C;AAC/C,oBAAoB;AACpB,+CAA+C;AAE/C,MAAM,OAAO,iBAAiB;IAST;IACA;IATX,KAAK,GAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IACjC,SAAS,CAAgB;IAE1C;;;OAGG;IACH,YACmB,KAAuB,EACvB,UAGb,EAAE;QAJW,UAAK,GAAL,KAAK,CAAkB;QACvB,YAAO,GAAP,OAAO,CAGlB;QAEN,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ;YAC/B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,kBAAkB,CAAC;YACjD,CAAC,CAAC,IAAI,CAAC;QACT,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,WAAmB,EAAE,MAAmB;QAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,WAAW,CAAC,CAAC;QAChE,IAAI,CAAC,IAAI;YAAE,OAAO,KAAK,CAAC;QAExB,mBAAmB;QACnB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;YAAE,OAAO,KAAK,CAAC;QAEnD,gCAAgC;QAChC,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,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0B;QAC5B,CAAC;IACH,CAAC;CACF"}
@@ -1,12 +0,0 @@
1
- import type { AgentResult, BackgroundAgentArgs, BackgroundAgentHandle } from './types.js';
2
- interface CodexExecArgs {
3
- projectPath: string;
4
- outputPath: string;
5
- model?: string;
6
- }
7
- export declare function resolveCodexAgentModel(model?: string): string | undefined;
8
- export declare function buildCodexExecArgs(options: CodexExecArgs): string[];
9
- export declare function launchCodexBackgroundAgent(args: BackgroundAgentArgs): BackgroundAgentHandle;
10
- export declare function runCodexAgentOnce(args: BackgroundAgentArgs): Promise<AgentResult>;
11
- export {};
12
- //# sourceMappingURL=CodexAgentRuntime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodexAgentRuntime.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/CodexAgentRuntime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAG1F,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAcnE;AAqBD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,mBAAmB,GAAG,qBAAqB,CA2C3F;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC,CAEvF"}
@@ -1,94 +0,0 @@
1
- import { spawn } from 'child_process';
2
- import fs from 'fs';
3
- import os from 'os';
4
- import path from 'path';
5
- import { getModelOverride } from '../lib/config/GlobalConfigManager.js';
6
- export function resolveCodexAgentModel(model) {
7
- const override = getModelOverride('gptCodex') ?? process.env.GPT_CODEX_MODEL ?? process.env.CODEX_MODEL;
8
- if (override)
9
- return override;
10
- if (!model || model.startsWith('claude'))
11
- return undefined;
12
- return model;
13
- }
14
- export function buildCodexExecArgs(options) {
15
- const args = [
16
- 'exec',
17
- '--cd',
18
- options.projectPath,
19
- '--sandbox',
20
- 'workspace-write',
21
- '--output-last-message',
22
- options.outputPath,
23
- ];
24
- const model = resolveCodexAgentModel(options.model);
25
- if (model)
26
- args.push('--model', model);
27
- args.push('-');
28
- return args;
29
- }
30
- function buildPrompt(args) {
31
- const agentName = args.agentName ? `Agent: ${args.agentName}\n\n` : '';
32
- const tools = args.allowedTools?.length ? `Allowed tool intent: ${args.allowedTools.join(', ')}\n\n` : '';
33
- const turns = args.maxTurns ? `Max turns: ${args.maxTurns}\n\n` : '';
34
- return `${agentName}${tools}${turns}${args.prompt}`;
35
- }
36
- function readOutput(outputPath, stdout, stderr) {
37
- try {
38
- if (fs.existsSync(outputPath)) {
39
- const content = fs.readFileSync(outputPath, 'utf-8').trim();
40
- if (content)
41
- return content;
42
- }
43
- }
44
- catch {
45
- // Fall back to captured process output.
46
- }
47
- return `${stdout}${stderr ? `\n${stderr}` : ''}`.trim();
48
- }
49
- export function launchCodexBackgroundAgent(args) {
50
- const agentName = args.agentName ?? `codex-agent-${Date.now()}`;
51
- const projectPath = args.projectPath ?? process.cwd();
52
- const startTime = Date.now();
53
- const sessionId = `codex-${startTime}-${Math.random().toString(36).slice(2, 8)}`;
54
- const outputPath = path.join(os.tmpdir(), `${sessionId}.txt`);
55
- const codexArgs = buildCodexExecArgs({ projectPath, outputPath, model: args.model });
56
- let status = 'running';
57
- let child = null;
58
- let stdout = '';
59
- let stderr = '';
60
- const resultPromise = new Promise((resolve) => {
61
- child = spawn('codex', codexArgs, {
62
- cwd: projectPath,
63
- env: { ...process.env, VIBE_HOOK_DEPTH: '1' },
64
- stdio: ['pipe', 'pipe', 'pipe'],
65
- });
66
- child.stdout.on('data', chunk => { stdout += chunk.toString(); });
67
- child.stderr.on('data', chunk => { stderr += chunk.toString(); });
68
- child.on('error', error => {
69
- status = 'failed';
70
- resolve({ agentName, sessionId, result: stdout, success: false, error: error.message, duration: Date.now() - startTime });
71
- });
72
- child.on('close', code => {
73
- status = code === 0 ? 'completed' : 'failed';
74
- const result = readOutput(outputPath, stdout, stderr);
75
- resolve({ agentName, sessionId, result, success: code === 0, error: code === 0 ? undefined : result, duration: Date.now() - startTime });
76
- });
77
- child.stdin.end(buildPrompt(args));
78
- });
79
- return {
80
- sessionId,
81
- agentName,
82
- status,
83
- startTime,
84
- getResult: () => resultPromise,
85
- cancel: () => {
86
- status = 'cancelled';
87
- child?.kill();
88
- },
89
- };
90
- }
91
- export async function runCodexAgentOnce(args) {
92
- return launchCodexBackgroundAgent(args).getResult();
93
- }
94
- //# sourceMappingURL=CodexAgentRuntime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodexAgentRuntime.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/CodexAgentRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAuC,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAQxE,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IACxG,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3D,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAsB;IACvD,MAAM,IAAI,GA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SAAS;QACT,MAAM;QACN,SAAS;QACT,SAAS,EAAE,GAAG,EAAE,CAAC,aAAa;QAC9B,MAAM,EAAE,GAAG,EAAE;YACX,MAAM,GAAG,WAAW,CAAC;YACrB,KAAK,EAAE,IAAI,EAAE,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,IAAyB;IAC/D,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;AACtD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CodexAgentRuntime.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodexAgentRuntime.test.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/CodexAgentRuntime.test.ts"],"names":[],"mappings":""}
@@ -1,37 +0,0 @@
1
- import { describe, it, expect, afterEach } from 'vitest';
2
- import { buildCodexExecArgs, resolveCodexAgentModel } from './CodexAgentRuntime.js';
3
- describe('CodexAgentRuntime', () => {
4
- const originalModel = process.env.GPT_CODEX_MODEL;
5
- afterEach(() => {
6
- if (originalModel === undefined) {
7
- delete process.env.GPT_CODEX_MODEL;
8
- }
9
- else {
10
- process.env.GPT_CODEX_MODEL = originalModel;
11
- }
12
- });
13
- it('builds non-interactive codex exec args for a project workspace', () => {
14
- const args = buildCodexExecArgs({
15
- projectPath: '/repo',
16
- outputPath: '/tmp/result.txt',
17
- model: 'gpt-5.3-codex',
18
- });
19
- expect(args).toEqual([
20
- 'exec',
21
- '--cd',
22
- '/repo',
23
- '--sandbox',
24
- 'workspace-write',
25
- '--output-last-message',
26
- '/tmp/result.txt',
27
- '--model',
28
- 'gpt-5.3-codex',
29
- '-',
30
- ]);
31
- });
32
- it('does not pass Claude model names through to Codex', () => {
33
- delete process.env.GPT_CODEX_MODEL;
34
- expect(resolveCodexAgentModel('claude-sonnet-4-5')).toBeUndefined();
35
- });
36
- });
37
- //# sourceMappingURL=CodexAgentRuntime.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodexAgentRuntime.test.js","sourceRoot":"","sources":["../../../src/infra/orchestrator/CodexAgentRuntime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEpF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,aAAa,CAAC;QAC9C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACxE,MAAM,IAAI,GAAG,kBAAkB,CAAC;YAC9B,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,iBAAiB;YAC7B,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;YACnB,MAAM;YACN,MAAM;YACN,OAAO;YACP,WAAW;YACX,iBAAiB;YACjB,uBAAuB;YACvB,iBAAiB;YACjB,SAAS;YACT,eAAe;YACf,GAAG;SACJ,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;QAEnC,MAAM,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,82 +0,0 @@
1
- /**
2
- * LLMCluster - Multi-LLM 병렬 쿼리 및 상태 관리
3
- * GPT, Antigravity, Claude 지원
4
- */
5
- /**
6
- * Multi-LLM 쿼리 결과
7
- */
8
- export interface MultiLlmQueryResult {
9
- gpt?: string;
10
- antigravity?: string;
11
- claude?: string;
12
- }
13
- /**
14
- * LLM 상태 결과
15
- */
16
- export interface LlmStatusResult {
17
- gpt: {
18
- available: boolean;
19
- };
20
- antigravity: {
21
- available: boolean;
22
- };
23
- claude: {
24
- available: boolean;
25
- };
26
- }
27
- /**
28
- * LLMCluster 설정
29
- */
30
- export interface LLMClusterOptions {
31
- defaultSystemPrompt?: string;
32
- }
33
- /**
34
- * LLMCluster - GPT / Antigravity / Claude 병렬 쿼리 및 상태 관리
35
- */
36
- export declare class LLMCluster {
37
- private defaultSystemPrompt;
38
- constructor(options?: LLMClusterOptions);
39
- private static readonly CLAUDE_CLI_TIMEOUT_MS;
40
- /**
41
- * Claude CLI 오케스트레이션 (claude --print)
42
- *
43
- * 비동기 spawn — execSync는 최대 180초 이벤트 루프를 블로킹해
44
- * multiQuery의 GPT/Antigravity 병렬성을 무효화하므로 사용하지 않는다.
45
- */
46
- claudeOrchestrate(prompt: string, systemPrompt?: string): Promise<string>;
47
- /**
48
- * GPT 오케스트레이션
49
- */
50
- gptOrchestrate(prompt: string, systemPrompt?: string, options?: {
51
- jsonMode?: boolean;
52
- }): Promise<string>;
53
- /**
54
- * Antigravity 오케스트레이션
55
- */
56
- antigravityOrchestrate(prompt: string, systemPrompt?: string, options?: {
57
- jsonMode?: boolean;
58
- }): Promise<string>;
59
- /**
60
- * Antigravity 웹 검색
61
- */
62
- antigravityWebSearch(query: string): Promise<string>;
63
- /**
64
- * GPT 웹 검색 (Antigravity로 위임)
65
- * @deprecated GPT Codex API는 웹 검색을 지원하지 않습니다. antigravityWebSearch를 사용하세요.
66
- */
67
- gptWebSearch(query: string): Promise<string>;
68
- /**
69
- * 멀티 LLM 병렬 쿼리
70
- */
71
- multiQuery(prompt: string, options?: {
72
- useGpt?: boolean;
73
- useAntigravity?: boolean;
74
- useClaude?: boolean;
75
- }): Promise<MultiLlmQueryResult>;
76
- /**
77
- * LLM 상태 확인 (전체)
78
- */
79
- checkStatus(): Promise<LlmStatusResult>;
80
- }
81
- export declare function getLLMCluster(options?: LLMClusterOptions): LLMCluster;
82
- //# sourceMappingURL=LLMCluster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LLMCluster.d.ts","sourceRoot":"","sources":["../../../src/infra/orchestrator/LLMCluster.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,WAAW,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IACpC,MAAM,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,mBAAmB,CAAS;gBAExB,OAAO,GAAE,iBAAsB;IAM3C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAU;IAEvD;;;;;OAKG;IACG,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC;IAuClB;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,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