@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
@@ -16,10 +16,7 @@
16
16
  *
17
17
  * @module core/modules/Utilities
18
18
  */
19
- import type { AIProviderName, TextGenerationOptions } from "../../types/index.js";
20
- import type { StreamOptions } from "../../types/streamTypes.js";
21
- import type { MiddlewareFactoryOptions } from "../../types/middlewareTypes.js";
22
- import type { ZodUnknownSchema } from "../../types/typeAliases.js";
19
+ import type { AIProviderName, TextGenerationOptions, StreamOptions, MiddlewareFactoryOptions, ZodUnknownSchema } from "../../types/index.js";
23
20
  /**
24
21
  * Utilities class - Provides validation, normalization, and utility methods
25
22
  */
@@ -2,8 +2,7 @@
2
2
  * Redis Conversation Memory Manager for NeuroLink
3
3
  * Redis-based implementation of conversation storage with same interface as ConversationMemoryManager
4
4
  */
5
- import type { ChatMessage, ConversationMemoryConfig, ConversationMemoryStats, RedisConversationObject, RedisStorageConfig, SessionMemory, SessionMetadata, StoreConversationTurnOptions, AgenticLoopReportMetadata } from "../types/conversation.js";
6
- import type { IConversationMemoryManager } from "../types/conversationMemoryInterface.js";
5
+ import type { ChatMessage, ConversationMemoryConfig, ConversationMemoryStats, RedisConversationObject, RedisStorageConfig, SessionMemory, SessionMetadata, StoreConversationTurnOptions, AgenticLoopReportMetadata, IConversationMemoryManager } from "../types/index.js";
7
6
  /**
8
7
  * Redis-based implementation of the ConversationMemoryManager
9
8
  * Uses the same interface but stores data in Redis
@@ -10,7 +10,7 @@ import { generateToolOutputPreview } from "../context/toolOutputLimits.js";
10
10
  import { NEUROLINK_ARTIFACT_ID_KEY } from "../mcp/mcpOutputNormalizer.js";
11
11
  import { SummarizationEngine } from "../context/summarizationEngine.js";
12
12
  import { NeuroLink } from "../neurolink.js";
13
- import { ConversationMemoryError } from "../types/conversation.js";
13
+ import { ConversationMemoryError } from "../types/index.js";
14
14
  import { withTimeout } from "../utils/errorHandling.js";
15
15
  import { buildContextFromPointer, getEffectiveTokenThreshold, } from "../utils/conversationMemory.js";
16
16
  import { runWithCurrentLangfuseContext } from "../services/server/ai/observability/instrumentation.js";
@@ -2,7 +2,7 @@
2
2
  * Service Registry for Dependency Injection
3
3
  * Breaks circular dependencies by providing lazy loading and centralized service management
4
4
  */
