@su-record/vibe 2.6.35 → 2.6.41

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 (1356) hide show
  1. package/.env +62 -0
  2. package/.env.example +54 -0
  3. package/CLAUDE.md +323 -107
  4. package/README.md +612 -203
  5. package/agents/compounder.md +1 -1
  6. package/agents/junior-mentor.md +141 -0
  7. package/agents/research/best-practices-agent.md +4 -4
  8. package/agents/research/codebase-patterns-agent.md +1 -1
  9. package/agents/research/framework-docs-agent.md +1 -1
  10. package/agents/research/security-advisory-agent.md +4 -4
  11. package/agents/review/complexity-reviewer.md +2 -2
  12. package/agents/ui/ui-a11y-auditor.md +93 -0
  13. package/agents/ui/ui-antipattern-detector.md +94 -0
  14. package/agents/ui/ui-dataviz-advisor.md +69 -0
  15. package/agents/ui/ui-design-system-gen.md +57 -0
  16. package/agents/ui/ui-industry-analyzer.md +49 -0
  17. package/agents/ui/ui-layout-architect.md +65 -0
  18. package/agents/ui/ui-stack-implementer.md +68 -0
  19. package/agents/ui/ux-compliance-reviewer.md +81 -0
  20. package/agents/ui-previewer.md +2 -2
  21. package/commands/vibe.analyze.md +35 -18
  22. package/commands/vibe.reason.md +5 -1
  23. package/commands/vibe.review.md +140 -8
  24. package/commands/vibe.run.md +535 -25
  25. package/commands/vibe.spec.md +133 -14
  26. package/commands/vibe.spec.review.md +155 -10
  27. package/commands/vibe.trace.md +49 -1
  28. package/commands/vibe.utils.md +25 -10
  29. package/commands/vibe.verify.md +44 -5
  30. package/commands/vibe.voice.md +82 -0
  31. package/dist/cli/auth.d.ts +16 -4
  32. package/dist/cli/auth.d.ts.map +1 -1
  33. package/dist/cli/auth.js +100 -91
  34. package/dist/cli/auth.js.map +1 -1
  35. package/dist/cli/collaborator.js +17 -17
  36. package/dist/cli/commands/evolution.d.ts +16 -0
  37. package/dist/cli/commands/evolution.d.ts.map +1 -0
  38. package/dist/cli/commands/evolution.js +210 -0
  39. package/dist/cli/commands/evolution.js.map +1 -0
  40. package/dist/cli/commands/index.d.ts +13 -0
  41. package/dist/cli/commands/index.d.ts.map +1 -0
  42. package/dist/cli/commands/index.js +13 -0
  43. package/dist/cli/commands/index.js.map +1 -0
  44. package/dist/cli/commands/info.d.ts +16 -0
  45. package/dist/cli/commands/info.d.ts.map +1 -0
  46. package/dist/cli/commands/info.js +150 -0
  47. package/dist/cli/commands/info.js.map +1 -0
  48. package/dist/cli/commands/init.d.ts +20 -0
  49. package/dist/cli/commands/init.d.ts.map +1 -0
  50. package/dist/cli/commands/init.js +142 -0
  51. package/dist/cli/commands/init.js.map +1 -0
  52. package/dist/cli/commands/remove.d.ts +8 -0
  53. package/dist/cli/commands/remove.d.ts.map +1 -0
  54. package/dist/cli/commands/remove.js +142 -0
  55. package/dist/cli/commands/remove.js.map +1 -0
  56. package/dist/cli/commands/sentinel.d.ts +13 -0
  57. package/dist/cli/commands/sentinel.d.ts.map +1 -0
  58. package/dist/cli/commands/sentinel.js +322 -0
  59. package/dist/cli/commands/sentinel.js.map +1 -0
  60. package/dist/cli/commands/setup.d.ts +9 -0
  61. package/dist/cli/commands/setup.d.ts.map +1 -0
  62. package/dist/cli/commands/setup.js +216 -0
  63. package/dist/cli/commands/setup.js.map +1 -0
  64. package/dist/cli/commands/slack.d.ts +12 -0
  65. package/dist/cli/commands/slack.d.ts.map +1 -0
  66. package/dist/cli/commands/slack.js +92 -0
  67. package/dist/cli/commands/slack.js.map +1 -0
  68. package/dist/cli/commands/sync.d.ts +9 -0
  69. package/dist/cli/commands/sync.d.ts.map +1 -0
  70. package/dist/cli/commands/sync.js +166 -0
  71. package/dist/cli/commands/sync.js.map +1 -0
  72. package/dist/cli/commands/telegram.d.ts +11 -0
  73. package/dist/cli/commands/telegram.d.ts.map +1 -0
  74. package/dist/cli/commands/telegram.js +259 -0
  75. package/dist/cli/commands/telegram.js.map +1 -0
  76. package/dist/cli/commands/update.d.ts +10 -0
  77. package/dist/cli/commands/update.d.ts.map +1 -0
  78. package/dist/cli/commands/update.js +90 -0
  79. package/dist/cli/commands/update.js.map +1 -0
  80. package/dist/cli/commands/upgrade.d.ts +10 -0
  81. package/dist/cli/commands/upgrade.d.ts.map +1 -0
  82. package/dist/cli/commands/upgrade.js +26 -0
  83. package/dist/cli/commands/upgrade.js.map +1 -0
  84. package/dist/cli/index.d.ts +5 -6
  85. package/dist/cli/index.d.ts.map +1 -1
  86. package/dist/cli/index.js +157 -534
  87. package/dist/cli/index.js.map +1 -1
  88. package/dist/cli/llm/claude-commands.d.ts +12 -0
  89. package/dist/cli/llm/claude-commands.d.ts.map +1 -0
  90. package/dist/cli/llm/claude-commands.js +73 -0
  91. package/dist/cli/llm/claude-commands.js.map +1 -0
  92. package/dist/cli/llm/config.d.ts +21 -0
  93. package/dist/cli/llm/config.d.ts.map +1 -0
  94. package/dist/cli/llm/config.js +140 -0
  95. package/dist/cli/llm/config.js.map +1 -0
  96. package/dist/cli/llm/gemini-commands.d.ts +27 -0
  97. package/dist/cli/llm/gemini-commands.d.ts.map +1 -0
  98. package/dist/cli/llm/gemini-commands.js +361 -0
  99. package/dist/cli/llm/gemini-commands.js.map +1 -0
  100. package/dist/cli/llm/gpt-commands.d.ts +23 -0
  101. package/dist/cli/llm/gpt-commands.d.ts.map +1 -0
  102. package/dist/cli/llm/gpt-commands.js +139 -0
  103. package/dist/cli/llm/gpt-commands.js.map +1 -0
  104. package/dist/cli/llm/help.d.ts +12 -0
  105. package/dist/cli/llm/help.d.ts.map +1 -0
  106. package/dist/cli/llm/help.js +37 -0
  107. package/dist/cli/llm/help.js.map +1 -0
  108. package/dist/cli/llm/index.d.ts +9 -0
  109. package/dist/cli/llm/index.d.ts.map +1 -0
  110. package/dist/cli/llm/index.js +9 -0
  111. package/dist/cli/llm/index.js.map +1 -0
  112. package/dist/cli/llm.d.ts +10 -46
  113. package/dist/cli/llm.d.ts.map +1 -1
  114. package/dist/cli/llm.js +10 -499
  115. package/dist/cli/llm.js.map +1 -1
  116. package/dist/cli/postinstall/claude-agents.d.ts +13 -0
  117. package/dist/cli/postinstall/claude-agents.d.ts.map +1 -0
  118. package/dist/cli/postinstall/claude-agents.js +161 -0
  119. package/dist/cli/postinstall/claude-agents.js.map +1 -0
  120. package/dist/cli/postinstall/constants.d.ts +25 -0
  121. package/dist/cli/postinstall/constants.d.ts.map +1 -0
  122. package/dist/cli/postinstall/constants.js +313 -0
  123. package/dist/cli/postinstall/constants.js.map +1 -0
  124. package/dist/cli/postinstall/cursor-agents.d.ts +8 -0
  125. package/dist/cli/postinstall/cursor-agents.d.ts.map +1 -0
  126. package/dist/cli/postinstall/cursor-agents.js +131 -0
  127. package/dist/cli/postinstall/cursor-agents.js.map +1 -0
  128. package/dist/cli/postinstall/cursor-rules.d.ts +11 -0
  129. package/dist/cli/postinstall/cursor-rules.d.ts.map +1 -0
  130. package/dist/cli/postinstall/cursor-rules.js +205 -0
  131. package/dist/cli/postinstall/cursor-rules.js.map +1 -0
  132. package/dist/cli/postinstall/cursor-skills.d.ts +9 -0
  133. package/dist/cli/postinstall/cursor-skills.d.ts.map +1 -0
  134. package/dist/cli/postinstall/cursor-skills.js +800 -0
  135. package/dist/cli/postinstall/cursor-skills.js.map +1 -0
  136. package/dist/cli/postinstall/fs-utils.d.ts +31 -0
  137. package/dist/cli/postinstall/fs-utils.d.ts.map +1 -0
  138. package/dist/cli/postinstall/fs-utils.js +90 -0
  139. package/dist/cli/postinstall/fs-utils.js.map +1 -0
  140. package/dist/cli/postinstall/global-config.d.ts +22 -0
  141. package/dist/cli/postinstall/global-config.d.ts.map +1 -0
  142. package/dist/cli/postinstall/global-config.js +155 -0
  143. package/dist/cli/postinstall/global-config.js.map +1 -0
  144. package/dist/cli/postinstall/index.d.ts +23 -0
  145. package/dist/cli/postinstall/index.d.ts.map +1 -0
  146. package/dist/cli/postinstall/index.js +23 -0
  147. package/dist/cli/postinstall/index.js.map +1 -0
  148. package/dist/cli/postinstall/inline-skills.d.ts +8 -0
  149. package/dist/cli/postinstall/inline-skills.d.ts.map +1 -0
  150. package/dist/cli/postinstall/inline-skills.js +158 -0
  151. package/dist/cli/postinstall/inline-skills.js.map +1 -0
  152. package/dist/cli/postinstall/main.d.ts +9 -0
  153. package/dist/cli/postinstall/main.d.ts.map +1 -0
  154. package/dist/cli/postinstall/main.js +169 -0
  155. package/dist/cli/postinstall/main.js.map +1 -0
  156. package/dist/cli/postinstall.d.ts +3 -18
  157. package/dist/cli/postinstall.d.ts.map +1 -1
  158. package/dist/cli/postinstall.js +4 -1572
  159. package/dist/cli/postinstall.js.map +1 -1
  160. package/dist/cli/prompt.d.ts +28 -0
  161. package/dist/cli/prompt.d.ts.map +1 -0
  162. package/dist/cli/prompt.js +64 -0
  163. package/dist/cli/prompt.js.map +1 -0
  164. package/dist/cli/setup/GlobalInstaller.d.ts +5 -6
  165. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  166. package/dist/cli/setup/GlobalInstaller.js +22 -23
  167. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  168. package/dist/cli/setup/LanguageDetector.d.ts +1 -2
  169. package/dist/cli/setup/LanguageDetector.d.ts.map +1 -1
  170. package/dist/cli/setup/LanguageDetector.js +1 -2
  171. package/dist/cli/setup/LanguageDetector.js.map +1 -1
  172. package/dist/cli/setup/LegacyMigration.d.ts +5 -6
  173. package/dist/cli/setup/LegacyMigration.d.ts.map +1 -1
  174. package/dist/cli/setup/LegacyMigration.js +97 -39
  175. package/dist/cli/setup/LegacyMigration.js.map +1 -1
  176. package/dist/cli/setup/ProjectSetup.d.ts +4 -5
  177. package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
  178. package/dist/cli/setup/ProjectSetup.js +73 -73
  179. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  180. package/dist/cli/setup/index.d.ts +2 -8
  181. package/dist/cli/setup/index.d.ts.map +1 -1
  182. package/dist/cli/setup/index.js +2 -8
  183. package/dist/cli/setup/index.js.map +1 -1
  184. package/dist/cli/setup.d.ts +3 -11
  185. package/dist/cli/setup.d.ts.map +1 -1
  186. package/dist/cli/setup.js +3 -11
  187. package/dist/cli/setup.js.map +1 -1
  188. package/dist/cli/types.d.ts +17 -2
  189. package/dist/cli/types.d.ts.map +1 -1
  190. package/dist/cli/utils.d.ts +9 -0
  191. package/dist/cli/utils.d.ts.map +1 -1
  192. package/dist/cli/utils.js +28 -0
  193. package/dist/cli/utils.js.map +1 -1
  194. package/dist/infra/lib/ContextCompressor.d.ts.map +1 -0
  195. package/dist/infra/lib/ContextCompressor.js +306 -0
  196. package/dist/infra/lib/ContextCompressor.js.map +1 -0
  197. package/dist/infra/lib/DeepInit.d.ts.map +1 -0
  198. package/dist/infra/lib/DeepInit.js.map +1 -0
  199. package/dist/infra/lib/FrameworkDetector.d.ts.map +1 -0
  200. package/dist/infra/lib/FrameworkDetector.js.map +1 -0
  201. package/dist/infra/lib/IterationTracker.d.ts +81 -0
  202. package/dist/infra/lib/IterationTracker.d.ts.map +1 -0
  203. package/dist/infra/lib/IterationTracker.js.map +1 -0
  204. package/dist/infra/lib/MemoryManager.d.ts +96 -0
  205. package/dist/infra/lib/MemoryManager.d.ts.map +1 -0
  206. package/dist/infra/lib/MemoryManager.js +314 -0
  207. package/dist/infra/lib/MemoryManager.js.map +1 -0
  208. package/dist/infra/lib/ModelRouter.d.ts.map +1 -0
  209. package/dist/infra/lib/ModelRouter.js.map +1 -0
  210. package/dist/infra/lib/OrchestrateWorkflow.d.ts.map +1 -0
  211. package/dist/infra/lib/OrchestrateWorkflow.js.map +1 -0
  212. package/dist/infra/lib/ProgressTracker.d.ts.map +1 -0
  213. package/dist/infra/lib/ProgressTracker.js +267 -0
  214. package/dist/infra/lib/ProgressTracker.js.map +1 -0
  215. package/dist/infra/lib/ProjectCache.d.ts.map +1 -0
  216. package/dist/infra/lib/ProjectCache.js.map +1 -0
  217. package/dist/infra/lib/PythonParser.d.ts.map +1 -0
  218. package/dist/infra/lib/PythonParser.js +269 -0
  219. package/dist/infra/lib/PythonParser.js.map +1 -0
  220. package/dist/infra/lib/ReviewRace.d.ts.map +1 -0
  221. package/dist/infra/lib/ReviewRace.js +446 -0
  222. package/dist/infra/lib/ReviewRace.js.map +1 -0
  223. package/dist/infra/lib/RuleBuildSystem.d.ts +157 -0
  224. package/dist/infra/lib/RuleBuildSystem.d.ts.map +1 -0
  225. package/dist/infra/lib/RuleBuildSystem.js +550 -0
  226. package/dist/infra/lib/RuleBuildSystem.js.map +1 -0
  227. package/dist/infra/lib/SkillFrontmatter.d.ts +67 -0
  228. package/dist/infra/lib/SkillFrontmatter.d.ts.map +1 -0
  229. package/dist/infra/lib/SkillFrontmatter.js.map +1 -0
  230. package/dist/infra/lib/SkillQualityGate.d.ts.map +1 -0
  231. package/dist/infra/lib/SkillQualityGate.js.map +1 -0
  232. package/dist/infra/lib/SkillRepository.d.ts.map +1 -0
  233. package/dist/infra/lib/SkillRepository.js +477 -0
  234. package/dist/infra/lib/SkillRepository.js.map +1 -0
  235. package/dist/infra/lib/UltraQA.d.ts +85 -0
  236. package/dist/infra/lib/UltraQA.d.ts.map +1 -0
  237. package/dist/infra/lib/UltraQA.js +297 -0
  238. package/dist/infra/lib/UltraQA.js.map +1 -0
  239. package/dist/infra/lib/autonomy/AuditStore.d.ts +63 -0
  240. package/dist/infra/lib/autonomy/AuditStore.d.ts.map +1 -0
  241. package/dist/infra/lib/autonomy/AuditStore.js +185 -0
  242. package/dist/infra/lib/autonomy/AuditStore.js.map +1 -0
  243. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +84 -0
  244. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +1 -0
  245. package/dist/infra/lib/autonomy/AutonomyConfig.js +49 -0
  246. package/dist/infra/lib/autonomy/AutonomyConfig.js.map +1 -0
  247. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +78 -0
  248. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +1 -0
  249. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +246 -0
  250. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +1 -0
  251. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +36 -0
  252. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +1 -0
  253. package/dist/infra/lib/autonomy/BackgroundMonitor.js +138 -0
  254. package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +1 -0
  255. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +56 -0
  256. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +1 -0
  257. package/dist/infra/lib/autonomy/CollaborationProtocol.js +122 -0
  258. package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +1 -0
  259. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +42 -0
  260. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +1 -0
  261. package/dist/infra/lib/autonomy/ConfirmationManager.js +200 -0
  262. package/dist/infra/lib/autonomy/ConfirmationManager.js.map +1 -0
  263. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +55 -0
  264. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +1 -0
  265. package/dist/infra/lib/autonomy/ConfirmationStore.js +130 -0
  266. package/dist/infra/lib/autonomy/ConfirmationStore.js.map +1 -0
  267. package/dist/infra/lib/autonomy/EventBus.d.ts +20 -0
  268. package/dist/infra/lib/autonomy/EventBus.d.ts.map +1 -0
  269. package/dist/infra/lib/autonomy/EventBus.js +119 -0
  270. package/dist/infra/lib/autonomy/EventBus.js.map +1 -0
  271. package/dist/infra/lib/autonomy/EventOutbox.d.ts +32 -0
  272. package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +1 -0
  273. package/dist/infra/lib/autonomy/EventOutbox.js +152 -0
  274. package/dist/infra/lib/autonomy/EventOutbox.js.map +1 -0
  275. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +24 -0
  276. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +1 -0
  277. package/dist/infra/lib/autonomy/NotificationDispatcher.js +112 -0
  278. package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +1 -0
  279. package/dist/infra/lib/autonomy/PolicyEngine.d.ts +76 -0
  280. package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +1 -0
  281. package/dist/infra/lib/autonomy/PolicyEngine.js +208 -0
  282. package/dist/infra/lib/autonomy/PolicyEngine.js.map +1 -0
  283. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +61 -0
  284. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +1 -0
  285. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +236 -0
  286. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +1 -0
  287. package/dist/infra/lib/autonomy/RiskClassifier.d.ts +35 -0
  288. package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +1 -0
  289. package/dist/infra/lib/autonomy/RiskClassifier.js +147 -0
  290. package/dist/infra/lib/autonomy/RiskClassifier.js.map +1 -0
  291. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +51 -0
  292. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +1 -0
  293. package/dist/infra/lib/autonomy/SecuritySentinel.js +162 -0
  294. package/dist/infra/lib/autonomy/SecuritySentinel.js.map +1 -0
  295. package/dist/infra/lib/autonomy/SuggestionStore.d.ts +54 -0
  296. package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +1 -0
  297. package/dist/infra/lib/autonomy/SuggestionStore.js +144 -0
  298. package/dist/infra/lib/autonomy/SuggestionStore.js.map +1 -0
  299. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +38 -0
  300. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +1 -0
  301. package/dist/infra/lib/autonomy/TaskDecomposer.js +175 -0
  302. package/dist/infra/lib/autonomy/TaskDecomposer.js.map +1 -0
  303. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +2 -0
  304. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +1 -0
  305. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +198 -0
  306. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +1 -0
  307. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +2 -0
  308. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +1 -0
  309. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +225 -0
  310. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +1 -0
  311. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +2 -0
  312. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +1 -0
  313. package/dist/infra/lib/autonomy/__tests__/event-core.test.js +194 -0
  314. package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +1 -0
  315. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +2 -0
  316. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +1 -0
  317. package/dist/infra/lib/autonomy/__tests__/governance.test.js +540 -0
  318. package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +1 -0
  319. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +2 -0
  320. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +1 -0
  321. package/dist/infra/lib/autonomy/__tests__/integration.test.js +480 -0
  322. package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +1 -0
  323. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +2 -0
  324. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +1 -0
  325. package/dist/infra/lib/autonomy/__tests__/proactive.test.js +410 -0
  326. package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +1 -0
  327. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +2 -0
  328. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +1 -0
  329. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +486 -0
  330. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +1 -0
  331. package/dist/infra/lib/autonomy/index.d.ts +18 -0
  332. package/dist/infra/lib/autonomy/index.d.ts.map +1 -0
  333. package/dist/infra/lib/autonomy/index.js +22 -0
  334. package/dist/infra/lib/autonomy/index.js.map +1 -0
  335. package/dist/infra/lib/autonomy/schemas.d.ts +317 -0
  336. package/dist/infra/lib/autonomy/schemas.d.ts.map +1 -0
  337. package/dist/infra/lib/autonomy/schemas.js +90 -0
  338. package/dist/infra/lib/autonomy/schemas.js.map +1 -0
  339. package/dist/infra/lib/claude/index.d.ts +5 -0
  340. package/dist/infra/lib/claude/index.d.ts.map +1 -0
  341. package/dist/infra/lib/claude/index.js +5 -0
  342. package/dist/infra/lib/claude/index.js.map +1 -0
  343. package/dist/infra/lib/claude/storage.d.ts +12 -0
  344. package/dist/infra/lib/claude/storage.d.ts.map +1 -0
  345. package/dist/infra/lib/claude/storage.js +59 -0
  346. package/dist/infra/lib/claude/storage.js.map +1 -0
  347. package/dist/infra/lib/claude-storage.d.ts +12 -0
  348. package/dist/infra/lib/claude-storage.d.ts.map +1 -0
  349. package/dist/infra/lib/claude-storage.js +59 -0
  350. package/dist/infra/lib/claude-storage.js.map +1 -0
  351. package/dist/infra/lib/constants.d.ts +76 -0
  352. package/dist/infra/lib/constants.d.ts.map +1 -0
  353. package/dist/infra/lib/constants.js +92 -0
  354. package/dist/infra/lib/constants.js.map +1 -0
  355. package/dist/infra/lib/embedding/EmbeddingProvider.d.ts +20 -0
  356. package/dist/infra/lib/embedding/EmbeddingProvider.d.ts.map +1 -0
  357. package/dist/infra/lib/embedding/EmbeddingProvider.js +82 -0
  358. package/dist/infra/lib/embedding/EmbeddingProvider.js.map +1 -0
  359. package/dist/infra/lib/embedding/VectorStore.d.ts +47 -0
  360. package/dist/infra/lib/embedding/VectorStore.d.ts.map +1 -0
  361. package/dist/infra/lib/embedding/VectorStore.js +116 -0
  362. package/dist/infra/lib/embedding/VectorStore.js.map +1 -0
  363. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.d.ts +2 -0
  364. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.d.ts.map +1 -0
  365. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.js +39 -0
  366. package/dist/infra/lib/embedding/__tests__/EmbeddingProvider.test.js.map +1 -0
  367. package/dist/infra/lib/embedding/__tests__/VectorStore.test.d.ts +2 -0
  368. package/dist/infra/lib/embedding/__tests__/VectorStore.test.d.ts.map +1 -0
  369. package/dist/infra/lib/embedding/__tests__/VectorStore.test.js +94 -0
  370. package/dist/infra/lib/embedding/__tests__/VectorStore.test.js.map +1 -0
  371. package/dist/infra/lib/embedding/__tests__/cosine.test.d.ts +2 -0
  372. package/dist/infra/lib/embedding/__tests__/cosine.test.d.ts.map +1 -0
  373. package/dist/infra/lib/embedding/__tests__/cosine.test.js +73 -0
  374. package/dist/infra/lib/embedding/__tests__/cosine.test.js.map +1 -0
  375. package/dist/infra/lib/embedding/cosine.d.ts +19 -0
  376. package/dist/infra/lib/embedding/cosine.d.ts.map +1 -0
  377. package/dist/infra/lib/embedding/cosine.js +40 -0
  378. package/dist/infra/lib/embedding/cosine.js.map +1 -0
  379. package/dist/infra/lib/embedding/index.d.ts +9 -0
  380. package/dist/infra/lib/embedding/index.d.ts.map +1 -0
  381. package/dist/infra/lib/embedding/index.js +8 -0
  382. package/dist/infra/lib/embedding/index.js.map +1 -0
  383. package/dist/infra/lib/embedding/types.d.ts +30 -0
  384. package/dist/infra/lib/embedding/types.d.ts.map +1 -0
  385. package/dist/infra/lib/embedding/types.js +12 -0
  386. package/dist/infra/lib/embedding/types.js.map +1 -0
  387. package/dist/infra/lib/evolution/AgentAnalyzer.d.ts +15 -0
  388. package/dist/infra/lib/evolution/AgentAnalyzer.d.ts.map +1 -0
  389. package/dist/infra/lib/evolution/AgentAnalyzer.js +84 -0
  390. package/dist/infra/lib/evolution/AgentAnalyzer.js.map +1 -0
  391. package/dist/infra/lib/evolution/CircuitBreaker.d.ts +31 -0
  392. package/dist/infra/lib/evolution/CircuitBreaker.d.ts.map +1 -0
  393. package/dist/infra/lib/evolution/CircuitBreaker.js +86 -0
  394. package/dist/infra/lib/evolution/CircuitBreaker.js.map +1 -0
  395. package/dist/infra/lib/evolution/EvolutionOrchestrator.d.ts +35 -0
  396. package/dist/infra/lib/evolution/EvolutionOrchestrator.d.ts.map +1 -0
  397. package/dist/infra/lib/evolution/EvolutionOrchestrator.js +212 -0
  398. package/dist/infra/lib/evolution/EvolutionOrchestrator.js.map +1 -0
  399. package/dist/infra/lib/evolution/GenerationRegistry.d.ts +53 -0
  400. package/dist/infra/lib/evolution/GenerationRegistry.d.ts.map +1 -0
  401. package/dist/infra/lib/evolution/GenerationRegistry.js +121 -0
  402. package/dist/infra/lib/evolution/GenerationRegistry.js.map +1 -0
  403. package/dist/infra/lib/evolution/InsightExtractor.d.ts +24 -0
  404. package/dist/infra/lib/evolution/InsightExtractor.d.ts.map +1 -0
  405. package/dist/infra/lib/evolution/InsightExtractor.js +131 -0
  406. package/dist/infra/lib/evolution/InsightExtractor.js.map +1 -0
  407. package/dist/infra/lib/evolution/InsightStore.d.ts +55 -0
  408. package/dist/infra/lib/evolution/InsightStore.d.ts.map +1 -0
  409. package/dist/infra/lib/evolution/InsightStore.js +219 -0
  410. package/dist/infra/lib/evolution/InsightStore.js.map +1 -0
  411. package/dist/infra/lib/evolution/LifecycleManager.d.ts +43 -0
  412. package/dist/infra/lib/evolution/LifecycleManager.d.ts.map +1 -0
  413. package/dist/infra/lib/evolution/LifecycleManager.js +134 -0
  414. package/dist/infra/lib/evolution/LifecycleManager.js.map +1 -0
  415. package/dist/infra/lib/evolution/RollbackManager.d.ts +26 -0
  416. package/dist/infra/lib/evolution/RollbackManager.d.ts.map +1 -0
  417. package/dist/infra/lib/evolution/RollbackManager.js +133 -0
  418. package/dist/infra/lib/evolution/RollbackManager.js.map +1 -0
  419. package/dist/infra/lib/evolution/SkillGapDetector.d.ts +22 -0
  420. package/dist/infra/lib/evolution/SkillGapDetector.d.ts.map +1 -0
  421. package/dist/infra/lib/evolution/SkillGapDetector.js +81 -0
  422. package/dist/infra/lib/evolution/SkillGapDetector.js.map +1 -0
  423. package/dist/infra/lib/evolution/TriggerCollisionDetector.d.ts +27 -0
  424. package/dist/infra/lib/evolution/TriggerCollisionDetector.d.ts.map +1 -0
  425. package/dist/infra/lib/evolution/TriggerCollisionDetector.js +100 -0
  426. package/dist/infra/lib/evolution/TriggerCollisionDetector.js.map +1 -0
  427. package/dist/infra/lib/evolution/UsageTracker.d.ts +53 -0
  428. package/dist/infra/lib/evolution/UsageTracker.d.ts.map +1 -0
  429. package/dist/infra/lib/evolution/UsageTracker.js +157 -0
  430. package/dist/infra/lib/evolution/UsageTracker.js.map +1 -0
  431. package/dist/infra/lib/evolution/__tests__/generation.test.d.ts +2 -0
  432. package/dist/infra/lib/evolution/__tests__/generation.test.d.ts.map +1 -0
  433. package/dist/infra/lib/evolution/__tests__/generation.test.js +396 -0
  434. package/dist/infra/lib/evolution/__tests__/generation.test.js.map +1 -0
  435. package/dist/infra/lib/evolution/__tests__/insight.test.d.ts +2 -0
  436. package/dist/infra/lib/evolution/__tests__/insight.test.d.ts.map +1 -0
  437. package/dist/infra/lib/evolution/__tests__/insight.test.js +204 -0
  438. package/dist/infra/lib/evolution/__tests__/insight.test.js.map +1 -0
  439. package/dist/infra/lib/evolution/__tests__/integration.test.d.ts +2 -0
  440. package/dist/infra/lib/evolution/__tests__/integration.test.d.ts.map +1 -0
  441. package/dist/infra/lib/evolution/__tests__/integration.test.js +248 -0
  442. package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -0
  443. package/dist/infra/lib/evolution/__tests__/lifecycle.test.d.ts +2 -0
  444. package/dist/infra/lib/evolution/__tests__/lifecycle.test.d.ts.map +1 -0
  445. package/dist/infra/lib/evolution/__tests__/lifecycle.test.js +350 -0
  446. package/dist/infra/lib/evolution/__tests__/lifecycle.test.js.map +1 -0
  447. package/dist/infra/lib/evolution/generators/AgentGenerator.d.ts +14 -0
  448. package/dist/infra/lib/evolution/generators/AgentGenerator.d.ts.map +1 -0
  449. package/dist/infra/lib/evolution/generators/AgentGenerator.js +55 -0
  450. package/dist/infra/lib/evolution/generators/AgentGenerator.js.map +1 -0
  451. package/dist/infra/lib/evolution/generators/RuleGenerator.d.ts +13 -0
  452. package/dist/infra/lib/evolution/generators/RuleGenerator.d.ts.map +1 -0
  453. package/dist/infra/lib/evolution/generators/RuleGenerator.js +52 -0
  454. package/dist/infra/lib/evolution/generators/RuleGenerator.js.map +1 -0
  455. package/dist/infra/lib/evolution/generators/SkillGenerator.d.ts +15 -0
  456. package/dist/infra/lib/evolution/generators/SkillGenerator.d.ts.map +1 -0
  457. package/dist/infra/lib/evolution/generators/SkillGenerator.js +73 -0
  458. package/dist/infra/lib/evolution/generators/SkillGenerator.js.map +1 -0
  459. package/dist/infra/lib/evolution/index.d.ts +23 -0
  460. package/dist/infra/lib/evolution/index.d.ts.map +1 -0
  461. package/dist/infra/lib/evolution/index.js +21 -0
  462. package/dist/infra/lib/evolution/index.js.map +1 -0
  463. package/dist/infra/lib/gemini/auth.d.ts +30 -0
  464. package/dist/infra/lib/gemini/auth.d.ts.map +1 -0
  465. package/dist/infra/lib/gemini/auth.js +351 -0
  466. package/dist/infra/lib/gemini/auth.js.map +1 -0
  467. package/dist/infra/lib/gemini/capabilities.d.ts +32 -0
  468. package/dist/infra/lib/gemini/capabilities.d.ts.map +1 -0
  469. package/dist/infra/lib/gemini/capabilities.js +336 -0
  470. package/dist/infra/lib/gemini/capabilities.js.map +1 -0
  471. package/dist/infra/lib/gemini/chat.d.ts +44 -0
  472. package/dist/infra/lib/gemini/chat.d.ts.map +1 -0
  473. package/dist/infra/lib/gemini/chat.js +473 -0
  474. package/dist/infra/lib/gemini/chat.js.map +1 -0
  475. package/dist/infra/lib/gemini/completion.d.ts +22 -0
  476. package/dist/infra/lib/gemini/completion.d.ts.map +1 -0
  477. package/dist/infra/lib/gemini/completion.js +104 -0
  478. package/dist/infra/lib/gemini/completion.js.map +1 -0
  479. package/dist/infra/lib/gemini/constants.d.ts +37 -0
  480. package/dist/infra/lib/gemini/constants.d.ts.map +1 -0
  481. package/dist/infra/lib/gemini/constants.js +86 -0
  482. package/dist/infra/lib/gemini/constants.js.map +1 -0
  483. package/dist/infra/lib/gemini/index.d.ts +15 -0
  484. package/dist/infra/lib/gemini/index.d.ts.map +1 -0
  485. package/dist/infra/lib/gemini/index.js +14 -0
  486. package/dist/infra/lib/gemini/index.js.map +1 -0
  487. package/dist/infra/lib/gemini/models.d.ts +12 -0
  488. package/dist/infra/lib/gemini/models.d.ts.map +1 -0
  489. package/dist/infra/lib/gemini/models.js +114 -0
  490. package/dist/infra/lib/gemini/models.js.map +1 -0
  491. package/dist/infra/lib/gemini/orchestration.d.ts +33 -0
  492. package/dist/infra/lib/gemini/orchestration.d.ts.map +1 -0
  493. package/dist/infra/lib/gemini/orchestration.js +62 -0
  494. package/dist/infra/lib/gemini/orchestration.js.map +1 -0
  495. package/dist/infra/lib/gemini/types.d.ts +143 -0
  496. package/dist/infra/lib/gemini/types.d.ts.map +1 -0
  497. package/dist/infra/lib/gemini/types.js +5 -0
  498. package/dist/infra/lib/gemini/types.js.map +1 -0
  499. package/dist/infra/lib/gemini-api.d.ts +13 -0
  500. package/dist/infra/lib/gemini-api.d.ts.map +1 -0
  501. package/dist/infra/lib/gemini-api.js +13 -0
  502. package/dist/infra/lib/gemini-api.js.map +1 -0
  503. package/dist/infra/lib/gemini-constants.d.ts +8 -0
  504. package/dist/infra/lib/gemini-constants.d.ts.map +1 -0
  505. package/dist/infra/lib/gemini-constants.js +18 -0
  506. package/dist/infra/lib/gemini-constants.js.map +1 -0
  507. package/dist/infra/lib/gemini-oauth.d.ts.map +1 -0
  508. package/dist/infra/lib/gemini-oauth.js.map +1 -0
  509. package/dist/infra/lib/gemini-storage.d.ts.map +1 -0
  510. package/dist/infra/lib/gemini-storage.js.map +1 -0
  511. package/dist/infra/lib/gpt/auth.d.ts +19 -0
  512. package/dist/infra/lib/gpt/auth.d.ts.map +1 -0
  513. package/dist/infra/lib/gpt/auth.js +116 -0
  514. package/dist/infra/lib/gpt/auth.js.map +1 -0
  515. package/dist/infra/lib/gpt/chat.d.ts +36 -0
  516. package/dist/infra/lib/gpt/chat.d.ts.map +1 -0
  517. package/dist/infra/lib/gpt/chat.js +460 -0
  518. package/dist/infra/lib/gpt/chat.js.map +1 -0
  519. package/dist/infra/lib/gpt/constants.d.ts +12 -0
  520. package/dist/infra/lib/gpt/constants.d.ts.map +1 -0
  521. package/dist/infra/lib/gpt/constants.js +18 -0
  522. package/dist/infra/lib/gpt/constants.js.map +1 -0
  523. package/dist/infra/lib/gpt/embedding.d.ts +15 -0
  524. package/dist/infra/lib/gpt/embedding.d.ts.map +1 -0
  525. package/dist/infra/lib/gpt/embedding.js +79 -0
  526. package/dist/infra/lib/gpt/embedding.js.map +1 -0
  527. package/dist/infra/lib/gpt/index.d.ts +17 -0
  528. package/dist/infra/lib/gpt/index.d.ts.map +1 -0
  529. package/dist/infra/lib/gpt/index.js +17 -0
  530. package/dist/infra/lib/gpt/index.js.map +1 -0
  531. package/dist/infra/lib/gpt/oauth.d.ts +66 -0
  532. package/dist/infra/lib/gpt/oauth.d.ts.map +1 -0
  533. package/dist/infra/lib/gpt/oauth.js +403 -0
  534. package/dist/infra/lib/gpt/oauth.js.map +1 -0
  535. package/dist/infra/lib/gpt/orchestration.d.ts +28 -0
  536. package/dist/infra/lib/gpt/orchestration.d.ts.map +1 -0
  537. package/dist/infra/lib/gpt/orchestration.js +52 -0
  538. package/dist/infra/lib/gpt/orchestration.js.map +1 -0
  539. package/dist/infra/lib/gpt/specializations.d.ts +12 -0
  540. package/dist/infra/lib/gpt/specializations.d.ts.map +1 -0
  541. package/dist/infra/lib/gpt/specializations.js +27 -0
  542. package/dist/infra/lib/gpt/specializations.js.map +1 -0
  543. package/dist/infra/lib/gpt/types.d.ts +70 -0
  544. package/dist/infra/lib/gpt/types.d.ts.map +1 -0
  545. package/dist/infra/lib/gpt/types.js +5 -0
  546. package/dist/infra/lib/gpt/types.js.map +1 -0
  547. package/dist/infra/lib/gpt-api.d.ts +13 -0
  548. package/dist/infra/lib/gpt-api.d.ts.map +1 -0
  549. package/dist/infra/lib/gpt-api.js +13 -0
  550. package/dist/infra/lib/gpt-api.js.map +1 -0
  551. package/dist/infra/lib/gpt-constants.d.ts +12 -0
  552. package/dist/infra/lib/gpt-constants.d.ts.map +1 -0
  553. package/dist/infra/lib/gpt-constants.js +18 -0
  554. package/dist/infra/lib/gpt-constants.js.map +1 -0
  555. package/dist/infra/lib/gpt-oauth.d.ts.map +1 -0
  556. package/dist/infra/lib/gpt-oauth.js +389 -0
  557. package/dist/infra/lib/gpt-oauth.js.map +1 -0
  558. package/dist/infra/lib/gpt-storage.d.ts +40 -0
  559. package/dist/infra/lib/gpt-storage.d.ts.map +1 -0
  560. package/dist/infra/lib/gpt-storage.js +106 -0
  561. package/dist/infra/lib/gpt-storage.js.map +1 -0
  562. package/dist/infra/lib/llm/auth/ApiKeyManager.d.ts.map +1 -0
  563. package/dist/infra/lib/llm/auth/ApiKeyManager.js.map +1 -0
  564. package/dist/infra/lib/llm/auth/AuthProfileManager.d.ts +59 -0
  565. package/dist/infra/lib/llm/auth/AuthProfileManager.d.ts.map +1 -0
  566. package/dist/infra/lib/llm/auth/AuthProfileManager.js +248 -0
  567. package/dist/infra/lib/llm/auth/AuthProfileManager.js.map +1 -0
  568. package/dist/infra/lib/llm/auth/AuthProfileManager.test.d.ts +5 -0
  569. package/dist/infra/lib/llm/auth/AuthProfileManager.test.d.ts.map +1 -0
  570. package/dist/infra/lib/llm/auth/AuthProfileManager.test.js +168 -0
  571. package/dist/infra/lib/llm/auth/AuthProfileManager.test.js.map +1 -0
  572. package/dist/infra/lib/llm/auth/ConfigManager.d.ts +29 -0
  573. package/dist/infra/lib/llm/auth/ConfigManager.d.ts.map +1 -0
  574. package/dist/infra/lib/llm/auth/ConfigManager.js +67 -0
  575. package/dist/infra/lib/llm/auth/ConfigManager.js.map +1 -0
  576. package/dist/infra/lib/llm/auth/ProfileFileLock.d.ts +16 -0
  577. package/dist/infra/lib/llm/auth/ProfileFileLock.d.ts.map +1 -0
  578. package/dist/infra/lib/llm/auth/ProfileFileLock.js +99 -0
  579. package/dist/infra/lib/llm/auth/ProfileFileLock.js.map +1 -0
  580. package/dist/infra/lib/llm/auth/TokenRefresher.d.ts +35 -0
  581. package/dist/infra/lib/llm/auth/TokenRefresher.d.ts.map +1 -0
  582. package/dist/infra/lib/llm/auth/TokenRefresher.js +217 -0
  583. package/dist/infra/lib/llm/auth/TokenRefresher.js.map +1 -0
  584. package/dist/infra/lib/llm/auth/TokenRefresher.test.d.ts +2 -0
  585. package/dist/infra/lib/llm/auth/TokenRefresher.test.d.ts.map +1 -0
  586. package/dist/infra/lib/llm/auth/TokenRefresher.test.js +120 -0
  587. package/dist/infra/lib/llm/auth/TokenRefresher.test.js.map +1 -0
  588. package/dist/infra/lib/llm/auth/index.d.ts +30 -0
  589. package/dist/infra/lib/llm/auth/index.d.ts.map +1 -0
  590. package/dist/infra/lib/llm/auth/index.js +86 -0
  591. package/dist/infra/lib/llm/auth/index.js.map +1 -0
  592. package/dist/infra/lib/llm/index.d.ts.map +1 -0
  593. package/dist/infra/lib/llm/index.js.map +1 -0
  594. package/dist/infra/lib/llm/types.d.ts.map +1 -0
  595. package/dist/infra/lib/llm/types.js.map +1 -0
  596. package/dist/infra/lib/llm/utils/index.d.ts.map +1 -0
  597. package/dist/infra/lib/llm/utils/index.js.map +1 -0
  598. package/dist/infra/lib/llm/utils/retry.d.ts.map +1 -0
  599. package/dist/infra/lib/llm/utils/retry.js.map +1 -0
  600. package/dist/infra/lib/llm/utils/stream.d.ts.map +1 -0
  601. package/dist/infra/lib/llm/utils/stream.js.map +1 -0
  602. package/dist/infra/lib/memory/KnowledgeGraph.d.ts.map +1 -0
  603. package/dist/infra/lib/memory/KnowledgeGraph.js.map +1 -0
  604. package/dist/infra/lib/memory/KnowledgeGraph.test.d.ts.map +1 -0
  605. package/dist/infra/lib/memory/KnowledgeGraph.test.js +189 -0
  606. package/dist/infra/lib/memory/KnowledgeGraph.test.js.map +1 -0
  607. package/dist/infra/lib/memory/MemorySearch.d.ts +55 -0
  608. package/dist/infra/lib/memory/MemorySearch.d.ts.map +1 -0
  609. package/dist/infra/lib/memory/MemorySearch.js +309 -0
  610. package/dist/infra/lib/memory/MemorySearch.js.map +1 -0
  611. package/dist/infra/lib/memory/MemorySearch.test.d.ts.map +1 -0
  612. package/dist/infra/lib/memory/MemorySearch.test.js +149 -0
  613. package/dist/infra/lib/memory/MemorySearch.test.js.map +1 -0
  614. package/dist/infra/lib/memory/MemoryStorage.d.ts +110 -0
  615. package/dist/infra/lib/memory/MemoryStorage.d.ts.map +1 -0
  616. package/dist/infra/lib/memory/MemoryStorage.js +527 -0
  617. package/dist/infra/lib/memory/MemoryStorage.js.map +1 -0
  618. package/dist/infra/lib/memory/MemoryStorage.test.d.ts.map +1 -0
  619. package/dist/infra/lib/memory/MemoryStorage.test.js +198 -0
  620. package/dist/infra/lib/memory/MemoryStorage.test.js.map +1 -0
  621. package/dist/infra/lib/memory/ObservationStore.d.ts.map +1 -0
  622. package/dist/infra/lib/memory/ObservationStore.js.map +1 -0
  623. package/dist/infra/lib/memory/ReflectionStore.d.ts +60 -0
  624. package/dist/infra/lib/memory/ReflectionStore.d.ts.map +1 -0
  625. package/dist/infra/lib/memory/ReflectionStore.js +177 -0
  626. package/dist/infra/lib/memory/ReflectionStore.js.map +1 -0
  627. package/dist/infra/lib/memory/SessionRAGRetriever.d.ts +88 -0
  628. package/dist/infra/lib/memory/SessionRAGRetriever.d.ts.map +1 -0
  629. package/dist/infra/lib/memory/SessionRAGRetriever.js +306 -0
  630. package/dist/infra/lib/memory/SessionRAGRetriever.js.map +1 -0
  631. package/dist/infra/lib/memory/SessionRAGRetriever.test.d.ts.map +1 -0
  632. package/dist/infra/lib/memory/SessionRAGRetriever.test.js +180 -0
  633. package/dist/infra/lib/memory/SessionRAGRetriever.test.js.map +1 -0
  634. package/dist/infra/lib/memory/SessionRAGStore.d.ts +163 -0
  635. package/dist/infra/lib/memory/SessionRAGStore.d.ts.map +1 -0
  636. package/dist/infra/lib/memory/SessionRAGStore.js +728 -0
  637. package/dist/infra/lib/memory/SessionRAGStore.js.map +1 -0
  638. package/dist/infra/lib/memory/SessionRAGStore.test.d.ts.map +1 -0
  639. package/dist/infra/lib/memory/SessionRAGStore.test.js +326 -0
  640. package/dist/infra/lib/memory/SessionRAGStore.test.js.map +1 -0
  641. package/dist/infra/lib/memory/SessionSummarizer.d.ts.map +1 -0
  642. package/dist/infra/lib/memory/SessionSummarizer.js.map +1 -0
  643. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.d.ts +2 -0
  644. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.d.ts.map +1 -0
  645. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.js +196 -0
  646. package/dist/infra/lib/memory/__tests__/ReflectionStore.test.js.map +1 -0
  647. package/dist/infra/lib/memory/index.d.ts +11 -0
  648. package/dist/infra/lib/memory/index.d.ts.map +1 -0
  649. package/dist/infra/lib/memory/index.js +13 -0
  650. package/dist/infra/lib/memory/index.js.map +1 -0
  651. package/dist/infra/lib/memory/index.test.d.ts +2 -0
  652. package/dist/infra/lib/memory/index.test.d.ts.map +1 -0
  653. package/dist/infra/lib/memory/index.test.js +23 -0
  654. package/dist/infra/lib/memory/index.test.js.map +1 -0
  655. package/dist/infra/lib/sync/constants.d.ts +21 -0
  656. package/dist/infra/lib/sync/constants.d.ts.map +1 -0
  657. package/dist/infra/lib/sync/constants.js +78 -0
  658. package/dist/infra/lib/sync/constants.js.map +1 -0
  659. package/dist/infra/lib/sync/crypto.d.ts +23 -0
  660. package/dist/infra/lib/sync/crypto.d.ts.map +1 -0
  661. package/dist/infra/lib/sync/crypto.js +55 -0
  662. package/dist/infra/lib/sync/crypto.js.map +1 -0
  663. package/dist/infra/lib/sync/drive.d.ts +22 -0
  664. package/dist/infra/lib/sync/drive.d.ts.map +1 -0
  665. package/dist/infra/lib/sync/drive.js +99 -0
  666. package/dist/infra/lib/sync/drive.js.map +1 -0
  667. package/dist/infra/lib/sync/index.d.ts +9 -0
  668. package/dist/infra/lib/sync/index.d.ts.map +1 -0
  669. package/dist/infra/lib/sync/index.js +9 -0
  670. package/dist/infra/lib/sync/index.js.map +1 -0
  671. package/dist/infra/lib/sync/oauth.d.ts +12 -0
  672. package/dist/infra/lib/sync/oauth.d.ts.map +1 -0
  673. package/dist/infra/lib/sync/oauth.js +157 -0
  674. package/dist/infra/lib/sync/oauth.js.map +1 -0
  675. package/dist/infra/lib/sync/storage.d.ts +21 -0
  676. package/dist/infra/lib/sync/storage.d.ts.map +1 -0
  677. package/dist/infra/lib/sync/storage.js +32 -0
  678. package/dist/infra/lib/sync/storage.js.map +1 -0
  679. package/dist/infra/lib/ui-ux/Bm25Engine.d.ts +67 -0
  680. package/dist/infra/lib/ui-ux/Bm25Engine.d.ts.map +1 -0
  681. package/dist/infra/lib/ui-ux/Bm25Engine.js +153 -0
  682. package/dist/infra/lib/ui-ux/Bm25Engine.js.map +1 -0
  683. package/dist/infra/lib/ui-ux/Bm25Engine.test.d.ts +2 -0
  684. package/dist/infra/lib/ui-ux/Bm25Engine.test.d.ts.map +1 -0
  685. package/dist/infra/lib/ui-ux/Bm25Engine.test.js +159 -0
  686. package/dist/infra/lib/ui-ux/Bm25Engine.test.js.map +1 -0
  687. package/dist/infra/lib/ui-ux/CsvDataLoader.d.ts +48 -0
  688. package/dist/infra/lib/ui-ux/CsvDataLoader.d.ts.map +1 -0
  689. package/dist/infra/lib/ui-ux/CsvDataLoader.js +125 -0
  690. package/dist/infra/lib/ui-ux/CsvDataLoader.js.map +1 -0
  691. package/dist/infra/lib/ui-ux/CsvDataLoader.test.d.ts +2 -0
  692. package/dist/infra/lib/ui-ux/CsvDataLoader.test.d.ts.map +1 -0
  693. package/dist/infra/lib/ui-ux/CsvDataLoader.test.js +141 -0
  694. package/dist/infra/lib/ui-ux/CsvDataLoader.test.js.map +1 -0
  695. package/dist/infra/lib/ui-ux/DesignSystemGenerator.d.ts +119 -0
  696. package/dist/infra/lib/ui-ux/DesignSystemGenerator.d.ts.map +1 -0
  697. package/dist/infra/lib/ui-ux/DesignSystemGenerator.js +519 -0
  698. package/dist/infra/lib/ui-ux/DesignSystemGenerator.js.map +1 -0
  699. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.d.ts +2 -0
  700. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.d.ts.map +1 -0
  701. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.js +370 -0
  702. package/dist/infra/lib/ui-ux/DesignSystemGenerator.test.js.map +1 -0
  703. package/dist/infra/lib/ui-ux/SearchService.d.ts +64 -0
  704. package/dist/infra/lib/ui-ux/SearchService.d.ts.map +1 -0
  705. package/dist/infra/lib/ui-ux/SearchService.js +240 -0
  706. package/dist/infra/lib/ui-ux/SearchService.js.map +1 -0
  707. package/dist/infra/lib/ui-ux/SearchService.test.d.ts +2 -0
  708. package/dist/infra/lib/ui-ux/SearchService.test.d.ts.map +1 -0
  709. package/dist/infra/lib/ui-ux/SearchService.test.js +215 -0
  710. package/dist/infra/lib/ui-ux/SearchService.test.js.map +1 -0
  711. package/dist/infra/lib/ui-ux/UiUxWorkflow.d.ts +58 -0
  712. package/dist/infra/lib/ui-ux/UiUxWorkflow.d.ts.map +1 -0
  713. package/dist/infra/lib/ui-ux/UiUxWorkflow.js +163 -0
  714. package/dist/infra/lib/ui-ux/UiUxWorkflow.js.map +1 -0
  715. package/dist/infra/lib/ui-ux/constants.d.ts +39 -0
  716. package/dist/infra/lib/ui-ux/constants.d.ts.map +1 -0
  717. package/dist/infra/lib/ui-ux/constants.js +203 -0
  718. package/dist/infra/lib/ui-ux/constants.js.map +1 -0
  719. package/dist/infra/lib/ui-ux/index.d.ts +11 -0
  720. package/dist/infra/lib/ui-ux/index.d.ts.map +1 -0
  721. package/dist/infra/lib/ui-ux/index.js +11 -0
  722. package/dist/infra/lib/ui-ux/index.js.map +1 -0
  723. package/dist/infra/lib/ui-ux/types.d.ts +243 -0
  724. package/dist/infra/lib/ui-ux/types.d.ts.map +1 -0
  725. package/dist/infra/lib/ui-ux/types.js +7 -0
  726. package/dist/infra/lib/ui-ux/types.js.map +1 -0
  727. package/dist/infra/lib/utils.d.ts.map +1 -0
  728. package/dist/infra/lib/utils.js.map +1 -0
  729. package/dist/infra/orchestrator/AgentAnnouncer.d.ts +64 -0
  730. package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +1 -0
  731. package/dist/infra/orchestrator/AgentAnnouncer.js +127 -0
  732. package/dist/infra/orchestrator/AgentAnnouncer.js.map +1 -0
  733. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +5 -0
  734. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +1 -0
  735. package/dist/infra/orchestrator/AgentAnnouncer.test.js +119 -0
  736. package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +1 -0
  737. package/dist/infra/orchestrator/AgentExecutor.d.ts +22 -0
  738. package/dist/infra/orchestrator/AgentExecutor.d.ts.map +1 -0
  739. package/dist/infra/orchestrator/AgentExecutor.js +240 -0
  740. package/dist/infra/orchestrator/AgentExecutor.js.map +1 -0
  741. package/dist/infra/orchestrator/AgentManager.d.ts +72 -0
  742. package/dist/infra/orchestrator/AgentManager.d.ts.map +1 -0
  743. package/dist/infra/orchestrator/AgentManager.js +182 -0
  744. package/dist/infra/orchestrator/AgentManager.js.map +1 -0
  745. package/dist/infra/orchestrator/AgentRegistry.d.ts +76 -0
  746. package/dist/infra/orchestrator/AgentRegistry.d.ts.map +1 -0
  747. package/dist/infra/orchestrator/AgentRegistry.js +217 -0
  748. package/dist/infra/orchestrator/AgentRegistry.js.map +1 -0
  749. package/dist/infra/orchestrator/AgentRegistry.test.d.ts +5 -0
  750. package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +1 -0
  751. package/dist/infra/orchestrator/AgentRegistry.test.js +122 -0
  752. package/dist/infra/orchestrator/AgentRegistry.test.js.map +1 -0
  753. package/dist/infra/orchestrator/BackgroundManager.d.ts +128 -0
  754. package/dist/infra/orchestrator/BackgroundManager.d.ts.map +1 -0
  755. package/dist/infra/orchestrator/BackgroundManager.js +617 -0
  756. package/dist/infra/orchestrator/BackgroundManager.js.map +1 -0
  757. package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +1 -0
  758. package/dist/infra/orchestrator/BackgroundManager.test.js.map +1 -0
  759. package/dist/infra/orchestrator/CheckpointManager.d.ts +54 -0
  760. package/dist/infra/orchestrator/CheckpointManager.d.ts.map +1 -0
  761. package/dist/infra/orchestrator/CheckpointManager.js +121 -0
  762. package/dist/infra/orchestrator/CheckpointManager.js.map +1 -0
  763. package/dist/infra/orchestrator/LLMCluster.d.ts +69 -0
  764. package/dist/infra/orchestrator/LLMCluster.d.ts.map +1 -0
  765. package/dist/infra/orchestrator/LLMCluster.js +90 -0
  766. package/dist/infra/orchestrator/LLMCluster.js.map +1 -0
  767. package/dist/infra/orchestrator/MultiLlmResearch.d.ts +26 -0
  768. package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +1 -0
  769. package/dist/infra/orchestrator/MultiLlmResearch.js +144 -0
  770. package/dist/infra/orchestrator/MultiLlmResearch.js.map +1 -0
  771. package/dist/infra/orchestrator/PhasePipeline.d.ts +122 -0
  772. package/dist/infra/orchestrator/PhasePipeline.d.ts.map +1 -0
  773. package/dist/infra/orchestrator/PhasePipeline.js +381 -0
  774. package/dist/infra/orchestrator/PhasePipeline.js.map +1 -0
  775. package/dist/infra/orchestrator/PhaseResultStore.d.ts +39 -0
  776. package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +1 -0
  777. package/dist/infra/orchestrator/PhaseResultStore.js +151 -0
  778. package/dist/infra/orchestrator/PhaseResultStore.js.map +1 -0
  779. package/dist/infra/orchestrator/SessionStore.d.ts +40 -0
  780. package/dist/infra/orchestrator/SessionStore.d.ts.map +1 -0
  781. package/dist/infra/orchestrator/SessionStore.js +116 -0
  782. package/dist/infra/orchestrator/SessionStore.js.map +1 -0
  783. package/dist/infra/orchestrator/SmartRouter.d.ts +77 -0
  784. package/dist/infra/orchestrator/SmartRouter.d.ts.map +1 -0
  785. package/dist/infra/orchestrator/SmartRouter.js +267 -0
  786. package/dist/infra/orchestrator/SmartRouter.js.map +1 -0
  787. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +143 -0
  788. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +1 -0
  789. package/dist/infra/orchestrator/SwarmOrchestrator.js +377 -0
  790. package/dist/infra/orchestrator/SwarmOrchestrator.js.map +1 -0
  791. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +1 -0
  792. package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +1 -0
  793. package/dist/infra/orchestrator/agentDiscovery.d.ts.map +1 -0
  794. package/dist/infra/orchestrator/agentDiscovery.js.map +1 -0
  795. package/dist/infra/orchestrator/backgroundAgent.d.ts +9 -0
  796. package/dist/infra/orchestrator/backgroundAgent.d.ts.map +1 -0
  797. package/dist/infra/orchestrator/backgroundAgent.js +10 -0
  798. package/dist/infra/orchestrator/backgroundAgent.js.map +1 -0
  799. package/dist/infra/orchestrator/index.d.ts +204 -0
  800. package/dist/infra/orchestrator/index.d.ts.map +1 -0
  801. package/dist/infra/orchestrator/index.js +360 -0
  802. package/dist/infra/orchestrator/index.js.map +1 -0
  803. package/dist/infra/orchestrator/orchestrator.d.ts +60 -0
  804. package/dist/infra/orchestrator/orchestrator.d.ts.map +1 -0
  805. package/dist/infra/orchestrator/orchestrator.js +214 -0
  806. package/dist/infra/orchestrator/orchestrator.js.map +1 -0
  807. package/dist/infra/orchestrator/parallelResearch.d.ts +27 -0
  808. package/dist/infra/orchestrator/parallelResearch.d.ts.map +1 -0
  809. package/dist/infra/orchestrator/parallelResearch.js +244 -0
  810. package/dist/infra/orchestrator/parallelResearch.js.map +1 -0
  811. package/dist/infra/orchestrator/types.d.ts +175 -0
  812. package/dist/infra/orchestrator/types.d.ts.map +1 -0
  813. package/dist/infra/orchestrator/types.js +21 -0
  814. package/dist/infra/orchestrator/types.js.map +1 -0
  815. package/dist/infra/types/tool.d.ts.map +1 -0
  816. package/dist/infra/types/tool.js.map +1 -0
  817. package/dist/tools/convention/analyzeComplexity.d.ts +1 -1
  818. package/dist/tools/convention/analyzeComplexity.d.ts.map +1 -1
  819. package/dist/tools/convention/analyzeComplexity.js +1 -1
  820. package/dist/tools/convention/analyzeComplexity.js.map +1 -1
  821. package/dist/tools/convention/applyQualityRules.d.ts +1 -1
  822. package/dist/tools/convention/applyQualityRules.d.ts.map +1 -1
  823. package/dist/tools/convention/checkCouplingCohesion.d.ts +1 -1
  824. package/dist/tools/convention/checkCouplingCohesion.d.ts.map +1 -1
  825. package/dist/tools/convention/suggestImprovements.d.ts +1 -1
  826. package/dist/tools/convention/suggestImprovements.d.ts.map +1 -1
  827. package/dist/tools/convention/validateCodeQuality.d.ts +1 -1
  828. package/dist/tools/convention/validateCodeQuality.d.ts.map +1 -1
  829. package/dist/tools/evolution/dashboardTools.d.ts +26 -0
  830. package/dist/tools/evolution/dashboardTools.d.ts.map +1 -0
  831. package/dist/tools/evolution/dashboardTools.js +216 -0
  832. package/dist/tools/evolution/dashboardTools.js.map +1 -0
  833. package/dist/tools/evolution/index.d.ts +3 -0
  834. package/dist/tools/evolution/index.d.ts.map +1 -0
  835. package/dist/tools/evolution/index.js +6 -0
  836. package/dist/tools/evolution/index.js.map +1 -0
  837. package/dist/tools/evolution/insightTools.d.ts +21 -0
  838. package/dist/tools/evolution/insightTools.d.ts.map +1 -0
  839. package/dist/tools/evolution/insightTools.js +184 -0
  840. package/dist/tools/evolution/insightTools.js.map +1 -0
  841. package/dist/tools/index.d.ts +31 -21
  842. package/dist/tools/index.d.ts.map +1 -1
  843. package/dist/tools/index.js +38 -26
  844. package/dist/tools/index.js.map +1 -1
  845. package/dist/tools/interaction/askUser.d.ts +2 -2
  846. package/dist/tools/interaction/askUser.d.ts.map +1 -1
  847. package/dist/tools/interaction/askUser.js +1 -1
  848. package/dist/tools/memory/addObservation.d.ts +2 -2
  849. package/dist/tools/memory/addObservation.d.ts.map +1 -1
  850. package/dist/tools/memory/addObservation.js +1 -1
  851. package/dist/tools/memory/addObservation.js.map +1 -1
  852. package/dist/tools/memory/autoSaveContext.d.ts +1 -1
  853. package/dist/tools/memory/autoSaveContext.d.ts.map +1 -1
  854. package/dist/tools/memory/autoSaveContext.js +2 -2
  855. package/dist/tools/memory/autoSaveContext.js.map +1 -1
  856. package/dist/tools/memory/createMemoryTimeline.d.ts +1 -1
  857. package/dist/tools/memory/createMemoryTimeline.d.ts.map +1 -1
  858. package/dist/tools/memory/createMemoryTimeline.js +11 -11
  859. package/dist/tools/memory/createMemoryTimeline.js.map +1 -1
  860. package/dist/tools/memory/deleteMemory.d.ts +1 -1
  861. package/dist/tools/memory/deleteMemory.d.ts.map +1 -1
  862. package/dist/tools/memory/deleteMemory.js +1 -1
  863. package/dist/tools/memory/deleteMemory.js.map +1 -1
  864. package/dist/tools/memory/getMemoryGraph.d.ts +1 -1
  865. package/dist/tools/memory/getMemoryGraph.d.ts.map +1 -1
  866. package/dist/tools/memory/getMemoryGraph.js +13 -13
  867. package/dist/tools/memory/getMemoryGraph.js.map +1 -1
  868. package/dist/tools/memory/getSessionContext.d.ts +1 -1
  869. package/dist/tools/memory/getSessionContext.d.ts.map +1 -1
  870. package/dist/tools/memory/getSessionContext.js +10 -10
  871. package/dist/tools/memory/getSessionContext.js.map +1 -1
  872. package/dist/tools/memory/index.d.ts +1 -0
  873. package/dist/tools/memory/index.d.ts.map +1 -1
  874. package/dist/tools/memory/index.js +2 -0
  875. package/dist/tools/memory/index.js.map +1 -1
  876. package/dist/tools/memory/linkMemories.d.ts +1 -1
  877. package/dist/tools/memory/linkMemories.d.ts.map +1 -1
  878. package/dist/tools/memory/linkMemories.js +15 -15
  879. package/dist/tools/memory/linkMemories.js.map +1 -1
  880. package/dist/tools/memory/listMemories.d.ts +1 -1
  881. package/dist/tools/memory/listMemories.d.ts.map +1 -1
  882. package/dist/tools/memory/listMemories.js +5 -5
  883. package/dist/tools/memory/listMemories.js.map +1 -1
  884. package/dist/tools/memory/manageGoals.d.ts +2 -2
  885. package/dist/tools/memory/manageGoals.d.ts.map +1 -1
  886. package/dist/tools/memory/manageGoals.js +1 -1
  887. package/dist/tools/memory/manageGoals.js.map +1 -1
  888. package/dist/tools/memory/prioritizeMemory.d.ts +1 -1
  889. package/dist/tools/memory/prioritizeMemory.d.ts.map +1 -1
  890. package/dist/tools/memory/prioritizeMemory.js +1 -1
  891. package/dist/tools/memory/prioritizeMemory.js.map +1 -1
  892. package/dist/tools/memory/recallMemory.d.ts +1 -1
  893. package/dist/tools/memory/recallMemory.d.ts.map +1 -1
  894. package/dist/tools/memory/recallMemory.js +5 -5
  895. package/dist/tools/memory/recallMemory.js.map +1 -1
  896. package/dist/tools/memory/reflectionTools.d.ts +27 -0
  897. package/dist/tools/memory/reflectionTools.d.ts.map +1 -0
  898. package/dist/tools/memory/reflectionTools.js +180 -0
  899. package/dist/tools/memory/reflectionTools.js.map +1 -0
  900. package/dist/tools/memory/restoreSessionContext.d.ts +1 -1
  901. package/dist/tools/memory/restoreSessionContext.d.ts.map +1 -1
  902. package/dist/tools/memory/restoreSessionContext.js +1 -1
  903. package/dist/tools/memory/restoreSessionContext.js.map +1 -1
  904. package/dist/tools/memory/retrieveSessionContext.d.ts +1 -1
  905. package/dist/tools/memory/retrieveSessionContext.d.ts.map +1 -1
  906. package/dist/tools/memory/retrieveSessionContext.js +1 -1
  907. package/dist/tools/memory/retrieveSessionContext.js.map +1 -1
  908. package/dist/tools/memory/saveMemory.d.ts +1 -1
  909. package/dist/tools/memory/saveMemory.d.ts.map +1 -1
  910. package/dist/tools/memory/saveMemory.js +5 -5
  911. package/dist/tools/memory/saveMemory.js.map +1 -1
  912. package/dist/tools/memory/saveSessionItem.d.ts +1 -1
  913. package/dist/tools/memory/saveSessionItem.d.ts.map +1 -1
  914. package/dist/tools/memory/saveSessionItem.js +1 -1
  915. package/dist/tools/memory/saveSessionItem.js.map +1 -1
  916. package/dist/tools/memory/searchMemories.d.ts +1 -1
  917. package/dist/tools/memory/searchMemories.d.ts.map +1 -1
  918. package/dist/tools/memory/searchMemories.js +1 -1
  919. package/dist/tools/memory/searchMemories.js.map +1 -1
  920. package/dist/tools/memory/searchMemoriesAdvanced.d.ts +1 -1
  921. package/dist/tools/memory/searchMemoriesAdvanced.d.ts.map +1 -1
  922. package/dist/tools/memory/searchMemoriesAdvanced.js +24 -24
  923. package/dist/tools/memory/searchMemoriesAdvanced.js.map +1 -1
  924. package/dist/tools/memory/searchObservations.d.ts +2 -2
  925. package/dist/tools/memory/searchObservations.d.ts.map +1 -1
  926. package/dist/tools/memory/searchObservations.js +1 -1
  927. package/dist/tools/memory/searchObservations.js.map +1 -1
  928. package/dist/tools/memory/startSession.d.ts +1 -1
  929. package/dist/tools/memory/startSession.d.ts.map +1 -1
  930. package/dist/tools/memory/startSession.js +28 -6
  931. package/dist/tools/memory/startSession.js.map +1 -1
  932. package/dist/tools/memory/updateMemory.d.ts +1 -1
  933. package/dist/tools/memory/updateMemory.d.ts.map +1 -1
  934. package/dist/tools/memory/updateMemory.js +1 -1
  935. package/dist/tools/memory/updateMemory.js.map +1 -1
  936. package/dist/tools/semantic/analyzeDependencyGraph.d.ts +1 -1
  937. package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +1 -1
  938. package/dist/tools/semantic/analyzeDependencyGraph.js +13 -13
  939. package/dist/tools/semantic/analyzeDependencyGraph.js.map +1 -1
  940. package/dist/tools/semantic/astGrep.d.ts +23 -0
  941. package/dist/tools/semantic/astGrep.d.ts.map +1 -0
  942. package/dist/tools/semantic/astGrep.js +298 -0
  943. package/dist/tools/semantic/astGrep.js.map +1 -0
  944. package/dist/tools/semantic/astGrep.test.d.ts +2 -0
  945. package/dist/tools/semantic/astGrep.test.d.ts.map +1 -0
  946. package/dist/tools/semantic/astGrep.test.js +66 -0
  947. package/dist/tools/semantic/astGrep.test.js.map +1 -0
  948. package/dist/tools/semantic/findReferences.d.ts +1 -1
  949. package/dist/tools/semantic/findReferences.d.ts.map +1 -1
  950. package/dist/tools/semantic/findReferences.js +2 -2
  951. package/dist/tools/semantic/findReferences.js.map +1 -1
  952. package/dist/tools/semantic/findSymbol.d.ts +1 -1
  953. package/dist/tools/semantic/findSymbol.d.ts.map +1 -1
  954. package/dist/tools/semantic/findSymbol.js +3 -3
  955. package/dist/tools/semantic/findSymbol.js.map +1 -1
  956. package/dist/tools/semantic/index.d.ts +2 -0
  957. package/dist/tools/semantic/index.d.ts.map +1 -1
  958. package/dist/tools/semantic/index.js +4 -0
  959. package/dist/tools/semantic/index.js.map +1 -1
  960. package/dist/tools/semantic/lsp.d.ts +68 -0
  961. package/dist/tools/semantic/lsp.d.ts.map +1 -0
  962. package/dist/tools/semantic/lsp.js +553 -0
  963. package/dist/tools/semantic/lsp.js.map +1 -0
  964. package/dist/tools/spec/e2eTestGenerator.d.ts +0 -1
  965. package/dist/tools/spec/e2eTestGenerator.d.ts.map +1 -1
  966. package/dist/tools/spec/e2eTestGenerator.js +0 -1
  967. package/dist/tools/spec/e2eTestGenerator.js.map +1 -1
  968. package/dist/tools/spec/prdParser.d.ts +0 -1
  969. package/dist/tools/spec/prdParser.d.ts.map +1 -1
  970. package/dist/tools/spec/prdParser.js +8 -6
  971. package/dist/tools/spec/prdParser.js.map +1 -1
  972. package/dist/tools/spec/requirementId.d.ts +0 -1
  973. package/dist/tools/spec/requirementId.d.ts.map +1 -1
  974. package/dist/tools/spec/requirementId.js +0 -1
  975. package/dist/tools/spec/requirementId.js.map +1 -1
  976. package/dist/tools/spec/specGenerator.d.ts +0 -1
  977. package/dist/tools/spec/specGenerator.d.ts.map +1 -1
  978. package/dist/tools/spec/specGenerator.js +0 -1
  979. package/dist/tools/spec/specGenerator.js.map +1 -1
  980. package/dist/tools/spec/specVersioning.d.ts +0 -1
  981. package/dist/tools/spec/specVersioning.d.ts.map +1 -1
  982. package/dist/tools/spec/specVersioning.js +0 -1
  983. package/dist/tools/spec/specVersioning.js.map +1 -1
  984. package/dist/tools/spec/traceabilityMatrix.d.ts +0 -1
  985. package/dist/tools/spec/traceabilityMatrix.d.ts.map +1 -1
  986. package/dist/tools/spec/traceabilityMatrix.js +12 -7
  987. package/dist/tools/spec/traceabilityMatrix.js.map +1 -1
  988. package/dist/tools/time/getCurrentTime.d.ts +2 -2
  989. package/dist/tools/time/getCurrentTime.d.ts.map +1 -1
  990. package/dist/tools/time/getCurrentTime.js +1 -9
  991. package/dist/tools/time/getCurrentTime.js.map +1 -1
  992. package/dist/tools/ui/generateDesignSystem.d.ts +7 -0
  993. package/dist/tools/ui/generateDesignSystem.d.ts.map +1 -0
  994. package/dist/tools/ui/generateDesignSystem.js +70 -0
  995. package/dist/tools/ui/generateDesignSystem.js.map +1 -0
  996. package/dist/tools/ui/index.d.ts +5 -1
  997. package/dist/tools/ui/index.d.ts.map +1 -1
  998. package/dist/tools/ui/index.js +5 -1
  999. package/dist/tools/ui/index.js.map +1 -1
  1000. package/dist/tools/ui/persistDesignSystem.d.ts +8 -0
  1001. package/dist/tools/ui/persistDesignSystem.d.ts.map +1 -0
  1002. package/dist/tools/ui/persistDesignSystem.js +77 -0
  1003. package/dist/tools/ui/persistDesignSystem.js.map +1 -0
  1004. package/dist/tools/ui/previewUiAscii.d.ts +1 -1
  1005. package/dist/tools/ui/previewUiAscii.d.ts.map +1 -1
  1006. package/dist/tools/ui/searchUiUx.d.ts +8 -0
  1007. package/dist/tools/ui/searchUiUx.d.ts.map +1 -0
  1008. package/dist/tools/ui/searchUiUx.js +82 -0
  1009. package/dist/tools/ui/searchUiUx.js.map +1 -0
  1010. package/dist/tools/ui/searchUiUxStack.d.ts +8 -0
  1011. package/dist/tools/ui/searchUiUxStack.d.ts.map +1 -0
  1012. package/dist/tools/ui/searchUiUxStack.js +83 -0
  1013. package/dist/tools/ui/searchUiUxStack.js.map +1 -0
  1014. package/hooks/hooks.json +32 -10
  1015. package/hooks/scripts/__tests__/skill-injector.test.js +234 -0
  1016. package/hooks/scripts/autonomy-controller.js +101 -0
  1017. package/hooks/scripts/context-save.js +152 -5
  1018. package/hooks/scripts/evolution-engine.js +101 -0
  1019. package/hooks/scripts/keyword-detector.js +1 -1
  1020. package/hooks/scripts/llm-orchestrate.js +224 -37
  1021. package/hooks/scripts/post-edit.js +2 -45
  1022. package/hooks/scripts/post-tool-verify.js +1 -1
  1023. package/hooks/scripts/pre-tool-guard.js +1 -1
  1024. package/hooks/scripts/prompt-dispatcher.js +56 -1
  1025. package/hooks/scripts/sentinel-guard.js +104 -0
  1026. package/hooks/scripts/session-start.js +76 -0
  1027. package/hooks/scripts/skill-injector.js +546 -83
  1028. package/hooks/scripts/skill-requirements.js +83 -0
  1029. package/hooks/scripts/stop-notify.js +207 -0
  1030. package/hooks/scripts/utils.js +8 -8
  1031. package/package.json +55 -18
  1032. package/skills/brand-assets/SKILL.md +138 -0
  1033. package/skills/commit-push-pr/SKILL.md +118 -0
  1034. package/skills/context7-usage/SKILL.md +105 -0
  1035. package/skills/core-capabilities/SKILL.md +164 -0
  1036. package/skills/git-worktree/SKILL.md +184 -0
  1037. package/skills/handoff/SKILL.md +101 -0
  1038. package/skills/parallel-research/SKILL.md +80 -0
  1039. package/skills/priority-todos/SKILL.md +242 -0
  1040. package/skills/techdebt/SKILL.md +122 -0
  1041. package/skills/tool-fallback/SKILL.md +193 -0
  1042. package/skills/typescript-advanced-types/SKILL.md +720 -0
  1043. package/skills/ui-ux-pro-max/SKILL.md +386 -0
  1044. package/skills/vercel-react-best-practices/SKILL.md +304 -0
  1045. package/vibe/config.json +29 -29
  1046. package/vibe/constitution.md +3 -3
  1047. package/vibe/rules/quality/bdd-contract-testing.md +6 -6
  1048. package/vibe/rules/quality/performance.md +236 -0
  1049. package/vibe/rules/standards/git-workflow.md +237 -0
  1050. package/vibe/rules/standards/security.md +305 -0
  1051. package/vibe/rules/writing/document-style.md +74 -0
  1052. package/vibe/setup.sh +6 -6
  1053. package/vibe/templates/constitution-template.md +3 -3
  1054. package/vibe/ui-ux-data/charts.csv +26 -0
  1055. package/vibe/ui-ux-data/colors.csv +97 -0
  1056. package/vibe/ui-ux-data/icons.csv +101 -0
  1057. package/vibe/ui-ux-data/landing.csv +31 -0
  1058. package/vibe/ui-ux-data/products.csv +97 -0
  1059. package/vibe/ui-ux-data/react-performance.csv +45 -0
  1060. package/vibe/ui-ux-data/stacks/astro.csv +54 -0
  1061. package/vibe/ui-ux-data/stacks/flutter.csv +53 -0
  1062. package/vibe/ui-ux-data/stacks/html-tailwind.csv +56 -0
  1063. package/vibe/ui-ux-data/stacks/jetpack-compose.csv +53 -0
  1064. package/vibe/ui-ux-data/stacks/nextjs.csv +53 -0
  1065. package/vibe/ui-ux-data/stacks/nuxt-ui.csv +51 -0
  1066. package/vibe/ui-ux-data/stacks/nuxtjs.csv +59 -0
  1067. package/vibe/ui-ux-data/stacks/react-native.csv +52 -0
  1068. package/vibe/ui-ux-data/stacks/react.csv +54 -0
  1069. package/vibe/ui-ux-data/stacks/shadcn.csv +61 -0
  1070. package/vibe/ui-ux-data/stacks/svelte.csv +54 -0
  1071. package/vibe/ui-ux-data/stacks/swiftui.csv +51 -0
  1072. package/vibe/ui-ux-data/stacks/vue.csv +50 -0
  1073. package/vibe/ui-ux-data/styles.csv +68 -0
  1074. package/vibe/ui-ux-data/typography.csv +58 -0
  1075. package/vibe/ui-ux-data/ui-reasoning.csv +101 -0
  1076. package/vibe/ui-ux-data/ux-guidelines.csv +100 -0
  1077. package/vibe/ui-ux-data/version.json +31 -0
  1078. package/vibe/ui-ux-data/web-interface.csv +31 -0
  1079. package/dist/cli/hud.d.ts +0 -33
  1080. package/dist/cli/hud.d.ts.map +0 -1
  1081. package/dist/cli/hud.js +0 -247
  1082. package/dist/cli/hud.js.map +0 -1
  1083. package/dist/lib/ContextCompressor.d.ts.map +0 -1
  1084. package/dist/lib/ContextCompressor.js +0 -306
  1085. package/dist/lib/ContextCompressor.js.map +0 -1
  1086. package/dist/lib/DeepInit.d.ts.map +0 -1
  1087. package/dist/lib/DeepInit.js.map +0 -1
  1088. package/dist/lib/FrameworkDetector.d.ts.map +0 -1
  1089. package/dist/lib/FrameworkDetector.js.map +0 -1
  1090. package/dist/lib/IterationTracker.d.ts +0 -81
  1091. package/dist/lib/IterationTracker.d.ts.map +0 -1
  1092. package/dist/lib/IterationTracker.js.map +0 -1
  1093. package/dist/lib/MemoryManager.d.ts +0 -86
  1094. package/dist/lib/MemoryManager.d.ts.map +0 -1
  1095. package/dist/lib/MemoryManager.js +0 -287
  1096. package/dist/lib/MemoryManager.js.map +0 -1
  1097. package/dist/lib/ModelRouter.d.ts.map +0 -1
  1098. package/dist/lib/ModelRouter.js.map +0 -1
  1099. package/dist/lib/OrchestrateWorkflow.d.ts.map +0 -1
  1100. package/dist/lib/OrchestrateWorkflow.js.map +0 -1
  1101. package/dist/lib/ProgressTracker.d.ts.map +0 -1
  1102. package/dist/lib/ProgressTracker.js +0 -267
  1103. package/dist/lib/ProgressTracker.js.map +0 -1
  1104. package/dist/lib/ProjectCache.d.ts.map +0 -1
  1105. package/dist/lib/ProjectCache.js.map +0 -1
  1106. package/dist/lib/PythonParser.d.ts.map +0 -1
  1107. package/dist/lib/PythonParser.js +0 -269
  1108. package/dist/lib/PythonParser.js.map +0 -1
  1109. package/dist/lib/ReviewRace.d.ts.map +0 -1
  1110. package/dist/lib/ReviewRace.js +0 -446
  1111. package/dist/lib/ReviewRace.js.map +0 -1
  1112. package/dist/lib/RuleBuildSystem.d.ts +0 -117
  1113. package/dist/lib/RuleBuildSystem.d.ts.map +0 -1
  1114. package/dist/lib/RuleBuildSystem.js +0 -402
  1115. package/dist/lib/RuleBuildSystem.js.map +0 -1
  1116. package/dist/lib/SkillFrontmatter.d.ts +0 -62
  1117. package/dist/lib/SkillFrontmatter.d.ts.map +0 -1
  1118. package/dist/lib/SkillFrontmatter.js.map +0 -1
  1119. package/dist/lib/SkillQualityGate.d.ts.map +0 -1
  1120. package/dist/lib/SkillQualityGate.js.map +0 -1
  1121. package/dist/lib/SkillRepository.d.ts.map +0 -1
  1122. package/dist/lib/SkillRepository.js +0 -477
  1123. package/dist/lib/SkillRepository.js.map +0 -1
  1124. package/dist/lib/UltraQA.d.ts +0 -68
  1125. package/dist/lib/UltraQA.d.ts.map +0 -1
  1126. package/dist/lib/UltraQA.js +0 -232
  1127. package/dist/lib/UltraQA.js.map +0 -1
  1128. package/dist/lib/constants.d.ts +0 -45
  1129. package/dist/lib/constants.d.ts.map +0 -1
  1130. package/dist/lib/constants.js +0 -62
  1131. package/dist/lib/constants.js.map +0 -1
  1132. package/dist/lib/gemini-api.d.ts +0 -128
  1133. package/dist/lib/gemini-api.d.ts.map +0 -1
  1134. package/dist/lib/gemini-api.js +0 -662
  1135. package/dist/lib/gemini-api.js.map +0 -1
  1136. package/dist/lib/gemini-constants.d.ts +0 -19
  1137. package/dist/lib/gemini-constants.d.ts.map +0 -1
  1138. package/dist/lib/gemini-constants.js +0 -34
  1139. package/dist/lib/gemini-constants.js.map +0 -1
  1140. package/dist/lib/gemini-oauth.d.ts +0 -52
  1141. package/dist/lib/gemini-oauth.d.ts.map +0 -1
  1142. package/dist/lib/gemini-oauth.js +0 -363
  1143. package/dist/lib/gemini-oauth.js.map +0 -1
  1144. package/dist/lib/gemini-storage.d.ts +0 -64
  1145. package/dist/lib/gemini-storage.d.ts.map +0 -1
  1146. package/dist/lib/gemini-storage.js +0 -177
  1147. package/dist/lib/gemini-storage.js.map +0 -1
  1148. package/dist/lib/gpt-api.d.ts +0 -106
  1149. package/dist/lib/gpt-api.d.ts.map +0 -1
  1150. package/dist/lib/gpt-api.js +0 -556
  1151. package/dist/lib/gpt-api.js.map +0 -1
  1152. package/dist/lib/gpt-constants.d.ts +0 -12
  1153. package/dist/lib/gpt-constants.d.ts.map +0 -1
  1154. package/dist/lib/gpt-constants.js +0 -18
  1155. package/dist/lib/gpt-constants.js.map +0 -1
  1156. package/dist/lib/gpt-oauth.d.ts.map +0 -1
  1157. package/dist/lib/gpt-oauth.js +0 -373
  1158. package/dist/lib/gpt-oauth.js.map +0 -1
  1159. package/dist/lib/gpt-storage.d.ts +0 -64
  1160. package/dist/lib/gpt-storage.d.ts.map +0 -1
  1161. package/dist/lib/gpt-storage.js +0 -180
  1162. package/dist/lib/gpt-storage.js.map +0 -1
  1163. package/dist/lib/llm/auth/ApiKeyManager.d.ts.map +0 -1
  1164. package/dist/lib/llm/auth/ApiKeyManager.js.map +0 -1
  1165. package/dist/lib/llm/auth/ConfigManager.d.ts +0 -29
  1166. package/dist/lib/llm/auth/ConfigManager.d.ts.map +0 -1
  1167. package/dist/lib/llm/auth/ConfigManager.js +0 -67
  1168. package/dist/lib/llm/auth/ConfigManager.js.map +0 -1
  1169. package/dist/lib/llm/auth/index.d.ts +0 -25
  1170. package/dist/lib/llm/auth/index.d.ts.map +0 -1
  1171. package/dist/lib/llm/auth/index.js +0 -83
  1172. package/dist/lib/llm/auth/index.js.map +0 -1
  1173. package/dist/lib/llm/index.d.ts.map +0 -1
  1174. package/dist/lib/llm/index.js.map +0 -1
  1175. package/dist/lib/llm/types.d.ts.map +0 -1
  1176. package/dist/lib/llm/types.js.map +0 -1
  1177. package/dist/lib/llm/utils/index.d.ts.map +0 -1
  1178. package/dist/lib/llm/utils/index.js.map +0 -1
  1179. package/dist/lib/llm/utils/retry.d.ts.map +0 -1
  1180. package/dist/lib/llm/utils/retry.js.map +0 -1
  1181. package/dist/lib/llm/utils/stream.d.ts.map +0 -1
  1182. package/dist/lib/llm/utils/stream.js.map +0 -1
  1183. package/dist/lib/memory/KnowledgeGraph.d.ts.map +0 -1
  1184. package/dist/lib/memory/KnowledgeGraph.js.map +0 -1
  1185. package/dist/lib/memory/KnowledgeGraph.test.d.ts.map +0 -1
  1186. package/dist/lib/memory/KnowledgeGraph.test.js +0 -189
  1187. package/dist/lib/memory/KnowledgeGraph.test.js.map +0 -1
  1188. package/dist/lib/memory/MemorySearch.d.ts +0 -27
  1189. package/dist/lib/memory/MemorySearch.d.ts.map +0 -1
  1190. package/dist/lib/memory/MemorySearch.js +0 -145
  1191. package/dist/lib/memory/MemorySearch.js.map +0 -1
  1192. package/dist/lib/memory/MemorySearch.test.d.ts.map +0 -1
  1193. package/dist/lib/memory/MemorySearch.test.js +0 -149
  1194. package/dist/lib/memory/MemorySearch.test.js.map +0 -1
  1195. package/dist/lib/memory/MemoryStorage.d.ts +0 -88
  1196. package/dist/lib/memory/MemoryStorage.d.ts.map +0 -1
  1197. package/dist/lib/memory/MemoryStorage.js +0 -404
  1198. package/dist/lib/memory/MemoryStorage.js.map +0 -1
  1199. package/dist/lib/memory/MemoryStorage.test.d.ts.map +0 -1
  1200. package/dist/lib/memory/MemoryStorage.test.js +0 -198
  1201. package/dist/lib/memory/MemoryStorage.test.js.map +0 -1
  1202. package/dist/lib/memory/ObservationStore.d.ts.map +0 -1
  1203. package/dist/lib/memory/ObservationStore.js.map +0 -1
  1204. package/dist/lib/memory/SessionRAGRetriever.d.ts +0 -66
  1205. package/dist/lib/memory/SessionRAGRetriever.d.ts.map +0 -1
  1206. package/dist/lib/memory/SessionRAGRetriever.js +0 -196
  1207. package/dist/lib/memory/SessionRAGRetriever.js.map +0 -1
  1208. package/dist/lib/memory/SessionRAGRetriever.test.d.ts.map +0 -1
  1209. package/dist/lib/memory/SessionRAGRetriever.test.js +0 -180
  1210. package/dist/lib/memory/SessionRAGRetriever.test.js.map +0 -1
  1211. package/dist/lib/memory/SessionRAGStore.d.ts +0 -153
  1212. package/dist/lib/memory/SessionRAGStore.d.ts.map +0 -1
  1213. package/dist/lib/memory/SessionRAGStore.js +0 -673
  1214. package/dist/lib/memory/SessionRAGStore.js.map +0 -1
  1215. package/dist/lib/memory/SessionRAGStore.test.d.ts.map +0 -1
  1216. package/dist/lib/memory/SessionRAGStore.test.js +0 -326
  1217. package/dist/lib/memory/SessionRAGStore.test.js.map +0 -1
  1218. package/dist/lib/memory/SessionSummarizer.d.ts.map +0 -1
  1219. package/dist/lib/memory/SessionSummarizer.js.map +0 -1
  1220. package/dist/lib/memory/index.d.ts +0 -5
  1221. package/dist/lib/memory/index.d.ts.map +0 -1
  1222. package/dist/lib/memory/index.js +0 -9
  1223. package/dist/lib/memory/index.js.map +0 -1
  1224. package/dist/lib/utils.d.ts.map +0 -1
  1225. package/dist/lib/utils.js.map +0 -1
  1226. package/dist/orchestrator/AgentExecutor.d.ts +0 -23
  1227. package/dist/orchestrator/AgentExecutor.d.ts.map +0 -1
  1228. package/dist/orchestrator/AgentExecutor.js +0 -231
  1229. package/dist/orchestrator/AgentExecutor.js.map +0 -1
  1230. package/dist/orchestrator/AgentManager.d.ts +0 -73
  1231. package/dist/orchestrator/AgentManager.d.ts.map +0 -1
  1232. package/dist/orchestrator/AgentManager.js +0 -184
  1233. package/dist/orchestrator/AgentManager.js.map +0 -1
  1234. package/dist/orchestrator/BackgroundManager.d.ts +0 -109
  1235. package/dist/orchestrator/BackgroundManager.d.ts.map +0 -1
  1236. package/dist/orchestrator/BackgroundManager.js +0 -456
  1237. package/dist/orchestrator/BackgroundManager.js.map +0 -1
  1238. package/dist/orchestrator/BackgroundManager.test.d.ts.map +0 -1
  1239. package/dist/orchestrator/BackgroundManager.test.js.map +0 -1
  1240. package/dist/orchestrator/LLMCluster.d.ts +0 -70
  1241. package/dist/orchestrator/LLMCluster.d.ts.map +0 -1
  1242. package/dist/orchestrator/LLMCluster.js +0 -91
  1243. package/dist/orchestrator/LLMCluster.js.map +0 -1
  1244. package/dist/orchestrator/MultiLlmResearch.d.ts +0 -27
  1245. package/dist/orchestrator/MultiLlmResearch.d.ts.map +0 -1
  1246. package/dist/orchestrator/MultiLlmResearch.js +0 -145
  1247. package/dist/orchestrator/MultiLlmResearch.js.map +0 -1
  1248. package/dist/orchestrator/PhasePipeline.d.ts +0 -108
  1249. package/dist/orchestrator/PhasePipeline.d.ts.map +0 -1
  1250. package/dist/orchestrator/PhasePipeline.js +0 -313
  1251. package/dist/orchestrator/PhasePipeline.js.map +0 -1
  1252. package/dist/orchestrator/SessionStore.d.ts +0 -41
  1253. package/dist/orchestrator/SessionStore.d.ts.map +0 -1
  1254. package/dist/orchestrator/SessionStore.js +0 -117
  1255. package/dist/orchestrator/SessionStore.js.map +0 -1
  1256. package/dist/orchestrator/SmartRouter.d.ts +0 -68
  1257. package/dist/orchestrator/SmartRouter.d.ts.map +0 -1
  1258. package/dist/orchestrator/SmartRouter.js +0 -256
  1259. package/dist/orchestrator/SmartRouter.js.map +0 -1
  1260. package/dist/orchestrator/SwarmOrchestrator.d.ts +0 -144
  1261. package/dist/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
  1262. package/dist/orchestrator/SwarmOrchestrator.js +0 -361
  1263. package/dist/orchestrator/SwarmOrchestrator.js.map +0 -1
  1264. package/dist/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
  1265. package/dist/orchestrator/SwarmOrchestrator.test.js.map +0 -1
  1266. package/dist/orchestrator/agentDiscovery.d.ts.map +0 -1
  1267. package/dist/orchestrator/agentDiscovery.js.map +0 -1
  1268. package/dist/orchestrator/backgroundAgent.d.ts +0 -15
  1269. package/dist/orchestrator/backgroundAgent.d.ts.map +0 -1
  1270. package/dist/orchestrator/backgroundAgent.js +0 -16
  1271. package/dist/orchestrator/backgroundAgent.js.map +0 -1
  1272. package/dist/orchestrator/index.d.ts +0 -179
  1273. package/dist/orchestrator/index.d.ts.map +0 -1
  1274. package/dist/orchestrator/index.js +0 -335
  1275. package/dist/orchestrator/index.js.map +0 -1
  1276. package/dist/orchestrator/orchestrator.d.ts +0 -63
  1277. package/dist/orchestrator/orchestrator.d.ts.map +0 -1
  1278. package/dist/orchestrator/orchestrator.js +0 -212
  1279. package/dist/orchestrator/orchestrator.js.map +0 -1
  1280. package/dist/orchestrator/parallelResearch.d.ts +0 -30
  1281. package/dist/orchestrator/parallelResearch.d.ts.map +0 -1
  1282. package/dist/orchestrator/parallelResearch.js +0 -247
  1283. package/dist/orchestrator/parallelResearch.js.map +0 -1
  1284. package/dist/orchestrator/types.d.ts +0 -170
  1285. package/dist/orchestrator/types.d.ts.map +0 -1
  1286. package/dist/orchestrator/types.js +0 -14
  1287. package/dist/orchestrator/types.js.map +0 -1
  1288. package/dist/types/tool.d.ts.map +0 -1
  1289. package/dist/types/tool.js.map +0 -1
  1290. package/skills/brand-assets.md +0 -137
  1291. package/skills/context7-usage.md +0 -102
  1292. package/skills/git-worktree.md +0 -181
  1293. package/skills/parallel-research.md +0 -77
  1294. package/skills/priority-todos.md +0 -239
  1295. package/skills/tool-fallback.md +0 -190
  1296. package/skills/vibe-capabilities.md +0 -161
  1297. /package/dist/{lib → infra/lib}/ContextCompressor.d.ts +0 -0
  1298. /package/dist/{lib → infra/lib}/DeepInit.d.ts +0 -0
  1299. /package/dist/{lib → infra/lib}/DeepInit.js +0 -0
  1300. /package/dist/{lib → infra/lib}/FrameworkDetector.d.ts +0 -0
  1301. /package/dist/{lib → infra/lib}/FrameworkDetector.js +0 -0
  1302. /package/dist/{lib → infra/lib}/IterationTracker.js +0 -0
  1303. /package/dist/{lib → infra/lib}/ModelRouter.d.ts +0 -0
  1304. /package/dist/{lib → infra/lib}/ModelRouter.js +0 -0
  1305. /package/dist/{lib → infra/lib}/OrchestrateWorkflow.d.ts +0 -0
  1306. /package/dist/{lib → infra/lib}/OrchestrateWorkflow.js +0 -0
  1307. /package/dist/{lib → infra/lib}/ProgressTracker.d.ts +0 -0
  1308. /package/dist/{lib → infra/lib}/ProjectCache.d.ts +0 -0
  1309. /package/dist/{lib → infra/lib}/ProjectCache.js +0 -0
  1310. /package/dist/{lib → infra/lib}/PythonParser.d.ts +0 -0
  1311. /package/dist/{lib → infra/lib}/ReviewRace.d.ts +0 -0
  1312. /package/dist/{lib → infra/lib}/SkillFrontmatter.js +0 -0
  1313. /package/dist/{lib → infra/lib}/SkillQualityGate.d.ts +0 -0
  1314. /package/dist/{lib → infra/lib}/SkillQualityGate.js +0 -0
  1315. /package/dist/{lib → infra/lib}/SkillRepository.d.ts +0 -0
  1316. /package/dist/{lib → infra/lib}/gpt-oauth.d.ts +0 -0
  1317. /package/dist/{lib → infra/lib}/llm/auth/ApiKeyManager.d.ts +0 -0
  1318. /package/dist/{lib → infra/lib}/llm/auth/ApiKeyManager.js +0 -0
  1319. /package/dist/{lib → infra/lib}/llm/index.d.ts +0 -0
  1320. /package/dist/{lib → infra/lib}/llm/index.js +0 -0
  1321. /package/dist/{lib → infra/lib}/llm/types.d.ts +0 -0
  1322. /package/dist/{lib → infra/lib}/llm/types.js +0 -0
  1323. /package/dist/{lib → infra/lib}/llm/utils/index.d.ts +0 -0
  1324. /package/dist/{lib → infra/lib}/llm/utils/index.js +0 -0
  1325. /package/dist/{lib → infra/lib}/llm/utils/retry.d.ts +0 -0
  1326. /package/dist/{lib → infra/lib}/llm/utils/retry.js +0 -0
  1327. /package/dist/{lib → infra/lib}/llm/utils/stream.d.ts +0 -0
  1328. /package/dist/{lib → infra/lib}/llm/utils/stream.js +0 -0
  1329. /package/dist/{lib → infra/lib}/memory/KnowledgeGraph.d.ts +0 -0
  1330. /package/dist/{lib → infra/lib}/memory/KnowledgeGraph.js +0 -0
  1331. /package/dist/{lib → infra/lib}/memory/KnowledgeGraph.test.d.ts +0 -0
  1332. /package/dist/{lib → infra/lib}/memory/MemorySearch.test.d.ts +0 -0
  1333. /package/dist/{lib → infra/lib}/memory/MemoryStorage.test.d.ts +0 -0
  1334. /package/dist/{lib → infra/lib}/memory/ObservationStore.d.ts +0 -0
  1335. /package/dist/{lib → infra/lib}/memory/ObservationStore.js +0 -0
  1336. /package/dist/{lib → infra/lib}/memory/SessionRAGRetriever.test.d.ts +0 -0
  1337. /package/dist/{lib → infra/lib}/memory/SessionRAGStore.test.d.ts +0 -0
  1338. /package/dist/{lib → infra/lib}/memory/SessionSummarizer.d.ts +0 -0
  1339. /package/dist/{lib → infra/lib}/memory/SessionSummarizer.js +0 -0
  1340. /package/dist/{lib → infra/lib}/utils.d.ts +0 -0
  1341. /package/dist/{lib → infra/lib}/utils.js +0 -0
  1342. /package/dist/{orchestrator → infra/orchestrator}/BackgroundManager.test.d.ts +0 -0
  1343. /package/dist/{orchestrator → infra/orchestrator}/BackgroundManager.test.js +0 -0
  1344. /package/dist/{orchestrator → infra/orchestrator}/SwarmOrchestrator.test.d.ts +0 -0
  1345. /package/dist/{orchestrator → infra/orchestrator}/SwarmOrchestrator.test.js +0 -0
  1346. /package/dist/{orchestrator → infra/orchestrator}/agentDiscovery.d.ts +0 -0
  1347. /package/dist/{orchestrator → infra/orchestrator}/agentDiscovery.js +0 -0
  1348. /package/dist/{types → infra/types}/tool.d.ts +0 -0
  1349. /package/dist/{types → infra/types}/tool.js +0 -0
  1350. /package/skills/{commerce-patterns.md → commerce-patterns/SKILL.md} +0 -0
  1351. /package/skills/{e2e-commerce.md → e2e-commerce/SKILL.md} +0 -0
  1352. /package/skills/{frontend-design.md → frontend-design/SKILL.md} +0 -0
  1353. /package/skills/{seo-checklist.md → seo-checklist/SKILL.md} +0 -0
  1354. /package/vibe/rules/{core → principles}/communication-guide.md +0 -0
  1355. /package/vibe/rules/{core → principles}/development-philosophy.md +0 -0
  1356. /package/vibe/rules/{core → principles}/quick-start.md +0 -0
