@juspay/neurolink 9.54.3 → 9.54.4

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 (1469) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/action/actionExecutor.d.ts +1 -1
  3. package/dist/action/actionInputs.d.ts +1 -1
  4. package/dist/action/githubIntegration.d.ts +1 -1
  5. package/dist/action/index.d.ts +0 -1
  6. package/dist/action/index.js +1 -0
  7. package/dist/adapters/providerImageAdapter.d.ts +1 -1
  8. package/dist/adapters/tts/googleTTSHandler.d.ts +1 -2
  9. package/dist/adapters/tts/googleTTSHandler.js +1 -2
  10. package/dist/adapters/video/directorPipeline.d.ts +1 -1
  11. package/dist/adapters/video/vertexVideoHandler.d.ts +1 -1
  12. package/dist/agent/directTools.d.ts +7 -6
  13. package/dist/artifacts/artifactStore.d.ts +1 -2
  14. package/dist/artifacts/artifactStore.js +1 -0
  15. package/dist/auth/AuthProviderFactory.d.ts +1 -1
  16. package/dist/auth/anthropicOAuth.d.ts +4 -3
  17. package/dist/auth/anthropicOAuth.js +1 -1
  18. package/dist/auth/authContext.d.ts +1 -1
  19. package/dist/auth/errors.d.ts +1 -1
  20. package/dist/auth/index.d.ts +5 -10
  21. package/dist/auth/index.js +8 -2
  22. package/dist/auth/middleware/AuthMiddleware.d.ts +9 -8
  23. package/dist/auth/middleware/rateLimitByUser.d.ts +7 -7
  24. package/dist/auth/providers/BaseAuthProvider.d.ts +2 -2
  25. package/dist/auth/providers/CognitoProvider.d.ts +1 -1
  26. package/dist/auth/providers/KeycloakProvider.d.ts +1 -1
  27. package/dist/auth/providers/KeycloakProvider.js +1 -2
  28. package/dist/auth/providers/auth0.d.ts +1 -1
  29. package/dist/auth/providers/betterAuth.d.ts +1 -1
  30. package/dist/auth/providers/clerk.d.ts +1 -1
  31. package/dist/auth/providers/custom.d.ts +1 -1
  32. package/dist/auth/providers/firebase.d.ts +1 -1
  33. package/dist/auth/providers/jwt.d.ts +1 -1
  34. package/dist/auth/providers/oauth2.d.ts +1 -1
  35. package/dist/auth/providers/supabase.d.ts +1 -1
  36. package/dist/auth/providers/workos.d.ts +1 -1
  37. package/dist/auth/serverBridge.d.ts +1 -1
  38. package/dist/auth/sessionManager.d.ts +1 -27
  39. package/dist/auth/tokenStore.d.ts +1 -1
  40. package/dist/auth/tokenStore.js +1 -1
  41. package/dist/autoresearch/config.d.ts +1 -1
  42. package/dist/autoresearch/config.js +1 -1
  43. package/dist/autoresearch/phasePolicy.d.ts +1 -1
  44. package/dist/autoresearch/promptCompiler.d.ts +1 -1
  45. package/dist/autoresearch/repoPolicy.d.ts +1 -1
  46. package/dist/autoresearch/resultRecorder.d.ts +1 -1
  47. package/dist/autoresearch/runner.d.ts +1 -1
  48. package/dist/autoresearch/stateStore.d.ts +1 -1
  49. package/dist/autoresearch/summaryParser.d.ts +1 -1
  50. package/dist/autoresearch/tools.d.ts +3 -6
  51. package/dist/autoresearch/worker.d.ts +1 -1
  52. package/dist/browser/neurolink.min.js +371 -371
  53. package/dist/cli/commands/authProviders.d.ts +1 -30
  54. package/dist/cli/commands/config.d.ts +2 -2
  55. package/dist/cli/commands/evaluate.js +1 -1
  56. package/dist/cli/loop/conversationSelector.d.ts +1 -2
  57. package/dist/cli/loop/conversationSelector.js +1 -1
  58. package/dist/cli/loop/optionsSchema.d.ts +1 -2
  59. package/dist/cli/utils/completeSetup.d.ts +1 -1
  60. package/dist/cli/utils/interactiveSetup.d.ts +3 -12
  61. package/dist/cli/utils/videoFileUtils.d.ts +2 -1
  62. package/dist/client/aiSdkAdapter.d.ts +8 -9
  63. package/dist/client/aiSdkAdapter.js +6 -1
  64. package/dist/client/auth.d.ts +6 -6
  65. package/dist/client/auth.js +1 -1
  66. package/dist/client/errors.d.ts +5 -6
  67. package/dist/client/errors.js +1 -1
  68. package/dist/client/httpClient.d.ts +25 -26
  69. package/dist/client/httpClient.js +3 -3
  70. package/dist/client/index.d.ts +0 -9
  71. package/dist/client/index.js +1 -1
  72. package/dist/client/interceptors.d.ts +14 -90
  73. package/dist/client/interceptors.js +18 -0
  74. package/dist/client/reactHooks.d.ts +1 -2
  75. package/dist/client/reactHooks.tsx +44 -64
  76. package/dist/client/sseClient.d.ts +6 -47
  77. package/dist/client/streamingClient.d.ts +9 -83
  78. package/dist/client/streamingClient.js +6 -0
  79. package/dist/client/wsClient.d.ts +8 -16
  80. package/dist/config/configManager.d.ts +2 -2
  81. package/dist/config/configManager.js +1 -1
  82. package/dist/config/conversationMemory.d.ts +1 -1
  83. package/dist/constants/index.d.ts +0 -1
  84. package/dist/constants/index.js +1 -0
  85. package/dist/context/budgetChecker.d.ts +1 -2
  86. package/dist/context/budgetChecker.js +1 -2
  87. package/dist/context/contextCompactor.d.ts +1 -3
  88. package/dist/context/contextCompactor.js +1 -2
  89. package/dist/context/effectiveHistory.d.ts +1 -1
  90. package/dist/context/emergencyTruncation.d.ts +1 -1
  91. package/dist/context/fileSummarizationService.d.ts +2 -3
  92. package/dist/context/fileSummarizer.d.ts +1 -2
  93. package/dist/context/fileTokenBudget.d.ts +1 -2
  94. package/dist/context/prompts/summarizationPrompt.d.ts +1 -2
  95. package/dist/context/stages/fileReadDeduplicator.d.ts +1 -3
  96. package/dist/context/stages/slidingWindowTruncator.d.ts +1 -3
  97. package/dist/context/stages/structuredSummarizer.d.ts +1 -3
  98. package/dist/context/stages/toolOutputPruner.d.ts +1 -3
  99. package/dist/context/summarizationEngine.d.ts +1 -1
  100. package/dist/context/toolOutputLimits.d.ts +1 -2
  101. package/dist/context/toolPairRepair.d.ts +1 -3
  102. package/dist/core/analytics.d.ts +1 -1
  103. package/dist/core/baseProvider.d.ts +1 -5
  104. package/dist/core/baseProvider.js +1 -1
  105. package/dist/core/conversationMemoryFactory.d.ts +1 -2
  106. package/dist/core/conversationMemoryInitializer.d.ts +1 -1
  107. package/dist/core/conversationMemoryManager.d.ts +1 -2
  108. package/dist/core/conversationMemoryManager.js +1 -1
  109. package/dist/core/factory.d.ts +1 -3
  110. package/dist/core/infrastructure/baseRegistry.d.ts +2 -1
  111. package/dist/core/infrastructure/index.d.ts +0 -2
  112. package/dist/core/infrastructure/retry.d.ts +2 -7
  113. package/dist/core/modelConfiguration.d.ts +1 -1
  114. package/dist/core/modules/MessageBuilder.d.ts +1 -2
  115. package/dist/core/modules/StreamHandler.d.ts +1 -3
  116. package/dist/core/modules/TelemetryHandler.d.ts +1 -2
  117. package/dist/core/modules/Utilities.d.ts +1 -4
  118. package/dist/core/redisConversationMemoryManager.d.ts +1 -2
  119. package/dist/core/redisConversationMemoryManager.js +1 -1
  120. package/dist/core/serviceRegistry.d.ts +1 -1
  121. package/dist/core/streamAnalytics.d.ts +1 -2
  122. package/dist/evaluation/BatchEvaluator.d.ts +12 -14
  123. package/dist/evaluation/EvaluationAggregator.d.ts +14 -13
  124. package/dist/evaluation/EvaluatorFactory.d.ts +4 -3
  125. package/dist/evaluation/EvaluatorRegistry.d.ts +7 -7
  126. package/dist/evaluation/contextBuilder.d.ts +1 -2
  127. package/dist/evaluation/errors/EvaluationError.d.ts +5 -8
  128. package/dist/evaluation/errors/index.d.ts +1 -1
  129. package/dist/evaluation/hooks/index.d.ts +2 -2
  130. package/dist/evaluation/hooks/langfuseAdapter.d.ts +3 -2
  131. package/dist/evaluation/hooks/observabilityHooks.d.ts +5 -5
  132. package/dist/evaluation/index.d.ts +5 -8
  133. package/dist/evaluation/index.js +3 -3
  134. package/dist/evaluation/pipeline/evaluationPipeline.d.ts +1 -33
  135. package/dist/evaluation/pipeline/index.d.ts +1 -1
  136. package/dist/evaluation/pipeline/pipelineBuilder.d.ts +1 -1
  137. package/dist/evaluation/pipeline/presets.d.ts +1 -1
  138. package/dist/evaluation/pipeline/strategies/batchStrategy.d.ts +7 -6
  139. package/dist/evaluation/pipeline/strategies/index.d.ts +1 -1
  140. package/dist/evaluation/pipeline/strategies/samplingStrategy.d.ts +1 -1
  141. package/dist/evaluation/prompts.d.ts +1 -1
  142. package/dist/evaluation/ragasEvaluator.d.ts +1 -1
  143. package/dist/evaluation/ragasEvaluator.js +1 -2
  144. package/dist/evaluation/reporting/index.d.ts +2 -2
  145. package/dist/evaluation/reporting/metricsCollector.d.ts +5 -5
  146. package/dist/evaluation/reporting/reportGenerator.d.ts +3 -20
  147. package/dist/evaluation/retryManager.d.ts +1 -2
  148. package/dist/evaluation/scorers/baseScorer.d.ts +1 -2
  149. package/dist/evaluation/scorers/customScorerUtils.d.ts +1 -10
  150. package/dist/evaluation/scorers/index.d.ts +1 -1
  151. package/dist/evaluation/scorers/llm/answerRelevancyScorer.d.ts +1 -1
  152. package/dist/evaluation/scorers/llm/baseLLMScorer.d.ts +1 -3
  153. package/dist/evaluation/scorers/llm/biasDetectionScorer.d.ts +1 -1
  154. package/dist/evaluation/scorers/llm/contextPrecisionScorer.d.ts +1 -1
  155. package/dist/evaluation/scorers/llm/contextRelevancyScorer.d.ts +1 -1
  156. package/dist/evaluation/scorers/llm/faithfulnessScorer.d.ts +1 -1
  157. package/dist/evaluation/scorers/llm/hallucinationScorer.d.ts +1 -1
  158. package/dist/evaluation/scorers/llm/promptAlignmentScorer.d.ts +1 -1
  159. package/dist/evaluation/scorers/llm/summarizationScorer.d.ts +1 -1
  160. package/dist/evaluation/scorers/llm/toneConsistencyScorer.d.ts +1 -1
  161. package/dist/evaluation/scorers/llm/toxicityScorer.d.ts +1 -1
  162. package/dist/evaluation/scorers/rule/baseRuleScorer.d.ts +1 -1
  163. package/dist/evaluation/scorers/rule/contentSimilarityScorer.d.ts +4 -3
  164. package/dist/evaluation/scorers/rule/formatScorer.d.ts +5 -4
  165. package/dist/evaluation/scorers/rule/index.d.ts +4 -4
  166. package/dist/evaluation/scorers/rule/keywordCoverageScorer.d.ts +3 -2
  167. package/dist/evaluation/scorers/rule/lengthScorer.d.ts +5 -4
  168. package/dist/evaluation/scorers/scorerBuilder.d.ts +1 -2
  169. package/dist/evaluation/scorers/scorerBuilder.js +1 -1
  170. package/dist/evaluation/scorers/scorerRegistry.d.ts +1 -1
  171. package/dist/evaluation/scoring.d.ts +1 -2
  172. package/dist/evaluation/scoring.js +1 -2
  173. package/dist/factories/providerFactory.d.ts +1 -2
  174. package/dist/features/ppt/constants.d.ts +1 -1
  175. package/dist/features/ppt/contentPlanner.d.ts +1 -2
  176. package/dist/features/ppt/contentPlanner.js +1 -1
  177. package/dist/features/ppt/index.d.ts +2 -17
  178. package/dist/features/ppt/index.js +6 -14
  179. package/dist/features/ppt/pptError.d.ts +38 -0
  180. package/dist/features/ppt/pptError.js +53 -0
  181. package/dist/features/ppt/presentationOrchestrator.d.ts +1 -1
  182. package/dist/features/ppt/presentationOrchestrator.js +2 -3
  183. package/dist/features/ppt/slideGenerator.d.ts +1 -1
  184. package/dist/features/ppt/slideGenerator.js +2 -3
  185. package/dist/features/ppt/slideRenderers.d.ts +1 -1
  186. package/dist/features/ppt/slideTypeInference.d.ts +1 -1
  187. package/dist/features/ppt/utils.d.ts +1 -2
  188. package/dist/features/ppt/utils.js +1 -1
  189. package/dist/files/fileReferenceRegistry.d.ts +1 -2
  190. package/dist/files/fileReferenceRegistry.js +1 -1
  191. package/dist/files/fileTools.d.ts +5 -5
  192. package/dist/files/index.d.ts +1 -2
  193. package/dist/files/index.js +1 -1
  194. package/dist/files/streamingReader.d.ts +1 -1
  195. package/dist/hitl/hitlManager.d.ts +1 -1
  196. package/dist/image-gen/ImageGenService.d.ts +1 -1
  197. package/dist/image-gen/ImageGenService.js +1 -1
  198. package/dist/image-gen/imageGenTools.d.ts +1 -18
  199. package/dist/image-gen/index.d.ts +1 -2
  200. package/dist/image-gen/index.js +1 -1
  201. package/dist/index.d.ts +6 -25
  202. package/dist/index.js +23 -8
  203. package/dist/lib/action/actionExecutor.d.ts +1 -1
  204. package/dist/lib/action/actionInputs.d.ts +1 -1
  205. package/dist/lib/action/githubIntegration.d.ts +1 -1
  206. package/dist/lib/action/index.d.ts +0 -1
  207. package/dist/lib/action/index.js +1 -0
  208. package/dist/lib/adapters/providerImageAdapter.d.ts +1 -1
  209. package/dist/lib/adapters/tts/googleTTSHandler.d.ts +1 -2
  210. package/dist/lib/adapters/tts/googleTTSHandler.js +1 -2
  211. package/dist/lib/adapters/video/directorPipeline.d.ts +1 -1
  212. package/dist/lib/adapters/video/vertexVideoHandler.d.ts +1 -1
  213. package/dist/lib/agent/directTools.d.ts +7 -6
  214. package/dist/lib/artifacts/artifactStore.d.ts +1 -2
  215. package/dist/lib/artifacts/artifactStore.js +1 -0
  216. package/dist/lib/auth/AuthProviderFactory.d.ts +1 -1
  217. package/dist/lib/auth/anthropicOAuth.d.ts +4 -3
  218. package/dist/lib/auth/anthropicOAuth.js +1 -1
  219. package/dist/lib/auth/authContext.d.ts +1 -1
  220. package/dist/lib/auth/errors.d.ts +1 -1
  221. package/dist/lib/auth/index.d.ts +5 -10
  222. package/dist/lib/auth/index.js +8 -2
  223. package/dist/lib/auth/middleware/AuthMiddleware.d.ts +9 -8
  224. package/dist/lib/auth/middleware/rateLimitByUser.d.ts +7 -7
  225. package/dist/lib/auth/providers/BaseAuthProvider.d.ts +2 -2
  226. package/dist/lib/auth/providers/CognitoProvider.d.ts +1 -1
  227. package/dist/lib/auth/providers/KeycloakProvider.d.ts +1 -1
  228. package/dist/lib/auth/providers/KeycloakProvider.js +1 -2
  229. package/dist/lib/auth/providers/auth0.d.ts +1 -1
  230. package/dist/lib/auth/providers/betterAuth.d.ts +1 -1
  231. package/dist/lib/auth/providers/clerk.d.ts +1 -1
  232. package/dist/lib/auth/providers/custom.d.ts +1 -1
  233. package/dist/lib/auth/providers/firebase.d.ts +1 -1
  234. package/dist/lib/auth/providers/jwt.d.ts +1 -1
  235. package/dist/lib/auth/providers/oauth2.d.ts +1 -1
  236. package/dist/lib/auth/providers/supabase.d.ts +1 -1
  237. package/dist/lib/auth/providers/workos.d.ts +1 -1
  238. package/dist/lib/auth/serverBridge.d.ts +1 -1
  239. package/dist/lib/auth/sessionManager.d.ts +1 -27
  240. package/dist/lib/auth/tokenStore.d.ts +1 -1
  241. package/dist/lib/auth/tokenStore.js +1 -1
  242. package/dist/lib/autoresearch/config.d.ts +1 -1
  243. package/dist/lib/autoresearch/config.js +1 -1
  244. package/dist/lib/autoresearch/phasePolicy.d.ts +1 -1
  245. package/dist/lib/autoresearch/promptCompiler.d.ts +1 -1
  246. package/dist/lib/autoresearch/repoPolicy.d.ts +1 -1
  247. package/dist/lib/autoresearch/resultRecorder.d.ts +1 -1
  248. package/dist/lib/autoresearch/runner.d.ts +1 -1
  249. package/dist/lib/autoresearch/stateStore.d.ts +1 -1
  250. package/dist/lib/autoresearch/summaryParser.d.ts +1 -1
  251. package/dist/lib/autoresearch/tools.d.ts +7 -10
  252. package/dist/lib/autoresearch/worker.d.ts +2 -2
  253. package/dist/lib/client/aiSdkAdapter.d.ts +8 -9
  254. package/dist/lib/client/aiSdkAdapter.js +6 -1
  255. package/dist/lib/client/auth.d.ts +6 -6
  256. package/dist/lib/client/auth.js +1 -1
  257. package/dist/lib/client/errors.d.ts +5 -6
  258. package/dist/lib/client/errors.js +1 -1
  259. package/dist/lib/client/httpClient.d.ts +25 -26
  260. package/dist/lib/client/httpClient.js +3 -3
  261. package/dist/lib/client/index.d.ts +0 -9
  262. package/dist/lib/client/index.js +1 -1
  263. package/dist/lib/client/interceptors.d.ts +14 -90
  264. package/dist/lib/client/interceptors.js +18 -0
  265. package/dist/lib/client/reactHooks.d.ts +1 -2
  266. package/dist/lib/client/sseClient.d.ts +6 -47
  267. package/dist/lib/client/streamingClient.d.ts +9 -83
  268. package/dist/lib/client/streamingClient.js +6 -0
  269. package/dist/lib/client/wsClient.d.ts +8 -16
  270. package/dist/lib/config/configManager.d.ts +2 -2
  271. package/dist/lib/config/configManager.js +1 -1
  272. package/dist/lib/config/conversationMemory.d.ts +1 -1
  273. package/dist/lib/constants/index.d.ts +0 -1
  274. package/dist/lib/constants/index.js +1 -0
  275. package/dist/lib/context/budgetChecker.d.ts +1 -2
  276. package/dist/lib/context/budgetChecker.js +1 -2
  277. package/dist/lib/context/contextCompactor.d.ts +1 -3
  278. package/dist/lib/context/contextCompactor.js +1 -2
  279. package/dist/lib/context/effectiveHistory.d.ts +1 -1
  280. package/dist/lib/context/emergencyTruncation.d.ts +1 -1
  281. package/dist/lib/context/fileSummarizationService.d.ts +2 -3
  282. package/dist/lib/context/fileSummarizer.d.ts +1 -2
  283. package/dist/lib/context/fileTokenBudget.d.ts +1 -2
  284. package/dist/lib/context/prompts/summarizationPrompt.d.ts +1 -2
  285. package/dist/lib/context/stages/fileReadDeduplicator.d.ts +1 -3
  286. package/dist/lib/context/stages/slidingWindowTruncator.d.ts +1 -3
  287. package/dist/lib/context/stages/structuredSummarizer.d.ts +1 -3
  288. package/dist/lib/context/stages/toolOutputPruner.d.ts +1 -3
  289. package/dist/lib/context/summarizationEngine.d.ts +1 -1
  290. package/dist/lib/context/toolOutputLimits.d.ts +1 -2
  291. package/dist/lib/context/toolPairRepair.d.ts +1 -3
  292. package/dist/lib/core/analytics.d.ts +1 -1
  293. package/dist/lib/core/baseProvider.d.ts +1 -5
  294. package/dist/lib/core/baseProvider.js +1 -1
  295. package/dist/lib/core/conversationMemoryFactory.d.ts +1 -2
  296. package/dist/lib/core/conversationMemoryInitializer.d.ts +1 -1
  297. package/dist/lib/core/conversationMemoryManager.d.ts +1 -2
  298. package/dist/lib/core/conversationMemoryManager.js +1 -1
  299. package/dist/lib/core/factory.d.ts +1 -3
  300. package/dist/lib/core/infrastructure/baseRegistry.d.ts +2 -1
  301. package/dist/lib/core/infrastructure/index.d.ts +0 -2
  302. package/dist/lib/core/infrastructure/retry.d.ts +2 -7
  303. package/dist/lib/core/modelConfiguration.d.ts +1 -1
  304. package/dist/lib/core/modules/MessageBuilder.d.ts +1 -2
  305. package/dist/lib/core/modules/StreamHandler.d.ts +1 -3
  306. package/dist/lib/core/modules/TelemetryHandler.d.ts +1 -2
  307. package/dist/lib/core/modules/Utilities.d.ts +1 -4
  308. package/dist/lib/core/redisConversationMemoryManager.d.ts +1 -2
  309. package/dist/lib/core/redisConversationMemoryManager.js +1 -1
  310. package/dist/lib/core/serviceRegistry.d.ts +1 -1
  311. package/dist/lib/core/streamAnalytics.d.ts +1 -2
  312. package/dist/lib/evaluation/BatchEvaluator.d.ts +12 -14
  313. package/dist/lib/evaluation/EvaluationAggregator.d.ts +14 -13
  314. package/dist/lib/evaluation/EvaluatorFactory.d.ts +4 -3
  315. package/dist/lib/evaluation/EvaluatorRegistry.d.ts +7 -7
  316. package/dist/lib/evaluation/contextBuilder.d.ts +1 -2
  317. package/dist/lib/evaluation/errors/EvaluationError.d.ts +5 -8
  318. package/dist/lib/evaluation/errors/index.d.ts +1 -1
  319. package/dist/lib/evaluation/hooks/index.d.ts +2 -2
  320. package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +3 -2
  321. package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +5 -5
  322. package/dist/lib/evaluation/index.d.ts +5 -8
  323. package/dist/lib/evaluation/index.js +3 -3
  324. package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +1 -33
  325. package/dist/lib/evaluation/pipeline/index.d.ts +1 -1
  326. package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +1 -1
  327. package/dist/lib/evaluation/pipeline/presets.d.ts +1 -1
  328. package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +7 -6
  329. package/dist/lib/evaluation/pipeline/strategies/index.d.ts +1 -1
  330. package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +1 -1
  331. package/dist/lib/evaluation/prompts.d.ts +1 -1
  332. package/dist/lib/evaluation/ragasEvaluator.d.ts +1 -1
  333. package/dist/lib/evaluation/ragasEvaluator.js +1 -2
  334. package/dist/lib/evaluation/reporting/index.d.ts +2 -2
  335. package/dist/lib/evaluation/reporting/metricsCollector.d.ts +5 -5
  336. package/dist/lib/evaluation/reporting/reportGenerator.d.ts +3 -20
  337. package/dist/lib/evaluation/retryManager.d.ts +1 -2
  338. package/dist/lib/evaluation/scorers/baseScorer.d.ts +1 -2
  339. package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +1 -10
  340. package/dist/lib/evaluation/scorers/index.d.ts +1 -1
  341. package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +1 -1
  342. package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +1 -3
  343. package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +1 -1
  344. package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +1 -1
  345. package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +1 -1
  346. package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +1 -1
  347. package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +1 -1
  348. package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +1 -1
  349. package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +1 -1
  350. package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +1 -1
  351. package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +1 -1
  352. package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +1 -1
  353. package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +4 -3
  354. package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +5 -4
  355. package/dist/lib/evaluation/scorers/rule/index.d.ts +4 -4
  356. package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +3 -2
  357. package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +5 -4
  358. package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +1 -2
  359. package/dist/lib/evaluation/scorers/scorerBuilder.js +1 -1
  360. package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +1 -1
  361. package/dist/lib/evaluation/scoring.d.ts +1 -2
  362. package/dist/lib/evaluation/scoring.js +1 -2
  363. package/dist/lib/factories/providerFactory.d.ts +1 -2
  364. package/dist/lib/features/ppt/constants.d.ts +1 -1
  365. package/dist/lib/features/ppt/contentPlanner.d.ts +1 -2
  366. package/dist/lib/features/ppt/contentPlanner.js +1 -1
  367. package/dist/lib/features/ppt/index.d.ts +2 -17
  368. package/dist/lib/features/ppt/index.js +6 -14
  369. package/dist/lib/features/ppt/pptError.d.ts +38 -0
  370. package/dist/lib/features/ppt/pptError.js +54 -0
  371. package/dist/lib/features/ppt/presentationOrchestrator.d.ts +1 -1
  372. package/dist/lib/features/ppt/presentationOrchestrator.js +2 -3
  373. package/dist/lib/features/ppt/slideGenerator.d.ts +1 -1
  374. package/dist/lib/features/ppt/slideGenerator.js +2 -3
  375. package/dist/lib/features/ppt/slideRenderers.d.ts +1 -1
  376. package/dist/lib/features/ppt/slideTypeInference.d.ts +1 -1
  377. package/dist/lib/features/ppt/utils.d.ts +1 -2
  378. package/dist/lib/features/ppt/utils.js +1 -1
  379. package/dist/lib/files/fileReferenceRegistry.d.ts +1 -2
  380. package/dist/lib/files/fileReferenceRegistry.js +1 -1
  381. package/dist/lib/files/fileTools.d.ts +5 -5
  382. package/dist/lib/files/index.d.ts +1 -2
  383. package/dist/lib/files/index.js +1 -1
  384. package/dist/lib/files/streamingReader.d.ts +1 -1
  385. package/dist/lib/hitl/hitlManager.d.ts +1 -1
  386. package/dist/lib/image-gen/ImageGenService.d.ts +1 -1
  387. package/dist/lib/image-gen/ImageGenService.js +1 -1
  388. package/dist/lib/image-gen/imageGenTools.d.ts +1 -18
  389. package/dist/lib/image-gen/index.d.ts +1 -2
  390. package/dist/lib/image-gen/index.js +1 -1
  391. package/dist/lib/index.d.ts +6 -25
  392. package/dist/lib/index.js +23 -8
  393. package/dist/lib/mcp/agentExposure.d.ts +1 -146
  394. package/dist/lib/mcp/auth/oauthClientProvider.d.ts +1 -1
  395. package/dist/lib/mcp/auth/tokenStorage.d.ts +1 -1
  396. package/dist/lib/mcp/batching/index.d.ts +0 -10
  397. package/dist/lib/mcp/batching/index.js +0 -9
  398. package/dist/lib/mcp/batching/requestBatcher.d.ts +1 -73
  399. package/dist/lib/mcp/caching/index.d.ts +0 -10
  400. package/dist/lib/mcp/caching/index.js +0 -9
  401. package/dist/lib/mcp/caching/toolCache.d.ts +6 -73
  402. package/dist/lib/mcp/elicitation/elicitationManager.d.ts +1 -1
  403. package/dist/lib/mcp/elicitation/index.d.ts +0 -10
  404. package/dist/lib/mcp/elicitation/index.js +0 -9
  405. package/dist/lib/mcp/elicitationProtocol.d.ts +1 -90
  406. package/dist/lib/mcp/enhancedToolDiscovery.d.ts +2 -82
  407. package/dist/lib/mcp/enhancedToolDiscovery.js +1 -1
  408. package/dist/lib/mcp/externalServerManager.d.ts +1 -5
  409. package/dist/lib/mcp/factory.d.ts +1 -1
  410. package/dist/lib/mcp/flexibleToolValidator.d.ts +1 -1
  411. package/dist/lib/mcp/httpRateLimiter.d.ts +6 -6
  412. package/dist/lib/mcp/httpRateLimiter.js +1 -2
  413. package/dist/lib/mcp/httpRetryHandler.d.ts +1 -1
  414. package/dist/lib/mcp/httpRetryHandler.js +1 -2
  415. package/dist/lib/mcp/index.d.ts +1 -15
  416. package/dist/lib/mcp/index.js +7 -0
  417. package/dist/lib/mcp/mcpCircuitBreaker.d.ts +2 -2
  418. package/dist/lib/mcp/mcpCircuitBreaker.js +2 -2
  419. package/dist/lib/mcp/mcpClientFactory.d.ts +1 -2
  420. package/dist/lib/mcp/mcpClientFactory.js +2 -3
  421. package/dist/lib/mcp/mcpOutputNormalizer.d.ts +1 -3
  422. package/dist/lib/mcp/mcpOutputNormalizer.js +1 -0
  423. package/dist/lib/mcp/mcpRegistryClient.d.ts +13 -216
  424. package/dist/lib/mcp/mcpServerBase.d.ts +1 -66
  425. package/dist/lib/mcp/mcpServerBase.js +3 -0
  426. package/dist/lib/mcp/multiServerManager.d.ts +1 -116
  427. package/dist/lib/mcp/registry.d.ts +1 -3
  428. package/dist/lib/mcp/routing/index.d.ts +0 -10
  429. package/dist/lib/mcp/routing/index.js +0 -9
  430. package/dist/lib/mcp/routing/toolRouter.d.ts +1 -110
  431. package/dist/lib/mcp/serverCapabilities.d.ts +1 -167
  432. package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +1 -1
  433. package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +1 -1
  434. package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +1 -1
  435. package/dist/lib/mcp/toolAnnotations.d.ts +1 -98
  436. package/dist/lib/mcp/toolConverter.d.ts +1 -92
  437. package/dist/lib/mcp/toolDiscoveryService.d.ts +1 -3
  438. package/dist/lib/mcp/toolIntegration.d.ts +1 -45
  439. package/dist/lib/mcp/toolRegistry.d.ts +1 -3
  440. package/dist/lib/memory/hippocampusInitializer.d.ts +0 -3
  441. package/dist/lib/memory/memoryRetrievalTools.d.ts +1 -1
  442. package/dist/lib/memory/memoryRetrievalTools.js +1 -2
  443. package/dist/lib/middleware/builtin/analytics.d.ts +1 -1
  444. package/dist/lib/middleware/builtin/autoEvaluation.d.ts +1 -1
  445. package/dist/lib/middleware/builtin/guardrails.d.ts +1 -2
  446. package/dist/lib/middleware/builtin/lifecycle.d.ts +1 -1
  447. package/dist/lib/middleware/factory.d.ts +1 -1
  448. package/dist/lib/middleware/index.d.ts +0 -2
  449. package/dist/lib/middleware/index.js +1 -0
  450. package/dist/lib/middleware/registry.d.ts +1 -1
  451. package/dist/lib/middleware/utils/guardrailsUtils.d.ts +1 -1
  452. package/dist/lib/models/anthropicModels.d.ts +2 -2
  453. package/dist/lib/models/anthropicModels.js +1 -1
  454. package/dist/lib/models/modelRegistry.d.ts +1 -2
  455. package/dist/lib/models/modelRegistry.js +1 -1
  456. package/dist/lib/models/modelResolver.d.ts +1 -2
  457. package/dist/lib/neurolink.d.ts +15 -30
  458. package/dist/lib/neurolink.js +3 -5
  459. package/dist/lib/observability/exporterRegistry.d.ts +1 -1
  460. package/dist/lib/observability/exporters/arizeExporter.d.ts +1 -1
  461. package/dist/lib/observability/exporters/baseExporter.d.ts +1 -1
  462. package/dist/lib/observability/exporters/braintrustExporter.d.ts +1 -1
  463. package/dist/lib/observability/exporters/datadogExporter.d.ts +1 -1
  464. package/dist/lib/observability/exporters/datadogExporter.js +1 -1
  465. package/dist/lib/observability/exporters/laminarExporter.d.ts +1 -1
  466. package/dist/lib/observability/exporters/laminarExporter.js +1 -1
  467. package/dist/lib/observability/exporters/langfuseExporter.d.ts +1 -1
  468. package/dist/lib/observability/exporters/langfuseExporter.js +1 -1
  469. package/dist/lib/observability/exporters/langsmithExporter.d.ts +1 -1
  470. package/dist/lib/observability/exporters/otelExporter.d.ts +1 -1
  471. package/dist/lib/observability/exporters/posthogExporter.d.ts +1 -1
  472. package/dist/lib/observability/exporters/posthogExporter.js +1 -1
  473. package/dist/lib/observability/exporters/sentryExporter.d.ts +1 -1
  474. package/dist/lib/observability/exporters/sentryExporter.js +1 -1
  475. package/dist/lib/observability/index.d.ts +6 -8
  476. package/dist/lib/observability/index.js +1 -1
  477. package/dist/lib/observability/metricsAggregator.d.ts +4 -108
  478. package/dist/lib/observability/metricsAggregator.js +0 -4
  479. package/dist/lib/observability/otelBridge.d.ts +2 -2
  480. package/dist/lib/observability/otelBridge.js +1 -1
  481. package/dist/lib/observability/retryPolicy.d.ts +1 -27
  482. package/dist/lib/observability/sampling/index.d.ts +1 -1
  483. package/dist/lib/observability/sampling/samplers.d.ts +1 -3
  484. package/dist/lib/observability/sampling/samplers.js +1 -1
  485. package/dist/lib/observability/spanProcessor.d.ts +1 -2
  486. package/dist/lib/observability/tokenTracker.d.ts +3 -41
  487. package/dist/lib/observability/utils/safeMetadata.d.ts +1 -1
  488. package/dist/lib/observability/utils/spanSerializer.d.ts +1 -1
  489. package/dist/lib/observability/utils/spanSerializer.js +1 -1
  490. package/dist/lib/processors/archive/ArchiveProcessor.d.ts +3 -44
  491. package/dist/lib/processors/archive/ArchiveProcessor.js +3 -0
  492. package/dist/lib/processors/archive/index.d.ts +1 -1
  493. package/dist/lib/processors/archive/index.js +1 -0
  494. package/dist/lib/processors/base/BaseFileProcessor.d.ts +6 -6
  495. package/dist/lib/processors/base/BaseFileProcessor.js +1 -1
  496. package/dist/lib/processors/base/index.d.ts +1 -2
  497. package/dist/lib/processors/base/index.js +4 -1
  498. package/dist/lib/processors/cli/fileProcessorCli.d.ts +1 -40
  499. package/dist/lib/processors/cli/fileProcessorCli.js +3 -0
  500. package/dist/lib/processors/cli/index.d.ts +0 -1
  501. package/dist/lib/processors/cli/index.js +3 -0
  502. package/dist/lib/processors/code/ConfigProcessor.d.ts +2 -4
  503. package/dist/lib/processors/code/ConfigProcessor.js +4 -0
  504. package/dist/lib/processors/code/SourceCodeProcessor.d.ts +2 -4
  505. package/dist/lib/processors/code/SourceCodeProcessor.js +4 -0
  506. package/dist/lib/processors/code/index.d.ts +2 -2
  507. package/dist/lib/processors/code/index.js +6 -2
  508. package/dist/lib/processors/config/fileTypes.d.ts +0 -20
  509. package/dist/lib/processors/config/fileTypes.js +3 -0
  510. package/dist/lib/processors/config/index.d.ts +4 -4
  511. package/dist/lib/processors/config/index.js +10 -3
  512. package/dist/lib/processors/config/languageMap.d.ts +0 -4
  513. package/dist/lib/processors/config/languageMap.js +3 -0
  514. package/dist/lib/processors/config/mimeTypes.d.ts +0 -18
  515. package/dist/lib/processors/config/mimeTypes.js +3 -0
  516. package/dist/lib/processors/config/sizeLimits.d.ts +0 -8
  517. package/dist/lib/processors/config/sizeLimits.js +3 -0
  518. package/dist/lib/processors/data/JsonProcessor.d.ts +2 -4
  519. package/dist/lib/processors/data/JsonProcessor.js +2 -0
  520. package/dist/lib/processors/data/XmlProcessor.d.ts +3 -5
  521. package/dist/lib/processors/data/XmlProcessor.js +4 -0
  522. package/dist/lib/processors/data/YamlProcessor.d.ts +3 -5
  523. package/dist/lib/processors/data/YamlProcessor.js +2 -0
  524. package/dist/lib/processors/data/index.d.ts +3 -3
  525. package/dist/lib/processors/data/index.js +9 -3
  526. package/dist/lib/processors/document/ExcelProcessor.d.ts +3 -5
  527. package/dist/lib/processors/document/ExcelProcessor.js +2 -0
  528. package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +2 -4
  529. package/dist/lib/processors/document/OpenDocumentProcessor.js +1 -0
  530. package/dist/lib/processors/document/RtfProcessor.d.ts +2 -4
  531. package/dist/lib/processors/document/RtfProcessor.js +2 -0
  532. package/dist/lib/processors/document/WordProcessor.d.ts +3 -5
  533. package/dist/lib/processors/document/WordProcessor.js +2 -0
  534. package/dist/lib/processors/document/index.d.ts +4 -4
  535. package/dist/lib/processors/document/index.js +4 -1
  536. package/dist/lib/processors/errors/FileErrorCode.d.ts +3 -15
  537. package/dist/lib/processors/errors/errorHelpers.d.ts +2 -2
  538. package/dist/lib/processors/errors/errorHelpers.js +1 -1
  539. package/dist/lib/processors/errors/errorSerializer.d.ts +3 -2
  540. package/dist/lib/processors/errors/index.d.ts +3 -3
  541. package/dist/lib/processors/index.d.ts +7 -10
  542. package/dist/lib/processors/index.js +11 -2
  543. package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +2 -70
  544. package/dist/lib/processors/integration/FileProcessorIntegration.js +6 -0
  545. package/dist/lib/processors/integration/index.d.ts +0 -1
  546. package/dist/lib/processors/integration/index.js +3 -0
  547. package/dist/lib/processors/markup/HtmlProcessor.d.ts +2 -4
  548. package/dist/lib/processors/markup/HtmlProcessor.js +2 -0
  549. package/dist/lib/processors/markup/MarkdownProcessor.d.ts +2 -4
  550. package/dist/lib/processors/markup/MarkdownProcessor.js +4 -0
  551. package/dist/lib/processors/markup/SvgProcessor.d.ts +2 -4
  552. package/dist/lib/processors/markup/SvgProcessor.js +4 -0
  553. package/dist/lib/processors/markup/TextProcessor.d.ts +2 -4
  554. package/dist/lib/processors/markup/TextProcessor.js +2 -0
  555. package/dist/lib/processors/markup/index.d.ts +4 -4
  556. package/dist/lib/processors/markup/index.js +12 -4
  557. package/dist/lib/processors/media/AudioProcessor.d.ts +3 -64
  558. package/dist/lib/processors/media/AudioProcessor.js +3 -0
  559. package/dist/lib/processors/media/VideoProcessor.d.ts +3 -48
  560. package/dist/lib/processors/media/VideoProcessor.js +3 -0
  561. package/dist/lib/processors/media/index.d.ts +0 -1
  562. package/dist/lib/processors/media/index.js +3 -0
  563. package/dist/lib/processors/registry/ProcessorRegistry.d.ts +2 -3
  564. package/dist/lib/processors/registry/ProcessorRegistry.js +1 -1
  565. package/dist/lib/processors/registry/index.d.ts +1 -11
  566. package/dist/lib/processors/registry/index.js +2 -9
  567. package/dist/lib/providers/amazonBedrock.d.ts +1 -2
  568. package/dist/lib/providers/amazonBedrock.js +1 -1
  569. package/dist/lib/providers/amazonSagemaker.d.ts +1 -1
  570. package/dist/lib/providers/anthropic.d.ts +2 -7
  571. package/dist/lib/providers/anthropic.js +3 -1
  572. package/dist/lib/providers/anthropicBaseProvider.d.ts +1 -1
  573. package/dist/lib/providers/anthropicBaseProvider.js +1 -1
  574. package/dist/lib/providers/azureOpenai.d.ts +1 -2
  575. package/dist/lib/providers/googleAiStudio.d.ts +1 -3
  576. package/dist/lib/providers/googleAiStudio.js +3 -2
  577. package/dist/lib/providers/googleNativeGemini3.d.ts +1 -2
  578. package/dist/lib/providers/googleVertex.d.ts +1 -3
  579. package/dist/lib/providers/googleVertex.js +3 -3
  580. package/dist/lib/providers/huggingFace.d.ts +1 -2
  581. package/dist/lib/providers/litellm.d.ts +1 -1
  582. package/dist/lib/providers/litellm.js +3 -2
  583. package/dist/lib/providers/mistral.d.ts +1 -3
  584. package/dist/lib/providers/ollama.d.ts +1 -2
  585. package/dist/lib/providers/ollama.js +1 -1
  586. package/dist/lib/providers/openAI.d.ts +1 -2
  587. package/dist/lib/providers/openAI.js +1 -1
  588. package/dist/lib/providers/openRouter.d.ts +1 -1
  589. package/dist/lib/providers/openaiCompatible.d.ts +1 -2
  590. package/dist/lib/providers/providerTypeUtils.d.ts +1 -1
  591. package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +1 -1
  592. package/dist/lib/providers/sagemaker/client.d.ts +1 -2
  593. package/dist/lib/providers/sagemaker/config.d.ts +1 -1
  594. package/dist/lib/providers/sagemaker/detection.d.ts +4 -27
  595. package/dist/lib/providers/sagemaker/diagnostics.d.ts +3 -2
  596. package/dist/lib/providers/sagemaker/errors.d.ts +1 -1
  597. package/dist/lib/providers/sagemaker/index.d.ts +0 -1
  598. package/dist/lib/providers/sagemaker/index.js +1 -0
  599. package/dist/lib/providers/sagemaker/language-model.d.ts +3 -4
  600. package/dist/lib/providers/sagemaker/parsers.d.ts +1 -26
  601. package/dist/lib/providers/sagemaker/streaming.d.ts +1 -1
  602. package/dist/lib/providers/sagemaker/streaming.js +1 -1
  603. package/dist/lib/providers/sagemaker/structured-parser.d.ts +1 -1
  604. package/dist/lib/providers/sagemaker/structured-parser.js +1 -1
  605. package/dist/lib/proxy/cloaking/index.d.ts +0 -1
  606. package/dist/lib/proxy/cloaking/index.js +1 -0
  607. package/dist/lib/proxy/proxyEnv.d.ts +3 -3
  608. package/dist/lib/proxy/proxyPaths.d.ts +1 -10
  609. package/dist/lib/proxy/proxyTracer.d.ts +0 -1
  610. package/dist/lib/proxy/quietDetector.d.ts +3 -2
  611. package/dist/lib/proxy/rawStreamCapture.d.ts +3 -2
  612. package/dist/lib/proxy/sseInterceptor.d.ts +5 -4
  613. package/dist/lib/proxy/updateChecker.d.ts +3 -2
  614. package/dist/lib/proxy/updateState.d.ts +5 -4
  615. package/dist/lib/rag/ChunkerFactory.d.ts +1 -1
  616. package/dist/lib/rag/ChunkerRegistry.d.ts +1 -1
  617. package/dist/lib/rag/chunkers/BaseChunker.d.ts +1 -1
  618. package/dist/lib/rag/chunkers/CharacterChunker.d.ts +1 -1
  619. package/dist/lib/rag/chunkers/HTMLChunker.d.ts +1 -1
  620. package/dist/lib/rag/chunkers/JSONChunker.d.ts +1 -1
  621. package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +1 -1
  622. package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +1 -1
  623. package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +1 -1
  624. package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +1 -1
  625. package/dist/lib/rag/chunkers/SentenceChunker.d.ts +1 -1
  626. package/dist/lib/rag/chunkers/TokenChunker.d.ts +1 -1
  627. package/dist/lib/rag/chunking/characterChunker.d.ts +1 -1
  628. package/dist/lib/rag/chunking/chunkerRegistry.d.ts +2 -2
  629. package/dist/lib/rag/chunking/htmlChunker.d.ts +1 -1
  630. package/dist/lib/rag/chunking/jsonChunker.d.ts +1 -1
  631. package/dist/lib/rag/chunking/latexChunker.d.ts +1 -1
  632. package/dist/lib/rag/chunking/markdownChunker.d.ts +1 -1
  633. package/dist/lib/rag/chunking/recursiveChunker.d.ts +1 -1
  634. package/dist/lib/rag/chunking/semanticChunker.d.ts +1 -1
  635. package/dist/lib/rag/chunking/sentenceChunker.d.ts +1 -1
  636. package/dist/lib/rag/chunking/tokenChunker.d.ts +1 -1
  637. package/dist/lib/rag/document/MDocument.d.ts +1 -1
  638. package/dist/lib/rag/document/index.d.ts +1 -1
  639. package/dist/lib/rag/document/loaders.d.ts +1 -6
  640. package/dist/lib/rag/errors/RAGError.d.ts +2 -1
  641. package/dist/lib/rag/errors/index.d.ts +1 -1
  642. package/dist/lib/rag/graphRag/graphRAG.d.ts +1 -1
  643. package/dist/lib/rag/index.d.ts +8 -8
  644. package/dist/lib/rag/index.js +1 -1
  645. package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +1 -5
  646. package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +1 -1
  647. package/dist/lib/rag/metadata/index.d.ts +1 -1
  648. package/dist/lib/rag/metadata/metadataExtractor.d.ts +1 -1
  649. package/dist/lib/rag/pipeline/RAGPipeline.d.ts +1 -8
  650. package/dist/lib/rag/pipeline/RAGPipeline.js +1 -1
  651. package/dist/lib/rag/pipeline/contextAssembly.d.ts +1 -5
  652. package/dist/lib/rag/pipeline/index.d.ts +2 -2
  653. package/dist/lib/rag/pipeline/index.js +1 -1
  654. package/dist/lib/rag/ragIntegration.d.ts +1 -3
  655. package/dist/lib/rag/reranker/RerankerFactory.d.ts +1 -6
  656. package/dist/lib/rag/reranker/RerankerFactory.js +2 -2
  657. package/dist/lib/rag/reranker/RerankerRegistry.d.ts +1 -1
  658. package/dist/lib/rag/reranker/index.d.ts +1 -1
  659. package/dist/lib/rag/reranker/reranker.d.ts +1 -2
  660. package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -4
  661. package/dist/lib/rag/resilience/RetryHandler.d.ts +1 -2
  662. package/dist/lib/rag/resilience/index.d.ts +2 -2
  663. package/dist/lib/rag/retrieval/hybridSearch.d.ts +1 -4
  664. package/dist/lib/rag/retrieval/hybridSearch.js +5 -1
  665. package/dist/lib/rag/retrieval/index.d.ts +2 -2
  666. package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +1 -3
  667. package/dist/lib/rag/retrieval/vectorQueryTool.js +5 -1
  668. package/dist/lib/sdk/toolRegistration.d.ts +3 -5
  669. package/dist/lib/server/abstract/baseServerAdapter.d.ts +1 -1
  670. package/dist/lib/server/abstract/baseServerAdapter.js +1 -2
  671. package/dist/lib/server/adapters/expressAdapter.d.ts +1 -1
  672. package/dist/lib/server/adapters/fastifyAdapter.d.ts +1 -1
  673. package/dist/lib/server/adapters/honoAdapter.d.ts +1 -1
  674. package/dist/lib/server/adapters/koaAdapter.d.ts +1 -1
  675. package/dist/lib/server/errors.d.ts +1 -1
  676. package/dist/lib/server/errors.js +1 -1
  677. package/dist/lib/server/factory/serverAdapterFactory.d.ts +1 -1
  678. package/dist/lib/server/index.d.ts +10 -12
  679. package/dist/lib/server/index.js +14 -3
  680. package/dist/lib/server/middleware/abortSignal.d.ts +3 -2
  681. package/dist/lib/server/middleware/auth.d.ts +7 -49
  682. package/dist/lib/server/middleware/auth.js +3 -0
  683. package/dist/lib/server/middleware/cache.d.ts +3 -54
  684. package/dist/lib/server/middleware/cache.js +6 -0
  685. package/dist/lib/server/middleware/common.d.ts +1 -1
  686. package/dist/lib/server/middleware/common.js +1 -2
  687. package/dist/lib/server/middleware/deprecation.d.ts +3 -2
  688. package/dist/lib/server/middleware/index.d.ts +6 -6
  689. package/dist/lib/server/middleware/index.js +3 -3
  690. package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +1 -1
  691. package/dist/lib/server/middleware/rateLimit.d.ts +5 -5
  692. package/dist/lib/server/middleware/validation.d.ts +6 -6
  693. package/dist/lib/server/openapi/generator.d.ts +4 -4
  694. package/dist/lib/server/openapi/index.d.ts +1 -1
  695. package/dist/lib/server/openapi/schemas.d.ts +1 -1
  696. package/dist/lib/server/openapi/templates.d.ts +1 -1
  697. package/dist/lib/server/routes/agentRoutes.d.ts +1 -1
  698. package/dist/lib/server/routes/claudeProxyRoutes.d.ts +1 -2
  699. package/dist/lib/server/routes/healthRoutes.d.ts +1 -1
  700. package/dist/lib/server/routes/index.d.ts +2 -2
  701. package/dist/lib/server/routes/mcpRoutes.d.ts +1 -1
  702. package/dist/lib/server/routes/memoryRoutes.d.ts +1 -1
  703. package/dist/lib/server/routes/openApiRoutes.d.ts +1 -1
  704. package/dist/lib/server/routes/toolRoutes.d.ts +1 -1
  705. package/dist/lib/server/streaming/dataStream.d.ts +5 -99
  706. package/dist/lib/server/streaming/index.d.ts +1 -1
  707. package/dist/lib/server/streaming/index.js +6 -1
  708. package/dist/lib/server/utils/redaction.d.ts +1 -8
  709. package/dist/lib/server/utils/redaction.js +0 -6
  710. package/dist/lib/server/utils/validation.d.ts +4 -30
  711. package/dist/lib/server/utils/validation.js +3 -0
  712. package/dist/lib/server/voice/frameBus.d.ts +1 -1
  713. package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -4
  714. package/dist/lib/server/websocket/WebSocketHandler.d.ts +1 -1
  715. package/dist/lib/services/server/ai/observability/instrumentation.d.ts +1 -63
  716. package/dist/lib/session/globalSessionState.d.ts +1 -1
  717. package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +1 -2
  718. package/dist/lib/tasks/backends/bullmqBackend.d.ts +1 -1
  719. package/dist/lib/tasks/backends/bullmqBackend.js +1 -1
  720. package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +1 -1
  721. package/dist/lib/tasks/backends/nodeTimeoutBackend.js +1 -1
  722. package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +1 -1
  723. package/dist/lib/tasks/store/fileTaskStore.d.ts +1 -1
  724. package/dist/lib/tasks/store/fileTaskStore.js +1 -1
  725. package/dist/lib/tasks/store/redisTaskStore.d.ts +1 -1
  726. package/dist/lib/tasks/store/redisTaskStore.js +1 -1
  727. package/dist/lib/tasks/taskExecutor.d.ts +1 -2
  728. package/dist/lib/tasks/taskManager.d.ts +1 -1
  729. package/dist/lib/tasks/taskManager.js +1 -1
  730. package/dist/lib/tasks/tools/taskTools.d.ts +7 -7
  731. package/dist/lib/telemetry/index.d.ts +2 -2
  732. package/dist/lib/telemetry/telemetryService.d.ts +1 -8
  733. package/dist/lib/telemetry/withSpan.d.ts +2 -7
  734. package/dist/lib/telemetry/withSpan.js +1 -1
  735. package/dist/lib/types/{actionTypes.js → action.js} +1 -1
  736. package/dist/lib/types/{typeAliases.d.ts → aliases.d.ts} +1 -32
  737. package/dist/lib/types/{typeAliases.js → aliases.js} +1 -1
  738. package/dist/{types/artifactTypes.d.ts → lib/types/artifact.d.ts} +2 -2
  739. package/dist/lib/types/{artifactTypes.js → artifact.js} +1 -1
  740. package/dist/{types/authTypes.d.ts → lib/types/auth.d.ts} +43 -2
  741. package/dist/lib/types/{authTypes.js → auth.js} +1 -1
  742. package/dist/{types/autoresearchTypes.d.ts → lib/types/autoresearch.d.ts} +1 -1
  743. package/dist/lib/types/{autoresearchTypes.js → autoresearch.js} +1 -1
  744. package/dist/lib/types/circuitBreakerErrors.d.ts +1 -1
  745. package/dist/lib/types/cli.d.ts +60 -12
  746. package/dist/lib/types/cli.js +1 -1
  747. package/dist/{types/clientTypes.d.ts → lib/types/client.d.ts} +292 -107
  748. package/dist/lib/types/{clientTypes.js → client.js} +1 -1
  749. package/dist/lib/types/common.d.ts +135 -2
  750. package/dist/{types/configTypes.d.ts → lib/types/config.d.ts} +8 -9
  751. package/dist/lib/types/{configTypes.js → config.js} +1 -1
  752. package/dist/lib/types/{contextTypes.js → context.js} +1 -1
  753. package/dist/lib/types/conversation.d.ts +6 -4
  754. package/dist/lib/types/{domainTypes.js → domain.js} +1 -1
  755. package/dist/lib/{mcp/elicitation/types.d.ts → types/elicitation.d.ts} +1 -1
  756. package/dist/lib/{mcp/elicitation/types.js → types/elicitation.js} +1 -1
  757. package/dist/lib/types/enums.d.ts +9 -0
  758. package/dist/lib/types/enums.js +10 -0
  759. package/dist/lib/types/evaluation.d.ts +200 -1
  760. package/dist/lib/types/evaluation.js +1 -1
  761. package/dist/lib/{observability/types/exporterTypes.js → types/exporter.js} +1 -1
  762. package/dist/lib/types/externalMcp.d.ts +4 -4
  763. package/dist/lib/types/{fileTypes.js → file.js} +1 -1
  764. package/dist/lib/types/{fileReferenceTypes.d.ts → fileReference.d.ts} +13 -1
  765. package/dist/lib/{files/types.js → types/fileReference.js} +3 -5
  766. package/dist/lib/types/{generateTypes.d.ts → generate.d.ts} +13 -11
  767. package/dist/lib/types/generate.js +2 -0
  768. package/dist/lib/types/{groundingTypes.js → grounding.js} +1 -1
  769. package/dist/lib/types/{hitlTypes.js → hitl.js} +1 -1
  770. package/dist/{image-gen/types.d.ts → lib/types/imageGen.d.ts} +18 -0
  771. package/dist/lib/{image-gen/types.js → types/imageGen.js} +1 -1
  772. package/dist/lib/types/index.d.ts +50 -47
  773. package/dist/lib/types/index.js +52 -57
  774. package/dist/lib/types/mcp.d.ts +2035 -0
  775. package/dist/lib/types/{mcpTypes.js → mcp.js} +1 -1
  776. package/dist/lib/types/{mcpOutputTypes.js → mcpOutput.js} +1 -1
  777. package/dist/lib/types/{middlewareTypes.d.ts → middleware.d.ts} +1 -2
  778. package/dist/lib/types/middleware.js +2 -0
  779. package/dist/lib/types/{modelTypes.d.ts → model.d.ts} +1 -1
  780. package/dist/lib/types/{modelTypes.js → model.js} +1 -1
  781. package/dist/lib/types/observability.d.ts +216 -4
  782. package/dist/{types/pptTypes.d.ts → lib/types/ppt.d.ts} +0 -28
  783. package/dist/lib/types/ppt.js +37 -0
  784. package/dist/lib/{processors/base/types.d.ts → types/processor.d.ts} +233 -7
  785. package/dist/lib/{processors/base/types.js → types/processor.js} +9 -1
  786. package/dist/lib/types/providers.d.ts +9 -8
  787. package/dist/lib/types/{proxyTypes.d.ts → proxy.d.ts} +16 -4
  788. package/dist/lib/types/{proxyTypes.js → proxy.js} +1 -1
  789. package/dist/lib/{rag/types.d.ts → types/rag.d.ts} +604 -32
  790. package/dist/lib/types/{ragTypes.js → rag.js} +1 -1
  791. package/dist/{types/scorerTypes.d.ts → lib/types/scorer.d.ts} +2 -2
  792. package/dist/lib/types/{scorerTypes.js → scorer.js} +1 -1
  793. package/dist/lib/types/{sdkTypes.d.ts → sdk.d.ts} +9 -9
  794. package/dist/lib/types/{sdkTypes.js → sdk.js} +1 -1
  795. package/dist/{types/serverTypes.d.ts → lib/types/server.d.ts} +156 -2
  796. package/dist/lib/types/{serverTypes.js → server.js} +1 -1
  797. package/dist/lib/types/{serviceTypes.js → service.js} +1 -1
  798. package/dist/lib/{observability/types/spanTypes.js → types/span.js} +1 -1
  799. package/dist/{types/streamTypes.d.ts → lib/types/stream.d.ts} +19 -36
  800. package/dist/lib/types/stream.js +2 -0
  801. package/dist/lib/types/{subscriptionTypes.d.ts → subscription.d.ts} +34 -56
  802. package/dist/lib/types/{subscriptionTypes.js → subscription.js} +1 -1
  803. package/dist/lib/types/{taskTypes.d.ts → task.d.ts} +6 -6
  804. package/dist/lib/types/{taskTypes.js → task.js} +1 -1
  805. package/dist/lib/types/{taskClassificationTypes.js → taskClassification.js} +1 -1
  806. package/dist/lib/types/tools.d.ts +6 -4
  807. package/dist/lib/types/{ttsTypes.js → tts.js} +1 -1
  808. package/dist/lib/types/universalProviderOptions.d.ts +1 -1
  809. package/dist/lib/types/utilities.d.ts +1 -1
  810. package/dist/lib/types/{workflowTypes.d.ts → workflow.d.ts} +23 -1
  811. package/dist/lib/types/{workflowTypes.js → workflow.js} +1 -9
  812. package/dist/lib/utils/async/index.d.ts +1 -1
  813. package/dist/lib/utils/async/retry.d.ts +2 -1
  814. package/dist/lib/utils/conversationMemory.d.ts +1 -2
  815. package/dist/lib/utils/csvProcessor.d.ts +1 -1
  816. package/dist/lib/utils/errorHandling.d.ts +1 -1
  817. package/dist/lib/utils/errorHandling.js +1 -1
  818. package/dist/lib/utils/evaluationUtils.d.ts +1 -1
  819. package/dist/lib/utils/factoryProcessing.d.ts +1 -5
  820. package/dist/lib/utils/fileDetector.d.ts +1 -1
  821. package/dist/lib/utils/imageCache.d.ts +1 -1
  822. package/dist/lib/utils/imageCompressor.d.ts +5 -5
  823. package/dist/lib/utils/imageProcessor.d.ts +1 -2
  824. package/dist/lib/utils/json/extract.d.ts +1 -2
  825. package/dist/lib/utils/logger.d.ts +1 -1
  826. package/dist/lib/utils/loopUtils.d.ts +1 -2
  827. package/dist/lib/utils/mcpDefaults.d.ts +1 -1
  828. package/dist/lib/utils/messageBuilder.d.ts +1 -4
  829. package/dist/lib/utils/messageBuilder.js +1 -1
  830. package/dist/lib/utils/modelAliasResolver.d.ts +1 -1
  831. package/dist/lib/utils/modelRouter.d.ts +1 -1
  832. package/dist/lib/utils/multimodalOptionsBuilder.d.ts +6 -6
  833. package/dist/lib/utils/observabilityHelpers.d.ts +1 -1
  834. package/dist/lib/utils/optionsConversion.d.ts +1 -3
  835. package/dist/lib/utils/optionsUtils.d.ts +1 -3
  836. package/dist/lib/utils/optionsUtils.js +1 -1
  837. package/dist/lib/utils/parameterValidation.d.ts +1 -5
  838. package/dist/lib/utils/performance.d.ts +1 -1
  839. package/dist/lib/utils/pricing.d.ts +1 -1
  840. package/dist/lib/utils/promptRedaction.d.ts +1 -1
  841. package/dist/lib/utils/providerConfig.d.ts +1 -4
  842. package/dist/lib/utils/providerConfig.js +1 -0
  843. package/dist/lib/utils/providerHealth.d.ts +1 -1
  844. package/dist/lib/utils/providerUtils.d.ts +2 -3
  845. package/dist/lib/utils/rateLimiter.d.ts +1 -1
  846. package/dist/lib/utils/redis.d.ts +1 -1
  847. package/dist/lib/utils/retryHandler.d.ts +1 -1
  848. package/dist/lib/utils/sanitizers/index.d.ts +0 -2
  849. package/dist/lib/utils/schemaConversion.d.ts +1 -1
  850. package/dist/lib/utils/taskClassificationUtils.d.ts +1 -1
  851. package/dist/lib/utils/taskClassifier.d.ts +1 -1
  852. package/dist/lib/utils/thinkingConfig.d.ts +1 -1
  853. package/dist/lib/utils/timeout.d.ts +1 -1
  854. package/dist/lib/utils/tokenEstimation.d.ts +1 -1
  855. package/dist/lib/utils/tokenUtils.d.ts +1 -2
  856. package/dist/lib/utils/toolUtils.d.ts +1 -1
  857. package/dist/lib/utils/transformationUtils.d.ts +1 -1
  858. package/dist/lib/utils/ttsProcessor.d.ts +1 -69
  859. package/dist/lib/utils/ttsProcessor.js +1 -2
  860. package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +1 -1
  861. package/dist/lib/workflow/config.d.ts +9 -9
  862. package/dist/lib/workflow/core/ensembleExecutor.d.ts +1 -2
  863. package/dist/lib/workflow/core/ensembleExecutor.js +1 -1
  864. package/dist/lib/workflow/core/judgeScorer.d.ts +2 -3
  865. package/dist/lib/workflow/core/judgeScorer.js +1 -1
  866. package/dist/lib/workflow/core/responseConditioner.d.ts +1 -2
  867. package/dist/lib/workflow/core/workflowRegistry.d.ts +1 -2
  868. package/dist/lib/workflow/core/workflowRunner.d.ts +3 -39
  869. package/dist/lib/workflow/index.d.ts +0 -15
  870. package/dist/lib/workflow/index.js +3 -8
  871. package/dist/lib/workflow/utils/workflowMetrics.d.ts +1 -3
  872. package/dist/lib/workflow/utils/workflowValidation.d.ts +1 -1
  873. package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +1 -1
  874. package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +1 -1
  875. package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +1 -1
  876. package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +1 -1
  877. package/dist/mcp/agentExposure.d.ts +1 -146
  878. package/dist/mcp/auth/oauthClientProvider.d.ts +1 -1
  879. package/dist/mcp/auth/tokenStorage.d.ts +1 -1
  880. package/dist/mcp/batching/index.d.ts +0 -10
  881. package/dist/mcp/batching/index.js +0 -9
  882. package/dist/mcp/batching/requestBatcher.d.ts +1 -73
  883. package/dist/mcp/caching/index.d.ts +0 -10
  884. package/dist/mcp/caching/index.js +0 -9
  885. package/dist/mcp/caching/toolCache.d.ts +6 -73
  886. package/dist/mcp/elicitation/elicitationManager.d.ts +1 -1
  887. package/dist/mcp/elicitation/index.d.ts +0 -10
  888. package/dist/mcp/elicitation/index.js +0 -9
  889. package/dist/mcp/elicitationProtocol.d.ts +1 -90
  890. package/dist/mcp/enhancedToolDiscovery.d.ts +2 -82
  891. package/dist/mcp/enhancedToolDiscovery.js +1 -1
  892. package/dist/mcp/externalServerManager.d.ts +1 -5
  893. package/dist/mcp/factory.d.ts +1 -1
  894. package/dist/mcp/flexibleToolValidator.d.ts +1 -1
  895. package/dist/mcp/httpRateLimiter.d.ts +6 -6
  896. package/dist/mcp/httpRateLimiter.js +1 -2
  897. package/dist/mcp/httpRetryHandler.d.ts +1 -1
  898. package/dist/mcp/httpRetryHandler.js +1 -2
  899. package/dist/mcp/index.d.ts +1 -15
  900. package/dist/mcp/index.js +7 -0
  901. package/dist/mcp/mcpCircuitBreaker.d.ts +2 -2
  902. package/dist/mcp/mcpCircuitBreaker.js +2 -2
  903. package/dist/mcp/mcpClientFactory.d.ts +1 -2
  904. package/dist/mcp/mcpClientFactory.js +2 -3
  905. package/dist/mcp/mcpOutputNormalizer.d.ts +1 -3
  906. package/dist/mcp/mcpOutputNormalizer.js +1 -0
  907. package/dist/mcp/mcpRegistryClient.d.ts +13 -216
  908. package/dist/mcp/mcpServerBase.d.ts +1 -66
  909. package/dist/mcp/mcpServerBase.js +3 -0
  910. package/dist/mcp/multiServerManager.d.ts +1 -116
  911. package/dist/mcp/registry.d.ts +1 -3
  912. package/dist/mcp/routing/index.d.ts +0 -10
  913. package/dist/mcp/routing/index.js +0 -9
  914. package/dist/mcp/routing/toolRouter.d.ts +1 -110
  915. package/dist/mcp/serverCapabilities.d.ts +1 -167
  916. package/dist/mcp/toolAnnotations.d.ts +1 -98
  917. package/dist/mcp/toolConverter.d.ts +1 -92
  918. package/dist/mcp/toolDiscoveryService.d.ts +1 -3
  919. package/dist/mcp/toolIntegration.d.ts +1 -45
  920. package/dist/mcp/toolRegistry.d.ts +1 -3
  921. package/dist/memory/hippocampusInitializer.d.ts +0 -3
  922. package/dist/memory/memoryRetrievalTools.d.ts +1 -1
  923. package/dist/memory/memoryRetrievalTools.js +1 -2
  924. package/dist/middleware/builtin/analytics.d.ts +1 -1
  925. package/dist/middleware/builtin/autoEvaluation.d.ts +1 -1
  926. package/dist/middleware/builtin/guardrails.d.ts +1 -2
  927. package/dist/middleware/builtin/lifecycle.d.ts +1 -1
  928. package/dist/middleware/factory.d.ts +1 -1
  929. package/dist/middleware/index.d.ts +0 -2
  930. package/dist/middleware/index.js +1 -0
  931. package/dist/middleware/registry.d.ts +1 -1
  932. package/dist/middleware/utils/guardrailsUtils.d.ts +1 -1
  933. package/dist/models/anthropicModels.d.ts +2 -2
  934. package/dist/models/anthropicModels.js +1 -1
  935. package/dist/models/modelRegistry.d.ts +1 -2
  936. package/dist/models/modelRegistry.js +1 -1
  937. package/dist/models/modelResolver.d.ts +1 -2
  938. package/dist/neurolink.d.ts +14 -29
  939. package/dist/neurolink.js +3 -5
  940. package/dist/observability/exporterRegistry.d.ts +1 -1
  941. package/dist/observability/exporters/arizeExporter.d.ts +1 -1
  942. package/dist/observability/exporters/baseExporter.d.ts +1 -1
  943. package/dist/observability/exporters/braintrustExporter.d.ts +1 -1
  944. package/dist/observability/exporters/datadogExporter.d.ts +1 -1
  945. package/dist/observability/exporters/datadogExporter.js +1 -1
  946. package/dist/observability/exporters/laminarExporter.d.ts +1 -1
  947. package/dist/observability/exporters/laminarExporter.js +1 -1
  948. package/dist/observability/exporters/langfuseExporter.d.ts +1 -1
  949. package/dist/observability/exporters/langfuseExporter.js +1 -1
  950. package/dist/observability/exporters/langsmithExporter.d.ts +1 -1
  951. package/dist/observability/exporters/otelExporter.d.ts +1 -1
  952. package/dist/observability/exporters/posthogExporter.d.ts +1 -1
  953. package/dist/observability/exporters/posthogExporter.js +1 -1
  954. package/dist/observability/exporters/sentryExporter.d.ts +1 -1
  955. package/dist/observability/exporters/sentryExporter.js +1 -1
  956. package/dist/observability/index.d.ts +6 -8
  957. package/dist/observability/index.js +1 -1
  958. package/dist/observability/metricsAggregator.d.ts +4 -108
  959. package/dist/observability/metricsAggregator.js +0 -4
  960. package/dist/observability/otelBridge.d.ts +2 -2
  961. package/dist/observability/otelBridge.js +1 -1
  962. package/dist/observability/retryPolicy.d.ts +1 -27
  963. package/dist/observability/sampling/index.d.ts +1 -1
  964. package/dist/observability/sampling/samplers.d.ts +1 -3
  965. package/dist/observability/sampling/samplers.js +1 -1
  966. package/dist/observability/spanProcessor.d.ts +1 -2
  967. package/dist/observability/tokenTracker.d.ts +3 -41
  968. package/dist/observability/utils/safeMetadata.d.ts +1 -1
  969. package/dist/observability/utils/spanSerializer.d.ts +1 -1
  970. package/dist/observability/utils/spanSerializer.js +1 -1
  971. package/dist/processors/archive/ArchiveProcessor.d.ts +3 -44
  972. package/dist/processors/archive/ArchiveProcessor.js +3 -0
  973. package/dist/processors/archive/index.d.ts +1 -1
  974. package/dist/processors/archive/index.js +1 -0
  975. package/dist/processors/base/BaseFileProcessor.d.ts +6 -6
  976. package/dist/processors/base/BaseFileProcessor.js +1 -1
  977. package/dist/processors/base/index.d.ts +1 -2
  978. package/dist/processors/base/index.js +4 -1
  979. package/dist/processors/cli/fileProcessorCli.d.ts +1 -40
  980. package/dist/processors/cli/fileProcessorCli.js +3 -0
  981. package/dist/processors/cli/index.d.ts +0 -1
  982. package/dist/processors/cli/index.js +3 -0
  983. package/dist/processors/code/ConfigProcessor.d.ts +2 -4
  984. package/dist/processors/code/ConfigProcessor.js +4 -0
  985. package/dist/processors/code/SourceCodeProcessor.d.ts +2 -4
  986. package/dist/processors/code/SourceCodeProcessor.js +4 -0
  987. package/dist/processors/code/index.d.ts +2 -2
  988. package/dist/processors/code/index.js +6 -2
  989. package/dist/processors/config/fileTypes.d.ts +0 -20
  990. package/dist/processors/config/fileTypes.js +3 -0
  991. package/dist/processors/config/index.d.ts +4 -4
  992. package/dist/processors/config/index.js +10 -3
  993. package/dist/processors/config/languageMap.d.ts +0 -4
  994. package/dist/processors/config/languageMap.js +3 -0
  995. package/dist/processors/config/mimeTypes.d.ts +0 -18
  996. package/dist/processors/config/mimeTypes.js +3 -0
  997. package/dist/processors/config/sizeLimits.d.ts +0 -8
  998. package/dist/processors/config/sizeLimits.js +3 -0
  999. package/dist/processors/data/JsonProcessor.d.ts +2 -4
  1000. package/dist/processors/data/JsonProcessor.js +2 -0
  1001. package/dist/processors/data/XmlProcessor.d.ts +3 -5
  1002. package/dist/processors/data/XmlProcessor.js +4 -0
  1003. package/dist/processors/data/YamlProcessor.d.ts +3 -5
  1004. package/dist/processors/data/YamlProcessor.js +2 -0
  1005. package/dist/processors/data/index.d.ts +3 -3
  1006. package/dist/processors/data/index.js +9 -3
  1007. package/dist/processors/document/ExcelProcessor.d.ts +3 -5
  1008. package/dist/processors/document/ExcelProcessor.js +2 -0
  1009. package/dist/processors/document/OpenDocumentProcessor.d.ts +2 -4
  1010. package/dist/processors/document/OpenDocumentProcessor.js +1 -0
  1011. package/dist/processors/document/RtfProcessor.d.ts +2 -4
  1012. package/dist/processors/document/RtfProcessor.js +2 -0
  1013. package/dist/processors/document/WordProcessor.d.ts +3 -5
  1014. package/dist/processors/document/WordProcessor.js +2 -0
  1015. package/dist/processors/document/index.d.ts +4 -4
  1016. package/dist/processors/document/index.js +4 -1
  1017. package/dist/processors/errors/FileErrorCode.d.ts +3 -15
  1018. package/dist/processors/errors/errorHelpers.d.ts +2 -2
  1019. package/dist/processors/errors/errorHelpers.js +1 -1
  1020. package/dist/processors/errors/errorSerializer.d.ts +3 -2
  1021. package/dist/processors/errors/index.d.ts +3 -3
  1022. package/dist/processors/index.d.ts +7 -10
  1023. package/dist/processors/index.js +11 -2
  1024. package/dist/processors/integration/FileProcessorIntegration.d.ts +2 -70
  1025. package/dist/processors/integration/FileProcessorIntegration.js +6 -0
  1026. package/dist/processors/integration/index.d.ts +0 -1
  1027. package/dist/processors/integration/index.js +3 -0
  1028. package/dist/processors/markup/HtmlProcessor.d.ts +2 -4
  1029. package/dist/processors/markup/HtmlProcessor.js +2 -0
  1030. package/dist/processors/markup/MarkdownProcessor.d.ts +2 -4
  1031. package/dist/processors/markup/MarkdownProcessor.js +4 -0
  1032. package/dist/processors/markup/SvgProcessor.d.ts +2 -4
  1033. package/dist/processors/markup/SvgProcessor.js +4 -0
  1034. package/dist/processors/markup/TextProcessor.d.ts +2 -4
  1035. package/dist/processors/markup/TextProcessor.js +2 -0
  1036. package/dist/processors/markup/index.d.ts +4 -4
  1037. package/dist/processors/markup/index.js +12 -4
  1038. package/dist/processors/media/AudioProcessor.d.ts +3 -64
  1039. package/dist/processors/media/AudioProcessor.js +3 -0
  1040. package/dist/processors/media/VideoProcessor.d.ts +3 -48
  1041. package/dist/processors/media/VideoProcessor.js +3 -0
  1042. package/dist/processors/media/index.d.ts +0 -1
  1043. package/dist/processors/media/index.js +3 -0
  1044. package/dist/processors/registry/ProcessorRegistry.d.ts +2 -3
  1045. package/dist/processors/registry/ProcessorRegistry.js +1 -1
  1046. package/dist/processors/registry/index.d.ts +1 -11
  1047. package/dist/processors/registry/index.js +2 -9
  1048. package/dist/providers/amazonBedrock.d.ts +1 -2
  1049. package/dist/providers/amazonBedrock.js +1 -1
  1050. package/dist/providers/amazonSagemaker.d.ts +1 -1
  1051. package/dist/providers/anthropic.d.ts +1 -6
  1052. package/dist/providers/anthropic.js +3 -1
  1053. package/dist/providers/anthropicBaseProvider.d.ts +1 -1
  1054. package/dist/providers/anthropicBaseProvider.js +1 -1
  1055. package/dist/providers/azureOpenai.d.ts +1 -2
  1056. package/dist/providers/googleAiStudio.d.ts +1 -3
  1057. package/dist/providers/googleAiStudio.js +3 -2
  1058. package/dist/providers/googleNativeGemini3.d.ts +1 -2
  1059. package/dist/providers/googleVertex.d.ts +1 -3
  1060. package/dist/providers/googleVertex.js +3 -3
  1061. package/dist/providers/huggingFace.d.ts +1 -2
  1062. package/dist/providers/litellm.d.ts +1 -1
  1063. package/dist/providers/litellm.js +3 -2
  1064. package/dist/providers/mistral.d.ts +1 -3
  1065. package/dist/providers/ollama.d.ts +1 -2
  1066. package/dist/providers/ollama.js +1 -1
  1067. package/dist/providers/openAI.d.ts +1 -2
  1068. package/dist/providers/openAI.js +1 -1
  1069. package/dist/providers/openRouter.d.ts +1 -1
  1070. package/dist/providers/openaiCompatible.d.ts +1 -2
  1071. package/dist/providers/providerTypeUtils.d.ts +1 -1
  1072. package/dist/providers/sagemaker/adaptive-semaphore.d.ts +1 -1
  1073. package/dist/providers/sagemaker/client.d.ts +1 -2
  1074. package/dist/providers/sagemaker/config.d.ts +1 -1
  1075. package/dist/providers/sagemaker/detection.d.ts +4 -27
  1076. package/dist/providers/sagemaker/diagnostics.d.ts +3 -2
  1077. package/dist/providers/sagemaker/errors.d.ts +1 -1
  1078. package/dist/providers/sagemaker/index.d.ts +0 -1
  1079. package/dist/providers/sagemaker/index.js +1 -0
  1080. package/dist/providers/sagemaker/language-model.d.ts +3 -4
  1081. package/dist/providers/sagemaker/parsers.d.ts +1 -26
  1082. package/dist/providers/sagemaker/streaming.d.ts +1 -1
  1083. package/dist/providers/sagemaker/streaming.js +1 -1
  1084. package/dist/providers/sagemaker/structured-parser.d.ts +1 -1
  1085. package/dist/providers/sagemaker/structured-parser.js +1 -1
  1086. package/dist/proxy/cloaking/index.d.ts +0 -1
  1087. package/dist/proxy/cloaking/index.js +1 -0
  1088. package/dist/proxy/proxyEnv.d.ts +3 -3
  1089. package/dist/proxy/proxyPaths.d.ts +1 -10
  1090. package/dist/proxy/proxyTracer.d.ts +0 -1
  1091. package/dist/proxy/quietDetector.d.ts +3 -2
  1092. package/dist/proxy/rawStreamCapture.d.ts +3 -2
  1093. package/dist/proxy/sseInterceptor.d.ts +5 -4
  1094. package/dist/proxy/updateChecker.d.ts +3 -2
  1095. package/dist/proxy/updateState.d.ts +5 -4
  1096. package/dist/rag/ChunkerFactory.d.ts +1 -1
  1097. package/dist/rag/ChunkerRegistry.d.ts +1 -1
  1098. package/dist/rag/chunkers/BaseChunker.d.ts +1 -1
  1099. package/dist/rag/chunkers/CharacterChunker.d.ts +1 -1
  1100. package/dist/rag/chunkers/HTMLChunker.d.ts +1 -1
  1101. package/dist/rag/chunkers/JSONChunker.d.ts +1 -1
  1102. package/dist/rag/chunkers/LaTeXChunker.d.ts +1 -1
  1103. package/dist/rag/chunkers/MarkdownChunker.d.ts +1 -1
  1104. package/dist/rag/chunkers/RecursiveChunker.d.ts +1 -1
  1105. package/dist/rag/chunkers/SemanticMarkdownChunker.d.ts +1 -1
  1106. package/dist/rag/chunkers/SentenceChunker.d.ts +1 -1
  1107. package/dist/rag/chunkers/TokenChunker.d.ts +1 -1
  1108. package/dist/rag/chunking/characterChunker.d.ts +1 -1
  1109. package/dist/rag/chunking/chunkerRegistry.d.ts +2 -2
  1110. package/dist/rag/chunking/htmlChunker.d.ts +1 -1
  1111. package/dist/rag/chunking/jsonChunker.d.ts +1 -1
  1112. package/dist/rag/chunking/latexChunker.d.ts +1 -1
  1113. package/dist/rag/chunking/markdownChunker.d.ts +1 -1
  1114. package/dist/rag/chunking/recursiveChunker.d.ts +1 -1
  1115. package/dist/rag/chunking/semanticChunker.d.ts +1 -1
  1116. package/dist/rag/chunking/sentenceChunker.d.ts +1 -1
  1117. package/dist/rag/chunking/tokenChunker.d.ts +1 -1
  1118. package/dist/rag/document/MDocument.d.ts +1 -1
  1119. package/dist/rag/document/index.d.ts +1 -1
  1120. package/dist/rag/document/loaders.d.ts +1 -6
  1121. package/dist/rag/errors/RAGError.d.ts +2 -1
  1122. package/dist/rag/errors/index.d.ts +1 -1
  1123. package/dist/rag/graphRag/graphRAG.d.ts +1 -1
  1124. package/dist/rag/index.d.ts +8 -8
  1125. package/dist/rag/index.js +1 -1
  1126. package/dist/rag/metadata/MetadataExtractorFactory.d.ts +1 -5
  1127. package/dist/rag/metadata/MetadataExtractorRegistry.d.ts +1 -1
  1128. package/dist/rag/metadata/index.d.ts +1 -1
  1129. package/dist/rag/metadata/metadataExtractor.d.ts +1 -1
  1130. package/dist/rag/pipeline/RAGPipeline.d.ts +1 -8
  1131. package/dist/rag/pipeline/RAGPipeline.js +1 -1
  1132. package/dist/rag/pipeline/contextAssembly.d.ts +1 -5
  1133. package/dist/rag/pipeline/index.d.ts +2 -2
  1134. package/dist/rag/pipeline/index.js +1 -1
  1135. package/dist/rag/ragIntegration.d.ts +1 -3
  1136. package/dist/rag/reranker/RerankerFactory.d.ts +1 -6
  1137. package/dist/rag/reranker/RerankerFactory.js +2 -2
  1138. package/dist/rag/reranker/RerankerRegistry.d.ts +1 -1
  1139. package/dist/rag/reranker/index.d.ts +1 -1
  1140. package/dist/rag/reranker/reranker.d.ts +1 -2
  1141. package/dist/rag/resilience/CircuitBreaker.d.ts +0 -4
  1142. package/dist/rag/resilience/RetryHandler.d.ts +1 -2
  1143. package/dist/rag/resilience/index.d.ts +2 -2
  1144. package/dist/rag/retrieval/hybridSearch.d.ts +1 -4
  1145. package/dist/rag/retrieval/hybridSearch.js +5 -1
  1146. package/dist/rag/retrieval/index.d.ts +2 -2
  1147. package/dist/rag/retrieval/vectorQueryTool.d.ts +1 -3
  1148. package/dist/rag/retrieval/vectorQueryTool.js +5 -1
  1149. package/dist/sdk/toolRegistration.d.ts +3 -5
  1150. package/dist/server/abstract/baseServerAdapter.d.ts +1 -1
  1151. package/dist/server/abstract/baseServerAdapter.js +1 -2
  1152. package/dist/server/adapters/expressAdapter.d.ts +1 -1
  1153. package/dist/server/adapters/fastifyAdapter.d.ts +1 -1
  1154. package/dist/server/adapters/honoAdapter.d.ts +1 -1
  1155. package/dist/server/adapters/koaAdapter.d.ts +1 -1
  1156. package/dist/server/errors.d.ts +1 -1
  1157. package/dist/server/errors.js +1 -1
  1158. package/dist/server/factory/serverAdapterFactory.d.ts +1 -1
  1159. package/dist/server/index.d.ts +10 -12
  1160. package/dist/server/index.js +14 -3
  1161. package/dist/server/middleware/abortSignal.d.ts +3 -2
  1162. package/dist/server/middleware/auth.d.ts +7 -49
  1163. package/dist/server/middleware/auth.js +3 -0
  1164. package/dist/server/middleware/cache.d.ts +3 -54
  1165. package/dist/server/middleware/cache.js +6 -0
  1166. package/dist/server/middleware/common.d.ts +1 -1
  1167. package/dist/server/middleware/common.js +1 -2
  1168. package/dist/server/middleware/deprecation.d.ts +3 -2
  1169. package/dist/server/middleware/index.d.ts +6 -6
  1170. package/dist/server/middleware/index.js +3 -3
  1171. package/dist/server/middleware/mcpBodyAttachment.d.ts +1 -1
  1172. package/dist/server/middleware/rateLimit.d.ts +5 -5
  1173. package/dist/server/middleware/validation.d.ts +6 -6
  1174. package/dist/server/openapi/generator.d.ts +4 -4
  1175. package/dist/server/openapi/index.d.ts +1 -1
  1176. package/dist/server/openapi/schemas.d.ts +1 -1
  1177. package/dist/server/openapi/templates.d.ts +1 -1
  1178. package/dist/server/routes/agentRoutes.d.ts +1 -1
  1179. package/dist/server/routes/claudeProxyRoutes.d.ts +1 -2
  1180. package/dist/server/routes/healthRoutes.d.ts +1 -1
  1181. package/dist/server/routes/index.d.ts +2 -2
  1182. package/dist/server/routes/mcpRoutes.d.ts +1 -1
  1183. package/dist/server/routes/memoryRoutes.d.ts +1 -1
  1184. package/dist/server/routes/openApiRoutes.d.ts +1 -1
  1185. package/dist/server/routes/toolRoutes.d.ts +1 -1
  1186. package/dist/server/streaming/dataStream.d.ts +5 -99
  1187. package/dist/server/streaming/index.d.ts +1 -1
  1188. package/dist/server/streaming/index.js +6 -1
  1189. package/dist/server/utils/redaction.d.ts +1 -8
  1190. package/dist/server/utils/redaction.js +0 -6
  1191. package/dist/server/utils/validation.d.ts +4 -30
  1192. package/dist/server/utils/validation.js +3 -0
  1193. package/dist/server/voice/frameBus.d.ts +1 -1
  1194. package/dist/server/voice/voiceWebSocketHandler.d.ts +0 -4
  1195. package/dist/server/websocket/WebSocketHandler.d.ts +1 -1
  1196. package/dist/services/server/ai/observability/instrumentation.d.ts +1 -63
  1197. package/dist/session/globalSessionState.d.ts +1 -1
  1198. package/dist/tasks/autoresearchTaskExecutor.d.ts +1 -2
  1199. package/dist/tasks/backends/bullmqBackend.d.ts +1 -1
  1200. package/dist/tasks/backends/bullmqBackend.js +1 -1
  1201. package/dist/tasks/backends/nodeTimeoutBackend.d.ts +1 -1
  1202. package/dist/tasks/backends/nodeTimeoutBackend.js +1 -1
  1203. package/dist/tasks/backends/taskBackendRegistry.d.ts +1 -1
  1204. package/dist/tasks/store/fileTaskStore.d.ts +1 -1
  1205. package/dist/tasks/store/fileTaskStore.js +1 -1
  1206. package/dist/tasks/store/redisTaskStore.d.ts +1 -1
  1207. package/dist/tasks/store/redisTaskStore.js +1 -1
  1208. package/dist/tasks/taskExecutor.d.ts +1 -2
  1209. package/dist/tasks/taskManager.d.ts +1 -1
  1210. package/dist/tasks/taskManager.js +1 -1
  1211. package/dist/tasks/tools/taskTools.d.ts +3 -3
  1212. package/dist/telemetry/index.d.ts +2 -2
  1213. package/dist/telemetry/telemetryService.d.ts +1 -8
  1214. package/dist/telemetry/withSpan.d.ts +2 -7
  1215. package/dist/telemetry/withSpan.js +1 -1
  1216. package/dist/types/{typeAliases.d.ts → aliases.d.ts} +1 -32
  1217. package/dist/{lib/types/artifactTypes.d.ts → types/artifact.d.ts} +2 -2
  1218. package/dist/{lib/types/authTypes.d.ts → types/auth.d.ts} +43 -2
  1219. package/dist/{lib/types/autoresearchTypes.d.ts → types/autoresearch.d.ts} +1 -1
  1220. package/dist/types/circuitBreakerErrors.d.ts +1 -1
  1221. package/dist/types/cli.d.ts +60 -12
  1222. package/dist/types/cli.js +1 -1
  1223. package/dist/{lib/types/clientTypes.d.ts → types/client.d.ts} +292 -107
  1224. package/dist/types/common.d.ts +135 -2
  1225. package/dist/{lib/types/configTypes.d.ts → types/config.d.ts} +8 -9
  1226. package/dist/types/conversation.d.ts +6 -4
  1227. package/dist/{mcp/elicitation/types.d.ts → types/elicitation.d.ts} +1 -1
  1228. package/dist/types/enums.d.ts +9 -0
  1229. package/dist/types/enums.js +9 -0
  1230. package/dist/types/evaluation.d.ts +200 -1
  1231. package/dist/types/evaluation.js +1 -1
  1232. package/dist/types/externalMcp.d.ts +4 -4
  1233. package/dist/types/{fileReferenceTypes.d.ts → fileReference.d.ts} +13 -1
  1234. package/dist/{files/types.js → types/fileReference.js} +2 -4
  1235. package/dist/types/{generateTypes.d.ts → generate.d.ts} +13 -11
  1236. package/dist/{lib/image-gen/types.d.ts → types/imageGen.d.ts} +18 -0
  1237. package/dist/types/index.d.ts +50 -47
  1238. package/dist/types/index.js +52 -57
  1239. package/dist/types/mcp.d.ts +2035 -0
  1240. package/dist/types/{middlewareTypes.d.ts → middleware.d.ts} +1 -2
  1241. package/dist/types/{modelTypes.d.ts → model.d.ts} +1 -1
  1242. package/dist/types/observability.d.ts +216 -4
  1243. package/dist/{lib/types/pptTypes.d.ts → types/ppt.d.ts} +0 -28
  1244. package/dist/types/ppt.js +36 -0
  1245. package/dist/{processors/base/types.d.ts → types/processor.d.ts} +233 -7
  1246. package/dist/{processors/base/types.js → types/processor.js} +8 -0
  1247. package/dist/types/providers.d.ts +9 -8
  1248. package/dist/types/{proxyTypes.d.ts → proxy.d.ts} +16 -4
  1249. package/dist/{rag/types.d.ts → types/rag.d.ts} +604 -32
  1250. package/dist/{lib/types/scorerTypes.d.ts → types/scorer.d.ts} +2 -2
  1251. package/dist/types/{sdkTypes.d.ts → sdk.d.ts} +9 -9
  1252. package/dist/{lib/types/serverTypes.d.ts → types/server.d.ts} +156 -2
  1253. package/dist/{lib/types/streamTypes.d.ts → types/stream.d.ts} +19 -36
  1254. package/dist/types/{subscriptionTypes.d.ts → subscription.d.ts} +34 -56
  1255. package/dist/types/{taskTypes.d.ts → task.d.ts} +6 -6
  1256. package/dist/types/tools.d.ts +6 -4
  1257. package/dist/types/universalProviderOptions.d.ts +1 -1
  1258. package/dist/types/utilities.d.ts +1 -1
  1259. package/dist/types/{workflowTypes.d.ts → workflow.d.ts} +23 -1
  1260. package/dist/types/{workflowTypes.js → workflow.js} +0 -8
  1261. package/dist/utils/async/index.d.ts +1 -1
  1262. package/dist/utils/async/retry.d.ts +2 -1
  1263. package/dist/utils/conversationMemory.d.ts +1 -2
  1264. package/dist/utils/csvProcessor.d.ts +1 -1
  1265. package/dist/utils/errorHandling.d.ts +1 -1
  1266. package/dist/utils/errorHandling.js +1 -1
  1267. package/dist/utils/evaluationUtils.d.ts +1 -1
  1268. package/dist/utils/factoryProcessing.d.ts +1 -5
  1269. package/dist/utils/fileDetector.d.ts +1 -1
  1270. package/dist/utils/imageCache.d.ts +1 -1
  1271. package/dist/utils/imageCompressor.d.ts +5 -5
  1272. package/dist/utils/imageProcessor.d.ts +1 -2
  1273. package/dist/utils/json/extract.d.ts +1 -2
  1274. package/dist/utils/logger.d.ts +1 -1
  1275. package/dist/utils/loopUtils.d.ts +1 -2
  1276. package/dist/utils/mcpDefaults.d.ts +1 -1
  1277. package/dist/utils/messageBuilder.d.ts +1 -4
  1278. package/dist/utils/messageBuilder.js +1 -1
  1279. package/dist/utils/modelAliasResolver.d.ts +1 -1
  1280. package/dist/utils/modelRouter.d.ts +1 -1
  1281. package/dist/utils/multimodalOptionsBuilder.d.ts +1 -1
  1282. package/dist/utils/observabilityHelpers.d.ts +1 -1
  1283. package/dist/utils/optionsConversion.d.ts +1 -3
  1284. package/dist/utils/optionsUtils.d.ts +1 -3
  1285. package/dist/utils/optionsUtils.js +1 -1
  1286. package/dist/utils/parameterValidation.d.ts +1 -5
  1287. package/dist/utils/performance.d.ts +1 -1
  1288. package/dist/utils/pricing.d.ts +1 -1
  1289. package/dist/utils/promptRedaction.d.ts +1 -1
  1290. package/dist/utils/providerConfig.d.ts +1 -4
  1291. package/dist/utils/providerConfig.js +1 -0
  1292. package/dist/utils/providerHealth.d.ts +1 -1
  1293. package/dist/utils/providerUtils.d.ts +2 -3
  1294. package/dist/utils/rateLimiter.d.ts +1 -1
  1295. package/dist/utils/redis.d.ts +1 -1
  1296. package/dist/utils/retryHandler.d.ts +1 -1
  1297. package/dist/utils/sanitizers/index.d.ts +0 -2
  1298. package/dist/utils/schemaConversion.d.ts +1 -1
  1299. package/dist/utils/taskClassificationUtils.d.ts +1 -1
  1300. package/dist/utils/taskClassifier.d.ts +1 -1
  1301. package/dist/utils/thinkingConfig.d.ts +1 -1
  1302. package/dist/utils/timeout.d.ts +1 -1
  1303. package/dist/utils/tokenEstimation.d.ts +1 -1
  1304. package/dist/utils/tokenUtils.d.ts +1 -2
  1305. package/dist/utils/toolUtils.d.ts +1 -1
  1306. package/dist/utils/transformationUtils.d.ts +1 -1
  1307. package/dist/utils/ttsProcessor.d.ts +1 -69
  1308. package/dist/utils/ttsProcessor.js +1 -2
  1309. package/dist/workflow/LAYER-EXAMPLES.d.ts +1 -1
  1310. package/dist/workflow/config.d.ts +12 -12
  1311. package/dist/workflow/core/ensembleExecutor.d.ts +1 -2
  1312. package/dist/workflow/core/ensembleExecutor.js +1 -1
  1313. package/dist/workflow/core/judgeScorer.d.ts +2 -3
  1314. package/dist/workflow/core/judgeScorer.js +1 -1
  1315. package/dist/workflow/core/responseConditioner.d.ts +1 -2
  1316. package/dist/workflow/core/workflowRegistry.d.ts +1 -2
  1317. package/dist/workflow/core/workflowRunner.d.ts +3 -39
  1318. package/dist/workflow/index.d.ts +0 -15
  1319. package/dist/workflow/index.js +3 -8
  1320. package/dist/workflow/utils/workflowMetrics.d.ts +1 -3
  1321. package/dist/workflow/utils/workflowValidation.d.ts +1 -1
  1322. package/dist/workflow/workflows/adaptiveWorkflow.d.ts +1 -1
  1323. package/dist/workflow/workflows/consensusWorkflow.d.ts +1 -1
  1324. package/dist/workflow/workflows/fallbackWorkflow.d.ts +1 -1
  1325. package/dist/workflow/workflows/multiJudgeWorkflow.d.ts +1 -1
  1326. package/package.json +6 -6
  1327. package/dist/features/ppt/types.d.ts +0 -9
  1328. package/dist/features/ppt/types.js +0 -13
  1329. package/dist/files/types.d.ts +0 -23
  1330. package/dist/lib/features/ppt/types.d.ts +0 -9
  1331. package/dist/lib/features/ppt/types.js +0 -14
  1332. package/dist/lib/files/types.d.ts +0 -23
  1333. package/dist/lib/observability/types/index.d.ts +0 -6
  1334. package/dist/lib/observability/types/index.js +0 -5
  1335. package/dist/lib/processors/registry/types.d.ts +0 -53
  1336. package/dist/lib/processors/registry/types.js +0 -11
  1337. package/dist/lib/proxy/cloaking/types.d.ts +0 -1
  1338. package/dist/lib/proxy/cloaking/types.js +0 -2
  1339. package/dist/lib/rag/types.js +0 -9
  1340. package/dist/lib/server/types.d.ts +0 -6
  1341. package/dist/lib/server/types.js +0 -7
  1342. package/dist/lib/server/voice/types.d.ts +0 -20
  1343. package/dist/lib/server/voice/types.js +0 -2
  1344. package/dist/lib/types/evaluationTypes.d.ts +0 -142
  1345. package/dist/lib/types/evaluationTypes.js +0 -2
  1346. package/dist/lib/types/fileReferenceTypes.js +0 -9
  1347. package/dist/lib/types/generateTypes.js +0 -2
  1348. package/dist/lib/types/mcpTypes.d.ts +0 -787
  1349. package/dist/lib/types/middlewareTypes.js +0 -2
  1350. package/dist/lib/types/pptTypes.js +0 -83
  1351. package/dist/lib/types/processorTypes.d.ts +0 -597
  1352. package/dist/lib/types/processorTypes.js +0 -91
  1353. package/dist/lib/types/ragTypes.d.ts +0 -606
  1354. package/dist/lib/types/streamTypes.js +0 -2
  1355. package/dist/lib/workflow/core/types/conditionerTypes.d.ts +0 -7
  1356. package/dist/lib/workflow/core/types/conditionerTypes.js +0 -8
  1357. package/dist/lib/workflow/core/types/ensembleTypes.d.ts +0 -7
  1358. package/dist/lib/workflow/core/types/ensembleTypes.js +0 -8
  1359. package/dist/lib/workflow/core/types/index.d.ts +0 -7
  1360. package/dist/lib/workflow/core/types/index.js +0 -8
  1361. package/dist/lib/workflow/core/types/judgeTypes.d.ts +0 -7
  1362. package/dist/lib/workflow/core/types/judgeTypes.js +0 -8
  1363. package/dist/lib/workflow/core/types/layerTypes.d.ts +0 -7
  1364. package/dist/lib/workflow/core/types/layerTypes.js +0 -8
  1365. package/dist/lib/workflow/core/types/registryTypes.d.ts +0 -7
  1366. package/dist/lib/workflow/core/types/registryTypes.js +0 -8
  1367. package/dist/lib/workflow/types.d.ts +0 -19
  1368. package/dist/lib/workflow/types.js +0 -10
  1369. package/dist/lib/workflow/utils/types/index.d.ts +0 -7
  1370. package/dist/lib/workflow/utils/types/index.js +0 -8
  1371. package/dist/lib/workflow/utils/types/metricsTypes.d.ts +0 -7
  1372. package/dist/lib/workflow/utils/types/metricsTypes.js +0 -8
  1373. package/dist/lib/workflow/utils/types/validationTypes.d.ts +0 -7
  1374. package/dist/lib/workflow/utils/types/validationTypes.js +0 -8
  1375. package/dist/observability/types/index.d.ts +0 -6
  1376. package/dist/observability/types/index.js +0 -4
  1377. package/dist/processors/registry/types.d.ts +0 -53
  1378. package/dist/processors/registry/types.js +0 -10
  1379. package/dist/proxy/cloaking/types.d.ts +0 -1
  1380. package/dist/rag/types.js +0 -8
  1381. package/dist/server/types.d.ts +0 -6
  1382. package/dist/server/types.js +0 -6
  1383. package/dist/server/voice/types.d.ts +0 -20
  1384. package/dist/types/evaluationTypes.d.ts +0 -142
  1385. package/dist/types/fileReferenceTypes.js +0 -8
  1386. package/dist/types/generateTypes.js +0 -1
  1387. package/dist/types/mcpTypes.d.ts +0 -787
  1388. package/dist/types/middlewareTypes.js +0 -1
  1389. package/dist/types/pptTypes.js +0 -82
  1390. package/dist/types/processorTypes.d.ts +0 -597
  1391. package/dist/types/processorTypes.js +0 -90
  1392. package/dist/types/ragTypes.d.ts +0 -606
  1393. package/dist/types/streamTypes.js +0 -1
  1394. package/dist/workflow/core/types/conditionerTypes.d.ts +0 -7
  1395. package/dist/workflow/core/types/conditionerTypes.js +0 -7
  1396. package/dist/workflow/core/types/ensembleTypes.d.ts +0 -7
  1397. package/dist/workflow/core/types/ensembleTypes.js +0 -7
  1398. package/dist/workflow/core/types/index.d.ts +0 -7
  1399. package/dist/workflow/core/types/index.js +0 -7
  1400. package/dist/workflow/core/types/judgeTypes.d.ts +0 -7
  1401. package/dist/workflow/core/types/judgeTypes.js +0 -7
  1402. package/dist/workflow/core/types/layerTypes.d.ts +0 -7
  1403. package/dist/workflow/core/types/layerTypes.js +0 -7
  1404. package/dist/workflow/core/types/registryTypes.d.ts +0 -7
  1405. package/dist/workflow/core/types/registryTypes.js +0 -7
  1406. package/dist/workflow/types.d.ts +0 -19
  1407. package/dist/workflow/types.js +0 -9
  1408. package/dist/workflow/utils/types/index.d.ts +0 -7
  1409. package/dist/workflow/utils/types/index.js +0 -7
  1410. package/dist/workflow/utils/types/metricsTypes.d.ts +0 -7
  1411. package/dist/workflow/utils/types/metricsTypes.js +0 -7
  1412. package/dist/workflow/utils/types/validationTypes.d.ts +0 -7
  1413. package/dist/workflow/utils/types/validationTypes.js +0 -7
  1414. /package/dist/lib/types/{actionTypes.d.ts → action.d.ts} +0 -0
  1415. /package/dist/lib/types/{contextTypes.d.ts → context.d.ts} +0 -0
  1416. /package/dist/lib/types/{domainTypes.d.ts → domain.d.ts} +0 -0
  1417. /package/dist/lib/{observability/types/exporterTypes.d.ts → types/exporter.d.ts} +0 -0
  1418. /package/dist/lib/types/{fileTypes.d.ts → file.d.ts} +0 -0
  1419. /package/dist/lib/types/{groundingTypes.d.ts → grounding.d.ts} +0 -0
  1420. /package/dist/lib/types/{hitlTypes.d.ts → hitl.d.ts} +0 -0
  1421. /package/dist/lib/types/{mcpOutputTypes.d.ts → mcpOutput.d.ts} +0 -0
  1422. /package/dist/lib/types/{serviceTypes.d.ts → service.d.ts} +0 -0
  1423. /package/dist/lib/{observability/types/spanTypes.d.ts → types/span.d.ts} +0 -0
  1424. /package/dist/lib/types/{taskClassificationTypes.d.ts → taskClassification.d.ts} +0 -0
  1425. /package/dist/lib/types/{ttsTypes.d.ts → tts.d.ts} +0 -0
  1426. /package/dist/types/{actionTypes.d.ts → action.d.ts} +0 -0
  1427. /package/dist/types/{actionTypes.js → action.js} +0 -0
  1428. /package/dist/types/{typeAliases.js → aliases.js} +0 -0
  1429. /package/dist/types/{artifactTypes.js → artifact.js} +0 -0
  1430. /package/dist/types/{authTypes.js → auth.js} +0 -0
  1431. /package/dist/types/{autoresearchTypes.js → autoresearch.js} +0 -0
  1432. /package/dist/types/{clientTypes.js → client.js} +0 -0
  1433. /package/dist/types/{configTypes.js → config.js} +0 -0
  1434. /package/dist/types/{contextTypes.d.ts → context.d.ts} +0 -0
  1435. /package/dist/types/{contextTypes.js → context.js} +0 -0
  1436. /package/dist/types/{domainTypes.d.ts → domain.d.ts} +0 -0
  1437. /package/dist/types/{domainTypes.js → domain.js} +0 -0
  1438. /package/dist/{mcp/elicitation/types.js → types/elicitation.js} +0 -0
  1439. /package/dist/{observability/types/exporterTypes.d.ts → types/exporter.d.ts} +0 -0
  1440. /package/dist/{observability/types/exporterTypes.js → types/exporter.js} +0 -0
  1441. /package/dist/types/{fileTypes.d.ts → file.d.ts} +0 -0
  1442. /package/dist/types/{fileTypes.js → file.js} +0 -0
  1443. /package/dist/{proxy/cloaking/types.js → types/generate.js} +0 -0
  1444. /package/dist/types/{groundingTypes.d.ts → grounding.d.ts} +0 -0
  1445. /package/dist/types/{groundingTypes.js → grounding.js} +0 -0
  1446. /package/dist/types/{hitlTypes.d.ts → hitl.d.ts} +0 -0
  1447. /package/dist/types/{hitlTypes.js → hitl.js} +0 -0
  1448. /package/dist/{image-gen/types.js → types/imageGen.js} +0 -0
  1449. /package/dist/types/{mcpTypes.js → mcp.js} +0 -0
  1450. /package/dist/types/{mcpOutputTypes.d.ts → mcpOutput.d.ts} +0 -0
  1451. /package/dist/types/{mcpOutputTypes.js → mcpOutput.js} +0 -0
  1452. /package/dist/{server/voice/types.js → types/middleware.js} +0 -0
  1453. /package/dist/types/{modelTypes.js → model.js} +0 -0
  1454. /package/dist/types/{proxyTypes.js → proxy.js} +0 -0
  1455. /package/dist/types/{ragTypes.js → rag.js} +0 -0
  1456. /package/dist/types/{scorerTypes.js → scorer.js} +0 -0
  1457. /package/dist/types/{sdkTypes.js → sdk.js} +0 -0
  1458. /package/dist/types/{serverTypes.js → server.js} +0 -0
  1459. /package/dist/types/{serviceTypes.d.ts → service.d.ts} +0 -0
  1460. /package/dist/types/{serviceTypes.js → service.js} +0 -0
  1461. /package/dist/{observability/types/spanTypes.d.ts → types/span.d.ts} +0 -0
  1462. /package/dist/{observability/types/spanTypes.js → types/span.js} +0 -0
  1463. /package/dist/types/{evaluationTypes.js → stream.js} +0 -0
  1464. /package/dist/types/{subscriptionTypes.js → subscription.js} +0 -0
  1465. /package/dist/types/{taskTypes.js → task.js} +0 -0
  1466. /package/dist/types/{taskClassificationTypes.d.ts → taskClassification.d.ts} +0 -0
  1467. /package/dist/types/{taskClassificationTypes.js → taskClassification.js} +0 -0
  1468. /package/dist/types/{ttsTypes.d.ts → tts.d.ts} +0 -0
  1469. /package/dist/types/{ttsTypes.js → tts.js} +0 -0
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module @neurolink/client/interceptors
8
8
  */
