@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,480 +0,0 @@
1
- import { describe, it, expect, beforeEach, afterEach } from 'vitest';
2
- import { join } from 'path';
3
- import { tmpdir } from 'os';
4
- import { rmSync } from 'fs';
5
- import { MemoryStorage } from '../../memory/MemoryStorage.js';
6
- import { EventBus } from '../EventBus.js';
7
- import { AuditStore } from '../AuditStore.js';
8
- import { SecuritySentinel } from '../SecuritySentinel.js';
9
- import { TaskDecomposer, CircularDependencyError } from '../TaskDecomposer.js';
10
- import { CollaborationProtocol, MessageSizeError } from '../CollaborationProtocol.js';
11
- import { AutonomyOrchestrator } from '../AutonomyOrchestrator.js';
12
- import { loadConfig, getDefaultConfig } from '../AutonomyConfig.js';
13
- let storage;
14
- let bus;
15
- let auditStore;
16
- let testDir;
17
- const asStorage = (s) => s;
18
- beforeEach(() => {
19
- testDir = join(tmpdir(), `integration-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
20
- storage = new MemoryStorage(testDir);
21
- bus = new EventBus();
22
- auditStore = new AuditStore(asStorage(storage));
23
- SecuritySentinel.resetInstance();
24
- });
25
- afterEach(() => {
26
- storage.close();
27
- try {
28
- rmSync(testDir, { recursive: true, force: true });
29
- }
30
- catch {
31
- // ignore cleanup errors on Windows
32
- }
33
- });
34
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
35
- // TaskDecomposer Tests
36
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
- describe('TaskDecomposer', () => {
38
- it('should decompose simple fix prompt into implement + test', () => {
39
- const decomposer = new TaskDecomposer();
40
- const result = decomposer.decompose('Fix the typo in utils.ts');
41
- expect(result.estimatedComplexity).toBe('low');
42
- expect(result.steps).toHaveLength(2);
43
- expect(result.steps[0].type).toBe('implement');
44
- expect(result.steps[1].type).toBe('test');
45
- });
46
- it('should decompose medium feature into spec + implement + test', () => {
47
- const decomposer = new TaskDecomposer();
48
- const result = decomposer.decompose('Add a new component for user profile');
49
- expect(result.steps.length).toBeGreaterThanOrEqual(2);
50
- const types = result.steps.map((s) => s.type);
51
- expect(types).toContain('implement');
52
- expect(types).toContain('test');
53
- });
54
- it('should decompose complex feature with high complexity keywords', () => {
55
- const decomposer = new TaskDecomposer();
56
- const result = decomposer.decompose('Refactor the entire authentication system architecture');
57
- expect(result.estimatedComplexity).toBe('high');
58
- expect(result.steps.length).toBeGreaterThanOrEqual(3);
59
- const types = result.steps.map((s) => s.type);
60
- expect(types).toContain('spec');
61
- expect(types).toContain('implement');
62
- expect(types).toContain('test');
63
- });
64
- it('should mark HIGH risk for prompts with dangerous keywords', () => {
65
- const decomposer = new TaskDecomposer();
66
- const result = decomposer.decompose('Delete all auth credentials and reset tokens');
67
- expect(result.requiresConfirmation).toBe(true);
68
- const implStep = result.steps.find((s) => s.type === 'implement');
69
- expect(implStep?.riskLevel).toBe('HIGH');
70
- });
71
- it('should throw on empty prompt', () => {
72
- const decomposer = new TaskDecomposer();
73
- expect(() => decomposer.decompose('')).toThrow('User prompt cannot be empty');
74
- expect(() => decomposer.decompose(' ')).toThrow('User prompt cannot be empty');
75
- });
76
- it('should assign unique IDs to each step', () => {
77
- const decomposer = new TaskDecomposer();
78
- const result = decomposer.decompose('Create a new feature module');
79
- const ids = result.steps.map((s) => s.id);
80
- expect(new Set(ids).size).toBe(ids.length);
81
- });
82
- it('should detect circular dependency in manually constructed steps', () => {
83
- const decomposer = new TaskDecomposer();
84
- const steps = [
85
- { id: 'a', order: 1, type: 'spec', description: 'A', dependencies: ['test'], estimatedFiles: 1, riskLevel: 'LOW', status: 'pending' },
86
- { id: 'b', order: 2, type: 'implement', description: 'B', dependencies: ['spec'], estimatedFiles: 1, riskLevel: 'LOW', status: 'pending' },
87
- { id: 'c', order: 3, type: 'test', description: 'C', dependencies: ['implement'], estimatedFiles: 1, riskLevel: 'LOW', status: 'pending' },
88
- ];
89
- // This creates a cycle: spec→test→implement→spec
90
- expect(() => decomposer.validateDAG(steps)).toThrow(CircularDependencyError);
91
- });
92
- it('should set deploy step as HIGH risk', () => {
93
- const decomposer = new TaskDecomposer();
94
- // Manually verify deploy risk logic by checking the private method behavior
95
- const result = decomposer.decompose('Deploy the production release');
96
- expect(result.requiresConfirmation).toBe(true);
97
- });
98
- });
99
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
100
- // CollaborationProtocol Tests
101
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
102
- describe('CollaborationProtocol', () => {
103
- it('should assign correct agent for each step type', () => {
104
- const protocol = new CollaborationProtocol();
105
- const specStep = { id: '1', order: 1, type: 'spec', description: '', dependencies: [], estimatedFiles: 1, riskLevel: 'LOW', status: 'pending' };
106
- const implStep = { id: '2', order: 2, type: 'implement', description: '', dependencies: ['spec'], estimatedFiles: 3, riskLevel: 'LOW', status: 'pending' };
107
- const testStep = { id: '3', order: 3, type: 'test', description: '', dependencies: ['implement'], estimatedFiles: 2, riskLevel: 'LOW', status: 'pending' };
108
- const reviewStep = { id: '4', order: 4, type: 'review', description: '', dependencies: ['spec'], estimatedFiles: 1, riskLevel: 'LOW', status: 'pending' };
109
- expect(protocol.assignAgent(specStep).agentName).toBe('architect');
110
- expect(protocol.assignAgent(implStep).agentName).toBe('implementer');
111
- expect(protocol.assignAgent(testStep).agentName).toBe('tester');
112
- expect(protocol.assignAgent(reviewStep).agentName).toBe('security-reviewer');
113
- });
114
- it('should handoff context between agents', () => {
115
- const protocol = new CollaborationProtocol();
116
- const result = protocol.handoff('architect', 'implementer', {
117
- files: ['src/lib/auth.ts', 'src/lib/types.ts'],
118
- changes: ['Added AuthService class', 'Defined User interface'],
119
- decisions: ['Use JWT for authentication'],
120
- });
121
- expect(result.success).toBe(true);
122
- expect(result.from).toBe('architect');
123
- expect(result.to).toBe('implementer');
124
- expect(result.context.files).toHaveLength(2);
125
- expect(result.context.decisions).toContain('Use JWT for authentication');
126
- });
127
- it('should record handoff in log', () => {
128
- const protocol = new CollaborationProtocol();
129
- protocol.handoff('architect', 'implementer', {
130
- files: [], changes: [], decisions: [],
131
- });
132
- expect(protocol.getHandoffLog()).toHaveLength(1);
133
- });
134
- it('should create valid messages with correlation IDs', () => {
135
- const protocol = new CollaborationProtocol();
136
- const msg = protocol.createMessage('architect', 'implementer', 'request', { data: 'test' });
137
- expect(msg.id).toBeDefined();
138
- expect(msg.correlationId).toBeDefined();
139
- expect(msg.from).toBe('architect');
140
- expect(msg.to).toBe('implementer');
141
- expect(msg.type).toBe('request');
142
- });
143
- it('should reject messages exceeding 10KB', () => {
144
- const protocol = new CollaborationProtocol();
145
- const largePayload = 'x'.repeat(11_000);
146
- expect(() => protocol.createMessage('a', 'b', 'request', largePayload)).toThrow(MessageSizeError);
147
- });
148
- it('should track retry counts per step', () => {
149
- const protocol = new CollaborationProtocol();
150
- expect(protocol.canRetry('step-1')).toBe(true);
151
- expect(protocol.getRetryCount('step-1')).toBe(0);
152
- protocol.recordRetry('step-1');
153
- expect(protocol.getRetryCount('step-1')).toBe(1);
154
- expect(protocol.canRetry('step-1')).toBe(false);
155
- });
156
- it('should trim context items to MAX_CONTEXT_ITEMS', () => {
157
- const protocol = new CollaborationProtocol();
158
- const largeFiles = Array.from({ length: 200 }, (_, i) => `file-${i}.ts`);
159
- const result = protocol.handoff('a', 'b', {
160
- files: largeFiles,
161
- changes: [],
162
- decisions: [],
163
- });
164
- expect(result.context.files.length).toBeLessThanOrEqual(100);
165
- });
166
- });
167
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
168
- // AutonomyOrchestrator Tests
169
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
170
- describe('AutonomyOrchestrator', () => {
171
- function createOrchestrator(executor) {
172
- const sentinel = SecuritySentinel.getInstance({
173
- storage: asStorage(storage),
174
- eventBus: bus,
175
- auditStore,
176
- projectRoot: testDir,
177
- });
178
- return new AutonomyOrchestrator({
179
- eventBus: bus,
180
- auditStore,
181
- sentinel,
182
- stepExecutor: executor
183
- ? (step, _assignment) => executor(step)
184
- : undefined,
185
- });
186
- }
187
- it('should decompose prompt via decomposePrompt', () => {
188
- const orch = createOrchestrator();
189
- const task = orch.decomposePrompt('Fix a bug in login');
190
- expect(task.id).toBeDefined();
191
- expect(task.steps.length).toBeGreaterThan(0);
192
- expect(task.estimatedComplexity).toBeDefined();
193
- });
194
- it('should return suggested result in suggest mode', async () => {
195
- const orch = createOrchestrator();
196
- const task = orch.decomposePrompt('Add helper function');
197
- const result = await orch.execute(task, 'suggest');
198
- expect(result.status).toBe('suggested');
199
- expect(result.mode).toBe('suggest');
200
- expect(result.stepResults.every((r) => r.status === 'pending')).toBe(true);
201
- });
202
- it('should return suggested result in disabled mode', async () => {
203
- const orch = createOrchestrator();
204
- const task = orch.decomposePrompt('Add helper function');
205
- const result = await orch.execute(task, 'disabled');
206
- expect(result.status).toBe('suggested');
207
- expect(result.mode).toBe('disabled');
208
- });
209
- it('should execute steps in auto mode (dry-run without executor)', async () => {
210
- const orch = createOrchestrator();
211
- const task = orch.decomposePrompt('Fix a typo');
212
- const result = await orch.execute(task, 'auto');
213
- // Without executor, steps complete as dry-run
214
- expect(result.status).toBe('completed');
215
- expect(result.stepResults.length).toBeGreaterThan(0);
216
- expect(result.stepResults.every((r) => r.status === 'completed')).toBe(true);
217
- });
218
- it('should execute steps with custom executor in auto mode', async () => {
219
- const executed = [];
220
- const orch = createOrchestrator(async (step) => {
221
- executed.push(step.type);
222
- return { success: true, output: `Done: ${step.type}` };
223
- });
224
- const task = orch.decomposePrompt('Fix a bug');
225
- const result = await orch.execute(task, 'auto');
226
- expect(result.status).toBe('completed');
227
- expect(executed.length).toBe(task.steps.length);
228
- });
229
- it('should stop on failed step in auto mode', async () => {
230
- let callCount = 0;
231
- const orch = createOrchestrator(async (_step) => {
232
- callCount++;
233
- // Always fail — no recovery possible even after retry
234
- return { success: false, error: 'Always fails' };
235
- });
236
- const task = orch.decomposePrompt('Fix a typo');
237
- const result = await orch.execute(task, 'auto');
238
- expect(result.status).toBe('failed');
239
- expect(result.stepResults[0].status).toBe('failed');
240
- // First attempt + 1 retry = 2 calls for the first step, then stop
241
- expect(callCount).toBe(2);
242
- });
243
- it('should retry failed step once', async () => {
244
- let callCount = 0;
245
- const orch = createOrchestrator(async (_step) => {
246
- callCount++;
247
- if (callCount === 1)
248
- return { success: false, error: 'Transient failure' };
249
- return { success: true, output: 'Retry succeeded' };
250
- });
251
- const task = orch.decomposePrompt('Fix a typo');
252
- const result = await orch.execute(task, 'auto');
253
- // First step: fails → retries → succeeds
254
- expect(result.stepResults[0].status).toBe('completed');
255
- expect(callCount).toBeGreaterThanOrEqual(2);
256
- });
257
- it('should track progress during execution', async () => {
258
- const orch = createOrchestrator(async () => {
259
- return { success: true };
260
- });
261
- const task = orch.decomposePrompt('Fix a typo');
262
- await orch.execute(task, 'auto');
263
- const progress = orch.getProgress(task.id);
264
- expect(progress).toBeDefined();
265
- expect(progress.status).toBe('completed');
266
- expect(progress.percentComplete).toBe(100);
267
- });
268
- it('should emit step events to EventBus', async () => {
269
- const events = [];
270
- bus.on('action_executed', (e) => { events.push(e); });
271
- const orch = createOrchestrator();
272
- const task = orch.decomposePrompt('Fix a typo');
273
- await orch.execute(task, 'auto');
274
- // Each step emits start + completion events
275
- expect(events.length).toBeGreaterThanOrEqual(task.steps.length);
276
- });
277
- });
278
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
279
- // AutonomyConfig Tests
280
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
281
- describe('AutonomyConfig', () => {
282
- it('should return default config for empty input', () => {
283
- const config = loadConfig({});
284
- expect(config.sentinel.enabled).toBe(true);
285
- expect(config.sentinel.confirmationTimeout).toBe(300);
286
- expect(config.autonomy.mode).toBe('suggest');
287
- expect(config.autonomy.maxConcurrentSteps).toBe(3);
288
- expect(config.autonomy.maxStepTimeout).toBe(600);
289
- });
290
- it('should apply custom values', () => {
291
- const config = loadConfig({
292
- sentinel: { confirmationTimeout: 600 },
293
- autonomy: { mode: 'auto', maxConcurrentSteps: 5 },
294
- });
295
- expect(config.sentinel.confirmationTimeout).toBe(600);
296
- expect(config.autonomy.mode).toBe('auto');
297
- expect(config.autonomy.maxConcurrentSteps).toBe(5);
298
- });
299
- it('should fall back to defaults on invalid values', () => {
300
- const stderrWrite = process.stderr.write;
301
- const warnings = [];
302
- process.stderr.write = ((msg) => { warnings.push(msg); return true; });
303
- const config = loadConfig({
304
- sentinel: { confirmationTimeout: 10 }, // too low (min 60)
305
- autonomy: { maxConcurrentSteps: 99 }, // too high (max 5)
306
- });
307
- process.stderr.write = stderrWrite;
308
- // Invalid values → fallback to defaults
309
- expect(config.sentinel.confirmationTimeout).toBe(300);
310
- expect(config.autonomy.maxConcurrentSteps).toBe(3);
311
- expect(warnings.length).toBeGreaterThan(0);
312
- });
313
- it('should return defaults via getDefaultConfig', () => {
314
- const config = getDefaultConfig();
315
- expect(config.sentinel.enabled).toBe(true);
316
- expect(config.sentinel.notificationChannels).toEqual(['telegram', 'slack', 'web']);
317
- expect(config.autonomy.proactive.enabled).toBe(true);
318
- expect(config.autonomy.proactive.modules).toEqual(['security', 'performance', 'quality', 'dependency']);
319
- });
320
- it('should handle null/undefined input', () => {
321
- const config1 = loadConfig(null);
322
- const config2 = loadConfig(undefined);
323
- expect(config1.sentinel.enabled).toBe(true);
324
- expect(config2.autonomy.mode).toBe('suggest');
325
- });
326
- it('should validate notification channels enum', () => {
327
- const config = loadConfig({
328
- sentinel: { notificationChannels: ['telegram', 'slack'] },
329
- });
330
- expect(config.sentinel.notificationChannels).toEqual(['telegram', 'slack']);
331
- });
332
- });
333
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
334
- // Full Integration Tests
335
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
336
- describe('Full Integration: Prompt → Decompose → Risk → Execute → Audit', () => {
337
- it('should auto-execute LOW risk task and record audit trail', async () => {
338
- const sentinel = SecuritySentinel.getInstance({
339
- storage: asStorage(storage),
340
- eventBus: bus,
341
- auditStore,
342
- projectRoot: testDir,
343
- });
344
- const executed = [];
345
- const orch = new AutonomyOrchestrator({
346
- eventBus: bus,
347
- auditStore,
348
- sentinel,
349
- stepExecutor: async (step) => {
350
- executed.push(step.type);
351
- return { success: true, output: `Completed ${step.type}` };
352
- },
353
- });
354
- // Decompose
355
- const task = orch.decomposePrompt('Fix a typo in helper function');
356
- expect(task.estimatedComplexity).toBe('low');
357
- expect(task.requiresConfirmation).toBe(false);
358
- // Execute in auto mode
359
- const result = await orch.execute(task, 'auto');
360
- expect(result.status).toBe('completed');
361
- expect(executed).toContain('implement');
362
- expect(executed).toContain('test');
363
- // Verify audit trail
364
- const auditEvents = auditStore.query({ limit: 50 });
365
- expect(auditEvents.length).toBeGreaterThan(0);
366
- });
367
- it('should flag HIGH risk task and require confirmation', () => {
368
- const decomposer = new TaskDecomposer();
369
- const task = decomposer.decompose('Delete all production credentials and deploy');
370
- expect(task.requiresConfirmation).toBe(true);
371
- const highRiskSteps = task.steps.filter((s) => s.riskLevel === 'HIGH');
372
- expect(highRiskSteps.length).toBeGreaterThan(0);
373
- });
374
- it('should return suggestion in suggest mode without executing', async () => {
375
- const sentinel = SecuritySentinel.getInstance({
376
- storage: asStorage(storage),
377
- eventBus: bus,
378
- auditStore,
379
- projectRoot: testDir,
380
- });
381
- const executedSteps = [];
382
- const orch = new AutonomyOrchestrator({
383
- eventBus: bus,
384
- auditStore,
385
- sentinel,
386
- stepExecutor: async (step) => {
387
- executedSteps.push(step.id);
388
- return { success: true };
389
- },
390
- });
391
- const task = orch.decomposePrompt('Add a new API endpoint');
392
- const result = await orch.execute(task, 'suggest');
393
- expect(result.status).toBe('suggested');
394
- expect(executedSteps).toHaveLength(0); // No actual execution
395
- });
396
- it('should chain handoff between agents in collaboration protocol', () => {
397
- const protocol = new CollaborationProtocol();
398
- const decomposer = new TaskDecomposer();
399
- const task = decomposer.decompose('Add user authentication feature');
400
- // Assign agents to all steps
401
- const assignments = task.steps.map((step) => protocol.assignAgent(step));
402
- expect(assignments.length).toBe(task.steps.length);
403
- // Handoff from first to second agent
404
- if (assignments.length >= 2) {
405
- const handoff = protocol.handoff(assignments[0].agentName, assignments[1].agentName, {
406
- files: ['src/auth/service.ts'],
407
- changes: ['Created AuthService'],
408
- decisions: ['Use bcrypt for password hashing'],
409
- });
410
- expect(handoff.success).toBe(true);
411
- expect(protocol.getMessageLog().length).toBeGreaterThan(0);
412
- }
413
- });
414
- it('should work with sentinel disabled config', async () => {
415
- const config = loadConfig({
416
- sentinel: { enabled: false },
417
- autonomy: { mode: 'disabled' },
418
- });
419
- expect(config.sentinel.enabled).toBe(false);
420
- expect(config.autonomy.mode).toBe('disabled');
421
- const sentinel = SecuritySentinel.getInstance({
422
- storage: asStorage(storage),
423
- eventBus: bus,
424
- auditStore,
425
- projectRoot: testDir,
426
- });
427
- const orch = new AutonomyOrchestrator({
428
- eventBus: bus,
429
- auditStore,
430
- sentinel,
431
- });
432
- const task = orch.decomposePrompt('Fix a bug');
433
- const result = await orch.execute(task, config.autonomy.mode);
434
- expect(result.status).toBe('suggested');
435
- });
436
- });
437
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
438
- // Module Export Tests
439
- // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
440
- describe('Phase 5 Module Exports', () => {
441
- it('should export all Phase 5 classes and types', async () => {
442
- const mod = await import('../index.js');
443
- // TaskDecomposer
444
- expect(mod.TaskDecomposer).toBeDefined();
445
- expect(mod.CircularDependencyError).toBeDefined();
446
- // CollaborationProtocol
447
- expect(mod.CollaborationProtocol).toBeDefined();
448
- expect(mod.MessageSizeError).toBeDefined();
449
- expect(mod.AgentTimeoutError).toBeDefined();
450
- // AutonomyOrchestrator
451
- expect(mod.AutonomyOrchestrator).toBeDefined();
452
- // AutonomyConfig
453
- expect(mod.SentinelConfigSchema).toBeDefined();
454
- expect(mod.AutonomyConfigSchema).toBeDefined();
455
- expect(mod.FullConfigSchema).toBeDefined();
456
- expect(mod.AutonomyModeEnum).toBeDefined();
457
- expect(mod.loadConfig).toBeDefined();
458
- expect(mod.getDefaultConfig).toBeDefined();
459
- });
460
- it('should still export all Phase 1-4 classes', async () => {
461
- const mod = await import('../index.js');
462
- // Phase 1
463
- expect(mod.EventBus).toBeDefined();
464
- expect(mod.AuditStore).toBeDefined();
465
- expect(mod.EventOutbox).toBeDefined();
466
- // Phase 2
467
- expect(mod.RiskClassifier).toBeDefined();
468
- expect(mod.PolicyEngine).toBeDefined();
469
- expect(mod.SecuritySentinel).toBeDefined();
470
- // Phase 3
471
- expect(mod.ConfirmationStore).toBeDefined();
472
- expect(mod.ConfirmationManager).toBeDefined();
473
- expect(mod.NotificationDispatcher).toBeDefined();
474
- // Phase 4
475
- expect(mod.SuggestionStore).toBeDefined();
476
- expect(mod.ProactiveAnalyzer).toBeDefined();
477
- expect(mod.BackgroundMonitor).toBeDefined();
478
- });
479
- });
480
- //# sourceMappingURL=integration.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration.test.js","sourceRoot":"","sources":["../../../../../src/infra/lib/autonomy/__tests__/integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,IAAI,OAAsB,CAAC;AAC3B,IAAI,GAAa,CAAC;AAClB,IAAI,UAAsB,CAAC;AAC3B,IAAI,OAAe,CAAC;AAEpB,MAAM,SAAS,GAAG,CAAC,CAAgB,EAA2D,EAAE,CAC9F,CAAuE,CAAC;AAE1E,UAAU,CAAC,GAAG,EAAE;IACd,OAAO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AAE,CAAC;QAC9C,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,WAAW,EAAE,CAAC;QAEjD,UAAU;QACV,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1C,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,CAAC;QAC5C,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=proactive.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proactive.test.d.ts","sourceRoot":"","sources":["../../../../../src/infra/lib/autonomy/__tests__/proactive.test.ts"],"names":[],"mappings":""}