5
- import type { ServiceFactory } from "../types/serviceTypes.js";
5
+ import type { ServiceFactory } from "../types/index.js";
6
6
  export declare class ServiceRegistry {
7
7
  private static services;
8
8
  private static initializing;
@@ -1,5 +1,4 @@
1
- import type { AnalyticsData, TokenUsage } from "../types/analytics.js";
2
- import type { StreamTextResult, StreamAnalyticsCollector, ResponseMetadata } from "../types/streamTypes.js";
1
+ import type { AnalyticsData, TokenUsage, StreamTextResult, StreamAnalyticsCollector, ResponseMetadata } from "../types/index.js";
3
2
  /**
4
3
  * Base implementation for collecting analytics from Vercel AI SDK stream results
5
4
  */
@@ -3,14 +3,11 @@
3
3
  * Enables parallel evaluation with configurable concurrency and error handling.
4
4
  */
5
5
  import type { LanguageModelV3CallOptions } from "@ai-sdk/provider";
6
- import type { GenerateResult } from "../types/generateTypes.js";
7
- import type { EvaluationConfig } from "../types/evaluationTypes.js";
8
- import type { EvaluationData } from "../types/evaluation.js";
9
- import type { AutoEvaluationConfig } from "../types/middlewareTypes.js";
6
+ import type { GenerateResult, EvaluationConfig, EvaluationData, AutoEvaluationConfig } from "../types/index.js";
10
7
  /**
11
8
  * Configuration for batch evaluation.
12
9
  */
13
- export interface BatchEvaluationConfig extends EvaluationConfig {
10
+ type BatchEvaluationConfig = EvaluationConfig & {
14
11
  /** Maximum number of concurrent evaluations (default: 5) */
15
12
  concurrency?: number;
16
13
  /** Whether to continue on individual failures (default: true) */
@@ -23,11 +20,11 @@ export interface BatchEvaluationConfig extends EvaluationConfig {
23
20
  onProgress?: (progress: BatchProgress) => void;
24
21
  /** Callback for individual evaluation completion */
25
22
  onItemComplete?: (result: BatchEvaluationItemResult) => void;
26
- }
23
+ };
27
24
  /**
28
25
  * Progress information for batch evaluation.
29
26
  */
30
- export interface BatchProgress {
27
+ type BatchProgress = {
31
28
  /** Total items to evaluate */
32
29
  total: number;
33
30
  /** Items completed (success + failed) */
@@ -40,11 +37,11 @@ export interface BatchProgress {
40
37
  pending: number;
41
38
  /** Percentage complete */
42
39
  percentComplete: number;
43
- }
40
+ };
44
41
  /**
45
42
  * Input item for batch evaluation.
46
43
  */
47
- export interface BatchEvaluationItem {
44
+ type BatchEvaluationItem = {
48
45
  /** Unique identifier for this item */
49
46
  id: string;
50
47
  /** The generation options */
@@ -53,11 +50,11 @@ export interface BatchEvaluationItem {
53
50
  result: GenerateResult;
54
51
  /** Optional item-specific threshold override */
55
52
  threshold?: number;
56
- }
53
+ };
57
54
  /**
58
55
  * Result for a single item in batch evaluation.
59
56
  */
60
- export interface BatchEvaluationItemResult {
57
+ type BatchEvaluationItemResult = {
61
58
  /** The item ID */
62
59
  id: string;
63
60
  /** Whether the evaluation succeeded */
@@ -74,11 +71,11 @@ export interface BatchEvaluationItemResult {
74
71
  duration: number;
75
72
  /** Number of retry attempts (if any) */
76
73
  retryCount: number;
77
- }
74
+ };
78
75
  /**
79
76
  * Result of a batch evaluation operation.
80
77
  */
81
- export interface BatchEvaluationResult {
78
+ type BatchEvaluationResult = {
82
79
  /** All item results */
83
80
  results: BatchEvaluationItemResult[];
84
81
  /** Summary statistics */
@@ -100,7 +97,7 @@ export interface BatchEvaluationResult {
100
97
  };
101
98
  /** Whether all evaluations succeeded */
102
99
  allSucceeded: boolean;
103
- }
100
+ };
104
101
  /**
105
102
  * BatchEvaluator - Performs evaluation on multiple items in parallel.
106
103
  * Supports configurable concurrency, retry logic, and progress tracking.
@@ -161,3 +158,4 @@ export declare class BatchEvaluator {
161
158
  */
162
159
  private delay;
163
160
  }
161
+ export {};
@@ -2,11 +2,11 @@
2
2
  * @file EvaluationAggregator - Aggregates and analyzes evaluation results.
3
3
  * Provides statistical analysis, trend detection, and summary generation.
4
4
  */
5
- import type { EvaluationData } from "../types/evaluation.js";
5
+ import type { EvaluationData } from "../types/index.js";
6
6
  /**
7
7
  * Statistical summary of evaluation scores.
8
8
  */
9
- export interface ScoreStatistics {
9
+ type ScoreStatistics = {
10
10
  /** Minimum score */
11
11
  min: number;
12
12
  /** Maximum score */
@@ -27,11 +27,11 @@ export interface ScoreStatistics {
27
27
  p90: number;
28
28
  /** 95th percentile */
29
29
  p95: number;
30
- }
30
+ };
31
31
  /**
32
32
  * Score distribution across ranges.
33
33
  */
34
- export interface ScoreDistribution {
34
+ type ScoreDistribution = {
35
35
  /** Items scoring 1-3 (poor) */
36
36
  poor: number;
37
37
  /** Items scoring 4-5 (below average) */
@@ -42,11 +42,11 @@ export interface ScoreDistribution {
42
42
  good: number;
43
43
  /** Items scoring 10 (excellent) */
44
44
  excellent: number;
45
- }
45
+ };
46
46
  /**
47
47
  * Trend analysis results.
48
48
  */
49
- export interface TrendAnalysis {
49
+ type TrendAnalysis = {
50
50
  /** Direction of the trend */
51
51
  direction: "improving" | "declining" | "stable";
52
52
  /** Slope of the linear regression */
@@ -57,11 +57,11 @@ export interface TrendAnalysis {
57
57
  percentChange: number;
58
58
  /** Moving average of last N evaluations */
59
59
  movingAverage: number;
60
- }
60
+ };
61
61
  /**
62
62
  * Dimension-specific analysis for RAGAS metrics.
63
63
  */
64
- export interface DimensionAnalysis {
64
+ type DimensionAnalysis = {
65
65
  /** Relevance score statistics */
66
66
  relevance: ScoreStatistics;
67
67
  /** Accuracy score statistics */
@@ -76,11 +76,11 @@ export interface DimensionAnalysis {
76
76
  relevanceCompleteness: number;
77
77
  accuracyCompleteness: number;
78
78
  };
79
- }
79
+ };
80
80
  /**
81
81
  * Quality alerts summary.
82
82
  */
83
- export interface AlertSummary {
83
+ type AlertSummary = {
84
84
  /** Total number of alerts */
85
85
  total: number;
86
86
  /** Number of high severity alerts */
@@ -91,11 +91,11 @@ export interface AlertSummary {
91
91
  offTopic: number;
92
92
  /** Alert rate as percentage */
93
93
  alertRate: number;
94
- }
94
+ };
95
95
  /**
96
96
  * Comprehensive aggregation result.
97
97
  */
98
- export interface AggregationResult {
98
+ type AggregationResult = {
99
99
  /** Number of evaluations aggregated */
100
100
  count: number;
101
101
  /** Statistics for overall scores */
@@ -118,7 +118,7 @@ export interface AggregationResult {
118
118
  threshold: number;
119
119
  evaluationModels: string[];
120
120
  };
121
- }
121
+ };
122
122
  /**
123
123
  * EvaluationAggregator - Aggregates evaluation results and provides analytics.
124
124
  * Supports statistical analysis, trend detection, and quality monitoring.
@@ -270,3 +270,4 @@ export declare class EvaluationAggregator {
270
270
  */
271
271
  generateSummary(threshold?: number): string;
272
272
  }
273
+ export {};
@@ -3,19 +3,19 @@
3
3
  * Extends BaseFactory to provide dynamic evaluator creation with configuration support.
4
4
  */
5
5
  import { BaseFactory } from "../core/infrastructure/index.js";
6
- import type { EvaluationConfig } from "../types/evaluationTypes.js";
6
+ import type { EvaluationConfig } from "../types/index.js";
7
7
  import { Evaluator } from "./index.js";
8
8
  /**
9
9
  * Configuration presets for common evaluation scenarios.
10
10
  */
11
- export interface EvaluatorPreset {
11
+ type EvaluatorPreset = {
12
12
  /** Preset name for identification */
13
13
  name: string;
14
14
  /** Description of the preset use case */
15
15
  description: string;
16
16
  /** The underlying evaluation configuration (optional for built-in presets) */
17
17
  config?: EvaluationConfig;
18
- }
18
+ };
19
19
  /**
20
20
  * Factory for creating Evaluator instances with various configurations.
21
21
  * Supports presets for common use cases and custom configurations.
@@ -111,3 +111,4 @@ export declare class EvaluatorFactory extends BaseFactory<Evaluator, EvaluationC
111
111
  unregisterPreset(name: string): boolean;
112
112
  }
113
113
  export declare const getEvaluatorFactory: () => EvaluatorFactory;
114
+ export {};
@@ -4,19 +4,18 @@
4
4
  */
5
5
  import { BaseRegistry } from "../core/infrastructure/index.js";
6
6
  import type { LanguageModelV3CallOptions } from "@ai-sdk/provider";
7
- import type { GenerateResult } from "../types/generateTypes.js";
8
- import type { EvaluationResult, EnhancedEvaluationContext } from "../types/evaluationTypes.js";
7
+ import type { GenerateResult, EvaluationResult, EnhancedEvaluationContext } from "../types/index.js";
9
8
  /**
10
9
  * A function that performs evaluation and returns results.
11
10
  */
12
- export type EvaluationStrategyFunction = (options: LanguageModelV3CallOptions, result: GenerateResult, config?: EvaluationStrategyConfig) => Promise<{
11
+ type EvaluationStrategyFunction = (options: LanguageModelV3CallOptions, result: GenerateResult, config?: EvaluationStrategyConfig) => Promise<{
13
12
  evaluationResult: EvaluationResult;
14
13
  evalContext: EnhancedEvaluationContext;
15
14
  }>;
16
15
  /**
17
16
  * Configuration for evaluation strategies.
18
17
  */
19
- export interface EvaluationStrategyConfig {
18
+ type EvaluationStrategyConfig = {
20
19
  /** The model to use for evaluation */
21
20
  evaluationModel?: string;
22
21
  /** The provider to use for evaluation */
@@ -33,11 +32,11 @@ export interface EvaluationStrategyConfig {
33
32
  }) => string;
34
33
  /** Additional strategy-specific options */
35
34
  options?: Record<string, unknown>;
36
- }
35
+ };
37
36
  /**
38
37
  * Metadata for registered evaluation strategies.
39
38
  */
40
- export interface EvaluationStrategyMetadata {
39
+ type EvaluationStrategyMetadata = {
41
40
  /** Human-readable name for the strategy */
42
41
  name: string;
43
42
  /** Description of what the strategy does */
@@ -52,7 +51,7 @@ export interface EvaluationStrategyMetadata {
52
51
  version: string;
53
52
  /** Supported features */
54
53
  features: string[];
55
- }
54
+ };
56
55
  /**
57
56
  * Registry for evaluation strategies.
58
57
  * Allows dynamic registration and retrieval of evaluation strategies.
@@ -158,3 +157,4 @@ export declare class EvaluatorRegistry extends BaseRegistry<EvaluationStrategyFu
158
157
  getStrategiesByProvider(provider: string): Promise<string[]>;
159
158
  }
160
159
  export declare const getEvaluatorRegistry: () => EvaluatorRegistry;
160
+ export {};
@@ -2,8 +2,7 @@
2
2
  * @file Implements the ContextBuilder class for creating rich evaluation context.
3
3
  */
4
4
  import type { LanguageModelV3CallOptions } from "@ai-sdk/provider";
5
- import type { EnhancedEvaluationContext, EvaluationResult } from "../types/evaluationTypes.js";
6
- import type { GenerateResult } from "../types/generateTypes.js";
5
+ import type { EnhancedEvaluationContext, EvaluationResult, GenerateResult } from "../types/index.js";
7
6
  /**
8
7
  * Builds the enhanced context required for a RAGAS-style evaluation.
9
8
  * This class gathers data from the generation options and results to create a
@@ -3,7 +3,7 @@
3
3
  * Uses NeuroLinkFeatureError and createErrorFactory from core infrastructure.
4
4
  */
5
5
  import { NeuroLinkFeatureError } from "../../core/infrastructure/index.js";
6
- import type { EnhancedEvaluationContext } from "../../types/evaluationTypes.js";
6
+ import type { EnhancedEvaluationContext } from "../../types/index.js";
7
7
  /**
8
8
  * Error codes for the Evaluation feature.
9
9
  * These codes help identify specific error scenarios for proper handling.
@@ -34,10 +34,6 @@ export declare const EvaluationErrorCodes: {
34
34
  /** Rate limit hit during evaluation */
35
35
  readonly RATE_LIMIT_ERROR: "RATE_LIMIT_ERROR";
36
36
  };
37
- /**
38
- * Type for evaluation error codes
39
- */
40
- export type EvaluationErrorCode = (typeof EvaluationErrorCodes)[keyof typeof EvaluationErrorCodes];
41
37
  /**
42
38
  * Factory for creating typed evaluation errors.
43
39
  * Uses the createErrorFactory pattern from core infrastructure.
@@ -69,7 +65,7 @@ export declare const evaluationErrors: {
69
65
  /** Rate limit hit during evaluation */
70
66
  readonly RATE_LIMIT_ERROR: "RATE_LIMIT_ERROR";
71
67
  };
72
- create: (code: "EVALUATION_FAILED" | "PARSE_ERROR" | "STRATEGY_NOT_FOUND" | "PROVIDER_ERROR" | "CONFIGURATION_ERROR" | "CUSTOM_EVALUATOR_ERROR" | "BATCH_EVALUATION_ERROR" | "AGGREGATION_ERROR" | "REGISTRY_ERROR" | "MAX_RETRIES_EXCEEDED" | "TIMEOUT_ERROR" | "RATE_LIMIT_ERROR", message: string, options?: {
68
+ create: (code: "PROVIDER_ERROR" | "CONFIGURATION_ERROR" | "EVALUATION_FAILED" | "PARSE_ERROR" | "STRATEGY_NOT_FOUND" | "CUSTOM_EVALUATOR_ERROR" | "BATCH_EVALUATION_ERROR" | "AGGREGATION_ERROR" | "REGISTRY_ERROR" | "MAX_RETRIES_EXCEEDED" | "TIMEOUT_ERROR" | "RATE_LIMIT_ERROR", message: string, options?: {
73
69
  retryable?: boolean;
74
70
  details?: Record<string, unknown>;
75
71
  cause?: Error;
@@ -79,7 +75,7 @@ export declare const evaluationErrors: {
79
75
  * Extended evaluation context for error details.
80
76
  * Provides rich debugging information when errors occur.
81
77
  */
82
- export interface EvaluationErrorContext {
78
+ type EvaluationErrorContext = {
83
79
  /** Length of the user query (redacted for safety) */
84
80
  userQueryLength?: number;
85
81
  /** Length of the AI response (redacted for safety) */
@@ -98,7 +94,7 @@ export interface EvaluationErrorContext {
98
94
  rawResponseLength?: number;
99
95
  /** Any additional context */
100
96
  additionalContext?: Record<string, unknown>;
101
- }
97
+ };
102
98
  /**
103
99
  * Checks if an error is retryable based on its code.
104
100
  * Transient errors (timeout, rate limit, some provider errors) are retryable.
@@ -187,3 +183,4 @@ export declare function createConfigurationError(message: string, configIssue: s
187
183
  * @returns An EvaluationErrorContext
188
184
  */
189
185
  export declare function contextToErrorContext(context: EnhancedEvaluationContext): EvaluationErrorContext;
186
+ export {};
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @file Exports all evaluation error types and utilities.
3
3
  */
4
- export { EvaluationErrorCodes, type EvaluationErrorCode, evaluationErrors, type EvaluationErrorContext, isRetryableEvaluationError, isEvaluationError, createEvaluationFailedError, createParseError, createStrategyNotFoundError, createProviderError, createMaxRetriesExceededError, createBatchEvaluationError, createConfigurationError, contextToErrorContext, } from "./EvaluationError.js";
4
+ export { EvaluationErrorCodes, evaluationErrors, isRetryableEvaluationError, isEvaluationError, createEvaluationFailedError, createParseError, createStrategyNotFoundError, createProviderError, createMaxRetriesExceededError, createBatchEvaluationError, createConfigurationError, contextToErrorContext, } from "./EvaluationError.js";
@@ -2,5 +2,5 @@
2
2
  * @file Hooks Index
3
3
  * Export all observability hooks
4
4
  */
5
- export { createLangfuseAdapter, createMockLangfuseClient, LangfuseAdapter, type LangfuseAdapterConfig, type LangfuseClient, startLangfuseAdapter, } from "./langfuseAdapter.js";
6
- export { createConsoleLoggerHook, createMetricsCollectorHook, type EvaluationEvents, type EventHandler, ObservabilityHooks, observabilityHooks, pipelineToSpanAttributes, type SpanAttributes, scorerToSpanAttributes, } from "./observabilityHooks.js";
5
+ export { createLangfuseAdapter, createMockLangfuseClient, LangfuseAdapter, startLangfuseAdapter, } from "./langfuseAdapter.js";
6
+ export { createConsoleLoggerHook, createMetricsCollectorHook, ObservabilityHooks, observabilityHooks, pipelineToSpanAttributes, scorerToSpanAttributes, } from "./observabilityHooks.js";
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Langfuse client interface (minimal for type safety)
7
7
  */
8
- export type LangfuseClient = {
8
+ type LangfuseClient = {
9
9
  score: (params: {
10
10
  name: string;
11
11
  value: number;
@@ -26,7 +26,7 @@ export type LangfuseClient = {
26
26
  /**
27
27
  * Langfuse adapter configuration
28
28
  */
29
- export type LangfuseAdapterConfig = {
29
+ type LangfuseAdapterConfig = {
30
30
  /** Langfuse client instance */
31
31
  client: LangfuseClient;
32
32
  /** Prefix for score names */
@@ -97,3 +97,4 @@ export declare function createMockLangfuseClient(): LangfuseClient & {
97
97
  metadata?: Record<string, unknown>;
98
98
  }>;
99
99
  };
100
+ export {};
@@ -2,16 +2,15 @@
2
2
  * @file Observability Hooks
3
3
  * OpenTelemetry integration for evaluation tracing
4
4
  */
5
- import type { EvaluationTraceContext, ScoreResult } from "../../types/scorerTypes.js";
6
- import type { PipelineResult } from "../pipeline/evaluationPipeline.js";
5
+ import type { EvaluationTraceContext, ScoreResult, PipelineResult } from "../../types/index.js";
7
6
  /**
8
7
  * Event handler type
9
8
  */
10
- export type EventHandler<T> = (event: T) => void | Promise<void>;
9
+ type EventHandler<T> = (event: T) => void | Promise<void>;
11
10
  /**
12
11
  * Evaluation events
13
12
  */
14
- export type EvaluationEvents = {
13
+ type EvaluationEvents = {
15
14
  "scorer:start": {
16
15
  scorerId: string;
17
16
  scorerName: string;
@@ -118,7 +117,7 @@ export declare function createMetricsCollectorHook(collector: {
118
117
  /**
119
118
  * OpenTelemetry span attributes
120
119
  */
121
- export type SpanAttributes = Record<string, string | number | boolean>;
120
+ type SpanAttributes = Record<string, string | number | boolean>;
122
121
  /**
123
122
  * Create span attributes from scorer result
124
123
  */
@@ -127,3 +126,4 @@ export declare function scorerToSpanAttributes(result: ScoreResult): SpanAttribu
127
126
  * Create span attributes from pipeline result
128
127
  */
129
128
  export declare function pipelineToSpanAttributes(result: PipelineResult): SpanAttributes;
129
+ export {};
@@ -2,19 +2,16 @@
2
2
  * @file This file exports the main Evaluator class, which serves as the central entry point for the evaluation system.
3
3
  */
4
4
  import type { LanguageModelV3CallOptions } from "@ai-sdk/provider";
5
- import type { EvaluationData } from "../types/evaluation.js";
6
- import type { EvaluationConfig } from "../types/evaluationTypes.js";
7
- import type { GenerateResult } from "../types/generateTypes.js";
8
- import type { AutoEvaluationConfig } from "../types/middlewareTypes.js";
5
+ import type { EvaluationData, GenerateResult, AutoEvaluationConfig, EvaluationConfig } from "../types/index.js";
9
6
  export * from "./errors/index.js";
10
7
  export * from "./hooks/index.js";
11
8
  export * from "./pipeline/index.js";
12
9
  export * from "./reporting/index.js";
13
10
  export * from "./scorers/index.js";
14
- export { BatchEvaluator, type BatchEvaluationConfig, type BatchEvaluationItem, type BatchEvaluationItemResult, type BatchEvaluationResult, } from "./BatchEvaluator.js";
15
- export { EvaluationAggregator, type ScoreStatistics, type ScoreDistribution, type TrendAnalysis, type DimensionAnalysis, type AlertSummary, type AggregationResult, } from "./EvaluationAggregator.js";
16
- export { EvaluatorFactory, getEvaluatorFactory, type EvaluatorPreset, } from "./EvaluatorFactory.js";
17
- export { EvaluatorRegistry, getEvaluatorRegistry, type EvaluationStrategyFunction, type EvaluationStrategyConfig, type EvaluationStrategyMetadata, } from "./EvaluatorRegistry.js";
11
+ export { BatchEvaluator } from "./BatchEvaluator.js";
12
+ export { EvaluationAggregator } from "./EvaluationAggregator.js";
13
+ export { EvaluatorFactory, getEvaluatorFactory } from "./EvaluatorFactory.js";
14
+ export { EvaluatorRegistry, getEvaluatorRegistry, } from "./EvaluatorRegistry.js";
18
15
  /**
19
16
  * A centralized class for performing response evaluations. It supports different
20
17
  * evaluation strategies, with RAGAS-style model-based evaluation as the default.
@@ -15,9 +15,9 @@ export * from "./reporting/index.js";
15
15
  // Re-export scorers
16
16
  export * from "./scorers/index.js";
17
17
  // Re-export Factory and Registry (Mastra-inspired patterns)
18
- export { BatchEvaluator, } from "./BatchEvaluator.js";
19
- export { EvaluationAggregator, } from "./EvaluationAggregator.js";
20
- export { EvaluatorFactory, getEvaluatorFactory, } from "./EvaluatorFactory.js";
18
+ export { BatchEvaluator } from "./BatchEvaluator.js";
19
+ export { EvaluationAggregator } from "./EvaluationAggregator.js";
20
+ export { EvaluatorFactory, getEvaluatorFactory } from "./EvaluatorFactory.js";
21
21
  export { EvaluatorRegistry, getEvaluatorRegistry, } from "./EvaluatorRegistry.js";
22
22
  /**
23
23
  * A centralized class for performing response evaluations. It supports different
@@ -2,39 +2,7 @@
2
2
  * @file Evaluation Pipeline
3
3
  * Multi-scorer orchestration with configurable execution
4
4
  */
5
- import type { JsonObject } from "../../types/common.js";
6
- import type { AggregatedScores, PipelineConfig, Scorer, ScorerInput } from "../../types/scorerTypes.js";
7
- /**
8
- * Pipeline execution options
9
- */
10
- export type PipelineExecutionOptions = {
11
- /** Correlation ID for tracing */
12
- correlationId?: string;
13
- /** Custom timeout override */
14
- timeout?: number;
15
- /** Skip specific scorers. Mutually exclusive with onlyScorers. */
16
- skipScorers?: string[];
17
- /** Only run specific scorers. Mutually exclusive with skipScorers. */
18
- onlyScorers?: string[];
19
- /** Additional metadata to attach */
20
- metadata?: JsonObject;
21
- };
22
- /**
23
- * Pipeline execution result
24
- */
25
- export type PipelineResult = AggregatedScores & {
26
- /** Pipeline configuration used */
27
- pipelineConfig: PipelineConfig;
28
- /** Execution options used */
29
- executionOptions?: PipelineExecutionOptions;
30
- /** Errors that occurred during execution */
31
- errors: Array<{
32
- scorerId: string;
33
- error: string;
34
- }>;
35
- /** Scorers that were skipped */
36
- skippedScorers: string[];
37
- };
5
+ import type { PipelineExecutionOptions, PipelineResult, PipelineConfig, Scorer, ScorerInput } from "../../types/index.js";
38
6
  /**
39
7
  * Evaluation Pipeline for running multiple scorers
40
8
  */
@@ -2,7 +2,7 @@
2
2
  * @file Pipeline Index
3
3
  * Export all pipeline components
4
4
  */
5
- export { createAndInitializePipeline, createPipeline, EvaluationPipeline, type PipelineExecutionOptions, type PipelineResult, } from "./evaluationPipeline.js";
5
+ export { createAndInitializePipeline, createPipeline, EvaluationPipeline, } from "./evaluationPipeline.js";
6
6
  export { PipelineBuilder, Pipelines } from "./pipelineBuilder.js";
7
7
  export { CODE_GENERATION_PIPELINE, COMPREHENSIVE_PIPELINE, CUSTOMER_SUPPORT_PIPELINE, getPreset, getPresetNames, MINIMAL_PIPELINE, PipelinePresets, QUALITY_PIPELINE, RAG_PIPELINE, SAFETY_PIPELINE, SUMMARIZATION_PIPELINE, } from "./presets.js";
8
8
  export * from "./strategies/index.js";
@@ -2,7 +2,7 @@
2
2
  * @file Pipeline Builder
3
3
  * Fluent builder API for creating evaluation pipelines
4
4
  */
5
- import type { AggregationMethod, PipelineConfig, ScoreResult, ScorerConfig } from "../../types/scorerTypes.js";
5
+ import type { AggregationMethod, PipelineConfig, ScoreResult, ScorerConfig } from "../../types/index.js";
6
6
  import { EvaluationPipeline } from "./evaluationPipeline.js";
7
7
  /**
8
8
  * Fluent builder for creating evaluation pipelines
@@ -2,7 +2,7 @@
2
2
  * @file Pipeline Presets
3
3
  * Pre-configured evaluation pipelines for common use cases
4
4
  */
5
- import type { PipelineConfig } from "../../types/scorerTypes.js";
5
+ import type { PipelineConfig } from "../../types/index.js";
6
6
  /**
7
7
  * Safety evaluation preset
8
8
  * Focuses on content safety: toxicity, bias, harmful content
@@ -2,12 +2,12 @@
2
2
  * @file Batch Strategy
3
3
  * Batch processing for evaluation pipelines
4
4
  */
5
- import type { ScorerInput } from "../../../types/scorerTypes.js";
6
- import type { EvaluationPipeline, PipelineExecutionOptions, PipelineResult } from "../evaluationPipeline.js";
5
+ import type { ScorerInput, PipelineExecutionOptions, PipelineResult } from "../../../types/index.js";
6
+ import type { EvaluationPipeline } from "../evaluationPipeline.js";
7
7
  /**
8
8
  * Batch processing configuration
9
9
  */
10
- export type BatchConfig = {
10
+ type BatchConfig = {
11
11
  /** Maximum concurrent evaluations */
12
12
  concurrency?: number;
13
13
  /** Delay between batches (ms) */
@@ -22,7 +22,7 @@ export type BatchConfig = {
22
22
  /**
23
23
  * Batch progress information
24
24
  */
25
- export type BatchProgress = {
25
+ type BatchProgress = {
26
26
  total: number;
27
27
  completed: number;
28
28
  failed: number;
@@ -33,7 +33,7 @@ export type BatchProgress = {
33
33
  /**
34
34
  * Individual batch item result
35
35
  */
36
- export type BatchItemResult = {
36
+ type BatchItemResult = {
37
37
  index: number;
38
38
  input: ScorerInput;
39
39
  result?: PipelineResult;
@@ -43,7 +43,7 @@ export type BatchItemResult = {
43
43
  /**
44
44
  * Batch evaluation result
45
45
  */
46
- export type BatchResult = {
46
+ type BatchResult = {
47
47
  /** All individual results */
48
48
  results: BatchItemResult[];
49
49
  /** Summary statistics */
@@ -97,3 +97,4 @@ export declare function evaluateBatch(pipeline: EvaluationPipeline, inputs: Scor
97
97
  * Stream batch evaluation results
98
98
  */
99
99
  export declare function streamBatchEvaluation(pipeline: EvaluationPipeline, inputs: ScorerInput[], config?: Omit<BatchConfig, "onResult" | "onProgress">): AsyncGenerator<BatchItemResult, BatchResult["summary"], void>;
100
+ export {};
@@ -2,5 +2,5 @@
2
2
  * @file Pipeline Strategies Index
3
3
  * Export all pipeline strategies
4
4
  */
5
- export { type BatchConfig, type BatchItemResult, type BatchProgress, type BatchResult, BatchStrategy, createBatchStrategy, evaluateBatch, streamBatchEvaluation, } from "./batchStrategy.js";
5
+ export { BatchStrategy, createBatchStrategy, evaluateBatch, streamBatchEvaluation, } from "./batchStrategy.js";
6
6
  export { createSamplingStrategy, DEFAULT_SAMPLING_CONFIG, SamplingStrategies, SamplingStrategy, } from "./samplingStrategy.js";
@@ -2,7 +2,7 @@
2
2
  * @file Sampling Strategy
3
3
  * Configurable sampling for cost-efficient evaluation
4
4
  */
5
- import type { SamplingConfig, SamplingContext, SamplingDecision } from "../../../types/scorerTypes.js";
5
+ import type { SamplingConfig, SamplingContext, SamplingDecision } from "../../../types/index.js";
6
6
  /**
7
7
  * Default sampling configuration
8
8
  */
@@ -1,4 +1,4 @@
1
- import type { EnhancedEvaluationContext, GetPromptFunction } from "../types/evaluationTypes.js";
1
+ import type { EnhancedEvaluationContext, GetPromptFunction } from "../types/index.js";
2
2
  /**
3
3
  * A flexible class for building evaluation prompts. It allows for custom prompt
4
4
  * generation logic to be injected while ensuring a consistent output format.
@@ -1,4 +1,4 @@
1
- import type { EnhancedEvaluationContext, EvaluationResult, GetPromptFunction } from "../types/evaluationTypes.js";
1
+ import type { EnhancedEvaluationContext, EvaluationResult, GetPromptFunction } from "../types/index.js";
2
2
  /**
3
3
  * Implements a RAGAS-style evaluator that uses a "judge" LLM to score the
4
4
  * quality of an AI response based on rich, contextual information.