9
- import type { Middleware, MiddlewareRequest, MiddlewareResponse, ClientMiddlewareContext as MiddlewareContext, ClientRetryConfig as RetryConfig, ApiError } from "../types/clientTypes.js";
9
+ import type { ClientMiddleware, ClientMiddlewareRequest, ClientMiddlewareResponse, CacheInterceptorOptions, ErrorHandlerOptions, LoggingInterceptorOptions, RateLimiterOptions, RetryInterceptorOptions, TimeoutInterceptorOptions } from "../types/index.js";
10
10
  /**
11
11
  * API Key authentication interceptor
12
12
  *
@@ -17,7 +17,7 @@ import type { Middleware, MiddlewareRequest, MiddlewareResponse, ClientMiddlewar
17
17
  * client.use(createApiKeyAuthInterceptor('your-api-key'));
18
18
  * ```
19
19
  */
20
- export declare function createApiKeyAuthInterceptor(apiKey: string): Middleware;
20
+ export declare function createApiKeyAuthInterceptor(apiKey: string): ClientMiddleware;
21
21
  /**
22
22
  * Bearer token authentication interceptor
23
23
  *
@@ -28,7 +28,7 @@ export declare function createApiKeyAuthInterceptor(apiKey: string): Middleware;
28
28
  * client.use(createBearerAuthInterceptor('your-token'));
29
29
  * ```
30
30
  */
