@juspay/neurolink 11.13.0 → 11.13.2

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 (1906) hide show
  1. package/CHANGELOG.md +2 -6
  2. package/dist/browser/neurolink.min.js +681 -842
  3. package/dist/cli/commands/agent.js +2 -2
  4. package/dist/cli/commands/auth.d.ts +1 -1
  5. package/dist/cli/commands/auth.js +11 -11
  6. package/dist/cli/commands/authProviders.d.ts +1 -1
  7. package/dist/cli/commands/authProviders.js +2 -2
  8. package/dist/cli/commands/autoresearch.js +5 -5
  9. package/dist/cli/commands/config.d.ts +1 -1
  10. package/dist/cli/commands/config.js +4 -4
  11. package/dist/cli/commands/docs.d.ts +1 -1
  12. package/dist/cli/commands/evaluate.d.ts +1 -1
  13. package/dist/cli/commands/evaluate.js +4 -4
  14. package/dist/cli/commands/mcp.js +14 -14
  15. package/dist/cli/commands/models.js +3 -3
  16. package/dist/cli/commands/observability.d.ts +1 -1
  17. package/dist/cli/commands/observability.js +3 -3
  18. package/dist/cli/commands/ollama.js +1 -1
  19. package/dist/cli/commands/proxy.d.ts +2 -2
  20. package/dist/cli/commands/proxy.js +45 -45
  21. package/dist/cli/commands/proxyAnalyze.d.ts +1 -1
  22. package/dist/cli/commands/proxyAnalyze.js +2 -2
  23. package/dist/cli/commands/proxyReplay.d.ts +1 -1
  24. package/dist/cli/commands/proxyReplay.js +2 -2
  25. package/dist/cli/commands/rag.js +10 -10
  26. package/dist/cli/commands/serve.js +7 -7
  27. package/dist/cli/commands/server.js +6 -6
  28. package/dist/cli/commands/setup-anthropic.d.ts +1 -1
  29. package/dist/cli/commands/setup-anthropic.js +3 -3
  30. package/dist/cli/commands/setup-azure.d.ts +1 -1
  31. package/dist/cli/commands/setup-azure.js +3 -3
  32. package/dist/cli/commands/setup-bedrock.d.ts +1 -1
  33. package/dist/cli/commands/setup-bedrock.js +3 -3
  34. package/dist/cli/commands/setup-gcp.d.ts +1 -1
  35. package/dist/cli/commands/setup-gcp.js +1 -1
  36. package/dist/cli/commands/setup-google-ai.d.ts +1 -1
  37. package/dist/cli/commands/setup-google-ai.js +4 -4
  38. package/dist/cli/commands/setup-huggingface.d.ts +1 -1
  39. package/dist/cli/commands/setup-huggingface.js +1 -1
  40. package/dist/cli/commands/setup-mistral.d.ts +1 -1
  41. package/dist/cli/commands/setup-mistral.js +3 -3
  42. package/dist/cli/commands/setup-openai.d.ts +1 -1
  43. package/dist/cli/commands/setup-openai.js +3 -3
  44. package/dist/cli/commands/setup.d.ts +1 -1
  45. package/dist/cli/commands/setup.js +4 -4
  46. package/dist/cli/commands/task.js +4 -4
  47. package/dist/cli/commands/telemetry.d.ts +1 -1
  48. package/dist/cli/commands/telemetry.js +4 -4
  49. package/dist/cli/commands/voiceServer.d.ts +1 -1
  50. package/dist/cli/commands/voiceServer.js +6 -2
  51. package/dist/cli/commands/workflow.js +5 -5
  52. package/dist/cli/errorHandler.js +3 -3
  53. package/dist/cli/factories/commandFactory.js +13 -13
  54. package/dist/cli/factories/ollamaCommandFactory.js +3 -3
  55. package/dist/cli/factories/sagemakerCommandFactory.js +5 -5
  56. package/dist/cli/index.js +1 -1
  57. package/dist/cli/loop/conversationSelector.d.ts +1 -1
  58. package/dist/cli/loop/conversationSelector.js +3 -3
  59. package/dist/cli/loop/optionsSchema.d.ts +1 -1
  60. package/dist/cli/loop/optionsSchema.js +1 -1
  61. package/dist/cli/loop/session.d.ts +1 -1
  62. package/dist/cli/loop/session.js +6 -6
  63. package/dist/cli/parser.js +10 -2
  64. package/dist/cli/proxy-clients/claudeCode.d.ts +1 -1
  65. package/dist/cli/proxy-clients/claudeCode.js +1 -1
  66. package/dist/cli/proxy-clients/codex.d.ts +1 -1
  67. package/dist/cli/proxy-clients/codex.js +1 -1
  68. package/dist/cli/proxy-clients/copilot.d.ts +1 -1
  69. package/dist/cli/proxy-clients/copilot.js +1 -1
  70. package/dist/cli/proxy-clients/openCode.d.ts +1 -1
  71. package/dist/cli/proxy-clients/openCode.js +1 -1
  72. package/dist/cli/proxy-clients/qwenCode.d.ts +1 -1
  73. package/dist/cli/proxy-clients/qwenCode.js +1 -1
  74. package/dist/cli/proxy-clients/registry.d.ts +1 -1
  75. package/dist/cli/proxy-clients/registry.js +1 -1
  76. package/dist/cli/utils/audioFileUtils.d.ts +1 -1
  77. package/dist/cli/utils/audioPlayer.d.ts +1 -1
  78. package/dist/cli/utils/classifierRouterFlags.d.ts +1 -1
  79. package/dist/cli/utils/classifierRouterFlags.js +1 -1
  80. package/dist/cli/utils/completeSetup.d.ts +1 -1
  81. package/dist/cli/utils/completeSetup.js +1 -1
  82. package/dist/cli/utils/envManager.d.ts +1 -1
  83. package/dist/cli/utils/envManager.js +1 -1
  84. package/dist/cli/utils/inputValidation.js +2 -2
  85. package/dist/cli/utils/interactiveSetup.d.ts +2 -2
  86. package/dist/cli/utils/interactiveSetup.js +3 -3
  87. package/dist/cli/utils/ollamaUtils.d.ts +1 -1
  88. package/dist/cli/utils/ollamaUtils.js +1 -1
  89. package/dist/cli/utils/skillsFlags.d.ts +1 -1
  90. package/dist/cli/utils/toolRoutingFlags.d.ts +1 -1
  91. package/dist/cli/utils/toolRoutingFlags.js +1 -1
  92. package/dist/cli/utils/videoFileUtils.d.ts +1 -1
  93. package/dist/processors/data/XmlProcessor.d.ts +14 -0
  94. package/dist/processors/data/XmlProcessor.js +14 -0
  95. package/dist/processors/document/PptxProcessor.d.ts +9 -0
  96. package/dist/processors/document/PptxProcessor.js +9 -0
  97. package/dist/processors/media/VideoProcessor.js +30 -2
  98. package/dist/providers/amazonBedrock/client.js +1 -2
  99. package/dist/providers/googleVertex/index.d.ts +0 -1
  100. package/dist/providers/googleVertex/index.js +0 -1
  101. package/dist/rag/document/loaders.js +49 -21
  102. package/dist/server/abstract/baseServerAdapter.d.ts +13 -0
  103. package/dist/server/abstract/baseServerAdapter.js +39 -1
  104. package/dist/server/adapters/expressAdapter.js +15 -5
  105. package/dist/server/adapters/fastifyAdapter.js +15 -5
  106. package/dist/server/adapters/koaAdapter.js +16 -6
  107. package/dist/types/generate.d.ts +7 -0
  108. package/dist/types/stream.d.ts +1 -1
  109. package/docs-site/mcp-server/search.js +20 -12
  110. package/docs-site/mcp-server/types.d.ts +12 -5
  111. package/docs-site/static/search-index.json +1 -0
  112. package/package.json +16 -16
  113. package/dist/lib/action/actionExecutor.d.ts +0 -29
  114. package/dist/lib/action/actionExecutor.js +0 -291
  115. package/dist/lib/action/actionInputs.d.ts +0 -25
  116. package/dist/lib/action/actionInputs.js +0 -294
  117. package/dist/lib/action/githubIntegration.d.ts +0 -21
  118. package/dist/lib/action/githubIntegration.js +0 -188
  119. package/dist/lib/action/index.d.ts +0 -7
  120. package/dist/lib/action/index.js +0 -13
  121. package/dist/lib/adapters/audioFormatSupport.d.ts +0 -53
  122. package/dist/lib/adapters/audioFormatSupport.js +0 -201
  123. package/dist/lib/adapters/imageFormatSupport.d.ts +0 -75
  124. package/dist/lib/adapters/imageFormatSupport.js +0 -284
  125. package/dist/lib/adapters/providerImageAdapter.d.ts +0 -51
  126. package/dist/lib/adapters/providerImageAdapter.js +0 -704
  127. package/dist/lib/adapters/replicate/auth.d.ts +0 -19
  128. package/dist/lib/adapters/replicate/auth.js +0 -33
  129. package/dist/lib/adapters/replicate/predictionLifecycle.d.ts +0 -46
  130. package/dist/lib/adapters/replicate/predictionLifecycle.js +0 -289
  131. package/dist/lib/adapters/tts/cartesiaHandler.d.ts +0 -12
  132. package/dist/lib/adapters/tts/cartesiaHandler.js +0 -131
  133. package/dist/lib/adapters/tts/googleTTSHandler.d.ts +0 -97
  134. package/dist/lib/adapters/tts/googleTTSHandler.js +0 -353
  135. package/dist/lib/adapters/video/directorPipeline.d.ts +0 -31
  136. package/dist/lib/adapters/video/directorPipeline.js +0 -523
  137. package/dist/lib/adapters/video/ffmpegAdapter.d.ts +0 -84
  138. package/dist/lib/adapters/video/ffmpegAdapter.js +0 -207
  139. package/dist/lib/adapters/video/frameExtractor.d.ts +0 -28
  140. package/dist/lib/adapters/video/frameExtractor.js +0 -144
  141. package/dist/lib/adapters/video/klingVideoHandler.d.ts +0 -37
  142. package/dist/lib/adapters/video/klingVideoHandler.js +0 -306
  143. package/dist/lib/adapters/video/replicateVideoHandler.d.ts +0 -29
  144. package/dist/lib/adapters/video/replicateVideoHandler.js +0 -168
  145. package/dist/lib/adapters/video/runwayVideoHandler.d.ts +0 -32
  146. package/dist/lib/adapters/video/runwayVideoHandler.js +0 -317
  147. package/dist/lib/adapters/video/vertexVideoHandler.d.ts +0 -119
  148. package/dist/lib/adapters/video/vertexVideoHandler.js +0 -804
  149. package/dist/lib/adapters/video/videoAnalyzer.d.ts +0 -26
  150. package/dist/lib/adapters/video/videoAnalyzer.js +0 -239
  151. package/dist/lib/adapters/video/videoMerger.d.ts +0 -22
  152. package/dist/lib/adapters/video/videoMerger.js +0 -172
  153. package/dist/lib/agent/agent.d.ts +0 -104
  154. package/dist/lib/agent/agent.js +0 -433
  155. package/dist/lib/agent/agentNetwork.d.ts +0 -87
  156. package/dist/lib/agent/agentNetwork.js +0 -501
  157. package/dist/lib/agent/agentToolRegistrar.d.ts +0 -48
  158. package/dist/lib/agent/agentToolRegistrar.js +0 -337
  159. package/dist/lib/agent/communication/index.d.ts +0 -9
  160. package/dist/lib/agent/communication/index.js +0 -10
  161. package/dist/lib/agent/communication/message-bus.d.ts +0 -113
  162. package/dist/lib/agent/communication/message-bus.js +0 -407
  163. package/dist/lib/agent/coordination/coordinator.d.ts +0 -83
  164. package/dist/lib/agent/coordination/coordinator.js +0 -599
  165. package/dist/lib/agent/coordination/index.d.ts +0 -10
  166. package/dist/lib/agent/coordination/index.js +0 -11
  167. package/dist/lib/agent/coordination/task-distributor.d.ts +0 -113
  168. package/dist/lib/agent/coordination/task-distributor.js +0 -586
  169. package/dist/lib/agent/directTools.d.ts +0 -306
  170. package/dist/lib/agent/directTools.js +0 -907
  171. package/dist/lib/agent/index.d.ts +0 -41
  172. package/dist/lib/agent/index.js +0 -49
  173. package/dist/lib/agent/isolatedAgentRunner.d.ts +0 -73
  174. package/dist/lib/agent/isolatedAgentRunner.js +0 -947
  175. package/dist/lib/agent/orchestration/index.d.ts +0 -10
  176. package/dist/lib/agent/orchestration/index.js +0 -11
  177. package/dist/lib/agent/orchestration/orchestrator.d.ts +0 -114
  178. package/dist/lib/agent/orchestration/orchestrator.js +0 -479
  179. package/dist/lib/agent/orchestration/topology.d.ts +0 -164
  180. package/dist/lib/agent/orchestration/topology.js +0 -521
  181. package/dist/lib/agent/prompts/routingPrompts.d.ts +0 -63
  182. package/dist/lib/agent/prompts/routingPrompts.js +0 -202
  183. package/dist/lib/agent/structuredRecovery.d.ts +0 -30
  184. package/dist/lib/agent/structuredRecovery.js +0 -105
  185. package/dist/lib/analytics/index.d.ts +0 -7
  186. package/dist/lib/analytics/index.js +0 -8
  187. package/dist/lib/analytics/parseQualityScore.d.ts +0 -9
  188. package/dist/lib/analytics/parseQualityScore.js +0 -30
  189. package/dist/lib/analytics/pricing.d.ts +0 -27
  190. package/dist/lib/analytics/pricing.js +0 -42
  191. package/dist/lib/analytics/service.d.ts +0 -36
  192. package/dist/lib/analytics/service.js +0 -394
  193. package/dist/lib/analytics/storage.d.ts +0 -19
  194. package/dist/lib/analytics/storage.js +0 -33
  195. package/dist/lib/artifacts/artifactStore.d.ts +0 -55
  196. package/dist/lib/artifacts/artifactStore.js +0 -145
  197. package/dist/lib/auth/AuthProviderFactory.d.ts +0 -69
  198. package/dist/lib/auth/AuthProviderFactory.js +0 -112
  199. package/dist/lib/auth/AuthProviderRegistry.d.ts +0 -33
  200. package/dist/lib/auth/AuthProviderRegistry.js +0 -191
  201. package/dist/lib/auth/RequestContext.d.ts +0 -23
  202. package/dist/lib/auth/RequestContext.js +0 -79
  203. package/dist/lib/auth/accountPool.d.ts +0 -68
  204. package/dist/lib/auth/accountPool.js +0 -179
  205. package/dist/lib/auth/anthropicOAuth.d.ts +0 -400
  206. package/dist/lib/auth/anthropicOAuth.js +0 -1143
  207. package/dist/lib/auth/authContext.d.ts +0 -198
  208. package/dist/lib/auth/authContext.js +0 -315
  209. package/dist/lib/auth/codexOAuth.d.ts +0 -67
  210. package/dist/lib/auth/codexOAuth.js +0 -203
  211. package/dist/lib/auth/errors.d.ts +0 -63
  212. package/dist/lib/auth/errors.js +0 -40
  213. package/dist/lib/auth/index.d.ts +0 -41
  214. package/dist/lib/auth/index.js +0 -86
  215. package/dist/lib/auth/middleware/AuthMiddleware.d.ts +0 -127
  216. package/dist/lib/auth/middleware/AuthMiddleware.js +0 -523
  217. package/dist/lib/auth/middleware/rateLimitByUser.d.ts +0 -193
  218. package/dist/lib/auth/middleware/rateLimitByUser.js +0 -559
  219. package/dist/lib/auth/providers/BaseAuthProvider.d.ts +0 -259
  220. package/dist/lib/auth/providers/BaseAuthProvider.js +0 -724
  221. package/dist/lib/auth/providers/CognitoProvider.d.ts +0 -61
  222. package/dist/lib/auth/providers/CognitoProvider.js +0 -308
  223. package/dist/lib/auth/providers/KeycloakProvider.d.ts +0 -61
  224. package/dist/lib/auth/providers/KeycloakProvider.js +0 -396
  225. package/dist/lib/auth/providers/auth0.d.ts +0 -59
  226. package/dist/lib/auth/providers/auth0.js +0 -275
  227. package/dist/lib/auth/providers/betterAuth.d.ts +0 -51
  228. package/dist/lib/auth/providers/betterAuth.js +0 -183
  229. package/dist/lib/auth/providers/clerk.d.ts +0 -65
  230. package/dist/lib/auth/providers/clerk.js +0 -318
  231. package/dist/lib/auth/providers/custom.d.ts +0 -64
  232. package/dist/lib/auth/providers/custom.js +0 -113
  233. package/dist/lib/auth/providers/firebase.d.ts +0 -63
  234. package/dist/lib/auth/providers/firebase.js +0 -231
  235. package/dist/lib/auth/providers/jwt.d.ts +0 -68
  236. package/dist/lib/auth/providers/jwt.js +0 -217
  237. package/dist/lib/auth/providers/oauth2.d.ts +0 -73
  238. package/dist/lib/auth/providers/oauth2.js +0 -304
  239. package/dist/lib/auth/providers/supabase.d.ts +0 -63
  240. package/dist/lib/auth/providers/supabase.js +0 -260
  241. package/dist/lib/auth/providers/workos.d.ts +0 -61
  242. package/dist/lib/auth/providers/workos.js +0 -289
  243. package/dist/lib/auth/serverBridge.d.ts +0 -14
  244. package/dist/lib/auth/serverBridge.js +0 -26
  245. package/dist/lib/auth/sessionManager.d.ts +0 -118
  246. package/dist/lib/auth/sessionManager.js +0 -511
  247. package/dist/lib/auth/tokenStore.d.ts +0 -283
  248. package/dist/lib/auth/tokenStore.js +0 -929
  249. package/dist/lib/autoresearch/config.d.ts +0 -11
  250. package/dist/lib/autoresearch/config.js +0 -109
  251. package/dist/lib/autoresearch/errors.d.ts +0 -40
  252. package/dist/lib/autoresearch/errors.js +0 -21
  253. package/dist/lib/autoresearch/index.d.ts +0 -23
  254. package/dist/lib/autoresearch/index.js +0 -35
  255. package/dist/lib/autoresearch/phasePolicy.d.ts +0 -9
  256. package/dist/lib/autoresearch/phasePolicy.js +0 -70
  257. package/dist/lib/autoresearch/promptCompiler.d.ts +0 -15
  258. package/dist/lib/autoresearch/promptCompiler.js +0 -121
  259. package/dist/lib/autoresearch/repoPolicy.d.ts +0 -32
  260. package/dist/lib/autoresearch/repoPolicy.js +0 -129
  261. package/dist/lib/autoresearch/resultRecorder.d.ts +0 -20
  262. package/dist/lib/autoresearch/resultRecorder.js +0 -131
  263. package/dist/lib/autoresearch/runner.d.ts +0 -10
  264. package/dist/lib/autoresearch/runner.js +0 -109
  265. package/dist/lib/autoresearch/stateStore.d.ts +0 -12
  266. package/dist/lib/autoresearch/stateStore.js +0 -164
  267. package/dist/lib/autoresearch/summaryParser.d.ts +0 -16
  268. package/dist/lib/autoresearch/summaryParser.js +0 -95
  269. package/dist/lib/autoresearch/tools.d.ts +0 -27
  270. package/dist/lib/autoresearch/tools.js +0 -618
  271. package/dist/lib/autoresearch/worker.d.ts +0 -71
  272. package/dist/lib/autoresearch/worker.js +0 -418
  273. package/dist/lib/avatar/index.d.ts +0 -26
  274. package/dist/lib/avatar/index.js +0 -86
  275. package/dist/lib/avatar/providers/DIDAvatar.d.ts +0 -49
  276. package/dist/lib/avatar/providers/DIDAvatar.js +0 -502
  277. package/dist/lib/avatar/providers/HeyGenAvatar.d.ts +0 -30
  278. package/dist/lib/avatar/providers/HeyGenAvatar.js +0 -338
  279. package/dist/lib/avatar/providers/ReplicateAvatar.d.ts +0 -36
  280. package/dist/lib/avatar/providers/ReplicateAvatar.js +0 -268
  281. package/dist/lib/client/aiSdkAdapter.d.ts +0 -196
  282. package/dist/lib/client/aiSdkAdapter.js +0 -498
  283. package/dist/lib/client/auth.d.ts +0 -248
  284. package/dist/lib/client/auth.js +0 -469
  285. package/dist/lib/client/errors.d.ts +0 -298
  286. package/dist/lib/client/errors.js +0 -553
  287. package/dist/lib/client/httpClient.d.ts +0 -296
  288. package/dist/lib/client/httpClient.js +0 -851
  289. package/dist/lib/client/index.d.ts +0 -103
  290. package/dist/lib/client/index.js +0 -174
  291. package/dist/lib/client/interceptors.d.ts +0 -207
  292. package/dist/lib/client/interceptors.js +0 -620
  293. package/dist/lib/client/reactHooks.d.ts +0 -238
  294. package/dist/lib/client/reactHooks.js +0 -1168
  295. package/dist/lib/client/sseClient.d.ts +0 -115
  296. package/dist/lib/client/sseClient.js +0 -575
  297. package/dist/lib/client/streamingClient.d.ts +0 -255
  298. package/dist/lib/client/streamingClient.js +0 -963
  299. package/dist/lib/client/wsClient.d.ts +0 -127
  300. package/dist/lib/client/wsClient.js +0 -450
  301. package/dist/lib/config/configManager.d.ts +0 -60
  302. package/dist/lib/config/configManager.js +0 -304
  303. package/dist/lib/config/conversationMemory.d.ts +0 -51
  304. package/dist/lib/config/conversationMemory.js +0 -87
  305. package/dist/lib/config/modelSpecificPrompts.d.ts +0 -9
  306. package/dist/lib/config/modelSpecificPrompts.js +0 -39
  307. package/dist/lib/config/taskClassificationConfig.d.ts +0 -51
  308. package/dist/lib/config/taskClassificationConfig.js +0 -149
  309. package/dist/lib/constants/contextWindows.d.ts +0 -89
  310. package/dist/lib/constants/contextWindows.js +0 -568
  311. package/dist/lib/constants/enums.d.ts +0 -979
  312. package/dist/lib/constants/enums.js +0 -1247
  313. package/dist/lib/constants/index.d.ts +0 -184
  314. package/dist/lib/constants/index.js +0 -209
  315. package/dist/lib/constants/networkErrorCodes.d.ts +0 -14
  316. package/dist/lib/constants/networkErrorCodes.js +0 -22
  317. package/dist/lib/constants/performance.d.ts +0 -366
  318. package/dist/lib/constants/performance.js +0 -390
  319. package/dist/lib/constants/retry.d.ts +0 -224
  320. package/dist/lib/constants/retry.js +0 -267
  321. package/dist/lib/constants/timeouts.d.ts +0 -225
  322. package/dist/lib/constants/timeouts.js +0 -183
  323. package/dist/lib/constants/tokens.d.ts +0 -294
  324. package/dist/lib/constants/tokens.js +0 -381
  325. package/dist/lib/constants/videoErrors.d.ts +0 -49
  326. package/dist/lib/constants/videoErrors.js +0 -51
  327. package/dist/lib/context/anthropicLoopGuard.d.ts +0 -47
  328. package/dist/lib/context/anthropicLoopGuard.js +0 -186
  329. package/dist/lib/context/budgetChecker.d.ts +0 -33
  330. package/dist/lib/context/budgetChecker.js +0 -132
  331. package/dist/lib/context/contextCompactor.d.ts +0 -19
  332. package/dist/lib/context/contextCompactor.js +0 -258
  333. package/dist/lib/context/effectiveHistory.d.ts +0 -52
  334. package/dist/lib/context/effectiveHistory.js +0 -106
  335. package/dist/lib/context/emergencyTruncation.d.ts +0 -21
  336. package/dist/lib/context/emergencyTruncation.js +0 -89
  337. package/dist/lib/context/errorDetection.d.ts +0 -36
  338. package/dist/lib/context/errorDetection.js +0 -190
  339. package/dist/lib/context/errors.d.ts +0 -19
  340. package/dist/lib/context/errors.js +0 -22
  341. package/dist/lib/context/fileSummarizationService.d.ts +0 -45
  342. package/dist/lib/context/fileSummarizationService.js +0 -256
  343. package/dist/lib/context/fileSummarizer.d.ts +0 -55
  344. package/dist/lib/context/fileSummarizer.js +0 -146
  345. package/dist/lib/context/fileTokenBudget.d.ts +0 -52
  346. package/dist/lib/context/fileTokenBudget.js +0 -128
  347. package/dist/lib/context/geminiLoopGuard.d.ts +0 -54
  348. package/dist/lib/context/geminiLoopGuard.js +0 -141
  349. package/dist/lib/context/loopGuardCore.d.ts +0 -43
  350. package/dist/lib/context/loopGuardCore.js +0 -146
  351. package/dist/lib/context/openaiCompatLoopGuard.d.ts +0 -42
  352. package/dist/lib/context/openaiCompatLoopGuard.js +0 -173
  353. package/dist/lib/context/prompts/summarizationPrompt.d.ts +0 -16
  354. package/dist/lib/context/prompts/summarizationPrompt.js +0 -118
  355. package/dist/lib/context/stages/fileReadDeduplicator.d.ts +0 -8
  356. package/dist/lib/context/stages/fileReadDeduplicator.js +0 -67
  357. package/dist/lib/context/stages/slidingWindowTruncator.d.ts +0 -15
  358. package/dist/lib/context/stages/slidingWindowTruncator.js +0 -237
  359. package/dist/lib/context/stages/structuredSummarizer.d.ts +0 -8
  360. package/dist/lib/context/stages/structuredSummarizer.js +0 -123
  361. package/dist/lib/context/stages/toolOutputPruner.d.ts +0 -8
  362. package/dist/lib/context/stages/toolOutputPruner.js +0 -53
  363. package/dist/lib/context/stepBudgetGuard.d.ts +0 -61
  364. package/dist/lib/context/stepBudgetGuard.js +0 -358
  365. package/dist/lib/context/summarizationEngine.d.ts +0 -45
  366. package/dist/lib/context/summarizationEngine.js +0 -162
  367. package/dist/lib/context/toolOutputLimits.d.ts +0 -36
  368. package/dist/lib/context/toolOutputLimits.js +0 -95
  369. package/dist/lib/context/toolPairRepair.d.ts +0 -43
  370. package/dist/lib/context/toolPairRepair.js +0 -242
  371. package/dist/lib/core/analytics.d.ts +0 -11
  372. package/dist/lib/core/analytics.js +0 -117
  373. package/dist/lib/core/baseProvider.d.ts +0 -500
  374. package/dist/lib/core/baseProvider.js +0 -2081
  375. package/dist/lib/core/constants.d.ts +0 -146
  376. package/dist/lib/core/constants.js +0 -278
  377. package/dist/lib/core/conversationMemoryFactory.d.ts +0 -19
  378. package/dist/lib/core/conversationMemoryFactory.js +0 -147
  379. package/dist/lib/core/conversationMemoryInitializer.d.ts +0 -14
  380. package/dist/lib/core/conversationMemoryInitializer.js +0 -129
  381. package/dist/lib/core/conversationMemoryManager.d.ts +0 -110
  382. package/dist/lib/core/conversationMemoryManager.js +0 -471
  383. package/dist/lib/core/dynamicModels.d.ts +0 -89
  384. package/dist/lib/core/dynamicModels.js +0 -337
  385. package/dist/lib/core/evaluation.d.ts +0 -18
  386. package/dist/lib/core/evaluation.js +0 -310
  387. package/dist/lib/core/evaluationProviders.d.ts +0 -60
  388. package/dist/lib/core/evaluationProviders.js +0 -249
  389. package/dist/lib/core/factory.d.ts +0 -54
  390. package/dist/lib/core/factory.js +0 -364
  391. package/dist/lib/core/geminiLoopAdapter.d.ts +0 -20
  392. package/dist/lib/core/geminiLoopAdapter.js +0 -171
  393. package/dist/lib/core/handlerRegistry.d.ts +0 -29
  394. package/dist/lib/core/handlerRegistry.js +0 -62
  395. package/dist/lib/core/infrastructure/baseError.d.ts +0 -21
  396. package/dist/lib/core/infrastructure/baseError.js +0 -23
  397. package/dist/lib/core/infrastructure/baseFactory.d.ts +0 -16
  398. package/dist/lib/core/infrastructure/baseFactory.js +0 -55
  399. package/dist/lib/core/infrastructure/baseRegistry.d.ts +0 -19
  400. package/dist/lib/core/infrastructure/baseRegistry.js +0 -54
  401. package/dist/lib/core/infrastructure/index.d.ts +0 -5
  402. package/dist/lib/core/infrastructure/index.js +0 -6
  403. package/dist/lib/core/infrastructure/retry.d.ts +0 -2
  404. package/dist/lib/core/infrastructure/retry.js +0 -21
  405. package/dist/lib/core/infrastructure/typedEventEmitter.d.ts +0 -8
  406. package/dist/lib/core/infrastructure/typedEventEmitter.js +0 -24
  407. package/dist/lib/core/loopEngine.d.ts +0 -21
  408. package/dist/lib/core/loopEngine.js +0 -272
  409. package/dist/lib/core/modelConfiguration.d.ts +0 -179
  410. package/dist/lib/core/modelConfiguration.js +0 -549
  411. package/dist/lib/core/modules/GenerationHandler.d.ts +0 -135
  412. package/dist/lib/core/modules/GenerationHandler.js +0 -1028
  413. package/dist/lib/core/modules/MessageBuilder.d.ts +0 -24
  414. package/dist/lib/core/modules/MessageBuilder.js +0 -311
  415. package/dist/lib/core/modules/StreamHandler.d.ts +0 -70
  416. package/dist/lib/core/modules/StreamHandler.js +0 -229
  417. package/dist/lib/core/modules/TelemetryHandler.d.ts +0 -70
  418. package/dist/lib/core/modules/TelemetryHandler.js +0 -229
  419. package/dist/lib/core/modules/ToolsManager.d.ts +0 -105
  420. package/dist/lib/core/modules/ToolsManager.js +0 -737
  421. package/dist/lib/core/modules/Utilities.d.ts +0 -90
  422. package/dist/lib/core/modules/Utilities.js +0 -347
  423. package/dist/lib/core/modules/structuredOutputPolicy.d.ts +0 -91
  424. package/dist/lib/core/modules/structuredOutputPolicy.js +0 -136
  425. package/dist/lib/core/nativeToolFormat.d.ts +0 -33
  426. package/dist/lib/core/nativeToolFormat.js +0 -31
  427. package/dist/lib/core/redisConversationMemoryManager.d.ts +0 -235
  428. package/dist/lib/core/redisConversationMemoryManager.js +0 -1724
  429. package/dist/lib/core/serviceRegistry.d.ts +0 -40
  430. package/dist/lib/core/serviceRegistry.js +0 -113
  431. package/dist/lib/core/streamAnalytics.d.ts +0 -27
  432. package/dist/lib/core/streamAnalytics.js +0 -132
  433. package/dist/lib/core/streamChannel.d.ts +0 -10
  434. package/dist/lib/core/streamChannel.js +0 -77
  435. package/dist/lib/core/toolDedup.d.ts +0 -51
  436. package/dist/lib/core/toolDedup.js +0 -197
  437. package/dist/lib/core/toolEvents.d.ts +0 -2
  438. package/dist/lib/core/toolEvents.js +0 -8
  439. package/dist/lib/core/toolExecutionRecorder.d.ts +0 -76
  440. package/dist/lib/core/toolExecutionRecorder.js +0 -261
  441. package/dist/lib/core/toolRouting.d.ts +0 -68
  442. package/dist/lib/core/toolRouting.js +0 -496
  443. package/dist/lib/core/toolRoutingCache.d.ts +0 -64
  444. package/dist/lib/core/toolRoutingCache.js +0 -155
  445. package/dist/lib/core/toolRoutingEmbedding.d.ts +0 -112
  446. package/dist/lib/core/toolRoutingEmbedding.js +0 -323
  447. package/dist/lib/dynamic/dynamicResolver.d.ts +0 -282
  448. package/dist/lib/dynamic/dynamicResolver.js +0 -634
  449. package/dist/lib/dynamic/index.d.ts +0 -10
  450. package/dist/lib/dynamic/index.js +0 -13
  451. package/dist/lib/dynamic/resolution.d.ts +0 -17
  452. package/dist/lib/dynamic/resolution.js +0 -22
  453. package/dist/lib/evaluation/BatchEvaluator.d.ts +0 -65
  454. package/dist/lib/evaluation/BatchEvaluator.js +0 -271
  455. package/dist/lib/evaluation/EvaluationAggregator.d.ts +0 -156
  456. package/dist/lib/evaluation/EvaluationAggregator.js +0 -378
  457. package/dist/lib/evaluation/EvaluatorFactory.d.ts +0 -102
  458. package/dist/lib/evaluation/EvaluatorFactory.js +0 -281
  459. package/dist/lib/evaluation/EvaluatorRegistry.d.ts +0 -111
  460. package/dist/lib/evaluation/EvaluatorRegistry.js +0 -185
  461. package/dist/lib/evaluation/contextBuilder.d.ts +0 -44
  462. package/dist/lib/evaluation/contextBuilder.js +0 -132
  463. package/dist/lib/evaluation/errors/EvaluationError.d.ts +0 -161
  464. package/dist/lib/evaluation/errors/EvaluationError.js +0 -207
  465. package/dist/lib/evaluation/errors/index.d.ts +0 -4
  466. package/dist/lib/evaluation/errors/index.js +0 -5
  467. package/dist/lib/evaluation/hooks/index.d.ts +0 -6
  468. package/dist/lib/evaluation/hooks/index.js +0 -7
  469. package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +0 -62
  470. package/dist/lib/evaluation/hooks/langfuseAdapter.js +0 -173
  471. package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +0 -77
  472. package/dist/lib/evaluation/hooks/observabilityHooks.js +0 -187
  473. package/dist/lib/evaluation/index.d.ts +0 -41
  474. package/dist/lib/evaluation/index.js +0 -78
  475. package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +0 -83
  476. package/dist/lib/evaluation/pipeline/evaluationPipeline.js +0 -397
  477. package/dist/lib/evaluation/pipeline/index.d.ts +0 -8
  478. package/dist/lib/evaluation/pipeline/index.js +0 -9
  479. package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +0 -126
  480. package/dist/lib/evaluation/pipeline/pipelineBuilder.js +0 -261
  481. package/dist/lib/evaluation/pipeline/presets.d.ts +0 -66
  482. package/dist/lib/evaluation/pipeline/presets.js +0 -225
  483. package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +0 -46
  484. package/dist/lib/evaluation/pipeline/strategies/batchStrategy.js +0 -242
  485. package/dist/lib/evaluation/pipeline/strategies/index.d.ts +0 -6
  486. package/dist/lib/evaluation/pipeline/strategies/index.js +0 -7
  487. package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +0 -76
  488. package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.js +0 -247
  489. package/dist/lib/evaluation/prompts.d.ts +0 -22
  490. package/dist/lib/evaluation/prompts.js +0 -74
  491. package/dist/lib/evaluation/ragasEvaluator.d.ts +0 -28
  492. package/dist/lib/evaluation/ragasEvaluator.js +0 -127
  493. package/dist/lib/evaluation/reporting/index.d.ts +0 -6
  494. package/dist/lib/evaluation/reporting/index.js +0 -7
  495. package/dist/lib/evaluation/reporting/metricsCollector.d.ts +0 -88
  496. package/dist/lib/evaluation/reporting/metricsCollector.js +0 -286
  497. package/dist/lib/evaluation/reporting/reportGenerator.d.ts +0 -57
  498. package/dist/lib/evaluation/reporting/reportGenerator.js +0 -375
  499. package/dist/lib/evaluation/retryManager.d.ts +0 -39
  500. package/dist/lib/evaluation/retryManager.js +0 -79
  501. package/dist/lib/evaluation/scorers/baseScorer.d.ts +0 -82
  502. package/dist/lib/evaluation/scorers/baseScorer.js +0 -233
  503. package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +0 -86
  504. package/dist/lib/evaluation/scorers/customScorerUtils.js +0 -382
  505. package/dist/lib/evaluation/scorers/index.d.ts +0 -10
  506. package/dist/lib/evaluation/scorers/index.js +0 -17
  507. package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +0 -12
  508. package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.js +0 -100
  509. package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +0 -69
  510. package/dist/lib/evaluation/scorers/llm/baseLLMScorer.js +0 -282
  511. package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +0 -12
  512. package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.js +0 -128
  513. package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +0 -12
  514. package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.js +0 -93
  515. package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +0 -12
  516. package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.js +0 -108
  517. package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +0 -12
  518. package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.js +0 -122
  519. package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +0 -12
  520. package/dist/lib/evaluation/scorers/llm/hallucinationScorer.js +0 -141
  521. package/dist/lib/evaluation/scorers/llm/index.d.ts +0 -15
  522. package/dist/lib/evaluation/scorers/llm/index.js +0 -17
  523. package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +0 -12
  524. package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.js +0 -107
  525. package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +0 -12
  526. package/dist/lib/evaluation/scorers/llm/summarizationScorer.js +0 -115
  527. package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +0 -12
  528. package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.js +0 -107
  529. package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +0 -12
  530. package/dist/lib/evaluation/scorers/llm/toxicityScorer.js +0 -122
  531. package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +0 -77
  532. package/dist/lib/evaluation/scorers/rule/baseRuleScorer.js +0 -234
  533. package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +0 -81
  534. package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.js +0 -353
  535. package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +0 -107
  536. package/dist/lib/evaluation/scorers/rule/formatScorer.js +0 -471
  537. package/dist/lib/evaluation/scorers/rule/index.d.ts +0 -9
  538. package/dist/lib/evaluation/scorers/rule/index.js +0 -11
  539. package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +0 -66
  540. package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.js +0 -348
  541. package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +0 -74
  542. package/dist/lib/evaluation/scorers/rule/lengthScorer.js +0 -352
  543. package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +0 -160
  544. package/dist/lib/evaluation/scorers/scorerBuilder.js +0 -421
  545. package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +0 -65
  546. package/dist/lib/evaluation/scorers/scorerRegistry.js +0 -540
  547. package/dist/lib/evaluation/scoring.d.ts +0 -15
  548. package/dist/lib/evaluation/scoring.js +0 -61
  549. package/dist/lib/factories/providerDescriptors.d.ts +0 -18
  550. package/dist/lib/factories/providerDescriptors.js +0 -547
  551. package/dist/lib/factories/providerFactory.d.ts +0 -87
  552. package/dist/lib/factories/providerFactory.js +0 -199
  553. package/dist/lib/factories/providerRegistry.d.ts +0 -58
  554. package/dist/lib/factories/providerRegistry.js +0 -549
  555. package/dist/lib/features/ppt/constants.d.ts +0 -121
  556. package/dist/lib/features/ppt/constants.js +0 -897
  557. package/dist/lib/features/ppt/contentPlanner.d.ts +0 -47
  558. package/dist/lib/features/ppt/contentPlanner.js +0 -558
  559. package/dist/lib/features/ppt/index.d.ts +0 -11
  560. package/dist/lib/features/ppt/index.js +0 -33
  561. package/dist/lib/features/ppt/pptError.d.ts +0 -38
  562. package/dist/lib/features/ppt/pptError.js +0 -54
  563. package/dist/lib/features/ppt/presentationOrchestrator.d.ts +0 -37
  564. package/dist/lib/features/ppt/presentationOrchestrator.js +0 -231
  565. package/dist/lib/features/ppt/slideGenerator.d.ts +0 -56
  566. package/dist/lib/features/ppt/slideGenerator.js +0 -542
  567. package/dist/lib/features/ppt/slideRenderers.d.ts +0 -347
  568. package/dist/lib/features/ppt/slideRenderers.js +0 -2384
  569. package/dist/lib/features/ppt/slideTypeInference.d.ts +0 -91
  570. package/dist/lib/features/ppt/slideTypeInference.js +0 -406
  571. package/dist/lib/features/ppt/utils.d.ts +0 -103
  572. package/dist/lib/features/ppt/utils.js +0 -446
  573. package/dist/lib/files/fileReferenceRegistry.d.ts +0 -275
  574. package/dist/lib/files/fileReferenceRegistry.js +0 -1559
  575. package/dist/lib/files/fileTools.d.ts +0 -176
  576. package/dist/lib/files/fileTools.js +0 -435
  577. package/dist/lib/files/index.d.ts +0 -13
  578. package/dist/lib/files/index.js +0 -14
  579. package/dist/lib/files/streamingReader.d.ts +0 -93
  580. package/dist/lib/files/streamingReader.js +0 -322
  581. package/dist/lib/hitl/hitlErrors.d.ts +0 -38
  582. package/dist/lib/hitl/hitlErrors.js +0 -55
  583. package/dist/lib/hitl/hitlManager.d.ts +0 -100
  584. package/dist/lib/hitl/hitlManager.js +0 -461
  585. package/dist/lib/hitl/index.d.ts +0 -7
  586. package/dist/lib/hitl/index.js +0 -10
  587. package/dist/lib/image-gen/ImageGenService.d.ts +0 -146
  588. package/dist/lib/image-gen/ImageGenService.js +0 -349
  589. package/dist/lib/image-gen/imageGenTools.d.ts +0 -109
  590. package/dist/lib/image-gen/imageGenTools.js +0 -305
  591. package/dist/lib/image-gen/index.d.ts +0 -45
  592. package/dist/lib/image-gen/index.js +0 -49
  593. package/dist/lib/index.d.ts +0 -447
  594. package/dist/lib/index.js +0 -748
  595. package/dist/lib/knowledge/context.d.ts +0 -18
  596. package/dist/lib/knowledge/context.js +0 -92
  597. package/dist/lib/knowledge/defaults.d.ts +0 -24
  598. package/dist/lib/knowledge/defaults.js +0 -30
  599. package/dist/lib/knowledge/engine.d.ts +0 -35
  600. package/dist/lib/knowledge/engine.js +0 -180
  601. package/dist/lib/knowledge/index.d.ts +0 -15
  602. package/dist/lib/knowledge/index.js +0 -16
  603. package/dist/lib/knowledge/indexCache.d.ts +0 -19
  604. package/dist/lib/knowledge/indexCache.js +0 -110
  605. package/dist/lib/knowledge/knowledgeIndex.d.ts +0 -41
  606. package/dist/lib/knowledge/knowledgeIndex.js +0 -205
  607. package/dist/lib/knowledge/normalize.d.ts +0 -32
  608. package/dist/lib/knowledge/normalize.js +0 -75
  609. package/dist/lib/knowledge/resolve.d.ts +0 -18
  610. package/dist/lib/knowledge/resolve.js +0 -157
  611. package/dist/lib/knowledge/retrieval.d.ts +0 -16
  612. package/dist/lib/knowledge/retrieval.js +0 -222
  613. package/dist/lib/mcp/agentExposure.d.ts +0 -83
  614. package/dist/lib/mcp/agentExposure.js +0 -357
  615. package/dist/lib/mcp/auth/index.d.ts +0 -6
  616. package/dist/lib/mcp/auth/index.js +0 -12
  617. package/dist/lib/mcp/auth/oauthClientProvider.d.ts +0 -93
  618. package/dist/lib/mcp/auth/oauthClientProvider.js +0 -331
  619. package/dist/lib/mcp/auth/tokenStorage.d.ts +0 -56
  620. package/dist/lib/mcp/auth/tokenStorage.js +0 -135
  621. package/dist/lib/mcp/batching/index.d.ts +0 -1
  622. package/dist/lib/mcp/batching/index.js +0 -2
  623. package/dist/lib/mcp/batching/requestBatcher.d.ts +0 -130
  624. package/dist/lib/mcp/batching/requestBatcher.js +0 -468
  625. package/dist/lib/mcp/caching/index.d.ts +0 -1
  626. package/dist/lib/mcp/caching/index.js +0 -2
  627. package/dist/lib/mcp/caching/toolCache.d.ts +0 -154
  628. package/dist/lib/mcp/caching/toolCache.js +0 -434
  629. package/dist/lib/mcp/elicitation/elicitationManager.d.ts +0 -169
  630. package/dist/lib/mcp/elicitation/elicitationManager.js +0 -377
  631. package/dist/lib/mcp/elicitation/index.d.ts +0 -1
  632. package/dist/lib/mcp/elicitation/index.js +0 -3
  633. package/dist/lib/mcp/elicitationProtocol.d.ts +0 -139
  634. package/dist/lib/mcp/elicitationProtocol.js +0 -376
  635. package/dist/lib/mcp/enhancedToolDiscovery.d.ts +0 -125
  636. package/dist/lib/mcp/enhancedToolDiscovery.js +0 -482
  637. package/dist/lib/mcp/externalServerManager.d.ts +0 -189
  638. package/dist/lib/mcp/externalServerManager.js +0 -1525
  639. package/dist/lib/mcp/factory.d.ts +0 -60
  640. package/dist/lib/mcp/factory.js +0 -162
  641. package/dist/lib/mcp/flexibleToolValidator.d.ts +0 -46
  642. package/dist/lib/mcp/flexibleToolValidator.js +0 -162
  643. package/dist/lib/mcp/httpRateLimiter.d.ts +0 -152
  644. package/dist/lib/mcp/httpRateLimiter.js +0 -386
  645. package/dist/lib/mcp/httpRetryHandler.d.ts +0 -62
  646. package/dist/lib/mcp/httpRetryHandler.js +0 -180
  647. package/dist/lib/mcp/index.d.ts +0 -60
  648. package/dist/lib/mcp/index.js +0 -82
  649. package/dist/lib/mcp/mcpCircuitBreaker.d.ts +0 -123
  650. package/dist/lib/mcp/mcpCircuitBreaker.js +0 -428
  651. package/dist/lib/mcp/mcpClientFactory.d.ts +0 -109
  652. package/dist/lib/mcp/mcpClientFactory.js +0 -714
  653. package/dist/lib/mcp/mcpOutputNormalizer.d.ts +0 -47
  654. package/dist/lib/mcp/mcpOutputNormalizer.js +0 -183
  655. package/dist/lib/mcp/mcpRegistryClient.d.ts +0 -129
  656. package/dist/lib/mcp/mcpRegistryClient.js +0 -489
  657. package/dist/lib/mcp/mcpServerBase.d.ts +0 -162
  658. package/dist/lib/mcp/mcpServerBase.js +0 -377
  659. package/dist/lib/mcp/multiServerManager.d.ts +0 -182
  660. package/dist/lib/mcp/multiServerManager.js +0 -580
  661. package/dist/lib/mcp/registry.d.ts +0 -94
  662. package/dist/lib/mcp/registry.js +0 -159
  663. package/dist/lib/mcp/routing/index.d.ts +0 -1
  664. package/dist/lib/mcp/routing/index.js +0 -2
  665. package/dist/lib/mcp/routing/toolRouter.d.ts +0 -110
  666. package/dist/lib/mcp/routing/toolRouter.js +0 -417
  667. package/dist/lib/mcp/serverCapabilities.d.ts +0 -175
  668. package/dist/lib/mcp/serverCapabilities.js +0 -503
  669. package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +0 -8
  670. package/dist/lib/mcp/servers/agent/directToolsServer.js +0 -152
  671. package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.d.ts +0 -6
  672. package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.js +0 -364
  673. package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +0 -10
  674. package/dist/lib/mcp/servers/aiProviders/aiCoreServer.js +0 -232
  675. package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.d.ts +0 -5
  676. package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.js +0 -584
  677. package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +0 -8
  678. package/dist/lib/mcp/servers/utilities/utilityServer.js +0 -327
  679. package/dist/lib/mcp/toolAnnotations.d.ts +0 -57
  680. package/dist/lib/mcp/toolAnnotations.js +0 -240
  681. package/dist/lib/mcp/toolConverter.d.ts +0 -87
  682. package/dist/lib/mcp/toolConverter.js +0 -259
  683. package/dist/lib/mcp/toolDiscoveryService.d.ts +0 -144
  684. package/dist/lib/mcp/toolDiscoveryService.js +0 -978
  685. package/dist/lib/mcp/toolIntegration.d.ts +0 -92
  686. package/dist/lib/mcp/toolIntegration.js +0 -335
  687. package/dist/lib/mcp/toolRegistry.d.ts +0 -151
  688. package/dist/lib/mcp/toolRegistry.js +0 -755
  689. package/dist/lib/memory/hippocampusInitializer.d.ts +0 -2
  690. package/dist/lib/memory/hippocampusInitializer.js +0 -50
  691. package/dist/lib/memory/memoryRetrievalTools.d.ts +0 -13
  692. package/dist/lib/memory/memoryRetrievalTools.js +0 -267
  693. package/dist/lib/middleware/builtin/analytics.d.ts +0 -16
  694. package/dist/lib/middleware/builtin/analytics.js +0 -133
  695. package/dist/lib/middleware/builtin/autoEvaluation.d.ts +0 -11
  696. package/dist/lib/middleware/builtin/autoEvaluation.js +0 -201
  697. package/dist/lib/middleware/builtin/guardrails.d.ts +0 -7
  698. package/dist/lib/middleware/builtin/guardrails.js +0 -110
  699. package/dist/lib/middleware/builtin/lifecycle.d.ts +0 -2
  700. package/dist/lib/middleware/builtin/lifecycle.js +0 -161
  701. package/dist/lib/middleware/factory.d.ts +0 -69
  702. package/dist/lib/middleware/factory.js +0 -328
  703. package/dist/lib/middleware/index.d.ts +0 -11
  704. package/dist/lib/middleware/index.js +0 -17
  705. package/dist/lib/middleware/registry.d.ts +0 -76
  706. package/dist/lib/middleware/registry.js +0 -296
  707. package/dist/lib/middleware/utils/guardrailsUtils.d.ts +0 -50
  708. package/dist/lib/middleware/utils/guardrailsUtils.js +0 -397
  709. package/dist/lib/models/anthropicModels.d.ts +0 -261
  710. package/dist/lib/models/anthropicModels.js +0 -556
  711. package/dist/lib/models/manifestRegistry.d.ts +0 -33
  712. package/dist/lib/models/manifestRegistry.js +0 -174
  713. package/dist/lib/models/manifests/anthropic.d.ts +0 -9
  714. package/dist/lib/models/manifests/anthropic.js +0 -346
  715. package/dist/lib/models/manifests/azure.d.ts +0 -2
  716. package/dist/lib/models/manifests/azure.js +0 -87
  717. package/dist/lib/models/manifests/bedrock.d.ts +0 -2
  718. package/dist/lib/models/manifests/bedrock.js +0 -75
  719. package/dist/lib/models/manifests/cloudflare.d.ts +0 -8
  720. package/dist/lib/models/manifests/cloudflare.js +0 -19
  721. package/dist/lib/models/manifests/cohere.d.ts +0 -8
  722. package/dist/lib/models/manifests/cohere.js +0 -19
  723. package/dist/lib/models/manifests/deepseek.d.ts +0 -8
  724. package/dist/lib/models/manifests/deepseek.js +0 -19
  725. package/dist/lib/models/manifests/fireworks.d.ts +0 -8
  726. package/dist/lib/models/manifests/fireworks.js +0 -19
  727. package/dist/lib/models/manifests/google-ai.d.ts +0 -2
  728. package/dist/lib/models/manifests/google-ai.js +0 -28
  729. package/dist/lib/models/manifests/groq.d.ts +0 -8
  730. package/dist/lib/models/manifests/groq.js +0 -19
  731. package/dist/lib/models/manifests/huggingface.d.ts +0 -8
  732. package/dist/lib/models/manifests/huggingface.js +0 -19
  733. package/dist/lib/models/manifests/ideogram.d.ts +0 -8
  734. package/dist/lib/models/manifests/ideogram.js +0 -19
  735. package/dist/lib/models/manifests/jina.d.ts +0 -8
  736. package/dist/lib/models/manifests/jina.js +0 -19
  737. package/dist/lib/models/manifests/litellm.d.ts +0 -8
  738. package/dist/lib/models/manifests/litellm.js +0 -19
  739. package/dist/lib/models/manifests/llamacpp.d.ts +0 -8
  740. package/dist/lib/models/manifests/llamacpp.js +0 -19
  741. package/dist/lib/models/manifests/lm-studio.d.ts +0 -8
  742. package/dist/lib/models/manifests/lm-studio.js +0 -19
  743. package/dist/lib/models/manifests/mistral.d.ts +0 -2
  744. package/dist/lib/models/manifests/mistral.js +0 -50
  745. package/dist/lib/models/manifests/nvidia-nim.d.ts +0 -8
  746. package/dist/lib/models/manifests/nvidia-nim.js +0 -19
  747. package/dist/lib/models/manifests/ollama.d.ts +0 -2
  748. package/dist/lib/models/manifests/ollama.js +0 -72
  749. package/dist/lib/models/manifests/openai-compatible.d.ts +0 -8
  750. package/dist/lib/models/manifests/openai-compatible.js +0 -19
  751. package/dist/lib/models/manifests/openai.d.ts +0 -11
  752. package/dist/lib/models/manifests/openai.js +0 -560
  753. package/dist/lib/models/manifests/openrouter.d.ts +0 -8
  754. package/dist/lib/models/manifests/openrouter.js +0 -19
  755. package/dist/lib/models/manifests/perplexity.d.ts +0 -8
  756. package/dist/lib/models/manifests/perplexity.js +0 -19
  757. package/dist/lib/models/manifests/recraft.d.ts +0 -8
  758. package/dist/lib/models/manifests/recraft.js +0 -19
  759. package/dist/lib/models/manifests/replicate.d.ts +0 -8
  760. package/dist/lib/models/manifests/replicate.js +0 -19
  761. package/dist/lib/models/manifests/sagemaker.d.ts +0 -8
  762. package/dist/lib/models/manifests/sagemaker.js +0 -19
  763. package/dist/lib/models/manifests/stability.d.ts +0 -8
  764. package/dist/lib/models/manifests/stability.js +0 -19
  765. package/dist/lib/models/manifests/together-ai.d.ts +0 -8
  766. package/dist/lib/models/manifests/together-ai.js +0 -19
  767. package/dist/lib/models/manifests/vertex.d.ts +0 -8
  768. package/dist/lib/models/manifests/vertex.js +0 -19
  769. package/dist/lib/models/manifests/voyage.d.ts +0 -8
  770. package/dist/lib/models/manifests/voyage.js +0 -19
  771. package/dist/lib/models/manifests/xai.d.ts +0 -8
  772. package/dist/lib/models/manifests/xai.js +0 -19
  773. package/dist/lib/models/modelRegistry.d.ts +0 -74
  774. package/dist/lib/models/modelRegistry.js +0 -2695
  775. package/dist/lib/models/modelResolver.d.ts +0 -74
  776. package/dist/lib/models/modelResolver.js +0 -470
  777. package/dist/lib/music/index.d.ts +0 -27
  778. package/dist/lib/music/index.js +0 -94
  779. package/dist/lib/music/providers/BeatovenMusic.d.ts +0 -31
  780. package/dist/lib/music/providers/BeatovenMusic.js +0 -334
  781. package/dist/lib/music/providers/ElevenLabsMusic.d.ts +0 -30
  782. package/dist/lib/music/providers/ElevenLabsMusic.js +0 -169
  783. package/dist/lib/music/providers/LyriaMusic.d.ts +0 -29
  784. package/dist/lib/music/providers/LyriaMusic.js +0 -173
  785. package/dist/lib/music/providers/ReplicateMusic.d.ts +0 -31
  786. package/dist/lib/music/providers/ReplicateMusic.js +0 -262
  787. package/dist/lib/neurolink.d.ts +0 -2662
  788. package/dist/lib/neurolink.js +0 -12946
  789. package/dist/lib/observability/exporterRegistry.d.ts +0 -133
  790. package/dist/lib/observability/exporterRegistry.js +0 -414
  791. package/dist/lib/observability/exporters/arizeExporter.d.ts +0 -32
  792. package/dist/lib/observability/exporters/arizeExporter.js +0 -139
  793. package/dist/lib/observability/exporters/baseExporter.d.ts +0 -117
  794. package/dist/lib/observability/exporters/baseExporter.js +0 -191
  795. package/dist/lib/observability/exporters/braintrustExporter.d.ts +0 -30
  796. package/dist/lib/observability/exporters/braintrustExporter.js +0 -155
  797. package/dist/lib/observability/exporters/datadogExporter.d.ts +0 -37
  798. package/dist/lib/observability/exporters/datadogExporter.js +0 -197
  799. package/dist/lib/observability/exporters/index.d.ts +0 -13
  800. package/dist/lib/observability/exporters/index.js +0 -14
  801. package/dist/lib/observability/exporters/laminarExporter.d.ts +0 -48
  802. package/dist/lib/observability/exporters/laminarExporter.js +0 -304
  803. package/dist/lib/observability/exporters/langfuseExporter.d.ts +0 -48
  804. package/dist/lib/observability/exporters/langfuseExporter.js +0 -210
  805. package/dist/lib/observability/exporters/langsmithExporter.d.ts +0 -26
  806. package/dist/lib/observability/exporters/langsmithExporter.js +0 -144
  807. package/dist/lib/observability/exporters/otelExporter.d.ts +0 -39
  808. package/dist/lib/observability/exporters/otelExporter.js +0 -165
  809. package/dist/lib/observability/exporters/posthogExporter.d.ts +0 -48
  810. package/dist/lib/observability/exporters/posthogExporter.js +0 -289
  811. package/dist/lib/observability/exporters/sentryExporter.d.ts +0 -32
  812. package/dist/lib/observability/exporters/sentryExporter.js +0 -167
  813. package/dist/lib/observability/index.d.ts +0 -23
  814. package/dist/lib/observability/index.js +0 -32
  815. package/dist/lib/observability/metricsAggregator.d.ts +0 -126
  816. package/dist/lib/observability/metricsAggregator.js +0 -553
  817. package/dist/lib/observability/otelBridge.d.ts +0 -49
  818. package/dist/lib/observability/otelBridge.js +0 -141
  819. package/dist/lib/observability/retryPolicy.d.ts +0 -154
  820. package/dist/lib/observability/retryPolicy.js +0 -384
  821. package/dist/lib/observability/sampling/index.d.ts +0 -4
  822. package/dist/lib/observability/sampling/index.js +0 -5
  823. package/dist/lib/observability/sampling/samplers.d.ts +0 -104
  824. package/dist/lib/observability/sampling/samplers.js +0 -217
  825. package/dist/lib/observability/spanProcessor.d.ts +0 -115
  826. package/dist/lib/observability/spanProcessor.js +0 -304
  827. package/dist/lib/observability/tokenTracker.d.ts +0 -109
  828. package/dist/lib/observability/tokenTracker.js +0 -416
  829. package/dist/lib/observability/utils/index.d.ts +0 -4
  830. package/dist/lib/observability/utils/index.js +0 -5
  831. package/dist/lib/observability/utils/safeMetadata.d.ts +0 -10
  832. package/dist/lib/observability/utils/safeMetadata.js +0 -26
  833. package/dist/lib/observability/utils/spanSerializer.d.ts +0 -119
  834. package/dist/lib/observability/utils/spanSerializer.js +0 -314
  835. package/dist/lib/processors/archive/ArchiveProcessor.d.ts +0 -323
  836. package/dist/lib/processors/archive/ArchiveProcessor.js +0 -1662
  837. package/dist/lib/processors/archive/index.d.ts +0 -33
  838. package/dist/lib/processors/archive/index.js +0 -44
  839. package/dist/lib/processors/archive/zipEntryReader.d.ts +0 -51
  840. package/dist/lib/processors/archive/zipEntryReader.js +0 -81
  841. package/dist/lib/processors/base/BaseFileProcessor.d.ts +0 -309
  842. package/dist/lib/processors/base/BaseFileProcessor.js +0 -769
  843. package/dist/lib/processors/base/index.d.ts +0 -13
  844. package/dist/lib/processors/base/index.js +0 -23
  845. package/dist/lib/processors/cli/fileProcessorCli.d.ts +0 -124
  846. package/dist/lib/processors/cli/fileProcessorCli.js +0 -392
  847. package/dist/lib/processors/cli/index.d.ts +0 -36
  848. package/dist/lib/processors/cli/index.js +0 -53
  849. package/dist/lib/processors/code/ConfigProcessor.d.ts +0 -169
  850. package/dist/lib/processors/code/ConfigProcessor.js +0 -405
  851. package/dist/lib/processors/code/SourceCodeProcessor.d.ts +0 -172
  852. package/dist/lib/processors/code/SourceCodeProcessor.js +0 -309
  853. package/dist/lib/processors/code/index.d.ts +0 -44
  854. package/dist/lib/processors/code/index.js +0 -65
  855. package/dist/lib/processors/config/fileExtensions.d.ts +0 -280
  856. package/dist/lib/processors/config/fileExtensions.js +0 -485
  857. package/dist/lib/processors/config/fileTypeRegistry.d.ts +0 -106
  858. package/dist/lib/processors/config/fileTypeRegistry.js +0 -702
  859. package/dist/lib/processors/config/index.d.ts +0 -33
  860. package/dist/lib/processors/config/index.js +0 -104
  861. package/dist/lib/processors/config/languageMap.d.ts +0 -62
  862. package/dist/lib/processors/config/languageMap.js +0 -414
  863. package/dist/lib/processors/config/mimeConstants.d.ts +0 -373
  864. package/dist/lib/processors/config/mimeConstants.js +0 -348
  865. package/dist/lib/processors/config/sizeLimits.d.ts +0 -198
  866. package/dist/lib/processors/config/sizeLimits.js +0 -262
  867. package/dist/lib/processors/data/JsonProcessor.d.ts +0 -120
  868. package/dist/lib/processors/data/JsonProcessor.js +0 -206
  869. package/dist/lib/processors/data/XmlProcessor.d.ts +0 -158
  870. package/dist/lib/processors/data/XmlProcessor.js +0 -288
  871. package/dist/lib/processors/data/YamlProcessor.d.ts +0 -161
  872. package/dist/lib/processors/data/YamlProcessor.js +0 -297
  873. package/dist/lib/processors/data/index.d.ts +0 -49
  874. package/dist/lib/processors/data/index.js +0 -83
  875. package/dist/lib/processors/document/ExcelProcessor.d.ts +0 -250
  876. package/dist/lib/processors/document/ExcelProcessor.js +0 -615
  877. package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +0 -67
  878. package/dist/lib/processors/document/OpenDocumentProcessor.js +0 -236
  879. package/dist/lib/processors/document/PptxProcessor.d.ts +0 -77
  880. package/dist/lib/processors/document/PptxProcessor.js +0 -262
  881. package/dist/lib/processors/document/RtfProcessor.d.ts +0 -150
  882. package/dist/lib/processors/document/RtfProcessor.js +0 -364
  883. package/dist/lib/processors/document/WordProcessor.d.ts +0 -166
  884. package/dist/lib/processors/document/WordProcessor.js +0 -365
  885. package/dist/lib/processors/document/index.d.ts +0 -55
  886. package/dist/lib/processors/document/index.js +0 -100
  887. package/dist/lib/processors/errors/FileErrorCode.d.ts +0 -86
  888. package/dist/lib/processors/errors/FileErrorCode.js +0 -256
  889. package/dist/lib/processors/errors/errorHelpers.d.ts +0 -121
  890. package/dist/lib/processors/errors/errorHelpers.js +0 -387
  891. package/dist/lib/processors/errors/errorSerializer.d.ts +0 -96
  892. package/dist/lib/processors/errors/errorSerializer.js +0 -508
  893. package/dist/lib/processors/errors/index.d.ts +0 -46
  894. package/dist/lib/processors/errors/index.js +0 -50
  895. package/dist/lib/processors/index.d.ts +0 -79
  896. package/dist/lib/processors/index.js +0 -133
  897. package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +0 -176
  898. package/dist/lib/processors/integration/FileProcessorIntegration.js +0 -279
  899. package/dist/lib/processors/integration/index.d.ts +0 -41
  900. package/dist/lib/processors/integration/index.js +0 -48
  901. package/dist/lib/processors/markup/HtmlProcessor.d.ts +0 -167
  902. package/dist/lib/processors/markup/HtmlProcessor.js +0 -252
  903. package/dist/lib/processors/markup/MarkdownProcessor.d.ts +0 -163
  904. package/dist/lib/processors/markup/MarkdownProcessor.js +0 -249
  905. package/dist/lib/processors/markup/SvgProcessor.d.ts +0 -154
  906. package/dist/lib/processors/markup/SvgProcessor.js +0 -245
  907. package/dist/lib/processors/markup/TextProcessor.d.ts +0 -133
  908. package/dist/lib/processors/markup/TextProcessor.js +0 -191
  909. package/dist/lib/processors/markup/index.d.ts +0 -66
  910. package/dist/lib/processors/markup/index.js +0 -111
  911. package/dist/lib/processors/media/AudioProcessor.d.ts +0 -266
  912. package/dist/lib/processors/media/AudioProcessor.js +0 -712
  913. package/dist/lib/processors/media/VideoProcessor.d.ts +0 -337
  914. package/dist/lib/processors/media/VideoProcessor.js +0 -1154
  915. package/dist/lib/processors/media/index.d.ts +0 -26
  916. package/dist/lib/processors/media/index.js +0 -30
  917. package/dist/lib/processors/registry/ProcessorRegistry.d.ts +0 -347
  918. package/dist/lib/processors/registry/ProcessorRegistry.js +0 -715
  919. package/dist/lib/processors/registry/index.d.ts +0 -2
  920. package/dist/lib/processors/registry/index.js +0 -10
  921. package/dist/lib/providers/amazonBedrock/client.d.ts +0 -93
  922. package/dist/lib/providers/amazonBedrock/client.js +0 -1178
  923. package/dist/lib/providers/amazonBedrock/constants.d.ts +0 -1
  924. package/dist/lib/providers/amazonBedrock/constants.js +0 -3
  925. package/dist/lib/providers/amazonBedrock/index.d.ts +0 -3
  926. package/dist/lib/providers/amazonBedrock/index.js +0 -4
  927. package/dist/lib/providers/amazonBedrock/inferenceProfile.d.ts +0 -72
  928. package/dist/lib/providers/amazonBedrock/inferenceProfile.js +0 -186
  929. package/dist/lib/providers/amazonBedrock/loopAdapter.d.ts +0 -36
  930. package/dist/lib/providers/amazonBedrock/loopAdapter.js +0 -278
  931. package/dist/lib/providers/amazonBedrock/utils.d.ts +0 -1
  932. package/dist/lib/providers/amazonBedrock/utils.js +0 -4
  933. package/dist/lib/providers/amazonSagemaker.d.ts +0 -108
  934. package/dist/lib/providers/amazonSagemaker.js +0 -292
  935. package/dist/lib/providers/anthropic/cacheControl.d.ts +0 -12
  936. package/dist/lib/providers/anthropic/cacheControl.js +0 -15
  937. package/dist/lib/providers/anthropic/client.d.ts +0 -149
  938. package/dist/lib/providers/anthropic/client.js +0 -1862
  939. package/dist/lib/providers/anthropic/constants.d.ts +0 -3
  940. package/dist/lib/providers/anthropic/constants.js +0 -7
  941. package/dist/lib/providers/anthropic/index.d.ts +0 -2
  942. package/dist/lib/providers/anthropic/index.js +0 -3
  943. package/dist/lib/providers/anthropic/loopAdapter.d.ts +0 -26
  944. package/dist/lib/providers/anthropic/loopAdapter.js +0 -326
  945. package/dist/lib/providers/anthropic/rateLimitCapture.d.ts +0 -82
  946. package/dist/lib/providers/anthropic/rateLimitCapture.js +0 -375
  947. package/dist/lib/providers/anthropic/structuredOutput.d.ts +0 -58
  948. package/dist/lib/providers/anthropic/structuredOutput.js +0 -98
  949. package/dist/lib/providers/anthropic/toolOutput.d.ts +0 -9
  950. package/dist/lib/providers/anthropic/toolOutput.js +0 -39
  951. package/dist/lib/providers/anthropicImageBlocks.d.ts +0 -47
  952. package/dist/lib/providers/anthropicImageBlocks.js +0 -223
  953. package/dist/lib/providers/azureOpenai.d.ts +0 -67
  954. package/dist/lib/providers/azureOpenai.js +0 -230
  955. package/dist/lib/providers/cohere.d.ts +0 -54
  956. package/dist/lib/providers/cohere.js +0 -183
  957. package/dist/lib/providers/configuredOpenAICompat.d.ts +0 -24
  958. package/dist/lib/providers/configuredOpenAICompat.js +0 -67
  959. package/dist/lib/providers/deepseek.d.ts +0 -47
  960. package/dist/lib/providers/deepseek.js +0 -121
  961. package/dist/lib/providers/googleAiStudio/client.d.ts +0 -92
  962. package/dist/lib/providers/googleAiStudio/client.js +0 -1661
  963. package/dist/lib/providers/googleAiStudio/index.d.ts +0 -1
  964. package/dist/lib/providers/googleAiStudio/index.js +0 -2
  965. package/dist/lib/providers/googleNativeGemini3/index.d.ts +0 -1
  966. package/dist/lib/providers/googleNativeGemini3/index.js +0 -2
  967. package/dist/lib/providers/googleNativeGemini3/utils.d.ts +0 -482
  968. package/dist/lib/providers/googleNativeGemini3/utils.js +0 -1527
  969. package/dist/lib/providers/googleVertex/client.d.ts +0 -415
  970. package/dist/lib/providers/googleVertex/client.js +0 -7018
  971. package/dist/lib/providers/googleVertex/constants.d.ts +0 -5
  972. package/dist/lib/providers/googleVertex/constants.js +0 -27
  973. package/dist/lib/providers/googleVertex/index.d.ts +0 -3
  974. package/dist/lib/providers/googleVertex/index.js +0 -4
  975. package/dist/lib/providers/googleVertex/utils.d.ts +0 -12
  976. package/dist/lib/providers/googleVertex/utils.js +0 -287
  977. package/dist/lib/providers/huggingFace/client.d.ts +0 -31
  978. package/dist/lib/providers/huggingFace/client.js +0 -103
  979. package/dist/lib/providers/huggingFace/index.d.ts +0 -1
  980. package/dist/lib/providers/huggingFace/index.js +0 -2
  981. package/dist/lib/providers/ideogram.d.ts +0 -34
  982. package/dist/lib/providers/ideogram.js +0 -184
  983. package/dist/lib/providers/jina.d.ts +0 -58
  984. package/dist/lib/providers/jina.js +0 -217
  985. package/dist/lib/providers/litellm/client.d.ts +0 -84
  986. package/dist/lib/providers/litellm/client.js +0 -504
  987. package/dist/lib/providers/litellm/index.d.ts +0 -1
  988. package/dist/lib/providers/litellm/index.js +0 -2
  989. package/dist/lib/providers/llamaCpp.d.ts +0 -24
  990. package/dist/lib/providers/llamaCpp.js +0 -80
  991. package/dist/lib/providers/lmStudio.d.ts +0 -29
  992. package/dist/lib/providers/lmStudio.js +0 -88
  993. package/dist/lib/providers/nvidiaNim/client.d.ts +0 -60
  994. package/dist/lib/providers/nvidiaNim/client.js +0 -291
  995. package/dist/lib/providers/nvidiaNim/constants.d.ts +0 -1
  996. package/dist/lib/providers/nvidiaNim/constants.js +0 -2
  997. package/dist/lib/providers/nvidiaNim/index.d.ts +0 -2
  998. package/dist/lib/providers/nvidiaNim/index.js +0 -3
  999. package/dist/lib/providers/ollama/client.d.ts +0 -71
  1000. package/dist/lib/providers/ollama/client.js +0 -283
  1001. package/dist/lib/providers/ollama/constants.d.ts +0 -4
  1002. package/dist/lib/providers/ollama/constants.js +0 -6
  1003. package/dist/lib/providers/ollama/index.d.ts +0 -2
  1004. package/dist/lib/providers/ollama/index.js +0 -3
  1005. package/dist/lib/providers/openAI/client.d.ts +0 -76
  1006. package/dist/lib/providers/openAI/client.js +0 -503
  1007. package/dist/lib/providers/openAI/index.d.ts +0 -1
  1008. package/dist/lib/providers/openAI/index.js +0 -2
  1009. package/dist/lib/providers/openRouter/client.d.ts +0 -75
  1010. package/dist/lib/providers/openRouter/client.js +0 -402
  1011. package/dist/lib/providers/openRouter/constants.d.ts +0 -1
  1012. package/dist/lib/providers/openRouter/constants.js +0 -2
  1013. package/dist/lib/providers/openRouter/index.d.ts +0 -3
  1014. package/dist/lib/providers/openRouter/index.js +0 -4
  1015. package/dist/lib/providers/openRouter/utils.d.ts +0 -1
  1016. package/dist/lib/providers/openRouter/utils.js +0 -6
  1017. package/dist/lib/providers/openaiChatCompletionsBase.d.ts +0 -212
  1018. package/dist/lib/providers/openaiChatCompletionsBase.js +0 -1154
  1019. package/dist/lib/providers/openaiChatCompletionsClient.d.ts +0 -70
  1020. package/dist/lib/providers/openaiChatCompletionsClient.js +0 -684
  1021. package/dist/lib/providers/openaiCompatCatalog.d.ts +0 -24
  1022. package/dist/lib/providers/openaiCompatCatalog.js +0 -270
  1023. package/dist/lib/providers/openaiCompatible/client.d.ts +0 -21
  1024. package/dist/lib/providers/openaiCompatible/client.js +0 -91
  1025. package/dist/lib/providers/openaiCompatible/constants.d.ts +0 -1
  1026. package/dist/lib/providers/openaiCompatible/constants.js +0 -2
  1027. package/dist/lib/providers/openaiCompatible/index.d.ts +0 -3
  1028. package/dist/lib/providers/openaiCompatible/index.js +0 -4
  1029. package/dist/lib/providers/openaiCompatible/utils.d.ts +0 -5
  1030. package/dist/lib/providers/openaiCompatible/utils.js +0 -17
  1031. package/dist/lib/providers/providerTypeUtils.d.ts +0 -23
  1032. package/dist/lib/providers/providerTypeUtils.js +0 -41
  1033. package/dist/lib/providers/recraft.d.ts +0 -34
  1034. package/dist/lib/providers/recraft.js +0 -197
  1035. package/dist/lib/providers/replicate.d.ts +0 -74
  1036. package/dist/lib/providers/replicate.js +0 -416
  1037. package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +0 -74
  1038. package/dist/lib/providers/sagemaker/adaptive-semaphore.js +0 -216
  1039. package/dist/lib/providers/sagemaker/client.d.ts +0 -161
  1040. package/dist/lib/providers/sagemaker/client.js +0 -509
  1041. package/dist/lib/providers/sagemaker/config.d.ts +0 -87
  1042. package/dist/lib/providers/sagemaker/config.js +0 -355
  1043. package/dist/lib/providers/sagemaker/detection.d.ts +0 -121
  1044. package/dist/lib/providers/sagemaker/detection.js +0 -607
  1045. package/dist/lib/providers/sagemaker/diagnostics.d.ts +0 -14
  1046. package/dist/lib/providers/sagemaker/diagnostics.js +0 -138
  1047. package/dist/lib/providers/sagemaker/error-constants.d.ts +0 -78
  1048. package/dist/lib/providers/sagemaker/error-constants.js +0 -228
  1049. package/dist/lib/providers/sagemaker/errors.d.ts +0 -90
  1050. package/dist/lib/providers/sagemaker/errors.js +0 -301
  1051. package/dist/lib/providers/sagemaker/index.d.ts +0 -34
  1052. package/dist/lib/providers/sagemaker/index.js +0 -69
  1053. package/dist/lib/providers/sagemaker/language-model.d.ts +0 -207
  1054. package/dist/lib/providers/sagemaker/language-model.js +0 -805
  1055. package/dist/lib/providers/sagemaker/parsers.d.ts +0 -111
  1056. package/dist/lib/providers/sagemaker/parsers.js +0 -644
  1057. package/dist/lib/providers/sagemaker/streaming.d.ts +0 -48
  1058. package/dist/lib/providers/sagemaker/streaming.js +0 -390
  1059. package/dist/lib/providers/sagemaker/structured-parser.d.ts +0 -117
  1060. package/dist/lib/providers/sagemaker/structured-parser.js +0 -626
  1061. package/dist/lib/providers/stability.d.ts +0 -37
  1062. package/dist/lib/providers/stability.js +0 -191
  1063. package/dist/lib/providers/voyage.d.ts +0 -46
  1064. package/dist/lib/providers/voyage.js +0 -176
  1065. package/dist/lib/proxy/accountCooldown.d.ts +0 -5
  1066. package/dist/lib/proxy/accountCooldown.js +0 -121
  1067. package/dist/lib/proxy/accountQuota.d.ts +0 -84
  1068. package/dist/lib/proxy/accountQuota.js +0 -459
  1069. package/dist/lib/proxy/accountQuotaRefreshCoordinator.d.ts +0 -19
  1070. package/dist/lib/proxy/accountQuotaRefreshCoordinator.js +0 -105
  1071. package/dist/lib/proxy/accountSelection.d.ts +0 -8
  1072. package/dist/lib/proxy/accountSelection.js +0 -26
  1073. package/dist/lib/proxy/accountUsage.d.ts +0 -45
  1074. package/dist/lib/proxy/accountUsage.js +0 -302
  1075. package/dist/lib/proxy/awsProxyIntegration.d.ts +0 -23
  1076. package/dist/lib/proxy/awsProxyIntegration.js +0 -286
  1077. package/dist/lib/proxy/claudeFormat.d.ts +0 -129
  1078. package/dist/lib/proxy/claudeFormat.js +0 -600
  1079. package/dist/lib/proxy/cloaking/index.d.ts +0 -43
  1080. package/dist/lib/proxy/cloaking/index.js +0 -88
  1081. package/dist/lib/proxy/cloaking/plugins/headerScrubber.d.ts +0 -9
  1082. package/dist/lib/proxy/cloaking/plugins/headerScrubber.js +0 -87
  1083. package/dist/lib/proxy/cloaking/plugins/sessionIdentity.d.ts +0 -11
  1084. package/dist/lib/proxy/cloaking/plugins/sessionIdentity.js +0 -42
  1085. package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.d.ts +0 -11
  1086. package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.js +0 -84
  1087. package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.d.ts +0 -14
  1088. package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.js +0 -39
  1089. package/dist/lib/proxy/cloaking/plugins/wordObfuscator.d.ts +0 -9
  1090. package/dist/lib/proxy/cloaking/plugins/wordObfuscator.js +0 -122
  1091. package/dist/lib/proxy/codexAccountUsage.d.ts +0 -26
  1092. package/dist/lib/proxy/codexAccountUsage.js +0 -174
  1093. package/dist/lib/proxy/codexUsage.d.ts +0 -68
  1094. package/dist/lib/proxy/codexUsage.js +0 -247
  1095. package/dist/lib/proxy/globalInstaller.d.ts +0 -19
  1096. package/dist/lib/proxy/globalInstaller.js +0 -242
  1097. package/dist/lib/proxy/logCleanupScheduler.d.ts +0 -12
  1098. package/dist/lib/proxy/logCleanupScheduler.js +0 -74
  1099. package/dist/lib/proxy/logCleanupWorkerEntry.d.ts +0 -1
  1100. package/dist/lib/proxy/logCleanupWorkerEntry.js +0 -15
  1101. package/dist/lib/proxy/modelRouter.d.ts +0 -34
  1102. package/dist/lib/proxy/modelRouter.js +0 -74
  1103. package/dist/lib/proxy/oauthFetch.d.ts +0 -36
  1104. package/dist/lib/proxy/oauthFetch.js +0 -353
  1105. package/dist/lib/proxy/openaiFormat.d.ts +0 -139
  1106. package/dist/lib/proxy/openaiFormat.js +0 -817
  1107. package/dist/lib/proxy/providerTransportCoordinator.d.ts +0 -17
  1108. package/dist/lib/proxy/providerTransportCoordinator.js +0 -156
  1109. package/dist/lib/proxy/proxyActivity.d.ts +0 -8
  1110. package/dist/lib/proxy/proxyActivity.js +0 -117
  1111. package/dist/lib/proxy/proxyAnalysis.d.ts +0 -3
  1112. package/dist/lib/proxy/proxyAnalysis.js +0 -985
  1113. package/dist/lib/proxy/proxyConfig.d.ts +0 -42
  1114. package/dist/lib/proxy/proxyConfig.js +0 -700
  1115. package/dist/lib/proxy/proxyDispatcher.d.ts +0 -5
  1116. package/dist/lib/proxy/proxyDispatcher.js +0 -61
  1117. package/dist/lib/proxy/proxyEnv.d.ts +0 -3
  1118. package/dist/lib/proxy/proxyEnv.js +0 -73
  1119. package/dist/lib/proxy/proxyFetch.d.ts +0 -50
  1120. package/dist/lib/proxy/proxyFetch.js +0 -729
  1121. package/dist/lib/proxy/proxyHealth.d.ts +0 -20
  1122. package/dist/lib/proxy/proxyHealth.js +0 -76
  1123. package/dist/lib/proxy/proxyLifecycle.d.ts +0 -13
  1124. package/dist/lib/proxy/proxyLifecycle.js +0 -383
  1125. package/dist/lib/proxy/proxyPaths.d.ts +0 -17
  1126. package/dist/lib/proxy/proxyPaths.js +0 -42
  1127. package/dist/lib/proxy/proxyReplay.d.ts +0 -10
  1128. package/dist/lib/proxy/proxyReplay.js +0 -765
  1129. package/dist/lib/proxy/proxyTracer.d.ts +0 -128
  1130. package/dist/lib/proxy/proxyTracer.js +0 -748
  1131. package/dist/lib/proxy/proxyTranslationEngine.d.ts +0 -125
  1132. package/dist/lib/proxy/proxyTranslationEngine.js +0 -740
  1133. package/dist/lib/proxy/quietDetector.d.ts +0 -17
  1134. package/dist/lib/proxy/quietDetector.js +0 -125
  1135. package/dist/lib/proxy/quotaHeaders.d.ts +0 -73
  1136. package/dist/lib/proxy/quotaHeaders.js +0 -189
  1137. package/dist/lib/proxy/rawStreamCapture.d.ts +0 -2
  1138. package/dist/lib/proxy/rawStreamCapture.js +0 -129
  1139. package/dist/lib/proxy/requestLogger.d.ts +0 -78
  1140. package/dist/lib/proxy/requestLogger.js +0 -770
  1141. package/dist/lib/proxy/rollingProxyServer.d.ts +0 -3
  1142. package/dist/lib/proxy/rollingProxyServer.js +0 -220
  1143. package/dist/lib/proxy/rollingWorkerProcess.d.ts +0 -2
  1144. package/dist/lib/proxy/rollingWorkerProcess.js +0 -199
  1145. package/dist/lib/proxy/rollingWorkerProtocol.d.ts +0 -5
  1146. package/dist/lib/proxy/rollingWorkerProtocol.js +0 -46
  1147. package/dist/lib/proxy/rollingWorkerSupervisor.d.ts +0 -44
  1148. package/dist/lib/proxy/rollingWorkerSupervisor.js +0 -530
  1149. package/dist/lib/proxy/routingEvidence.d.ts +0 -17
  1150. package/dist/lib/proxy/routingEvidence.js +0 -59
  1151. package/dist/lib/proxy/routingPolicy.d.ts +0 -19
  1152. package/dist/lib/proxy/routingPolicy.js +0 -75
  1153. package/dist/lib/proxy/runtimeConfig.d.ts +0 -27
  1154. package/dist/lib/proxy/runtimeConfig.js +0 -448
  1155. package/dist/lib/proxy/snapshotPersistence.d.ts +0 -2
  1156. package/dist/lib/proxy/snapshotPersistence.js +0 -41
  1157. package/dist/lib/proxy/socketWorkerRuntime.d.ts +0 -14
  1158. package/dist/lib/proxy/socketWorkerRuntime.js +0 -322
  1159. package/dist/lib/proxy/sseInterceptor.d.ts +0 -41
  1160. package/dist/lib/proxy/sseInterceptor.js +0 -496
  1161. package/dist/lib/proxy/streamOutcome.d.ts +0 -5
  1162. package/dist/lib/proxy/streamOutcome.js +0 -104
  1163. package/dist/lib/proxy/systemRelocation.d.ts +0 -21
  1164. package/dist/lib/proxy/systemRelocation.js +0 -51
  1165. package/dist/lib/proxy/tokenRefresh.d.ts +0 -18
  1166. package/dist/lib/proxy/tokenRefresh.js +0 -257
  1167. package/dist/lib/proxy/updateChecker.d.ts +0 -17
  1168. package/dist/lib/proxy/updateChecker.js +0 -98
  1169. package/dist/lib/proxy/updateCoordinator.d.ts +0 -7
  1170. package/dist/lib/proxy/updateCoordinator.js +0 -60
  1171. package/dist/lib/proxy/updateState.d.ts +0 -69
  1172. package/dist/lib/proxy/updateState.js +0 -309
  1173. package/dist/lib/proxy/updaterSupervisor.d.ts +0 -3
  1174. package/dist/lib/proxy/updaterSupervisor.js +0 -58
  1175. package/dist/lib/proxy/usageStats.d.ts +0 -91
  1176. package/dist/lib/proxy/usageStats.js +0 -1154
  1177. package/dist/lib/proxy/utils/noProxyUtils.d.ts +0 -39
  1178. package/dist/lib/proxy/utils/noProxyUtils.js +0 -150
  1179. package/dist/lib/proxy/workerLog.d.ts +0 -6
  1180. package/dist/lib/proxy/workerLog.js +0 -42
  1181. package/dist/lib/rag/ChunkerFactory.d.ts +0 -91
  1182. package/dist/lib/rag/ChunkerFactory.js +0 -321
  1183. package/dist/lib/rag/ChunkerRegistry.d.ts +0 -91
  1184. package/dist/lib/rag/ChunkerRegistry.js +0 -422
  1185. package/dist/lib/rag/chunkers/BaseChunker.d.ts +0 -53
  1186. package/dist/lib/rag/chunkers/BaseChunker.js +0 -158
  1187. package/dist/lib/rag/chunkers/CharacterChunker.d.ts +0 -18
  1188. package/dist/lib/rag/chunkers/CharacterChunker.js +0 -29
  1189. package/dist/lib/rag/chunkers/HTMLChunker.d.ts +0 -19
  1190. package/dist/lib/rag/chunkers/HTMLChunker.js +0 -39
  1191. package/dist/lib/rag/chunkers/JSONChunker.d.ts +0 -19
  1192. package/dist/lib/rag/chunkers/JSONChunker.js +0 -69
  1193. package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +0 -15
  1194. package/dist/lib/rag/chunkers/LaTeXChunker.js +0 -64
  1195. package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +0 -37
  1196. package/dist/lib/rag/chunkers/MarkdownChunker.js +0 -315
  1197. package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +0 -27
  1198. package/dist/lib/rag/chunkers/RecursiveChunker.js +0 -140
  1199. package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +0 -22
  1200. package/dist/lib/rag/chunkers/SemanticMarkdownChunker.js +0 -139
  1201. package/dist/lib/rag/chunkers/SentenceChunker.d.ts +0 -19
  1202. package/dist/lib/rag/chunkers/SentenceChunker.js +0 -67
  1203. package/dist/lib/rag/chunkers/TokenChunker.d.ts +0 -19
  1204. package/dist/lib/rag/chunkers/TokenChunker.js +0 -62
  1205. package/dist/lib/rag/chunkers/index.d.ts +0 -15
  1206. package/dist/lib/rag/chunkers/index.js +0 -16
  1207. package/dist/lib/rag/chunking/characterChunker.d.ts +0 -16
  1208. package/dist/lib/rag/chunking/characterChunker.js +0 -143
  1209. package/dist/lib/rag/chunking/chunkerRegistry.d.ts +0 -67
  1210. package/dist/lib/rag/chunking/chunkerRegistry.js +0 -195
  1211. package/dist/lib/rag/chunking/htmlChunker.d.ts +0 -34
  1212. package/dist/lib/rag/chunking/htmlChunker.js +0 -248
  1213. package/dist/lib/rag/chunking/index.d.ts +0 -15
  1214. package/dist/lib/rag/chunking/index.js +0 -18
  1215. package/dist/lib/rag/chunking/jsonChunker.d.ts +0 -20
  1216. package/dist/lib/rag/chunking/jsonChunker.js +0 -282
  1217. package/dist/lib/rag/chunking/latexChunker.d.ts +0 -26
  1218. package/dist/lib/rag/chunking/latexChunker.js +0 -252
  1219. package/dist/lib/rag/chunking/markdownChunker.d.ts +0 -35
  1220. package/dist/lib/rag/chunking/markdownChunker.js +0 -383
  1221. package/dist/lib/rag/chunking/recursiveChunker.d.ts +0 -19
  1222. package/dist/lib/rag/chunking/recursiveChunker.js +0 -149
  1223. package/dist/lib/rag/chunking/semanticChunker.d.ts +0 -41
  1224. package/dist/lib/rag/chunking/semanticChunker.js +0 -306
  1225. package/dist/lib/rag/chunking/sentenceChunker.d.ts +0 -25
  1226. package/dist/lib/rag/chunking/sentenceChunker.js +0 -231
  1227. package/dist/lib/rag/chunking/tokenChunker.d.ts +0 -36
  1228. package/dist/lib/rag/chunking/tokenChunker.js +0 -184
  1229. package/dist/lib/rag/document/MDocument.d.ts +0 -198
  1230. package/dist/lib/rag/document/MDocument.js +0 -392
  1231. package/dist/lib/rag/document/index.d.ts +0 -5
  1232. package/dist/lib/rag/document/index.js +0 -6
  1233. package/dist/lib/rag/document/loaders.d.ts +0 -142
  1234. package/dist/lib/rag/document/loaders.js +0 -544
  1235. package/dist/lib/rag/errors/RAGError.d.ts +0 -244
  1236. package/dist/lib/rag/errors/RAGError.js +0 -275
  1237. package/dist/lib/rag/errors/index.d.ts +0 -6
  1238. package/dist/lib/rag/errors/index.js +0 -7
  1239. package/dist/lib/rag/graphRag/graphRAG.d.ts +0 -115
  1240. package/dist/lib/rag/graphRag/graphRAG.js +0 -402
  1241. package/dist/lib/rag/graphRag/index.d.ts +0 -4
  1242. package/dist/lib/rag/graphRag/index.js +0 -5
  1243. package/dist/lib/rag/index.d.ts +0 -104
  1244. package/dist/lib/rag/index.js +0 -144
  1245. package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +0 -103
  1246. package/dist/lib/rag/metadata/MetadataExtractorFactory.js +0 -419
  1247. package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +0 -99
  1248. package/dist/lib/rag/metadata/MetadataExtractorRegistry.js +0 -363
  1249. package/dist/lib/rag/metadata/index.d.ts +0 -6
  1250. package/dist/lib/rag/metadata/index.js +0 -10
  1251. package/dist/lib/rag/metadata/metadataExtractor.d.ts +0 -69
  1252. package/dist/lib/rag/metadata/metadataExtractor.js +0 -281
  1253. package/dist/lib/rag/pipeline/RAGPipeline.d.ts +0 -105
  1254. package/dist/lib/rag/pipeline/RAGPipeline.js +0 -436
  1255. package/dist/lib/rag/pipeline/contextAssembly.d.ts +0 -80
  1256. package/dist/lib/rag/pipeline/contextAssembly.js +0 -342
  1257. package/dist/lib/rag/pipeline/index.d.ts +0 -5
  1258. package/dist/lib/rag/pipeline/index.js +0 -6
  1259. package/dist/lib/rag/ragIntegration.d.ts +0 -30
  1260. package/dist/lib/rag/ragIntegration.js +0 -327
  1261. package/dist/lib/rag/reranker/RerankerFactory.d.ts +0 -124
  1262. package/dist/lib/rag/reranker/RerankerFactory.js +0 -431
  1263. package/dist/lib/rag/reranker/RerankerRegistry.d.ts +0 -119
  1264. package/dist/lib/rag/reranker/RerankerRegistry.js +0 -403
  1265. package/dist/lib/rag/reranker/index.d.ts +0 -6
  1266. package/dist/lib/rag/reranker/index.js +0 -10
  1267. package/dist/lib/rag/reranker/reranker.d.ts +0 -70
  1268. package/dist/lib/rag/reranker/reranker.js +0 -307
  1269. package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -142
  1270. package/dist/lib/rag/resilience/CircuitBreaker.js +0 -432
  1271. package/dist/lib/rag/resilience/RetryHandler.d.ts +0 -95
  1272. package/dist/lib/rag/resilience/RetryHandler.js +0 -305
  1273. package/dist/lib/rag/resilience/index.d.ts +0 -7
  1274. package/dist/lib/rag/resilience/index.js +0 -8
  1275. package/dist/lib/rag/retrieval/hybridSearch.d.ts +0 -53
  1276. package/dist/lib/rag/retrieval/hybridSearch.js +0 -339
  1277. package/dist/lib/rag/retrieval/index.d.ts +0 -5
  1278. package/dist/lib/rag/retrieval/index.js +0 -6
  1279. package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +0 -72
  1280. package/dist/lib/rag/retrieval/vectorQueryTool.js +0 -325
  1281. package/dist/lib/rag/stores/chroma.d.ts +0 -90
  1282. package/dist/lib/rag/stores/chroma.js +0 -281
  1283. package/dist/lib/rag/stores/index.d.ts +0 -21
  1284. package/dist/lib/rag/stores/index.js +0 -22
  1285. package/dist/lib/rag/stores/pgvector.d.ts +0 -95
  1286. package/dist/lib/rag/stores/pgvector.js +0 -400
  1287. package/dist/lib/rag/stores/pinecone.d.ts +0 -85
  1288. package/dist/lib/rag/stores/pinecone.js +0 -159
  1289. package/dist/lib/routing/classifierRouter.d.ts +0 -52
  1290. package/dist/lib/routing/classifierRouter.js +0 -269
  1291. package/dist/lib/routing/classifierStrategies.d.ts +0 -23
  1292. package/dist/lib/routing/classifierStrategies.js +0 -156
  1293. package/dist/lib/routing/index.d.ts +0 -9
  1294. package/dist/lib/routing/index.js +0 -10
  1295. package/dist/lib/routing/modelPool.d.ts +0 -83
  1296. package/dist/lib/routing/modelPool.js +0 -243
  1297. package/dist/lib/routing/requestRouter.d.ts +0 -30
  1298. package/dist/lib/routing/requestRouter.js +0 -81
  1299. package/dist/lib/sdk/toolRegistration.d.ts +0 -74
  1300. package/dist/lib/sdk/toolRegistration.js +0 -383
  1301. package/dist/lib/server/abstract/baseServerAdapter.d.ts +0 -171
  1302. package/dist/lib/server/abstract/baseServerAdapter.js +0 -575
  1303. package/dist/lib/server/adapters/expressAdapter.d.ts +0 -70
  1304. package/dist/lib/server/adapters/expressAdapter.js +0 -487
  1305. package/dist/lib/server/adapters/fastifyAdapter.d.ts +0 -70
  1306. package/dist/lib/server/adapters/fastifyAdapter.js +0 -473
  1307. package/dist/lib/server/adapters/honoAdapter.d.ts +0 -77
  1308. package/dist/lib/server/adapters/honoAdapter.js +0 -633
  1309. package/dist/lib/server/adapters/index.d.ts +0 -7
  1310. package/dist/lib/server/adapters/index.js +0 -8
  1311. package/dist/lib/server/adapters/koaAdapter.d.ts +0 -79
  1312. package/dist/lib/server/adapters/koaAdapter.js +0 -511
  1313. package/dist/lib/server/errors.d.ts +0 -193
  1314. package/dist/lib/server/errors.js +0 -487
  1315. package/dist/lib/server/factory/serverAdapterFactory.d.ts +0 -73
  1316. package/dist/lib/server/factory/serverAdapterFactory.js +0 -161
  1317. package/dist/lib/server/index.d.ts +0 -46
  1318. package/dist/lib/server/index.js +0 -122
  1319. package/dist/lib/server/middleware/abortSignal.d.ts +0 -52
  1320. package/dist/lib/server/middleware/abortSignal.js +0 -112
  1321. package/dist/lib/server/middleware/auth.d.ts +0 -166
  1322. package/dist/lib/server/middleware/auth.js +0 -404
  1323. package/dist/lib/server/middleware/cache.d.ts +0 -161
  1324. package/dist/lib/server/middleware/cache.js +0 -370
  1325. package/dist/lib/server/middleware/common.d.ts +0 -108
  1326. package/dist/lib/server/middleware/common.js +0 -297
  1327. package/dist/lib/server/middleware/deprecation.d.ts +0 -40
  1328. package/dist/lib/server/middleware/deprecation.js +0 -191
  1329. package/dist/lib/server/middleware/index.d.ts +0 -12
  1330. package/dist/lib/server/middleware/index.js +0 -13
  1331. package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +0 -42
  1332. package/dist/lib/server/middleware/mcpBodyAttachment.js +0 -64
  1333. package/dist/lib/server/middleware/rateLimit.d.ts +0 -70
  1334. package/dist/lib/server/middleware/rateLimit.js +0 -224
  1335. package/dist/lib/server/middleware/validation.d.ts +0 -69
  1336. package/dist/lib/server/middleware/validation.js +0 -393
  1337. package/dist/lib/server/openapi/generator.d.ts +0 -61
  1338. package/dist/lib/server/openapi/generator.js +0 -399
  1339. package/dist/lib/server/openapi/index.d.ts +0 -7
  1340. package/dist/lib/server/openapi/index.js +0 -37
  1341. package/dist/lib/server/openapi/schemas.d.ts +0 -94
  1342. package/dist/lib/server/openapi/schemas.js +0 -696
  1343. package/dist/lib/server/openapi/templates.d.ts +0 -108
  1344. package/dist/lib/server/openapi/templates.js +0 -375
  1345. package/dist/lib/server/routes/agentRoutes.d.ts +0 -9
  1346. package/dist/lib/server/routes/agentRoutes.js +0 -423
  1347. package/dist/lib/server/routes/claudeProxyRoutes.d.ts +0 -491
  1348. package/dist/lib/server/routes/claudeProxyRoutes.js +0 -6455
  1349. package/dist/lib/server/routes/codexProxyRoutes.d.ts +0 -64
  1350. package/dist/lib/server/routes/codexProxyRoutes.js +0 -482
  1351. package/dist/lib/server/routes/healthRoutes.d.ts +0 -9
  1352. package/dist/lib/server/routes/healthRoutes.js +0 -234
  1353. package/dist/lib/server/routes/index.d.ts +0 -25
  1354. package/dist/lib/server/routes/index.js +0 -66
  1355. package/dist/lib/server/routes/mcpRoutes.d.ts +0 -9
  1356. package/dist/lib/server/routes/mcpRoutes.js +0 -376
  1357. package/dist/lib/server/routes/memoryRoutes.d.ts +0 -11
  1358. package/dist/lib/server/routes/memoryRoutes.js +0 -366
  1359. package/dist/lib/server/routes/openApiRoutes.d.ts +0 -34
  1360. package/dist/lib/server/routes/openApiRoutes.js +0 -151
  1361. package/dist/lib/server/routes/openaiProxyRoutes.d.ts +0 -38
  1362. package/dist/lib/server/routes/openaiProxyRoutes.js +0 -404
  1363. package/dist/lib/server/routes/toolRoutes.d.ts +0 -9
  1364. package/dist/lib/server/routes/toolRoutes.js +0 -272
  1365. package/dist/lib/server/streaming/dataStream.d.ts +0 -212
  1366. package/dist/lib/server/streaming/dataStream.js +0 -502
  1367. package/dist/lib/server/streaming/index.d.ts +0 -5
  1368. package/dist/lib/server/streaming/index.js +0 -17
  1369. package/dist/lib/server/utils/redaction.d.ts +0 -68
  1370. package/dist/lib/server/utils/redaction.js +0 -321
  1371. package/dist/lib/server/utils/validation.d.ts +0 -153
  1372. package/dist/lib/server/utils/validation.js +0 -265
  1373. package/dist/lib/server/voice/frameBus.d.ts +0 -8
  1374. package/dist/lib/server/voice/frameBus.js +0 -25
  1375. package/dist/lib/server/voice/tokenCompare.d.ts +0 -14
  1376. package/dist/lib/server/voice/tokenCompare.js +0 -23
  1377. package/dist/lib/server/voice/turnManager.d.ts +0 -15
  1378. package/dist/lib/server/voice/turnManager.js +0 -36
  1379. package/dist/lib/server/voice/voiceServerApp.d.ts +0 -1
  1380. package/dist/lib/server/voice/voiceServerApp.js +0 -177
  1381. package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -24
  1382. package/dist/lib/server/voice/voiceWebSocketHandler.js +0 -669
  1383. package/dist/lib/server/websocket/WebSocketHandler.d.ts +0 -107
  1384. package/dist/lib/server/websocket/WebSocketHandler.js +0 -384
  1385. package/dist/lib/server/websocket/index.d.ts +0 -4
  1386. package/dist/lib/server/websocket/index.js +0 -5
  1387. package/dist/lib/services/server/ai/observability/instrumentation.d.ts +0 -229
  1388. package/dist/lib/services/server/ai/observability/instrumentation.js +0 -1244
  1389. package/dist/lib/session/globalSessionState.d.ts +0 -71
  1390. package/dist/lib/session/globalSessionState.js +0 -235
  1391. package/dist/lib/skills/skillMatcher.d.ts +0 -55
  1392. package/dist/lib/skills/skillMatcher.js +0 -170
  1393. package/dist/lib/skills/skillSessionTracker.d.ts +0 -52
  1394. package/dist/lib/skills/skillSessionTracker.js +0 -150
  1395. package/dist/lib/skills/skillStoreRedis.d.ts +0 -30
  1396. package/dist/lib/skills/skillStoreRedis.js +0 -114
  1397. package/dist/lib/skills/skillStoreS3.d.ts +0 -56
  1398. package/dist/lib/skills/skillStoreS3.js +0 -305
  1399. package/dist/lib/skills/skillStores.d.ts +0 -58
  1400. package/dist/lib/skills/skillStores.js +0 -341
  1401. package/dist/lib/skills/skillTools.d.ts +0 -35
  1402. package/dist/lib/skills/skillTools.js +0 -451
  1403. package/dist/lib/skills/skillsManager.d.ts +0 -78
  1404. package/dist/lib/skills/skillsManager.js +0 -281
  1405. package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +0 -31
  1406. package/dist/lib/tasks/autoresearchTaskExecutor.js +0 -304
  1407. package/dist/lib/tasks/backends/bullmqBackend.d.ts +0 -33
  1408. package/dist/lib/tasks/backends/bullmqBackend.js +0 -206
  1409. package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +0 -27
  1410. package/dist/lib/tasks/backends/nodeTimeoutBackend.js +0 -141
  1411. package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +0 -31
  1412. package/dist/lib/tasks/backends/taskBackendRegistry.js +0 -66
  1413. package/dist/lib/tasks/errors.d.ts +0 -33
  1414. package/dist/lib/tasks/errors.js +0 -19
  1415. package/dist/lib/tasks/store/fileTaskStore.d.ts +0 -43
  1416. package/dist/lib/tasks/store/fileTaskStore.js +0 -179
  1417. package/dist/lib/tasks/store/redisTaskStore.d.ts +0 -43
  1418. package/dist/lib/tasks/store/redisTaskStore.js +0 -222
  1419. package/dist/lib/tasks/taskExecutor.d.ts +0 -22
  1420. package/dist/lib/tasks/taskExecutor.js +0 -170
  1421. package/dist/lib/tasks/taskManager.d.ts +0 -65
  1422. package/dist/lib/tasks/taskManager.js +0 -545
  1423. package/dist/lib/tasks/tools/taskTools.d.ts +0 -20
  1424. package/dist/lib/tasks/tools/taskTools.js +0 -265
  1425. package/dist/lib/telemetry/attributes.d.ts +0 -136
  1426. package/dist/lib/telemetry/attributes.js +0 -165
  1427. package/dist/lib/telemetry/index.d.ts +0 -20
  1428. package/dist/lib/telemetry/index.js +0 -28
  1429. package/dist/lib/telemetry/telemetryService.d.ts +0 -58
  1430. package/dist/lib/telemetry/telemetryService.js +0 -387
  1431. package/dist/lib/telemetry/traceContext.d.ts +0 -9
  1432. package/dist/lib/telemetry/traceContext.js +0 -19
  1433. package/dist/lib/telemetry/tracers.d.ts +0 -38
  1434. package/dist/lib/telemetry/tracers.js +0 -40
  1435. package/dist/lib/telemetry/withSpan.d.ts +0 -39
  1436. package/dist/lib/telemetry/withSpan.js +0 -138
  1437. package/dist/lib/tools/toolDiscovery.d.ts +0 -70
  1438. package/dist/lib/tools/toolDiscovery.js +0 -303
  1439. package/dist/lib/tools/toolGate.d.ts +0 -16
  1440. package/dist/lib/tools/toolGate.js +0 -51
  1441. package/dist/lib/tools/toolPolicy.d.ts +0 -40
  1442. package/dist/lib/tools/toolPolicy.js +0 -194
  1443. package/dist/lib/types/action.d.ts +0 -207
  1444. package/dist/lib/types/action.js +0 -7
  1445. package/dist/lib/types/agentNetwork.d.ts +0 -1199
  1446. package/dist/lib/types/agentNetwork.js +0 -8
  1447. package/dist/lib/types/aliases.d.ts +0 -368
  1448. package/dist/lib/types/aliases.js +0 -50
  1449. package/dist/lib/types/analytics.d.ts +0 -215
  1450. package/dist/lib/types/analytics.js +0 -6
  1451. package/dist/lib/types/artifact.d.ts +0 -70
  1452. package/dist/lib/types/artifact.js +0 -11
  1453. package/dist/lib/types/auth.d.ts +0 -1140
  1454. package/dist/lib/types/auth.js +0 -10
  1455. package/dist/lib/types/autoresearch.d.ts +0 -206
  1456. package/dist/lib/types/autoresearch.js +0 -18
  1457. package/dist/lib/types/avatar.d.ts +0 -150
  1458. package/dist/lib/types/avatar.js +0 -20
  1459. package/dist/lib/types/circuitBreakerErrors.d.ts +0 -30
  1460. package/dist/lib/types/circuitBreakerErrors.js +0 -35
  1461. package/dist/lib/types/classifierRouter.d.ts +0 -194
  1462. package/dist/lib/types/classifierRouter.js +0 -17
  1463. package/dist/lib/types/cli.d.ts +0 -1734
  1464. package/dist/lib/types/cli.js +0 -22
  1465. package/dist/lib/types/client.d.ts +0 -1287
  1466. package/dist/lib/types/client.js +0 -11
  1467. package/dist/lib/types/codex.d.ts +0 -95
  1468. package/dist/lib/types/codex.js +0 -15
  1469. package/dist/lib/types/common.d.ts +0 -434
  1470. package/dist/lib/types/common.js +0 -52
  1471. package/dist/lib/types/config.d.ts +0 -506
  1472. package/dist/lib/types/config.js +0 -54
  1473. package/dist/lib/types/content.d.ts +0 -18
  1474. package/dist/lib/types/content.js +0 -20
  1475. package/dist/lib/types/context.d.ts +0 -587
  1476. package/dist/lib/types/context.js +0 -401
  1477. package/dist/lib/types/conversation.d.ts +0 -637
  1478. package/dist/lib/types/conversation.js +0 -48
  1479. package/dist/lib/types/conversationMemoryInterface.d.ts +0 -59
  1480. package/dist/lib/types/conversationMemoryInterface.js +0 -7
  1481. package/dist/lib/types/domain.d.ts +0 -62
  1482. package/dist/lib/types/domain.js +0 -6
  1483. package/dist/lib/types/dynamic.d.ts +0 -110
  1484. package/dist/lib/types/dynamic.js +0 -10
  1485. package/dist/lib/types/elicitation.d.ts +0 -278
  1486. package/dist/lib/types/elicitation.js +0 -11
  1487. package/dist/lib/types/enums.d.ts +0 -9
  1488. package/dist/lib/types/enums.js +0 -10
  1489. package/dist/lib/types/errors.d.ts +0 -188
  1490. package/dist/lib/types/errors.js +0 -262
  1491. package/dist/lib/types/evaluation.d.ts +0 -647
  1492. package/dist/lib/types/evaluation.js +0 -2
  1493. package/dist/lib/types/evaluationProviders.d.ts +0 -104
  1494. package/dist/lib/types/evaluationProviders.js +0 -6
  1495. package/dist/lib/types/exporter.d.ts +0 -257
  1496. package/dist/lib/types/exporter.js +0 -6
  1497. package/dist/lib/types/externalMcp.d.ts +0 -349
  1498. package/dist/lib/types/externalMcp.js +0 -7
  1499. package/dist/lib/types/file.d.ts +0 -616
  1500. package/dist/lib/types/file.js +0 -5
  1501. package/dist/lib/types/fileReference.d.ts +0 -243
  1502. package/dist/lib/types/fileReference.js +0 -22
  1503. package/dist/lib/types/generate.d.ts +0 -1520
  1504. package/dist/lib/types/generate.js +0 -2
  1505. package/dist/lib/types/grounding.d.ts +0 -231
  1506. package/dist/lib/types/grounding.js +0 -12
  1507. package/dist/lib/types/guardrails.d.ts +0 -116
  1508. package/dist/lib/types/guardrails.js +0 -2
  1509. package/dist/lib/types/hitl.d.ts +0 -237
  1510. package/dist/lib/types/hitl.js +0 -9
  1511. package/dist/lib/types/imageGen.d.ts +0 -255
  1512. package/dist/lib/types/imageGen.js +0 -25
  1513. package/dist/lib/types/index.d.ts +0 -86
  1514. package/dist/lib/types/index.js +0 -98
  1515. package/dist/lib/types/ioProcessor.d.ts +0 -119
  1516. package/dist/lib/types/ioProcessor.js +0 -10
  1517. package/dist/lib/types/isolatedAgent.d.ts +0 -365
  1518. package/dist/lib/types/isolatedAgent.js +0 -12
  1519. package/dist/lib/types/knowledge.d.ts +0 -342
  1520. package/dist/lib/types/knowledge.js +0 -30
  1521. package/dist/lib/types/livekit.d.ts +0 -512
  1522. package/dist/lib/types/livekit.js +0 -13
  1523. package/dist/lib/types/loopEngine.d.ts +0 -306
  1524. package/dist/lib/types/loopEngine.js +0 -2
  1525. package/dist/lib/types/mcp.d.ts +0 -2135
  1526. package/dist/lib/types/mcp.js +0 -6
  1527. package/dist/lib/types/mcpOutput.d.ts +0 -40
  1528. package/dist/lib/types/mcpOutput.js +0 -9
  1529. package/dist/lib/types/memory.d.ts +0 -96
  1530. package/dist/lib/types/memory.js +0 -23
  1531. package/dist/lib/types/middleware.d.ts +0 -435
  1532. package/dist/lib/types/middleware.js +0 -2
  1533. package/dist/lib/types/model.d.ts +0 -342
  1534. package/dist/lib/types/model.js +0 -32
  1535. package/dist/lib/types/modelPool.d.ts +0 -47
  1536. package/dist/lib/types/modelPool.js +0 -11
  1537. package/dist/lib/types/multimodal.d.ts +0 -614
  1538. package/dist/lib/types/multimodal.js +0 -144
  1539. package/dist/lib/types/music.d.ts +0 -172
  1540. package/dist/lib/types/music.js +0 -21
  1541. package/dist/lib/types/nativeTools.d.ts +0 -16
  1542. package/dist/lib/types/nativeTools.js +0 -2
  1543. package/dist/lib/types/noOutputSentinel.d.ts +0 -26
  1544. package/dist/lib/types/noOutputSentinel.js +0 -2
  1545. package/dist/lib/types/observability.d.ts +0 -502
  1546. package/dist/lib/types/observability.js +0 -7
  1547. package/dist/lib/types/openaiCompatible.d.ts +0 -287
  1548. package/dist/lib/types/openaiCompatible.js +0 -2
  1549. package/dist/lib/types/ppt.d.ts +0 -1093
  1550. package/dist/lib/types/ppt.js +0 -37
  1551. package/dist/lib/types/processor.d.ts +0 -993
  1552. package/dist/lib/types/processor.js +0 -91
  1553. package/dist/lib/types/providers.d.ts +0 -2155
  1554. package/dist/lib/types/providers.js +0 -112
  1555. package/dist/lib/types/proxy.d.ts +0 -2789
  1556. package/dist/lib/types/proxy.js +0 -17
  1557. package/dist/lib/types/proxyClient.d.ts +0 -54
  1558. package/dist/lib/types/proxyClient.js +0 -2
  1559. package/dist/lib/types/rag.d.ts +0 -1332
  1560. package/dist/lib/types/rag.js +0 -2
  1561. package/dist/lib/types/realtime.d.ts +0 -243
  1562. package/dist/lib/types/realtime.js +0 -70
  1563. package/dist/lib/types/replicate.d.ts +0 -67
  1564. package/dist/lib/types/replicate.js +0 -10
  1565. package/dist/lib/types/requestRouter.d.ts +0 -75
  1566. package/dist/lib/types/requestRouter.js +0 -16
  1567. package/dist/lib/types/safeFetch.d.ts +0 -24
  1568. package/dist/lib/types/safeFetch.js +0 -7
  1569. package/dist/lib/types/scorer.d.ts +0 -564
  1570. package/dist/lib/types/scorer.js +0 -6
  1571. package/dist/lib/types/sdk.d.ts +0 -23
  1572. package/dist/lib/types/sdk.js +0 -9
  1573. package/dist/lib/types/server.d.ts +0 -1192
  1574. package/dist/lib/types/server.js +0 -68
  1575. package/dist/lib/types/service.d.ts +0 -79
  1576. package/dist/lib/types/service.js +0 -6
  1577. package/dist/lib/types/skills.d.ts +0 -427
  1578. package/dist/lib/types/skills.js +0 -17
  1579. package/dist/lib/types/span.d.ts +0 -247
  1580. package/dist/lib/types/span.js +0 -96
  1581. package/dist/lib/types/stream.d.ts +0 -771
  1582. package/dist/lib/types/stream.js +0 -2
  1583. package/dist/lib/types/streamDedup.d.ts +0 -14
  1584. package/dist/lib/types/streamDedup.js +0 -2
  1585. package/dist/lib/types/streaming.d.ts +0 -15
  1586. package/dist/lib/types/streaming.js +0 -2
  1587. package/dist/lib/types/stt.d.ts +0 -585
  1588. package/dist/lib/types/stt.js +0 -90
  1589. package/dist/lib/types/subscription.d.ts +0 -1064
  1590. package/dist/lib/types/subscription.js +0 -10
  1591. package/dist/lib/types/task.d.ts +0 -313
  1592. package/dist/lib/types/task.js +0 -37
  1593. package/dist/lib/types/taskClassification.d.ts +0 -52
  1594. package/dist/lib/types/taskClassification.js +0 -6
  1595. package/dist/lib/types/toolDedup.d.ts +0 -45
  1596. package/dist/lib/types/toolDedup.js +0 -14
  1597. package/dist/lib/types/toolResolution.d.ts +0 -83
  1598. package/dist/lib/types/toolResolution.js +0 -11
  1599. package/dist/lib/types/toolRouting.d.ts +0 -350
  1600. package/dist/lib/types/toolRouting.js +0 -19
  1601. package/dist/lib/types/tools.d.ts +0 -531
  1602. package/dist/lib/types/tools.js +0 -26
  1603. package/dist/lib/types/tts.d.ts +0 -195
  1604. package/dist/lib/types/tts.js +0 -65
  1605. package/dist/lib/types/utilities.d.ts +0 -310
  1606. package/dist/lib/types/utilities.js +0 -5
  1607. package/dist/lib/types/vectorStoreChroma.d.ts +0 -67
  1608. package/dist/lib/types/vectorStoreChroma.js +0 -12
  1609. package/dist/lib/types/vectorStorePinecone.d.ts +0 -48
  1610. package/dist/lib/types/vectorStorePinecone.js +0 -12
  1611. package/dist/lib/types/video.d.ts +0 -89
  1612. package/dist/lib/types/video.js +0 -15
  1613. package/dist/lib/types/voice.d.ts +0 -272
  1614. package/dist/lib/types/voice.js +0 -137
  1615. package/dist/lib/types/workflow.d.ts +0 -598
  1616. package/dist/lib/types/workflow.js +0 -24
  1617. package/dist/lib/utils/analyticsUtils.d.ts +0 -37
  1618. package/dist/lib/utils/analyticsUtils.js +0 -110
  1619. package/dist/lib/utils/anthropicCacheBreakpoints.d.ts +0 -43
  1620. package/dist/lib/utils/anthropicCacheBreakpoints.js +0 -151
  1621. package/dist/lib/utils/anthropicTraceSanitizer.d.ts +0 -7
  1622. package/dist/lib/utils/anthropicTraceSanitizer.js +0 -26
  1623. package/dist/lib/utils/async/delay.d.ts +0 -40
  1624. package/dist/lib/utils/async/delay.js +0 -43
  1625. package/dist/lib/utils/async/index.d.ts +0 -23
  1626. package/dist/lib/utils/async/index.js +0 -24
  1627. package/dist/lib/utils/async/retry.d.ts +0 -107
  1628. package/dist/lib/utils/async/retry.js +0 -172
  1629. package/dist/lib/utils/async/withTimeout.d.ts +0 -85
  1630. package/dist/lib/utils/async/withTimeout.js +0 -144
  1631. package/dist/lib/utils/asyncMutex.d.ts +0 -14
  1632. package/dist/lib/utils/asyncMutex.js +0 -61
  1633. package/dist/lib/utils/audioFormatDetector.d.ts +0 -15
  1634. package/dist/lib/utils/audioFormatDetector.js +0 -34
  1635. package/dist/lib/utils/avatarProcessor.d.ts +0 -78
  1636. package/dist/lib/utils/avatarProcessor.js +0 -173
  1637. package/dist/lib/utils/cloneOptions.d.ts +0 -36
  1638. package/dist/lib/utils/cloneOptions.js +0 -62
  1639. package/dist/lib/utils/conversationMemory.d.ts +0 -80
  1640. package/dist/lib/utils/conversationMemory.js +0 -670
  1641. package/dist/lib/utils/csvProcessor.d.ts +0 -221
  1642. package/dist/lib/utils/csvProcessor.js +0 -1527
  1643. package/dist/lib/utils/csvUtils.d.ts +0 -26
  1644. package/dist/lib/utils/csvUtils.js +0 -85
  1645. package/dist/lib/utils/errorClassifier.d.ts +0 -30
  1646. package/dist/lib/utils/errorClassifier.js +0 -183
  1647. package/dist/lib/utils/errorHandling.d.ts +0 -398
  1648. package/dist/lib/utils/errorHandling.js +0 -1282
  1649. package/dist/lib/utils/evaluationUtils.d.ts +0 -27
  1650. package/dist/lib/utils/evaluationUtils.js +0 -132
  1651. package/dist/lib/utils/factoryProcessing.d.ts +0 -71
  1652. package/dist/lib/utils/factoryProcessing.js +0 -590
  1653. package/dist/lib/utils/fileDetector.d.ts +0 -198
  1654. package/dist/lib/utils/fileDetector.js +0 -2806
  1655. package/dist/lib/utils/generation.d.ts +0 -8
  1656. package/dist/lib/utils/generation.js +0 -9
  1657. package/dist/lib/utils/generationErrors.d.ts +0 -10
  1658. package/dist/lib/utils/generationErrors.js +0 -11
  1659. package/dist/lib/utils/imageCache.d.ts +0 -124
  1660. package/dist/lib/utils/imageCache.js +0 -437
  1661. package/dist/lib/utils/imageDetection.d.ts +0 -15
  1662. package/dist/lib/utils/imageDetection.js +0 -53
  1663. package/dist/lib/utils/imageProcessor.d.ts +0 -296
  1664. package/dist/lib/utils/imageProcessor.js +0 -1158
  1665. package/dist/lib/utils/isoBmff.d.ts +0 -24
  1666. package/dist/lib/utils/isoBmff.js +0 -83
  1667. package/dist/lib/utils/json/coerce.d.ts +0 -30
  1668. package/dist/lib/utils/json/coerce.js +0 -412
  1669. package/dist/lib/utils/json/extract.d.ts +0 -112
  1670. package/dist/lib/utils/json/extract.js +0 -299
  1671. package/dist/lib/utils/json/index.d.ts +0 -36
  1672. package/dist/lib/utils/json/index.js +0 -37
  1673. package/dist/lib/utils/json/safeParse.d.ts +0 -130
  1674. package/dist/lib/utils/json/safeParse.js +0 -191
  1675. package/dist/lib/utils/lifecycleCallbacks.d.ts +0 -56
  1676. package/dist/lib/utils/lifecycleCallbacks.js +0 -100
  1677. package/dist/lib/utils/lifecycleTimeout.d.ts +0 -25
  1678. package/dist/lib/utils/lifecycleTimeout.js +0 -39
  1679. package/dist/lib/utils/logSanitize.d.ts +0 -285
  1680. package/dist/lib/utils/logSanitize.js +0 -555
  1681. package/dist/lib/utils/logger.d.ts +0 -273
  1682. package/dist/lib/utils/logger.js +0 -516
  1683. package/dist/lib/utils/loggingFetch.d.ts +0 -29
  1684. package/dist/lib/utils/loggingFetch.js +0 -60
  1685. package/dist/lib/utils/loopUtils.d.ts +0 -70
  1686. package/dist/lib/utils/loopUtils.js +0 -263
  1687. package/dist/lib/utils/markupSniff.d.ts +0 -37
  1688. package/dist/lib/utils/markupSniff.js +0 -125
  1689. package/dist/lib/utils/mcpDefaults.d.ts +0 -54
  1690. package/dist/lib/utils/mcpDefaults.js +0 -135
  1691. package/dist/lib/utils/mcpErrorText.d.ts +0 -37
  1692. package/dist/lib/utils/mcpErrorText.js +0 -95
  1693. package/dist/lib/utils/mediaDuration.d.ts +0 -23
  1694. package/dist/lib/utils/mediaDuration.js +0 -45
  1695. package/dist/lib/utils/messageBuilder.d.ts +0 -59
  1696. package/dist/lib/utils/messageBuilder.js +0 -2716
  1697. package/dist/lib/utils/mimeTypeHints.d.ts +0 -40
  1698. package/dist/lib/utils/mimeTypeHints.js +0 -122
  1699. package/dist/lib/utils/modelAliasResolver.d.ts +0 -17
  1700. package/dist/lib/utils/modelAliasResolver.js +0 -55
  1701. package/dist/lib/utils/modelChoices.d.ts +0 -75
  1702. package/dist/lib/utils/modelChoices.js +0 -698
  1703. package/dist/lib/utils/modelDetection.d.ts +0 -37
  1704. package/dist/lib/utils/modelDetection.js +0 -131
  1705. package/dist/lib/utils/modelRouter.d.ts +0 -91
  1706. package/dist/lib/utils/modelRouter.js +0 -293
  1707. package/dist/lib/utils/multimodalOptionsBuilder.d.ts +0 -74
  1708. package/dist/lib/utils/multimodalOptionsBuilder.js +0 -74
  1709. package/dist/lib/utils/musicProcessor.d.ts +0 -77
  1710. package/dist/lib/utils/musicProcessor.js +0 -190
  1711. package/dist/lib/utils/noOutputSentinel.d.ts +0 -67
  1712. package/dist/lib/utils/noOutputSentinel.js +0 -180
  1713. package/dist/lib/utils/observabilityHelpers.d.ts +0 -27
  1714. package/dist/lib/utils/observabilityHelpers.js +0 -48
  1715. package/dist/lib/utils/optionsConversion.d.ts +0 -47
  1716. package/dist/lib/utils/optionsConversion.js +0 -128
  1717. package/dist/lib/utils/optionsUtils.d.ts +0 -175
  1718. package/dist/lib/utils/optionsUtils.js +0 -970
  1719. package/dist/lib/utils/parameterValidation.d.ts +0 -200
  1720. package/dist/lib/utils/parameterValidation.js +0 -981
  1721. package/dist/lib/utils/pdfProcessor.d.ts +0 -137
  1722. package/dist/lib/utils/pdfProcessor.js +0 -689
  1723. package/dist/lib/utils/performance.d.ts +0 -93
  1724. package/dist/lib/utils/performance.js +0 -223
  1725. package/dist/lib/utils/piiDetector.d.ts +0 -24
  1726. package/dist/lib/utils/piiDetector.js +0 -221
  1727. package/dist/lib/utils/pricing.d.ts +0 -26
  1728. package/dist/lib/utils/pricing.js +0 -890
  1729. package/dist/lib/utils/promptRedaction.d.ts +0 -22
  1730. package/dist/lib/utils/promptRedaction.js +0 -63
  1731. package/dist/lib/utils/providerConfig.d.ts +0 -393
  1732. package/dist/lib/utils/providerConfig.js +0 -1363
  1733. package/dist/lib/utils/providerErrorClassification.d.ts +0 -58
  1734. package/dist/lib/utils/providerErrorClassification.js +0 -149
  1735. package/dist/lib/utils/providerHealth.d.ts +0 -253
  1736. package/dist/lib/utils/providerHealth.js +0 -1479
  1737. package/dist/lib/utils/providerRetry.d.ts +0 -68
  1738. package/dist/lib/utils/providerRetry.js +0 -230
  1739. package/dist/lib/utils/providerSetupMessages.d.ts +0 -8
  1740. package/dist/lib/utils/providerSetupMessages.js +0 -122
  1741. package/dist/lib/utils/providerUtils.d.ts +0 -38
  1742. package/dist/lib/utils/providerUtils.js +0 -366
  1743. package/dist/lib/utils/rateLimiter.d.ts +0 -75
  1744. package/dist/lib/utils/rateLimiter.js +0 -201
  1745. package/dist/lib/utils/redis.d.ts +0 -119
  1746. package/dist/lib/utils/redis.js +0 -530
  1747. package/dist/lib/utils/responseValidator.d.ts +0 -21
  1748. package/dist/lib/utils/responseValidator.js +0 -354
  1749. package/dist/lib/utils/retryAfter.d.ts +0 -7
  1750. package/dist/lib/utils/retryAfter.js +0 -44
  1751. package/dist/lib/utils/retryHandler.d.ts +0 -82
  1752. package/dist/lib/utils/retryHandler.js +0 -270
  1753. package/dist/lib/utils/retryability.d.ts +0 -27
  1754. package/dist/lib/utils/retryability.js +0 -45
  1755. package/dist/lib/utils/safeFetch.d.ts +0 -26
  1756. package/dist/lib/utils/safeFetch.js +0 -121
  1757. package/dist/lib/utils/sanitizers/filename.d.ts +0 -116
  1758. package/dist/lib/utils/sanitizers/filename.js +0 -366
  1759. package/dist/lib/utils/sanitizers/html.d.ts +0 -170
  1760. package/dist/lib/utils/sanitizers/html.js +0 -326
  1761. package/dist/lib/utils/sanitizers/index.d.ts +0 -26
  1762. package/dist/lib/utils/sanitizers/index.js +0 -30
  1763. package/dist/lib/utils/sanitizers/svg.d.ts +0 -71
  1764. package/dist/lib/utils/sanitizers/svg.js +0 -482
  1765. package/dist/lib/utils/schemaConversion.d.ts +0 -56
  1766. package/dist/lib/utils/schemaConversion.js +0 -656
  1767. package/dist/lib/utils/sizeGuard.d.ts +0 -34
  1768. package/dist/lib/utils/sizeGuard.js +0 -45
  1769. package/dist/lib/utils/ssrfGuard.d.ts +0 -60
  1770. package/dist/lib/utils/ssrfGuard.js +0 -446
  1771. package/dist/lib/utils/sttProcessor.d.ts +0 -125
  1772. package/dist/lib/utils/sttProcessor.js +0 -301
  1773. package/dist/lib/utils/systemMessages.d.ts +0 -29
  1774. package/dist/lib/utils/systemMessages.js +0 -45
  1775. package/dist/lib/utils/taskClassificationUtils.d.ts +0 -55
  1776. package/dist/lib/utils/taskClassificationUtils.js +0 -150
  1777. package/dist/lib/utils/taskClassifier.d.ts +0 -23
  1778. package/dist/lib/utils/taskClassifier.js +0 -95
  1779. package/dist/lib/utils/textEncoding.d.ts +0 -25
  1780. package/dist/lib/utils/textEncoding.js +0 -141
  1781. package/dist/lib/utils/thinkingConfig.d.ts +0 -76
  1782. package/dist/lib/utils/thinkingConfig.js +0 -105
  1783. package/dist/lib/utils/timeout.d.ts +0 -158
  1784. package/dist/lib/utils/timeout.js +0 -427
  1785. package/dist/lib/utils/tokenEstimation.d.ts +0 -90
  1786. package/dist/lib/utils/tokenEstimation.js +0 -187
  1787. package/dist/lib/utils/tokenLimits.d.ts +0 -53
  1788. package/dist/lib/utils/tokenLimits.js +0 -236
  1789. package/dist/lib/utils/tokenUtils.d.ts +0 -101
  1790. package/dist/lib/utils/tokenUtils.js +0 -323
  1791. package/dist/lib/utils/tool.d.ts +0 -8
  1792. package/dist/lib/utils/tool.js +0 -9
  1793. package/dist/lib/utils/toolCallRepair.d.ts +0 -14
  1794. package/dist/lib/utils/toolCallRepair.js +0 -286
  1795. package/dist/lib/utils/toolChoice.d.ts +0 -4
  1796. package/dist/lib/utils/toolChoice.js +0 -7
  1797. package/dist/lib/utils/toolEndEmitter.d.ts +0 -25
  1798. package/dist/lib/utils/toolEndEmitter.js +0 -65
  1799. package/dist/lib/utils/toolUtils.d.ts +0 -40
  1800. package/dist/lib/utils/toolUtils.js +0 -76
  1801. package/dist/lib/utils/transformationUtils.d.ts +0 -218
  1802. package/dist/lib/utils/transformationUtils.js +0 -578
  1803. package/dist/lib/utils/tripwireEvaluator.d.ts +0 -73
  1804. package/dist/lib/utils/tripwireEvaluator.js +0 -285
  1805. package/dist/lib/utils/tryImport.d.ts +0 -35
  1806. package/dist/lib/utils/tryImport.js +0 -95
  1807. package/dist/lib/utils/ttsProcessor.d.ts +0 -159
  1808. package/dist/lib/utils/ttsProcessor.js +0 -293
  1809. package/dist/lib/utils/typeUtils.d.ts +0 -77
  1810. package/dist/lib/utils/typeUtils.js +0 -98
  1811. package/dist/lib/utils/videoAnalysisProcessor.d.ts +0 -24
  1812. package/dist/lib/utils/videoAnalysisProcessor.js +0 -61
  1813. package/dist/lib/utils/videoProcessor.d.ts +0 -64
  1814. package/dist/lib/utils/videoProcessor.js +0 -196
  1815. package/dist/lib/voice/RealtimeVoiceAPI.d.ts +0 -186
  1816. package/dist/lib/voice/RealtimeVoiceAPI.js +0 -431
  1817. package/dist/lib/voice/audio-utils.d.ts +0 -135
  1818. package/dist/lib/voice/audio-utils.js +0 -435
  1819. package/dist/lib/voice/errors.d.ts +0 -123
  1820. package/dist/lib/voice/errors.js +0 -386
  1821. package/dist/lib/voice/index.d.ts +0 -49
  1822. package/dist/lib/voice/index.js +0 -177
  1823. package/dist/lib/voice/livekit/brain.d.ts +0 -21
  1824. package/dist/lib/voice/livekit/brain.js +0 -75
  1825. package/dist/lib/voice/livekit/config.d.ts +0 -52
  1826. package/dist/lib/voice/livekit/config.js +0 -134
  1827. package/dist/lib/voice/livekit/eventBridge.d.ts +0 -27
  1828. package/dist/lib/voice/livekit/eventBridge.js +0 -360
  1829. package/dist/lib/voice/livekit/index.d.ts +0 -22
  1830. package/dist/lib/voice/livekit/index.js +0 -23
  1831. package/dist/lib/voice/livekit/realtimeEventBridge.d.ts +0 -14
  1832. package/dist/lib/voice/livekit/realtimeEventBridge.js +0 -161
  1833. package/dist/lib/voice/livekit/realtimeMcpTools.d.ts +0 -31
  1834. package/dist/lib/voice/livekit/realtimeMcpTools.js +0 -206
  1835. package/dist/lib/voice/livekit/realtimeVoiceAgent.d.ts +0 -26
  1836. package/dist/lib/voice/livekit/realtimeVoiceAgent.js +0 -365
  1837. package/dist/lib/voice/livekit/roomContext.d.ts +0 -23
  1838. package/dist/lib/voice/livekit/roomContext.js +0 -57
  1839. package/dist/lib/voice/livekit/roomDispatch.d.ts +0 -24
  1840. package/dist/lib/voice/livekit/roomDispatch.js +0 -31
  1841. package/dist/lib/voice/livekit/schemaSanitizer.d.ts +0 -26
  1842. package/dist/lib/voice/livekit/schemaSanitizer.js +0 -144
  1843. package/dist/lib/voice/livekit/tokens.d.ts +0 -19
  1844. package/dist/lib/voice/livekit/tokens.js +0 -51
  1845. package/dist/lib/voice/livekit/vertexAuth.d.ts +0 -30
  1846. package/dist/lib/voice/livekit/vertexAuth.js +0 -73
  1847. package/dist/lib/voice/livekit/voiceAgent.d.ts +0 -32
  1848. package/dist/lib/voice/livekit/voiceAgent.js +0 -425
  1849. package/dist/lib/voice/livekit/voiceAgentWorker.d.ts +0 -29
  1850. package/dist/lib/voice/livekit/voiceAgentWorker.js +0 -122
  1851. package/dist/lib/voice/providers/AzureSTT.d.ts +0 -47
  1852. package/dist/lib/voice/providers/AzureSTT.js +0 -345
  1853. package/dist/lib/voice/providers/AzureTTS.d.ts +0 -59
  1854. package/dist/lib/voice/providers/AzureTTS.js +0 -349
  1855. package/dist/lib/voice/providers/CartesiaTTS.d.ts +0 -31
  1856. package/dist/lib/voice/providers/CartesiaTTS.js +0 -189
  1857. package/dist/lib/voice/providers/DeepgramSTT.d.ts +0 -40
  1858. package/dist/lib/voice/providers/DeepgramSTT.js +0 -550
  1859. package/dist/lib/voice/providers/ElevenLabsTTS.d.ts +0 -53
  1860. package/dist/lib/voice/providers/ElevenLabsTTS.js +0 -311
  1861. package/dist/lib/voice/providers/FishAudioTTS.d.ts +0 -27
  1862. package/dist/lib/voice/providers/FishAudioTTS.js +0 -183
  1863. package/dist/lib/voice/providers/GeminiLive.d.ts +0 -52
  1864. package/dist/lib/voice/providers/GeminiLive.js +0 -372
  1865. package/dist/lib/voice/providers/GoogleSTT.d.ts +0 -60
  1866. package/dist/lib/voice/providers/GoogleSTT.js +0 -454
  1867. package/dist/lib/voice/providers/OpenAIRealtime.d.ts +0 -47
  1868. package/dist/lib/voice/providers/OpenAIRealtime.js +0 -412
  1869. package/dist/lib/voice/providers/OpenAISTT.d.ts +0 -41
  1870. package/dist/lib/voice/providers/OpenAISTT.js +0 -286
  1871. package/dist/lib/voice/providers/OpenAITTS.d.ts +0 -55
  1872. package/dist/lib/voice/providers/OpenAITTS.js +0 -285
  1873. package/dist/lib/voice/stream-handler.d.ts +0 -166
  1874. package/dist/lib/voice/stream-handler.js +0 -514
  1875. package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +0 -13
  1876. package/dist/lib/workflow/LAYER-EXAMPLES.js +0 -312
  1877. package/dist/lib/workflow/PROMPT-EXAMPLES.d.ts +0 -117
  1878. package/dist/lib/workflow/PROMPT-EXAMPLES.js +0 -246
  1879. package/dist/lib/workflow/config.d.ts +0 -376
  1880. package/dist/lib/workflow/config.js +0 -399
  1881. package/dist/lib/workflow/core/ensembleExecutor.d.ts +0 -55
  1882. package/dist/lib/workflow/core/ensembleExecutor.js +0 -451
  1883. package/dist/lib/workflow/core/judgeScorer.d.ts +0 -25
  1884. package/dist/lib/workflow/core/judgeScorer.js +0 -568
  1885. package/dist/lib/workflow/core/responseConditioner.d.ts +0 -21
  1886. package/dist/lib/workflow/core/responseConditioner.js +0 -243
  1887. package/dist/lib/workflow/core/workflowRegistry.d.ts +0 -72
  1888. package/dist/lib/workflow/core/workflowRegistry.js +0 -305
  1889. package/dist/lib/workflow/core/workflowRunner.d.ts +0 -61
  1890. package/dist/lib/workflow/core/workflowRunner.js +0 -642
  1891. package/dist/lib/workflow/index.d.ts +0 -21
  1892. package/dist/lib/workflow/index.js +0 -46
  1893. package/dist/lib/workflow/utils/workflowMetrics.d.ts +0 -74
  1894. package/dist/lib/workflow/utils/workflowMetrics.js +0 -312
  1895. package/dist/lib/workflow/utils/workflowValidation.d.ts +0 -29
  1896. package/dist/lib/workflow/utils/workflowValidation.js +0 -421
  1897. package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +0 -72
  1898. package/dist/lib/workflow/workflows/adaptiveWorkflow.js +0 -367
  1899. package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +0 -69
  1900. package/dist/lib/workflow/workflows/consensusWorkflow.js +0 -193
  1901. package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +0 -49
  1902. package/dist/lib/workflow/workflows/fallbackWorkflow.js +0 -226
  1903. package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +0 -70
  1904. package/dist/lib/workflow/workflows/multiJudgeWorkflow.js +0 -352
  1905. package/dist/providers/googleVertex/utils.d.ts +0 -12
  1906. package/dist/providers/googleVertex/utils.js +0 -286
