deepseek-coder-agent-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/README.md +58 -0
  2. package/dist/bin/cliMode.d.ts +8 -0
  3. package/dist/bin/cliMode.d.ts.map +1 -0
  4. package/dist/bin/cliMode.js +20 -0
  5. package/dist/bin/cliMode.js.map +1 -0
  6. package/dist/bin/deepseek.d.ts +6 -0
  7. package/dist/bin/deepseek.d.ts.map +1 -0
  8. package/dist/bin/deepseek.js +136 -0
  9. package/dist/bin/deepseek.js.map +1 -0
  10. package/dist/config.d.ts +25 -0
  11. package/dist/config.d.ts.map +1 -0
  12. package/dist/config.js +155 -0
  13. package/dist/config.js.map +1 -0
  14. package/dist/contracts/agent-profiles.schema.json +43 -0
  15. package/dist/contracts/agent-schemas.json +460 -0
  16. package/dist/contracts/models.schema.json +9 -0
  17. package/dist/contracts/module-schema.json +419 -0
  18. package/dist/contracts/schemas/agent-profile.schema.json +157 -0
  19. package/dist/contracts/schemas/agent-rules.schema.json +238 -0
  20. package/dist/contracts/schemas/agent-schemas.schema.json +528 -0
  21. package/dist/contracts/schemas/agent.schema.json +90 -0
  22. package/dist/contracts/schemas/tool-selection.schema.json +174 -0
  23. package/dist/contracts/tools.schema.json +82 -0
  24. package/dist/contracts/unified-schema.json +750 -0
  25. package/dist/contracts/v1/agent.d.ts +179 -0
  26. package/dist/contracts/v1/agent.d.ts.map +1 -0
  27. package/dist/contracts/v1/agent.js +8 -0
  28. package/dist/contracts/v1/agent.js.map +1 -0
  29. package/dist/contracts/v1/agentProfileManifest.d.ts +60 -0
  30. package/dist/contracts/v1/agentProfileManifest.d.ts.map +1 -0
  31. package/dist/contracts/v1/agentProfileManifest.js +9 -0
  32. package/dist/contracts/v1/agentProfileManifest.js.map +1 -0
  33. package/dist/contracts/v1/agentRules.d.ts +60 -0
  34. package/dist/contracts/v1/agentRules.d.ts.map +1 -0
  35. package/dist/contracts/v1/agentRules.js +10 -0
  36. package/dist/contracts/v1/agentRules.js.map +1 -0
  37. package/dist/contracts/v1/provider.d.ts +149 -0
  38. package/dist/contracts/v1/provider.d.ts.map +1 -0
  39. package/dist/contracts/v1/provider.js +7 -0
  40. package/dist/contracts/v1/provider.js.map +1 -0
  41. package/dist/contracts/v1/tool.d.ts +136 -0
  42. package/dist/contracts/v1/tool.d.ts.map +1 -0
  43. package/dist/contracts/v1/tool.js +7 -0
  44. package/dist/contracts/v1/tool.js.map +1 -0
  45. package/dist/contracts/v1/toolAccess.d.ts +43 -0
  46. package/dist/contracts/v1/toolAccess.d.ts.map +1 -0
  47. package/dist/contracts/v1/toolAccess.js +9 -0
  48. package/dist/contracts/v1/toolAccess.js.map +1 -0
  49. package/dist/core/agent.d.ts +287 -0
  50. package/dist/core/agent.d.ts.map +1 -0
  51. package/dist/core/agent.js +1563 -0
  52. package/dist/core/agent.js.map +1 -0
  53. package/dist/core/agentProfileManifest.d.ts +3 -0
  54. package/dist/core/agentProfileManifest.d.ts.map +1 -0
  55. package/dist/core/agentProfileManifest.js +188 -0
  56. package/dist/core/agentProfileManifest.js.map +1 -0
  57. package/dist/core/agentProfiles.d.ts +22 -0
  58. package/dist/core/agentProfiles.d.ts.map +1 -0
  59. package/dist/core/agentProfiles.js +35 -0
  60. package/dist/core/agentProfiles.js.map +1 -0
  61. package/dist/core/agentRulebook.d.ts +11 -0
  62. package/dist/core/agentRulebook.d.ts.map +1 -0
  63. package/dist/core/agentRulebook.js +136 -0
  64. package/dist/core/agentRulebook.js.map +1 -0
  65. package/dist/core/agentSchemaLoader.d.ts +131 -0
  66. package/dist/core/agentSchemaLoader.d.ts.map +1 -0
  67. package/dist/core/agentSchemaLoader.js +235 -0
  68. package/dist/core/agentSchemaLoader.js.map +1 -0
  69. package/dist/core/agiCore.d.ts +290 -0
  70. package/dist/core/agiCore.d.ts.map +1 -0
  71. package/dist/core/agiCore.js +1348 -0
  72. package/dist/core/agiCore.js.map +1 -0
  73. package/dist/core/aiErrorFixer.d.ts +57 -0
  74. package/dist/core/aiErrorFixer.d.ts.map +1 -0
  75. package/dist/core/aiErrorFixer.js +214 -0
  76. package/dist/core/aiErrorFixer.js.map +1 -0
  77. package/dist/core/antiTermination.d.ts +226 -0
  78. package/dist/core/antiTermination.d.ts.map +1 -0
  79. package/dist/core/antiTermination.js +713 -0
  80. package/dist/core/antiTermination.js.map +1 -0
  81. package/dist/core/bashCommandGuidance.d.ts +16 -0
  82. package/dist/core/bashCommandGuidance.d.ts.map +1 -0
  83. package/dist/core/bashCommandGuidance.js +40 -0
  84. package/dist/core/bashCommandGuidance.js.map +1 -0
  85. package/dist/core/constants.d.ts +31 -0
  86. package/dist/core/constants.d.ts.map +1 -0
  87. package/dist/core/constants.js +62 -0
  88. package/dist/core/constants.js.map +1 -0
  89. package/dist/core/contextManager.d.ts +271 -0
  90. package/dist/core/contextManager.d.ts.map +1 -0
  91. package/dist/core/contextManager.js +1073 -0
  92. package/dist/core/contextManager.js.map +1 -0
  93. package/dist/core/contextWindow.d.ts +42 -0
  94. package/dist/core/contextWindow.d.ts.map +1 -0
  95. package/dist/core/contextWindow.js +123 -0
  96. package/dist/core/contextWindow.js.map +1 -0
  97. package/dist/core/customCommands.d.ts +19 -0
  98. package/dist/core/customCommands.d.ts.map +1 -0
  99. package/dist/core/customCommands.js +85 -0
  100. package/dist/core/customCommands.js.map +1 -0
  101. package/dist/core/deepBugAnalyzer.d.ts +25 -0
  102. package/dist/core/deepBugAnalyzer.d.ts.map +1 -0
  103. package/dist/core/deepBugAnalyzer.js +44 -0
  104. package/dist/core/deepBugAnalyzer.js.map +1 -0
  105. package/dist/core/dualTournament.d.ts +110 -0
  106. package/dist/core/dualTournament.d.ts.map +1 -0
  107. package/dist/core/dualTournament.js +270 -0
  108. package/dist/core/dualTournament.js.map +1 -0
  109. package/dist/core/dynamicGuardrails.d.ts +207 -0
  110. package/dist/core/dynamicGuardrails.d.ts.map +1 -0
  111. package/dist/core/dynamicGuardrails.js +516 -0
  112. package/dist/core/dynamicGuardrails.js.map +1 -0
  113. package/dist/core/embeddingProviders.d.ts +80 -0
  114. package/dist/core/embeddingProviders.d.ts.map +1 -0
  115. package/dist/core/embeddingProviders.js +241 -0
  116. package/dist/core/embeddingProviders.js.map +1 -0
  117. package/dist/core/episodicMemory.d.ts +259 -0
  118. package/dist/core/episodicMemory.d.ts.map +1 -0
  119. package/dist/core/episodicMemory.js +833 -0
  120. package/dist/core/episodicMemory.js.map +1 -0
  121. package/dist/core/errors/apiKeyErrors.d.ts +11 -0
  122. package/dist/core/errors/apiKeyErrors.d.ts.map +1 -0
  123. package/dist/core/errors/apiKeyErrors.js +159 -0
  124. package/dist/core/errors/apiKeyErrors.js.map +1 -0
  125. package/dist/core/errors/errorTypes.d.ts +111 -0
  126. package/dist/core/errors/errorTypes.d.ts.map +1 -0
  127. package/dist/core/errors/errorTypes.js +345 -0
  128. package/dist/core/errors/errorTypes.js.map +1 -0
  129. package/dist/core/errors/index.d.ts +50 -0
  130. package/dist/core/errors/index.d.ts.map +1 -0
  131. package/dist/core/errors/index.js +156 -0
  132. package/dist/core/errors/index.js.map +1 -0
  133. package/dist/core/errors/networkErrors.d.ts +14 -0
  134. package/dist/core/errors/networkErrors.d.ts.map +1 -0
  135. package/dist/core/errors/networkErrors.js +53 -0
  136. package/dist/core/errors/networkErrors.js.map +1 -0
  137. package/dist/core/errors/safetyValidator.d.ts +115 -0
  138. package/dist/core/errors/safetyValidator.d.ts.map +1 -0
  139. package/dist/core/errors/safetyValidator.js +302 -0
  140. package/dist/core/errors/safetyValidator.js.map +1 -0
  141. package/dist/core/errors.d.ts +4 -0
  142. package/dist/core/errors.d.ts.map +1 -0
  143. package/dist/core/errors.js +33 -0
  144. package/dist/core/errors.js.map +1 -0
  145. package/dist/core/finalResponseFormatter.d.ts +10 -0
  146. package/dist/core/finalResponseFormatter.d.ts.map +1 -0
  147. package/dist/core/finalResponseFormatter.js +14 -0
  148. package/dist/core/finalResponseFormatter.js.map +1 -0
  149. package/dist/core/flowProtection.d.ts +154 -0
  150. package/dist/core/flowProtection.d.ts.map +1 -0
  151. package/dist/core/flowProtection.js +436 -0
  152. package/dist/core/flowProtection.js.map +1 -0
  153. package/dist/core/gitWorktreeManager.d.ts +126 -0
  154. package/dist/core/gitWorktreeManager.d.ts.map +1 -0
  155. package/dist/core/gitWorktreeManager.js +403 -0
  156. package/dist/core/gitWorktreeManager.js.map +1 -0
  157. package/dist/core/guardrails.d.ts +150 -0
  158. package/dist/core/guardrails.d.ts.map +1 -0
  159. package/dist/core/guardrails.js +360 -0
  160. package/dist/core/guardrails.js.map +1 -0
  161. package/dist/core/hallucinationGuard.d.ts +57 -0
  162. package/dist/core/hallucinationGuard.d.ts.map +1 -0
  163. package/dist/core/hallucinationGuard.js +237 -0
  164. package/dist/core/hallucinationGuard.js.map +1 -0
  165. package/dist/core/hitlEnforcement.d.ts +143 -0
  166. package/dist/core/hitlEnforcement.d.ts.map +1 -0
  167. package/dist/core/hitlEnforcement.js +583 -0
  168. package/dist/core/hitlEnforcement.js.map +1 -0
  169. package/dist/core/hooks.d.ts +113 -0
  170. package/dist/core/hooks.d.ts.map +1 -0
  171. package/dist/core/hooks.js +364 -0
  172. package/dist/core/hooks.js.map +1 -0
  173. package/dist/core/hotReload.d.ts +154 -0
  174. package/dist/core/hotReload.d.ts.map +1 -0
  175. package/dist/core/hotReload.js +451 -0
  176. package/dist/core/hotReload.js.map +1 -0
  177. package/dist/core/hypothesisEngine.d.ts +27 -0
  178. package/dist/core/hypothesisEngine.d.ts.map +1 -0
  179. package/dist/core/hypothesisEngine.js +58 -0
  180. package/dist/core/hypothesisEngine.js.map +1 -0
  181. package/dist/core/index.d.ts +26 -0
  182. package/dist/core/index.d.ts.map +1 -0
  183. package/dist/core/index.js +54 -0
  184. package/dist/core/index.js.map +1 -0
  185. package/dist/core/inputProtection.d.ts +122 -0
  186. package/dist/core/inputProtection.d.ts.map +1 -0
  187. package/dist/core/inputProtection.js +421 -0
  188. package/dist/core/inputProtection.js.map +1 -0
  189. package/dist/core/liveGCPVerification.d.ts +41 -0
  190. package/dist/core/liveGCPVerification.d.ts.map +1 -0
  191. package/dist/core/liveGCPVerification.js +745 -0
  192. package/dist/core/liveGCPVerification.js.map +1 -0
  193. package/dist/core/modelDiscovery.d.ts +105 -0
  194. package/dist/core/modelDiscovery.d.ts.map +1 -0
  195. package/dist/core/modelDiscovery.js +740 -0
  196. package/dist/core/modelDiscovery.js.map +1 -0
  197. package/dist/core/multilinePasteHandler.d.ts +35 -0
  198. package/dist/core/multilinePasteHandler.d.ts.map +1 -0
  199. package/dist/core/multilinePasteHandler.js +80 -0
  200. package/dist/core/multilinePasteHandler.js.map +1 -0
  201. package/dist/core/parallel.d.ts +85 -0
  202. package/dist/core/parallel.d.ts.map +1 -0
  203. package/dist/core/parallel.js +150 -0
  204. package/dist/core/parallel.js.map +1 -0
  205. package/dist/core/parallelCoordinator.d.ts +21 -0
  206. package/dist/core/parallelCoordinator.d.ts.map +1 -0
  207. package/dist/core/parallelCoordinator.js +42 -0
  208. package/dist/core/parallelCoordinator.js.map +1 -0
  209. package/dist/core/parallelExecutor.d.ts +215 -0
  210. package/dist/core/parallelExecutor.d.ts.map +1 -0
  211. package/dist/core/parallelExecutor.js +584 -0
  212. package/dist/core/parallelExecutor.js.map +1 -0
  213. package/dist/core/platformSecurityIntegration.d.ts +133 -0
  214. package/dist/core/platformSecurityIntegration.d.ts.map +1 -0
  215. package/dist/core/platformSecurityIntegration.js +419 -0
  216. package/dist/core/platformSecurityIntegration.js.map +1 -0
  217. package/dist/core/preferences.d.ts +71 -0
  218. package/dist/core/preferences.d.ts.map +1 -0
  219. package/dist/core/preferences.js +341 -0
  220. package/dist/core/preferences.js.map +1 -0
  221. package/dist/core/productTestHarness.d.ts +46 -0
  222. package/dist/core/productTestHarness.d.ts.map +1 -0
  223. package/dist/core/productTestHarness.js +128 -0
  224. package/dist/core/productTestHarness.js.map +1 -0
  225. package/dist/core/providerKeys.d.ts +20 -0
  226. package/dist/core/providerKeys.d.ts.map +1 -0
  227. package/dist/core/providerKeys.js +40 -0
  228. package/dist/core/providerKeys.js.map +1 -0
  229. package/dist/core/realityScore.d.ts +159 -0
  230. package/dist/core/realityScore.d.ts.map +1 -0
  231. package/dist/core/realityScore.js +734 -0
  232. package/dist/core/realityScore.js.map +1 -0
  233. package/dist/core/repoUpgradeOrchestrator.d.ts +223 -0
  234. package/dist/core/repoUpgradeOrchestrator.d.ts.map +1 -0
  235. package/dist/core/repoUpgradeOrchestrator.js +1003 -0
  236. package/dist/core/repoUpgradeOrchestrator.js.map +1 -0
  237. package/dist/core/resultVerification.d.ts +47 -0
  238. package/dist/core/resultVerification.d.ts.map +1 -0
  239. package/dist/core/resultVerification.js +126 -0
  240. package/dist/core/resultVerification.js.map +1 -0
  241. package/dist/core/revenueEnvValidator.d.ts +30 -0
  242. package/dist/core/revenueEnvValidator.d.ts.map +1 -0
  243. package/dist/core/revenueEnvValidator.js +241 -0
  244. package/dist/core/revenueEnvValidator.js.map +1 -0
  245. package/dist/core/schemaValidator.d.ts +49 -0
  246. package/dist/core/schemaValidator.d.ts.map +1 -0
  247. package/dist/core/schemaValidator.js +234 -0
  248. package/dist/core/schemaValidator.js.map +1 -0
  249. package/dist/core/secretStore.d.ts +48 -0
  250. package/dist/core/secretStore.d.ts.map +1 -0
  251. package/dist/core/secretStore.js +295 -0
  252. package/dist/core/secretStore.js.map +1 -0
  253. package/dist/core/securityTournament.d.ts +83 -0
  254. package/dist/core/securityTournament.d.ts.map +1 -0
  255. package/dist/core/securityTournament.js +357 -0
  256. package/dist/core/securityTournament.js.map +1 -0
  257. package/dist/core/selfUpgrade.d.ts +253 -0
  258. package/dist/core/selfUpgrade.d.ts.map +1 -0
  259. package/dist/core/selfUpgrade.js +669 -0
  260. package/dist/core/selfUpgrade.js.map +1 -0
  261. package/dist/core/sessionStorage.d.ts +10 -0
  262. package/dist/core/sessionStorage.d.ts.map +1 -0
  263. package/dist/core/sessionStorage.js +46 -0
  264. package/dist/core/sessionStorage.js.map +1 -0
  265. package/dist/core/sessionStore.d.ts +35 -0
  266. package/dist/core/sessionStore.d.ts.map +1 -0
  267. package/dist/core/sessionStore.js +191 -0
  268. package/dist/core/sessionStore.js.map +1 -0
  269. package/dist/core/taskCompletionDetector.d.ts +112 -0
  270. package/dist/core/taskCompletionDetector.d.ts.map +1 -0
  271. package/dist/core/taskCompletionDetector.js +469 -0
  272. package/dist/core/taskCompletionDetector.js.map +1 -0
  273. package/dist/core/toolPreconditions.d.ts +34 -0
  274. package/dist/core/toolPreconditions.d.ts.map +1 -0
  275. package/dist/core/toolPreconditions.js +242 -0
  276. package/dist/core/toolPreconditions.js.map +1 -0
  277. package/dist/core/toolRuntime.d.ts +185 -0
  278. package/dist/core/toolRuntime.d.ts.map +1 -0
  279. package/dist/core/toolRuntime.js +412 -0
  280. package/dist/core/toolRuntime.js.map +1 -0
  281. package/dist/core/tournamentStrategy.d.ts +12 -0
  282. package/dist/core/tournamentStrategy.d.ts.map +1 -0
  283. package/dist/core/tournamentStrategy.js +41 -0
  284. package/dist/core/tournamentStrategy.js.map +1 -0
  285. package/dist/core/types/utilityTypes.d.ts +192 -0
  286. package/dist/core/types/utilityTypes.d.ts.map +1 -0
  287. package/dist/core/types/utilityTypes.js +272 -0
  288. package/dist/core/types/utilityTypes.js.map +1 -0
  289. package/dist/core/types.d.ts +334 -0
  290. package/dist/core/types.d.ts.map +1 -0
  291. package/dist/core/types.js +76 -0
  292. package/dist/core/types.js.map +1 -0
  293. package/dist/core/unifiedOrchestrator.d.ts +47 -0
  294. package/dist/core/unifiedOrchestrator.d.ts.map +1 -0
  295. package/dist/core/unifiedOrchestrator.js +103 -0
  296. package/dist/core/unifiedOrchestrator.js.map +1 -0
  297. package/dist/core/universalSecurityAudit.d.ts +104 -0
  298. package/dist/core/universalSecurityAudit.d.ts.map +1 -0
  299. package/dist/core/universalSecurityAudit.js +2190 -0
  300. package/dist/core/universalSecurityAudit.js.map +1 -0
  301. package/dist/core/updateChecker.d.ts +148 -0
  302. package/dist/core/updateChecker.d.ts.map +1 -0
  303. package/dist/core/updateChecker.js +593 -0
  304. package/dist/core/updateChecker.js.map +1 -0
  305. package/dist/core/variantExecution.d.ts +23 -0
  306. package/dist/core/variantExecution.d.ts.map +1 -0
  307. package/dist/core/variantExecution.js +58 -0
  308. package/dist/core/variantExecution.js.map +1 -0
  309. package/dist/core/verificationFirst.d.ts +110 -0
  310. package/dist/core/verificationFirst.d.ts.map +1 -0
  311. package/dist/core/verificationFirst.js +312 -0
  312. package/dist/core/verificationFirst.js.map +1 -0
  313. package/dist/core/winnerStrategy.d.ts +15 -0
  314. package/dist/core/winnerStrategy.d.ts.map +1 -0
  315. package/dist/core/winnerStrategy.js +18 -0
  316. package/dist/core/winnerStrategy.js.map +1 -0
  317. package/dist/core/zeroDayDiscovery.d.ts +96 -0
  318. package/dist/core/zeroDayDiscovery.d.ts.map +1 -0
  319. package/dist/core/zeroDayDiscovery.js +358 -0
  320. package/dist/core/zeroDayDiscovery.js.map +1 -0
  321. package/dist/headless/interactiveShell.d.ts +22 -0
  322. package/dist/headless/interactiveShell.d.ts.map +1 -0
  323. package/dist/headless/interactiveShell.js +3832 -0
  324. package/dist/headless/interactiveShell.js.map +1 -0
  325. package/dist/headless/quickMode.d.ts +26 -0
  326. package/dist/headless/quickMode.d.ts.map +1 -0
  327. package/dist/headless/quickMode.js +226 -0
  328. package/dist/headless/quickMode.js.map +1 -0
  329. package/dist/providers/baseProvider.d.ts +148 -0
  330. package/dist/providers/baseProvider.d.ts.map +1 -0
  331. package/dist/providers/baseProvider.js +284 -0
  332. package/dist/providers/baseProvider.js.map +1 -0
  333. package/dist/providers/deepseekReasonerProvider.d.ts +57 -0
  334. package/dist/providers/deepseekReasonerProvider.d.ts.map +1 -0
  335. package/dist/providers/deepseekReasonerProvider.js +87 -0
  336. package/dist/providers/deepseekReasonerProvider.js.map +1 -0
  337. package/dist/providers/openaiChatCompletionsProvider.d.ts +64 -0
  338. package/dist/providers/openaiChatCompletionsProvider.d.ts.map +1 -0
  339. package/dist/providers/openaiChatCompletionsProvider.js +1000 -0
  340. package/dist/providers/openaiChatCompletionsProvider.js.map +1 -0
  341. package/dist/providers/providerFactory.d.ts +24 -0
  342. package/dist/providers/providerFactory.d.ts.map +1 -0
  343. package/dist/providers/providerFactory.js +27 -0
  344. package/dist/providers/providerFactory.js.map +1 -0
  345. package/dist/providers/resilientProvider.d.ts +103 -0
  346. package/dist/providers/resilientProvider.d.ts.map +1 -0
  347. package/dist/providers/resilientProvider.js +462 -0
  348. package/dist/providers/resilientProvider.js.map +1 -0
  349. package/dist/runtime/agentController.d.ts +114 -0
  350. package/dist/runtime/agentController.d.ts.map +1 -0
  351. package/dist/runtime/agentController.js +693 -0
  352. package/dist/runtime/agentController.js.map +1 -0
  353. package/dist/runtime/agentHost.d.ts +61 -0
  354. package/dist/runtime/agentHost.d.ts.map +1 -0
  355. package/dist/runtime/agentHost.js +157 -0
  356. package/dist/runtime/agentHost.js.map +1 -0
  357. package/dist/runtime/agentSession.d.ts +45 -0
  358. package/dist/runtime/agentSession.d.ts.map +1 -0
  359. package/dist/runtime/agentSession.js +214 -0
  360. package/dist/runtime/agentSession.js.map +1 -0
  361. package/dist/runtime/agentWorkerPool.d.ts +167 -0
  362. package/dist/runtime/agentWorkerPool.d.ts.map +1 -0
  363. package/dist/runtime/agentWorkerPool.js +435 -0
  364. package/dist/runtime/agentWorkerPool.js.map +1 -0
  365. package/dist/runtime/node.d.ts +7 -0
  366. package/dist/runtime/node.d.ts.map +1 -0
  367. package/dist/runtime/node.js +18 -0
  368. package/dist/runtime/node.js.map +1 -0
  369. package/dist/runtime/universal.d.ts +18 -0
  370. package/dist/runtime/universal.d.ts.map +1 -0
  371. package/dist/runtime/universal.js +21 -0
  372. package/dist/runtime/universal.js.map +1 -0
  373. package/dist/ui/PromptController.d.ts +174 -0
  374. package/dist/ui/PromptController.d.ts.map +1 -0
  375. package/dist/ui/PromptController.js +351 -0
  376. package/dist/ui/PromptController.js.map +1 -0
  377. package/dist/ui/UnifiedUIRenderer.d.ts +779 -0
  378. package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -0
  379. package/dist/ui/UnifiedUIRenderer.js +5458 -0
  380. package/dist/ui/UnifiedUIRenderer.js.map +1 -0
  381. package/dist/ui/animatedStatus.d.ts +140 -0
  382. package/dist/ui/animatedStatus.d.ts.map +1 -0
  383. package/dist/ui/animatedStatus.js +480 -0
  384. package/dist/ui/animatedStatus.js.map +1 -0
  385. package/dist/ui/animation/AnimationScheduler.d.ts +197 -0
  386. package/dist/ui/animation/AnimationScheduler.d.ts.map +1 -0
  387. package/dist/ui/animation/AnimationScheduler.js +440 -0
  388. package/dist/ui/animation/AnimationScheduler.js.map +1 -0
  389. package/dist/ui/codeHighlighter.d.ts +6 -0
  390. package/dist/ui/codeHighlighter.d.ts.map +1 -0
  391. package/dist/ui/codeHighlighter.js +855 -0
  392. package/dist/ui/codeHighlighter.js.map +1 -0
  393. package/dist/ui/designSystem.d.ts +26 -0
  394. package/dist/ui/designSystem.d.ts.map +1 -0
  395. package/dist/ui/designSystem.js +114 -0
  396. package/dist/ui/designSystem.js.map +1 -0
  397. package/dist/ui/errorFormatter.d.ts +64 -0
  398. package/dist/ui/errorFormatter.d.ts.map +1 -0
  399. package/dist/ui/errorFormatter.js +316 -0
  400. package/dist/ui/errorFormatter.js.map +1 -0
  401. package/dist/ui/globalWriteLock.d.ts +63 -0
  402. package/dist/ui/globalWriteLock.d.ts.map +1 -0
  403. package/dist/ui/globalWriteLock.js +173 -0
  404. package/dist/ui/globalWriteLock.js.map +1 -0
  405. package/dist/ui/index.d.ts +32 -0
  406. package/dist/ui/index.d.ts.map +1 -0
  407. package/dist/ui/index.js +54 -0
  408. package/dist/ui/index.js.map +1 -0
  409. package/dist/ui/interrupts/InterruptManager.d.ts +157 -0
  410. package/dist/ui/interrupts/InterruptManager.d.ts.map +1 -0
  411. package/dist/ui/interrupts/InterruptManager.js +501 -0
  412. package/dist/ui/interrupts/InterruptManager.js.map +1 -0
  413. package/dist/ui/layout.d.ts +27 -0
  414. package/dist/ui/layout.d.ts.map +1 -0
  415. package/dist/ui/layout.js +184 -0
  416. package/dist/ui/layout.js.map +1 -0
  417. package/dist/ui/maxOffensiveUkraineUI.d.ts +94 -0
  418. package/dist/ui/maxOffensiveUkraineUI.d.ts.map +1 -0
  419. package/dist/ui/maxOffensiveUkraineUI.js +316 -0
  420. package/dist/ui/maxOffensiveUkraineUI.js.map +1 -0
  421. package/dist/ui/outputMode.d.ts +44 -0
  422. package/dist/ui/outputMode.d.ts.map +1 -0
  423. package/dist/ui/outputMode.js +123 -0
  424. package/dist/ui/outputMode.js.map +1 -0
  425. package/dist/ui/overlay/OverlayManager.d.ts +105 -0
  426. package/dist/ui/overlay/OverlayManager.d.ts.map +1 -0
  427. package/dist/ui/overlay/OverlayManager.js +291 -0
  428. package/dist/ui/overlay/OverlayManager.js.map +1 -0
  429. package/dist/ui/premiumComponents.d.ts +54 -0
  430. package/dist/ui/premiumComponents.d.ts.map +1 -0
  431. package/dist/ui/premiumComponents.js +241 -0
  432. package/dist/ui/premiumComponents.js.map +1 -0
  433. package/dist/ui/richText.d.ts +13 -0
  434. package/dist/ui/richText.d.ts.map +1 -0
  435. package/dist/ui/richText.js +444 -0
  436. package/dist/ui/richText.js.map +1 -0
  437. package/dist/ui/telemetry/ResponseTracker.d.ts +22 -0
  438. package/dist/ui/telemetry/ResponseTracker.d.ts.map +1 -0
  439. package/dist/ui/telemetry/ResponseTracker.js +60 -0
  440. package/dist/ui/telemetry/ResponseTracker.js.map +1 -0
  441. package/dist/ui/telemetry/UITelemetry.d.ts +181 -0
  442. package/dist/ui/telemetry/UITelemetry.d.ts.map +1 -0
  443. package/dist/ui/telemetry/UITelemetry.js +446 -0
  444. package/dist/ui/telemetry/UITelemetry.js.map +1 -0
  445. package/dist/ui/textHighlighter.d.ts +83 -0
  446. package/dist/ui/textHighlighter.d.ts.map +1 -0
  447. package/dist/ui/textHighlighter.js +267 -0
  448. package/dist/ui/textHighlighter.js.map +1 -0
  449. package/dist/ui/theme.d.ts +364 -0
  450. package/dist/ui/theme.d.ts.map +1 -0
  451. package/dist/ui/theme.js +471 -0
  452. package/dist/ui/theme.js.map +1 -0
  453. package/dist/ui/toolDisplay.d.ts +221 -0
  454. package/dist/ui/toolDisplay.d.ts.map +1 -0
  455. package/dist/ui/toolDisplay.js +1654 -0
  456. package/dist/ui/toolDisplay.js.map +1 -0
  457. package/dist/ui/uiConstants.d.ts +288 -0
  458. package/dist/ui/uiConstants.d.ts.map +1 -0
  459. package/dist/ui/uiConstants.js +472 -0
  460. package/dist/ui/uiConstants.js.map +1 -0
  461. package/dist/utils/askUserPrompt.d.ts +21 -0
  462. package/dist/utils/askUserPrompt.d.ts.map +1 -0
  463. package/dist/utils/askUserPrompt.js +87 -0
  464. package/dist/utils/askUserPrompt.js.map +1 -0
  465. package/dist/utils/asyncUtils.d.ts +95 -0
  466. package/dist/utils/asyncUtils.d.ts.map +1 -0
  467. package/dist/utils/asyncUtils.js +286 -0
  468. package/dist/utils/asyncUtils.js.map +1 -0
  469. package/dist/utils/debugLogger.d.ts +6 -0
  470. package/dist/utils/debugLogger.d.ts.map +1 -0
  471. package/dist/utils/debugLogger.js +39 -0
  472. package/dist/utils/debugLogger.js.map +1 -0
  473. package/dist/utils/errorUtils.d.ts +12 -0
  474. package/dist/utils/errorUtils.d.ts.map +1 -0
  475. package/dist/utils/errorUtils.js +83 -0
  476. package/dist/utils/errorUtils.js.map +1 -0
  477. package/dist/utils/frontmatter.d.ts +10 -0
  478. package/dist/utils/frontmatter.d.ts.map +1 -0
  479. package/dist/utils/frontmatter.js +78 -0
  480. package/dist/utils/frontmatter.js.map +1 -0
  481. package/dist/utils/packageInfo.d.ts +14 -0
  482. package/dist/utils/packageInfo.d.ts.map +1 -0
  483. package/dist/utils/packageInfo.js +45 -0
  484. package/dist/utils/packageInfo.js.map +1 -0
  485. package/dist/utils/planFormatter.d.ts +34 -0
  486. package/dist/utils/planFormatter.d.ts.map +1 -0
  487. package/dist/utils/planFormatter.js +141 -0
  488. package/dist/utils/planFormatter.js.map +1 -0
  489. package/dist/utils/securityUtils.d.ts +132 -0
  490. package/dist/utils/securityUtils.d.ts.map +1 -0
  491. package/dist/utils/securityUtils.js +324 -0
  492. package/dist/utils/securityUtils.js.map +1 -0
  493. package/dist/workspace.d.ts +8 -0
  494. package/dist/workspace.d.ts.map +1 -0
  495. package/dist/workspace.js +134 -0
  496. package/dist/workspace.js.map +1 -0
  497. package/dist/workspace.validator.d.ts +49 -0
  498. package/dist/workspace.validator.d.ts.map +1 -0
  499. package/dist/workspace.validator.js +215 -0
  500. package/dist/workspace.validator.js.map +1 -0
  501. package/package.json +60 -0