31
- export declare function createBearerAuthInterceptor(token: string): Middleware;
31
+ export declare function createBearerAuthInterceptor(token: string): ClientMiddleware;
32
32
  /**
33
33
  * Dynamic authentication interceptor
34
34
  *
@@ -49,24 +49,7 @@ export declare function createDynamicAuthInterceptor(getAuth: () => Promise<{
49
49
  } | {
50
50
  type: "bearer";
51
51
  token: string;
52
- } | null>): Middleware;
53
- /**
54
- * Logging interceptor options
55
- */
56
- export type LoggingInterceptorOptions = {
57
- /** Log request details */
58
- logRequest?: boolean;
59
- /** Log response details */
60
- logResponse?: boolean;
61
- /** Log request body */
62
- logBody?: boolean;
63
- /** Log response body */
64
- logResponseBody?: boolean;
65
- /** Custom logger function */
66
- logger?: (message: string, data?: unknown) => void;
67
- /** Redact sensitive fields */
68
- redactFields?: string[];
69
- };
52
+ } | null>): ClientMiddleware;
70
53
  /**
71
54
  * Logging interceptor
72
55
  *
@@ -81,16 +64,7 @@ export type LoggingInterceptorOptions = {
81
64
  * }));
82
65
  * ```
83
66
  */
