@juspay/neurolink 9.54.2 → 9.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +370 -370
- 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/factories/commandFactory.js +43 -4
- 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/abortHandler.d.ts +22 -0
- package/dist/cli/utils/abortHandler.js +53 -0
- 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 +8 -6
- package/dist/core/baseProvider.js +20 -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 +8 -6
- package/dist/lib/core/baseProvider.js +20 -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 +20 -6
- 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 +4 -1
- package/dist/lib/providers/anthropicBaseProvider.d.ts +1 -1
- package/dist/lib/providers/anthropicBaseProvider.js +2 -1
- package/dist/lib/providers/azureOpenai.d.ts +1 -2
- package/dist/lib/providers/azureOpenai.js +1 -0
- package/dist/lib/providers/googleAiStudio.d.ts +1 -3
- package/dist/lib/providers/googleAiStudio.js +4 -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 +4 -3
- package/dist/lib/providers/huggingFace.d.ts +1 -2
- package/dist/lib/providers/huggingFace.js +1 -0
- package/dist/lib/providers/litellm.d.ts +1 -1
- package/dist/lib/providers/litellm.js +4 -2
- package/dist/lib/providers/mistral.d.ts +1 -3
- package/dist/lib/providers/mistral.js +1 -0
- 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 +2 -1
- package/dist/lib/providers/openRouter.d.ts +1 -1
- package/dist/lib/providers/openRouter.js +1 -0
- package/dist/lib/providers/openaiCompatible.d.ts +1 -2
- package/dist/lib/providers/openaiCompatible.js +1 -0
- 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/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/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/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} +16 -4
- 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} +25 -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/toolCallRepair.d.ts +21 -0
- package/dist/lib/utils/toolCallRepair.js +298 -0
- 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 +20 -6
- 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 +4 -1
- package/dist/providers/anthropicBaseProvider.d.ts +1 -1
- package/dist/providers/anthropicBaseProvider.js +2 -1
- package/dist/providers/azureOpenai.d.ts +1 -2
- package/dist/providers/azureOpenai.js +1 -0
- package/dist/providers/googleAiStudio.d.ts +1 -3
- package/dist/providers/googleAiStudio.js +4 -2
- package/dist/providers/googleNativeGemini3.d.ts +1 -2
- package/dist/providers/googleVertex.d.ts +1 -3
- package/dist/providers/googleVertex.js +4 -3
- package/dist/providers/huggingFace.d.ts +1 -2
- package/dist/providers/huggingFace.js +1 -0
- package/dist/providers/litellm.d.ts +1 -1
- package/dist/providers/litellm.js +4 -2
- package/dist/providers/mistral.d.ts +1 -3
- package/dist/providers/mistral.js +1 -0
- 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 +2 -1
- package/dist/providers/openRouter.d.ts +1 -1
- package/dist/providers/openRouter.js +1 -0
- package/dist/providers/openaiCompatible.d.ts +1 -2
- package/dist/providers/openaiCompatible.js +1 -0
- 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/sseInterceptor.d.ts +5 -4
- package/dist/proxy/updateChecker.d.ts +3 -2
- package/dist/proxy/updateState.d.ts +5 -4
- 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/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} +16 -4
- 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} +25 -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/toolCallRepair.d.ts +21 -0
- package/dist/utils/toolCallRepair.js +297 -0
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Prompt alignment scorer
|
|
3
3
|
* Measures how well the response aligns with prompt instructions
|
|
4
4
|
*/
|
|
5
|
-
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/
|
|
5
|
+
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
|
|
6
6
|
import { BaseLLMScorer } from "./baseLLMScorer.js";
|
|
7
7
|
export declare class PromptAlignmentScorer extends BaseLLMScorer {
|
|
8
8
|
constructor(config?: Partial<LLMScorerConfig>);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Summarization quality scorer
|
|
3
3
|
* Evaluates the quality of AI-generated summaries
|
|
4
4
|
*/
|
|
5
|
-
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/
|
|
5
|
+
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
|
|
6
6
|
import { BaseLLMScorer } from "./baseLLMScorer.js";
|
|
7
7
|
export declare class SummarizationScorer extends BaseLLMScorer {
|
|
8
8
|
constructor(config?: Partial<LLMScorerConfig>);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Tone consistency scorer
|
|
3
3
|
* Checks for consistent tone throughout the response
|
|
4
4
|
*/
|
|
5
|
-
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/
|
|
5
|
+
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
|
|
6
6
|
import { BaseLLMScorer } from "./baseLLMScorer.js";
|
|
7
7
|
export declare class ToneConsistencyScorer extends BaseLLMScorer {
|
|
8
8
|
constructor(config?: Partial<LLMScorerConfig>);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Toxicity analysis scorer
|
|
3
3
|
* Detects harmful, offensive, or inappropriate content
|
|
4
4
|
*/
|
|
5
|
-
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/
|
|
5
|
+
import type { LLMScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
|
|
6
6
|
import { BaseLLMScorer } from "./baseLLMScorer.js";
|
|
7
7
|
export declare class ToxicityScorer extends BaseLLMScorer {
|
|
8
8
|
constructor(config?: Partial<LLMScorerConfig>);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Base class for all rule-based scorers
|
|
3
3
|
* Provides common functionality for rule evaluation
|
|
4
4
|
*/
|
|
5
|
-
import type { RuleResult, RuleScorer, RuleScorerConfig, ScoreResult, ScorerInput, ScorerMetadata, ScorerRule } from "../../../types/
|
|
5
|
+
import type { RuleResult, RuleScorer, RuleScorerConfig, ScoreResult, ScorerInput, ScorerMetadata, ScorerRule } from "../../../types/index.js";
|
|
6
6
|
import { BaseScorer } from "../baseScorer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Default rule scorer configuration
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @file Content Similarity Scorer
|
|
3
3
|
* Evaluates text similarity using various metrics (Jaccard, cosine, Levenshtein)
|
|
4
4
|
*/
|
|
5
|
-
import type { RuleScorerConfig, ScoreResult, ScorerInput } from "../../../types/
|
|
5
|
+
import type { RuleScorerConfig, ScoreResult, ScorerInput } from "../../../types/index.js";
|
|
6
6
|
import { BaseScorer } from "../baseScorer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Similarity metric types
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type SimilarityMetric = "jaccard" | "cosine" | "levenshtein" | "dice" | "overlap";
|
|
11
11
|
/**
|
|
12
12
|
* Configuration specific to content similarity scoring
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
type ContentSimilarityConfig = RuleScorerConfig & {
|
|
15
15
|
/** Similarity metric to use */
|
|
16
16
|
metric?: SimilarityMetric;
|
|
17
17
|
/** Multiple metrics to combine */
|
|
@@ -106,3 +106,4 @@ export declare class ContentSimilarityScorer extends BaseScorer {
|
|
|
106
106
|
* Factory function for creating ContentSimilarityScorer instances
|
|
107
107
|
*/
|
|
108
108
|
export declare function createContentSimilarityScorer(config?: ContentSimilarityConfig): Promise<ContentSimilarityScorer>;
|
|
109
|
+
export {};
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* @file Format Scorer
|
|
3
3
|
* Evaluates response format compliance (JSON, markdown, code, etc.)
|
|
4
4
|
*/
|
|
5
|
-
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/
|
|
5
|
+
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/index.js";
|
|
6
6
|
import { BaseRuleScorer } from "./baseRuleScorer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Expected format types
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type FormatType = "json" | "markdown" | "code" | "list" | "numbered-list" | "bullet-list" | "table" | "yaml" | "xml" | "plain" | "html" | "custom";
|
|
11
11
|
/**
|
|
12
12
|
* Code language types for code format validation
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
type CodeLanguage = "javascript" | "typescript" | "python" | "java" | "c" | "cpp" | "csharp" | "go" | "rust" | "sql" | "bash" | "any";
|
|
15
15
|
/**
|
|
16
16
|
* Configuration specific to format scoring
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
type FormatScorerConfig = RuleScorerConfig & {
|
|
19
19
|
/** Expected format type */
|
|
20
20
|
expectedFormat?: FormatType;
|
|
21
21
|
/** Multiple allowed formats */
|
|
@@ -145,3 +145,4 @@ export declare const FormatScorerPresets: {
|
|
|
145
145
|
/** Plain text only */
|
|
146
146
|
readonly plainText: () => FormatScorer;
|
|
147
147
|
};
|
|
148
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Export all rule-based scorers
|
|
4
4
|
*/
|
|
5
5
|
export { BaseRuleScorer, DEFAULT_RULE_SCORER_CONFIG, } from "./baseRuleScorer.js";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { createKeywordCoverageScorer,
|
|
9
|
-
export { createLengthScorer,
|
|
6
|
+
export { ContentSimilarityScorer, createContentSimilarityScorer, } from "./contentSimilarityScorer.js";
|
|
7
|
+
export { createFormatScorer, FormatScorer, FormatScorerPresets, } from "./formatScorer.js";
|
|
8
|
+
export { createKeywordCoverageScorer, KeywordCoverageScorer, } from "./keywordCoverageScorer.js";
|
|
9
|
+
export { createLengthScorer, LengthScorer, LengthScorerPresets, } from "./lengthScorer.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @file Keyword Coverage Scorer
|
|
3
3
|
* Evaluates how well the response covers expected keywords or topics
|
|
4
4
|
*/
|
|
5
|
-
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/
|
|
5
|
+
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/index.js";
|
|
6
6
|
import { BaseRuleScorer } from "./baseRuleScorer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Configuration specific to keyword coverage scoring
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type KeywordCoverageConfig = RuleScorerConfig & {
|
|
11
11
|
/** Keywords to check for */
|
|
12
12
|
keywords?: string[];
|
|
13
13
|
/** Minimum coverage ratio (0-1) to pass */
|
|
@@ -81,3 +81,4 @@ export declare class KeywordCoverageScorer extends BaseRuleScorer {
|
|
|
81
81
|
* Factory function for creating KeywordCoverageScorer instances
|
|
82
82
|
*/
|
|
83
83
|
export declare function createKeywordCoverageScorer(config?: KeywordCoverageConfig): Promise<KeywordCoverageScorer>;
|
|
84
|
+
export {};
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* @file Length Scorer
|
|
3
3
|
* Evaluates response length against configured constraints
|
|
4
4
|
*/
|
|
5
|
-
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/
|
|
5
|
+
import type { RuleScorerConfig, ScoreResult, ScorerInput, ScorerRule } from "../../../types/index.js";
|
|
6
6
|
import { BaseRuleScorer } from "./baseRuleScorer.js";
|
|
7
7
|
/**
|
|
8
8
|
* Length measurement unit
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type LengthUnit = "words" | "characters" | "sentences" | "paragraphs" | "tokens";
|
|
11
11
|
/**
|
|
12
12
|
* Length constraint type
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
type LengthConstraintType = "exact" | "range" | "minimum" | "maximum" | "ratio";
|
|
15
15
|
/**
|
|
16
16
|
* Configuration specific to length scoring
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
type LengthScorerConfig = RuleScorerConfig & {
|
|
19
19
|
/** Unit of measurement */
|
|
20
20
|
unit?: LengthUnit;
|
|
21
21
|
/** Constraint type */
|
|
@@ -103,3 +103,4 @@ export declare const LengthScorerPresets: {
|
|
|
103
103
|
/** Tweet-length (max 280 characters) */
|
|
104
104
|
readonly tweet: () => LengthScorer;
|
|
105
105
|
};
|
|
106
|
+
export {};
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* @file Scorer Builder
|
|
3
3
|
* Fluent builder API for creating custom scorers
|
|
4
4
|
*/
|
|
5
|
-
import type { ScorerCategory, ScorerInput, ScorerRule, ScorerType } from "../../types/
|
|
5
|
+
import type { ScorerCategory, ScorerInput, ScorerRule, ScorerType, ScorerFunction } from "../../types/index.js";
|
|
6
6
|
import type { BaseScorer } from "./baseScorer.js";
|
|
7
|
-
import { type ScorerFunction } from "./customScorerUtils.js";
|
|
8
7
|
/**
|
|
9
8
|
* Fluent builder for creating custom scorers
|
|
10
9
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Scorer Builder
|
|
3
3
|
* Fluent builder API for creating custom scorers
|
|
4
4
|
*/
|
|
5
|
-
import { composeScorers, createFunctionScorer
|
|
5
|
+
import { composeScorers, createFunctionScorer } from "./customScorerUtils.js";
|
|
6
6
|
/**
|
|
7
7
|
* Fluent builder for creating custom scorers
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file Scorer registry for managing scorer registration and discovery
|
|
3
3
|
* Follows NeuroLink's factory + registry pattern with dynamic imports
|
|
4
4
|
*/
|
|
5
|
-
import type { Scorer, ScorerCategory, ScorerConfig, ScorerFactory, ScorerMetadata, ScorerRegistryEntry, ScorerType } from "../../types/
|
|
5
|
+
import type { Scorer, ScorerCategory, ScorerConfig, ScorerFactory, ScorerMetadata, ScorerRegistryEntry, ScorerType } from "../../types/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* Central registry for all scorers
|
|
8
8
|
* Manages registration, discovery, and instantiation
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Contains the logic for mapping raw evaluation results to the structured EvaluationData type.
|
|
3
3
|
*/
|
|
4
|
-
import type { EnhancedEvaluationContext, EvaluationResult } from "../types/
|
|
5
|
-
import type { EvaluationData } from "../types/evaluation.js";
|
|
4
|
+
import type { EnhancedEvaluationContext, EvaluationResult, EvaluationData } from "../types/index.js";
|
|
6
5
|
/**
|
|
7
6
|
* Maps a raw `EvaluationResult` to the structured `EvaluationData` format.
|
|
8
7
|
* This includes calculating derived fields like `isOffTopic` and `alertSeverity`.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Contains the logic for mapping raw evaluation results to the structured EvaluationData type.
|
|
3
3
|
*/
|
|
4
|
-
import { SpanSerializer, SpanType, SpanStatus, } from "../observability/index.js";
|
|
5
|
-
import { getMetricsAggregator } from "../observability/index.js";
|
|
4
|
+
import { SpanSerializer, SpanType, SpanStatus, getMetricsAggregator, } from "../observability/index.js";
|
|
6
5
|
/**
|
|
7
6
|
* Maps a raw `EvaluationResult` to the structured `EvaluationData` format.
|
|
8
7
|
* This includes calculating derived fields like `isOffTopic` and `alertSeverity`.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AIProviderName } from "../constants/enums.js";
|
|
2
|
-
import type { UnknownRecord } from "../types/
|
|
3
|
-
import type { AIProvider, NeurolinkCredentials } from "../types/index.js";
|
|
2
|
+
import type { UnknownRecord, AIProvider, NeurolinkCredentials } from "../types/index.js";
|
|
4
3
|
/**
|
|
5
4
|
* Provider constructor interface - supports both sync constructors and async factory functions
|
|
6
5
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Contains theme definitions, layout configs, and AI prompt templates
|
|
5
5
|
* for presentation generation.
|
|
6
6
|
*/
|
|
7
|
-
import type { PromptTier, PPTModelInfo, BuildContentPlanningPromptOptions, BulletStyle, SlideFormattingConfig, PresentationTheme, SlideType, SlideLayout } from "
|
|
7
|
+
import type { PromptTier, PPTModelInfo, BuildContentPlanningPromptOptions, BulletStyle, SlideFormattingConfig, PresentationTheme, SlideType, SlideLayout } from "../../types/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* Built-in theme registry
|
|
10
10
|
* Each theme defines colors, fonts, and styling for the presentation
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module presentation/contentPlanner
|
|
13
13
|
*/
|
|
14
|
-
import type { AIProvider } from "../../types/
|
|
15
|
-
import type { ContentPlan, PPTGenerationContext } from "./types.js";
|
|
14
|
+
import type { AIProvider, ContentPlan, PPTGenerationContext } from "../../types/index.js";
|
|
16
15
|
/**
|
|
17
16
|
* Generate a content plan for the presentation
|
|
18
17
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module presentation/contentPlanner
|
|
13
13
|
*/
|
|
14
|
-
import { PPTError, PPT_ERROR_CODES } from "./
|
|
14
|
+
import { PPTError, PPT_ERROR_CODES } from "./pptError.js";
|
|
15
15
|
import { CONTENT_PLANNING_SYSTEM_PROMPT, buildContentPlanningPrompt, CONTENT_PLANNING_TIMEOUT_MS, SLIDE_TYPE_TO_LAYOUT, } from "./constants.js";
|
|
16
16
|
import { normalizeSlideWithInference, applyBulletStyleToContent, } from "./slideTypeInference.js";
|
|
17
17
|
import { logger } from "../../utils/logger.js";
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Exports all presentation generation components.
|
|
5
|
-
*
|
|
6
|
-
* Architecture:
|
|
7
|
-
* - types.ts: Internal types (SlideSchema, ContentPlan, etc.)
|
|
8
|
-
* - constants.ts: Themes, prompts, validation constants
|
|
9
|
-
* - contentPlanner.ts: AI-powered content planning
|
|
10
|
-
* - slideGenerator.ts: Individual slide generation (Step 3)
|
|
11
|
-
* - orchestrator.ts: Main orchestration logic (Step 4)
|
|
12
|
-
*/
|
|
13
|
-
export type { SlideType, SlideLayout, BulletPoint, SlideContent, SlideSchema, ContentPlan, TableRow, ChartSeries, Statistic, TimelineItem, ProcessStep, FeatureItem, ComparisonColumn, PresentationTheme, PPTGenerationContext, CompleteSlide, } from "./types.js";
|
|
14
|
-
export { PPTError, PPT_ERROR_CODES, SLIDE_DIMENSIONS, } from "./types.js";
|
|
1
|
+
export { PPTError, PPT_ERROR_CODES } from "./pptError.js";
|
|
2
|
+
export { SLIDE_DIMENSIONS, } from "../../types/index.js";
|
|
15
3
|
export { extractPPTContext } from "./utils.js";
|
|
16
4
|
export { renderColumnSlide, renderTwoColumnSlide, renderThreeColumnSlide, renderComparisonSlide, renderContentSlide, renderTitleSlide, addTitle, addBullets, addIndividualBullets, addImage, addEnhancedBackground, addColoredBackground, LAYOUT_POSITIONS, renderDashboardSlide, renderMixedContentSlide, renderStatsGridSlide, renderIconGridSlide, COMPOSITE_LAYOUTS, } from "./slideRenderers.js";
|
|
17
|
-
export type { BackgroundStyle, SlideGeneratorConfig, SlideGenerationBatchResult, LogoConfig, PresentationGenerationOptions, } from "./types.js";
|
|
18
5
|
export { inferFromTitle, inferBulletStyleFromContent, getBulletStyleForSlideType, normalizeSlideWithInference, applyBulletStyleToContent, SLIDE_TYPE_GUIDANCE, getSlideTypeGuidanceForAI, } from "./slideTypeInference.js";
|
|
19
6
|
export { THEMES, getTheme, SLIDE_TYPE_TO_LAYOUT, SLIDE_TYPE_CATEGORIES, getLayoutForType, DIAGRAM_SLIDE_TYPES, IMAGE_SLIDE_TYPES, isDiagramSlideType, isImageSlideType, AUDIENCE_GUIDELINES, TONE_GUIDELINES, CONTENT_PLANNING_SYSTEM_PROMPT, buildContentPlanningPrompt, enhanceImagePrompt, MIN_PAGES, MAX_PAGES, MIN_TOPIC_LENGTH, MAX_TOPIC_LENGTH, VALID_THEMES, VALID_AUDIENCES, VALID_TONES, VALID_ASPECT_RATIOS, CONTENT_PLANNING_TIMEOUT_MS, IMAGE_GENERATION_TIMEOUT_MS, MAX_CONCURRENT_IMAGE_GENERATIONS, PPT_GENERATION_TIMEOUT_MS, } from "./constants.js";
|
|
20
7
|
export { generateContentPlan, ensureTitleSlide, ensureThankYouSlide, postProcessPlan, } from "./contentPlanner.js";
|
|
21
8
|
export { SlideGenerator, createSlideGenerator, generateSlidesFromPlan, PptxGenJS, } from "./slideGenerator.js";
|
|
22
9
|
export { generatePresentation } from "./presentationOrchestrator.js";
|
|
23
10
|
export { validatePPTGenerationInput, validatePPTOutputOptions, validatePPTProvider, } from "../../utils/parameterValidation.js";
|
|
24
|
-
export type { EnhancedValidationResult as PPTValidationResult } from "../../types/tools.js";
|
|
25
11
|
export { PPT_VALID_PROVIDERS, getEffectivePPTProvider, generateOutputPath, ensureOutputDirectory, normalizeLogoConfig, getLayoutName, getFailureStage, toError, isObject, isLogoConfig, validateImageBuffer, } from "./utils.js";
|
|
26
|
-
export type { EffectivePPTProviderResult } from "./types.js";
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Exports all presentation generation components.
|
|
5
|
-
*
|
|
6
|
-
* Architecture:
|
|
7
|
-
* - types.ts: Internal types (SlideSchema, ContentPlan, etc.)
|
|
8
|
-
* - constants.ts: Themes, prompts, validation constants
|
|
9
|
-
* - contentPlanner.ts: AI-powered content planning
|
|
10
|
-
* - slideGenerator.ts: Individual slide generation (Step 3)
|
|
11
|
-
* - orchestrator.ts: Main orchestration logic (Step 4)
|
|
12
|
-
*/
|
|
13
|
-
export { PPTError, PPT_ERROR_CODES,
|
|
1
|
+
export { PPTError, PPT_ERROR_CODES } from "./pptError.js";
|
|
2
|
+
export {
|
|
14
3
|
// Validation helpers from pptTypes
|
|
15
|
-
SLIDE_DIMENSIONS, } from "
|
|
4
|
+
SLIDE_DIMENSIONS, } from "../../types/index.js";
|
|
16
5
|
export { extractPPTContext } from "./utils.js";
|
|
17
6
|
// Slide Renderers
|
|
18
7
|
export { renderColumnSlide, renderTwoColumnSlide, renderThreeColumnSlide, renderComparisonSlide, renderContentSlide, renderTitleSlide, addTitle, addBullets, addIndividualBullets, addImage, addEnhancedBackground, addColoredBackground, LAYOUT_POSITIONS,
|
|
19
8
|
// Composite/Dashboard slide renderers
|
|
20
9
|
renderDashboardSlide, renderMixedContentSlide, renderStatsGridSlide, renderIconGridSlide, COMPOSITE_LAYOUTS, } from "./slideRenderers.js";
|
|
10
|
+
// Re-export types from the types module (not from implementation files)
|
|
21
11
|
// Slide Type Inference
|
|
22
12
|
export { inferFromTitle, inferBulletStyleFromContent, getBulletStyleForSlideType, normalizeSlideWithInference, applyBulletStyleToContent, SLIDE_TYPE_GUIDANCE, getSlideTypeGuidanceForAI, } from "./slideTypeInference.js";
|
|
23
13
|
// Constants
|
|
@@ -36,5 +26,7 @@ export { SlideGenerator, createSlideGenerator, generateSlidesFromPlan, PptxGenJS
|
|
|
36
26
|
export { generatePresentation } from "./presentationOrchestrator.js";
|
|
37
27
|
// Validation (re-export from parameterValidation for convenience)
|
|
38
28
|
export { validatePPTGenerationInput, validatePPTOutputOptions, validatePPTProvider, } from "../../utils/parameterValidation.js";
|
|
29
|
+
// Re-export EnhancedValidationResult for PPT validation results
|
|
39
30
|
// PPT Provider Utilities and Helper Functions
|
|
40
31
|
export { PPT_VALID_PROVIDERS, getEffectivePPTProvider, generateOutputPath, ensureOutputDirectory, normalizeLogoConfig, getLayoutName, getFailureStage, toError, isObject, isLogoConfig, validateImageBuffer, } from "./utils.js";
|
|
32
|
+
// Re-export EffectivePPTProviderResult type from types
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPT Generation Error Class & Codes
|
|
3
|
+
*
|
|
4
|
+
* Defined in the feature directory (not src/lib/types/) because PPTError is a
|
|
5
|
+
* runtime class extending NeuroLinkError. Putting runtime classes in
|
|
6
|
+
* src/lib/types/ creates a circular dependency: NeuroLinkError lives in
|
|
7
|
+
* utils/errorHandling.ts which imports from the types barrel, which would
|
|
8
|
+
* then re-export ppt.ts which extends NeuroLinkError → TDZ at runtime.
|
|
9
|
+
*
|
|
10
|
+
* Follows the same pattern as VideoError in vertexVideoHandler.ts.
|
|
11
|
+
*/
|
|
12
|
+
import { NeuroLinkError } from "../../utils/errorHandling.js";
|
|
13
|
+
/**
|
|
14
|
+
* PPT generation error codes
|
|
15
|
+
*/
|
|
16
|
+
export declare const PPT_ERROR_CODES: {
|
|
17
|
+
/** Content planning AI call failed */
|
|
18
|
+
readonly PLANNING_FAILED: "PPT_PLANNING_FAILED";
|
|
19
|
+
/** AI returned invalid/unparseable response */
|
|
20
|
+
readonly INVALID_AI_RESPONSE: "PPT_INVALID_AI_RESPONSE";
|
|
21
|
+
/** Image generation for slide failed */
|
|
22
|
+
readonly IMAGE_GENERATION_FAILED: "PPT_IMAGE_GENERATION_FAILED";
|
|
23
|
+
/** PPTX file assembly failed */
|
|
24
|
+
readonly ASSEMBLY_FAILED: "PPT_ASSEMBLY_FAILED";
|
|
25
|
+
/** File system write failed */
|
|
26
|
+
readonly FILE_WRITE_FAILED: "PPT_FILE_WRITE_FAILED";
|
|
27
|
+
/** Invalid input options */
|
|
28
|
+
readonly INVALID_INPUT: "PPT_INVALID_INPUT";
|
|
29
|
+
/** Generation timeout */
|
|
30
|
+
readonly TIMEOUT: "PPT_TIMEOUT";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* PPT generation error class.
|
|
34
|
+
* Extends NeuroLinkError for consistent error handling (follows VideoError pattern).
|
|
35
|
+
*/
|
|
36
|
+
export declare class PPTError extends NeuroLinkError {
|
|
37
|
+
constructor(message: string, code: string, context?: Record<string, unknown>, originalError?: Error);
|
|
38
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPT Generation Error Class & Codes
|
|
3
|
+
*
|
|
4
|
+
* Defined in the feature directory (not src/lib/types/) because PPTError is a
|
|
5
|
+
* runtime class extending NeuroLinkError. Putting runtime classes in
|
|
6
|
+
* src/lib/types/ creates a circular dependency: NeuroLinkError lives in
|
|
7
|
+
* utils/errorHandling.ts which imports from the types barrel, which would
|
|
8
|
+
* then re-export ppt.ts which extends NeuroLinkError → TDZ at runtime.
|
|
9
|
+
*
|
|
10
|
+
* Follows the same pattern as VideoError in vertexVideoHandler.ts.
|
|
11
|
+
*/
|
|
12
|
+
import { ErrorCategory, ErrorSeverity } from "../../constants/enums.js";
|
|
13
|
+
import { NeuroLinkError } from "../../utils/errorHandling.js";
|
|
14
|
+
/**
|
|
15
|
+
* PPT generation error codes
|
|
16
|
+
*/
|
|
17
|
+
export const PPT_ERROR_CODES = {
|
|
18
|
+
/** Content planning AI call failed */
|
|
19
|
+
PLANNING_FAILED: "PPT_PLANNING_FAILED",
|
|
20
|
+
/** AI returned invalid/unparseable response */
|
|
21
|
+
INVALID_AI_RESPONSE: "PPT_INVALID_AI_RESPONSE",
|
|
22
|
+
/** Image generation for slide failed */
|
|
23
|
+
IMAGE_GENERATION_FAILED: "PPT_IMAGE_GENERATION_FAILED",
|
|
24
|
+
/** PPTX file assembly failed */
|
|
25
|
+
ASSEMBLY_FAILED: "PPT_ASSEMBLY_FAILED",
|
|
26
|
+
/** File system write failed */
|
|
27
|
+
FILE_WRITE_FAILED: "PPT_FILE_WRITE_FAILED",
|
|
28
|
+
/** Invalid input options */
|
|
29
|
+
INVALID_INPUT: "PPT_INVALID_INPUT",
|
|
30
|
+
/** Generation timeout */
|
|
31
|
+
TIMEOUT: "PPT_TIMEOUT",
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* PPT generation error class.
|
|
35
|
+
* Extends NeuroLinkError for consistent error handling (follows VideoError pattern).
|
|
36
|
+
*/
|
|
37
|
+
export class PPTError extends NeuroLinkError {
|
|
38
|
+
constructor(message, code, context, originalError) {
|
|
39
|
+
super({
|
|
40
|
+
code,
|
|
41
|
+
message,
|
|
42
|
+
category: ErrorCategory.EXECUTION,
|
|
43
|
+
severity: ErrorSeverity.HIGH,
|
|
44
|
+
retriable: false,
|
|
45
|
+
context: {
|
|
46
|
+
...context,
|
|
47
|
+
originalMessage: originalError?.message,
|
|
48
|
+
},
|
|
49
|
+
originalError,
|
|
50
|
+
});
|
|
51
|
+
this.name = "PPTError";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module presentation/presentationOrchestrator
|
|
13
13
|
*/
|
|
14
|
-
import type { PPTGenerationResult, PresentationGenerationOptions } from "
|
|
14
|
+
import type { PPTGenerationResult, PresentationGenerationOptions } from "../../types/index.js";
|
|
15
15
|
/**
|
|
16
16
|
* Generate a complete PowerPoint presentation
|
|
17
17
|
*
|
|
@@ -19,14 +19,13 @@ const PptxGenJSResolved = typeof PptxGenJSImport === "function"
|
|
|
19
19
|
.default;
|
|
20
20
|
const PptxGenJS = PptxGenJSResolved;
|
|
21
21
|
import * as fs from "fs/promises";
|
|
22
|
-
import { PPTError, PPT_ERROR_CODES } from "./
|
|
22
|
+
import { PPTError, PPT_ERROR_CODES } from "./pptError.js";
|
|
23
23
|
import { generateContentPlan, postProcessPlan } from "./contentPlanner.js";
|
|
24
24
|
import { SlideGenerator } from "./slideGenerator.js";
|
|
25
25
|
import { PPT_GENERATION_TIMEOUT_MS } from "./constants.js";
|
|
26
26
|
import { logger } from "../../utils/logger.js";
|
|
27
27
|
import { withTimeout, ErrorFactory } from "../../utils/errorHandling.js";
|
|
28
|
-
import { SpanSerializer, SpanType, SpanStatus, } from "../../observability/index.js";
|
|
29
|
-
import { getMetricsAggregator } from "../../observability/index.js";
|
|
28
|
+
import { SpanSerializer, SpanType, SpanStatus, getMetricsAggregator, } from "../../observability/index.js";
|
|
30
29
|
import { generateOutputPath, ensureOutputDirectory, normalizeLogoConfig, getLayoutName, getFailureStage, toError, } from "./utils.js";
|
|
31
30
|
// ============================================================================
|
|
32
31
|
// MAIN ORCHESTRATION FUNCTION
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import PptxGenJSImport from "pptxgenjs";
|
|
16
16
|
declare const PptxGenJS: typeof PptxGenJSImport;
|
|
17
|
-
import type { SlideSchema, CompleteSlide, PptxPresentation, PptxSlide, SlideGeneratorConfig, SlideGenerationBatchResult } from "
|
|
17
|
+
import type { SlideSchema, CompleteSlide, PptxPresentation, PptxSlide, SlideGeneratorConfig, SlideGenerationBatchResult } from "../../types/index.js";
|
|
18
18
|
/**
|
|
19
19
|
* Generates individual slides with content, images, and proper layouts
|
|
20
20
|
*/
|
|
@@ -20,12 +20,11 @@ const PptxGenJS = typeof PptxGenJSImport === "function"
|
|
|
20
20
|
.default;
|
|
21
21
|
import pLimit from "p-limit";
|
|
22
22
|
import * as fs from "fs";
|
|
23
|
-
import { SLIDE_DIMENSIONS } from "
|
|
23
|
+
import { SLIDE_DIMENSIONS } from "../../types/index.js";
|
|
24
24
|
import { getTheme, isImageSlideType, enhanceImagePrompt, IMAGE_GENERATION_TIMEOUT_MS, MAX_CONCURRENT_IMAGE_GENERATIONS, } from "./constants.js";
|
|
25
25
|
import { logger } from "../../utils/logger.js";
|
|
26
26
|
import { withTimeout, ErrorFactory, NeuroLinkError, } from "../../utils/errorHandling.js";
|
|
27
|
-
import { SpanSerializer, SpanType, SpanStatus, } from "../../observability/index.js";
|
|
28
|
-
import { getMetricsAggregator } from "../../observability/index.js";
|
|
27
|
+
import { SpanSerializer, SpanType, SpanStatus, getMetricsAggregator, } from "../../observability/index.js";
|
|
29
28
|
import { LAYOUT_POSITIONS, renderTitleSlide, renderSectionHeaderSlide, renderThankYouSlide, renderContentSlide, renderImageSlide, renderTwoColumnSlide, renderThreeColumnSlide, renderQuoteSlide, renderStatisticsSlide, renderChartSlide, renderTableSlide, renderTimelineSlide, renderProcessFlowSlide, renderComparisonSlide, renderFeaturesSlide, renderTeamSlide, renderConclusionSlide, renderDashboardSlide, renderMixedContentSlide, renderStatsGridSlide, renderIconGridSlide, } from "./slideRenderers.js";
|
|
30
29
|
// ============================================================================
|
|
31
30
|
// SLIDE GENERATOR CLASS
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module presentation/slideRenderers
|
|
8
8
|
*/
|
|
9
|
-
import type { BackgroundStyle, BulletPoint, ColumnData, PptxChartName, PptxSlide, PresentationTheme, RenderContentSlideOptions, SlideContent, SlideLayout, SlideType } from "
|
|
9
|
+
import type { BackgroundStyle, BulletPoint, ColumnData, PptxChartName, PptxSlide, PresentationTheme, RenderContentSlideOptions, SlideContent, SlideLayout, SlideType } from "../../types/index.js";
|
|
10
10
|
export declare const LAYOUT_POSITIONS: {
|
|
11
11
|
margin: {
|
|
12
12
|
x: number;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* This helps ensure consistent slide rendering when AI doesn't explicitly
|
|
10
10
|
* specify a slide type, or when we want to normalize AI responses.
|
|
11
11
|
*/
|
|
12
|
-
import type { BulletPoint, BulletStyle, SlideContent, SlideType } from "
|
|
12
|
+
import type { BulletPoint, BulletStyle, SlideContent, SlideType } from "../../types/index.js";
|
|
13
13
|
/**
|
|
14
14
|
* Infer slide type and bullet style from title text
|
|
15
15
|
*/
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module ppt/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { PPTGenerationContext, AspectRatioOption, EffectivePPTProviderResult, ImageValidationResult, TextSegment, LogoConfig } from "
|
|
9
|
-
import type { GenerateOptions } from "../../types/generateTypes.js";
|
|
8
|
+
import type { PPTGenerationContext, AspectRatioOption, EffectivePPTProviderResult, ImageValidationResult, TextSegment, LogoConfig, GenerateOptions } from "../../types/index.js";
|
|
10
9
|
/**
|
|
11
10
|
* Extract PPT generation context from GenerateOptions
|
|
12
11
|
*/
|
|
@@ -9,7 +9,7 @@ import * as fs from "fs/promises";
|
|
|
9
9
|
import * as path from "path";
|
|
10
10
|
import { hasProviderEnvVars } from "../../utils/providerUtils.js";
|
|
11
11
|
import { logger } from "../../utils/logger.js";
|
|
12
|
-
import { PPTError, PPT_ERROR_CODES } from "
|
|
12
|
+
import { PPTError, PPT_ERROR_CODES } from "./pptError.js";
|
|
13
13
|
// ============================================================================
|
|
14
14
|
// CONTEXT EXTRACTION
|
|
15
15
|
// ============================================================================
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module files/fileReferenceRegistry
|
|
13
13
|
*/
|
|
14
|
-
import type { FileSource } from "../types/
|
|
15
|
-
import type { FileExtractionParams, FileExtractionResult, FileReadResult, FileReference, FileRegistrationOptions, FileRegistryOptions, FileSearchResult, SizeTier } from "./types.js";
|
|
14
|
+
import type { FileSource, FileExtractionParams, FileExtractionResult, FileReadResult, FileReference, FileRegistrationOptions, FileRegistryOptions, FileSearchResult, SizeTier } from "../types/index.js";
|
|
16
15
|
/**
|
|
17
16
|
* Registry for managing file references with on-demand processing.
|
|
18
17
|
*
|
|
@@ -18,7 +18,7 @@ import { basename, extname, join } from "node:path";
|
|
|
18
18
|
import { estimatePostProcessingTokens } from "../context/fileTokenBudget.js";
|
|
19
19
|
import { logger } from "../utils/logger.js";
|
|
20
20
|
import { StreamingReader } from "./streamingReader.js";
|
|
21
|
-
import { SIZE_TIER_THRESHOLDS } from "
|
|
21
|
+
import { SIZE_TIER_THRESHOLDS } from "../types/index.js";
|
|
22
22
|
/** Default maximum files in registry before LRU eviction */
|
|
23
23
|
const DEFAULT_MAX_FILES = 100;
|
|
24
24
|
/** Default maximum temp bytes (1 GB) */
|
|
@@ -51,9 +51,9 @@ export declare function createFileTools(registry: FileReferenceRegistry): {
|
|
|
51
51
|
type: import("../index.js").FileType;
|
|
52
52
|
size: string;
|
|
53
53
|
sizeBytes: number;
|
|
54
|
-
sizeTier: import("
|
|
54
|
+
sizeTier: import("../index.js").SizeTier;
|
|
55
55
|
estimatedTokens: number;
|
|
56
|
-
status: import("
|
|
56
|
+
status: import("../index.js").FileReferenceStatus;
|
|
57
57
|
hasPreview: boolean;
|
|
58
58
|
hasSummary: boolean;
|
|
59
59
|
totalLines: number | null;
|
|
@@ -146,10 +146,10 @@ export declare function createFileTools(registry: FileReferenceRegistry): {
|
|
|
146
146
|
type: import("../index.js").FileType;
|
|
147
147
|
size: string;
|
|
148
148
|
sizeBytes: number;
|
|
149
|
-
sizeTier: import("
|
|
149
|
+
sizeTier: import("../index.js").SizeTier;
|
|
150
150
|
mimeType: string;
|
|
151
151
|
estimatedTokens: number;
|
|
152
|
-
status: import("
|
|
152
|
+
status: import("../index.js").FileReferenceStatus;
|
|
153
153
|
totalLines: number | null;
|
|
154
154
|
preview: string;
|
|
155
155
|
summary: string | null;
|
|
@@ -173,7 +173,7 @@ export declare function createFileTools(registry: FileReferenceRegistry): {
|
|
|
173
173
|
} | undefined;
|
|
174
174
|
columns?: string[] | undefined;
|
|
175
175
|
entry_path?: string | undefined;
|
|
176
|
-
format?: "
|
|
176
|
+
format?: "text" | "summary" | "detailed" | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
success: false;
|
|
179
179
|
error: string | undefined;
|
package/dist/files/index.d.ts
CHANGED
|
@@ -10,5 +10,4 @@
|
|
|
10
10
|
export { FileReferenceRegistry } from "./fileReferenceRegistry.js";
|
|
11
11
|
export { createFileTools } from "./fileTools.js";
|
|
12
12
|
export { StreamingReader } from "./streamingReader.js";
|
|
13
|
-
export
|
|
14
|
-
export { SIZE_TIER_THRESHOLDS } from "./types.js";
|
|
13
|
+
export { SIZE_TIER_THRESHOLDS } from "../types/index.js";
|
package/dist/files/index.js
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
export { FileReferenceRegistry } from "./fileReferenceRegistry.js";
|
|
11
11
|
export { createFileTools } from "./fileTools.js";
|
|
12
12
|
export { StreamingReader } from "./streamingReader.js";
|
|
13
|
-
export { SIZE_TIER_THRESHOLDS } from "
|
|
13
|
+
export { SIZE_TIER_THRESHOLDS } from "../types/index.js";
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* // result.truncated = true if budget was hit before line 200
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
import type { FileReadResult, FileSearchResult, StreamingReaderOptions } from "
|
|
24
|
+
import type { FileReadResult, FileSearchResult, StreamingReaderOptions } from "../types/index.js";
|
|
25
25
|
/**
|
|
26
26
|
* Streaming file reader with token-budget-aware line reading.
|
|
27
27
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* for enterprise-grade AI safety.
|
|
7
7
|
*/
|
|
8
8
|
import { EventEmitter } from "events";
|
|
9
|
-
import type { HITLConfig, ConfirmationResult, HITLStatistics } from "../types/
|
|
9
|
+
import type { HITLConfig, ConfirmationResult, HITLStatistics } from "../types/index.js";
|
|
10
10
|
/**
|
|
11
11
|
* HITLManager - Central orchestrator for Human-in-the-Loop safety mechanisms
|
|
12
12
|
*
|