@@ -0,0 +1,750 @@
1
+ {
2
+ "$schema": "./schemas/unified-schema.schema.json",
3
+ "contractVersion": "2.0.0",
4
+ "version": "2024-11-25",
5
+ "label": "AGI CLI Unified AI Task Schema",
6
+ "description": "Comprehensive schema for all AI tasks, providers, tools, and capabilities - single source of truth",
7
+ "providers": [
8
+ {
9
+ "id": "anthropic",
10
+ "label": "Anthropic",
11
+ "description": "Anthropic Claude models - state of the art reasoning and coding",
12
+ "baseUrl": "https://api.anthropic.com",
13
+ "apiVersion": "2023-06-01",
14
+ "envVars": {
15
+ "apiKey": "ANTHROPIC_API_KEY"
16
+ },
17
+ "capabilities": ["chat", "reasoning", "tools", "streaming", "vision", "prompt_caching"],
18
+ "rateLimiting": {
19
+ "maxRetries": 4,
20
+ "baseDelayMs": 750,
21
+ "maxDelayMs": 40000,
22
+ "backoffMultiplier": 2
23
+ },
24
+ "models": ["claude-opus-4-5-20251101", "claude-sonnet-4-5-20250929", "claude-haiku-4-5-20251001"],
25
+ "defaultModel": "claude-sonnet-4-5-20250929",
26
+ "status": "production"
27
+ },
28
+ {
29
+ "id": "openai",
30
+ "label": "OpenAI",
31
+ "description": "OpenAI GPT models including reasoning and coding variants",
32
+ "baseUrl": "https://api.openai.com/v1",
33
+ "envVars": {
34
+ "apiKey": "OPENAI_API_KEY"
35
+ },
36
+ "capabilities": ["chat", "reasoning", "tools", "streaming", "vision"],
37
+ "apiVariants": ["chat_completions", "responses"],
38
+ "models": ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o1-pro", "o3", "o3-pro", "gpt-4-turbo"],
39
+ "defaultModel": "gpt-4o",
40
+ "reasoningModels": ["o1", "o1-mini", "o1-pro", "o3", "o3-pro"],
41
+ "status": "production"
42
+ },
43
+ {
44
+ "id": "google",
45
+ "label": "Google AI",
46
+ "description": "Google Gemini models with multimodal capabilities",
47
+ "baseUrl": "https://generativelanguage.googleapis.com",
48
+ "envVars": {
49
+ "apiKey": "GEMINI_API_KEY"
50
+ },
51
+ "capabilities": ["chat", "reasoning", "tools", "streaming", "multimodal", "vision"],
52
+ "models": ["gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"],
53
+ "defaultModel": "gemini-2.0-flash-exp",
54
+ "status": "production"
55
+ },
56
+ {
57
+ "id": "deepseek",
58
+ "label": "DeepSeek",
59
+ "description": "DeepSeek reasoning and coding models",
60
+ "baseUrl": "https://api.deepseek.com",
61
+ "envVars": {
62
+ "apiKey": "DEEPSEEK_API_KEY"
63
+ },
64
+ "capabilities": ["chat", "reasoning", "tools", "streaming"],
65
+ "openaiCompatible": true,
66
+ "models": ["deepseek-reasoner", "deepseek-chat"],
67
+ "defaultModel": "deepseek-reasoner",
68
+ "status": "production"
69
+ },
70
+ {
71
+ "id": "xai",
72
+ "label": "xAI",
73
+ "description": "xAI Grok models for coding and reasoning",
74
+ "baseUrl": "https://api.x.ai/v1",
75
+ "envVars": {
76
+ "apiKey": "XAI_API_KEY"
77
+ },
78
+ "capabilities": ["chat", "reasoning", "tools", "streaming"],
79
+ "openaiCompatible": true,
80
+ "models": ["grok-beta", "grok-2"],
81
+ "defaultModel": "grok-beta",
82
+ "status": "production"
83
+ },
84
+ {
85
+ "id": "ollama",
86
+ "label": "Ollama (Local)",
87
+ "description": "Run open-weight models locally via Ollama",
88
+ "baseUrl": "http://localhost:11434/v1",
89
+ "envVars": {
90
+ "baseUrl": "OLLAMA_BASE_URL"
91
+ },
92
+ "capabilities": ["chat", "tools", "streaming"],
93
+ "openaiCompatible": true,
94
+ "models": ["llama3.1:8b", "llama3.2:3b", "qwen2.5:7b", "mistral:7b", "codellama:7b"],
95
+ "defaultModel": "llama3.1:8b",
96
+ "status": "production"
97
+ },
98
+ {
99
+ "id": "mistral",
100
+ "label": "Mistral AI",
101
+ "description": "Mistral AI models",
102
+ "baseUrl": "https://api.mistral.ai/v1",
103
+ "envVars": {
104
+ "apiKey": "MISTRAL_API_KEY"
105
+ },
106
+ "capabilities": ["chat", "tools", "streaming"],
107
+ "openaiCompatible": true,
108
+ "models": ["mistral-large-latest", "mistral-medium-latest", "codestral-latest"],
109
+ "defaultModel": "mistral-large-latest",
110
+ "status": "production"
111
+ },
112
+ {
113
+ "id": "groq",
114
+ "label": "Groq",
115
+ "description": "Groq ultra-fast inference for open models",
116
+ "baseUrl": "https://api.groq.com/openai/v1",
117
+ "envVars": {
118
+ "apiKey": "GROQ_API_KEY"
119
+ },
120
+ "capabilities": ["chat", "tools", "streaming"],
121
+ "openaiCompatible": true,
122
+ "models": ["llama-3.1-70b-versatile", "llama-3.1-8b-instant", "mixtral-8x7b-32768"],
123
+ "defaultModel": "llama-3.1-70b-versatile",
124
+ "status": "production"
125
+ },
126
+ {
127
+ "id": "together",
128
+ "label": "Together AI",
129
+ "description": "Together AI inference platform",
130
+ "baseUrl": "https://api.together.xyz/v1",
131
+ "envVars": {
132
+ "apiKey": "TOGETHER_API_KEY"
133
+ },
134
+ "capabilities": ["chat", "tools", "streaming"],
135
+ "openaiCompatible": true,
136
+ "models": ["meta-llama/Llama-3-70b-chat-hf", "mistralai/Mixtral-8x7B-Instruct-v0.1"],
137
+ "defaultModel": "meta-llama/Llama-3-70b-chat-hf",
138
+ "status": "production"
139
+ },
140
+ {
141
+ "id": "fireworks",
142
+ "label": "Fireworks AI",
143
+ "description": "Fireworks AI inference platform",
144
+ "baseUrl": "https://api.fireworks.ai/inference/v1",
145
+ "envVars": {
146
+ "apiKey": "FIREWORKS_API_KEY"
147
+ },
148
+ "capabilities": ["chat", "tools", "streaming"],
149
+ "openaiCompatible": true,
150
+ "models": ["accounts/fireworks/models/llama-v3p1-70b-instruct"],
151
+ "defaultModel": "accounts/fireworks/models/llama-v3p1-70b-instruct",
152
+ "status": "production"
153
+ },
154
+ {
155
+ "id": "azure_openai",
156
+ "label": "Azure OpenAI",
157
+ "description": "OpenAI models hosted on Azure",
158
+ "envVars": {
159
+ "apiKey": "AZURE_OPENAI_API_KEY",
160
+ "endpoint": "AZURE_OPENAI_ENDPOINT",
161
+ "deploymentId": "AZURE_OPENAI_DEPLOYMENT"
162
+ },
163
+ "capabilities": ["chat", "tools", "streaming", "vision"],
164
+ "models": ["gpt-4o", "gpt-4-turbo"],
165
+ "defaultModel": "gpt-4o",
166
+ "status": "production"
167
+ },
168
+ {
169
+ "id": "bedrock",
170
+ "label": "AWS Bedrock",
171
+ "description": "AWS Bedrock foundation models",
172
+ "envVars": {
173
+ "accessKeyId": "AWS_ACCESS_KEY_ID",
174
+ "secretAccessKey": "AWS_SECRET_ACCESS_KEY",
175
+ "region": "AWS_REGION"
176
+ },
177
+ "capabilities": ["chat", "tools", "streaming"],
178
+ "models": ["anthropic.claude-3-sonnet", "anthropic.claude-3-haiku", "meta.llama3-70b-instruct-v1"],
179
+ "defaultModel": "anthropic.claude-3-sonnet",
180
+ "status": "production"
181
+ }
182
+ ],
183
+ "taskTypes": [
184
+ {
185
+ "id": "coding",
186
+ "label": "Code Generation & Editing",
187
+ "description": "Generate, edit, refactor, and analyze code",
188
+ "requiredCapabilities": ["chat", "tools"],
189
+ "preferredCapabilities": ["reasoning", "streaming"],
190
+ "defaultTemperature": 0.0,
191
+ "recommendedProviders": ["anthropic", "openai", "deepseek"],
192
+ "tools": ["read", "write", "edit", "bash", "glob", "grep"]
193
+ },
194
+ {
195
+ "id": "reasoning",
196
+ "label": "Complex Reasoning",
197
+ "description": "Multi-step reasoning, planning, and analysis",
198
+ "requiredCapabilities": ["chat", "reasoning"],
199
+ "preferredCapabilities": ["tools", "streaming"],
200
+ "defaultTemperature": 0.3,
201
+ "recommendedProviders": ["anthropic", "openai", "deepseek"],
202
+ "tools": ["read", "glob", "grep", "web_search", "web_fetch"]
203
+ },
204
+ {
205
+ "id": "chat",
206
+ "label": "Conversational",
207
+ "description": "General conversation and Q&A",
208
+ "requiredCapabilities": ["chat"],
209
+ "preferredCapabilities": ["streaming"],
210
+ "defaultTemperature": 0.7,
211
+ "recommendedProviders": ["anthropic", "openai", "google"],
212
+ "tools": []
213
+ },
214
+ {
215
+ "id": "analysis",
216
+ "label": "Code Analysis",
217
+ "description": "Analyze code quality, security, dependencies",
218
+ "requiredCapabilities": ["chat", "tools"],
219
+ "preferredCapabilities": ["reasoning"],
220
+ "defaultTemperature": 0.0,
221
+ "recommendedProviders": ["anthropic", "openai"],
222
+ "tools": ["read", "glob", "grep", "analyze_complexity", "dependency_audit", "code_security_scan"]
223
+ },
224
+ {
225
+ "id": "research",
226
+ "label": "Research & Information",
227
+ "description": "Research topics, gather information",
228
+ "requiredCapabilities": ["chat"],
229
+ "preferredCapabilities": ["tools", "streaming"],
230
+ "defaultTemperature": 0.5,
231
+ "recommendedProviders": ["anthropic", "openai", "google"],
232
+ "tools": ["web_search", "web_fetch", "read"]
233
+ },
234
+ {
235
+ "id": "multimodal",
236
+ "label": "Vision & Multimodal",
237
+ "description": "Process images, documents, and mixed content",
238
+ "requiredCapabilities": ["chat", "multimodal"],
239
+ "preferredCapabilities": ["vision", "streaming"],
240
+ "defaultTemperature": 0.3,
241
+ "recommendedProviders": ["google", "anthropic", "openai"],
242
+ "tools": ["read", "write"]
243
+ },
244
+ {
245
+ "id": "testing",
246
+ "label": "Test Generation",
247
+ "description": "Generate and run tests",
248
+ "requiredCapabilities": ["chat", "tools"],
249
+ "preferredCapabilities": ["reasoning"],
250
+ "defaultTemperature": 0.0,
251
+ "recommendedProviders": ["anthropic", "openai"],
252
+ "tools": ["read", "write", "edit", "bash", "generate_test_stub"]
253
+ },
254
+ {
255
+ "id": "documentation",
256
+ "label": "Documentation",
257
+ "description": "Generate documentation and comments",
258
+ "requiredCapabilities": ["chat", "tools"],
259
+ "preferredCapabilities": ["streaming"],
260
+ "defaultTemperature": 0.3,
261
+ "recommendedProviders": ["anthropic", "openai"],
262
+ "tools": ["read", "write", "edit", "generate_docstring"]
263
+ },
264
+ {
265
+ "id": "security",
266
+ "label": "Security Analysis",
267
+ "description": "Security auditing and vulnerability analysis",
268
+ "requiredCapabilities": ["chat", "tools", "reasoning"],
269
+ "preferredCapabilities": ["streaming"],
270
+ "defaultTemperature": 0.0,
271
+ "recommendedProviders": ["anthropic", "openai"],
272
+ "tools": ["read", "glob", "grep", "dependency_audit", "code_security_scan", "analyze_attack_surface"],
273
+ "requiresAuth": true
274
+ },
275
+ {
276
+ "id": "competitive_rl",
277
+ "label": "Competitive RL (Alpha Zero 2)",
278
+ "description": "Competitive multi-agent reinforcement learning for code optimization",
279
+ "requiredCapabilities": ["chat", "tools", "reasoning"],
280
+ "preferredCapabilities": ["streaming"],
281
+ "defaultTemperature": 0.2,
282
+ "recommendedProviders": ["anthropic", "openai"],
283
+ "tools": ["alpha_zero_evaluate", "alpha_zero_tournament", "alpha_zero_introspect", "alpha_zero_metrics"]
284
+ }
285
+ ],
286
+ "toolCategories": [
287
+ {
288
+ "id": "core",
289
+ "label": "Core Tools",
290
+ "description": "Essential tools always available",
291
+ "alwaysEnabled": true,
292
+ "tools": ["read", "write", "edit", "bash", "glob", "grep"]
293
+ },
294
+ {
295
+ "id": "web",
296
+ "label": "Web Tools",
297
+ "description": "Web search and fetch capabilities",
298
+ "alwaysEnabled": false,
299
+ "tools": ["web_search", "web_fetch"]
300
+ },
301
+ {
302
+ "id": "coding",
303
+ "label": "Enhanced Coding",
304
+ "description": "Advanced code analysis and generation",
305
+ "alwaysEnabled": false,
306
+ "tools": ["analyze_complexity", "find_dependencies", "generate_docstring", "suggest_refactorings", "generate_test_stub"]
307
+ },
308
+ {
309
+ "id": "security",
310
+ "label": "Security Research",
311
+ "description": "Security analysis and auditing",
312
+ "alwaysEnabled": false,
313
+ "requiresAuth": true,
314
+ "tools": ["dependency_audit", "code_security_scan", "analyze_attack_surface"]
315
+ },
316
+ {
317
+ "id": "alpha_zero",
318
+ "label": "Alpha Zero 2",
319
+ "description": "Competitive RL framework",
320
+ "alwaysEnabled": false,
321
+ "tools": ["alpha_zero_evaluate", "alpha_zero_tournament", "alpha_zero_introspect", "alpha_zero_history", "alpha_zero_metrics"]
322
+ },
323
+ {
324
+ "id": "mcp",
325
+ "label": "Model Context Protocol",
326
+ "description": "MCP server integration",
327
+ "alwaysEnabled": false,
328
+ "tools": []
329
+ },
330
+ {
331
+ "id": "intelligence",
332
+ "label": "Code Intelligence",
333
+ "description": "Automated code analysis, refactoring, documentation, and test generation",
334
+ "alwaysEnabled": false,
335
+ "tools": ["intelligence_analyze", "intelligence_refactor", "intelligence_document", "intelligence_test", "intelligence_full"]
336
+ }
337
+ ],
338
+ "tools": [
339
+ {
340
+ "id": "read",
341
+ "name": "Read",
342
+ "description": "Read file contents from the filesystem",
343
+ "category": "core",
344
+ "cacheable": true,
345
+ "parameters": {
346
+ "type": "object",
347
+ "properties": {
348
+ "file_path": { "type": "string", "description": "Absolute path to the file" },
349
+ "offset": { "type": "number", "description": "Line number to start from" },
350
+ "limit": { "type": "number", "description": "Number of lines to read" }
351
+ },
352
+ "required": ["file_path"]
353
+ }
354
+ },
355
+ {
356
+ "id": "write",
357
+ "name": "Write",
358
+ "description": "Write content to a file",
359
+ "category": "core",
360
+ "cacheable": false,
361
+ "parameters": {
362
+ "type": "object",
363
+ "properties": {
364
+ "file_path": { "type": "string", "description": "Absolute path to the file" },
365
+ "content": { "type": "string", "description": "Content to write" }
366
+ },
367
+ "required": ["file_path", "content"]
368
+ }
369
+ },
370
+ {
371
+ "id": "edit",
372
+ "name": "Edit",
373
+ "description": "Performs exact string replacements in files. Use empty old_string to create a file and empty new_string to delete matched text.",
374
+ "category": "core",
375
+ "cacheable": false,
376
+ "parameters": {
377
+ "type": "object",
378
+ "properties": {
379
+ "file_path": { "type": "string", "description": "Absolute path to the file to modify or create" },
380
+ "old_string": { "type": "string", "description": "Exact text to replace. Use empty string to create a new file." },
381
+ "new_string": { "type": "string", "description": "Replacement text. Use empty string to delete the match. Defaults to empty when omitted." },
382
+ "replace_all": { "type": "boolean", "description": "Replace all occurrences instead of enforcing uniqueness" }
383
+ },
384
+ "required": ["file_path", "old_string"]
385
+ }
386
+ },
387
+ {
388
+ "id": "bash",
389
+ "name": "Bash",
390
+ "description": "Execute shell commands",
391
+ "category": "core",
392
+ "cacheable": false,
393
+ "parameters": {
394
+ "type": "object",
395
+ "properties": {
396
+ "command": { "type": "string", "description": "Command to execute" },
397
+ "timeout": { "type": "number", "description": "Timeout in milliseconds" },
398
+ "description": { "type": "string", "description": "What this command does" }
399
+ },
400
+ "required": ["command"]
401
+ }
402
+ },
403
+ {
404
+ "id": "glob",
405
+ "name": "Glob",
406
+ "description": "Find files matching a pattern",
407
+ "category": "core",
408
+ "cacheable": true,
409
+ "parameters": {
410
+ "type": "object",
411
+ "properties": {
412
+ "pattern": { "type": "string", "description": "Glob pattern to match" },
413
+ "path": { "type": "string", "description": "Directory to search in" }
414
+ },
415
+ "required": ["pattern"]
416
+ }
417
+ },
418
+ {
419
+ "id": "grep",
420
+ "name": "Grep",
421
+ "description": "Search file contents with regex",
422
+ "category": "core",
423
+ "cacheable": true,
424
+ "parameters": {
425
+ "type": "object",
426
+ "properties": {
427
+ "pattern": { "type": "string", "description": "Regex pattern to search for" },
428
+ "path": { "type": "string", "description": "File or directory to search" },
429
+ "output_mode": { "type": "string", "enum": ["content", "files_with_matches", "count"] }
430
+ },
431
+ "required": ["pattern"]
432
+ }
433
+ },
434
+ {
435
+ "id": "web_search",
436
+ "name": "WebSearch",
437
+ "description": "Search the web for information",
438
+ "category": "web",
439
+ "cacheable": true,
440
+ "parameters": {
441
+ "type": "object",
442
+ "properties": {
443
+ "query": { "type": "string", "description": "Search query" }
444
+ },
445
+ "required": ["query"]
446
+ }
447
+ },
448
+ {
449
+ "id": "web_fetch",
450
+ "name": "WebFetch",
451
+ "description": "Fetch and analyze web page content",
452
+ "category": "web",
453
+ "cacheable": true,
454
+ "parameters": {
455
+ "type": "object",
456
+ "properties": {
457
+ "url": { "type": "string", "description": "URL to fetch" },
458
+ "prompt": { "type": "string", "description": "What to extract from the page" }
459
+ },
460
+ "required": ["url", "prompt"]
461
+ }
462
+ },
463
+ {
464
+ "id": "analyze_complexity",
465
+ "name": "AnalyzeComplexity",
466
+ "description": "Analyze code complexity metrics",
467
+ "category": "coding",
468
+ "cacheable": true,
469
+ "parameters": {
470
+ "type": "object",
471
+ "properties": {
472
+ "code": { "type": "string", "description": "Code to analyze" },
473
+ "language": { "type": "string", "description": "Programming language" }
474
+ },
475
+ "required": ["code"]
476
+ }
477
+ },
478
+ {
479
+ "id": "find_dependencies",
480
+ "name": "FindDependencies",
481
+ "description": "Find imports and dependencies in code",
482
+ "category": "coding",
483
+ "cacheable": true,
484
+ "parameters": {
485
+ "type": "object",
486
+ "properties": {
487
+ "code": { "type": "string", "description": "Code to analyze" },
488
+ "language": { "type": "string", "description": "Programming language" }
489
+ },
490
+ "required": ["code"]
491
+ }
492
+ },
493
+ {
494
+ "id": "generate_docstring",
495
+ "name": "GenerateDocstring",
496
+ "description": "Generate documentation for code",
497
+ "category": "coding",
498
+ "cacheable": false,
499
+ "parameters": {
500
+ "type": "object",
501
+ "properties": {
502
+ "code": { "type": "string", "description": "Code to document" },
503
+ "style": { "type": "string", "enum": ["google", "numpy", "sphinx", "jsdoc"] }
504
+ },
505
+ "required": ["code"]
506
+ }
507
+ },
508
+ {
509
+ "id": "suggest_refactorings",
510
+ "name": "SuggestRefactorings",
511
+ "description": "Suggest code refactoring improvements",
512
+ "category": "coding",
513
+ "cacheable": true,
514
+ "parameters": {
515
+ "type": "object",
516
+ "properties": {
517
+ "code": { "type": "string", "description": "Code to analyze" },
518
+ "focus": { "type": "array", "items": { "type": "string" } }
519
+ },
520
+ "required": ["code"]
521
+ }
522
+ },
523
+ {
524
+ "id": "generate_test_stub",
525
+ "name": "GenerateTestStub",
526
+ "description": "Generate test stubs for code",
527
+ "category": "coding",
528
+ "cacheable": false,
529
+ "parameters": {
530
+ "type": "object",
531
+ "properties": {
532
+ "code": { "type": "string", "description": "Code to test" },
533
+ "framework": { "type": "string", "description": "Test framework" }
534
+ },
535
+ "required": ["code"]
536
+ }
537
+ },
538
+ {
539
+ "id": "dependency_audit",
540
+ "name": "DependencyAudit",
541
+ "description": "Audit dependencies for vulnerabilities",
542
+ "category": "security",
543
+ "cacheable": true,
544
+ "requiresAuth": true,
545
+ "parameters": {
546
+ "type": "object",
547
+ "properties": {
548
+ "packageFile": { "type": "string", "description": "Path to package file" },
549
+ "severityThreshold": { "type": "string", "enum": ["critical", "high", "medium", "low"] }
550
+ },
551
+ "required": ["packageFile"]
552
+ }
553
+ },
554
+ {
555
+ "id": "code_security_scan",
556
+ "name": "CodeSecurityScan",
557
+ "description": "Scan code for security vulnerabilities",
558
+ "category": "security",
559
+ "cacheable": true,
560
+ "requiresAuth": true,
561
+ "parameters": {
562
+ "type": "object",
563
+ "properties": {
564
+ "code": { "type": "string", "description": "Code to scan" },
565
+ "language": { "type": "string", "description": "Programming language" }
566
+ },
567
+ "required": ["code", "language"]
568
+ }
569
+ },
570
+ {
571
+ "id": "analyze_attack_surface",
572
+ "name": "AnalyzeAttackSurface",
573
+ "description": "Analyze code attack surface",
574
+ "category": "security",
575
+ "cacheable": true,
576
+ "requiresAuth": true,
577
+ "parameters": {
578
+ "type": "object",
579
+ "properties": {
580
+ "code": { "type": "string", "description": "Code to analyze" },
581
+ "context": { "type": "string", "enum": ["web_app", "api", "cli", "library"] }
582
+ },
583
+ "required": ["code"]
584
+ }
585
+ },
586
+ {
587
+ "id": "alpha_zero_evaluate",
588
+ "name": "AlphaZeroEvaluate",
589
+ "description": "Evaluate code quality with Alpha Zero 2 metrics",
590
+ "category": "alpha_zero",
591
+ "cacheable": true,
592
+ "parameters": {
593
+ "type": "object",
594
+ "properties": {
595
+ "code": { "type": "string", "description": "Code to evaluate" }
596
+ },
597
+ "required": ["code"]
598
+ }
599
+ },
600
+ {
601
+ "id": "alpha_zero_tournament",
602
+ "name": "AlphaZeroTournament",
603
+ "description": "Run a competitive tournament between agents",
604
+ "category": "alpha_zero",
605
+ "cacheable": false,
606
+ "parameters": {
607
+ "type": "object",
608
+ "properties": {
609
+ "taskPrompts": { "type": "array", "items": { "type": "string" } },
610
+ "numRounds": { "type": "integer" }
611
+ },
612
+ "required": ["taskPrompts"]
613
+ }
614
+ },
615
+ {
616
+ "id": "alpha_zero_introspect",
617
+ "name": "AlphaZeroIntrospect",
618
+ "description": "Analyze agent performance and get improvement suggestions",
619
+ "category": "alpha_zero",
620
+ "cacheable": false,
621
+ "parameters": {
622
+ "type": "object",
623
+ "properties": {}
624
+ }
625
+ },
626
+ {
627
+ "id": "alpha_zero_history",
628
+ "name": "AlphaZeroHistory",
629
+ "description": "Get historical competition data",
630
+ "category": "alpha_zero",
631
+ "cacheable": true,
632
+ "parameters": {
633
+ "type": "object",
634
+ "properties": {}
635
+ }
636
+ },
637
+ {
638
+ "id": "alpha_zero_metrics",
639
+ "name": "AlphaZeroMetrics",
640
+ "description": "Get comprehensive performance metrics",
641
+ "category": "alpha_zero",
642
+ "cacheable": false,
643
+ "parameters": {
644
+ "type": "object",
645
+ "properties": {
646
+ "timeframe": { "type": "string", "enum": ["hour", "day", "week", "month", "all"] },
647
+ "includeTrends": { "type": "boolean" }
648
+ }
649
+ }
650
+ },
651
+ {
652
+ "id": "intelligence_analyze",
653
+ "name": "IntelligenceAnalyze",
654
+ "description": "Analyze codebase for issues, patterns, and metrics",
655
+ "category": "intelligence",
656
+ "cacheable": true,
657
+ "parameters": {
658
+ "type": "object",
659
+ "properties": {
660
+ "path": { "type": "string", "description": "Path to analyze (file or directory)" },
661
+ "includeMetrics": { "type": "boolean", "description": "Include code quality metrics" },
662
+ "severity": { "type": "string", "enum": ["all", "critical", "high", "medium", "low"], "description": "Minimum severity to report" }
663
+ }
664
+ }
665
+ },
666
+ {
667
+ "id": "intelligence_refactor",
668
+ "name": "IntelligenceRefactor",
669
+ "description": "Find and optionally apply refactoring opportunities",
670
+ "category": "intelligence",
671
+ "cacheable": false,
672
+ "parameters": {
673
+ "type": "object",
674
+ "properties": {
675
+ "path": { "type": "string", "description": "Path to analyze" },
676
+ "autoApply": { "type": "boolean", "description": "Automatically apply safe refactorings" },
677
+ "riskLevel": { "type": "string", "enum": ["safe", "low", "medium", "all"], "description": "Maximum risk level to consider" }
678
+ }
679
+ }
680
+ },
681
+ {
682
+ "id": "intelligence_document",
683
+ "name": "IntelligenceDocument",
684
+ "description": "Generate documentation from code analysis",
685
+ "category": "intelligence",
686
+ "cacheable": true,
687
+ "parameters": {
688
+ "type": "object",
689
+ "properties": {
690
+ "path": { "type": "string", "description": "Path to document" },
691
+ "format": { "type": "string", "enum": ["markdown", "json", "html"], "description": "Output format" },
692
+ "includeArchitecture": { "type": "boolean", "description": "Include architecture analysis" }
693
+ }
694
+ }
695
+ },
696
+ {
697
+ "id": "intelligence_test",
698
+ "name": "IntelligenceTest",
699
+ "description": "Generate test suites from code analysis",
700
+ "category": "intelligence",
701
+ "cacheable": false,
702
+ "parameters": {
703
+ "type": "object",
704
+ "properties": {
705
+ "path": { "type": "string", "description": "Path to generate tests for" },
706
+ "framework": { "type": "string", "enum": ["jest", "mocha", "vitest", "pytest"], "description": "Test framework" },
707
+ "includeEdgeCases": { "type": "boolean", "description": "Include edge case tests" }
708
+ }
709
+ }
710
+ },
711
+ {
712
+ "id": "intelligence_full",
713
+ "name": "IntelligenceFull",
714
+ "description": "Run full intelligence suite: analyze, refactor, document, and test",
715
+ "category": "intelligence",
716
+ "cacheable": false,
717
+ "parameters": {
718
+ "type": "object",
719
+ "properties": {
720
+ "path": { "type": "string", "description": "Path to analyze" },
721
+ "autoFix": { "type": "boolean", "description": "Automatically apply safe fixes" },
722
+ "outputDir": { "type": "string", "description": "Directory for output files" }
723
+ }
724
+ }
725
+ }
726
+ ],
727
+ "capabilities": [
728
+ { "id": "chat", "label": "Chat", "description": "Basic conversational capabilities" },
729
+ { "id": "reasoning", "label": "Reasoning", "description": "Extended chain-of-thought reasoning" },
730
+ { "id": "tools", "label": "Tool Use", "description": "Ability to call external tools" },
731
+ { "id": "streaming", "label": "Streaming", "description": "Support for streaming responses" },
732
+ { "id": "multimodal", "label": "Multimodal", "description": "Support for images and mixed content" },
733
+ { "id": "vision", "label": "Vision", "description": "Image understanding capabilities" },
734
+ { "id": "prompt_caching", "label": "Prompt Caching", "description": "Cache repeated prompt content" }
735
+ ],
736
+ "defaults": {
737
+ "provider": "anthropic",
738
+ "model": "claude-sonnet-4-5-20250929",
739
+ "temperature": 0.0,
740
+ "maxTokens": 4096,
741
+ "taskType": "coding"
742
+ },
743
+ "metadata": {
744
+ "schemaVersion": "2.0.0",
745
+ "lastUpdated": "2024-11-25",
746
+ "author": "Bo Shang",
747
+ "framework": "agi-cli",
748
+ "description": "Unified schema for all AI tasks across all providers"
749
+ }
750
+ }