84
- export declare function createLoggingInterceptor(options?: LoggingInterceptorOptions): Middleware;
85
- /**
86
- * Retry interceptor options
87
- */
88
- export type RetryInterceptorOptions = RetryConfig & {
89
- /** Callback when a retry is attempted */
90
- onRetry?: (attempt: number, error: Error | ApiError, request: MiddlewareRequest) => void;
91
- /** Custom retry condition */
92
- shouldRetry?: (response: MiddlewareResponse, attempt: number) => boolean;
93
- };
67
+ export declare function createLoggingInterceptor(options?: LoggingInterceptorOptions): ClientMiddleware;
94
68
  /**
95
69
  * Retry interceptor with exponential backoff
96
70
  *
@@ -108,20 +82,7 @@ export type RetryInterceptorOptions = RetryConfig & {
108
82
  * }));
109
83
  * ```
110
84
  */
111
- export declare function createRetryInterceptor(options: RetryInterceptorOptions): Middleware;
112
- /**
113
- * Rate limiter options
114
- */
115
- export type RateLimiterOptions = {
116
- /** Maximum requests per window */
117
- maxRequests: number;
118
- /** Window size in milliseconds */
119
- windowMs: number;
120
- /** Strategy when limit is reached: 'queue' or 'throw' */
121
- strategy?: "queue" | "throw";
122
- /** Callback when rate limited */
123
- onRateLimited?: (waitTime: number) => void;
124
- };
85
+ export declare function createRetryInterceptor(options: RetryInterceptorOptions): ClientMiddleware;
125
86
  /**
126
87
  * Rate limiting interceptor
127
88
  *
@@ -137,7 +98,7 @@ export type RateLimiterOptions = {
137
98
  * }));
138
99
  * ```
139
100
  */