@@ -0,0 +1,106 @@
1
+ /**
2
+ * GPT OAuth 토큰 저장/로드 (단일 계정)
3
+ */
4
+ import fs from 'fs';
5
+ import path from 'path';
6
+ import os from 'os';
7
+ /**
8
+ * 설정 디렉토리 경로 반환
9
+ */
10
+ export function getConfigDir() {
11
+ const platform = process.platform;
12
+ if (platform === 'win32') {
13
+ return path.join(process.env.APPDATA || path.join(os.homedir(), 'AppData', 'Roaming'), 'vibe');
14
+ }
15
+ const xdgConfig = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config');
16
+ return path.join(xdgConfig, 'vibe');
17
+ }
18
+ /**
19
+ * 토큰 저장 경로 반환
20
+ */
21
+ export function getStoragePath() {
22
+ return path.join(getConfigDir(), 'gpt-auth.json');
23
+ }
24
+ /**
25
+ * 디렉토리 생성 (존재하지 않으면)
26
+ */
27
+ function ensureDir(dir) {
28
+ if (!fs.existsSync(dir)) {
29
+ fs.mkdirSync(dir, { recursive: true });
30
+ }
31
+ }
32
+ /**
33
+ * 계정 정보 로드
34
+ */
35
+ export function loadAccount() {
36
+ try {
37
+ const storagePath = getStoragePath();
38
+ if (!fs.existsSync(storagePath)) {
39
+ return null;
40
+ }
41
+ const content = fs.readFileSync(storagePath, 'utf-8');
42
+ const data = JSON.parse(content);
43
+ // 레거시 멀티 계정 포맷 마이그레이션
44
+ if (data && typeof data === 'object' && 'accounts' in data) {
45
+ const legacy = data;
46
+ if (legacy.accounts.length === 0)
47
+ return null;
48
+ const idx = Math.min(legacy.activeIndex || 0, legacy.accounts.length - 1);
49
+ const account = legacy.accounts[idx];
50
+ // 새 포맷으로 저장
51
+ saveAccount(account);
52
+ return account;
53
+ }
54
+ return data;
55
+ }
56
+ catch {
57
+ return null;
58
+ }
59
+ }
60
+ /**
61
+ * 계정 정보 저장
62
+ */
63
+ export function saveAccount(account) {
64
+ const storagePath = getStoragePath();
65
+ ensureDir(path.dirname(storagePath));
66
+ fs.writeFileSync(storagePath, JSON.stringify(account, null, 2), { encoding: 'utf-8', mode: 0o600 });
67
+ }
68
+ /**
69
+ * 계정 삭제
70
+ */
71
+ export function clearAccount() {
72
+ try {
73
+ const storagePath = getStoragePath();
74
+ if (fs.existsSync(storagePath)) {
75
+ fs.unlinkSync(storagePath);
76
+ }
77
+ }
78
+ catch {
79
+ // ignore
80
+ }
81
+ }
82
+ /**
83
+ * 토큰 만료 여부 확인
84
+ */
85
+ export function isTokenExpired(account) {
86
+ if (!account || !account.expires) {
87
+ return true;
88
+ }
89
+ // 5분 여유를 두고 만료 확인
90
+ return Date.now() > account.expires - 5 * 60 * 1000;
91
+ }
92
+ /**
93
+ * 액세스 토큰 업데이트
94
+ */
95
+ export function updateAccessToken(accessToken, refreshToken, expires) {
96
+ const account = loadAccount();
97
+ if (!account)
98
+ return;
99
+ account.accessToken = accessToken;
100
+ if (refreshToken) {
101
+ account.refreshToken = refreshToken;
102
+ }
103
+ account.expires = expires;
104
+ saveAccount(account);
105
+ }
106
+ //# sourceMappingURL=gpt-storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpt-storage.js","sourceRoot":"","sources":["../../../src/infra/lib/gpt-storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAYpB;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IACjG,CAAC;IACD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IACpF,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,eAAe,CAAC,CAAC;AACpD,CAAC;AAED;;GAEG;AACH,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,EAAE,CAAC,SAAS,CAAC,GA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M,MAAM,GAAG,cAAc,CAAe,UAAU,CAAC,CAAC;IACxD,IAAI,MAAM,EAAE,MAAM,EAAE,CAAC;QACnB,eAAe,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,QAAqB;IAC7C,OAAO,SAAS,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;AACtC,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * AuthProfileManager - Auth Profile Rotation 관리
3
+ * Rate Limit 대응을 위한 다중 인증 프로필 순환
4
+ */
5
+ import { ProfileFileLock } from './ProfileFileLock.js';
6
+ export type AuthProfileProvider = 'gpt' | 'gemini';
7
+ export interface AuthProfile {
8
+ id: string;
9
+ provider: AuthProfileProvider;
10
+ type: 'oauth' | 'apikey';
11
+ identifier: string;
12
+ priority: number;
13
+ cooldownUntil: number;
14
+ errorCount: number;
15
+ lastUsedAt: number;
16
+ lastSuccessAt: number;
17
+ lastError?: string;
18
+ }
19
+ export declare class AuthProfileManager {
20
+ private readonly profilesPath;
21
+ private readonly lock;
22
+ constructor(profilesPath?: string, lock?: ProfileFileLock);
23
+ /**
24
+ * 프로필 목록 조회
25
+ */
26
+ listProfiles(provider?: AuthProfileProvider): AuthProfile[];
27
+ /**
28
+ * 활성 프로필 선택 (cooldown 아닌 최우선)
29
+ */
30
+ getActiveProfile(provider: AuthProfileProvider): AuthProfile | null;
31
+ /**
32
+ * 프로필 추가
33
+ */
34
+ addProfile(provider: AuthProfileProvider, type: 'oauth' | 'apikey', rawIdentifier: string, priority?: number): Promise<AuthProfile>;
35
+ /**
36
+ * 프로필 삭제
37
+ */
38
+ removeProfile(profileId: string): Promise<boolean>;
39
+ /**
40
+ * 성공 마킹
41
+ */
42
+ markSuccess(profileId: string): Promise<void>;
43
+ /**
44
+ * 실패 마킹
45
+ */
46
+ markFailure(profileId: string, errorMsg?: string): Promise<void>;
47
+ /**
48
+ * 다음 프로필로 순환
49
+ */
50
+ rotateToNext(provider: AuthProfileProvider): AuthProfile | null;
51
+ /**
52
+ * 모든 cooldown 초기화
53
+ */
54
+ clearCooldowns(provider?: AuthProfileProvider): Promise<void>;
55
+ private loadProfiles;
56
+ private saveProfiles;
57
+ }
58
+ export declare function getAuthProfileManager(): AuthProfileManager;
59
+ //# sourceMappingURL=AuthProfileManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthProfileManager.d.ts","sourceRoot":"","sources":["../../../../../src/infra/lib/llm/auth/AuthProfileManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2CD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;gBAE3B,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe;IAKzD;;OAEG;IACH,YAAY,CAAC,QAAQ,CAAC,EAAE,mBAAmB,GAAG,WAAW,EAAE;IAM3D;;OAEG;IACH,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI;IAqBnE;;OAEG;IACG,UAAU,CACd,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAE,OAAO,GAAG,QAAQ,EACxB,aAAa,EAAE,MAAM,EACrB,QAAQ,GAAE,MAAY,GACrB,OAAO,CAAC,WAAW,CAAC;IAyCvB;;OAEG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAcxD;;OAEG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBnD;;OAEG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BtE;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,mBAAmB,GAAG,WAAW,GAAG,IAAI;IAgB/D;;OAEG;IACG,cAAc,CAAC,QAAQ,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBnE,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,YAAY;CAOrB;AAKD,wBAAgB,qBAAqB,IAAI,kBAAkB,CAK1D"}
@@ -0,0 +1,248 @@
1
+ /**
2
+ * AuthProfileManager - Auth Profile Rotation 관리
3
+ * Rate Limit 대응을 위한 다중 인증 프로필 순환
4
+ */
5
+ import fs from 'fs';
6
+ import path from 'path';
7
+ import os from 'os';
8
+ import { ProfileFileLock } from './ProfileFileLock.js';
9
+ // ============================================
10
+ // Constants
11
+ // ============================================
12
+ const MAX_PROFILES_PER_PROVIDER = 10;
13
+ const BASE_COOLDOWN_MS = 5 * 60 * 1000; // 5분
14
+ const MAX_COOLDOWN_MS = 4 * 60 * 60 * 1000; // 4시간
15
+ const COOLDOWN_THRESHOLD = 3;
16
+ // Sensitive info masking patterns
17
+ const SENSITIVE_PATTERNS = [
18
+ /sk-[a-zA-Z0-9]{20,}/g,
19
+ /AIza[a-zA-Z0-9_-]{35}/g,
20
+ /ya29\.[a-zA-Z0-9_-]+/g,
21
+ /eyJ[a-zA-Z0-9_-]+\.eyJ[a-zA-Z0-9_-]+/g,
22
+ ];
23
+ function maskSensitiveInfo(msg) {
24
+ let masked = msg;
25
+ for (const pattern of SENSITIVE_PATTERNS) {
26
+ masked = masked.replace(pattern, '***REDACTED***');
27
+ }
28
+ return masked;
29
+ }
30
+ function getProfilesPath() {
31
+ const configDir = process.platform === 'win32'
32
+ ? path.join(process.env.APPDATA || path.join(os.homedir(), 'AppData', 'Roaming'), 'vibe')
33
+ : path.join(os.homedir(), '.config', 'vibe');
34
+ return path.join(configDir, 'auth-profiles.json');
35
+ }
36
+ function maskApiKey(key) {
37
+ if (key.length < 4)
38
+ return '****';
39
+ return `***${key.slice(-4)}`;
40
+ }
41
+ // ============================================
42
+ // AuthProfileManager
43
+ // ============================================
44
+ export class AuthProfileManager {
45
+ profilesPath;
46
+ lock;
47
+ constructor(profilesPath, lock) {
48
+ this.profilesPath = profilesPath ?? getProfilesPath();
49
+ this.lock = lock ?? new ProfileFileLock();
50
+ }
51
+ /**
52
+ * 프로필 목록 조회
53
+ */
54
+ listProfiles(provider) {
55
+ const all = this.loadProfiles();
56
+ if (!provider)
57
+ return all;
58
+ return all.filter(p => p.provider === provider);
59
+ }
60
+ /**
61
+ * 활성 프로필 선택 (cooldown 아닌 최우선)
62
+ */
63
+ getActiveProfile(provider) {
64
+ const profiles = this.listProfiles(provider)
65
+ .sort((a, b) => a.priority - b.priority);
66
+ const now = Date.now();
67
+ // cooldown 아닌 프로필 중 최우선
68
+ const available = profiles.find(p => p.cooldownUntil <= now);
69
+ if (available)
70
+ return available;
71
+ // 모두 cooldown이면 가장 빨리 해제되는 프로필
72
+ if (profiles.length > 0) {
73
+ const soonest = profiles.reduce((min, p) => p.cooldownUntil < min.cooldownUntil ? p : min);
74
+ return soonest;
75
+ }
76
+ return null;
77
+ }
78
+ /**
79
+ * 프로필 추가
80
+ */
81
+ async addProfile(provider, type, rawIdentifier, priority = 100) {
82
+ const identifier = type === 'apikey'
83
+ ? maskApiKey(rawIdentifier)
84
+ : rawIdentifier;
85
+ const profile = {
86
+ id: `${provider}-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
87
+ provider,
88
+ type,
89
+ identifier,
90
+ priority,
91
+ cooldownUntil: 0,
92
+ errorCount: 0,
93
+ lastUsedAt: 0,
94
+ lastSuccessAt: 0,
95
+ };
96
+ await this.lock.acquire();
97
+ try {
98
+ const profiles = this.loadProfiles();
99
+ const providerProfiles = profiles.filter(p => p.provider === provider);
100
+ // 프로바이더당 최대 프로필 수 체크
101
+ if (providerProfiles.length >= MAX_PROFILES_PER_PROVIDER) {
102
+ // 가장 오래된 lastUsedAt 프로필 삭제
103
+ const oldest = providerProfiles.reduce((min, p) => p.lastUsedAt < min.lastUsedAt ? p : min);
104
+ const idx = profiles.findIndex(p => p.id === oldest.id);
105
+ if (idx !== -1)
106
+ profiles.splice(idx, 1);
107
+ }
108
+ profiles.push(profile);
109
+ this.saveProfiles(profiles);
110
+ }
111
+ finally {
112
+ this.lock.release();
113
+ }
114
+ return profile;
115
+ }
116
+ /**
117
+ * 프로필 삭제
118
+ */
119
+ async removeProfile(profileId) {
120
+ await this.lock.acquire();
121
+ try {
122
+ const profiles = this.loadProfiles();
123
+ const idx = profiles.findIndex(p => p.id === profileId);
124
+ if (idx === -1)
125
+ return false;
126
+ profiles.splice(idx, 1);
127
+ this.saveProfiles(profiles);
128
+ return true;
129
+ }
130
+ finally {
131
+ this.lock.release();
132
+ }
133
+ }
134
+ /**
135
+ * 성공 마킹
136
+ */
137
+ async markSuccess(profileId) {
138
+ await this.lock.acquire();
139
+ try {
140
+ const profiles = this.loadProfiles();
141
+ const profile = profiles.find(p => p.id === profileId);
142
+ if (!profile)
143
+ return;
144
+ profile.errorCount = 0;
145
+ profile.cooldownUntil = 0;
146
+ profile.lastSuccessAt = Date.now();
147
+ profile.lastUsedAt = Date.now();
148
+ this.saveProfiles(profiles);
149
+ }
150
+ finally {
151
+ this.lock.release();
152
+ }
153
+ }
154
+ /**
155
+ * 실패 마킹
156
+ */
157
+ async markFailure(profileId, errorMsg) {
158
+ await this.lock.acquire();
159
+ try {
160
+ const profiles = this.loadProfiles();
161
+ const profile = profiles.find(p => p.id === profileId);
162
+ if (!profile)
163
+ return;
164
+ profile.errorCount++;
165
+ profile.lastUsedAt = Date.now();
166
+ if (profile.errorCount >= COOLDOWN_THRESHOLD) {
167
+ const exponent = profile.errorCount - COOLDOWN_THRESHOLD;
168
+ const cooldown = Math.min(BASE_COOLDOWN_MS * Math.pow(2, exponent), MAX_COOLDOWN_MS);
169
+ profile.cooldownUntil = Date.now() + cooldown;
170
+ }
171
+ // 에러 메시지에서 민감정보 마스킹 후 프로필에 저장
172
+ if (errorMsg) {
173
+ profile.lastError = maskSensitiveInfo(errorMsg);
174
+ }
175
+ this.saveProfiles(profiles);
176
+ }
177
+ finally {
178
+ this.lock.release();
179
+ }
180
+ }
181
+ /**
182
+ * 다음 프로필로 순환
183
+ */
184
+ rotateToNext(provider) {
185
+ const profiles = this.listProfiles(provider)
186
+ .sort((a, b) => a.priority - b.priority);
187
+ const now = Date.now();
188
+ const available = profiles.filter(p => p.cooldownUntil <= now);
189
+ if (available.length <= 1) {
190
+ return available[0] ?? null;
191
+ }
192
+ // 가장 최근에 사용된 프로필을 건너뛰고 다음 반환
193
+ const sorted = available.sort((a, b) => a.lastUsedAt - b.lastUsedAt);
194
+ return sorted[0] ?? null;
195
+ }
196
+ /**
197
+ * 모든 cooldown 초기화
198
+ */
199
+ async clearCooldowns(provider) {
200
+ await this.lock.acquire();
201
+ try {
202
+ const profiles = this.loadProfiles();
203
+ for (const profile of profiles) {
204
+ if (!provider || profile.provider === provider) {
205
+ profile.cooldownUntil = 0;
206
+ profile.errorCount = 0;
207
+ }
208
+ }
209
+ this.saveProfiles(profiles);
210
+ }
211
+ finally {
212
+ this.lock.release();
213
+ }
214
+ }
215
+ // ============================================
216
+ // Private
217
+ // ============================================
218
+ loadProfiles() {
219
+ try {
220
+ if (!fs.existsSync(this.profilesPath))
221
+ return [];
222
+ const content = fs.readFileSync(this.profilesPath, 'utf-8');
223
+ const data = JSON.parse(content);
224
+ if (!Array.isArray(data))
225
+ return [];
226
+ return data;
227
+ }
228
+ catch {
229
+ return [];
230
+ }
231
+ }
232
+ saveProfiles(profiles) {
233
+ const dir = path.dirname(this.profilesPath);
234
+ if (!fs.existsSync(dir)) {
235
+ fs.mkdirSync(dir, { recursive: true });
236
+ }
237
+ fs.writeFileSync(this.profilesPath, JSON.stringify(profiles, null, 2), { mode: 0o600 });
238
+ }
239
+ }
240
+ // 싱글톤
241
+ let defaultManager = null;
242
+ export function getAuthProfileManager() {
243
+ if (!defaultManager) {
244
+ defaultManager = new AuthProfileManager();
245
+ }
246
+ return defaultManager;
247
+ }
248
+ //# sourceMappingURL=AuthProfileManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthProfileManager.js","sourceRoot":"","sources":["../../../../../src/infra/lib/llm/auth/AuthProfileManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAqBvD,+CAA+C;AAC/C,YAAY;AACZ,+CAA+C;AAE/C,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAE,KAAK;AAC9C,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,MAAM;AAClD,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,kCAAkC;AAClC,MAAM,kBAAkB,GAAG;IACzB,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;IACvB,uCAAuC;CACxC,CAAC;AAEF,SAAS,iBAAiB,CAAC,GAAW;IAC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ourceRoot":"","sources":["../../../../../src/infra/lib/llm/auth/AuthProfileManager.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,168 @@
1
+ /**
2
+ * AuthProfileManager Tests
3
+ */
4
+ import { describe, it, expect, beforeEach, afterEach } from 'vitest';
5
+ import fs from 'fs';
6
+ import path from 'path';
7
+ import os from 'os';
8
+ import { AuthProfileManager } from './AuthProfileManager.js';
9
+ import { ProfileFileLock } from './ProfileFileLock.js';
10
+ const TEST_DIR = path.join(os.tmpdir(), `vibe-auth-test-${process.pid}`);
11
+ const TEST_PROFILES_PATH = path.join(TEST_DIR, 'auth-profiles.json');
12
+ const TEST_LOCK_PATH = path.join(TEST_DIR, '.auth-profiles.lock');
13
+ describe('AuthProfileManager', () => {
14
+ let manager;
15
+ let lock;
16
+ beforeEach(() => {
17
+ if (fs.existsSync(TEST_DIR)) {
18
+ fs.rmSync(TEST_DIR, { recursive: true });
19
+ }
20
+ fs.mkdirSync(TEST_DIR, { recursive: true });
21
+ lock = new ProfileFileLock(TEST_LOCK_PATH);
22
+ manager = new AuthProfileManager(TEST_PROFILES_PATH, lock);
23
+ });
24
+ afterEach(() => {
25
+ try {
26
+ if (lock.isLocked())
27
+ lock.release();
28
+ }
29
+ catch { /* ignore */ }
30
+ if (fs.existsSync(TEST_DIR)) {
31
+ fs.rmSync(TEST_DIR, { recursive: true });
32
+ }
33
+ });
34
+ it('should add and list profiles', async () => {
35
+ await manager.addProfile('gpt', 'apikey', 'sk-test1234567890', 1);
36
+ await manager.addProfile('gpt', 'oauth', 'user@example.com', 2);
37
+ const profiles = manager.listProfiles('gpt');
38
+ expect(profiles).toHaveLength(2);
39
+ expect(profiles[0].identifier).toBe('***7890');
40
+ expect(profiles[1].identifier).toBe('user@example.com');
41
+ });
42
+ it('should return active profile by priority', async () => {
43
+ await manager.addProfile('gemini', 'apikey', 'key-high', 10);
44
+ await manager.addProfile('gemini', 'apikey', 'key-low', 1);
45
+ const active = manager.getActiveProfile('gemini');
46
+ expect(active).not.toBeNull();
47
+ expect(active.priority).toBe(1);
48
+ });
49
+ it('should apply cooldown after 3 failures', async () => {
50
+ const profile = await manager.addProfile('gpt', 'apikey', 'sk-test-key-1234', 1);
51
+ await manager.markFailure(profile.id, 'rate limit 429');
52
+ await manager.markFailure(profile.id, 'rate limit 429');
53
+ await manager.markFailure(profile.id, 'rate limit 429');
54
+ const profiles = manager.listProfiles('gpt');
55
+ const updated = profiles.find(p => p.id === profile.id);
56
+ expect(updated).toBeDefined();
57
+ expect(updated.errorCount).toBe(3);
58
+ expect(updated.cooldownUntil).toBeGreaterThan(Date.now());
59
+ });
60
+ it('should skip cooldown profiles in getActiveProfile', async () => {
61
+ const p1 = await manager.addProfile('gpt', 'apikey', 'sk-key-one-1234', 1);
62
+ await manager.addProfile('gpt', 'apikey', 'sk-key-two-5678', 2);
63
+ // Put p1 into cooldown
64
+ await manager.markFailure(p1.id);
65
+ await manager.markFailure(p1.id);
66
+ await manager.markFailure(p1.id);
67
+ const active = manager.getActiveProfile('gpt');
68
+ expect(active).not.toBeNull();
69
+ expect(active.id).not.toBe(p1.id);
70
+ });
71
+ it('should return soonest-expiring when all in cooldown', async () => {
72
+ const p1 = await manager.addProfile('gpt', 'apikey', 'sk-key-one-1234', 1);
73
+ const p2 = await manager.addProfile('gpt', 'apikey', 'sk-key-two-5678', 2);
74
+ // Put both into cooldown
75
+ for (let i = 0; i < 3; i++) {
76
+ await manager.markFailure(p1.id);
77
+ await manager.markFailure(p2.id);
78
+ }
79
+ // p2 has 1 more failure → longer cooldown
80
+ await manager.markFailure(p2.id);
81
+ const active = manager.getActiveProfile('gpt');
82
+ expect(active).not.toBeNull();
83
+ // p1 should have shorter cooldown
84
+ expect(active.id).toBe(p1.id);
85
+ });
86
+ it('should reset on markSuccess', async () => {
87
+ const profile = await manager.addProfile('gemini', 'apikey', 'key-abcd1234', 1);
88
+ await manager.markFailure(profile.id);
89
+ await manager.markFailure(profile.id);
90
+ await manager.markFailure(profile.id);
91
+ await manager.markSuccess(profile.id);
92
+ const profiles = manager.listProfiles('gemini');
93
+ const updated = profiles.find(p => p.id === profile.id);
94
+ expect(updated.errorCount).toBe(0);
95
+ expect(updated.cooldownUntil).toBe(0);
96
+ });
97
+ it('should remove profiles', async () => {
98
+ const profile = await manager.addProfile('gemini', 'apikey', 'key-1234', 1);
99
+ expect(manager.listProfiles('gemini')).toHaveLength(1);
100
+ const removed = await manager.removeProfile(profile.id);
101
+ expect(removed).toBe(true);
102
+ expect(manager.listProfiles('gemini')).toHaveLength(0);
103
+ });
104
+ it('should enforce max profiles per provider', async () => {
105
+ // Add 10 profiles
106
+ for (let i = 0; i < 10; i++) {
107
+ await manager.addProfile('gpt', 'apikey', `sk-key-${i}-${String(i).padStart(4, '0')}`, i + 1);
108
+ }
109
+ expect(manager.listProfiles('gpt')).toHaveLength(10);
110
+ // Adding 11th should evict oldest
111
+ await manager.addProfile('gpt', 'apikey', 'sk-key-new-0011', 11);
112
+ expect(manager.listProfiles('gpt')).toHaveLength(10);
113
+ });
114
+ it('should clear cooldowns', async () => {
115
+ const profile = await manager.addProfile('gpt', 'apikey', 'sk-key-cd-1234', 1);
116
+ await manager.markFailure(profile.id);
117
+ await manager.markFailure(profile.id);
118
+ await manager.markFailure(profile.id);
119
+ await manager.clearCooldowns('gpt');
120
+ const profiles = manager.listProfiles('gpt');
121
+ expect(profiles[0].cooldownUntil).toBe(0);
122
+ expect(profiles[0].errorCount).toBe(0);
123
+ });
124
+ it('should mask API keys in identifiers', async () => {
125
+ const profile = await manager.addProfile('gpt', 'apikey', 'sk-1234567890abcdef', 1);
126
+ expect(profile.identifier).toBe('***cdef');
127
+ expect(profile.identifier).not.toContain('sk-');
128
+ });
129
+ });
130
+ describe('ProfileFileLock', () => {
131
+ let lockInstance;
132
+ const lockPath = path.join(TEST_DIR, '.test-lock');
133
+ beforeEach(() => {
134
+ if (fs.existsSync(TEST_DIR)) {
135
+ fs.rmSync(TEST_DIR, { recursive: true });
136
+ }
137
+ fs.mkdirSync(TEST_DIR, { recursive: true });
138
+ lockInstance = new ProfileFileLock(lockPath);
139
+ });
140
+ afterEach(() => {
141
+ try {
142
+ lockInstance.release();
143
+ }
144
+ catch { /* ignore */ }
145
+ if (fs.existsSync(TEST_DIR)) {
146
+ fs.rmSync(TEST_DIR, { recursive: true });
147
+ }
148
+ });
149
+ it('should acquire and release lock', async () => {
150
+ expect(lockInstance.isLocked()).toBe(false);
151
+ await lockInstance.acquire();
152
+ expect(lockInstance.isLocked()).toBe(true);
153
+ lockInstance.release();
154
+ expect(lockInstance.isLocked()).toBe(false);
155
+ });
156
+ it('should detect stale locks', async () => {
157
+ // Create a stale lock manually (no PID)
158
+ fs.mkdirSync(lockPath);
159
+ // Backdate the mtime
160
+ const pastTime = new Date(Date.now() - 60_000);
161
+ fs.utimesSync(lockPath, pastTime, pastTime);
162
+ // Should be able to acquire (stale lock auto-cleanup)
163
+ await lockInstance.acquire(5000);
164
+ expect(lockInstance.isLocked()).toBe(true);
165
+ lockInstance.release();
166
+ });
167
+ });
168
+ //# sourceMappingURL=AuthProfileManager.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthProfileManager.test.js","sourceRoot":"","sources":["../../../../../src/infra/lib/llm/auth/AuthProfileManager.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,kBAAkB,OAAO,CAAC,GAA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