@juspay/neurolink 9.54.3 → 9.54.5
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.
- package/CHANGELOG.md +8 -0
- package/dist/action/actionExecutor.d.ts +1 -1
- package/dist/action/actionInputs.d.ts +1 -1
- package/dist/action/githubIntegration.d.ts +1 -1
- package/dist/action/index.d.ts +0 -1
- package/dist/action/index.js +1 -0
- package/dist/adapters/providerImageAdapter.d.ts +1 -1
- package/dist/adapters/tts/googleTTSHandler.d.ts +1 -2
- package/dist/adapters/tts/googleTTSHandler.js +1 -2
- package/dist/adapters/video/directorPipeline.d.ts +1 -1
- package/dist/adapters/video/vertexVideoHandler.d.ts +1 -1
- package/dist/agent/directTools.d.ts +7 -6
- package/dist/artifacts/artifactStore.d.ts +1 -2
- package/dist/artifacts/artifactStore.js +1 -0
- package/dist/auth/AuthProviderFactory.d.ts +1 -1
- package/dist/auth/anthropicOAuth.d.ts +4 -3
- package/dist/auth/anthropicOAuth.js +1 -1
- package/dist/auth/authContext.d.ts +1 -1
- package/dist/auth/errors.d.ts +1 -1
- package/dist/auth/index.d.ts +5 -10
- package/dist/auth/index.js +8 -2
- package/dist/auth/middleware/AuthMiddleware.d.ts +9 -8
- package/dist/auth/middleware/rateLimitByUser.d.ts +7 -7
- package/dist/auth/providers/BaseAuthProvider.d.ts +2 -2
- package/dist/auth/providers/CognitoProvider.d.ts +1 -1
- package/dist/auth/providers/KeycloakProvider.d.ts +1 -1
- package/dist/auth/providers/KeycloakProvider.js +1 -2
- package/dist/auth/providers/auth0.d.ts +1 -1
- package/dist/auth/providers/betterAuth.d.ts +1 -1
- package/dist/auth/providers/clerk.d.ts +1 -1
- package/dist/auth/providers/custom.d.ts +1 -1
- package/dist/auth/providers/firebase.d.ts +1 -1
- package/dist/auth/providers/jwt.d.ts +1 -1
- package/dist/auth/providers/oauth2.d.ts +1 -1
- package/dist/auth/providers/supabase.d.ts +1 -1
- package/dist/auth/providers/workos.d.ts +1 -1
- package/dist/auth/serverBridge.d.ts +1 -1
- package/dist/auth/sessionManager.d.ts +1 -27
- package/dist/auth/tokenStore.d.ts +1 -1
- package/dist/auth/tokenStore.js +1 -1
- package/dist/autoresearch/config.d.ts +1 -1
- package/dist/autoresearch/config.js +1 -1
- package/dist/autoresearch/phasePolicy.d.ts +1 -1
- package/dist/autoresearch/promptCompiler.d.ts +1 -1
- package/dist/autoresearch/repoPolicy.d.ts +1 -1
- package/dist/autoresearch/resultRecorder.d.ts +1 -1
- package/dist/autoresearch/runner.d.ts +1 -1
- package/dist/autoresearch/stateStore.d.ts +1 -1
- package/dist/autoresearch/summaryParser.d.ts +1 -1
- package/dist/autoresearch/tools.d.ts +3 -6
- package/dist/autoresearch/worker.d.ts +1 -1
- package/dist/browser/neurolink.min.js +377 -377
- package/dist/cli/commands/authProviders.d.ts +1 -30
- package/dist/cli/commands/config.d.ts +2 -2
- package/dist/cli/commands/evaluate.js +1 -1
- package/dist/cli/commands/proxy.js +333 -31
- package/dist/cli/loop/conversationSelector.d.ts +1 -2
- package/dist/cli/loop/conversationSelector.js +1 -1
- package/dist/cli/loop/optionsSchema.d.ts +1 -2
- package/dist/cli/utils/completeSetup.d.ts +1 -1
- package/dist/cli/utils/interactiveSetup.d.ts +3 -12
- package/dist/cli/utils/videoFileUtils.d.ts +2 -1
- package/dist/client/aiSdkAdapter.d.ts +8 -9
- package/dist/client/aiSdkAdapter.js +6 -1
- package/dist/client/auth.d.ts +6 -6
- package/dist/client/auth.js +1 -1
- package/dist/client/errors.d.ts +5 -6
- package/dist/client/errors.js +1 -1
- package/dist/client/httpClient.d.ts +25 -26
- package/dist/client/httpClient.js +3 -3
- package/dist/client/index.d.ts +0 -9
- package/dist/client/index.js +1 -1
- package/dist/client/interceptors.d.ts +14 -90
- package/dist/client/interceptors.js +18 -0
- package/dist/client/reactHooks.d.ts +1 -2
- package/dist/client/reactHooks.tsx +44 -64
- package/dist/client/sseClient.d.ts +6 -47
- package/dist/client/streamingClient.d.ts +9 -83
- package/dist/client/streamingClient.js +6 -0
- package/dist/client/wsClient.d.ts +8 -16
- package/dist/config/configManager.d.ts +2 -2
- package/dist/config/configManager.js +1 -1
- package/dist/config/conversationMemory.d.ts +1 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.js +1 -0
- package/dist/context/budgetChecker.d.ts +1 -2
- package/dist/context/budgetChecker.js +1 -2
- package/dist/context/contextCompactor.d.ts +1 -3
- package/dist/context/contextCompactor.js +1 -2
- package/dist/context/effectiveHistory.d.ts +1 -1
- package/dist/context/emergencyTruncation.d.ts +1 -1
- package/dist/context/fileSummarizationService.d.ts +2 -3
- package/dist/context/fileSummarizer.d.ts +1 -2
- package/dist/context/fileTokenBudget.d.ts +1 -2
- package/dist/context/prompts/summarizationPrompt.d.ts +1 -2
- package/dist/context/stages/fileReadDeduplicator.d.ts +1 -3
- package/dist/context/stages/slidingWindowTruncator.d.ts +1 -3
- package/dist/context/stages/structuredSummarizer.d.ts +1 -3
- package/dist/context/stages/toolOutputPruner.d.ts +1 -3
- package/dist/context/summarizationEngine.d.ts +1 -1
- package/dist/context/toolOutputLimits.d.ts +1 -2
- package/dist/context/toolPairRepair.d.ts +1 -3
- package/dist/core/analytics.d.ts +1 -1
- package/dist/core/baseProvider.d.ts +1 -5
- package/dist/core/baseProvider.js +1 -1
- package/dist/core/conversationMemoryFactory.d.ts +1 -2
- package/dist/core/conversationMemoryInitializer.d.ts +1 -1
- package/dist/core/conversationMemoryManager.d.ts +1 -2
- package/dist/core/conversationMemoryManager.js +1 -1
- package/dist/core/factory.d.ts +1 -3
- package/dist/core/infrastructure/baseRegistry.d.ts +2 -1
- package/dist/core/infrastructure/index.d.ts +0 -2
- package/dist/core/infrastructure/retry.d.ts +2 -7
- package/dist/core/modelConfiguration.d.ts +1 -1
- package/dist/core/modules/MessageBuilder.d.ts +1 -2
- package/dist/core/modules/StreamHandler.d.ts +1 -3
- package/dist/core/modules/TelemetryHandler.d.ts +1 -2
- package/dist/core/modules/Utilities.d.ts +1 -4
- package/dist/core/redisConversationMemoryManager.d.ts +1 -2
- package/dist/core/redisConversationMemoryManager.js +1 -1
- package/dist/core/serviceRegistry.d.ts +1 -1
- package/dist/core/streamAnalytics.d.ts +1 -2
- package/dist/evaluation/BatchEvaluator.d.ts +12 -14
- package/dist/evaluation/EvaluationAggregator.d.ts +14 -13
- package/dist/evaluation/EvaluatorFactory.d.ts +4 -3
- package/dist/evaluation/EvaluatorRegistry.d.ts +7 -7
- package/dist/evaluation/contextBuilder.d.ts +1 -2
- package/dist/evaluation/errors/EvaluationError.d.ts +5 -8
- package/dist/evaluation/errors/index.d.ts +1 -1
- package/dist/evaluation/hooks/index.d.ts +2 -2
- package/dist/evaluation/hooks/langfuseAdapter.d.ts +3 -2
- package/dist/evaluation/hooks/observabilityHooks.d.ts +5 -5
- package/dist/evaluation/index.d.ts +5 -8
- package/dist/evaluation/index.js +3 -3
- package/dist/evaluation/pipeline/evaluationPipeline.d.ts +1 -33
- package/dist/evaluation/pipeline/index.d.ts +1 -1
- package/dist/evaluation/pipeline/pipelineBuilder.d.ts +1 -1
- package/dist/evaluation/pipeline/presets.d.ts +1 -1
- package/dist/evaluation/pipeline/strategies/batchStrategy.d.ts +7 -6
- package/dist/evaluation/pipeline/strategies/index.d.ts +1 -1
- package/dist/evaluation/pipeline/strategies/samplingStrategy.d.ts +1 -1
- package/dist/evaluation/prompts.d.ts +1 -1
- package/dist/evaluation/ragasEvaluator.d.ts +1 -1
- package/dist/evaluation/ragasEvaluator.js +1 -2
- package/dist/evaluation/reporting/index.d.ts +2 -2
- package/dist/evaluation/reporting/metricsCollector.d.ts +5 -5
- package/dist/evaluation/reporting/reportGenerator.d.ts +3 -20
- package/dist/evaluation/retryManager.d.ts +1 -2
- package/dist/evaluation/scorers/baseScorer.d.ts +1 -2
- package/dist/evaluation/scorers/customScorerUtils.d.ts +1 -10
- package/dist/evaluation/scorers/index.d.ts +1 -1
- package/dist/evaluation/scorers/llm/answerRelevancyScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/baseLLMScorer.d.ts +1 -3
- package/dist/evaluation/scorers/llm/biasDetectionScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/contextPrecisionScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/contextRelevancyScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/faithfulnessScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/hallucinationScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/promptAlignmentScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/summarizationScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/toneConsistencyScorer.d.ts +1 -1
- package/dist/evaluation/scorers/llm/toxicityScorer.d.ts +1 -1
- package/dist/evaluation/scorers/rule/baseRuleScorer.d.ts +1 -1
- package/dist/evaluation/scorers/rule/contentSimilarityScorer.d.ts +4 -3
- package/dist/evaluation/scorers/rule/formatScorer.d.ts +5 -4
- package/dist/evaluation/scorers/rule/index.d.ts +4 -4
- package/dist/evaluation/scorers/rule/keywordCoverageScorer.d.ts +3 -2
- package/dist/evaluation/scorers/rule/lengthScorer.d.ts +5 -4
- package/dist/evaluation/scorers/scorerBuilder.d.ts +1 -2
- package/dist/evaluation/scorers/scorerBuilder.js +1 -1
- package/dist/evaluation/scorers/scorerRegistry.d.ts +1 -1
- package/dist/evaluation/scoring.d.ts +1 -2
- package/dist/evaluation/scoring.js +1 -2
- package/dist/factories/providerFactory.d.ts +1 -2
- package/dist/features/ppt/constants.d.ts +1 -1
- package/dist/features/ppt/contentPlanner.d.ts +1 -2
- package/dist/features/ppt/contentPlanner.js +1 -1
- package/dist/features/ppt/index.d.ts +2 -17
- package/dist/features/ppt/index.js +6 -14
- package/dist/features/ppt/pptError.d.ts +38 -0
- package/dist/features/ppt/pptError.js +53 -0
- package/dist/features/ppt/presentationOrchestrator.d.ts +1 -1
- package/dist/features/ppt/presentationOrchestrator.js +2 -3
- package/dist/features/ppt/slideGenerator.d.ts +1 -1
- package/dist/features/ppt/slideGenerator.js +2 -3
- package/dist/features/ppt/slideRenderers.d.ts +1 -1
- package/dist/features/ppt/slideTypeInference.d.ts +1 -1
- package/dist/features/ppt/utils.d.ts +1 -2
- package/dist/features/ppt/utils.js +1 -1
- package/dist/files/fileReferenceRegistry.d.ts +1 -2
- package/dist/files/fileReferenceRegistry.js +1 -1
- package/dist/files/fileTools.d.ts +5 -5
- package/dist/files/index.d.ts +1 -2
- package/dist/files/index.js +1 -1
- package/dist/files/streamingReader.d.ts +1 -1
- package/dist/hitl/hitlManager.d.ts +1 -1
- package/dist/image-gen/ImageGenService.d.ts +1 -1
- package/dist/image-gen/ImageGenService.js +1 -1
- package/dist/image-gen/imageGenTools.d.ts +1 -18
- package/dist/image-gen/index.d.ts +1 -2
- package/dist/image-gen/index.js +1 -1
- package/dist/index.d.ts +6 -25
- package/dist/index.js +23 -8
- package/dist/lib/action/actionExecutor.d.ts +1 -1
- package/dist/lib/action/actionInputs.d.ts +1 -1
- package/dist/lib/action/githubIntegration.d.ts +1 -1
- package/dist/lib/action/index.d.ts +0 -1
- package/dist/lib/action/index.js +1 -0
- package/dist/lib/adapters/providerImageAdapter.d.ts +1 -1
- package/dist/lib/adapters/tts/googleTTSHandler.d.ts +1 -2
- package/dist/lib/adapters/tts/googleTTSHandler.js +1 -2
- package/dist/lib/adapters/video/directorPipeline.d.ts +1 -1
- package/dist/lib/adapters/video/vertexVideoHandler.d.ts +1 -1
- package/dist/lib/agent/directTools.d.ts +7 -6
- package/dist/lib/artifacts/artifactStore.d.ts +1 -2
- package/dist/lib/artifacts/artifactStore.js +1 -0
- package/dist/lib/auth/AuthProviderFactory.d.ts +1 -1
- package/dist/lib/auth/anthropicOAuth.d.ts +4 -3
- package/dist/lib/auth/anthropicOAuth.js +1 -1
- package/dist/lib/auth/authContext.d.ts +1 -1
- package/dist/lib/auth/errors.d.ts +1 -1
- package/dist/lib/auth/index.d.ts +5 -10
- package/dist/lib/auth/index.js +8 -2
- package/dist/lib/auth/middleware/AuthMiddleware.d.ts +9 -8
- package/dist/lib/auth/middleware/rateLimitByUser.d.ts +7 -7
- package/dist/lib/auth/providers/BaseAuthProvider.d.ts +2 -2
- package/dist/lib/auth/providers/CognitoProvider.d.ts +1 -1
- package/dist/lib/auth/providers/KeycloakProvider.d.ts +1 -1
- package/dist/lib/auth/providers/KeycloakProvider.js +1 -2
- package/dist/lib/auth/providers/auth0.d.ts +1 -1
- package/dist/lib/auth/providers/betterAuth.d.ts +1 -1
- package/dist/lib/auth/providers/clerk.d.ts +1 -1
- package/dist/lib/auth/providers/custom.d.ts +1 -1
- package/dist/lib/auth/providers/firebase.d.ts +1 -1
- package/dist/lib/auth/providers/jwt.d.ts +1 -1
- package/dist/lib/auth/providers/oauth2.d.ts +1 -1
- package/dist/lib/auth/providers/supabase.d.ts +1 -1
- package/dist/lib/auth/providers/workos.d.ts +1 -1
- package/dist/lib/auth/serverBridge.d.ts +1 -1
- package/dist/lib/auth/sessionManager.d.ts +1 -27
- package/dist/lib/auth/tokenStore.d.ts +1 -1
- package/dist/lib/auth/tokenStore.js +1 -1
- package/dist/lib/autoresearch/config.d.ts +1 -1
- package/dist/lib/autoresearch/config.js +1 -1
- package/dist/lib/autoresearch/phasePolicy.d.ts +1 -1
- package/dist/lib/autoresearch/promptCompiler.d.ts +1 -1
- package/dist/lib/autoresearch/repoPolicy.d.ts +1 -1
- package/dist/lib/autoresearch/resultRecorder.d.ts +1 -1
- package/dist/lib/autoresearch/runner.d.ts +1 -1
- package/dist/lib/autoresearch/stateStore.d.ts +1 -1
- package/dist/lib/autoresearch/summaryParser.d.ts +1 -1
- package/dist/lib/autoresearch/tools.d.ts +7 -10
- package/dist/lib/autoresearch/worker.d.ts +2 -2
- package/dist/lib/client/aiSdkAdapter.d.ts +8 -9
- package/dist/lib/client/aiSdkAdapter.js +6 -1
- package/dist/lib/client/auth.d.ts +6 -6
- package/dist/lib/client/auth.js +1 -1
- package/dist/lib/client/errors.d.ts +5 -6
- package/dist/lib/client/errors.js +1 -1
- package/dist/lib/client/httpClient.d.ts +25 -26
- package/dist/lib/client/httpClient.js +3 -3
- package/dist/lib/client/index.d.ts +0 -9
- package/dist/lib/client/index.js +1 -1
- package/dist/lib/client/interceptors.d.ts +14 -90
- package/dist/lib/client/interceptors.js +18 -0
- package/dist/lib/client/reactHooks.d.ts +1 -2
- package/dist/lib/client/sseClient.d.ts +6 -47
- package/dist/lib/client/streamingClient.d.ts +9 -83
- package/dist/lib/client/streamingClient.js +6 -0
- package/dist/lib/client/wsClient.d.ts +8 -16
- package/dist/lib/config/configManager.d.ts +2 -2
- package/dist/lib/config/configManager.js +1 -1
- package/dist/lib/config/conversationMemory.d.ts +1 -1
- package/dist/lib/constants/index.d.ts +0 -1
- package/dist/lib/constants/index.js +1 -0
- package/dist/lib/context/budgetChecker.d.ts +1 -2
- package/dist/lib/context/budgetChecker.js +1 -2
- package/dist/lib/context/contextCompactor.d.ts +1 -3
- package/dist/lib/context/contextCompactor.js +1 -2
- package/dist/lib/context/effectiveHistory.d.ts +1 -1
- package/dist/lib/context/emergencyTruncation.d.ts +1 -1
- package/dist/lib/context/fileSummarizationService.d.ts +2 -3
- package/dist/lib/context/fileSummarizer.d.ts +1 -2
- package/dist/lib/context/fileTokenBudget.d.ts +1 -2
- package/dist/lib/context/prompts/summarizationPrompt.d.ts +1 -2
- package/dist/lib/context/stages/fileReadDeduplicator.d.ts +1 -3
- package/dist/lib/context/stages/slidingWindowTruncator.d.ts +1 -3
- package/dist/lib/context/stages/structuredSummarizer.d.ts +1 -3
- package/dist/lib/context/stages/toolOutputPruner.d.ts +1 -3
- package/dist/lib/context/summarizationEngine.d.ts +1 -1
- package/dist/lib/context/toolOutputLimits.d.ts +1 -2
- package/dist/lib/context/toolPairRepair.d.ts +1 -3
- package/dist/lib/core/analytics.d.ts +1 -1
- package/dist/lib/core/baseProvider.d.ts +1 -5
- package/dist/lib/core/baseProvider.js +1 -1
- package/dist/lib/core/conversationMemoryFactory.d.ts +1 -2
- package/dist/lib/core/conversationMemoryInitializer.d.ts +1 -1
- package/dist/lib/core/conversationMemoryManager.d.ts +1 -2
- package/dist/lib/core/conversationMemoryManager.js +1 -1
- package/dist/lib/core/factory.d.ts +1 -3
- package/dist/lib/core/infrastructure/baseRegistry.d.ts +2 -1
- package/dist/lib/core/infrastructure/index.d.ts +0 -2
- package/dist/lib/core/infrastructure/retry.d.ts +2 -7
- package/dist/lib/core/modelConfiguration.d.ts +1 -1
- package/dist/lib/core/modules/MessageBuilder.d.ts +1 -2
- package/dist/lib/core/modules/StreamHandler.d.ts +1 -3
- package/dist/lib/core/modules/TelemetryHandler.d.ts +1 -2
- package/dist/lib/core/modules/Utilities.d.ts +1 -4
- package/dist/lib/core/redisConversationMemoryManager.d.ts +1 -2
- package/dist/lib/core/redisConversationMemoryManager.js +1 -1
- package/dist/lib/core/serviceRegistry.d.ts +1 -1
- package/dist/lib/core/streamAnalytics.d.ts +1 -2
- package/dist/lib/evaluation/BatchEvaluator.d.ts +12 -14
- package/dist/lib/evaluation/EvaluationAggregator.d.ts +14 -13
- package/dist/lib/evaluation/EvaluatorFactory.d.ts +4 -3
- package/dist/lib/evaluation/EvaluatorRegistry.d.ts +7 -7
- package/dist/lib/evaluation/contextBuilder.d.ts +1 -2
- package/dist/lib/evaluation/errors/EvaluationError.d.ts +5 -8
- package/dist/lib/evaluation/errors/index.d.ts +1 -1
- package/dist/lib/evaluation/hooks/index.d.ts +2 -2
- package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +3 -2
- package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +5 -5
- package/dist/lib/evaluation/index.d.ts +5 -8
- package/dist/lib/evaluation/index.js +3 -3
- package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +1 -33
- package/dist/lib/evaluation/pipeline/index.d.ts +1 -1
- package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +1 -1
- package/dist/lib/evaluation/pipeline/presets.d.ts +1 -1
- package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +7 -6
- package/dist/lib/evaluation/pipeline/strategies/index.d.ts +1 -1
- package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +1 -1
- package/dist/lib/evaluation/prompts.d.ts +1 -1
- package/dist/lib/evaluation/ragasEvaluator.d.ts +1 -1
- package/dist/lib/evaluation/ragasEvaluator.js +1 -2
- package/dist/lib/evaluation/reporting/index.d.ts +2 -2
- package/dist/lib/evaluation/reporting/metricsCollector.d.ts +5 -5
- package/dist/lib/evaluation/reporting/reportGenerator.d.ts +3 -20
- package/dist/lib/evaluation/retryManager.d.ts +1 -2
- package/dist/lib/evaluation/scorers/baseScorer.d.ts +1 -2
- package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +1 -10
- package/dist/lib/evaluation/scorers/index.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +1 -3
- package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +1 -1
- package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +4 -3
- package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +5 -4
- package/dist/lib/evaluation/scorers/rule/index.d.ts +4 -4
- package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +3 -2
- package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +5 -4
- package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +1 -2
- package/dist/lib/evaluation/scorers/scorerBuilder.js +1 -1
- package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +1 -1
- package/dist/lib/evaluation/scoring.d.ts +1 -2
- package/dist/lib/evaluation/scoring.js +1 -2
- package/dist/lib/factories/providerFactory.d.ts +1 -2
- package/dist/lib/features/ppt/constants.d.ts +1 -1
- package/dist/lib/features/ppt/contentPlanner.d.ts +1 -2
- package/dist/lib/features/ppt/contentPlanner.js +1 -1
- package/dist/lib/features/ppt/index.d.ts +2 -17
- package/dist/lib/features/ppt/index.js +6 -14
- package/dist/lib/features/ppt/pptError.d.ts +38 -0
- package/dist/lib/features/ppt/pptError.js +54 -0
- package/dist/lib/features/ppt/presentationOrchestrator.d.ts +1 -1
- package/dist/lib/features/ppt/presentationOrchestrator.js +2 -3
- package/dist/lib/features/ppt/slideGenerator.d.ts +1 -1
- package/dist/lib/features/ppt/slideGenerator.js +2 -3
- package/dist/lib/features/ppt/slideRenderers.d.ts +1 -1
- package/dist/lib/features/ppt/slideTypeInference.d.ts +1 -1
- package/dist/lib/features/ppt/utils.d.ts +1 -2
- package/dist/lib/features/ppt/utils.js +1 -1
- package/dist/lib/files/fileReferenceRegistry.d.ts +1 -2
- package/dist/lib/files/fileReferenceRegistry.js +1 -1
- package/dist/lib/files/fileTools.d.ts +5 -5
- package/dist/lib/files/index.d.ts +1 -2
- package/dist/lib/files/index.js +1 -1
- package/dist/lib/files/streamingReader.d.ts +1 -1
- package/dist/lib/hitl/hitlManager.d.ts +1 -1
- package/dist/lib/image-gen/ImageGenService.d.ts +1 -1
- package/dist/lib/image-gen/ImageGenService.js +1 -1
- package/dist/lib/image-gen/imageGenTools.d.ts +1 -18
- package/dist/lib/image-gen/index.d.ts +1 -2
- package/dist/lib/image-gen/index.js +1 -1
- package/dist/lib/index.d.ts +6 -25
- package/dist/lib/index.js +23 -8
- package/dist/lib/mcp/agentExposure.d.ts +1 -146
- package/dist/lib/mcp/auth/oauthClientProvider.d.ts +1 -1
- package/dist/lib/mcp/auth/tokenStorage.d.ts +1 -1
- package/dist/lib/mcp/batching/index.d.ts +0 -10
- package/dist/lib/mcp/batching/index.js +0 -9
- package/dist/lib/mcp/batching/requestBatcher.d.ts +1 -73
- package/dist/lib/mcp/caching/index.d.ts +0 -10
- package/dist/lib/mcp/caching/index.js +0 -9
- package/dist/lib/mcp/caching/toolCache.d.ts +6 -73
- package/dist/lib/mcp/elicitation/elicitationManager.d.ts +1 -1
- package/dist/lib/mcp/elicitation/index.d.ts +0 -10
- package/dist/lib/mcp/elicitation/index.js +0 -9
- package/dist/lib/mcp/elicitationProtocol.d.ts +1 -90
- package/dist/lib/mcp/enhancedToolDiscovery.d.ts +2 -82
- package/dist/lib/mcp/enhancedToolDiscovery.js +1 -1
- package/dist/lib/mcp/externalServerManager.d.ts +1 -5
- package/dist/lib/mcp/factory.d.ts +1 -1
- package/dist/lib/mcp/flexibleToolValidator.d.ts +1 -1
- package/dist/lib/mcp/httpRateLimiter.d.ts +6 -6
- package/dist/lib/mcp/httpRateLimiter.js +1 -2
- package/dist/lib/mcp/httpRetryHandler.d.ts +1 -1
- package/dist/lib/mcp/httpRetryHandler.js +1 -2
- package/dist/lib/mcp/index.d.ts +1 -15
- package/dist/lib/mcp/index.js +7 -0
- package/dist/lib/mcp/mcpCircuitBreaker.d.ts +2 -2
- package/dist/lib/mcp/mcpCircuitBreaker.js +2 -2
- package/dist/lib/mcp/mcpClientFactory.d.ts +1 -2
- package/dist/lib/mcp/mcpClientFactory.js +2 -3
- package/dist/lib/mcp/mcpOutputNormalizer.d.ts +1 -3
- package/dist/lib/mcp/mcpOutputNormalizer.js +1 -0
- package/dist/lib/mcp/mcpRegistryClient.d.ts +13 -216
- package/dist/lib/mcp/mcpServerBase.d.ts +1 -66
- package/dist/lib/mcp/mcpServerBase.js +3 -0
- package/dist/lib/mcp/multiServerManager.d.ts +1 -116
- package/dist/lib/mcp/registry.d.ts +1 -3
- package/dist/lib/mcp/routing/index.d.ts +0 -10
- package/dist/lib/mcp/routing/index.js +0 -9
- package/dist/lib/mcp/routing/toolRouter.d.ts +1 -110
- package/dist/lib/mcp/serverCapabilities.d.ts +1 -167
- package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +1 -1
- package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +1 -1
- package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +1 -1
- package/dist/lib/mcp/toolAnnotations.d.ts +1 -98
- package/dist/lib/mcp/toolConverter.d.ts +1 -92
- package/dist/lib/mcp/toolDiscoveryService.d.ts +1 -3
- package/dist/lib/mcp/toolIntegration.d.ts +1 -45
- package/dist/lib/mcp/toolRegistry.d.ts +1 -3
- package/dist/lib/memory/hippocampusInitializer.d.ts +0 -3
- package/dist/lib/memory/memoryRetrievalTools.d.ts +1 -1
- package/dist/lib/memory/memoryRetrievalTools.js +1 -2
- package/dist/lib/middleware/builtin/analytics.d.ts +1 -1
- package/dist/lib/middleware/builtin/autoEvaluation.d.ts +1 -1
- package/dist/lib/middleware/builtin/guardrails.d.ts +1 -2
- package/dist/lib/middleware/builtin/lifecycle.d.ts +1 -1
- package/dist/lib/middleware/factory.d.ts +1 -1
- package/dist/lib/middleware/index.d.ts +0 -2
- package/dist/lib/middleware/index.js +1 -0
- package/dist/lib/middleware/registry.d.ts +1 -1
- package/dist/lib/middleware/utils/guardrailsUtils.d.ts +1 -1
- package/dist/lib/models/anthropicModels.d.ts +2 -2
- package/dist/lib/models/anthropicModels.js +1 -1
- package/dist/lib/models/modelRegistry.d.ts +1 -2
- package/dist/lib/models/modelRegistry.js +1 -1
- package/dist/lib/models/modelResolver.d.ts +1 -2
- package/dist/lib/neurolink.d.ts +15 -30
- package/dist/lib/neurolink.js +3 -5
- package/dist/lib/observability/exporterRegistry.d.ts +1 -1
- package/dist/lib/observability/exporters/arizeExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/baseExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/braintrustExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/datadogExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/datadogExporter.js +1 -1
- package/dist/lib/observability/exporters/laminarExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/laminarExporter.js +1 -1
- package/dist/lib/observability/exporters/langfuseExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/langfuseExporter.js +1 -1
- package/dist/lib/observability/exporters/langsmithExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/otelExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/posthogExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/posthogExporter.js +1 -1
- package/dist/lib/observability/exporters/sentryExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/sentryExporter.js +1 -1
- package/dist/lib/observability/index.d.ts +6 -8
- package/dist/lib/observability/index.js +1 -1
- package/dist/lib/observability/metricsAggregator.d.ts +4 -108
- package/dist/lib/observability/metricsAggregator.js +0 -4
- package/dist/lib/observability/otelBridge.d.ts +2 -2
- package/dist/lib/observability/otelBridge.js +1 -1
- package/dist/lib/observability/retryPolicy.d.ts +1 -27
- package/dist/lib/observability/sampling/index.d.ts +1 -1
- package/dist/lib/observability/sampling/samplers.d.ts +1 -3
- package/dist/lib/observability/sampling/samplers.js +1 -1
- package/dist/lib/observability/spanProcessor.d.ts +1 -2
- package/dist/lib/observability/tokenTracker.d.ts +3 -41
- package/dist/lib/observability/utils/safeMetadata.d.ts +1 -1
- package/dist/lib/observability/utils/spanSerializer.d.ts +1 -1
- package/dist/lib/observability/utils/spanSerializer.js +1 -1
- package/dist/lib/processors/archive/ArchiveProcessor.d.ts +3 -44
- package/dist/lib/processors/archive/ArchiveProcessor.js +3 -0
- package/dist/lib/processors/archive/index.d.ts +1 -1
- package/dist/lib/processors/archive/index.js +1 -0
- package/dist/lib/processors/base/BaseFileProcessor.d.ts +6 -6
- package/dist/lib/processors/base/BaseFileProcessor.js +1 -1
- package/dist/lib/processors/base/index.d.ts +1 -2
- package/dist/lib/processors/base/index.js +4 -1
- package/dist/lib/processors/cli/fileProcessorCli.d.ts +1 -40
- package/dist/lib/processors/cli/fileProcessorCli.js +3 -0
- package/dist/lib/processors/cli/index.d.ts +0 -1
- package/dist/lib/processors/cli/index.js +3 -0
- package/dist/lib/processors/code/ConfigProcessor.d.ts +2 -4
- package/dist/lib/processors/code/ConfigProcessor.js +4 -0
- package/dist/lib/processors/code/SourceCodeProcessor.d.ts +2 -4
- package/dist/lib/processors/code/SourceCodeProcessor.js +4 -0
- package/dist/lib/processors/code/index.d.ts +2 -2
- package/dist/lib/processors/code/index.js +6 -2
- package/dist/lib/processors/config/fileTypes.d.ts +0 -20
- package/dist/lib/processors/config/fileTypes.js +3 -0
- package/dist/lib/processors/config/index.d.ts +4 -4
- package/dist/lib/processors/config/index.js +10 -3
- package/dist/lib/processors/config/languageMap.d.ts +0 -4
- package/dist/lib/processors/config/languageMap.js +3 -0
- package/dist/lib/processors/config/mimeTypes.d.ts +0 -18
- package/dist/lib/processors/config/mimeTypes.js +3 -0
- package/dist/lib/processors/config/sizeLimits.d.ts +0 -8
- package/dist/lib/processors/config/sizeLimits.js +3 -0
- package/dist/lib/processors/data/JsonProcessor.d.ts +2 -4
- package/dist/lib/processors/data/JsonProcessor.js +2 -0
- package/dist/lib/processors/data/XmlProcessor.d.ts +3 -5
- package/dist/lib/processors/data/XmlProcessor.js +4 -0
- package/dist/lib/processors/data/YamlProcessor.d.ts +3 -5
- package/dist/lib/processors/data/YamlProcessor.js +2 -0
- package/dist/lib/processors/data/index.d.ts +3 -3
- package/dist/lib/processors/data/index.js +9 -3
- package/dist/lib/processors/document/ExcelProcessor.d.ts +3 -5
- package/dist/lib/processors/document/ExcelProcessor.js +2 -0
- package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +2 -4
- package/dist/lib/processors/document/OpenDocumentProcessor.js +1 -0
- package/dist/lib/processors/document/RtfProcessor.d.ts +2 -4
- package/dist/lib/processors/document/RtfProcessor.js +2 -0
- package/dist/lib/processors/document/WordProcessor.d.ts +3 -5
- package/dist/lib/processors/document/WordProcessor.js +2 -0
- package/dist/lib/processors/document/index.d.ts +4 -4
- package/dist/lib/processors/document/index.js +4 -1
- package/dist/lib/processors/errors/FileErrorCode.d.ts +3 -15
- package/dist/lib/processors/errors/errorHelpers.d.ts +2 -2
- package/dist/lib/processors/errors/errorHelpers.js +1 -1
- package/dist/lib/processors/errors/errorSerializer.d.ts +3 -2
- package/dist/lib/processors/errors/index.d.ts +3 -3
- package/dist/lib/processors/index.d.ts +7 -10
- package/dist/lib/processors/index.js +11 -2
- package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +2 -70
- package/dist/lib/processors/integration/FileProcessorIntegration.js +6 -0
- package/dist/lib/processors/integration/index.d.ts +0 -1
- package/dist/lib/processors/integration/index.js +3 -0
- package/dist/lib/processors/markup/HtmlProcessor.d.ts +2 -4
- package/dist/lib/processors/markup/HtmlProcessor.js +2 -0
- package/dist/lib/processors/markup/MarkdownProcessor.d.ts +2 -4
- package/dist/lib/processors/markup/MarkdownProcessor.js +4 -0
- package/dist/lib/processors/markup/SvgProcessor.d.ts +2 -4
- package/dist/lib/processors/markup/SvgProcessor.js +4 -0
- package/dist/lib/processors/markup/TextProcessor.d.ts +2 -4
- package/dist/lib/processors/markup/TextProcessor.js +2 -0
- package/dist/lib/processors/markup/index.d.ts +4 -4
- package/dist/lib/processors/markup/index.js +12 -4
- package/dist/lib/processors/media/AudioProcessor.d.ts +3 -64
- package/dist/lib/processors/media/AudioProcessor.js +3 -0
- package/dist/lib/processors/media/VideoProcessor.d.ts +3 -48
- package/dist/lib/processors/media/VideoProcessor.js +3 -0
- package/dist/lib/processors/media/index.d.ts +0 -1
- package/dist/lib/processors/media/index.js +3 -0
- package/dist/lib/processors/registry/ProcessorRegistry.d.ts +2 -3
- package/dist/lib/processors/registry/ProcessorRegistry.js +1 -1
- package/dist/lib/processors/registry/index.d.ts +1 -11
- package/dist/lib/processors/registry/index.js +2 -9
- package/dist/lib/providers/amazonBedrock.d.ts +1 -2
- package/dist/lib/providers/amazonBedrock.js +1 -1
- package/dist/lib/providers/amazonSagemaker.d.ts +1 -1
- package/dist/lib/providers/anthropic.d.ts +2 -7
- package/dist/lib/providers/anthropic.js +3 -1
- package/dist/lib/providers/anthropicBaseProvider.d.ts +1 -1
- package/dist/lib/providers/anthropicBaseProvider.js +1 -1
- package/dist/lib/providers/azureOpenai.d.ts +1 -2
- package/dist/lib/providers/googleAiStudio.d.ts +1 -3
- package/dist/lib/providers/googleAiStudio.js +3 -2
- package/dist/lib/providers/googleNativeGemini3.d.ts +1 -2
- package/dist/lib/providers/googleVertex.d.ts +1 -3
- package/dist/lib/providers/googleVertex.js +3 -3
- package/dist/lib/providers/huggingFace.d.ts +1 -2
- package/dist/lib/providers/litellm.d.ts +1 -1
- package/dist/lib/providers/litellm.js +3 -2
- package/dist/lib/providers/mistral.d.ts +1 -3
- package/dist/lib/providers/ollama.d.ts +1 -2
- package/dist/lib/providers/ollama.js +1 -1
- package/dist/lib/providers/openAI.d.ts +1 -2
- package/dist/lib/providers/openAI.js +1 -1
- package/dist/lib/providers/openRouter.d.ts +1 -1
- package/dist/lib/providers/openaiCompatible.d.ts +1 -2
- package/dist/lib/providers/providerTypeUtils.d.ts +1 -1
- package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +1 -1
- package/dist/lib/providers/sagemaker/client.d.ts +1 -2
- package/dist/lib/providers/sagemaker/config.d.ts +1 -1
- package/dist/lib/providers/sagemaker/detection.d.ts +4 -27
- package/dist/lib/providers/sagemaker/diagnostics.d.ts +3 -2
- package/dist/lib/providers/sagemaker/errors.d.ts +1 -1
- package/dist/lib/providers/sagemaker/index.d.ts +0 -1
- package/dist/lib/providers/sagemaker/index.js +1 -0
- package/dist/lib/providers/sagemaker/language-model.d.ts +3 -4
- package/dist/lib/providers/sagemaker/parsers.d.ts +1 -26
- package/dist/lib/providers/sagemaker/streaming.d.ts +1 -1
- package/dist/lib/providers/sagemaker/streaming.js +1 -1
- package/dist/lib/providers/sagemaker/structured-parser.d.ts +1 -1
- package/dist/lib/providers/sagemaker/structured-parser.js +1 -1
- package/dist/lib/proxy/cloaking/index.d.ts +0 -1
- package/dist/lib/proxy/cloaking/index.js +1 -0
- package/dist/lib/proxy/proxyEnv.d.ts +3 -3
- package/dist/lib/proxy/proxyPaths.d.ts +1 -10
- package/dist/lib/proxy/proxyTracer.d.ts +0 -1
- package/dist/lib/proxy/quietDetector.d.ts +3 -2
- package/dist/lib/proxy/rawStreamCapture.d.ts +3 -2
- package/dist/lib/proxy/routingPolicy.d.ts +4 -29
- package/dist/lib/proxy/routingPolicy.js +14 -46
- package/dist/lib/proxy/sseInterceptor.d.ts +5 -4
- package/dist/lib/proxy/updateChecker.d.ts +3 -2
- package/dist/lib/proxy/updateState.d.ts +5 -4
- package/dist/lib/proxy/usageStats.d.ts +0 -1
- package/dist/lib/proxy/usageStats.js +0 -7
- package/dist/lib/rag/ChunkerFactory.d.ts +1 -1
- package/dist/lib/rag/ChunkerRegistry.d.ts +1 -1
- package/dist/lib/rag/chunkers/BaseChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/CharacterChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/HTMLChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/JSONChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/SentenceChunker.d.ts +1 -1
- package/dist/lib/rag/chunkers/TokenChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/characterChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/chunkerRegistry.d.ts +2 -2
- package/dist/lib/rag/chunking/htmlChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/jsonChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/latexChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/markdownChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/recursiveChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/semanticChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/sentenceChunker.d.ts +1 -1
- package/dist/lib/rag/chunking/tokenChunker.d.ts +1 -1
- package/dist/lib/rag/document/MDocument.d.ts +1 -1
- package/dist/lib/rag/document/index.d.ts +1 -1
- package/dist/lib/rag/document/loaders.d.ts +1 -6
- package/dist/lib/rag/errors/RAGError.d.ts +2 -1
- package/dist/lib/rag/errors/index.d.ts +1 -1
- package/dist/lib/rag/graphRag/graphRAG.d.ts +1 -1
- package/dist/lib/rag/index.d.ts +8 -8
- package/dist/lib/rag/index.js +1 -1
- package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +1 -5
- package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +1 -1
- package/dist/lib/rag/metadata/index.d.ts +1 -1
- package/dist/lib/rag/metadata/metadataExtractor.d.ts +1 -1
- package/dist/lib/rag/pipeline/RAGPipeline.d.ts +1 -8
- package/dist/lib/rag/pipeline/RAGPipeline.js +1 -1
- package/dist/lib/rag/pipeline/contextAssembly.d.ts +1 -5
- package/dist/lib/rag/pipeline/index.d.ts +2 -2
- package/dist/lib/rag/pipeline/index.js +1 -1
- package/dist/lib/rag/ragIntegration.d.ts +1 -3
- package/dist/lib/rag/reranker/RerankerFactory.d.ts +1 -6
- package/dist/lib/rag/reranker/RerankerFactory.js +2 -2
- package/dist/lib/rag/reranker/RerankerRegistry.d.ts +1 -1
- package/dist/lib/rag/reranker/index.d.ts +1 -1
- package/dist/lib/rag/reranker/reranker.d.ts +1 -2
- package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -4
- package/dist/lib/rag/resilience/RetryHandler.d.ts +1 -2
- package/dist/lib/rag/resilience/index.d.ts +2 -2
- package/dist/lib/rag/retrieval/hybridSearch.d.ts +1 -4
- package/dist/lib/rag/retrieval/hybridSearch.js +5 -1
- package/dist/lib/rag/retrieval/index.d.ts +2 -2
- package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +1 -3
- package/dist/lib/rag/retrieval/vectorQueryTool.js +5 -1
- package/dist/lib/sdk/toolRegistration.d.ts +3 -5
- package/dist/lib/server/abstract/baseServerAdapter.d.ts +1 -1
- package/dist/lib/server/abstract/baseServerAdapter.js +1 -2
- package/dist/lib/server/adapters/expressAdapter.d.ts +1 -1
- package/dist/lib/server/adapters/fastifyAdapter.d.ts +1 -1
- package/dist/lib/server/adapters/honoAdapter.d.ts +1 -1
- package/dist/lib/server/adapters/koaAdapter.d.ts +1 -1
- package/dist/lib/server/errors.d.ts +1 -1
- package/dist/lib/server/errors.js +1 -1
- package/dist/lib/server/factory/serverAdapterFactory.d.ts +1 -1
- package/dist/lib/server/index.d.ts +10 -12
- package/dist/lib/server/index.js +14 -3
- package/dist/lib/server/middleware/abortSignal.d.ts +3 -2
- package/dist/lib/server/middleware/auth.d.ts +7 -49
- package/dist/lib/server/middleware/auth.js +3 -0
- package/dist/lib/server/middleware/cache.d.ts +3 -54
- package/dist/lib/server/middleware/cache.js +6 -0
- package/dist/lib/server/middleware/common.d.ts +1 -1
- package/dist/lib/server/middleware/common.js +1 -2
- package/dist/lib/server/middleware/deprecation.d.ts +3 -2
- package/dist/lib/server/middleware/index.d.ts +6 -6
- package/dist/lib/server/middleware/index.js +3 -3
- package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +1 -1
- package/dist/lib/server/middleware/rateLimit.d.ts +5 -5
- package/dist/lib/server/middleware/validation.d.ts +6 -6
- package/dist/lib/server/openapi/generator.d.ts +4 -4
- package/dist/lib/server/openapi/index.d.ts +1 -1
- package/dist/lib/server/openapi/schemas.d.ts +1 -1
- package/dist/lib/server/openapi/templates.d.ts +1 -1
- package/dist/lib/server/routes/agentRoutes.d.ts +1 -1
- package/dist/lib/server/routes/claudeProxyRoutes.d.ts +1 -2
- package/dist/lib/server/routes/claudeProxyRoutes.js +55 -95
- package/dist/lib/server/routes/healthRoutes.d.ts +1 -1
- package/dist/lib/server/routes/index.d.ts +2 -2
- package/dist/lib/server/routes/mcpRoutes.d.ts +1 -1
- package/dist/lib/server/routes/memoryRoutes.d.ts +1 -1
- package/dist/lib/server/routes/openApiRoutes.d.ts +1 -1
- package/dist/lib/server/routes/toolRoutes.d.ts +1 -1
- package/dist/lib/server/streaming/dataStream.d.ts +5 -99
- package/dist/lib/server/streaming/index.d.ts +1 -1
- package/dist/lib/server/streaming/index.js +6 -1
- package/dist/lib/server/utils/redaction.d.ts +1 -8
- package/dist/lib/server/utils/redaction.js +0 -6
- package/dist/lib/server/utils/validation.d.ts +4 -30
- package/dist/lib/server/utils/validation.js +3 -0
- package/dist/lib/server/voice/frameBus.d.ts +1 -1
- package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -4
- package/dist/lib/server/websocket/WebSocketHandler.d.ts +1 -1
- package/dist/lib/services/server/ai/observability/instrumentation.d.ts +1 -63
- package/dist/lib/session/globalSessionState.d.ts +1 -1
- package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +1 -2
- package/dist/lib/tasks/backends/bullmqBackend.d.ts +1 -1
- package/dist/lib/tasks/backends/bullmqBackend.js +1 -1
- package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +1 -1
- package/dist/lib/tasks/backends/nodeTimeoutBackend.js +1 -1
- package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +1 -1
- package/dist/lib/tasks/store/fileTaskStore.d.ts +1 -1
- package/dist/lib/tasks/store/fileTaskStore.js +1 -1
- package/dist/lib/tasks/store/redisTaskStore.d.ts +1 -1
- package/dist/lib/tasks/store/redisTaskStore.js +1 -1
- package/dist/lib/tasks/taskExecutor.d.ts +1 -2
- package/dist/lib/tasks/taskManager.d.ts +1 -1
- package/dist/lib/tasks/taskManager.js +1 -1
- package/dist/lib/tasks/tools/taskTools.d.ts +7 -7
- package/dist/lib/telemetry/index.d.ts +2 -2
- package/dist/lib/telemetry/telemetryService.d.ts +1 -8
- package/dist/lib/telemetry/withSpan.d.ts +2 -7
- package/dist/lib/telemetry/withSpan.js +1 -1
- package/dist/lib/types/{actionTypes.js → action.js} +1 -1
- package/dist/lib/types/{typeAliases.d.ts → aliases.d.ts} +1 -32
- package/dist/lib/types/{typeAliases.js → aliases.js} +1 -1
- package/dist/{types/artifactTypes.d.ts → lib/types/artifact.d.ts} +2 -2
- package/dist/lib/types/{artifactTypes.js → artifact.js} +1 -1
- package/dist/{types/authTypes.d.ts → lib/types/auth.d.ts} +43 -2
- package/dist/lib/types/{authTypes.js → auth.js} +1 -1
- package/dist/{types/autoresearchTypes.d.ts → lib/types/autoresearch.d.ts} +1 -1
- package/dist/lib/types/{autoresearchTypes.js → autoresearch.js} +1 -1
- package/dist/lib/types/circuitBreakerErrors.d.ts +1 -1
- package/dist/lib/types/cli.d.ts +60 -12
- package/dist/lib/types/cli.js +1 -1
- package/dist/{types/clientTypes.d.ts → lib/types/client.d.ts} +292 -107
- package/dist/lib/types/{clientTypes.js → client.js} +1 -1
- package/dist/lib/types/common.d.ts +135 -2
- package/dist/{types/configTypes.d.ts → lib/types/config.d.ts} +8 -9
- package/dist/lib/types/{configTypes.js → config.js} +1 -1
- package/dist/lib/types/{contextTypes.js → context.js} +1 -1
- package/dist/lib/types/conversation.d.ts +6 -4
- package/dist/lib/types/{domainTypes.js → domain.js} +1 -1
- package/dist/lib/{mcp/elicitation/types.d.ts → types/elicitation.d.ts} +1 -1
- package/dist/lib/{mcp/elicitation/types.js → types/elicitation.js} +1 -1
- package/dist/lib/types/enums.d.ts +9 -0
- package/dist/lib/types/enums.js +10 -0
- package/dist/lib/types/evaluation.d.ts +200 -1
- package/dist/lib/types/evaluation.js +1 -1
- package/dist/lib/{observability/types/exporterTypes.js → types/exporter.js} +1 -1
- package/dist/lib/types/externalMcp.d.ts +4 -4
- package/dist/lib/types/{fileTypes.js → file.js} +1 -1
- package/dist/lib/types/{fileReferenceTypes.d.ts → fileReference.d.ts} +13 -1
- package/dist/lib/{files/types.js → types/fileReference.js} +3 -5
- package/dist/lib/types/{generateTypes.d.ts → generate.d.ts} +13 -11
- package/dist/lib/types/generate.js +2 -0
- package/dist/lib/types/{groundingTypes.js → grounding.js} +1 -1
- package/dist/lib/types/{hitlTypes.js → hitl.js} +1 -1
- package/dist/{image-gen/types.d.ts → lib/types/imageGen.d.ts} +18 -0
- package/dist/lib/{image-gen/types.js → types/imageGen.js} +1 -1
- package/dist/lib/types/index.d.ts +50 -47
- package/dist/lib/types/index.js +52 -57
- package/dist/lib/types/mcp.d.ts +2035 -0
- package/dist/lib/types/{mcpTypes.js → mcp.js} +1 -1
- package/dist/lib/types/{mcpOutputTypes.js → mcpOutput.js} +1 -1
- package/dist/lib/types/{middlewareTypes.d.ts → middleware.d.ts} +1 -2
- package/dist/lib/types/middleware.js +2 -0
- package/dist/lib/types/{modelTypes.d.ts → model.d.ts} +1 -1
- package/dist/lib/types/{modelTypes.js → model.js} +1 -1
- package/dist/lib/types/observability.d.ts +216 -4
- package/dist/{types/pptTypes.d.ts → lib/types/ppt.d.ts} +0 -28
- package/dist/lib/types/ppt.js +37 -0
- package/dist/lib/{processors/base/types.d.ts → types/processor.d.ts} +233 -7
- package/dist/lib/{processors/base/types.js → types/processor.js} +9 -1
- package/dist/lib/types/providers.d.ts +9 -8
- package/dist/lib/types/{proxyTypes.d.ts → proxy.d.ts} +18 -16
- package/dist/lib/types/{proxyTypes.js → proxy.js} +1 -1
- package/dist/lib/{rag/types.d.ts → types/rag.d.ts} +604 -32
- package/dist/lib/types/{ragTypes.js → rag.js} +1 -1
- package/dist/{types/scorerTypes.d.ts → lib/types/scorer.d.ts} +2 -2
- package/dist/lib/types/{scorerTypes.js → scorer.js} +1 -1
- package/dist/lib/types/{sdkTypes.d.ts → sdk.d.ts} +9 -9
- package/dist/lib/types/{sdkTypes.js → sdk.js} +1 -1
- package/dist/{types/serverTypes.d.ts → lib/types/server.d.ts} +156 -2
- package/dist/lib/types/{serverTypes.js → server.js} +1 -1
- package/dist/lib/types/{serviceTypes.js → service.js} +1 -1
- package/dist/lib/{observability/types/spanTypes.js → types/span.js} +1 -1
- package/dist/{types/streamTypes.d.ts → lib/types/stream.d.ts} +19 -36
- package/dist/lib/types/stream.js +2 -0
- package/dist/lib/types/{subscriptionTypes.d.ts → subscription.d.ts} +34 -56
- package/dist/lib/types/{subscriptionTypes.js → subscription.js} +1 -1
- package/dist/lib/types/{taskTypes.d.ts → task.d.ts} +6 -6
- package/dist/lib/types/{taskTypes.js → task.js} +1 -1
- package/dist/lib/types/{taskClassificationTypes.js → taskClassification.js} +1 -1
- package/dist/lib/types/tools.d.ts +6 -4
- package/dist/lib/types/{ttsTypes.js → tts.js} +1 -1
- package/dist/lib/types/universalProviderOptions.d.ts +1 -1
- package/dist/lib/types/utilities.d.ts +1 -1
- package/dist/lib/types/{workflowTypes.d.ts → workflow.d.ts} +23 -1
- package/dist/lib/types/{workflowTypes.js → workflow.js} +1 -9
- package/dist/lib/utils/async/index.d.ts +1 -1
- package/dist/lib/utils/async/retry.d.ts +2 -1
- package/dist/lib/utils/conversationMemory.d.ts +1 -2
- package/dist/lib/utils/csvProcessor.d.ts +1 -1
- package/dist/lib/utils/errorHandling.d.ts +1 -1
- package/dist/lib/utils/errorHandling.js +1 -1
- package/dist/lib/utils/evaluationUtils.d.ts +1 -1
- package/dist/lib/utils/factoryProcessing.d.ts +1 -5
- package/dist/lib/utils/fileDetector.d.ts +1 -1
- package/dist/lib/utils/imageCache.d.ts +1 -1
- package/dist/lib/utils/imageCompressor.d.ts +5 -5
- package/dist/lib/utils/imageProcessor.d.ts +1 -2
- package/dist/lib/utils/json/extract.d.ts +1 -2
- package/dist/lib/utils/logger.d.ts +1 -1
- package/dist/lib/utils/loopUtils.d.ts +1 -2
- package/dist/lib/utils/mcpDefaults.d.ts +1 -1
- package/dist/lib/utils/messageBuilder.d.ts +1 -4
- package/dist/lib/utils/messageBuilder.js +1 -1
- package/dist/lib/utils/modelAliasResolver.d.ts +1 -1
- package/dist/lib/utils/modelRouter.d.ts +1 -1
- package/dist/lib/utils/multimodalOptionsBuilder.d.ts +6 -6
- package/dist/lib/utils/observabilityHelpers.d.ts +1 -1
- package/dist/lib/utils/optionsConversion.d.ts +1 -3
- package/dist/lib/utils/optionsUtils.d.ts +1 -3
- package/dist/lib/utils/optionsUtils.js +1 -1
- package/dist/lib/utils/parameterValidation.d.ts +1 -5
- package/dist/lib/utils/performance.d.ts +1 -1
- package/dist/lib/utils/pricing.d.ts +1 -1
- package/dist/lib/utils/promptRedaction.d.ts +1 -1
- package/dist/lib/utils/providerConfig.d.ts +1 -4
- package/dist/lib/utils/providerConfig.js +1 -0
- package/dist/lib/utils/providerHealth.d.ts +1 -1
- package/dist/lib/utils/providerUtils.d.ts +2 -3
- package/dist/lib/utils/rateLimiter.d.ts +1 -1
- package/dist/lib/utils/redis.d.ts +1 -1
- package/dist/lib/utils/retryHandler.d.ts +1 -1
- package/dist/lib/utils/sanitizers/index.d.ts +0 -2
- package/dist/lib/utils/schemaConversion.d.ts +1 -1
- package/dist/lib/utils/taskClassificationUtils.d.ts +1 -1
- package/dist/lib/utils/taskClassifier.d.ts +1 -1
- package/dist/lib/utils/thinkingConfig.d.ts +1 -1
- package/dist/lib/utils/timeout.d.ts +1 -1
- package/dist/lib/utils/tokenEstimation.d.ts +1 -1
- package/dist/lib/utils/tokenUtils.d.ts +1 -2
- package/dist/lib/utils/toolUtils.d.ts +1 -1
- package/dist/lib/utils/transformationUtils.d.ts +1 -1
- package/dist/lib/utils/ttsProcessor.d.ts +1 -69
- package/dist/lib/utils/ttsProcessor.js +1 -2
- package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +1 -1
- package/dist/lib/workflow/config.d.ts +9 -9
- package/dist/lib/workflow/core/ensembleExecutor.d.ts +1 -2
- package/dist/lib/workflow/core/ensembleExecutor.js +1 -1
- package/dist/lib/workflow/core/judgeScorer.d.ts +2 -3
- package/dist/lib/workflow/core/judgeScorer.js +1 -1
- package/dist/lib/workflow/core/responseConditioner.d.ts +1 -2
- package/dist/lib/workflow/core/workflowRegistry.d.ts +1 -2
- package/dist/lib/workflow/core/workflowRunner.d.ts +3 -39
- package/dist/lib/workflow/index.d.ts +0 -15
- package/dist/lib/workflow/index.js +3 -8
- package/dist/lib/workflow/utils/workflowMetrics.d.ts +1 -3
- package/dist/lib/workflow/utils/workflowValidation.d.ts +1 -1
- package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +1 -1
- package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +1 -1
- package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +1 -1
- package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +1 -1
- package/dist/mcp/agentExposure.d.ts +1 -146
- package/dist/mcp/auth/oauthClientProvider.d.ts +1 -1
- package/dist/mcp/auth/tokenStorage.d.ts +1 -1
- package/dist/mcp/batching/index.d.ts +0 -10
- package/dist/mcp/batching/index.js +0 -9
- package/dist/mcp/batching/requestBatcher.d.ts +1 -73
- package/dist/mcp/caching/index.d.ts +0 -10
- package/dist/mcp/caching/index.js +0 -9
- package/dist/mcp/caching/toolCache.d.ts +6 -73
- package/dist/mcp/elicitation/elicitationManager.d.ts +1 -1
- package/dist/mcp/elicitation/index.d.ts +0 -10
- package/dist/mcp/elicitation/index.js +0 -9
- package/dist/mcp/elicitationProtocol.d.ts +1 -90
- package/dist/mcp/enhancedToolDiscovery.d.ts +2 -82
- package/dist/mcp/enhancedToolDiscovery.js +1 -1
- package/dist/mcp/externalServerManager.d.ts +1 -5
- package/dist/mcp/factory.d.ts +1 -1
- package/dist/mcp/flexibleToolValidator.d.ts +1 -1
- package/dist/mcp/httpRateLimiter.d.ts +6 -6
- package/dist/mcp/httpRateLimiter.js +1 -2
- package/dist/mcp/httpRetryHandler.d.ts +1 -1
- package/dist/mcp/httpRetryHandler.js +1 -2
- package/dist/mcp/index.d.ts +1 -15
- package/dist/mcp/index.js +7 -0
- package/dist/mcp/mcpCircuitBreaker.d.ts +2 -2
- package/dist/mcp/mcpCircuitBreaker.js +2 -2
- package/dist/mcp/mcpClientFactory.d.ts +1 -2
- package/dist/mcp/mcpClientFactory.js +2 -3
- package/dist/mcp/mcpOutputNormalizer.d.ts +1 -3
- package/dist/mcp/mcpOutputNormalizer.js +1 -0
- package/dist/mcp/mcpRegistryClient.d.ts +13 -216
- package/dist/mcp/mcpServerBase.d.ts +1 -66
- package/dist/mcp/mcpServerBase.js +3 -0
- package/dist/mcp/multiServerManager.d.ts +1 -116
- package/dist/mcp/registry.d.ts +1 -3
- package/dist/mcp/routing/index.d.ts +0 -10
- package/dist/mcp/routing/index.js +0 -9
- package/dist/mcp/routing/toolRouter.d.ts +1 -110
- package/dist/mcp/serverCapabilities.d.ts +1 -167
- package/dist/mcp/toolAnnotations.d.ts +1 -98
- package/dist/mcp/toolConverter.d.ts +1 -92
- package/dist/mcp/toolDiscoveryService.d.ts +1 -3
- package/dist/mcp/toolIntegration.d.ts +1 -45
- package/dist/mcp/toolRegistry.d.ts +1 -3
- package/dist/memory/hippocampusInitializer.d.ts +0 -3
- package/dist/memory/memoryRetrievalTools.d.ts +1 -1
- package/dist/memory/memoryRetrievalTools.js +1 -2
- package/dist/middleware/builtin/analytics.d.ts +1 -1
- package/dist/middleware/builtin/autoEvaluation.d.ts +1 -1
- package/dist/middleware/builtin/guardrails.d.ts +1 -2
- package/dist/middleware/builtin/lifecycle.d.ts +1 -1
- package/dist/middleware/factory.d.ts +1 -1
- package/dist/middleware/index.d.ts +0 -2
- package/dist/middleware/index.js +1 -0
- package/dist/middleware/registry.d.ts +1 -1
- package/dist/middleware/utils/guardrailsUtils.d.ts +1 -1
- package/dist/models/anthropicModels.d.ts +2 -2
- package/dist/models/anthropicModels.js +1 -1
- package/dist/models/modelRegistry.d.ts +1 -2
- package/dist/models/modelRegistry.js +1 -1
- package/dist/models/modelResolver.d.ts +1 -2
- package/dist/neurolink.d.ts +14 -29
- package/dist/neurolink.js +3 -5
- package/dist/observability/exporterRegistry.d.ts +1 -1
- package/dist/observability/exporters/arizeExporter.d.ts +1 -1
- package/dist/observability/exporters/baseExporter.d.ts +1 -1
- package/dist/observability/exporters/braintrustExporter.d.ts +1 -1
- package/dist/observability/exporters/datadogExporter.d.ts +1 -1
- package/dist/observability/exporters/datadogExporter.js +1 -1
- package/dist/observability/exporters/laminarExporter.d.ts +1 -1
- package/dist/observability/exporters/laminarExporter.js +1 -1
- package/dist/observability/exporters/langfuseExporter.d.ts +1 -1
- package/dist/observability/exporters/langfuseExporter.js +1 -1
- package/dist/observability/exporters/langsmithExporter.d.ts +1 -1
- package/dist/observability/exporters/otelExporter.d.ts +1 -1
- package/dist/observability/exporters/posthogExporter.d.ts +1 -1
- package/dist/observability/exporters/posthogExporter.js +1 -1
- package/dist/observability/exporters/sentryExporter.d.ts +1 -1
- package/dist/observability/exporters/sentryExporter.js +1 -1
- package/dist/observability/index.d.ts +6 -8
- package/dist/observability/index.js +1 -1
- package/dist/observability/metricsAggregator.d.ts +4 -108
- package/dist/observability/metricsAggregator.js +0 -4
- package/dist/observability/otelBridge.d.ts +2 -2
- package/dist/observability/otelBridge.js +1 -1
- package/dist/observability/retryPolicy.d.ts +1 -27
- package/dist/observability/sampling/index.d.ts +1 -1
- package/dist/observability/sampling/samplers.d.ts +1 -3
- package/dist/observability/sampling/samplers.js +1 -1
- package/dist/observability/spanProcessor.d.ts +1 -2
- package/dist/observability/tokenTracker.d.ts +3 -41
- package/dist/observability/utils/safeMetadata.d.ts +1 -1
- package/dist/observability/utils/spanSerializer.d.ts +1 -1
- package/dist/observability/utils/spanSerializer.js +1 -1
- package/dist/processors/archive/ArchiveProcessor.d.ts +3 -44
- package/dist/processors/archive/ArchiveProcessor.js +3 -0
- package/dist/processors/archive/index.d.ts +1 -1
- package/dist/processors/archive/index.js +1 -0
- package/dist/processors/base/BaseFileProcessor.d.ts +6 -6
- package/dist/processors/base/BaseFileProcessor.js +1 -1
- package/dist/processors/base/index.d.ts +1 -2
- package/dist/processors/base/index.js +4 -1
- package/dist/processors/cli/fileProcessorCli.d.ts +1 -40
- package/dist/processors/cli/fileProcessorCli.js +3 -0
- package/dist/processors/cli/index.d.ts +0 -1
- package/dist/processors/cli/index.js +3 -0
- package/dist/processors/code/ConfigProcessor.d.ts +2 -4
- package/dist/processors/code/ConfigProcessor.js +4 -0
- package/dist/processors/code/SourceCodeProcessor.d.ts +2 -4
- package/dist/processors/code/SourceCodeProcessor.js +4 -0
- package/dist/processors/code/index.d.ts +2 -2
- package/dist/processors/code/index.js +6 -2
- package/dist/processors/config/fileTypes.d.ts +0 -20
- package/dist/processors/config/fileTypes.js +3 -0
- package/dist/processors/config/index.d.ts +4 -4
- package/dist/processors/config/index.js +10 -3
- package/dist/processors/config/languageMap.d.ts +0 -4
- package/dist/processors/config/languageMap.js +3 -0
- package/dist/processors/config/mimeTypes.d.ts +0 -18
- package/dist/processors/config/mimeTypes.js +3 -0
- package/dist/processors/config/sizeLimits.d.ts +0 -8
- package/dist/processors/config/sizeLimits.js +3 -0
- package/dist/processors/data/JsonProcessor.d.ts +2 -4
- package/dist/processors/data/JsonProcessor.js +2 -0
- package/dist/processors/data/XmlProcessor.d.ts +3 -5
- package/dist/processors/data/XmlProcessor.js +4 -0
- package/dist/processors/data/YamlProcessor.d.ts +3 -5
- package/dist/processors/data/YamlProcessor.js +2 -0
- package/dist/processors/data/index.d.ts +3 -3
- package/dist/processors/data/index.js +9 -3
- package/dist/processors/document/ExcelProcessor.d.ts +3 -5
- package/dist/processors/document/ExcelProcessor.js +2 -0
- package/dist/processors/document/OpenDocumentProcessor.d.ts +2 -4
- package/dist/processors/document/OpenDocumentProcessor.js +1 -0
- package/dist/processors/document/RtfProcessor.d.ts +2 -4
- package/dist/processors/document/RtfProcessor.js +2 -0
- package/dist/processors/document/WordProcessor.d.ts +3 -5
- package/dist/processors/document/WordProcessor.js +2 -0
- package/dist/processors/document/index.d.ts +4 -4
- package/dist/processors/document/index.js +4 -1
- package/dist/processors/errors/FileErrorCode.d.ts +3 -15
- package/dist/processors/errors/errorHelpers.d.ts +2 -2
- package/dist/processors/errors/errorHelpers.js +1 -1
- package/dist/processors/errors/errorSerializer.d.ts +3 -2
- package/dist/processors/errors/index.d.ts +3 -3
- package/dist/processors/index.d.ts +7 -10
- package/dist/processors/index.js +11 -2
- package/dist/processors/integration/FileProcessorIntegration.d.ts +2 -70
- package/dist/processors/integration/FileProcessorIntegration.js +6 -0
- package/dist/processors/integration/index.d.ts +0 -1
- package/dist/processors/integration/index.js +3 -0
- package/dist/processors/markup/HtmlProcessor.d.ts +2 -4
- package/dist/processors/markup/HtmlProcessor.js +2 -0
- package/dist/processors/markup/MarkdownProcessor.d.ts +2 -4
- package/dist/processors/markup/MarkdownProcessor.js +4 -0
- package/dist/processors/markup/SvgProcessor.d.ts +2 -4
- package/dist/processors/markup/SvgProcessor.js +4 -0
- package/dist/processors/markup/TextProcessor.d.ts +2 -4
- package/dist/processors/markup/TextProcessor.js +2 -0
- package/dist/processors/markup/index.d.ts +4 -4
- package/dist/processors/markup/index.js +12 -4
- package/dist/processors/media/AudioProcessor.d.ts +3 -64
- package/dist/processors/media/AudioProcessor.js +3 -0
- package/dist/processors/media/VideoProcessor.d.ts +3 -48
- package/dist/processors/media/VideoProcessor.js +3 -0
- package/dist/processors/media/index.d.ts +0 -1
- package/dist/processors/media/index.js +3 -0
- package/dist/processors/registry/ProcessorRegistry.d.ts +2 -3
- package/dist/processors/registry/ProcessorRegistry.js +1 -1
- package/dist/processors/registry/index.d.ts +1 -11
- package/dist/processors/registry/index.js +2 -9
- package/dist/providers/amazonBedrock.d.ts +1 -2
- package/dist/providers/amazonBedrock.js +1 -1
- package/dist/providers/amazonSagemaker.d.ts +1 -1
- package/dist/providers/anthropic.d.ts +1 -6
- package/dist/providers/anthropic.js +3 -1
- package/dist/providers/anthropicBaseProvider.d.ts +1 -1
- package/dist/providers/anthropicBaseProvider.js +1 -1
- package/dist/providers/azureOpenai.d.ts +1 -2
- package/dist/providers/googleAiStudio.d.ts +1 -3
- package/dist/providers/googleAiStudio.js +3 -2
- package/dist/providers/googleNativeGemini3.d.ts +1 -2
- package/dist/providers/googleVertex.d.ts +1 -3
- package/dist/providers/googleVertex.js +3 -3
- package/dist/providers/huggingFace.d.ts +1 -2
- package/dist/providers/litellm.d.ts +1 -1
- package/dist/providers/litellm.js +3 -2
- package/dist/providers/mistral.d.ts +1 -3
- package/dist/providers/ollama.d.ts +1 -2
- package/dist/providers/ollama.js +1 -1
- package/dist/providers/openAI.d.ts +1 -2
- package/dist/providers/openAI.js +1 -1
- package/dist/providers/openRouter.d.ts +1 -1
- package/dist/providers/openaiCompatible.d.ts +1 -2
- package/dist/providers/providerTypeUtils.d.ts +1 -1
- package/dist/providers/sagemaker/adaptive-semaphore.d.ts +1 -1
- package/dist/providers/sagemaker/client.d.ts +1 -2
- package/dist/providers/sagemaker/config.d.ts +1 -1
- package/dist/providers/sagemaker/detection.d.ts +4 -27
- package/dist/providers/sagemaker/diagnostics.d.ts +3 -2
- package/dist/providers/sagemaker/errors.d.ts +1 -1
- package/dist/providers/sagemaker/index.d.ts +0 -1
- package/dist/providers/sagemaker/index.js +1 -0
- package/dist/providers/sagemaker/language-model.d.ts +3 -4
- package/dist/providers/sagemaker/parsers.d.ts +1 -26
- package/dist/providers/sagemaker/streaming.d.ts +1 -1
- package/dist/providers/sagemaker/streaming.js +1 -1
- package/dist/providers/sagemaker/structured-parser.d.ts +1 -1
- package/dist/providers/sagemaker/structured-parser.js +1 -1
- package/dist/proxy/cloaking/index.d.ts +0 -1
- package/dist/proxy/cloaking/index.js +1 -0
- package/dist/proxy/proxyEnv.d.ts +3 -3
- package/dist/proxy/proxyPaths.d.ts +1 -10
- package/dist/proxy/proxyTracer.d.ts +0 -1
- package/dist/proxy/quietDetector.d.ts +3 -2
- package/dist/proxy/rawStreamCapture.d.ts +3 -2
- package/dist/proxy/routingPolicy.d.ts +4 -29
- package/dist/proxy/routingPolicy.js +14 -46
- package/dist/proxy/sseInterceptor.d.ts +5 -4
- package/dist/proxy/updateChecker.d.ts +3 -2
- package/dist/proxy/updateState.d.ts +5 -4
- package/dist/proxy/usageStats.d.ts +0 -1
- package/dist/proxy/usageStats.js +0 -7
- package/dist/rag/ChunkerFactory.d.ts +1 -1
- package/dist/rag/ChunkerRegistry.d.ts +1 -1
- package/dist/rag/chunkers/BaseChunker.d.ts +1 -1
- package/dist/rag/chunkers/CharacterChunker.d.ts +1 -1
- package/dist/rag/chunkers/HTMLChunker.d.ts +1 -1
- package/dist/rag/chunkers/JSONChunker.d.ts +1 -1
- package/dist/rag/chunkers/LaTeXChunker.d.ts +1 -1
- package/dist/rag/chunkers/MarkdownChunker.d.ts +1 -1
- package/dist/rag/chunkers/RecursiveChunker.d.ts +1 -1
- package/dist/rag/chunkers/SemanticMarkdownChunker.d.ts +1 -1
- package/dist/rag/chunkers/SentenceChunker.d.ts +1 -1
- package/dist/rag/chunkers/TokenChunker.d.ts +1 -1
- package/dist/rag/chunking/characterChunker.d.ts +1 -1
- package/dist/rag/chunking/chunkerRegistry.d.ts +2 -2
- package/dist/rag/chunking/htmlChunker.d.ts +1 -1
- package/dist/rag/chunking/jsonChunker.d.ts +1 -1
- package/dist/rag/chunking/latexChunker.d.ts +1 -1
- package/dist/rag/chunking/markdownChunker.d.ts +1 -1
- package/dist/rag/chunking/recursiveChunker.d.ts +1 -1
- package/dist/rag/chunking/semanticChunker.d.ts +1 -1
- package/dist/rag/chunking/sentenceChunker.d.ts +1 -1
- package/dist/rag/chunking/tokenChunker.d.ts +1 -1
- package/dist/rag/document/MDocument.d.ts +1 -1
- package/dist/rag/document/index.d.ts +1 -1
- package/dist/rag/document/loaders.d.ts +1 -6
- package/dist/rag/errors/RAGError.d.ts +2 -1
- package/dist/rag/errors/index.d.ts +1 -1
- package/dist/rag/graphRag/graphRAG.d.ts +1 -1
- package/dist/rag/index.d.ts +8 -8
- package/dist/rag/index.js +1 -1
- package/dist/rag/metadata/MetadataExtractorFactory.d.ts +1 -5
- package/dist/rag/metadata/MetadataExtractorRegistry.d.ts +1 -1
- package/dist/rag/metadata/index.d.ts +1 -1
- package/dist/rag/metadata/metadataExtractor.d.ts +1 -1
- package/dist/rag/pipeline/RAGPipeline.d.ts +1 -8
- package/dist/rag/pipeline/RAGPipeline.js +1 -1
- package/dist/rag/pipeline/contextAssembly.d.ts +1 -5
- package/dist/rag/pipeline/index.d.ts +2 -2
- package/dist/rag/pipeline/index.js +1 -1
- package/dist/rag/ragIntegration.d.ts +1 -3
- package/dist/rag/reranker/RerankerFactory.d.ts +1 -6
- package/dist/rag/reranker/RerankerFactory.js +2 -2
- package/dist/rag/reranker/RerankerRegistry.d.ts +1 -1
- package/dist/rag/reranker/index.d.ts +1 -1
- package/dist/rag/reranker/reranker.d.ts +1 -2
- package/dist/rag/resilience/CircuitBreaker.d.ts +0 -4
- package/dist/rag/resilience/RetryHandler.d.ts +1 -2
- package/dist/rag/resilience/index.d.ts +2 -2
- package/dist/rag/retrieval/hybridSearch.d.ts +1 -4
- package/dist/rag/retrieval/hybridSearch.js +5 -1
- package/dist/rag/retrieval/index.d.ts +2 -2
- package/dist/rag/retrieval/vectorQueryTool.d.ts +1 -3
- package/dist/rag/retrieval/vectorQueryTool.js +5 -1
- package/dist/sdk/toolRegistration.d.ts +3 -5
- package/dist/server/abstract/baseServerAdapter.d.ts +1 -1
- package/dist/server/abstract/baseServerAdapter.js +1 -2
- package/dist/server/adapters/expressAdapter.d.ts +1 -1
- package/dist/server/adapters/fastifyAdapter.d.ts +1 -1
- package/dist/server/adapters/honoAdapter.d.ts +1 -1
- package/dist/server/adapters/koaAdapter.d.ts +1 -1
- package/dist/server/errors.d.ts +1 -1
- package/dist/server/errors.js +1 -1
- package/dist/server/factory/serverAdapterFactory.d.ts +1 -1
- package/dist/server/index.d.ts +10 -12
- package/dist/server/index.js +14 -3
- package/dist/server/middleware/abortSignal.d.ts +3 -2
- package/dist/server/middleware/auth.d.ts +7 -49
- package/dist/server/middleware/auth.js +3 -0
- package/dist/server/middleware/cache.d.ts +3 -54
- package/dist/server/middleware/cache.js +6 -0
- package/dist/server/middleware/common.d.ts +1 -1
- package/dist/server/middleware/common.js +1 -2
- package/dist/server/middleware/deprecation.d.ts +3 -2
- package/dist/server/middleware/index.d.ts +6 -6
- package/dist/server/middleware/index.js +3 -3
- package/dist/server/middleware/mcpBodyAttachment.d.ts +1 -1
- package/dist/server/middleware/rateLimit.d.ts +5 -5
- package/dist/server/middleware/validation.d.ts +6 -6
- package/dist/server/openapi/generator.d.ts +4 -4
- package/dist/server/openapi/index.d.ts +1 -1
- package/dist/server/openapi/schemas.d.ts +1 -1
- package/dist/server/openapi/templates.d.ts +1 -1
- package/dist/server/routes/agentRoutes.d.ts +1 -1
- package/dist/server/routes/claudeProxyRoutes.d.ts +1 -2
- package/dist/server/routes/claudeProxyRoutes.js +55 -95
- package/dist/server/routes/healthRoutes.d.ts +1 -1
- package/dist/server/routes/index.d.ts +2 -2
- package/dist/server/routes/mcpRoutes.d.ts +1 -1
- package/dist/server/routes/memoryRoutes.d.ts +1 -1
- package/dist/server/routes/openApiRoutes.d.ts +1 -1
- package/dist/server/routes/toolRoutes.d.ts +1 -1
- package/dist/server/streaming/dataStream.d.ts +5 -99
- package/dist/server/streaming/index.d.ts +1 -1
- package/dist/server/streaming/index.js +6 -1
- package/dist/server/utils/redaction.d.ts +1 -8
- package/dist/server/utils/redaction.js +0 -6
- package/dist/server/utils/validation.d.ts +4 -30
- package/dist/server/utils/validation.js +3 -0
- package/dist/server/voice/frameBus.d.ts +1 -1
- package/dist/server/voice/voiceWebSocketHandler.d.ts +0 -4
- package/dist/server/websocket/WebSocketHandler.d.ts +1 -1
- package/dist/services/server/ai/observability/instrumentation.d.ts +1 -63
- package/dist/session/globalSessionState.d.ts +1 -1
- package/dist/tasks/autoresearchTaskExecutor.d.ts +1 -2
- package/dist/tasks/backends/bullmqBackend.d.ts +1 -1
- package/dist/tasks/backends/bullmqBackend.js +1 -1
- package/dist/tasks/backends/nodeTimeoutBackend.d.ts +1 -1
- package/dist/tasks/backends/nodeTimeoutBackend.js +1 -1
- package/dist/tasks/backends/taskBackendRegistry.d.ts +1 -1
- package/dist/tasks/store/fileTaskStore.d.ts +1 -1
- package/dist/tasks/store/fileTaskStore.js +1 -1
- package/dist/tasks/store/redisTaskStore.d.ts +1 -1
- package/dist/tasks/store/redisTaskStore.js +1 -1
- package/dist/tasks/taskExecutor.d.ts +1 -2
- package/dist/tasks/taskManager.d.ts +1 -1
- package/dist/tasks/taskManager.js +1 -1
- package/dist/tasks/tools/taskTools.d.ts +3 -3
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/telemetryService.d.ts +1 -8
- package/dist/telemetry/withSpan.d.ts +2 -7
- package/dist/telemetry/withSpan.js +1 -1
- package/dist/types/{typeAliases.d.ts → aliases.d.ts} +1 -32
- package/dist/{lib/types/artifactTypes.d.ts → types/artifact.d.ts} +2 -2
- package/dist/{lib/types/authTypes.d.ts → types/auth.d.ts} +43 -2
- package/dist/{lib/types/autoresearchTypes.d.ts → types/autoresearch.d.ts} +1 -1
- package/dist/types/circuitBreakerErrors.d.ts +1 -1
- package/dist/types/cli.d.ts +60 -12
- package/dist/types/cli.js +1 -1
- package/dist/{lib/types/clientTypes.d.ts → types/client.d.ts} +292 -107
- package/dist/types/common.d.ts +135 -2
- package/dist/{lib/types/configTypes.d.ts → types/config.d.ts} +8 -9
- package/dist/types/conversation.d.ts +6 -4
- package/dist/{mcp/elicitation/types.d.ts → types/elicitation.d.ts} +1 -1
- package/dist/types/enums.d.ts +9 -0
- package/dist/types/enums.js +9 -0
- package/dist/types/evaluation.d.ts +200 -1
- package/dist/types/evaluation.js +1 -1
- package/dist/types/externalMcp.d.ts +4 -4
- package/dist/types/{fileReferenceTypes.d.ts → fileReference.d.ts} +13 -1
- package/dist/{files/types.js → types/fileReference.js} +2 -4
- package/dist/types/{generateTypes.d.ts → generate.d.ts} +13 -11
- package/dist/{lib/image-gen/types.d.ts → types/imageGen.d.ts} +18 -0
- package/dist/types/index.d.ts +50 -47
- package/dist/types/index.js +52 -57
- package/dist/types/mcp.d.ts +2035 -0
- package/dist/types/{middlewareTypes.d.ts → middleware.d.ts} +1 -2
- package/dist/types/{modelTypes.d.ts → model.d.ts} +1 -1
- package/dist/types/observability.d.ts +216 -4
- package/dist/{lib/types/pptTypes.d.ts → types/ppt.d.ts} +0 -28
- package/dist/types/ppt.js +36 -0
- package/dist/{processors/base/types.d.ts → types/processor.d.ts} +233 -7
- package/dist/{processors/base/types.js → types/processor.js} +8 -0
- package/dist/types/providers.d.ts +9 -8
- package/dist/types/{proxyTypes.d.ts → proxy.d.ts} +18 -16
- package/dist/{rag/types.d.ts → types/rag.d.ts} +604 -32
- package/dist/{lib/types/scorerTypes.d.ts → types/scorer.d.ts} +2 -2
- package/dist/types/{sdkTypes.d.ts → sdk.d.ts} +9 -9
- package/dist/{lib/types/serverTypes.d.ts → types/server.d.ts} +156 -2
- package/dist/{lib/types/streamTypes.d.ts → types/stream.d.ts} +19 -36
- package/dist/types/{subscriptionTypes.d.ts → subscription.d.ts} +34 -56
- package/dist/types/{taskTypes.d.ts → task.d.ts} +6 -6
- package/dist/types/tools.d.ts +6 -4
- package/dist/types/universalProviderOptions.d.ts +1 -1
- package/dist/types/utilities.d.ts +1 -1
- package/dist/types/{workflowTypes.d.ts → workflow.d.ts} +23 -1
- package/dist/types/{workflowTypes.js → workflow.js} +0 -8
- package/dist/utils/async/index.d.ts +1 -1
- package/dist/utils/async/retry.d.ts +2 -1
- package/dist/utils/conversationMemory.d.ts +1 -2
- package/dist/utils/csvProcessor.d.ts +1 -1
- package/dist/utils/errorHandling.d.ts +1 -1
- package/dist/utils/errorHandling.js +1 -1
- package/dist/utils/evaluationUtils.d.ts +1 -1
- package/dist/utils/factoryProcessing.d.ts +1 -5
- package/dist/utils/fileDetector.d.ts +1 -1
- package/dist/utils/imageCache.d.ts +1 -1
- package/dist/utils/imageCompressor.d.ts +5 -5
- package/dist/utils/imageProcessor.d.ts +1 -2
- package/dist/utils/json/extract.d.ts +1 -2
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/loopUtils.d.ts +1 -2
- package/dist/utils/mcpDefaults.d.ts +1 -1
- package/dist/utils/messageBuilder.d.ts +1 -4
- package/dist/utils/messageBuilder.js +1 -1
- package/dist/utils/modelAliasResolver.d.ts +1 -1
- package/dist/utils/modelRouter.d.ts +1 -1
- package/dist/utils/multimodalOptionsBuilder.d.ts +1 -1
- package/dist/utils/observabilityHelpers.d.ts +1 -1
- package/dist/utils/optionsConversion.d.ts +1 -3
- package/dist/utils/optionsUtils.d.ts +1 -3
- package/dist/utils/optionsUtils.js +1 -1
- package/dist/utils/parameterValidation.d.ts +1 -5
- package/dist/utils/performance.d.ts +1 -1
- package/dist/utils/pricing.d.ts +1 -1
- package/dist/utils/promptRedaction.d.ts +1 -1
- package/dist/utils/providerConfig.d.ts +1 -4
- package/dist/utils/providerConfig.js +1 -0
- package/dist/utils/providerHealth.d.ts +1 -1
- package/dist/utils/providerUtils.d.ts +2 -3
- package/dist/utils/rateLimiter.d.ts +1 -1
- package/dist/utils/redis.d.ts +1 -1
- package/dist/utils/retryHandler.d.ts +1 -1
- package/dist/utils/sanitizers/index.d.ts +0 -2
- package/dist/utils/schemaConversion.d.ts +1 -1
- package/dist/utils/taskClassificationUtils.d.ts +1 -1
- package/dist/utils/taskClassifier.d.ts +1 -1
- package/dist/utils/thinkingConfig.d.ts +1 -1
- package/dist/utils/timeout.d.ts +1 -1
- package/dist/utils/tokenEstimation.d.ts +1 -1
- package/dist/utils/tokenUtils.d.ts +1 -2
- package/dist/utils/toolUtils.d.ts +1 -1
- package/dist/utils/transformationUtils.d.ts +1 -1
- package/dist/utils/ttsProcessor.d.ts +1 -69
- package/dist/utils/ttsProcessor.js +1 -2
- package/dist/workflow/LAYER-EXAMPLES.d.ts +1 -1
- package/dist/workflow/config.d.ts +12 -12
- package/dist/workflow/core/ensembleExecutor.d.ts +1 -2
- package/dist/workflow/core/ensembleExecutor.js +1 -1
- package/dist/workflow/core/judgeScorer.d.ts +2 -3
- package/dist/workflow/core/judgeScorer.js +1 -1
- package/dist/workflow/core/responseConditioner.d.ts +1 -2
- package/dist/workflow/core/workflowRegistry.d.ts +1 -2
- package/dist/workflow/core/workflowRunner.d.ts +3 -39
- package/dist/workflow/index.d.ts +0 -15
- package/dist/workflow/index.js +3 -8
- package/dist/workflow/utils/workflowMetrics.d.ts +1 -3
- package/dist/workflow/utils/workflowValidation.d.ts +1 -1
- package/dist/workflow/workflows/adaptiveWorkflow.d.ts +1 -1
- package/dist/workflow/workflows/consensusWorkflow.d.ts +1 -1
- package/dist/workflow/workflows/fallbackWorkflow.d.ts +1 -1
- package/dist/workflow/workflows/multiJudgeWorkflow.d.ts +1 -1
- package/package.json +6 -6
- package/dist/features/ppt/types.d.ts +0 -9
- package/dist/features/ppt/types.js +0 -13
- package/dist/files/types.d.ts +0 -23
- package/dist/lib/features/ppt/types.d.ts +0 -9
- package/dist/lib/features/ppt/types.js +0 -14
- package/dist/lib/files/types.d.ts +0 -23
- package/dist/lib/observability/types/index.d.ts +0 -6
- package/dist/lib/observability/types/index.js +0 -5
- package/dist/lib/processors/registry/types.d.ts +0 -53
- package/dist/lib/processors/registry/types.js +0 -11
- package/dist/lib/proxy/cloaking/types.d.ts +0 -1
- package/dist/lib/proxy/cloaking/types.js +0 -2
- package/dist/lib/rag/types.js +0 -9
- package/dist/lib/server/types.d.ts +0 -6
- package/dist/lib/server/types.js +0 -7
- package/dist/lib/server/voice/types.d.ts +0 -20
- package/dist/lib/server/voice/types.js +0 -2
- package/dist/lib/types/evaluationTypes.d.ts +0 -142
- package/dist/lib/types/evaluationTypes.js +0 -2
- package/dist/lib/types/fileReferenceTypes.js +0 -9
- package/dist/lib/types/generateTypes.js +0 -2
- package/dist/lib/types/mcpTypes.d.ts +0 -787
- package/dist/lib/types/middlewareTypes.js +0 -2
- package/dist/lib/types/pptTypes.js +0 -83
- package/dist/lib/types/processorTypes.d.ts +0 -597
- package/dist/lib/types/processorTypes.js +0 -91
- package/dist/lib/types/ragTypes.d.ts +0 -606
- package/dist/lib/types/streamTypes.js +0 -2
- package/dist/lib/workflow/core/types/conditionerTypes.d.ts +0 -7
- package/dist/lib/workflow/core/types/conditionerTypes.js +0 -8
- package/dist/lib/workflow/core/types/ensembleTypes.d.ts +0 -7
- package/dist/lib/workflow/core/types/ensembleTypes.js +0 -8
- package/dist/lib/workflow/core/types/index.d.ts +0 -7
- package/dist/lib/workflow/core/types/index.js +0 -8
- package/dist/lib/workflow/core/types/judgeTypes.d.ts +0 -7
- package/dist/lib/workflow/core/types/judgeTypes.js +0 -8
- package/dist/lib/workflow/core/types/layerTypes.d.ts +0 -7
- package/dist/lib/workflow/core/types/layerTypes.js +0 -8
- package/dist/lib/workflow/core/types/registryTypes.d.ts +0 -7
- package/dist/lib/workflow/core/types/registryTypes.js +0 -8
- package/dist/lib/workflow/types.d.ts +0 -19
- package/dist/lib/workflow/types.js +0 -10
- package/dist/lib/workflow/utils/types/index.d.ts +0 -7
- package/dist/lib/workflow/utils/types/index.js +0 -8
- package/dist/lib/workflow/utils/types/metricsTypes.d.ts +0 -7
- package/dist/lib/workflow/utils/types/metricsTypes.js +0 -8
- package/dist/lib/workflow/utils/types/validationTypes.d.ts +0 -7
- package/dist/lib/workflow/utils/types/validationTypes.js +0 -8
- package/dist/observability/types/index.d.ts +0 -6
- package/dist/observability/types/index.js +0 -4
- package/dist/processors/registry/types.d.ts +0 -53
- package/dist/processors/registry/types.js +0 -10
- package/dist/proxy/cloaking/types.d.ts +0 -1
- package/dist/rag/types.js +0 -8
- package/dist/server/types.d.ts +0 -6
- package/dist/server/types.js +0 -6
- package/dist/server/voice/types.d.ts +0 -20
- package/dist/types/evaluationTypes.d.ts +0 -142
- package/dist/types/fileReferenceTypes.js +0 -8
- package/dist/types/generateTypes.js +0 -1
- package/dist/types/mcpTypes.d.ts +0 -787
- package/dist/types/middlewareTypes.js +0 -1
- package/dist/types/pptTypes.js +0 -82
- package/dist/types/processorTypes.d.ts +0 -597
- package/dist/types/processorTypes.js +0 -90
- package/dist/types/ragTypes.d.ts +0 -606
- package/dist/types/streamTypes.js +0 -1
- package/dist/workflow/core/types/conditionerTypes.d.ts +0 -7
- package/dist/workflow/core/types/conditionerTypes.js +0 -7
- package/dist/workflow/core/types/ensembleTypes.d.ts +0 -7
- package/dist/workflow/core/types/ensembleTypes.js +0 -7
- package/dist/workflow/core/types/index.d.ts +0 -7
- package/dist/workflow/core/types/index.js +0 -7
- package/dist/workflow/core/types/judgeTypes.d.ts +0 -7
- package/dist/workflow/core/types/judgeTypes.js +0 -7
- package/dist/workflow/core/types/layerTypes.d.ts +0 -7
- package/dist/workflow/core/types/layerTypes.js +0 -7
- package/dist/workflow/core/types/registryTypes.d.ts +0 -7
- package/dist/workflow/core/types/registryTypes.js +0 -7
- package/dist/workflow/types.d.ts +0 -19
- package/dist/workflow/types.js +0 -9
- package/dist/workflow/utils/types/index.d.ts +0 -7
- package/dist/workflow/utils/types/index.js +0 -7
- package/dist/workflow/utils/types/metricsTypes.d.ts +0 -7
- package/dist/workflow/utils/types/metricsTypes.js +0 -7
- package/dist/workflow/utils/types/validationTypes.d.ts +0 -7
- package/dist/workflow/utils/types/validationTypes.js +0 -7
- /package/dist/lib/types/{actionTypes.d.ts → action.d.ts} +0 -0
- /package/dist/lib/types/{contextTypes.d.ts → context.d.ts} +0 -0
- /package/dist/lib/types/{domainTypes.d.ts → domain.d.ts} +0 -0
- /package/dist/lib/{observability/types/exporterTypes.d.ts → types/exporter.d.ts} +0 -0
- /package/dist/lib/types/{fileTypes.d.ts → file.d.ts} +0 -0
- /package/dist/lib/types/{groundingTypes.d.ts → grounding.d.ts} +0 -0
- /package/dist/lib/types/{hitlTypes.d.ts → hitl.d.ts} +0 -0
- /package/dist/lib/types/{mcpOutputTypes.d.ts → mcpOutput.d.ts} +0 -0
- /package/dist/lib/types/{serviceTypes.d.ts → service.d.ts} +0 -0
- /package/dist/lib/{observability/types/spanTypes.d.ts → types/span.d.ts} +0 -0
- /package/dist/lib/types/{taskClassificationTypes.d.ts → taskClassification.d.ts} +0 -0
- /package/dist/lib/types/{ttsTypes.d.ts → tts.d.ts} +0 -0
- /package/dist/types/{actionTypes.d.ts → action.d.ts} +0 -0
- /package/dist/types/{actionTypes.js → action.js} +0 -0
- /package/dist/types/{typeAliases.js → aliases.js} +0 -0
- /package/dist/types/{artifactTypes.js → artifact.js} +0 -0
- /package/dist/types/{authTypes.js → auth.js} +0 -0
- /package/dist/types/{autoresearchTypes.js → autoresearch.js} +0 -0
- /package/dist/types/{clientTypes.js → client.js} +0 -0
- /package/dist/types/{configTypes.js → config.js} +0 -0
- /package/dist/types/{contextTypes.d.ts → context.d.ts} +0 -0
- /package/dist/types/{contextTypes.js → context.js} +0 -0
- /package/dist/types/{domainTypes.d.ts → domain.d.ts} +0 -0
- /package/dist/types/{domainTypes.js → domain.js} +0 -0
- /package/dist/{mcp/elicitation/types.js → types/elicitation.js} +0 -0
- /package/dist/{observability/types/exporterTypes.d.ts → types/exporter.d.ts} +0 -0
- /package/dist/{observability/types/exporterTypes.js → types/exporter.js} +0 -0
- /package/dist/types/{fileTypes.d.ts → file.d.ts} +0 -0
- /package/dist/types/{fileTypes.js → file.js} +0 -0
- /package/dist/{proxy/cloaking/types.js → types/generate.js} +0 -0
- /package/dist/types/{groundingTypes.d.ts → grounding.d.ts} +0 -0
- /package/dist/types/{groundingTypes.js → grounding.js} +0 -0
- /package/dist/types/{hitlTypes.d.ts → hitl.d.ts} +0 -0
- /package/dist/types/{hitlTypes.js → hitl.js} +0 -0
- /package/dist/{image-gen/types.js → types/imageGen.js} +0 -0
- /package/dist/types/{mcpTypes.js → mcp.js} +0 -0
- /package/dist/types/{mcpOutputTypes.d.ts → mcpOutput.d.ts} +0 -0
- /package/dist/types/{mcpOutputTypes.js → mcpOutput.js} +0 -0
- /package/dist/{server/voice/types.js → types/middleware.js} +0 -0
- /package/dist/types/{modelTypes.js → model.js} +0 -0
- /package/dist/types/{proxyTypes.js → proxy.js} +0 -0
- /package/dist/types/{ragTypes.js → rag.js} +0 -0
- /package/dist/types/{scorerTypes.js → scorer.js} +0 -0
- /package/dist/types/{sdkTypes.js → sdk.js} +0 -0
- /package/dist/types/{serverTypes.js → server.js} +0 -0
- /package/dist/types/{serviceTypes.d.ts → service.d.ts} +0 -0
- /package/dist/types/{serviceTypes.js → service.js} +0 -0
- /package/dist/{observability/types/spanTypes.d.ts → types/span.d.ts} +0 -0
- /package/dist/{observability/types/spanTypes.js → types/span.js} +0 -0
- /package/dist/types/{evaluationTypes.js → stream.js} +0 -0
- /package/dist/types/{subscriptionTypes.js → subscription.js} +0 -0
- /package/dist/types/{taskTypes.js → task.js} +0 -0
- /package/dist/types/{taskClassificationTypes.d.ts → taskClassification.d.ts} +0 -0
- /package/dist/types/{taskClassificationTypes.js → taskClassification.js} +0 -0
- /package/dist/types/{ttsTypes.d.ts → tts.d.ts} +0 -0
- /package/dist/types/{ttsTypes.js → tts.js} +0 -0
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* @module @neurolink/client/types
|
|
9
9
|
*/
|
|
10
10
|
import type { JsonValue, JsonObject, UnknownRecord } from "./common.js";
|
|
11
|
-
import type {
|
|
11
|
+
import type { StreamToolCall, StreamToolResult } from "./stream.js";
|
|
12
|
+
import type { StreamResult } from "./stream.js";
|
|
12
13
|
/**
|
|
13
14
|
* Client configuration options for initializing the NeuroLink client
|
|
14
15
|
*/
|
|
@@ -52,7 +53,7 @@ export type ClientRetryConfig = {
|
|
|
52
53
|
/**
|
|
53
54
|
* Request options that can be passed to individual API calls
|
|
54
55
|
*/
|
|
55
|
-
export type
|
|
56
|
+
export type ClientRequestOptions = {
|
|
56
57
|
/** Request timeout override in milliseconds */
|
|
57
58
|
timeout?: number;
|
|
58
59
|
/** Signal for request cancellation */
|
|
@@ -80,7 +81,7 @@ export type ClientApiResponse<T> = {
|
|
|
80
81
|
/**
|
|
81
82
|
* Error response from API
|
|
82
83
|
*/
|
|
83
|
-
export type
|
|
84
|
+
export type ClientApiError = {
|
|
84
85
|
/** Error code (e.g., "RATE_LIMIT_EXCEEDED", "INVALID_REQUEST") */
|
|
85
86
|
code: string;
|
|
86
87
|
/** Human-readable error message */
|
|
@@ -117,21 +118,21 @@ export type ClientProviderStatus = {
|
|
|
117
118
|
/**
|
|
118
119
|
* Stream event types for real-time communication
|
|
119
120
|
*/
|
|
120
|
-
export type
|
|
121
|
+
export type ClientStreamEventType = "text" | "tool-call" | "tool-result" | "error" | "done" | "metadata" | "audio" | "thinking";
|
|
121
122
|
/**
|
|
122
123
|
* Stream event from SSE/WebSocket
|
|
123
124
|
*/
|
|
124
125
|
export type ClientStreamEvent = {
|
|
125
126
|
/** Event type */
|
|
126
|
-
type:
|
|
127
|
+
type: ClientStreamEventType;
|
|
127
128
|
/** Text content (for text events) */
|
|
128
129
|
content?: string;
|
|
129
130
|
/** Tool call data (for tool-call events) */
|
|
130
|
-
toolCall?:
|
|
131
|
+
toolCall?: StreamToolCall;
|
|
131
132
|
/** Tool result data (for tool-result events) */
|
|
132
|
-
toolResult?:
|
|
133
|
+
toolResult?: StreamToolResult;
|
|
133
134
|
/** Error data (for error events) */
|
|
134
|
-
error?:
|
|
135
|
+
error?: ClientApiError;
|
|
135
136
|
/** Metadata (for metadata events) */
|
|
136
137
|
metadata?: JsonObject;
|
|
137
138
|
/** Audio data (for audio events) */
|
|
@@ -148,15 +149,15 @@ export type ClientStreamEvent = {
|
|
|
148
149
|
/**
|
|
149
150
|
* Streaming callback handlers
|
|
150
151
|
*/
|
|
151
|
-
export type
|
|
152
|
+
export type ClientStreamCallbacks = {
|
|
152
153
|
/** Called for each text chunk */
|
|
153
154
|
onText?: (text: string) => void;
|
|
154
155
|
/** Called for each tool call */
|
|
155
|
-
onToolCall?: (toolCall:
|
|
156
|
+
onToolCall?: (toolCall: StreamToolCall) => void;
|
|
156
157
|
/** Called for each tool result */
|
|
157
|
-
onToolResult?: (toolResult:
|
|
158
|
+
onToolResult?: (toolResult: StreamToolResult) => void;
|
|
158
159
|
/** Called on stream error */
|
|
159
|
-
onError?: (error:
|
|
160
|
+
onError?: (error: ClientApiError) => void;
|
|
160
161
|
/** Called when stream completes */
|
|
161
162
|
onDone?: (result: ClientStreamResult) => void;
|
|
162
163
|
/** Called for metadata updates */
|
|
@@ -176,9 +177,9 @@ export type ClientStreamResult = {
|
|
|
176
177
|
/** Full accumulated text content */
|
|
177
178
|
content: string;
|
|
178
179
|
/** All tool calls made */
|
|
179
|
-
toolCalls?:
|
|
180
|
+
toolCalls?: StreamToolCall[];
|
|
180
181
|
/** All tool results */
|
|
181
|
-
toolResults?:
|
|
182
|
+
toolResults?: StreamToolResult[];
|
|
182
183
|
/** Token usage information */
|
|
183
184
|
usage?: {
|
|
184
185
|
promptTokens: number;
|
|
@@ -193,7 +194,7 @@ export type ClientStreamResult = {
|
|
|
193
194
|
/**
|
|
194
195
|
* Generate request options (client-side version)
|
|
195
196
|
*/
|
|
196
|
-
export type
|
|
197
|
+
export type ClientGenerateRequestOptions = {
|
|
197
198
|
/** Input for generation */
|
|
198
199
|
input: {
|
|
199
200
|
text: string;
|
|
@@ -220,7 +221,7 @@ export type GenerateRequestOptions = {
|
|
|
220
221
|
/**
|
|
221
222
|
* Generate response (client-side version)
|
|
222
223
|
*/
|
|
223
|
-
export type
|
|
224
|
+
export type ClientGenerateResponse = {
|
|
224
225
|
/** Generated content */
|
|
225
226
|
content: string;
|
|
226
227
|
/** Provider used */
|
|
@@ -234,9 +235,9 @@ export type GenerateResponse = {
|
|
|
234
235
|
totalTokens: number;
|
|
235
236
|
};
|
|
236
237
|
/** Tool calls made */
|
|
237
|
-
toolCalls?:
|
|
238
|
+
toolCalls?: StreamToolCall[];
|
|
238
239
|
/** Tool results */
|
|
239
|
-
toolResults?:
|
|
240
|
+
toolResults?: StreamToolResult[];
|
|
240
241
|
/** Finish reason */
|
|
241
242
|
finishReason?: string;
|
|
242
243
|
/** Response metadata */
|
|
@@ -245,14 +246,14 @@ export type GenerateResponse = {
|
|
|
245
246
|
/**
|
|
246
247
|
* Stream request options (client-side version)
|
|
247
248
|
*/
|
|
248
|
-
export type
|
|
249
|
+
export type ClientStreamRequestOptions = ClientGenerateRequestOptions & {
|
|
249
250
|
/** Enable streaming */
|
|
250
251
|
stream: true;
|
|
251
252
|
};
|
|
252
253
|
/**
|
|
253
254
|
* Agent execution options
|
|
254
255
|
*/
|
|
255
|
-
export type
|
|
256
|
+
export type ClientAgentExecuteOptions = {
|
|
256
257
|
/** Agent ID */
|
|
257
258
|
agentId: string;
|
|
258
259
|
/** Input message */
|
|
@@ -276,7 +277,7 @@ export type AgentExecuteOptions = {
|
|
|
276
277
|
/**
|
|
277
278
|
* Agent execution result
|
|
278
279
|
*/
|
|
279
|
-
export type
|
|
280
|
+
export type ClientAgentExecuteResult = {
|
|
280
281
|
/** Response content */
|
|
281
282
|
content: string;
|
|
282
283
|
/** Agent ID */
|
|
@@ -304,7 +305,7 @@ export type AgentExecuteResult = {
|
|
|
304
305
|
/**
|
|
305
306
|
* Agent information
|
|
306
307
|
*/
|
|
307
|
-
export type
|
|
308
|
+
export type ClientAgentInfo = {
|
|
308
309
|
/** Agent ID */
|
|
309
310
|
id: string;
|
|
310
311
|
/** Agent name */
|
|
@@ -323,7 +324,7 @@ export type AgentInfo = {
|
|
|
323
324
|
/**
|
|
324
325
|
* Workflow execution options
|
|
325
326
|
*/
|
|
326
|
-
export type
|
|
327
|
+
export type ClientWorkflowExecuteOptions = {
|
|
327
328
|
/** Workflow ID */
|
|
328
329
|
workflowId: string;
|
|
329
330
|
/** Workflow input data */
|
|
@@ -338,7 +339,7 @@ export type WorkflowExecuteOptions = {
|
|
|
338
339
|
/**
|
|
339
340
|
* Workflow execution result
|
|
340
341
|
*/
|
|
341
|
-
export type
|
|
342
|
+
export type ClientWorkflowExecuteResult = {
|
|
342
343
|
/** Workflow run ID */
|
|
343
344
|
runId: string;
|
|
344
345
|
/** Workflow ID */
|
|
@@ -348,7 +349,7 @@ export type WorkflowExecuteResult = {
|
|
|
348
349
|
/** Output data (if completed) */
|
|
349
350
|
output?: UnknownRecord;
|
|
350
351
|
/** Error information (if failed) */
|
|
351
|
-
error?:
|
|
352
|
+
error?: ClientApiError;
|
|
352
353
|
/** Suspend token (if suspended) */
|
|
353
354
|
suspendToken?: string;
|
|
354
355
|
/** Step results */
|
|
@@ -364,7 +365,7 @@ export type WorkflowExecuteResult = {
|
|
|
364
365
|
/**
|
|
365
366
|
* Workflow information
|
|
366
367
|
*/
|
|
367
|
-
export type
|
|
368
|
+
export type ClientWorkflowInfo = {
|
|
368
369
|
/** Workflow ID */
|
|
369
370
|
id: string;
|
|
370
371
|
/** Workflow name */
|
|
@@ -383,7 +384,7 @@ export type WorkflowInfo = {
|
|
|
383
384
|
/**
|
|
384
385
|
* Tool information for client use
|
|
385
386
|
*/
|
|
386
|
-
export type
|
|
387
|
+
export type ClientToolInfo = {
|
|
387
388
|
/** Tool name */
|
|
388
389
|
name: string;
|
|
389
390
|
/** Tool description */
|
|
@@ -398,13 +399,13 @@ export type ToolInfo = {
|
|
|
398
399
|
requiresConfirmation?: boolean;
|
|
399
400
|
};
|
|
400
401
|
/**
|
|
401
|
-
*
|
|
402
|
+
* ClientMiddleware function type
|
|
402
403
|
*/
|
|
403
|
-
export type
|
|
404
|
+
export type ClientMiddleware = (request: ClientMiddlewareRequest, next: () => Promise<ClientMiddlewareResponse>) => Promise<ClientMiddlewareResponse>;
|
|
404
405
|
/**
|
|
405
|
-
*
|
|
406
|
+
* ClientMiddleware request object
|
|
406
407
|
*/
|
|
407
|
-
export type
|
|
408
|
+
export type ClientMiddlewareRequest = {
|
|
408
409
|
/** Request URL */
|
|
409
410
|
url: string;
|
|
410
411
|
/** HTTP method */
|
|
@@ -413,24 +414,24 @@ export type MiddlewareRequest = {
|
|
|
413
414
|
headers: Record<string, string>;
|
|
414
415
|
/** Request body */
|
|
415
416
|
body?: unknown;
|
|
416
|
-
/**
|
|
417
|
+
/** ClientMiddleware context */
|
|
417
418
|
context: ClientMiddlewareContext;
|
|
418
419
|
};
|
|
419
420
|
/**
|
|
420
|
-
*
|
|
421
|
+
* ClientMiddleware response object
|
|
421
422
|
*/
|
|
422
|
-
export type
|
|
423
|
+
export type ClientMiddlewareResponse = {
|
|
423
424
|
/** HTTP status code */
|
|
424
425
|
status: number;
|
|
425
426
|
/** Response headers */
|
|
426
427
|
headers: Record<string, string>;
|
|
427
428
|
/** Response body */
|
|
428
429
|
body: unknown;
|
|
429
|
-
/**
|
|
430
|
+
/** ClientMiddleware context */
|
|
430
431
|
context: ClientMiddlewareContext;
|
|
431
432
|
};
|
|
432
433
|
/**
|
|
433
|
-
*
|
|
434
|
+
* ClientMiddleware context for passing data between middleware
|
|
434
435
|
*/
|
|
435
436
|
export type ClientMiddlewareContext = {
|
|
436
437
|
/** Request start time */
|
|
@@ -465,9 +466,9 @@ export type ClientChatMessage = {
|
|
|
465
466
|
/** Message content */
|
|
466
467
|
content: string;
|
|
467
468
|
/** Tool calls in this message */
|
|
468
|
-
toolCalls?:
|
|
469
|
+
toolCalls?: StreamToolCall[];
|
|
469
470
|
/** Tool results in this message */
|
|
470
|
-
toolResults?:
|
|
471
|
+
toolResults?: StreamToolResult[];
|
|
471
472
|
/** Message timestamp */
|
|
472
473
|
createdAt: Date;
|
|
473
474
|
/** Additional metadata */
|
|
@@ -492,9 +493,9 @@ export type UseChatOptions = {
|
|
|
492
493
|
/** Called when response finishes */
|
|
493
494
|
onFinish?: (message: ClientChatMessage) => void;
|
|
494
495
|
/** Called on error */
|
|
495
|
-
onError?: (error:
|
|
496
|
+
onError?: (error: ClientApiError) => void;
|
|
496
497
|
/** Called for each tool call */
|
|
497
|
-
onToolCall?: (toolCall:
|
|
498
|
+
onToolCall?: (toolCall: StreamToolCall) => void;
|
|
498
499
|
/** Request body customization */
|
|
499
500
|
body?: UnknownRecord;
|
|
500
501
|
/** Request headers */
|
|
@@ -537,11 +538,11 @@ export type UseChatReturn = {
|
|
|
537
538
|
/** Loading state */
|
|
538
539
|
isLoading: boolean;
|
|
539
540
|
/** Error state */
|
|
540
|
-
error:
|
|
541
|
+
error: ClientApiError | null;
|
|
541
542
|
/** Clear error */
|
|
542
543
|
clearError: () => void;
|
|
543
544
|
/** Current tool calls being executed */
|
|
544
|
-
toolCalls:
|
|
545
|
+
toolCalls: StreamToolCall[];
|
|
545
546
|
};
|
|
546
547
|
/**
|
|
547
548
|
* useAgent hook options
|
|
@@ -552,11 +553,11 @@ export type UseAgentOptions = {
|
|
|
552
553
|
/** Initial session ID */
|
|
553
554
|
sessionId?: string;
|
|
554
555
|
/** Called on agent response */
|
|
555
|
-
onResponse?: (result:
|
|
556
|
+
onResponse?: (result: ClientAgentExecuteResult) => void;
|
|
556
557
|
/** Called on error */
|
|
557
|
-
onError?: (error:
|
|
558
|
+
onError?: (error: ClientApiError) => void;
|
|
558
559
|
/** Called when tool is called */
|
|
559
|
-
onToolCall?: (toolCall:
|
|
560
|
+
onToolCall?: (toolCall: StreamToolCall) => void;
|
|
560
561
|
/** Auto-execute on mount with initial input */
|
|
561
562
|
initialInput?: string;
|
|
562
563
|
};
|
|
@@ -565,9 +566,9 @@ export type UseAgentOptions = {
|
|
|
565
566
|
*/
|
|
566
567
|
export type UseAgentReturn = {
|
|
567
568
|
/** Execute the agent */
|
|
568
|
-
execute: (input: string, options?: Partial<
|
|
569
|
+
execute: (input: string, options?: Partial<ClientAgentExecuteOptions>) => Promise<ClientAgentExecuteResult>;
|
|
569
570
|
/** Stream execution */
|
|
570
|
-
stream: (input: string, callbacks?:
|
|
571
|
+
stream: (input: string, callbacks?: ClientStreamCallbacks) => Promise<void>;
|
|
571
572
|
/** Current session ID */
|
|
572
573
|
sessionId: string | null;
|
|
573
574
|
/** Set session ID */
|
|
@@ -577,9 +578,9 @@ export type UseAgentReturn = {
|
|
|
577
578
|
/** Streaming state */
|
|
578
579
|
isStreaming: boolean;
|
|
579
580
|
/** Last result */
|
|
580
|
-
result:
|
|
581
|
+
result: ClientAgentExecuteResult | null;
|
|
581
582
|
/** Error state */
|
|
582
|
-
error:
|
|
583
|
+
error: ClientApiError | null;
|
|
583
584
|
/** Clear error */
|
|
584
585
|
clearError: () => void;
|
|
585
586
|
/** Abort current execution */
|
|
@@ -592,9 +593,9 @@ export type UseWorkflowOptions = {
|
|
|
592
593
|
/** Workflow ID */
|
|
593
594
|
workflowId: string;
|
|
594
595
|
/** Called on workflow completion */
|
|
595
|
-
onComplete?: (result:
|
|
596
|
+
onComplete?: (result: ClientWorkflowExecuteResult) => void;
|
|
596
597
|
/** Called on workflow error */
|
|
597
|
-
onError?: (error:
|
|
598
|
+
onError?: (error: ClientApiError) => void;
|
|
598
599
|
/** Called on step completion */
|
|
599
600
|
onStepComplete?: (step: {
|
|
600
601
|
stepId: string;
|
|
@@ -609,23 +610,23 @@ export type UseWorkflowOptions = {
|
|
|
609
610
|
*/
|
|
610
611
|
export type UseWorkflowReturn = {
|
|
611
612
|
/** Execute the workflow */
|
|
612
|
-
execute: (input: UnknownRecord, options?: Partial<
|
|
613
|
+
execute: (input: UnknownRecord, options?: Partial<ClientWorkflowExecuteOptions>) => Promise<ClientWorkflowExecuteResult>;
|
|
613
614
|
/** Resume a suspended workflow */
|
|
614
|
-
resume: (resumeToken: string, resumeData?: UnknownRecord) => Promise<
|
|
615
|
+
resume: (resumeToken: string, resumeData?: UnknownRecord) => Promise<ClientWorkflowExecuteResult>;
|
|
615
616
|
/** Get workflow status */
|
|
616
|
-
getStatus: (runId: string) => Promise<
|
|
617
|
+
getStatus: (runId: string) => Promise<ClientWorkflowExecuteResult>;
|
|
617
618
|
/** Cancel workflow execution */
|
|
618
619
|
cancel: (runId: string) => Promise<void>;
|
|
619
620
|
/** Current run ID */
|
|
620
621
|
runId: string | null;
|
|
621
622
|
/** Execution status */
|
|
622
|
-
status:
|
|
623
|
+
status: ClientWorkflowExecuteResult["status"] | null;
|
|
623
624
|
/** Loading state */
|
|
624
625
|
isLoading: boolean;
|
|
625
626
|
/** Last result */
|
|
626
|
-
result:
|
|
627
|
+
result: ClientWorkflowExecuteResult | null;
|
|
627
628
|
/** Error state */
|
|
628
|
-
error:
|
|
629
|
+
error: ClientApiError | null;
|
|
629
630
|
/** Clear error */
|
|
630
631
|
clearError: () => void;
|
|
631
632
|
};
|
|
@@ -644,7 +645,7 @@ export type UseVoiceOptions = {
|
|
|
644
645
|
/** Called when speech ends */
|
|
645
646
|
onSpeechEnd?: () => void;
|
|
646
647
|
/** Called on error */
|
|
647
|
-
onError?: (error:
|
|
648
|
+
onError?: (error: ClientApiError) => void;
|
|
648
649
|
/** API endpoint for voice */
|
|
649
650
|
api?: string;
|
|
650
651
|
/** Enable speech recognition */
|
|
@@ -675,7 +676,7 @@ export type UseVoiceReturn = {
|
|
|
675
676
|
/** Last response */
|
|
676
677
|
response: string | null;
|
|
677
678
|
/** Error state */
|
|
678
|
-
error:
|
|
679
|
+
error: ClientApiError | null;
|
|
679
680
|
/** Supported by browser */
|
|
680
681
|
isSupported: boolean;
|
|
681
682
|
};
|
|
@@ -686,7 +687,7 @@ export type UseStreamOptions = {
|
|
|
686
687
|
/** API endpoint */
|
|
687
688
|
api?: string;
|
|
688
689
|
/** Stream callbacks */
|
|
689
|
-
callbacks?:
|
|
690
|
+
callbacks?: ClientStreamCallbacks;
|
|
690
691
|
};
|
|
691
692
|
/**
|
|
692
693
|
* useStream hook return type
|
|
@@ -705,7 +706,7 @@ export type UseStreamReturn = {
|
|
|
705
706
|
/** Streaming state */
|
|
706
707
|
isStreaming: boolean;
|
|
707
708
|
/** Error state */
|
|
708
|
-
error:
|
|
709
|
+
error: ClientApiError | null;
|
|
709
710
|
};
|
|
710
711
|
/**
|
|
711
712
|
* useTools hook options
|
|
@@ -723,7 +724,7 @@ export type UseToolsOptions = {
|
|
|
723
724
|
*/
|
|
724
725
|
export type UseToolsReturn = {
|
|
725
726
|
/** Available tools */
|
|
726
|
-
tools:
|
|
727
|
+
tools: ClientToolInfo[];
|
|
727
728
|
/** Execute a tool */
|
|
728
729
|
execute: (toolName: string, params: UnknownRecord) => Promise<unknown>;
|
|
729
730
|
/** Refresh tool list */
|
|
@@ -731,25 +732,25 @@ export type UseToolsReturn = {
|
|
|
731
732
|
/** Loading state */
|
|
732
733
|
isLoading: boolean;
|
|
733
734
|
/** Error state */
|
|
734
|
-
error:
|
|
735
|
+
error: ClientApiError | null;
|
|
735
736
|
};
|
|
736
737
|
/**
|
|
737
738
|
* AI SDK Language Model interface (Vercel AI SDK compatible)
|
|
738
739
|
*/
|
|
739
|
-
export type
|
|
740
|
+
export type ClientLanguageModel = {
|
|
740
741
|
/** Model specification string */
|
|
741
742
|
modelId: string;
|
|
742
743
|
/** Provider name */
|
|
743
744
|
provider: string;
|
|
744
745
|
/** Generate non-streaming response */
|
|
745
|
-
doGenerate: (options:
|
|
746
|
+
doGenerate: (options: ClientLanguageModelCallOptions) => Promise<ClientLanguageModelResponse>;
|
|
746
747
|
/** Generate streaming response */
|
|
747
|
-
doStream: (options:
|
|
748
|
+
doStream: (options: ClientLanguageModelCallOptions) => Promise<ClientLanguageModelStreamResponse>;
|
|
748
749
|
};
|
|
749
750
|
/**
|
|
750
751
|
* Language model call options
|
|
751
752
|
*/
|
|
752
|
-
export type
|
|
753
|
+
export type ClientLanguageModelCallOptions = {
|
|
753
754
|
/** Input prompt */
|
|
754
755
|
prompt: string;
|
|
755
756
|
/** System prompt */
|
|
@@ -771,7 +772,7 @@ export type LanguageModelCallOptions = {
|
|
|
771
772
|
/**
|
|
772
773
|
* Language model response
|
|
773
774
|
*/
|
|
774
|
-
export type
|
|
775
|
+
export type ClientLanguageModelResponse = {
|
|
775
776
|
/** Generated text */
|
|
776
777
|
text: string;
|
|
777
778
|
/** Finish reason */
|
|
@@ -787,7 +788,7 @@ export type LanguageModelResponse = {
|
|
|
787
788
|
/**
|
|
788
789
|
* Language model stream response
|
|
789
790
|
*/
|
|
790
|
-
export type
|
|
791
|
+
export type ClientLanguageModelStreamResponse = {
|
|
791
792
|
/** Stream of text deltas */
|
|
792
793
|
stream: AsyncIterable<{
|
|
793
794
|
type: "text-delta" | "finish";
|
|
@@ -821,7 +822,7 @@ export type NeuroLinkProviderOptions = {
|
|
|
821
822
|
/**
|
|
822
823
|
* Model creation options for AI SDK adapter
|
|
823
824
|
*/
|
|
824
|
-
export type
|
|
825
|
+
export type ClientModelOptions = {
|
|
825
826
|
/** Model ID */
|
|
826
827
|
modelId?: string;
|
|
827
828
|
/** Provider name */
|
|
@@ -834,7 +835,7 @@ export type ModelOptions = {
|
|
|
834
835
|
/**
|
|
835
836
|
* WebSocket connection options
|
|
836
837
|
*/
|
|
837
|
-
export type
|
|
838
|
+
export type ClientWebSocketOptions = {
|
|
838
839
|
/** WebSocket URL */
|
|
839
840
|
url: string;
|
|
840
841
|
/** Protocols */
|
|
@@ -851,11 +852,11 @@ export type WebSocketOptions = {
|
|
|
851
852
|
/**
|
|
852
853
|
* WebSocket connection state
|
|
853
854
|
*/
|
|
854
|
-
export type
|
|
855
|
+
export type ClientWebSocketState = "connecting" | "connected" | "disconnecting" | "disconnected" | "reconnecting";
|
|
855
856
|
/**
|
|
856
857
|
* WebSocket message handler
|
|
857
858
|
*/
|
|
858
|
-
export type
|
|
859
|
+
export type ClientWebSocketMessageHandler = (data: unknown) => void;
|
|
859
860
|
/**
|
|
860
861
|
* Connection state for the dedicated NeuroLinkWebSocket client
|
|
861
862
|
*/
|
|
@@ -900,7 +901,7 @@ export type WSClientEventHandlers = {
|
|
|
900
901
|
/**
|
|
901
902
|
* Speech recognition result
|
|
902
903
|
*/
|
|
903
|
-
export type
|
|
904
|
+
export type ClientSpeechRecognitionResult = {
|
|
904
905
|
/** Transcript text */
|
|
905
906
|
transcript: string;
|
|
906
907
|
/** Confidence score (0-1) */
|
|
@@ -911,7 +912,7 @@ export type SpeechRecognitionResult = {
|
|
|
911
912
|
/**
|
|
912
913
|
* Speech synthesis options
|
|
913
914
|
*/
|
|
914
|
-
export type
|
|
915
|
+
export type ClientSpeechSynthesisOptions = {
|
|
915
916
|
/** Voice to use */
|
|
916
917
|
voice?: string;
|
|
917
918
|
/** Speaking rate (0.1-10) */
|
|
@@ -926,7 +927,7 @@ export type SpeechSynthesisOptions = {
|
|
|
926
927
|
/**
|
|
927
928
|
* Authentication configuration options
|
|
928
929
|
*/
|
|
929
|
-
export type
|
|
930
|
+
export type ClientAuthConfig = {
|
|
930
931
|
/** API key for header-based authentication */
|
|
931
932
|
apiKey?: string;
|
|
932
933
|
/** Bearer token for JWT/OAuth authentication */
|
|
@@ -975,7 +976,7 @@ export type ClientTokenRefreshResult = {
|
|
|
975
976
|
/**
|
|
976
977
|
* Web Speech API event map for SpeechRecognition
|
|
977
978
|
*/
|
|
978
|
-
export
|
|
979
|
+
export type SpeechRecognitionEventMap = {
|
|
979
980
|
audioend: Event;
|
|
980
981
|
audiostart: Event;
|
|
981
982
|
end: Event;
|
|
@@ -987,25 +988,25 @@ export interface SpeechRecognitionEventMap {
|
|
|
987
988
|
speechend: Event;
|
|
988
989
|
speechstart: Event;
|
|
989
990
|
start: Event;
|
|
990
|
-
}
|
|
991
|
+
};
|
|
991
992
|
/**
|
|
992
993
|
* Internal speech recognition event with results
|
|
993
994
|
*/
|
|
994
|
-
export
|
|
995
|
+
export type SpeechRecognitionEventInternal = Event & {
|
|
995
996
|
readonly resultIndex: number;
|
|
996
997
|
readonly results: SpeechRecognitionResultList;
|
|
997
|
-
}
|
|
998
|
+
};
|
|
998
999
|
/**
|
|
999
1000
|
* Internal speech recognition error event
|
|
1000
1001
|
*/
|
|
1001
|
-
export
|
|
1002
|
+
export type SpeechRecognitionErrorEventInternal = Event & {
|
|
1002
1003
|
readonly error: string;
|
|
1003
1004
|
readonly message: string;
|
|
1004
|
-
}
|
|
1005
|
+
};
|
|
1005
1006
|
/**
|
|
1006
1007
|
* Internal speech recognition interface for browser Web Speech API
|
|
1007
1008
|
*/
|
|
1008
|
-
export
|
|
1009
|
+
export type SpeechRecognitionInternal = EventTarget & {
|
|
1009
1010
|
continuous: boolean;
|
|
1010
1011
|
grammars: SpeechGrammarList;
|
|
1011
1012
|
interimResults: boolean;
|
|
@@ -1025,44 +1026,228 @@ export interface SpeechRecognitionInternal extends EventTarget {
|
|
|
1025
1026
|
abort(): void;
|
|
1026
1027
|
start(): void;
|
|
1027
1028
|
stop(): void;
|
|
1028
|
-
}
|
|
1029
|
+
};
|
|
1029
1030
|
/**
|
|
1030
1031
|
* Speech grammar list interface
|
|
1031
1032
|
*/
|
|
1032
|
-
export
|
|
1033
|
+
export type SpeechGrammarList = {
|
|
1033
1034
|
readonly length: number;
|
|
1034
1035
|
addFromString(string: string, weight?: number): void;
|
|
1035
1036
|
addFromURI(src: string, weight?: number): void;
|
|
1036
1037
|
item(index: number): SpeechGrammar;
|
|
1037
1038
|
[index: number]: SpeechGrammar;
|
|
1038
|
-
}
|
|
1039
|
+
};
|
|
1039
1040
|
/**
|
|
1040
1041
|
* Speech grammar interface
|
|
1041
1042
|
*/
|
|
1042
|
-
export
|
|
1043
|
+
export type SpeechGrammar = {
|
|
1043
1044
|
src: string;
|
|
1044
1045
|
weight: number;
|
|
1045
|
-
}
|
|
1046
|
+
};
|
|
1046
1047
|
/**
|
|
1047
1048
|
* Re-export common types for convenience
|
|
1048
1049
|
*/
|
|
1049
1050
|
export type { JsonValue, JsonObject, UnknownRecord };
|
|
1050
|
-
export type {
|
|
1051
|
-
/**
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1051
|
+
export type { StreamToolCall, StreamToolResult };
|
|
1052
|
+
/**
|
|
1053
|
+
* Standard error codes for NeuroLink API errors.
|
|
1054
|
+
* Mirrors the `ErrorCode` const object in client/errors.ts — keep in sync.
|
|
1055
|
+
*/
|
|
1056
|
+
export type ErrorCodeType = "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_ALLOWED" | "CONFLICT" | "PAYLOAD_TOO_LARGE" | "RATE_LIMITED" | "INVALID_REQUEST" | "VALIDATION_ERROR" | "INTERNAL_ERROR" | "SERVICE_UNAVAILABLE" | "GATEWAY_TIMEOUT" | "BAD_GATEWAY" | "NETWORK_ERROR" | "TIMEOUT" | "CONNECTION_REFUSED" | "DNS_ERROR" | "CONFIGURATION_ERROR" | "SERIALIZATION_ERROR" | "STREAM_ERROR" | "ABORT_ERROR" | "PROVIDER_ERROR" | "MODEL_NOT_FOUND" | "CONTEXT_LENGTH_EXCEEDED" | "CONTENT_FILTERED" | "UNKNOWN";
|
|
1057
|
+
/**
|
|
1058
|
+
* Logging interceptor options
|
|
1059
|
+
*/
|
|
1060
|
+
export type LoggingInterceptorOptions = {
|
|
1061
|
+
/** Log request details */
|
|
1062
|
+
logRequest?: boolean;
|
|
1063
|
+
/** Log response details */
|
|
1064
|
+
logResponse?: boolean;
|
|
1065
|
+
/** Log request body */
|
|
1066
|
+
logBody?: boolean;
|
|
1067
|
+
/** Log response body */
|
|
1068
|
+
logResponseBody?: boolean;
|
|
1069
|
+
/** Custom logger function */
|
|
1070
|
+
logger?: (message: string, data?: unknown) => void;
|
|
1071
|
+
/** Redact sensitive fields */
|
|
1072
|
+
redactFields?: string[];
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* Retry interceptor options
|
|
1076
|
+
*/
|
|
1077
|
+
export type RetryInterceptorOptions = ClientRetryConfig & {
|
|
1078
|
+
/** Callback when a retry is attempted */
|
|
1079
|
+
onRetry?: (attempt: number, error: Error | ClientApiError, request: ClientMiddlewareRequest) => void;
|
|
1080
|
+
/** Custom retry condition */
|
|
1081
|
+
shouldRetry?: (response: ClientMiddlewareResponse, attempt: number) => boolean;
|
|
1082
|
+
};
|
|
1083
|
+
/**
|
|
1084
|
+
* Rate limiter options
|
|
1085
|
+
*/
|
|
1086
|
+
export type RateLimiterOptions = {
|
|
1087
|
+
/** Maximum requests per window */
|
|
1088
|
+
maxRequests: number;
|
|
1089
|
+
/** Window size in milliseconds */
|
|
1090
|
+
windowMs: number;
|
|
1091
|
+
/** Strategy when limit is reached: 'queue' or 'throw' */
|
|
1092
|
+
strategy?: "queue" | "throw";
|
|
1093
|
+
/** Callback when rate limited */
|
|
1094
|
+
onRateLimited?: (waitTime: number) => void;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Cache options
|
|
1098
|
+
*/
|
|
1099
|
+
export type CacheInterceptorOptions = {
|
|
1100
|
+
/** Cache TTL in milliseconds */
|
|
1101
|
+
ttl: number;
|
|
1102
|
+
/** Maximum cache size */
|
|
1103
|
+
maxSize?: number;
|
|
1104
|
+
/** Cache key generator */
|
|
1105
|
+
keyGenerator?: (request: ClientMiddlewareRequest) => string;
|
|
1106
|
+
/** Methods to cache (default: ['GET']) */
|
|
1107
|
+
methods?: string[];
|
|
1108
|
+
/** Paths to cache (regex patterns) */
|
|
1109
|
+
includePaths?: RegExp[];
|
|
1110
|
+
/** Paths to exclude from cache */
|
|
1111
|
+
excludePaths?: RegExp[];
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* Timeout interceptor options
|
|
1115
|
+
*/
|
|
1116
|
+
export type TimeoutInterceptorOptions = {
|
|
1117
|
+
/** Timeout in milliseconds */
|
|
1118
|
+
timeout: number;
|
|
1119
|
+
/** Callback when timeout occurs */
|
|
1120
|
+
onTimeout?: (request: ClientMiddlewareRequest) => void;
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Error handling interceptor options
|
|
1124
|
+
*/
|
|
1125
|
+
export type ErrorHandlerOptions = {
|
|
1126
|
+
/** Custom error handler */
|
|
1127
|
+
onError?: (error: Error, request: ClientMiddlewareRequest) => Error | void;
|
|
1128
|
+
/** Transform error response */
|
|
1129
|
+
transformError?: (error: unknown) => ClientApiError;
|
|
1130
|
+
/** Report errors to external service */
|
|
1131
|
+
reportError?: (error: Error, context: ClientMiddlewareContext) => void | Promise<void>;
|
|
1132
|
+
};
|
|
1133
|
+
/**
|
|
1134
|
+
* SSE connection state
|
|
1135
|
+
*/
|
|
1136
|
+
export type SSEState = "connecting" | "connected" | "disconnected" | "error";
|
|
1137
|
+
/**
|
|
1138
|
+
* SSE client configuration
|
|
1139
|
+
*/
|
|
1140
|
+
export type SSEConfig = ClientConfig & {
|
|
1141
|
+
/** Auto-reconnect on disconnect (default: true) */
|
|
1142
|
+
autoReconnect?: boolean;
|
|
1143
|
+
/** Maximum reconnection attempts (default: 5) */
|
|
1144
|
+
maxReconnectAttempts?: number;
|
|
1145
|
+
/** Initial reconnection delay in ms (default: 1000) */
|
|
1146
|
+
reconnectDelay?: number;
|
|
1147
|
+
/** Maximum reconnection delay in ms (default: 30000) */
|
|
1148
|
+
maxReconnectDelay?: number;
|
|
1149
|
+
/** Use native EventSource when available (default: false for more control) */
|
|
1150
|
+
useNativeEventSource?: boolean;
|
|
1151
|
+
};
|
|
1152
|
+
/**
|
|
1153
|
+
* SSE request options
|
|
1154
|
+
*/
|
|
1155
|
+
export type SSERequestOptions = {
|
|
1156
|
+
/** Request body */
|
|
1157
|
+
body?: unknown;
|
|
1158
|
+
/** Additional headers */
|
|
1159
|
+
headers?: Record<string, string>;
|
|
1160
|
+
/** Abort signal */
|
|
1161
|
+
signal?: AbortSignal;
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* SSE event handlers
|
|
1165
|
+
*/
|
|
1166
|
+
export type SSEEventHandlers = {
|
|
1167
|
+
onOpen?: () => void;
|
|
1168
|
+
onClose?: () => void;
|
|
1169
|
+
onError?: (error: Error) => void;
|
|
1170
|
+
onEvent?: (event: ClientStreamEvent) => void;
|
|
1171
|
+
onReconnect?: (attempt: number) => void;
|
|
1172
|
+
onStateChange?: (state: SSEState) => void;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* SSE connection options
|
|
1176
|
+
*/
|
|
1177
|
+
export type SSEConnectionOptions = {
|
|
1178
|
+
/** Request headers */
|
|
1179
|
+
headers?: Record<string, string>;
|
|
1180
|
+
/** Request credentials */
|
|
1181
|
+
credentials?: RequestCredentials;
|
|
1182
|
+
/** Reconnect on disconnect */
|
|
1183
|
+
autoReconnect?: boolean;
|
|
1184
|
+
/** Reconnect delay in milliseconds */
|
|
1185
|
+
reconnectDelay?: number;
|
|
1186
|
+
/** Maximum reconnect attempts */
|
|
1187
|
+
maxReconnectAttempts?: number;
|
|
1188
|
+
/** Signal for request cancellation */
|
|
1189
|
+
signal?: AbortSignal;
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* SSE connection state
|
|
1193
|
+
*/
|
|
1194
|
+
export type SSEConnectionState = "connecting" | "connected" | "disconnected" | "reconnecting" | "error";
|
|
1195
|
+
/**
|
|
1196
|
+
* Streaming request options
|
|
1197
|
+
*/
|
|
1198
|
+
export type StreamingRequestOptions = {
|
|
1199
|
+
/** Input text or data */
|
|
1200
|
+
input: {
|
|
1201
|
+
text: string;
|
|
1202
|
+
} & UnknownRecord;
|
|
1203
|
+
/** Provider to use */
|
|
1204
|
+
provider?: string;
|
|
1205
|
+
/** Model to use */
|
|
1206
|
+
model?: string;
|
|
1207
|
+
/** Temperature */
|
|
1208
|
+
temperature?: number;
|
|
1209
|
+
/** Maximum tokens */
|
|
1210
|
+
maxTokens?: number;
|
|
1211
|
+
/** System prompt */
|
|
1212
|
+
systemPrompt?: string;
|
|
1213
|
+
/** Enable tools */
|
|
1214
|
+
enableTools?: boolean;
|
|
1215
|
+
/** Context data */
|
|
1216
|
+
context?: UnknownRecord;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Streaming event emitter interface
|
|
1220
|
+
*/
|
|
1221
|
+
export type StreamingEventEmitter = {
|
|
1222
|
+
on(event: "text", callback: (text: string) => void): void;
|
|
1223
|
+
on(event: "tool-call", callback: (toolCall: StreamToolCall) => void): void;
|
|
1224
|
+
on(event: "tool-result", callback: (toolResult: StreamToolResult) => void): void;
|
|
1225
|
+
on(event: "error", callback: (error: ClientApiError) => void): void;
|
|
1226
|
+
on(event: "done", callback: (result: StreamResult) => void): void;
|
|
1227
|
+
on(event: "metadata", callback: (metadata: JsonObject) => void): void;
|
|
1228
|
+
off(event: string, callback: (...args: unknown[]) => void): void;
|
|
1229
|
+
emit(event: string, ...args: unknown[]): void;
|
|
1230
|
+
};
|
|
1231
|
+
/**
|
|
1232
|
+
* Streaming client configuration
|
|
1233
|
+
*/
|
|
1234
|
+
export type StreamingClientConfig = {
|
|
1235
|
+
/** Base URL for the API */
|
|
1236
|
+
baseUrl: string;
|
|
1237
|
+
/** API key */
|
|
1238
|
+
apiKey?: string;
|
|
1239
|
+
/** Bearer token */
|
|
1240
|
+
token?: string;
|
|
1241
|
+
/** Default headers */
|
|
1242
|
+
headers?: Record<string, string>;
|
|
1243
|
+
/** Preferred transport: 'sse' or 'websocket' */
|
|
1244
|
+
transport?: "sse" | "websocket";
|
|
1245
|
+
};
|
|
1246
|
+
/** @see WSClientState */
|
|
1247
|
+
export type ClientClientWebSocketState = WSClientState;
|
|
1248
|
+
/** @see WSClientConfig */
|
|
1249
|
+
export type ClientWebSocketConfig = WSClientConfig;
|
|
1250
|
+
/** @see WSClientMessage */
|
|
1251
|
+
export type ClientWebSocketMessage = WSClientMessage;
|
|
1252
|
+
/** @see WSClientEventHandlers */
|
|
1253
|
+
export type WebSocketEventHandlers = WSClientEventHandlers;
|