140
- export declare function createRateLimitInterceptor(options: RateLimiterOptions): Middleware;
101
+ export declare function createRateLimitInterceptor(options: RateLimiterOptions): ClientMiddleware;
141
102
  /**
142
103
  * Request transformation interceptor
143
104
  *
@@ -154,7 +115,7 @@ export declare function createRateLimitInterceptor(options: RateLimiterOptions):
154
115
  * }));
155
116
  * ```
156
117
  */
157
- export declare function createRequestTransformInterceptor(transform: (request: MiddlewareRequest) => MiddlewareRequest | Promise<MiddlewareRequest>): Middleware;
118
+ export declare function createRequestTransformInterceptor(transform: (request: ClientMiddlewareRequest) => ClientMiddlewareRequest | Promise<ClientMiddlewareRequest>): ClientMiddleware;
158
119
  /**
159
120
  * Response transformation interceptor
160
121
  *
@@ -169,24 +130,7 @@ export declare function createRequestTransformInterceptor(transform: (request: M
169
130
  * }));
170
131
  * ```
171
132
  */
172
- export declare function createResponseTransformInterceptor(transform: (response: MiddlewareResponse) => MiddlewareResponse | Promise<MiddlewareResponse>): Middleware;
173
- /**
174
- * Cache options
175
- */
176
- export type CacheInterceptorOptions = {
177
- /** Cache TTL in milliseconds */
178
- ttl: number;
179
- /** Maximum cache size */
180
- maxSize?: number;
181
- /** Cache key generator */
182
- keyGenerator?: (request: MiddlewareRequest) => string;
183
- /** Methods to cache (default: ['GET']) */
184
- methods?: string[];
185
- /** Paths to cache (regex patterns) */
186
- includePaths?: RegExp[];
187
- /** Paths to exclude from cache */
188
- excludePaths?: RegExp[];
189
- };
133
+ export declare function createResponseTransformInterceptor(transform: (response: ClientMiddlewareResponse) => ClientMiddlewareResponse | Promise<ClientMiddlewareResponse>): ClientMiddleware;
190
134
  /**
191
135
  * Caching interceptor
192
136
  *
@@ -201,16 +145,7 @@ export type CacheInterceptorOptions = {
201
145
  * }));
202
146
  * ```
203
147
  */