@@ -1,2135 +0,0 @@
1
- /**
2
- * MCP Types for In-Memory Server Support
3
- * Enables various integrations to register tools directly
4
- */
5
- import type { JsonValue, JsonObject } from "./common.js";
6
- import type { OAuthTokens } from "./auth.js";
7
- import type { ExecutionContext, ToolInfo, ToolResult } from "./tools.js";
8
- export type { OAuthTokens } from "./auth.js";
9
- /**
10
- * In-memory MCP server configuration
11
- */
12
- /**
13
- * MCP Transport Types - Maximally Reusable
14
- */
15
- export type MCPTransportType = "stdio" | "sse" | "websocket" | "http" | "ws" | "tcp" | "unix";
16
- /**
17
- * MCP Server Connection Status - Individual server status
18
- */
19
- export type MCPServerConnectionStatus = "initializing" | "connecting" | "connected" | "disconnected" | "failed" | "restarting" | "stopping" | "stopped";
20
- /**
21
- * MCP Server Category Types - Deployment and server type classification
22
- */
23
- export type MCPServerCategory = "external" | "in-memory" | "built-in" | "user-defined" | "custom" | "uncategorized";
24
- /**
25
- * MCP Server Domain Categories - Functional domain classification
26
- */
27
- export type MCPServerDomainCategory = "aiProviders" | "frameworks" | "development" | "business" | "content" | "data" | "integrations" | "automation" | "analysis" | "custom";
28
- /**
29
- * Universal MCP Server - Unified configuration and runtime state
30
- * MCP 2024-11-05 specification compliant
31
- * Replaces both MCPServerInfo and MCPServerConfig
32
- */
33
- export type MCPServerInfo = {
34
- id: string;
35
- name: string;
36
- description: string;
37
- transport: MCPTransportType;
38
- status: MCPServerConnectionStatus;
39
- tools: Array<{
40
- name: string;
41
- description: string;
42
- inputSchema?: object;
43
- execute?: (params: unknown, context?: unknown) => Promise<unknown> | unknown;
44
- }>;
45
- command?: string;
46
- args?: string[];
47
- env?: Record<string, string>;
48
- url?: string;
49
- headers?: Record<string, string>;
50
- /** HTTP transport-specific options */
51
- httpOptions?: MCPHTTPTransportOptions;
52
- timeout?: number;
53
- retries?: number;
54
- error?: string;
55
- installed?: boolean;
56
- cwd?: string;
57
- autoRestart?: boolean;
58
- healthCheckInterval?: number;
59
- /** Retry configuration for HTTP transport */
60
- retryConfig?: {
61
- maxAttempts?: number;
62
- initialDelay?: number;
63
- maxDelay?: number;
64
- backoffMultiplier?: number;
65
- };
66
- /** Rate limiting configuration for HTTP transport */
67
- rateLimiting?: {
68
- /** Maximum requests per minute (default: 60) */
69
- requestsPerMinute?: number;
70
- /** Maximum requests per hour (optional) */
71
- requestsPerHour?: number;
72
- /** Maximum burst size for token bucket (default: 10) */
73
- maxBurst?: number;
74
- /** Use token bucket algorithm (default: true) */
75
- useTokenBucket?: boolean;
76
- };
77
- blockedTools?: string[];
78
- /** Authentication configuration for HTTP/SSE/WebSocket transports */
79
- auth?: {
80
- /** Authentication type */
81
- type: "oauth2" | "bearer" | "api-key";
82
- /** OAuth 2.1 configuration */
83
- oauth?: {
84
- /** OAuth client ID */
85
- clientId: string;
86
- /** OAuth client secret (optional for public clients with PKCE) */
87
- clientSecret?: string;
88
- /** Authorization endpoint URL */
89
- authorizationUrl: string;
90
- /** Token endpoint URL */
91
- tokenUrl: string;
92
- /** Redirect URI for OAuth callback */
93
- redirectUrl: string;
94
- /** OAuth scope (space-separated) */
95
- scope?: string;
96
- /** Enable PKCE (Proof Key for Code Exchange) - recommended for OAuth 2.1 */
97
- usePKCE?: boolean;
98
- };
99
- /** Bearer token for simple token authentication */
100
- token?: string;
101
- /** API key for API key authentication */
102
- apiKey?: string;
103
- /** Header name for API key (default: "X-API-Key") */
104
- apiKeyHeader?: string;
105
- };
106
- metadata?: {
107
- uptime?: number;
108
- toolCount?: number;
109
- category?: MCPServerCategory;
110
- provider?: string;
111
- version?: string;
112
- author?: string;
113
- tags?: string[];
114
- [key: string]: unknown;
115
- };
116
- };
117
- /**
118
- * HTTP Transport Options for fine-grained control
119
- */
120
- export type MCPHTTPTransportOptions = {
121
- /** Connection timeout in milliseconds (default: 30000) */
122
- connectionTimeout?: number;
123
- /** Request timeout in milliseconds (default: 60000) */
124
- requestTimeout?: number;
125
- /** Idle timeout for connection pool (default: 120000) */
126
- idleTimeout?: number;
127
- /** Keep-alive timeout (default: 30000) */
128
- keepAliveTimeout?: number;
129
- };
130
- /**
131
- * MCP Server Status for CLI Operations - High Reusability
132
- */
133
- export type MCPServerStatus = {
134
- /** Whether MCP is initialized */
135
- mcpInitialized: boolean;
136
- /** Total number of servers */
137
- totalServers: number;
138
- /** Number of available servers */
139
- availableServers: number;
140
- /** Number of auto-discovered servers */
141
- autoDiscoveredCount: number;
142
- /** Total number of tools */
143
- totalTools: number;
144
- /** Number of custom tools */
145
- customToolsCount: number;
146
- /** Number of in-memory servers */
147
- inMemoryServersCount: number;
148
- /** Error message */
149
- error?: string;
150
- /** Auto-discovered servers from various sources */
151
- autoDiscoveredServers?: MCPDiscoveredServer[];
152
- /** Currently connected servers */
153
- connectedServers: MCPConnectedServer[];
154
- /** Available tools across all servers */
155
- availableTools: MCPToolInfo[];
156
- /** Server registry entries */
157
- serverRegistry?: Record<string, MCPServerInfo>;
158
- };
159
- /**
160
- * Auto-discovered MCP Server - High Reusability
161
- */
162
- export type MCPDiscoveredServer = {
163
- name: string;
164
- status: MCPServerConnectionStatus;
165
- source: string;
166
- transport: MCPTransportType;
167
- description?: string;
168
- url?: string;
169
- args?: string[];
170
- env?: Record<string, string>;
171
- metadata?: MCPServerMetadata;
172
- };
173
- /**
174
- * Connected MCP Server - High Reusability
175
- */
176
- export type MCPConnectedServer = {
177
- name: string;
178
- transport: MCPTransportType;
179
- connected: boolean;
180
- description?: string;
181
- tools: MCPToolInfo[];
182
- lastSeen?: Date;
183
- connectionTime?: Date;
184
- metadata?: MCPServerMetadata;
185
- };
186
- /**
187
- * MCP Tool Information - High Reusability
188
- */
189
- export type MCPToolInfo = {
190
- name: string;
191
- description: string;
192
- serverId: string;
193
- isExternal: boolean;
194
- isImplemented?: boolean;
195
- inputSchema?: JsonObject;
196
- outputSchema?: JsonObject;
197
- metadata?: MCPToolMetadata;
198
- };
199
- /**
200
- * MCP Executable Tool - Tool with execution capability
201
- * Extracted from MCPServerInfo.tools array for better readability
202
- */
203
- export type MCPExecutableTool = MCPServerInfo["tools"][0];
204
- /**
205
- * MCP Server Metadata - Extensible
206
- */
207
- export type MCPServerMetadata = {
208
- [key: string]: JsonValue;
209
- } & {
210
- provider?: string;
211
- version?: string;
212
- author?: string;
213
- category?: string;
214
- tags?: string[];
215
- };
216
- /**
217
- * MCP Tool Metadata - Extensible
218
- */
219
- export type MCPToolMetadata = {
220
- [key: string]: JsonValue;
221
- } & {
222
- category?: string;
223
- tags?: string[];
224
- complexity?: "simple" | "medium" | "complex";
225
- executionTime?: number;
226
- };
227
- /**
228
- * MCP Server Registry Entry - For Object.entries() usage
229
- */
230
- export type MCPServerRegistryEntry = [string, MCPServerInfo];
231
- export type MCPStatus = {
232
- mcpInitialized: boolean;
233
- totalServers: number;
234
- availableServers: number;
235
- autoDiscoveredCount: number;
236
- totalTools: number;
237
- autoDiscoveredServers: MCPServerInfo[];
238
- customToolsCount: number;
239
- inMemoryServersCount: number;
240
- externalMCPServersCount?: number;
241
- externalMCPConnectedCount?: number;
242
- externalMCPFailedCount?: number;
243
- externalMCPServers?: MCPServerInfo[];
244
- error?: string;
245
- [key: string]: unknown;
246
- };
247
- /**
248
- * Call record for circuit breaker statistics tracking.
249
- * Superset shape: MCP breaker uses {timestamp, success, duration};
250
- * RAG breaker also tracks `operationType` (optional, for routing and
251
- * metrics). Both import from here.
252
- */
253
- export type CallRecord = {
254
- timestamp: number;
255
- success: boolean;
256
- duration: number;
257
- operationType?: string;
258
- };
259
- /**
260
- * Tool execution context - Rich context passed to every tool execution
261
- * Extracted from factory.ts for centralized type management
262
- * Following standard patterns for rich tool context
263
- */
264
- export type NeuroLinkExecutionContext = {
265
- sessionId?: string;
266
- userId?: string;
267
- aiProvider?: string;
268
- modelId?: string;
269
- temperature?: number;
270
- maxTokens?: number;
271
- appId?: string;
272
- clientId?: string;
273
- clientVersion?: string;
274
- organizationId?: string;
275
- projectId?: string;
276
- environment?: string;
277
- environmentType?: "development" | "staging" | "production";
278
- platform?: string;
279
- device?: string;
280
- browser?: string;
281
- userAgent?: string;
282
- frameworkType?: "react" | "vue" | "svelte" | "next" | "nuxt" | "sveltekit";
283
- toolChain?: string[];
284
- parentToolId?: string;
285
- locale?: string;
286
- timezone?: string;
287
- ipAddress?: string;
288
- requestId?: string;
289
- timestamp?: number;
290
- permissions?: string[];
291
- features?: string[];
292
- enableDemoMode?: boolean;
293
- securityLevel?: "public" | "private" | "organization";
294
- metadata?: Record<string, unknown>;
295
- [key: string]: unknown;
296
- };
297
- export type { ToolResult } from "./tools.js";
298
- /**
299
- * Unified MCP Registry type
300
- */
301
- export type UnifiedMCPRegistry = {
302
- /**
303
- * Register an in-memory server
304
- */
305
- registerInMemoryServer(serverId: string, serverInfo: MCPServerInfo): Promise<void>;
306
- /**
307
- * Get all available tools
308
- */
309
- getAllTools(): Promise<MCPToolInfo[]>;
310
- /**
311
- * Execute a tool
312
- */
313
- executeTool(toolName: string, params: JsonObject, context: JsonObject): Promise<unknown>;
314
- /**
315
- * Check if connected to a server
316
- */
317
- isConnected(serverId: string): boolean;
318
- };
319
- import type { StandardRecord } from "./aliases.js";
320
- import type { ExternalMCPToolInfo, ExternalMCPToolContext } from "./externalMcp.js";
321
- import type { ElicitationContext, ElicitationType } from "./elicitation.js";
322
- /**
323
- * NeuroLink MCP Tool Type - Standardized tool definition for MCP integration
324
- * Moved from src/lib/mcp/factory.ts
325
- */
326
- export type NeuroLinkMCPTool = {
327
- /** Unique tool identifier for MCP registration and execution */
328
- name: string;
329
- /** Human-readable description of tool functionality */
330
- description: string;
331
- /** Optional category for tool organization and discovery */
332
- category?: string;
333
- /** Optional input schema for parameter validation (Zod or JSON Schema) */
334
- inputSchema?: unknown;
335
- /** Optional output schema for result validation */
336
- outputSchema?: unknown;
337
- /** Implementation status flag for development tracking */
338
- isImplemented?: boolean;
339
- /** Required permissions for tool execution in secured environments */
340
- permissions?: string[];
341
- /** Tool version for compatibility and update management */
342
- version?: string;
343
- /** Additional metadata for tool information and capabilities */
344
- metadata?: Record<string, unknown>;
345
- /**
346
- * Tool execution function with standardized signature
347
- */
348
- execute: (params: unknown, context: NeuroLinkExecutionContext) => Promise<ToolResult>;
349
- };
350
- /**
351
- * NeuroLink MCP Server Type - Standard compatible
352
- * Moved from src/lib/mcp/factory.ts
353
- */
354
- export type NeuroLinkMCPServer = {
355
- id: string;
356
- title: string;
357
- description?: string;
358
- version?: string;
359
- category?: MCPServerDomainCategory;
360
- visibility?: "public" | "private" | "organization";
361
- tools: Record<string, NeuroLinkMCPTool>;
362
- registerTool(tool: NeuroLinkMCPTool): NeuroLinkMCPServer;
363
- metadata?: Record<string, unknown>;
364
- dependencies?: string[];
365
- capabilities?: string[];
366
- };
367
- /**
368
- * MCP Server Configuration for creation
369
- * Moved from src/lib/mcp/factory.ts
370
- */
371
- export type MCPServerConfig = {
372
- id: string;
373
- title: string;
374
- description?: string;
375
- version?: string;
376
- category?: MCPServerDomainCategory;
377
- visibility?: "public" | "private" | "organization";
378
- metadata?: Record<string, unknown>;
379
- dependencies?: string[];
380
- capabilities?: string[];
381
- };
382
- /**
383
- * Discovered MCP server/plugin definition
384
- * Moved from src/lib/mcp/contracts/mcpContract.ts
385
- */
386
- export type DiscoveredMcp<TTools = StandardRecord> = {
387
- metadata: McpMetadata;
388
- tools?: TTools;
389
- capabilities?: string[];
390
- version?: string;
391
- configuration?: Record<string, string | number | boolean>;
392
- [key: string]: unknown;
393
- };
394
- /**
395
- * MCP server metadata
396
- * Moved from src/lib/mcp/contracts/mcpContract.ts
397
- */
398
- export type McpMetadata = {
399
- name: string;
400
- description?: string;
401
- version?: string;
402
- author?: string;
403
- homepage?: string;
404
- repository?: string;
405
- category?: string;
406
- };
407
- /**
408
- * Tool discovery result
409
- * Moved from src/lib/mcp/toolDiscoveryService.ts
410
- */
411
- export type ToolDiscoveryResult = {
412
- /** Whether discovery was successful */
413
- success: boolean;
414
- /** Number of tools discovered */
415
- toolCount: number;
416
- /** Discovered tools */
417
- tools: ExternalMCPToolInfo[];
418
- /** Error message if failed */
419
- error?: string;
420
- /** Discovery duration in milliseconds */
421
- duration: number;
422
- /** Server ID */
423
- serverId: string;
424
- };
425
- /**
426
- * External MCP tool execution options
427
- * Moved from src/lib/mcp/toolDiscoveryService.ts
428
- */
429
- export type ExternalToolExecutionOptions = {
430
- /** Execution timeout in milliseconds */
431
- timeout?: number;
432
- /** Additional context for execution */
433
- context?: Partial<ExternalMCPToolContext>;
434
- /** Whether to validate input parameters */
435
- validateInput?: boolean;
436
- /** Whether to validate output */
437
- validateOutput?: boolean;
438
- };
439
- /**
440
- * Tool validation result
441
- * Moved from src/lib/mcp/toolDiscoveryService.ts
442
- */
443
- export type ToolValidationResult = {
444
- /** Whether the tool is valid */
445
- isValid: boolean;
446
- /** Validation errors */
447
- errors: string[];
448
- /** Validation warnings */
449
- warnings: string[];
450
- /** Tool metadata */
451
- metadata?: {
452
- category?: string;
453
- complexity?: "simple" | "moderate" | "complex";
454
- requiresAuth?: boolean;
455
- isDeprecated?: boolean;
456
- };
457
- };
458
- /**
459
- * Tool registry events
460
- * Moved from src/lib/mcp/toolDiscoveryService.ts
461
- */
462
- export type ToolRegistryEvents = {
463
- toolRegistered: {
464
- serverId: string;
465
- toolName: string;
466
- toolInfo: ExternalMCPToolInfo;
467
- timestamp: Date;
468
- };
469
- toolUnregistered: {
470
- serverId: string;
471
- toolName: string;
472
- timestamp: Date;
473
- };
474
- toolExecuted: {
475
- serverId: string;
476
- toolName: string;
477
- success: boolean;
478
- duration: number;
479
- timestamp: Date;
480
- };
481
- discoveryStarted: {
482
- serverId: string;
483
- timestamp: Date;
484
- };
485
- discoveryCompleted: {
486
- serverId: string;
487
- toolCount: number;
488
- duration: number;
489
- timestamp: Date;
490
- };
491
- discoveryFailed: {
492
- serverId: string;
493
- error: string;
494
- timestamp: Date;
495
- };
496
- };
497
- /**
498
- * Circuit breaker states
499
- * Moved from src/lib/mcp/mcpCircuitBreaker.ts
500
- */
501
- export type CircuitBreakerState = "closed" | "open" | "half-open";
502
- /**
503
- * Circuit breaker configuration
504
- * Moved from src/lib/mcp/mcpCircuitBreaker.ts
505
- */
506
- export type CircuitBreakerConfig = {
507
- /** Number of failures before opening the circuit */
508
- failureThreshold: number;
509
- /** Time to wait before attempting reset (milliseconds) */
510
- resetTimeout: number;
511
- /** Maximum calls allowed in half-open state */
512
- halfOpenMaxCalls: number;
513
- /** Timeout for individual operations (milliseconds) */
514
- operationTimeout: number;
515
- /** Minimum number of calls before calculating failure rate */
516
- minimumCallsBeforeCalculation: number;
517
- /** Window size for calculating failure rate (milliseconds) */
518
- statisticsWindowSize: number;
519
- };
520
- /**
521
- * Circuit breaker statistics
522
- * Moved from src/lib/mcp/mcpCircuitBreaker.ts
523
- */
524
- export type CircuitBreakerStats = {
525
- /** Current state */
526
- state: CircuitBreakerState;
527
- /** Total number of calls */
528
- totalCalls: number;
529
- /** Number of successful calls */
530
- successfulCalls: number;
531
- /** Number of failed calls */
532
- failedCalls: number;
533
- /** Current failure rate (0-1) */
534
- failureRate: number;
535
- /** Calls in current time window */
536
- windowCalls: number;
537
- /** Last state change timestamp */
538
- lastStateChange: Date;
539
- /** Next retry time (for open state) */
540
- nextRetryTime?: Date;
541
- /** Half-open call count */
542
- halfOpenCalls: number;
543
- };
544
- /**
545
- * Circuit breaker events
546
- * Moved from src/lib/mcp/mcpCircuitBreaker.ts
547
- */
548
- export type CircuitBreakerEvents = {
549
- stateChange: {
550
- oldState: CircuitBreakerState;
551
- newState: CircuitBreakerState;
552
- reason: string;
553
- timestamp: Date;
554
- };
555
- callSuccess: {
556
- duration: number;
557
- timestamp: Date;
558
- };
559
- callFailure: {
560
- error: string;
561
- duration: number;
562
- timestamp: Date;
563
- };
564
- circuitOpen: {
565
- failureRate: number;
566
- totalCalls: number;
567
- timestamp: Date;
568
- };
569
- circuitHalfOpen: {
570
- timestamp: Date;
571
- };
572
- circuitClosed: {
573
- timestamp: Date;
574
- };
575
- };
576
- /**
577
- * MCP Registry type with optional methods for maximum flexibility
578
- * Moved from src/lib/mcp/registry.ts
579
- */
580
- export type McpRegistry = {
581
- registerServer?(serverId: string, serverConfig?: unknown, context?: ExecutionContext): Promise<void>;
582
- executeTool?<T = unknown>(toolName: string, args?: unknown, context?: ExecutionContext): Promise<T>;
583
- listTools?(context?: ExecutionContext): Promise<ToolInfo[]>;
584
- };
585
- /**
586
- * MCP client creation result
587
- * Moved from src/lib/mcp/mcpClientFactory.ts
588
- */
589
- export type MCPClientResult = {
590
- /** Whether client creation was successful */
591
- success: boolean;
592
- /** Created client instance */
593
- client?: import("@modelcontextprotocol/sdk/client/index.js").Client;
594
- /** Created transport instance */
595
- transport?: import("@modelcontextprotocol/sdk/shared/transport.js").Transport;
596
- /** Created process (for stdio transport) */
597
- process?: import("child_process").ChildProcess;
598
- /** Error message if failed */
599
- error?: string;
600
- /** Creation duration in milliseconds */
601
- duration: number;
602
- /** Server capabilities reported during handshake */
603
- capabilities?: import("@modelcontextprotocol/sdk/types.js").ClientCapabilities;
604
- };
605
- /**
606
- * Flexible validation result
607
- * Moved from src/lib/mcp/flexibleToolValidator.ts
608
- */
609
- export type FlexibleValidationResult = {
610
- /** Whether validation passed */
611
- isValid: boolean;
612
- /** Validation error message (for simple cases) */
613
- error?: string;
614
- /** Validation warnings */
615
- warnings?: string[];
616
- /** Normalized parameters (if valid) */
617
- normalizedParams?: Record<string, unknown>;
618
- /** Validation metadata */
619
- metadata?: {
620
- validationTime?: number;
621
- validator?: string;
622
- schema?: string;
623
- };
624
- };
625
- /**
626
- * Token storage type for OAuth 2.1 authentication
627
- * Implementations can use in-memory, file-based, or external storage
628
- */
629
- export type TokenStorage = {
630
- /**
631
- * Get stored tokens for a server
632
- * @param serverId - Unique identifier for the MCP server
633
- * @returns Stored tokens or null if not found
634
- */
635
- getTokens(serverId: string): Promise<OAuthTokens | null>;
636
- /**
637
- * Save tokens for a server
638
- * @param serverId - Unique identifier for the MCP server
639
- * @param tokens - OAuth tokens to store
640
- */
641
- saveTokens(serverId: string, tokens: OAuthTokens): Promise<void>;
642
- /**
643
- * Delete stored tokens for a server
644
- * @param serverId - Unique identifier for the MCP server
645
- */
646
- deleteTokens(serverId: string): Promise<void>;
647
- /**
648
- * Check if tokens exist for a server
649
- * @param serverId - Unique identifier for the MCP server
650
- * @returns True if tokens exist
651
- */
652
- hasTokens?(serverId: string): Promise<boolean>;
653
- /**
654
- * Clear all stored tokens
655
- */
656
- clearAll?(): Promise<void>;
657
- };
658
- /**
659
- * OAuth 2.1 configuration for MCP servers
660
- */
661
- export type MCPOAuthConfig = {
662
- /** OAuth client ID */
663
- clientId: string;
664
- /** OAuth client secret (optional for public clients with PKCE) */
665
- clientSecret?: string;
666
- /** Authorization endpoint URL */
667
- authorizationUrl: string;
668
- /** Token endpoint URL */
669
- tokenUrl: string;
670
- /** Redirect URI for OAuth callback */
671
- redirectUrl: string;
672
- /** OAuth scope (space-separated) */
673
- scope?: string;
674
- /** Enable PKCE (Proof Key for Code Exchange) - recommended for OAuth 2.1 */
675
- usePKCE?: boolean;
676
- /** Additional authorization parameters */
677
- additionalParams?: Record<string, string>;
678
- };
679
- /**
680
- * OAuth client information returned to MCP SDK
681
- */
682
- export type OAuthClientInformation = {
683
- clientId: string;
684
- clientSecret?: string;
685
- redirectUri: string;
686
- };
687
- /**
688
- * Authorization URL result from OAuth flow
689
- */
690
- export type AuthorizationUrlResult = {
691
- url: string;
692
- state: string;
693
- codeVerifier?: string;
694
- };
695
- /**
696
- * Token exchange request for OAuth code exchange
697
- */
698
- export type TokenExchangeRequest = {
699
- code: string;
700
- state: string;
701
- codeVerifier?: string;
702
- };
703
- /**
704
- * Token bucket rate limit configuration options for HTTP transport
705
- */
706
- export type TokenBucketRateLimitConfig = {
707
- /** Maximum requests per window */
708
- requestsPerWindow: number;
709
- /** Window size in milliseconds (default: 60000 = 1 minute) */
710
- windowMs: number;
711
- /** Use token bucket algorithm (default: true) */
712
- useTokenBucket: boolean;
713
- /** Token refill rate (tokens per second, for token bucket) */
714
- refillRate: number;
715
- /** Maximum burst size (for token bucket) */
716
- maxBurst: number;
717
- };
718
- /**
719
- * HTTP retry configuration for MCP transport
720
- */
721
- export type HTTPRetryConfig = {
722
- /** Maximum retry attempts (default: 3) */
723
- maxAttempts: number;
724
- /** Initial delay in ms (default: 1000) */
725
- initialDelay: number;
726
- /** Maximum delay in ms (default: 30000) */
727
- maxDelay: number;
728
- /** Backoff multiplier (default: 2) */
729
- backoffMultiplier: number;
730
- /** HTTP status codes that trigger retry */
731
- retryableStatusCodes: number[];
732
- };
733
- /**
734
- * PKCE (Proof Key for Code Exchange) challenge data for OAuth 2.1 authentication
735
- * Used internally by OAuth client providers to generate and store PKCE parameters
736
- */
737
- export type PKCEChallenge = {
738
- /** Random code verifier string (43-128 characters, URL-safe) */
739
- codeVerifier: string;
740
- /** SHA-256 hash of code verifier, base64url encoded */
741
- codeChallenge: string;
742
- /** Challenge method - always "S256" per OAuth 2.1 specification */
743
- codeChallengeMethod: "S256";
744
- };
745
- /**
746
- * Rate limiter statistics for monitoring and debugging HTTP transport rate limiting
747
- * Provides insight into token bucket state and queue status
748
- */
749
- export type RateLimiterStats = {
750
- /** Current number of available tokens */
751
- tokens: number;
752
- /** Maximum burst size (token capacity) */
753
- maxBurst: number;
754
- /** Token refill rate (tokens per second) */
755
- refillRate: number;
756
- /** Number of requests waiting in queue */
757
- queueLength: number;
758
- /** Timestamp of last token refill */
759
- lastRefill: Date;
760
- };
761
- /**
762
- * Token response from OAuth server
763
- * Standard OAuth 2.0/2.1 token endpoint response structure
764
- * Used internally by NeuroLinkOAuthProvider for token exchange and refresh
765
- */
766
- export type TokenResponse = {
767
- /** Access token for API authentication */
768
- access_token: string;
769
- /** Refresh token for obtaining new access tokens (optional) */
770
- refresh_token?: string;
771
- /** Token lifetime in seconds (optional) */
772
- expires_in?: number;
773
- /** Token type (typically "Bearer") */
774
- token_type: string;
775
- /** OAuth scope granted (optional, space-separated) */
776
- scope?: string;
777
- };
778
- /**
779
- * Tool annotation metadata for MCP tools.
780
- * Provides hints to AI models about tool behavior and safety.
781
- */
782
- export type MCPToolAnnotations = {
783
- /** Human-readable title for the tool */
784
- title?: string;
785
- /** Whether the tool only reads data without side effects */
786
- readOnlyHint?: boolean;
787
- /** Whether the tool performs destructive operations */
788
- destructiveHint?: boolean;
789
- /** Whether the tool can be safely retried without side effects */
790
- idempotentHint?: boolean;
791
- /** Whether the tool requires user confirmation before execution */
792
- requiresConfirmation?: boolean;
793
- /** Whether the tool operates on an open world of resources */
794
- openWorldHint?: boolean;
795
- /** Custom tags for categorization and filtering */
796
- tags?: string[];
797
- /** Estimated execution time in milliseconds */
798
- estimatedDuration?: number;
799
- /** Rate limit hint (calls per minute) */
800
- rateLimitHint?: number;
801
- /** Cost hint (arbitrary units for comparison) */
802
- costHint?: number;
803
- /** Complexity level for UI display */
804
- complexity?: "simple" | "medium" | "complex";
805
- /** Whether tool execution should be audited/logged */
806
- auditRequired?: boolean;
807
- /** Security classification for the tool */
808
- securityLevel?: "public" | "internal" | "restricted";
809
- };
810
- /**
811
- * Enhanced tool definition with annotations.
812
- */
813
- export type MCPServerTool = {
814
- name: string;
815
- description: string;
816
- inputSchema?: JsonObject;
817
- outputSchema?: JsonObject;
818
- annotations?: MCPToolAnnotations;
819
- execute: (params: unknown, context?: NeuroLinkExecutionContext) => Promise<ToolResult | unknown>;
820
- metadata?: Record<string, unknown>;
821
- };
822
- /**
823
- * Base configuration for an MCP server.
824
- */
825
- export type MCPServerBaseConfig = {
826
- /** Unique server identifier */
827
- id: string;
828
- /** Human-readable server name */
829
- name: string;
830
- /** Server description */
831
- description?: string;
832
- /** Server version */
833
- version?: string;
834
- /** Server category for organization */
835
- category?: MCPServerCategory;
836
- /** Transport protocol preference */
837
- transport?: MCPTransportType;
838
- /** Custom metadata */
839
- metadata?: Record<string, JsonValue>;
840
- /** Default timeout for tool execution in milliseconds (default: 30000) */
841
- defaultTimeoutMs?: number;
842
- /** Global tool annotations applied to all tools */
843
- defaultAnnotations?: MCPToolAnnotations;
844
- };
845
- /**
846
- * Server lifecycle events.
847
- */
848
- export type MCPServerEvents = {
849
- toolRegistered: {
850
- toolName: string;
851
- tool: MCPServerTool;
852
- };
853
- toolExecuted: {
854
- toolName: string;
855
- duration: number;
856
- success: boolean;
857
- };
858
- toolError: {
859
- toolName: string;
860
- error: Error;
861
- };
862
- serverReady: {
863
- tools: string[];
864
- };
865
- serverStopped: {
866
- reason?: string;
867
- };
868
- };
869
- /**
870
- * Agent definition for MCP exposure
871
- */
872
- export type ExposableAgent = {
873
- /**
874
- * Unique agent identifier
875
- */
876
- id: string;
877
- /**
878
- * Human-readable agent name
879
- */
880
- name: string;
881
- /**
882
- * Agent description for AI models
883
- */
884
- description: string;
885
- /**
886
- * Input schema for the agent
887
- */
888
- inputSchema?: JsonObject;
889
- /**
890
- * Output schema for the agent
891
- */
892
- outputSchema?: JsonObject;
893
- /**
894
- * Agent execution function
895
- */
896
- execute: (input: unknown, context?: NeuroLinkExecutionContext) => Promise<unknown>;
897
- /**
898
- * Additional agent metadata
899
- */
900
- metadata?: {
901
- version?: string;
902
- author?: string;
903
- category?: string;
904
- tags?: string[];
905
- estimatedDuration?: number;
906
- costHint?: number;
907
- };
908
- };
909
- /**
910
- * Workflow definition for MCP exposure
911
- */
912
- export type ExposableWorkflow = {
913
- /**
914
- * Unique workflow identifier
915
- */
916
- id: string;
917
- /**
918
- * Human-readable workflow name
919
- */
920
- name: string;
921
- /**
922
- * Workflow description
923
- */
924
- description: string;
925
- /**
926
- * Workflow steps (for documentation)
927
- */
928
- steps?: Array<{
929
- id: string;
930
- name: string;
931
- description?: string;
932
- }>;
933
- /**
934
- * Input schema for the workflow
935
- */
936
- inputSchema?: JsonObject;
937
- /**
938
- * Output schema for the workflow
939
- */
940
- outputSchema?: JsonObject;
941
- /**
942
- * Workflow execution function
943
- */
944
- execute: (input: unknown, context?: NeuroLinkExecutionContext) => Promise<unknown>;
945
- /**
946
- * Workflow metadata
947
- */
948
- metadata?: {
949
- version?: string;
950
- author?: string;
951
- category?: string;
952
- tags?: string[];
953
- estimatedDuration?: number;
954
- retriable?: boolean;
955
- idempotent?: boolean;
956
- };
957
- };
958
- /**
959
- * Options for exposing agents/workflows as MCP tools
960
- */
961
- export type ExposureOptions = {
962
- /**
963
- * Prefix for tool names
964
- */
965
- prefix?: string;
966
- /**
967
- * Default annotations for all exposed tools
968
- */
969
- defaultAnnotations?: MCPToolAnnotations;
970
- /**
971
- * Whether to include metadata in tool description
972
- */
973
- includeMetadataInDescription?: boolean;
974
- /**
975
- * Custom name transformer
976
- */
977
- nameTransformer?: (name: string) => string;
978
- /**
979
- * Add execution context wrapper
980
- */
981
- wrapWithContext?: boolean;
982
- /**
983
- * Timeout for agent/workflow execution (ms)
984
- */
985
- executionTimeout?: number;
986
- /**
987
- * Enable execution logging
988
- */
989
- enableLogging?: boolean;
990
- };
991
- /**
992
- * Exposure result
993
- */
994
- export type ExposureResult = {
995
- /**
996
- * Generated MCP tool
997
- */
998
- tool: MCPServerTool;
999
- /**
1000
- * Original source type
1001
- */
1002
- sourceType: "agent" | "workflow";
1003
- /**
1004
- * Original source ID
1005
- */
1006
- sourceId: string;
1007
- /**
1008
- * Generated tool name
1009
- */
1010
- toolName: string;
1011
- };
1012
- /**
1013
- * MCP elicitation protocol message types
1014
- */
1015
- export type ElicitationProtocolMessageType = "elicitation/request" | "elicitation/response" | "elicitation/cancel";
1016
- /**
1017
- * Request params type
1018
- */
1019
- export type ElicitationRequestParams = {
1020
- type: ElicitationType;
1021
- message: string;
1022
- toolName: string;
1023
- serverId?: string;
1024
- timeout?: number;
1025
- optional?: boolean;
1026
- defaultValue?: JsonValue;
1027
- options?: Record<string, JsonValue>;
1028
- };
1029
- /**
1030
- * Response params type
1031
- */
1032
- export type ElicitationResponseParams = {
1033
- requestId: string;
1034
- responded: boolean;
1035
- value?: JsonValue;
1036
- cancelled?: boolean;
1037
- timedOut?: boolean;
1038
- error?: string;
1039
- };
1040
- /**
1041
- * Cancel params type
1042
- */
1043
- export type ElicitationCancelParams = {
1044
- requestId: string;
1045
- reason?: string;
1046
- };
1047
- /**
1048
- * Base protocol message structure
1049
- */
1050
- export type ElicitationProtocolMessage = {
1051
- jsonrpc: "2.0";
1052
- id: string;
1053
- method: ElicitationProtocolMessageType;
1054
- params: ElicitationRequestParams | ElicitationResponseParams | ElicitationCancelParams;
1055
- };
1056
- /**
1057
- * Elicitation request protocol message
1058
- */
1059
- export type ElicitationRequestMessage = {
1060
- jsonrpc: "2.0";
1061
- id: string;
1062
- method: "elicitation/request";
1063
- params: ElicitationRequestParams;
1064
- };
1065
- /**
1066
- * Elicitation response protocol message
1067
- */
1068
- export type ElicitationResponseMessage = {
1069
- jsonrpc: "2.0";
1070
- id: string;
1071
- method: "elicitation/response";
1072
- params: ElicitationResponseParams;
1073
- };
1074
- /**
1075
- * Elicitation cancel protocol message
1076
- */
1077
- export type ElicitationCancelMessage = {
1078
- jsonrpc: "2.0";
1079
- id: string;
1080
- method: "elicitation/cancel";
1081
- params: ElicitationCancelParams;
1082
- };
1083
- /**
1084
- * Protocol message union type
1085
- */
1086
- export type ElicitationProtocolPayload = ElicitationRequestMessage | ElicitationResponseMessage | ElicitationCancelMessage;
1087
- /**
1088
- * Protocol handler function type
1089
- */
1090
- export type ElicitationProtocolHandler = (message: ElicitationProtocolPayload) => Promise<ElicitationProtocolPayload | void>;
1091
- /**
1092
- * Protocol adapter configuration
1093
- */
1094
- export type ElicitationProtocolAdapterConfig = {
1095
- manager?: import("../mcp/elicitation/elicitationManager.js").ElicitationManager;
1096
- defaultTimeout?: number;
1097
- enableLogging?: boolean;
1098
- customHandler?: ElicitationProtocolHandler;
1099
- };
1100
- /**
1101
- * Enhanced tool info with annotations
1102
- */
1103
- export type EnhancedToolInfo = ExternalMCPToolInfo & {
1104
- annotations?: MCPToolAnnotations;
1105
- version?: string;
1106
- compatibleWith?: string[];
1107
- aliases?: string[];
1108
- examples?: Array<{
1109
- name: string;
1110
- description: string;
1111
- params: JsonObject;
1112
- }>;
1113
- };
1114
- /**
1115
- * Tool search criteria
1116
- */
1117
- export type ToolSearchCriteria = {
1118
- /**
1119
- * Search by name (partial match)
1120
- */
1121
- name?: string;
1122
- /**
1123
- * Search by description (keyword match)
1124
- */
1125
- description?: string;
1126
- /**
1127
- * Filter by server IDs
1128
- */
1129
- serverIds?: string[];
1130
- /**
1131
- * Filter by category
1132
- */
1133
- category?: string;
1134
- /**
1135
- * Filter by tags
1136
- */
1137
- tags?: string[];
1138
- /**
1139
- * Filter by annotation flags
1140
- */
1141
- annotations?: Partial<MCPToolAnnotations>;
1142
- /**
1143
- * Include unavailable tools
1144
- */
1145
- includeUnavailable?: boolean;
1146
- /**
1147
- * Maximum results
1148
- */
1149
- limit?: number;
1150
- /**
1151
- * Sort by field
1152
- */
1153
- sortBy?: "name" | "calls" | "successRate" | "avgExecutionTime";
1154
- /**
1155
- * Sort direction
1156
- */
1157
- sortDirection?: "asc" | "desc";
1158
- };
1159
- /**
1160
- * Tool search result
1161
- */
1162
- export type ToolSearchResult = {
1163
- tools: EnhancedToolInfo[];
1164
- totalCount: number;
1165
- criteria: ToolSearchCriteria;
1166
- executionTime: number;
1167
- };
1168
- /**
1169
- * Tool compatibility check result
1170
- */
1171
- export type CompatibilityCheckResult = {
1172
- compatible: boolean;
1173
- issues: string[];
1174
- warnings: string[];
1175
- recommendations: string[];
1176
- };
1177
- /**
1178
- * Registry source types
1179
- */
1180
- export type RegistrySourceType = "official" | "npm" | "github" | "custom";
1181
- /**
1182
- * Registry entry for an MCP server
1183
- */
1184
- export type McpRegistryEntry = {
1185
- /**
1186
- * Unique identifier
1187
- */
1188
- id: string;
1189
- /**
1190
- * Server name
1191
- */
1192
- name: string;
1193
- /**
1194
- * Server description
1195
- */
1196
- description: string;
1197
- /**
1198
- * Server version
1199
- */
1200
- version: string;
1201
- /**
1202
- * Author or maintainer
1203
- */
1204
- author?: string;
1205
- /**
1206
- * License
1207
- */
1208
- license?: string;
1209
- /**
1210
- * Homepage URL
1211
- */
1212
- homepage?: string;
1213
- /**
1214
- * Repository URL
1215
- */
1216
- repository?: string;
1217
- /**
1218
- * NPM package name (if applicable)
1219
- */
1220
- npmPackage?: string;
1221
- /**
1222
- * Installation command
1223
- */
1224
- installCommand?: string;
1225
- /**
1226
- * Command to run the server
1227
- */
1228
- command?: string;
1229
- /**
1230
- * Command arguments
1231
- */
1232
- args?: string[];
1233
- /**
1234
- * Required environment variables
1235
- */
1236
- requiredEnvVars?: string[];
1237
- /**
1238
- * Supported transport types
1239
- */
1240
- transports?: MCPTransportType[];
1241
- /**
1242
- * Server categories
1243
- */
1244
- categories?: string[];
1245
- /**
1246
- * Server tags
1247
- */
1248
- tags?: string[];
1249
- /**
1250
- * Tool names provided by the server
1251
- */
1252
- tools?: string[];
1253
- /**
1254
- * Download count (popularity metric)
1255
- */
1256
- downloads?: number;
1257
- /**
1258
- * Star count (if from GitHub)
1259
- */
1260
- stars?: number;
1261
- /**
1262
- * Last updated date
1263
- */
1264
- lastUpdated?: string;
1265
- /**
1266
- * Verification status
1267
- */
1268
- verified?: boolean;
1269
- /**
1270
- * Custom metadata
1271
- */
1272
- metadata?: JsonObject;
1273
- };
1274
- /**
1275
- * Registry configuration
1276
- */
1277
- export type RegistryConfig = {
1278
- /**
1279
- * Registry type
1280
- */
1281
- type: RegistrySourceType;
1282
- /**
1283
- * Registry URL or identifier
1284
- */
1285
- url?: string;
1286
- /**
1287
- * Authentication token
1288
- */
1289
- authToken?: string;
1290
- /**
1291
- * Request timeout in milliseconds
1292
- */
1293
- timeout?: number;
1294
- /**
1295
- * Enable caching
1296
- */
1297
- enableCache?: boolean;
1298
- /**
1299
- * Cache TTL in milliseconds
1300
- */
1301
- cacheTTL?: number;
1302
- };
1303
- /**
1304
- * Search options for registry queries
1305
- */
1306
- export type RegistrySearchOptions = {
1307
- /**
1308
- * Search query (name, description, tags)
1309
- */
1310
- query?: string;
1311
- /**
1312
- * Filter by categories
1313
- */
1314
- categories?: string[];
1315
- /**
1316
- * Filter by tags
1317
- */
1318
- tags?: string[];
1319
- /**
1320
- * Filter by transport type
1321
- */
1322
- transport?: MCPTransportType;
1323
- /**
1324
- * Only verified servers
1325
- */
1326
- verifiedOnly?: boolean;
1327
- /**
1328
- * Sort by field
1329
- */
1330
- sortBy?: "name" | "downloads" | "stars" | "lastUpdated";
1331
- /**
1332
- * Sort direction
1333
- */
1334
- sortDirection?: "asc" | "desc";
1335
- /**
1336
- * Maximum results
1337
- */
1338
- limit?: number;
1339
- /**
1340
- * Offset for pagination
1341
- */
1342
- offset?: number;
1343
- };
1344
- /**
1345
- * Search result
1346
- */
1347
- export type RegistrySearchResult = {
1348
- entries: McpRegistryEntry[];
1349
- totalCount: number;
1350
- page: number;
1351
- pageSize: number;
1352
- hasMore: boolean;
1353
- };
1354
- /**
1355
- * Registry client configuration
1356
- */
1357
- export type MCPRegistryClientConfig = {
1358
- /**
1359
- * Default registries to use
1360
- */
1361
- registries?: RegistryConfig[];
1362
- /**
1363
- * Enable automatic caching
1364
- */
1365
- enableCache?: boolean;
1366
- /**
1367
- * Default cache TTL
1368
- */
1369
- defaultCacheTTL?: number;
1370
- /**
1371
- * Request timeout
1372
- */
1373
- timeout?: number;
1374
- /**
1375
- * User agent string
1376
- */
1377
- userAgent?: string;
1378
- };
1379
- /**
1380
- * Load balancing strategies
1381
- */
1382
- export type LoadBalancingStrategy = "round-robin" | "least-loaded" | "random" | "weighted" | "failover-only";
1383
- /**
1384
- * Server weight for weighted load balancing
1385
- */
1386
- export type ServerWeight = {
1387
- serverId: string;
1388
- weight: number;
1389
- priority: number;
1390
- };
1391
- /**
1392
- * Server group definition
1393
- */
1394
- export type ServerGroup = {
1395
- /**
1396
- * Group identifier
1397
- */
1398
- id: string;
1399
- /**
1400
- * Human-readable name
1401
- */
1402
- name: string;
1403
- /**
1404
- * Description of the group
1405
- */
1406
- description?: string;
1407
- /**
1408
- * Server IDs in this group
1409
- */
1410
- servers: string[];
1411
- /**
1412
- * Load balancing strategy for this group
1413
- */
1414
- strategy: LoadBalancingStrategy;
1415
- /**
1416
- * Weights for weighted strategy
1417
- */
1418
- weights?: ServerWeight[];
1419
- /**
1420
- * Whether to enable health-aware routing
1421
- */
1422
- healthAware?: boolean;
1423
- /**
1424
- * Minimum healthy servers before alerting
1425
- */
1426
- minHealthyServers?: number;
1427
- };
1428
- /**
1429
- * Unified tool entry from multiple servers
1430
- */
1431
- export type UnifiedTool = {
1432
- /**
1433
- * Tool name
1434
- */
1435
- name: string;
1436
- /**
1437
- * Tool description
1438
- */
1439
- description: string;
1440
- /**
1441
- * Servers that provide this tool
1442
- */
1443
- servers: Array<{
1444
- serverId: string;
1445
- serverName: string;
1446
- inputSchema?: JsonObject;
1447
- priority: number;
1448
- }>;
1449
- /**
1450
- * Whether this tool has naming conflicts
1451
- */
1452
- hasConflict: boolean;
1453
- /**
1454
- * Preferred server for this tool
1455
- */
1456
- preferredServerId?: string;
1457
- };
1458
- /**
1459
- * Multi-server manager configuration
1460
- */
1461
- export type MultiServerManagerConfig = {
1462
- /**
1463
- * Default load balancing strategy
1464
- */
1465
- defaultStrategy?: LoadBalancingStrategy;
1466
- /**
1467
- * Enable health-aware routing by default
1468
- */
1469
- healthAwareRouting?: boolean;
1470
- /**
1471
- * Health check interval in milliseconds
1472
- */
1473
- healthCheckInterval?: number;
1474
- /**
1475
- * Maximum retries on failover
1476
- */
1477
- maxFailoverRetries?: number;
1478
- /**
1479
- * Tool namespace separator
1480
- */
1481
- namespaceSeparator?: string;
1482
- /**
1483
- * Enable automatic tool namespace prefixing
1484
- */
1485
- autoNamespace?: boolean;
1486
- /**
1487
- * Conflict resolution strategy.
1488
- * Reserved for future conflict resolution strategy — currently stored but not
1489
- * consumed by any routing or tool-merge logic.
1490
- */
1491
- conflictResolution?: "first-wins" | "last-wins" | "namespace" | "explicit";
1492
- };
1493
- /**
1494
- * MCP Resource definition
1495
- */
1496
- export type MCPResource = {
1497
- /**
1498
- * Unique resource URI
1499
- */
1500
- uri: string;
1501
- /**
1502
- * Human-readable name
1503
- */
1504
- name: string;
1505
- /**
1506
- * Resource description
1507
- */
1508
- description?: string;
1509
- /**
1510
- * MIME type of the resource content
1511
- */
1512
- mimeType?: string;
1513
- /**
1514
- * Resource size in bytes (if known)
1515
- */
1516
- size?: number;
1517
- /**
1518
- * Whether the resource content can change
1519
- */
1520
- dynamic?: boolean;
1521
- /**
1522
- * Resource annotations/metadata
1523
- */
1524
- annotations?: {
1525
- /**
1526
- * Audience description
1527
- */
1528
- audience?: string[];
1529
- /**
1530
- * Priority hint (0-1)
1531
- */
1532
- priority?: number;
1533
- };
1534
- };
1535
- /**
1536
- * Resource content returned when reading a resource
1537
- */
1538
- export type ResourceContent = {
1539
- /**
1540
- * Resource URI
1541
- */
1542
- uri: string;
1543
- /**
1544
- * MIME type
1545
- */
1546
- mimeType?: string;
1547
- /**
1548
- * Text content (for text/* MIME types)
1549
- */
1550
- text?: string;
1551
- /**
1552
- * Binary content as base64 (for non-text MIME types)
1553
- */
1554
- blob?: string;
1555
- };
1556
- /**
1557
- * Resource reader function type
1558
- */
1559
- export type ResourceReader = (uri: string, context?: JsonObject) => Promise<ResourceContent>;
1560
- /**
1561
- * Registered resource with reader
1562
- */
1563
- export type RegisteredResource = MCPResource & {
1564
- reader: ResourceReader;
1565
- };
1566
- /**
1567
- * MCP Prompt definition
1568
- */
1569
- export type MCPPrompt = {
1570
- /**
1571
- * Unique prompt name
1572
- */
1573
- name: string;
1574
- /**
1575
- * Human-readable description
1576
- */
1577
- description?: string;
1578
- /**
1579
- * Prompt arguments schema
1580
- */
1581
- arguments?: Array<{
1582
- /**
1583
- * Argument name
1584
- */
1585
- name: string;
1586
- /**
1587
- * Argument description
1588
- */
1589
- description?: string;
1590
- /**
1591
- * Whether the argument is required
1592
- */
1593
- required?: boolean;
1594
- }>;
1595
- };
1596
- /**
1597
- * Prompt message content
1598
- */
1599
- export type PromptMessage = {
1600
- /**
1601
- * Message role
1602
- */
1603
- role: "user" | "assistant";
1604
- /**
1605
- * Message content
1606
- */
1607
- content: {
1608
- type: "text" | "image" | "resource";
1609
- text?: string;
1610
- data?: string;
1611
- mimeType?: string;
1612
- uri?: string;
1613
- };
1614
- };
1615
- /**
1616
- * Result of getting a prompt
1617
- */
1618
- export type PromptResult = {
1619
- /**
1620
- * Optional description
1621
- */
1622
- description?: string;
1623
- /**
1624
- * Prompt messages
1625
- */
1626
- messages: PromptMessage[];
1627
- };
1628
- /**
1629
- * Prompt generator function type
1630
- */
1631
- export type PromptGenerator = (args: Record<string, JsonValue>, context?: JsonObject) => Promise<PromptResult>;
1632
- /**
1633
- * Registered prompt with generator
1634
- */
1635
- export type RegisteredPrompt = MCPPrompt & {
1636
- generator: PromptGenerator;
1637
- };
1638
- /**
1639
- * Resource subscription callback
1640
- */
1641
- export type ResourceSubscriptionCallback = (uri: string, content: ResourceContent) => void | Promise<void>;
1642
- /**
1643
- * Server capabilities configuration
1644
- */
1645
- export type ServerCapabilitiesConfig = {
1646
- /**
1647
- * Enable resource support
1648
- */
1649
- resources?: boolean;
1650
- /**
1651
- * Enable prompt support
1652
- */
1653
- prompts?: boolean;
1654
- /**
1655
- * Enable resource subscriptions
1656
- */
1657
- resourceSubscriptions?: boolean;
1658
- };
1659
- /**
1660
- * NeuroLink internal tool format
1661
- */
1662
- export type NeuroLinkTool = {
1663
- /**
1664
- * Tool name
1665
- */
1666
- name: string;
1667
- /**
1668
- * Tool description
1669
- */
1670
- description: string;
1671
- /**
1672
- * Input parameters schema
1673
- */
1674
- parameters?: JsonObject;
1675
- /**
1676
- * Tool execution function
1677
- */
1678
- execute: (params: unknown, context?: NeuroLinkExecutionContext) => Promise<ToolResult | unknown>;
1679
- /**
1680
- * Category for organization
1681
- */
1682
- category?: string;
1683
- /**
1684
- * Tags for filtering
1685
- */
1686
- tags?: string[];
1687
- /**
1688
- * Whether the tool is async
1689
- */
1690
- isAsync?: boolean;
1691
- /**
1692
- * Custom metadata
1693
- */
1694
- metadata?: Record<string, JsonValue>;
1695
- };
1696
- /**
1697
- * MCP protocol tool format (from @modelcontextprotocol/sdk)
1698
- */
1699
- export type MCPProtocolTool = {
1700
- /**
1701
- * Tool name
1702
- */
1703
- name: string;
1704
- /**
1705
- * Tool description
1706
- */
1707
- description?: string;
1708
- /**
1709
- * JSON Schema for input
1710
- */
1711
- inputSchema: {
1712
- type: "object";
1713
- properties?: Record<string, JsonObject>;
1714
- required?: string[];
1715
- };
1716
- /**
1717
- * Optional annotations (MCP 2024-11-05+)
1718
- */
1719
- annotations?: {
1720
- title?: string;
1721
- readOnlyHint?: boolean;
1722
- destructiveHint?: boolean;
1723
- idempotentHint?: boolean;
1724
- openWorldHint?: boolean;
1725
- };
1726
- };
1727
- /**
1728
- * Tool converter options
1729
- */
1730
- export type ToolConverterOptions = {
1731
- /**
1732
- * Automatically infer annotations from tool definition
1733
- */
1734
- inferAnnotations?: boolean;
1735
- /**
1736
- * Default annotations to apply
1737
- */
1738
- defaultAnnotations?: MCPToolAnnotations;
1739
- /**
1740
- * Whether to preserve original metadata
1741
- */
1742
- preserveMetadata?: boolean;
1743
- /**
1744
- * Namespace prefix for tool names
1745
- */
1746
- namespacePrefix?: string;
1747
- };
1748
- /**
1749
- * Tool execution context with elicitation support
1750
- */
1751
- export type EnhancedExecutionContext = NeuroLinkExecutionContext & {
1752
- /**
1753
- * Elicitation context for interactive input
1754
- */
1755
- elicitation: ElicitationContext;
1756
- /**
1757
- * Tool metadata
1758
- */
1759
- toolMeta: {
1760
- name: string;
1761
- serverId?: string;
1762
- annotations?: MCPToolAnnotations;
1763
- };
1764
- };
1765
- /**
1766
- * Tool wrapper options
1767
- */
1768
- export type ToolWrapperOptions = {
1769
- /**
1770
- * Elicitation manager to use
1771
- */
1772
- elicitationManager?: import("../mcp/elicitation/elicitationManager.js").ElicitationManager;
1773
- /**
1774
- * Auto-confirm destructive operations
1775
- */
1776
- autoConfirmDestructive?: boolean;
1777
- /**
1778
- * Default timeout for elicitations
1779
- */
1780
- elicitationTimeout?: number;
1781
- /**
1782
- * Enable logging
1783
- */
1784
- enableLogging?: boolean;
1785
- };
1786
- /**
1787
- * Tool execution middleware
1788
- */
1789
- export type ToolMiddleware = (tool: MCPServerTool, params: unknown, context: EnhancedExecutionContext, next: () => Promise<ToolResult | unknown>) => Promise<ToolResult | unknown>;
1790
- /**
1791
- * Batch configuration options
1792
- */
1793
- export type BatchConfig = {
1794
- /**
1795
- * Maximum number of requests to batch together (default: 10)
1796
- */
1797
- maxBatchSize: number;
1798
- /**
1799
- * Maximum time to wait for a full batch in milliseconds (default: 100ms)
1800
- */
1801
- maxWaitMs: number;
1802
- /**
1803
- * Enable parallel execution of batched requests (default: true).
1804
- * Reserved for future parallel batch execution; currently stored but not read.
1805
- */
1806
- enableParallel?: boolean;
1807
- /**
1808
- * Maximum concurrent batches in flight (default: 5)
1809
- */
1810
- maxConcurrentBatches?: number;
1811
- /**
1812
- * Group requests by server ID (default: true)
1813
- */
1814
- groupByServer?: boolean;
1815
- };
1816
- /**
1817
- * Batch execution result
1818
- */
1819
- export type BatchResult<T> = {
1820
- id: string;
1821
- success: boolean;
1822
- result?: T;
1823
- error?: Error;
1824
- executionTime: number;
1825
- };
1826
- /**
1827
- * Batch executor function type
1828
- */
1829
- export type BatchExecutor<T> = (requests: Array<{
1830
- tool: string;
1831
- args: unknown;
1832
- serverId?: string;
1833
- }>) => Promise<Array<{
1834
- success: boolean;
1835
- result?: T;
1836
- error?: Error;
1837
- }>>;
1838
- /**
1839
- * Batcher events
1840
- */
1841
- export type BatcherEvents<T> = {
1842
- batchStarted: {
1843
- batchId: string;
1844
- size: number;
1845
- };
1846
- batchCompleted: {
1847
- batchId: string;
1848
- results: BatchResult<T>[];
1849
- };
1850
- batchFailed: {
1851
- batchId: string;
1852
- error: Error;
1853
- };
1854
- requestQueued: {
1855
- requestId: string;
1856
- queueSize: number;
1857
- };
1858
- flushTriggered: {
1859
- reason: "size" | "timeout" | "manual";
1860
- queueSize: number;
1861
- };
1862
- };
1863
- /**
1864
- * Cache eviction strategy
1865
- */
1866
- export type CacheStrategy = "lru" | "fifo" | "lfu";
1867
- /**
1868
- * Cache configuration options
1869
- */
1870
- export type McpCacheConfig = {
1871
- /**
1872
- * Time-to-live in milliseconds (default: 5 minutes)
1873
- */
1874
- ttl: number;
1875
- /**
1876
- * Maximum number of entries (default: 500)
1877
- */
1878
- maxSize: number;
1879
- /**
1880
- * Eviction strategy (default: 'lru')
1881
- */
1882
- strategy: CacheStrategy;
1883
- /**
1884
- * Enable automatic cleanup of expired entries
1885
- */
1886
- enableAutoCleanup?: boolean;
1887
- /**
1888
- * Cleanup interval in milliseconds (default: 60 seconds)
1889
- */
1890
- cleanupInterval?: number;
1891
- /**
1892
- * Namespace for cache keys (optional)
1893
- */
1894
- namespace?: string;
1895
- };
1896
- /**
1897
- * Cache statistics
1898
- */
1899
- export type CacheStats = {
1900
- hits: number;
1901
- misses: number;
1902
- evictions: number;
1903
- size: number;
1904
- maxSize: number;
1905
- hitRate: number;
1906
- };
1907
- /**
1908
- * Cache events
1909
- */
1910
- export type CacheEvents = {
1911
- hit: {
1912
- key: string;
1913
- value: unknown;
1914
- };
1915
- miss: {
1916
- key: string;
1917
- };
1918
- set: {
1919
- key: string;
1920
- value: unknown;
1921
- ttl: number;
1922
- };
1923
- evict: {
1924
- key: string;
1925
- reason: "expired" | "capacity" | "manual";
1926
- };
1927
- clear: {
1928
- entriesRemoved: number;
1929
- };
1930
- };
1931
- /**
1932
- * Routing strategy types
1933
- */
1934
- export type RoutingStrategy = "round-robin" | "least-loaded" | "capability-based" | "affinity" | "priority" | "random";
1935
- /**
1936
- * Server routing weight configuration
1937
- */
1938
- export type McpServerWeight = {
1939
- serverId: string;
1940
- weight: number;
1941
- capabilities?: string[];
1942
- };
1943
- /**
1944
- * Category to server mapping
1945
- */
1946
- export type CategoryMapping = {
1947
- category: string;
1948
- serverIds: string[];
1949
- priority?: number;
1950
- };
1951
- /**
1952
- * Affinity rule for session-based routing
1953
- */
1954
- export type AffinityRule = {
1955
- key: string;
1956
- serverId: string;
1957
- expiresAt?: number;
1958
- };
1959
- /**
1960
- * Tool Router configuration
1961
- */
1962
- export type ToolRouterConfig = {
1963
- /**
1964
- * Primary routing strategy
1965
- */
1966
- strategy: RoutingStrategy;
1967
- /**
1968
- * Enable session/user affinity for consistent routing
1969
- */
1970
- enableAffinity?: boolean;
1971
- /**
1972
- * Category to server mapping for capability-based routing
1973
- */
1974
- categoryMapping?: Record<string, string[]>;
1975
- /**
1976
- * Server weights for priority-based routing
1977
- */
1978
- serverWeights?: McpServerWeight[];
1979
- /**
1980
- * Fallback strategy if primary fails
1981
- */
1982
- fallbackStrategy?: RoutingStrategy;
1983
- /**
1984
- * Maximum retries for failed routes
1985
- */
1986
- maxRetries?: number;
1987
- /**
1988
- * Health check interval in milliseconds
1989
- */
1990
- healthCheckInterval?: number;
1991
- /**
1992
- * Affinity TTL in milliseconds (default: 30 minutes)
1993
- */
1994
- affinityTtl?: number;
1995
- };
1996
- /**
1997
- * Routing decision result
1998
- */
1999
- export type RoutingDecision = {
2000
- serverId: string;
2001
- strategy: RoutingStrategy;
2002
- confidence: number;
2003
- alternates?: string[];
2004
- reason?: string;
2005
- };
2006
- /**
2007
- * Tool Router events
2008
- */
2009
- export type ToolRouterEvents = {
2010
- routeDecision: {
2011
- toolName: string;
2012
- decision: RoutingDecision;
2013
- };
2014
- routeFailed: {
2015
- toolName: string;
2016
- error: Error;
2017
- attemptedServers: string[];
2018
- };
2019
- affinitySet: {
2020
- key: string;
2021
- serverId: string;
2022
- };
2023
- affinityExpired: {
2024
- key: string;
2025
- };
2026
- healthUpdate: {
2027
- serverId: string;
2028
- healthy: boolean;
2029
- };
2030
- };
2031
- /**
2032
- * MCP Tool type with annotations
2033
- */
2034
- export type MCPTool = ToolInfo & {
2035
- annotations?: MCPToolAnnotations;
2036
- serverId?: string;
2037
- category?: string;
2038
- };
2039
- /** Pending request in the batcher queue. */
2040
- export type PendingRequest<T = unknown> = {
2041
- id: string;
2042
- tool: string;
2043
- args: unknown;
2044
- serverId?: string;
2045
- resolve: (value: T) => void;
2046
- reject: (error: Error) => void;
2047
- addedAt: number;
2048
- };
2049
- /**
2050
- * Cached entry held by ToolCache. Named McpCacheEntry to disambiguate from
2051
- * the response-caching middleware's CacheEntry in server.ts (Rule 9).
2052
- */
2053
- export type McpCacheEntry<T = unknown> = {
2054
- value: T;
2055
- expires: number;
2056
- createdAt: number;
2057
- accessedAt: number;
2058
- accessCount: number;
2059
- key: string;
2060
- };
2061
- /** Runtime metrics tracked per MCP server by MultiServerManager. */
2062
- export type ServerMetrics = {
2063
- activeRequests: number;
2064
- totalRequests: number;
2065
- completedRequests: number;
2066
- averageResponseTime: number;
2067
- errorRate: number;
2068
- lastHealthCheck?: Date;
2069
- isHealthy: boolean;
2070
- };
2071
- /** Synthesized test case produced by the AI workflow test-generator. */
2072
- export type WorkflowTestCase = {
2073
- name: string;
2074
- type: string;
2075
- code: string;
2076
- description: string;
2077
- assertions: number;
2078
- };
2079
- /** Result of the code-refactoring AI workflow. */
2080
- export type RefactoringResult = {
2081
- refactoredCode: string;
2082
- changes: string[];
2083
- improvements: string[];
2084
- metrics: {
2085
- linesReduced: number;
2086
- complexityReduction: number;
2087
- readabilityScore: number;
2088
- };
2089
- };
2090
- /** Result of the AI documentation-generation workflow. */
2091
- export type DocumentationResult = {
2092
- documentation: string;
2093
- sections: string[];
2094
- examples: string[];
2095
- coverage: number;
2096
- };
2097
- /** Result of the AI debugging workflow. */
2098
- export type DebugResult = {
2099
- issues: Array<{
2100
- type: string;
2101
- severity: "low" | "medium" | "high";
2102
- description: string;
2103
- location?: string;
2104
- }>;
2105
- suggestions: string[];
2106
- possibleCauses: string[];
2107
- fixedOutput?: string;
2108
- };
2109
- /** Provider name accepted by the AI analysis MCP tools. */
2110
- export type AiAnalysisProvider = "openai" | "bedrock" | "vertex" | "anthropic" | "google-ai" | "azure" | "huggingface" | "ollama" | "mistral";
2111
- /** Parsed input for the analyze-ai-usage MCP tool. */
2112
- export type AnalyzeUsageParams = {
2113
- sessionId?: string;
2114
- timeRange: "1h" | "24h" | "7d" | "30d";
2115
- provider?: AiAnalysisProvider;
2116
- includeTokenBreakdown: boolean;
2117
- includeCostEstimation: boolean;
2118
- };
2119
- /** Parsed input for the benchmark-provider-performance MCP tool. */
2120
- export type BenchmarkParams = {
2121
- providers?: AiAnalysisProvider[];
2122
- testPrompts?: string[];
2123
- iterations: number;
2124
- metrics: Array<"latency" | "quality" | "cost" | "tokens">;
2125
- maxTokens: number;
2126
- };
2127
- /** Parsed input for the optimize-prompt-parameters MCP tool. */
2128
- export type OptimizeParametersParams = {
2129
- prompt: string;
2130
- provider?: AiAnalysisProvider;
2131
- targetLength?: number;
2132
- style: "creative" | "balanced" | "precise" | "factual";
2133
- optimizeFor: "speed" | "quality" | "cost" | "tokens";
2134
- iterations: number;
2135
- };