204
- export declare function createCacheInterceptor(options: CacheInterceptorOptions): Middleware;
205
- /**
206
- * Timeout interceptor options
207
- */
208
- export type TimeoutInterceptorOptions = {
209
- /** Timeout in milliseconds */
210
- timeout: number;
211
- /** Callback when timeout occurs */
212
- onTimeout?: (request: MiddlewareRequest) => void;
213
- };
148
+ export declare function createCacheInterceptor(options: CacheInterceptorOptions): ClientMiddleware;
214
149
  /**
215
150
  * Timeout interceptor
216
151
  *
@@ -224,18 +159,7 @@ export type TimeoutInterceptorOptions = {
224
159
  * }));
225
160
  * ```
226
161
  */
227
- export declare function createTimeoutInterceptor(options: TimeoutInterceptorOptions): Middleware;
228
- /**
229
- * Error handling interceptor options
230
- */
231
- export type ErrorHandlerOptions = {
232
- /** Custom error handler */
233
- onError?: (error: Error, request: MiddlewareRequest) => Error | void;
234
- /** Transform error response */
235
- transformError?: (error: unknown) => ApiError;
236
- /** Report errors to external service */
237
- reportError?: (error: Error, context: MiddlewareContext) => void | Promise<void>;
238
- };
162
+ export declare function createTimeoutInterceptor(options: TimeoutInterceptorOptions): ClientMiddleware;
239
163
  /**
240
164
  * Error handling interceptor
241
165
  *
@@ -253,7 +177,7 @@ export type ErrorHandlerOptions = {
253
177
  * }));
254
178
  * ```
255
179
  */
256
- export declare function createErrorHandlerInterceptor(options?: ErrorHandlerOptions): Middleware;
180
+ export declare function createErrorHandlerInterceptor(options?: ErrorHandlerOptions): ClientMiddleware;
257
181
  /**
258
182
  * Compose multiple middleware into one
259
183
  *
@@ -268,7 +192,7 @@ export declare function createErrorHandlerInterceptor(options?: ErrorHandlerOpti
268
192
  * client.use(combinedMiddleware);
269
193
  * ```
270
194
  */
271
- export declare function composeMiddleware(...middlewares: Middleware[]): Middleware;
195
+ export declare function composeMiddleware(...middlewares: ClientMiddleware[]): ClientMiddleware;
272
196
  /**
273
197
  * Conditionally apply middleware
274
198
  *
@@ -280,4 +204,4 @@ export declare function composeMiddleware(...middlewares: Middleware[]): Middlew
280
204
  * ));
281
205
  * ```
282
206
  */
283
- export declare function conditionalMiddleware(condition: (request: MiddlewareRequest) => boolean, middleware: Middleware): Middleware;
207
+ export declare function conditionalMiddleware(condition: (request: ClientMiddlewareRequest) => boolean, middleware: ClientMiddleware): ClientMiddleware;
@@ -93,6 +93,9 @@ export function createDynamicAuthInterceptor(getAuth) {
93
93
  return next();
94
94
  };
95
95
  }
96
+ // =============================================================================
97
+ // Logging Interceptors
98
+ // =============================================================================
96
99
  /**
97
100
  * Logging interceptor
98
101
  *
@@ -170,6 +173,9 @@ export function createLoggingInterceptor(options = {}) {
170
173
  }
171
174
  };
172
175
  }
176
+ // =============================================================================
177
+ // Retry Interceptors
178
+ // =============================================================================
173
179
  /**
174
180
  * Retry interceptor with exponential backoff
175
181
  *
@@ -238,6 +244,9 @@ export function createRetryInterceptor(options) {
238
244
  throw lastError ?? new Error("Max retries exceeded");
239
245
  };
240
246
  }
247
+ // =============================================================================
248
+ // Rate Limiting Interceptors
249
+ // =============================================================================
241
250
  /**
242
251
  * Token bucket rate limiter
243
252
  */
@@ -368,6 +377,9 @@ export function createResponseTransformInterceptor(transform) {
368
377
  return transform(response);
369
378
  };
370
379
  }
380
+ // =============================================================================
381
+ // Caching Interceptors
382
+ // =============================================================================
371
383
  /**
372
384
  * Simple in-memory cache
373
385
  */
@@ -459,6 +471,9 @@ export function createCacheInterceptor(options) {
459
471
  return response;
460
472
  };
461
473
  }
474
+ // =============================================================================
475
+ // Timeout Interceptors
476
+ // =============================================================================
462
477
  /**
463
478
  * Timeout interceptor
464
479
  *
@@ -506,6 +521,9 @@ export function createTimeoutInterceptor(options) {
506
521
  }
507
522
  };
508
523
  }
524
+ // =============================================================================
525
+ // Error Handling Interceptors
526
+ // =============================================================================
509
527
  /**
510
528
  * Error handling interceptor
511
529
  *
@@ -15,7 +15,7 @@
15
15
  * @module @neurolink/react
16
16
  */
17
17
  import type { ReactNode } from "react";
18
- import type { NeuroLinkProviderProps, UseChatOptions, UseChatReturn, UseAgentOptions, UseAgentReturn, UseWorkflowOptions, UseWorkflowReturn, UseVoiceOptions, UseVoiceReturn, UseStreamOptions, UseStreamReturn, UseToolsOptions, UseToolsReturn, ClientChatMessage as ChatMessage, SpeechRecognitionInternal } from "../types/clientTypes.js";
18
+ import type { NeuroLinkProviderProps, UseChatOptions, UseChatReturn, UseAgentOptions, UseAgentReturn, UseWorkflowOptions, UseWorkflowReturn, UseVoiceOptions, UseVoiceReturn, UseStreamOptions, UseStreamReturn, UseToolsOptions, UseToolsReturn, SpeechRecognitionInternal } from "../types/index.js";
19
19
  import { NeuroLinkClient } from "./httpClient.js";
20
20
  /**
21
21
  * Provider component for NeuroLink client
@@ -226,7 +226,6 @@ export declare function useStream(options?: UseStreamOptions): UseStreamReturn;
226
226
  * ```
227
227
  */
228
228
  export declare function useTools(options?: UseToolsOptions): UseToolsReturn;
229
- export type { NeuroLinkProviderProps, UseChatOptions, UseChatReturn, UseAgentOptions, UseAgentReturn, UseWorkflowOptions, UseWorkflowReturn, UseVoiceOptions, UseVoiceReturn, UseStreamOptions, UseStreamReturn, UseToolsOptions, UseToolsReturn, ChatMessage, };
230
229
  declare global {
231
230
  interface Window {
232
231
  SpeechRecognition: {
@@ -7,48 +7,7 @@
7
7
  *
8
8
  * @module @neurolink/client/sseClient
9
9
  */
10
- import type { ClientConfig, StreamCallbacks, ClientStreamEvent as StreamEvent, ClientStreamResult as StreamResult, ApiError } from "../types/clientTypes.js";
11
- /**
12
- * SSE connection state
13
- */
14
- export type SSEState = "connecting" | "connected" | "disconnected" | "error";
15
- /**
16
- * SSE client configuration
17
- */
18
- export type SSEConfig = ClientConfig & {
19
- /** Auto-reconnect on disconnect (default: true) */
20
- autoReconnect?: boolean;
21
- /** Maximum reconnection attempts (default: 5) */
22
- maxReconnectAttempts?: number;
23
- /** Initial reconnection delay in ms (default: 1000) */
24
- reconnectDelay?: number;
25
- /** Maximum reconnection delay in ms (default: 30000) */
26
- maxReconnectDelay?: number;
27
- /** Use native EventSource when available (default: false for more control) */
28
- useNativeEventSource?: boolean;
29
- };
30
- /**
31
- * SSE request options
32
- */
33
- export type SSERequestOptions = {
34
- /** Request body */
35
- body?: unknown;
36
- /** Additional headers */
37
- headers?: Record<string, string>;
38
- /** Abort signal */
39
- signal?: AbortSignal;
40
- };
41
- /**
42
- * SSE event handlers
43
- */
44
- export type SSEEventHandlers = {
45
- onOpen?: () => void;
46
- onClose?: () => void;
47
- onError?: (error: Error) => void;
48
- onEvent?: (event: StreamEvent) => void;
49
- onReconnect?: (attempt: number) => void;
50
- onStateChange?: (state: SSEState) => void;
51
- };
10
+ import type { ClientStreamCallbacks, ClientStreamEvent as StreamEvent, ClientStreamResult as StreamResult, ClientApiError, SSEConfig, SSEEventHandlers, SSERequestOptions, SSEState } from "../types/index.js";
52
11
  /**
53
12
  * SSE streaming client for NeuroLink
54
13
  *
@@ -89,7 +48,7 @@ export declare class NeuroLinkSSE {
89
48
  /**
90
49
  * Stream from an endpoint using SSE
91
50
  */
92
- stream(path: string, options?: SSERequestOptions, callbacks?: StreamCallbacks): Promise<void>;
51
+ stream(path: string, options?: SSERequestOptions, callbacks?: ClientStreamCallbacks): Promise<void>;
93
52
  /**
94
53
  * Abort the current stream
95
54
  */
@@ -107,7 +66,7 @@ export declare class NeuroLinkSSE {
107
66
  temperature?: number;
108
67
  maxTokens?: number;
109
68
  systemPrompt?: string;
110
- } & StreamCallbacks): Promise<string>;
69
+ } & ClientStreamCallbacks): Promise<string>;
111
70
  /**
112
71
  * Stream a chat request
113
72
  */
@@ -117,11 +76,11 @@ export declare class NeuroLinkSSE {
117
76
  }>, options?: {
118
77
  agentId?: string;
119
78
  sessionId?: string;
120
- } & StreamCallbacks): Promise<string>;
79
+ } & ClientStreamCallbacks): Promise<string>;
121
80
  /**
122
81
  * Stream an agent execution
123
82
  */
124
- executeAgent(agentId: string, input: string, options?: StreamCallbacks): Promise<string>;
83
+ executeAgent(agentId: string, input: string, options?: ClientStreamCallbacks): Promise<string>;
125
84
  /**
126
85
  * Stream using the browser's native EventSource API (GET requests only).
127
86
  * Provides automatic reconnection handled by the browser and a simpler
@@ -153,4 +112,4 @@ export declare class NeuroLinkSSE {
153
112
  * ```
154
113
  */
155
114
  export declare function createSSEClient(config: SSEConfig): NeuroLinkSSE;
156
- export type { StreamCallbacks, StreamEvent, StreamResult, ApiError };
115
+ export type { ClientStreamCallbacks, StreamEvent, StreamResult, ClientApiError, };
@@ -6,66 +6,7 @@
6
6
  *
7
7
  * @module @neurolink/client/streaming
8
8
  */
9
- import type { ClientStreamEvent as StreamEvent, StreamCallbacks, ClientStreamResult as StreamResult, ApiError, WebSocketOptions, WebSocketState, WebSocketMessageHandler } from "../types/clientTypes.js";
10
- import type { JsonObject, UnknownRecord } from "../types/common.js";
11
- import type { ToolCall, ToolResult } from "../types/streamTypes.js";
12
- /**
13
- * SSE connection options
14
- */
15
- export type SSEConnectionOptions = {
16
- /** Request headers */
17
- headers?: Record<string, string>;
18
- /** Request credentials */
19
- credentials?: RequestCredentials;
20
- /** Reconnect on disconnect */
21
- autoReconnect?: boolean;
22
- /** Reconnect delay in milliseconds */
23
- reconnectDelay?: number;
24
- /** Maximum reconnect attempts */
25
- maxReconnectAttempts?: number;
26
- /** Signal for request cancellation */
27
- signal?: AbortSignal;
28
- };
29
- /**
30
- * SSE connection state
31
- */
32
- export type SSEConnectionState = "connecting" | "connected" | "disconnected" | "reconnecting" | "error";
33
- /**
34
- * Streaming request options
35
- */
36
- export type StreamingRequestOptions = {
37
- /** Input text or data */
38
- input: {
39
- text: string;
40
- } & UnknownRecord;
41
- /** Provider to use */
42
- provider?: string;
43
- /** Model to use */
44
- model?: string;
45
- /** Temperature */
46
- temperature?: number;
47
- /** Maximum tokens */
48
- maxTokens?: number;
49
- /** System prompt */
50
- systemPrompt?: string;
51
- /** Enable tools */
52
- enableTools?: boolean;
53
- /** Context data */
54
- context?: UnknownRecord;
55
- };
56
- /**
57
- * Streaming event emitter interface
58
- */
59
- export type StreamingEventEmitter = {
60
- on(event: "text", callback: (text: string) => void): void;
61
- on(event: "tool-call", callback: (toolCall: ToolCall) => void): void;
62
- on(event: "tool-result", callback: (toolResult: ToolResult) => void): void;
63
- on(event: "error", callback: (error: ApiError) => void): void;
64
- on(event: "done", callback: (result: StreamResult) => void): void;
65
- on(event: "metadata", callback: (metadata: JsonObject) => void): void;
66
- off(event: string, callback: (...args: unknown[]) => void): void;
67
- emit(event: string, ...args: unknown[]): void;
68
- };
9
+ import type { ClientStreamEvent as StreamEvent, ClientStreamCallbacks, ClientStreamResult as StreamResult, ClientWebSocketOptions, ClientWebSocketState, ClientWebSocketMessageHandler, SSEConnectionOptions, SSEConnectionState, StreamingClientConfig, StreamingRequestOptions } from "../types/index.js";
69
10
  /**
70
11
  * Server-Sent Events (SSE) Client
71
12
  *
@@ -185,7 +126,7 @@ export declare class WebSocketStreamingClient {
185
126
  private reconnectAttempts;
186
127
  private heartbeatInterval;
187
128
  private eventHandlers;
188
- constructor(options: WebSocketOptions);
129
+ constructor(options: ClientWebSocketOptions);
189
130
  /**
190
131
  * Connect to WebSocket server
191
132
  */
@@ -221,11 +162,11 @@ export declare class WebSocketStreamingClient {
221
162
  /**
222
163
  * Register event handler
223
164
  */
224
- on(event: string, callback: WebSocketMessageHandler): void;
165
+ on(event: string, callback: ClientWebSocketMessageHandler): void;
225
166
  /**
226
167
  * Remove event handler
227
168
  */
228
- off(event: string, callback: WebSocketMessageHandler): void;
169
+ off(event: string, callback: ClientWebSocketMessageHandler): void;
229
170
  /**
230
171
  * Emit event
231
172
  */
@@ -233,27 +174,12 @@ export declare class WebSocketStreamingClient {
233
174
  /**
234
175
  * Get current connection state
235
176
  */
236
- getState(): WebSocketState;
177
+ getState(): ClientWebSocketState;
237
178
  /**
238
179
  * Create async iterator for messages
239
180
  */
240
181
  messages(): AsyncGenerator<unknown, void, unknown>;
241
182
  }
242
- /**
243
- * Streaming client configuration
244
- */
245
- export type StreamingClientConfig = {
246
- /** Base URL for the API */
247
- baseUrl: string;
248
- /** API key */
249
- apiKey?: string;
250
- /** Bearer token */
251
- token?: string;
252
- /** Default headers */
253
- headers?: Record<string, string>;
254
- /** Preferred transport: 'sse' or 'websocket' */
255
- transport?: "sse" | "websocket";
256
- };
257
183
  /**
258
184
  * Streaming Client Factory
259
185
  *
@@ -293,12 +219,12 @@ export declare function createStreamingClient(config: StreamingClientConfig): {
293
219
  connect: () => Promise<void>;
294
220
  disconnect: () => void;
295
221
  stream: (options: StreamingRequestOptions & {
296
- callbacks?: StreamCallbacks;
222
+ callbacks?: ClientStreamCallbacks;
297
223
  }) => Promise<StreamResult>;
298
224
  send: (data: unknown) => void;
299
- on: (event: string, callback: WebSocketMessageHandler) => void;
300
- off: (event: string, callback: WebSocketMessageHandler) => void;
301
- getState: () => WebSocketState;
225
+ on: (event: string, callback: ClientWebSocketMessageHandler) => void;
226
+ off: (event: string, callback: ClientWebSocketMessageHandler) => void;
227
+ getState: () => ClientWebSocketState;
302
228
  };
303
229
  /**
304
230
  * Create an async iterable from streaming response
@@ -9,6 +9,9 @@
9
9
  import { logger } from "../utils/logger.js";
10
10
  import { combineSignals, sleep } from "./httpClient.js";
11
11
  // =============================================================================
12
+ // Types
13
+ // =============================================================================
14
+ // =============================================================================
12
15
  // SSE Client
13
16
  // =============================================================================
14
17
  /**
@@ -630,6 +633,9 @@ export class WebSocketStreamingClient {
630
633
  }
631
634
  }
632
635
  }
636
+ // =============================================================================
637
+ // Streaming Client Factory
638
+ // =============================================================================
633
639
  /**
634
640
  * Streaming Client Factory
635
641
  *
@@ -7,15 +7,7 @@
7
7
  *
8
8
  * @module @neurolink/client/wsClient
9
9
  */
10
- import type { StreamCallbacks, ClientStreamEvent as StreamEvent, ClientStreamResult as StreamResult, ApiError, WSClientState, WSClientConfig, WSClientMessage, WSClientEventHandlers } from "../types/clientTypes.js";
11
- /** @see WSClientState */
12
- export type WebSocketState = WSClientState;
13
- /** @see WSClientConfig */
14
- export type WebSocketConfig = WSClientConfig;
15
- /** @see WSClientMessage */
16
- export type WebSocketMessage = WSClientMessage;
17
- /** @see WSClientEventHandlers */
18
- export type WebSocketEventHandlers = WSClientEventHandlers;
10
+ import type { ClientStreamCallbacks, ClientStreamEvent as StreamEvent, ClientStreamResult as StreamResult, ClientApiError, WebSocketEventHandlers, ClientClientWebSocketState, ClientWebSocketMessage, ClientWebSocketConfig } from "../types/index.js";
19
11
  /**
20
12
  * WebSocket streaming client for NeuroLink
21
13
  *
@@ -57,11 +49,11 @@ export declare class NeuroLinkWebSocket {
57
49
  * original configuration so that a subsequent connect() still honours it.
58
50
  */
59
51
  private disconnectRequested;
60
- constructor(config: WebSocketConfig);
52
+ constructor(config: ClientWebSocketConfig);
61
53
  /**
62
54
  * Get current connection state
63
55
  */
64
- getState(): WebSocketState;
56
+ getState(): ClientClientWebSocketState;
65
57
  /**
66
58
  * Check if connected
67
59
  */
@@ -80,11 +72,11 @@ export declare class NeuroLinkWebSocket {
80
72
  /**
81
73
  * Send a message through WebSocket
82
74
  */
83
- send(message: WebSocketMessage): void;
75
+ send(message: ClientWebSocketMessage): void;
84
76
  /**
85
77
  * Subscribe to a channel with streaming callbacks
86
78
  */
87
- subscribe(channel: string, callbacks: StreamCallbacks): void;
79
+ subscribe(channel: string, callbacks: ClientStreamCallbacks): void;
88
80
  /**
89
81
  * Unsubscribe from a channel
90
82
  */
@@ -94,7 +86,7 @@ export declare class NeuroLinkWebSocket {
94
86
  */
95
87
  stream(prompt: string, options?: {
96
88
  channel?: string;
97
- } & StreamCallbacks): void;
89
+ } & ClientStreamCallbacks): void;
98
90
  private setupEventListeners;
99
91
  private handleMessage;
100
92
  private dispatchToCallbacks;
@@ -126,5 +118,5 @@ export declare class NeuroLinkWebSocket {
126
118
  * });
127
119
  * ```
128
120
  */
129
- export declare function createWebSocketClient(config: WebSocketConfig): NeuroLinkWebSocket;
130
- export type { StreamCallbacks, StreamEvent, StreamResult, ApiError };
121
+ export declare function createWebSocketClient(config: ClientWebSocketConfig): NeuroLinkWebSocket;
122
+ export type { ClientStreamCallbacks, StreamEvent, StreamResult, ClientApiError, };
@@ -2,7 +2,7 @@
2
2
  * NeuroLink Config Manager with Backup/Restore System
3
3
  * Industry standard configuration management with safety mechanisms
4
4
  */
5
- import type { NeuroLinkConfig, ProviderConfig, BackupInfo, ConfigValidationResult, ConfigUpdateOptions } from "../types/configTypes.js";
5
+ import type { NeuroLinkConfig, ProviderRuntimeConfig, BackupInfo, ConfigValidationResult, ConfigUpdateOptions } from "../types/index.js";
6
6
  /**
7
7
  * Enhanced Config Manager with automatic backup/restore capabilities
8
8
  */
@@ -42,7 +42,7 @@ export declare class NeuroLinkConfigManager {
42
42
  /**
43
43
  * Update provider status
44
44
  */
45
- updateProviderStatus(providerId: string, status: Partial<ProviderConfig>): Promise<void>;
45
+ updateProviderStatus(providerId: string, status: Partial<ProviderRuntimeConfig>): Promise<void>;
46
46
  /**
47
47
  * Validate configuration
48
48
  */
@@ -6,7 +6,7 @@ import { promises as fs } from "fs";
6
6
  import { join } from "path";
7
7
  import { createHash } from "crypto";
8
8
  import { logger } from "../utils/logger.js";
9
- import { DEFAULT_CONFIG } from "../types/configTypes.js";
9
+ import { DEFAULT_CONFIG } from "../types/index.js";
10
10
  const { readFile, writeFile, readdir, mkdir, unlink, access } = fs;
11
11
  /**
12
12
  * Enhanced Config Manager with automatic backup/restore capabilities
@@ -2,7 +2,7 @@
2
2
  * Conversation Memory Configuration
3
3
  * Provides default values for conversation memory feature with environment variable support
4
4
  */
5
- import type { ConversationMemoryConfig } from "../types/conversation.js";
5
+ import type { ConversationMemoryConfig } from "../types/index.js";
6
6
  /**
7
7
  * Default maximum number of turns per session
8
8
  * @deprecated Use tokenThreshold-based memory management instead.
@@ -182,4 +182,3 @@ export declare const CONSTANTS_METADATA: {
182
182
  };
183
183
  export { AIProviderName, OpenRouterModels, BedrockModels, OpenAIModels, AzureOpenAIModels, VertexModels, GoogleAIModels, AnthropicModels, MistralModels, OllamaModels, LiteLLMModels, HuggingFaceModels, SageMakerModels, APIVersions, ErrorCategory, ErrorSeverity, AnthropicBetaFeature, TOKEN_EXPIRY_BUFFER_MS, } from "./enums.js";
184
184
  export { VIDEO_ERROR_CODES } from "./videoErrors.js";
185
- export type { ClaudeSubscriptionTier, AnthropicAuthMethod, } from "../types/subscriptionTypes.js";
@@ -205,4 +205,5 @@ AnthropicBetaFeature,
205
205
  TOKEN_EXPIRY_BUFFER_MS, } from "./enums.js";
206
206
  // ===== ERROR CODES =====
207
207
  export { VIDEO_ERROR_CODES } from "./videoErrors.js";
208
+ // Re-export subscription types from canonical location for convenience
208
209
  //# sourceMappingURL=index.js.map
@@ -6,8 +6,7 @@
6
6
  *
7
7
  * This runs BEFORE every LLM call to prevent context overflow.
8
8
  */
9
- import type { BudgetCheckResult, BudgetCheckParams } from "../types/contextTypes.js";
10
- export type { BudgetCheckResult, BudgetCheckParams, } from "../types/contextTypes.js";
9
+ import type { BudgetCheckResult, BudgetCheckParams } from "../types/index.js";
11
10
  /**
12
11
  * Check whether a request fits within the model's context budget.
13
12
  *
@@ -8,8 +8,7 @@
8
8
  */
9
9
  import { getAvailableInputTokens } from "../constants/contextWindows.js";
10
10
  import { estimateMessagesTokens, estimateTokens, TOKENS_PER_MESSAGE, } from "../utils/tokenEstimation.js";
11
- import { SpanSerializer, SpanType, SpanStatus, } from "../observability/index.js";
12
- import { getMetricsAggregator } from "../observability/index.js";
11
+ import { SpanSerializer, SpanType, SpanStatus, getMetricsAggregator, } from "../observability/index.js";
13
12
  /** Default compaction threshold (80% of available input) */
14
13
  const DEFAULT_COMPACTION_THRESHOLD = 0.8;
15
14
  /** Estimated tokens per tool definition */
@@ -8,9 +8,7 @@
8
8
  * Stage 3: LLM Summarization (expensive -- requires LLM call)
9
9
  * Stage 4: Sliding Window Truncation (fallback -- no LLM call)
10
10
  */
11
- import type { ChatMessage, ConversationMemoryConfig } from "../types/conversation.js";
12
- import type { CompactionResult, CompactionConfig } from "../types/contextTypes.js";
13
- export type { CompactionConfig, CompactionResult, CompactionStage, } from "../types/contextTypes.js";
11
+ import type { ChatMessage, ConversationMemoryConfig, CompactionResult, CompactionConfig } from "../types/index.js";
14
12
  export declare class ContextCompactor {
15
13
  private config;
16
14
  constructor(config?: CompactionConfig);