@juspay/neurolink 11.13.0 → 11.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -6
- package/dist/browser/neurolink.min.js +681 -842
- package/dist/cli/commands/agent.js +2 -2
- package/dist/cli/commands/auth.d.ts +1 -1
- package/dist/cli/commands/auth.js +11 -11
- package/dist/cli/commands/authProviders.d.ts +1 -1
- package/dist/cli/commands/authProviders.js +2 -2
- package/dist/cli/commands/autoresearch.js +5 -5
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.js +4 -4
- package/dist/cli/commands/docs.d.ts +1 -1
- package/dist/cli/commands/evaluate.d.ts +1 -1
- package/dist/cli/commands/evaluate.js +4 -4
- package/dist/cli/commands/mcp.js +14 -14
- package/dist/cli/commands/models.js +3 -3
- package/dist/cli/commands/observability.d.ts +1 -1
- package/dist/cli/commands/observability.js +3 -3
- package/dist/cli/commands/ollama.js +1 -1
- package/dist/cli/commands/proxy.d.ts +2 -2
- package/dist/cli/commands/proxy.js +45 -45
- package/dist/cli/commands/proxyAnalyze.d.ts +1 -1
- package/dist/cli/commands/proxyAnalyze.js +2 -2
- package/dist/cli/commands/proxyReplay.d.ts +1 -1
- package/dist/cli/commands/proxyReplay.js +2 -2
- package/dist/cli/commands/rag.js +10 -10
- package/dist/cli/commands/serve.js +7 -7
- package/dist/cli/commands/server.js +6 -6
- package/dist/cli/commands/setup-anthropic.d.ts +1 -1
- package/dist/cli/commands/setup-anthropic.js +3 -3
- package/dist/cli/commands/setup-azure.d.ts +1 -1
- package/dist/cli/commands/setup-azure.js +3 -3
- package/dist/cli/commands/setup-bedrock.d.ts +1 -1
- package/dist/cli/commands/setup-bedrock.js +3 -3
- package/dist/cli/commands/setup-gcp.d.ts +1 -1
- package/dist/cli/commands/setup-gcp.js +1 -1
- package/dist/cli/commands/setup-google-ai.d.ts +1 -1
- package/dist/cli/commands/setup-google-ai.js +4 -4
- package/dist/cli/commands/setup-huggingface.d.ts +1 -1
- package/dist/cli/commands/setup-huggingface.js +1 -1
- package/dist/cli/commands/setup-mistral.d.ts +1 -1
- package/dist/cli/commands/setup-mistral.js +3 -3
- package/dist/cli/commands/setup-openai.d.ts +1 -1
- package/dist/cli/commands/setup-openai.js +3 -3
- package/dist/cli/commands/setup.d.ts +1 -1
- package/dist/cli/commands/setup.js +4 -4
- package/dist/cli/commands/task.js +4 -4
- package/dist/cli/commands/telemetry.d.ts +1 -1
- package/dist/cli/commands/telemetry.js +4 -4
- package/dist/cli/commands/voiceServer.d.ts +1 -1
- package/dist/cli/commands/voiceServer.js +6 -2
- package/dist/cli/commands/workflow.js +5 -5
- package/dist/cli/errorHandler.js +3 -3
- package/dist/cli/factories/commandFactory.js +13 -13
- package/dist/cli/factories/ollamaCommandFactory.js +3 -3
- package/dist/cli/factories/sagemakerCommandFactory.js +5 -5
- package/dist/cli/index.js +1 -1
- package/dist/cli/loop/conversationSelector.d.ts +1 -1
- package/dist/cli/loop/conversationSelector.js +3 -3
- package/dist/cli/loop/optionsSchema.d.ts +1 -1
- package/dist/cli/loop/optionsSchema.js +1 -1
- package/dist/cli/loop/session.d.ts +1 -1
- package/dist/cli/loop/session.js +6 -6
- package/dist/cli/parser.js +10 -2
- package/dist/cli/proxy-clients/claudeCode.d.ts +1 -1
- package/dist/cli/proxy-clients/claudeCode.js +1 -1
- package/dist/cli/proxy-clients/codex.d.ts +1 -1
- package/dist/cli/proxy-clients/codex.js +1 -1
- package/dist/cli/proxy-clients/copilot.d.ts +1 -1
- package/dist/cli/proxy-clients/copilot.js +1 -1
- package/dist/cli/proxy-clients/openCode.d.ts +1 -1
- package/dist/cli/proxy-clients/openCode.js +1 -1
- package/dist/cli/proxy-clients/qwenCode.d.ts +1 -1
- package/dist/cli/proxy-clients/qwenCode.js +1 -1
- package/dist/cli/proxy-clients/registry.d.ts +1 -1
- package/dist/cli/proxy-clients/registry.js +1 -1
- package/dist/cli/utils/audioFileUtils.d.ts +1 -1
- package/dist/cli/utils/audioPlayer.d.ts +1 -1
- package/dist/cli/utils/classifierRouterFlags.d.ts +1 -1
- package/dist/cli/utils/classifierRouterFlags.js +1 -1
- package/dist/cli/utils/completeSetup.d.ts +1 -1
- package/dist/cli/utils/completeSetup.js +1 -1
- package/dist/cli/utils/envManager.d.ts +1 -1
- package/dist/cli/utils/envManager.js +1 -1
- package/dist/cli/utils/inputValidation.js +2 -2
- package/dist/cli/utils/interactiveSetup.d.ts +2 -2
- package/dist/cli/utils/interactiveSetup.js +3 -3
- package/dist/cli/utils/ollamaUtils.d.ts +1 -1
- package/dist/cli/utils/ollamaUtils.js +1 -1
- package/dist/cli/utils/skillsFlags.d.ts +1 -1
- package/dist/cli/utils/toolRoutingFlags.d.ts +1 -1
- package/dist/cli/utils/toolRoutingFlags.js +1 -1
- package/dist/cli/utils/videoFileUtils.d.ts +1 -1
- package/dist/processors/data/XmlProcessor.d.ts +14 -0
- package/dist/processors/data/XmlProcessor.js +14 -0
- package/dist/processors/document/PptxProcessor.d.ts +9 -0
- package/dist/processors/document/PptxProcessor.js +9 -0
- package/dist/processors/media/VideoProcessor.js +30 -2
- package/dist/providers/amazonBedrock/client.js +1 -2
- package/dist/providers/googleVertex/index.d.ts +0 -1
- package/dist/providers/googleVertex/index.js +0 -1
- package/dist/rag/document/loaders.js +49 -21
- package/dist/server/abstract/baseServerAdapter.d.ts +13 -0
- package/dist/server/abstract/baseServerAdapter.js +39 -1
- package/dist/server/adapters/expressAdapter.js +15 -5
- package/dist/server/adapters/fastifyAdapter.js +15 -5
- package/dist/server/adapters/koaAdapter.js +16 -6
- package/dist/types/generate.d.ts +7 -0
- package/dist/types/stream.d.ts +1 -1
- package/docs-site/mcp-server/search.js +20 -12
- package/docs-site/mcp-server/types.d.ts +12 -5
- package/docs-site/static/search-index.json +1 -0
- package/package.json +16 -16
- package/dist/lib/action/actionExecutor.d.ts +0 -29
- package/dist/lib/action/actionExecutor.js +0 -291
- package/dist/lib/action/actionInputs.d.ts +0 -25
- package/dist/lib/action/actionInputs.js +0 -294
- package/dist/lib/action/githubIntegration.d.ts +0 -21
- package/dist/lib/action/githubIntegration.js +0 -188
- package/dist/lib/action/index.d.ts +0 -7
- package/dist/lib/action/index.js +0 -13
- package/dist/lib/adapters/audioFormatSupport.d.ts +0 -53
- package/dist/lib/adapters/audioFormatSupport.js +0 -201
- package/dist/lib/adapters/imageFormatSupport.d.ts +0 -75
- package/dist/lib/adapters/imageFormatSupport.js +0 -284
- package/dist/lib/adapters/providerImageAdapter.d.ts +0 -51
- package/dist/lib/adapters/providerImageAdapter.js +0 -704
- package/dist/lib/adapters/replicate/auth.d.ts +0 -19
- package/dist/lib/adapters/replicate/auth.js +0 -33
- package/dist/lib/adapters/replicate/predictionLifecycle.d.ts +0 -46
- package/dist/lib/adapters/replicate/predictionLifecycle.js +0 -289
- package/dist/lib/adapters/tts/cartesiaHandler.d.ts +0 -12
- package/dist/lib/adapters/tts/cartesiaHandler.js +0 -131
- package/dist/lib/adapters/tts/googleTTSHandler.d.ts +0 -97
- package/dist/lib/adapters/tts/googleTTSHandler.js +0 -353
- package/dist/lib/adapters/video/directorPipeline.d.ts +0 -31
- package/dist/lib/adapters/video/directorPipeline.js +0 -523
- package/dist/lib/adapters/video/ffmpegAdapter.d.ts +0 -84
- package/dist/lib/adapters/video/ffmpegAdapter.js +0 -207
- package/dist/lib/adapters/video/frameExtractor.d.ts +0 -28
- package/dist/lib/adapters/video/frameExtractor.js +0 -144
- package/dist/lib/adapters/video/klingVideoHandler.d.ts +0 -37
- package/dist/lib/adapters/video/klingVideoHandler.js +0 -306
- package/dist/lib/adapters/video/replicateVideoHandler.d.ts +0 -29
- package/dist/lib/adapters/video/replicateVideoHandler.js +0 -168
- package/dist/lib/adapters/video/runwayVideoHandler.d.ts +0 -32
- package/dist/lib/adapters/video/runwayVideoHandler.js +0 -317
- package/dist/lib/adapters/video/vertexVideoHandler.d.ts +0 -119
- package/dist/lib/adapters/video/vertexVideoHandler.js +0 -804
- package/dist/lib/adapters/video/videoAnalyzer.d.ts +0 -26
- package/dist/lib/adapters/video/videoAnalyzer.js +0 -239
- package/dist/lib/adapters/video/videoMerger.d.ts +0 -22
- package/dist/lib/adapters/video/videoMerger.js +0 -172
- package/dist/lib/agent/agent.d.ts +0 -104
- package/dist/lib/agent/agent.js +0 -433
- package/dist/lib/agent/agentNetwork.d.ts +0 -87
- package/dist/lib/agent/agentNetwork.js +0 -501
- package/dist/lib/agent/agentToolRegistrar.d.ts +0 -48
- package/dist/lib/agent/agentToolRegistrar.js +0 -337
- package/dist/lib/agent/communication/index.d.ts +0 -9
- package/dist/lib/agent/communication/index.js +0 -10
- package/dist/lib/agent/communication/message-bus.d.ts +0 -113
- package/dist/lib/agent/communication/message-bus.js +0 -407
- package/dist/lib/agent/coordination/coordinator.d.ts +0 -83
- package/dist/lib/agent/coordination/coordinator.js +0 -599
- package/dist/lib/agent/coordination/index.d.ts +0 -10
- package/dist/lib/agent/coordination/index.js +0 -11
- package/dist/lib/agent/coordination/task-distributor.d.ts +0 -113
- package/dist/lib/agent/coordination/task-distributor.js +0 -586
- package/dist/lib/agent/directTools.d.ts +0 -306
- package/dist/lib/agent/directTools.js +0 -907
- package/dist/lib/agent/index.d.ts +0 -41
- package/dist/lib/agent/index.js +0 -49
- package/dist/lib/agent/isolatedAgentRunner.d.ts +0 -73
- package/dist/lib/agent/isolatedAgentRunner.js +0 -947
- package/dist/lib/agent/orchestration/index.d.ts +0 -10
- package/dist/lib/agent/orchestration/index.js +0 -11
- package/dist/lib/agent/orchestration/orchestrator.d.ts +0 -114
- package/dist/lib/agent/orchestration/orchestrator.js +0 -479
- package/dist/lib/agent/orchestration/topology.d.ts +0 -164
- package/dist/lib/agent/orchestration/topology.js +0 -521
- package/dist/lib/agent/prompts/routingPrompts.d.ts +0 -63
- package/dist/lib/agent/prompts/routingPrompts.js +0 -202
- package/dist/lib/agent/structuredRecovery.d.ts +0 -30
- package/dist/lib/agent/structuredRecovery.js +0 -105
- package/dist/lib/analytics/index.d.ts +0 -7
- package/dist/lib/analytics/index.js +0 -8
- package/dist/lib/analytics/parseQualityScore.d.ts +0 -9
- package/dist/lib/analytics/parseQualityScore.js +0 -30
- package/dist/lib/analytics/pricing.d.ts +0 -27
- package/dist/lib/analytics/pricing.js +0 -42
- package/dist/lib/analytics/service.d.ts +0 -36
- package/dist/lib/analytics/service.js +0 -394
- package/dist/lib/analytics/storage.d.ts +0 -19
- package/dist/lib/analytics/storage.js +0 -33
- package/dist/lib/artifacts/artifactStore.d.ts +0 -55
- package/dist/lib/artifacts/artifactStore.js +0 -145
- package/dist/lib/auth/AuthProviderFactory.d.ts +0 -69
- package/dist/lib/auth/AuthProviderFactory.js +0 -112
- package/dist/lib/auth/AuthProviderRegistry.d.ts +0 -33
- package/dist/lib/auth/AuthProviderRegistry.js +0 -191
- package/dist/lib/auth/RequestContext.d.ts +0 -23
- package/dist/lib/auth/RequestContext.js +0 -79
- package/dist/lib/auth/accountPool.d.ts +0 -68
- package/dist/lib/auth/accountPool.js +0 -179
- package/dist/lib/auth/anthropicOAuth.d.ts +0 -400
- package/dist/lib/auth/anthropicOAuth.js +0 -1143
- package/dist/lib/auth/authContext.d.ts +0 -198
- package/dist/lib/auth/authContext.js +0 -315
- package/dist/lib/auth/codexOAuth.d.ts +0 -67
- package/dist/lib/auth/codexOAuth.js +0 -203
- package/dist/lib/auth/errors.d.ts +0 -63
- package/dist/lib/auth/errors.js +0 -40
- package/dist/lib/auth/index.d.ts +0 -41
- package/dist/lib/auth/index.js +0 -86
- package/dist/lib/auth/middleware/AuthMiddleware.d.ts +0 -127
- package/dist/lib/auth/middleware/AuthMiddleware.js +0 -523
- package/dist/lib/auth/middleware/rateLimitByUser.d.ts +0 -193
- package/dist/lib/auth/middleware/rateLimitByUser.js +0 -559
- package/dist/lib/auth/providers/BaseAuthProvider.d.ts +0 -259
- package/dist/lib/auth/providers/BaseAuthProvider.js +0 -724
- package/dist/lib/auth/providers/CognitoProvider.d.ts +0 -61
- package/dist/lib/auth/providers/CognitoProvider.js +0 -308
- package/dist/lib/auth/providers/KeycloakProvider.d.ts +0 -61
- package/dist/lib/auth/providers/KeycloakProvider.js +0 -396
- package/dist/lib/auth/providers/auth0.d.ts +0 -59
- package/dist/lib/auth/providers/auth0.js +0 -275
- package/dist/lib/auth/providers/betterAuth.d.ts +0 -51
- package/dist/lib/auth/providers/betterAuth.js +0 -183
- package/dist/lib/auth/providers/clerk.d.ts +0 -65
- package/dist/lib/auth/providers/clerk.js +0 -318
- package/dist/lib/auth/providers/custom.d.ts +0 -64
- package/dist/lib/auth/providers/custom.js +0 -113
- package/dist/lib/auth/providers/firebase.d.ts +0 -63
- package/dist/lib/auth/providers/firebase.js +0 -231
- package/dist/lib/auth/providers/jwt.d.ts +0 -68
- package/dist/lib/auth/providers/jwt.js +0 -217
- package/dist/lib/auth/providers/oauth2.d.ts +0 -73
- package/dist/lib/auth/providers/oauth2.js +0 -304
- package/dist/lib/auth/providers/supabase.d.ts +0 -63
- package/dist/lib/auth/providers/supabase.js +0 -260
- package/dist/lib/auth/providers/workos.d.ts +0 -61
- package/dist/lib/auth/providers/workos.js +0 -289
- package/dist/lib/auth/serverBridge.d.ts +0 -14
- package/dist/lib/auth/serverBridge.js +0 -26
- package/dist/lib/auth/sessionManager.d.ts +0 -118
- package/dist/lib/auth/sessionManager.js +0 -511
- package/dist/lib/auth/tokenStore.d.ts +0 -283
- package/dist/lib/auth/tokenStore.js +0 -929
- package/dist/lib/autoresearch/config.d.ts +0 -11
- package/dist/lib/autoresearch/config.js +0 -109
- package/dist/lib/autoresearch/errors.d.ts +0 -40
- package/dist/lib/autoresearch/errors.js +0 -21
- package/dist/lib/autoresearch/index.d.ts +0 -23
- package/dist/lib/autoresearch/index.js +0 -35
- package/dist/lib/autoresearch/phasePolicy.d.ts +0 -9
- package/dist/lib/autoresearch/phasePolicy.js +0 -70
- package/dist/lib/autoresearch/promptCompiler.d.ts +0 -15
- package/dist/lib/autoresearch/promptCompiler.js +0 -121
- package/dist/lib/autoresearch/repoPolicy.d.ts +0 -32
- package/dist/lib/autoresearch/repoPolicy.js +0 -129
- package/dist/lib/autoresearch/resultRecorder.d.ts +0 -20
- package/dist/lib/autoresearch/resultRecorder.js +0 -131
- package/dist/lib/autoresearch/runner.d.ts +0 -10
- package/dist/lib/autoresearch/runner.js +0 -109
- package/dist/lib/autoresearch/stateStore.d.ts +0 -12
- package/dist/lib/autoresearch/stateStore.js +0 -164
- package/dist/lib/autoresearch/summaryParser.d.ts +0 -16
- package/dist/lib/autoresearch/summaryParser.js +0 -95
- package/dist/lib/autoresearch/tools.d.ts +0 -27
- package/dist/lib/autoresearch/tools.js +0 -618
- package/dist/lib/autoresearch/worker.d.ts +0 -71
- package/dist/lib/autoresearch/worker.js +0 -418
- package/dist/lib/avatar/index.d.ts +0 -26
- package/dist/lib/avatar/index.js +0 -86
- package/dist/lib/avatar/providers/DIDAvatar.d.ts +0 -49
- package/dist/lib/avatar/providers/DIDAvatar.js +0 -502
- package/dist/lib/avatar/providers/HeyGenAvatar.d.ts +0 -30
- package/dist/lib/avatar/providers/HeyGenAvatar.js +0 -338
- package/dist/lib/avatar/providers/ReplicateAvatar.d.ts +0 -36
- package/dist/lib/avatar/providers/ReplicateAvatar.js +0 -268
- package/dist/lib/client/aiSdkAdapter.d.ts +0 -196
- package/dist/lib/client/aiSdkAdapter.js +0 -498
- package/dist/lib/client/auth.d.ts +0 -248
- package/dist/lib/client/auth.js +0 -469
- package/dist/lib/client/errors.d.ts +0 -298
- package/dist/lib/client/errors.js +0 -553
- package/dist/lib/client/httpClient.d.ts +0 -296
- package/dist/lib/client/httpClient.js +0 -851
- package/dist/lib/client/index.d.ts +0 -103
- package/dist/lib/client/index.js +0 -174
- package/dist/lib/client/interceptors.d.ts +0 -207
- package/dist/lib/client/interceptors.js +0 -620
- package/dist/lib/client/reactHooks.d.ts +0 -238
- package/dist/lib/client/reactHooks.js +0 -1168
- package/dist/lib/client/sseClient.d.ts +0 -115
- package/dist/lib/client/sseClient.js +0 -575
- package/dist/lib/client/streamingClient.d.ts +0 -255
- package/dist/lib/client/streamingClient.js +0 -963
- package/dist/lib/client/wsClient.d.ts +0 -127
- package/dist/lib/client/wsClient.js +0 -450
- package/dist/lib/config/configManager.d.ts +0 -60
- package/dist/lib/config/configManager.js +0 -304
- package/dist/lib/config/conversationMemory.d.ts +0 -51
- package/dist/lib/config/conversationMemory.js +0 -87
- package/dist/lib/config/modelSpecificPrompts.d.ts +0 -9
- package/dist/lib/config/modelSpecificPrompts.js +0 -39
- package/dist/lib/config/taskClassificationConfig.d.ts +0 -51
- package/dist/lib/config/taskClassificationConfig.js +0 -149
- package/dist/lib/constants/contextWindows.d.ts +0 -89
- package/dist/lib/constants/contextWindows.js +0 -568
- package/dist/lib/constants/enums.d.ts +0 -979
- package/dist/lib/constants/enums.js +0 -1247
- package/dist/lib/constants/index.d.ts +0 -184
- package/dist/lib/constants/index.js +0 -209
- package/dist/lib/constants/networkErrorCodes.d.ts +0 -14
- package/dist/lib/constants/networkErrorCodes.js +0 -22
- package/dist/lib/constants/performance.d.ts +0 -366
- package/dist/lib/constants/performance.js +0 -390
- package/dist/lib/constants/retry.d.ts +0 -224
- package/dist/lib/constants/retry.js +0 -267
- package/dist/lib/constants/timeouts.d.ts +0 -225
- package/dist/lib/constants/timeouts.js +0 -183
- package/dist/lib/constants/tokens.d.ts +0 -294
- package/dist/lib/constants/tokens.js +0 -381
- package/dist/lib/constants/videoErrors.d.ts +0 -49
- package/dist/lib/constants/videoErrors.js +0 -51
- package/dist/lib/context/anthropicLoopGuard.d.ts +0 -47
- package/dist/lib/context/anthropicLoopGuard.js +0 -186
- package/dist/lib/context/budgetChecker.d.ts +0 -33
- package/dist/lib/context/budgetChecker.js +0 -132
- package/dist/lib/context/contextCompactor.d.ts +0 -19
- package/dist/lib/context/contextCompactor.js +0 -258
- package/dist/lib/context/effectiveHistory.d.ts +0 -52
- package/dist/lib/context/effectiveHistory.js +0 -106
- package/dist/lib/context/emergencyTruncation.d.ts +0 -21
- package/dist/lib/context/emergencyTruncation.js +0 -89
- package/dist/lib/context/errorDetection.d.ts +0 -36
- package/dist/lib/context/errorDetection.js +0 -190
- package/dist/lib/context/errors.d.ts +0 -19
- package/dist/lib/context/errors.js +0 -22
- package/dist/lib/context/fileSummarizationService.d.ts +0 -45
- package/dist/lib/context/fileSummarizationService.js +0 -256
- package/dist/lib/context/fileSummarizer.d.ts +0 -55
- package/dist/lib/context/fileSummarizer.js +0 -146
- package/dist/lib/context/fileTokenBudget.d.ts +0 -52
- package/dist/lib/context/fileTokenBudget.js +0 -128
- package/dist/lib/context/geminiLoopGuard.d.ts +0 -54
- package/dist/lib/context/geminiLoopGuard.js +0 -141
- package/dist/lib/context/loopGuardCore.d.ts +0 -43
- package/dist/lib/context/loopGuardCore.js +0 -146
- package/dist/lib/context/openaiCompatLoopGuard.d.ts +0 -42
- package/dist/lib/context/openaiCompatLoopGuard.js +0 -173
- package/dist/lib/context/prompts/summarizationPrompt.d.ts +0 -16
- package/dist/lib/context/prompts/summarizationPrompt.js +0 -118
- package/dist/lib/context/stages/fileReadDeduplicator.d.ts +0 -8
- package/dist/lib/context/stages/fileReadDeduplicator.js +0 -67
- package/dist/lib/context/stages/slidingWindowTruncator.d.ts +0 -15
- package/dist/lib/context/stages/slidingWindowTruncator.js +0 -237
- package/dist/lib/context/stages/structuredSummarizer.d.ts +0 -8
- package/dist/lib/context/stages/structuredSummarizer.js +0 -123
- package/dist/lib/context/stages/toolOutputPruner.d.ts +0 -8
- package/dist/lib/context/stages/toolOutputPruner.js +0 -53
- package/dist/lib/context/stepBudgetGuard.d.ts +0 -61
- package/dist/lib/context/stepBudgetGuard.js +0 -358
- package/dist/lib/context/summarizationEngine.d.ts +0 -45
- package/dist/lib/context/summarizationEngine.js +0 -162
- package/dist/lib/context/toolOutputLimits.d.ts +0 -36
- package/dist/lib/context/toolOutputLimits.js +0 -95
- package/dist/lib/context/toolPairRepair.d.ts +0 -43
- package/dist/lib/context/toolPairRepair.js +0 -242
- package/dist/lib/core/analytics.d.ts +0 -11
- package/dist/lib/core/analytics.js +0 -117
- package/dist/lib/core/baseProvider.d.ts +0 -500
- package/dist/lib/core/baseProvider.js +0 -2081
- package/dist/lib/core/constants.d.ts +0 -146
- package/dist/lib/core/constants.js +0 -278
- package/dist/lib/core/conversationMemoryFactory.d.ts +0 -19
- package/dist/lib/core/conversationMemoryFactory.js +0 -147
- package/dist/lib/core/conversationMemoryInitializer.d.ts +0 -14
- package/dist/lib/core/conversationMemoryInitializer.js +0 -129
- package/dist/lib/core/conversationMemoryManager.d.ts +0 -110
- package/dist/lib/core/conversationMemoryManager.js +0 -471
- package/dist/lib/core/dynamicModels.d.ts +0 -89
- package/dist/lib/core/dynamicModels.js +0 -337
- package/dist/lib/core/evaluation.d.ts +0 -18
- package/dist/lib/core/evaluation.js +0 -310
- package/dist/lib/core/evaluationProviders.d.ts +0 -60
- package/dist/lib/core/evaluationProviders.js +0 -249
- package/dist/lib/core/factory.d.ts +0 -54
- package/dist/lib/core/factory.js +0 -364
- package/dist/lib/core/geminiLoopAdapter.d.ts +0 -20
- package/dist/lib/core/geminiLoopAdapter.js +0 -171
- package/dist/lib/core/handlerRegistry.d.ts +0 -29
- package/dist/lib/core/handlerRegistry.js +0 -62
- package/dist/lib/core/infrastructure/baseError.d.ts +0 -21
- package/dist/lib/core/infrastructure/baseError.js +0 -23
- package/dist/lib/core/infrastructure/baseFactory.d.ts +0 -16
- package/dist/lib/core/infrastructure/baseFactory.js +0 -55
- package/dist/lib/core/infrastructure/baseRegistry.d.ts +0 -19
- package/dist/lib/core/infrastructure/baseRegistry.js +0 -54
- package/dist/lib/core/infrastructure/index.d.ts +0 -5
- package/dist/lib/core/infrastructure/index.js +0 -6
- package/dist/lib/core/infrastructure/retry.d.ts +0 -2
- package/dist/lib/core/infrastructure/retry.js +0 -21
- package/dist/lib/core/infrastructure/typedEventEmitter.d.ts +0 -8
- package/dist/lib/core/infrastructure/typedEventEmitter.js +0 -24
- package/dist/lib/core/loopEngine.d.ts +0 -21
- package/dist/lib/core/loopEngine.js +0 -272
- package/dist/lib/core/modelConfiguration.d.ts +0 -179
- package/dist/lib/core/modelConfiguration.js +0 -549
- package/dist/lib/core/modules/GenerationHandler.d.ts +0 -135
- package/dist/lib/core/modules/GenerationHandler.js +0 -1028
- package/dist/lib/core/modules/MessageBuilder.d.ts +0 -24
- package/dist/lib/core/modules/MessageBuilder.js +0 -311
- package/dist/lib/core/modules/StreamHandler.d.ts +0 -70
- package/dist/lib/core/modules/StreamHandler.js +0 -229
- package/dist/lib/core/modules/TelemetryHandler.d.ts +0 -70
- package/dist/lib/core/modules/TelemetryHandler.js +0 -229
- package/dist/lib/core/modules/ToolsManager.d.ts +0 -105
- package/dist/lib/core/modules/ToolsManager.js +0 -737
- package/dist/lib/core/modules/Utilities.d.ts +0 -90
- package/dist/lib/core/modules/Utilities.js +0 -347
- package/dist/lib/core/modules/structuredOutputPolicy.d.ts +0 -91
- package/dist/lib/core/modules/structuredOutputPolicy.js +0 -136
- package/dist/lib/core/nativeToolFormat.d.ts +0 -33
- package/dist/lib/core/nativeToolFormat.js +0 -31
- package/dist/lib/core/redisConversationMemoryManager.d.ts +0 -235
- package/dist/lib/core/redisConversationMemoryManager.js +0 -1724
- package/dist/lib/core/serviceRegistry.d.ts +0 -40
- package/dist/lib/core/serviceRegistry.js +0 -113
- package/dist/lib/core/streamAnalytics.d.ts +0 -27
- package/dist/lib/core/streamAnalytics.js +0 -132
- package/dist/lib/core/streamChannel.d.ts +0 -10
- package/dist/lib/core/streamChannel.js +0 -77
- package/dist/lib/core/toolDedup.d.ts +0 -51
- package/dist/lib/core/toolDedup.js +0 -197
- package/dist/lib/core/toolEvents.d.ts +0 -2
- package/dist/lib/core/toolEvents.js +0 -8
- package/dist/lib/core/toolExecutionRecorder.d.ts +0 -76
- package/dist/lib/core/toolExecutionRecorder.js +0 -261
- package/dist/lib/core/toolRouting.d.ts +0 -68
- package/dist/lib/core/toolRouting.js +0 -496
- package/dist/lib/core/toolRoutingCache.d.ts +0 -64
- package/dist/lib/core/toolRoutingCache.js +0 -155
- package/dist/lib/core/toolRoutingEmbedding.d.ts +0 -112
- package/dist/lib/core/toolRoutingEmbedding.js +0 -323
- package/dist/lib/dynamic/dynamicResolver.d.ts +0 -282
- package/dist/lib/dynamic/dynamicResolver.js +0 -634
- package/dist/lib/dynamic/index.d.ts +0 -10
- package/dist/lib/dynamic/index.js +0 -13
- package/dist/lib/dynamic/resolution.d.ts +0 -17
- package/dist/lib/dynamic/resolution.js +0 -22
- package/dist/lib/evaluation/BatchEvaluator.d.ts +0 -65
- package/dist/lib/evaluation/BatchEvaluator.js +0 -271
- package/dist/lib/evaluation/EvaluationAggregator.d.ts +0 -156
- package/dist/lib/evaluation/EvaluationAggregator.js +0 -378
- package/dist/lib/evaluation/EvaluatorFactory.d.ts +0 -102
- package/dist/lib/evaluation/EvaluatorFactory.js +0 -281
- package/dist/lib/evaluation/EvaluatorRegistry.d.ts +0 -111
- package/dist/lib/evaluation/EvaluatorRegistry.js +0 -185
- package/dist/lib/evaluation/contextBuilder.d.ts +0 -44
- package/dist/lib/evaluation/contextBuilder.js +0 -132
- package/dist/lib/evaluation/errors/EvaluationError.d.ts +0 -161
- package/dist/lib/evaluation/errors/EvaluationError.js +0 -207
- package/dist/lib/evaluation/errors/index.d.ts +0 -4
- package/dist/lib/evaluation/errors/index.js +0 -5
- package/dist/lib/evaluation/hooks/index.d.ts +0 -6
- package/dist/lib/evaluation/hooks/index.js +0 -7
- package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +0 -62
- package/dist/lib/evaluation/hooks/langfuseAdapter.js +0 -173
- package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +0 -77
- package/dist/lib/evaluation/hooks/observabilityHooks.js +0 -187
- package/dist/lib/evaluation/index.d.ts +0 -41
- package/dist/lib/evaluation/index.js +0 -78
- package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +0 -83
- package/dist/lib/evaluation/pipeline/evaluationPipeline.js +0 -397
- package/dist/lib/evaluation/pipeline/index.d.ts +0 -8
- package/dist/lib/evaluation/pipeline/index.js +0 -9
- package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +0 -126
- package/dist/lib/evaluation/pipeline/pipelineBuilder.js +0 -261
- package/dist/lib/evaluation/pipeline/presets.d.ts +0 -66
- package/dist/lib/evaluation/pipeline/presets.js +0 -225
- package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +0 -46
- package/dist/lib/evaluation/pipeline/strategies/batchStrategy.js +0 -242
- package/dist/lib/evaluation/pipeline/strategies/index.d.ts +0 -6
- package/dist/lib/evaluation/pipeline/strategies/index.js +0 -7
- package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +0 -76
- package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.js +0 -247
- package/dist/lib/evaluation/prompts.d.ts +0 -22
- package/dist/lib/evaluation/prompts.js +0 -74
- package/dist/lib/evaluation/ragasEvaluator.d.ts +0 -28
- package/dist/lib/evaluation/ragasEvaluator.js +0 -127
- package/dist/lib/evaluation/reporting/index.d.ts +0 -6
- package/dist/lib/evaluation/reporting/index.js +0 -7
- package/dist/lib/evaluation/reporting/metricsCollector.d.ts +0 -88
- package/dist/lib/evaluation/reporting/metricsCollector.js +0 -286
- package/dist/lib/evaluation/reporting/reportGenerator.d.ts +0 -57
- package/dist/lib/evaluation/reporting/reportGenerator.js +0 -375
- package/dist/lib/evaluation/retryManager.d.ts +0 -39
- package/dist/lib/evaluation/retryManager.js +0 -79
- package/dist/lib/evaluation/scorers/baseScorer.d.ts +0 -82
- package/dist/lib/evaluation/scorers/baseScorer.js +0 -233
- package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +0 -86
- package/dist/lib/evaluation/scorers/customScorerUtils.js +0 -382
- package/dist/lib/evaluation/scorers/index.d.ts +0 -10
- package/dist/lib/evaluation/scorers/index.js +0 -17
- package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.js +0 -100
- package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +0 -69
- package/dist/lib/evaluation/scorers/llm/baseLLMScorer.js +0 -282
- package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.js +0 -128
- package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.js +0 -93
- package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.js +0 -108
- package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.js +0 -122
- package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/hallucinationScorer.js +0 -141
- package/dist/lib/evaluation/scorers/llm/index.d.ts +0 -15
- package/dist/lib/evaluation/scorers/llm/index.js +0 -17
- package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.js +0 -107
- package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/summarizationScorer.js +0 -115
- package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.js +0 -107
- package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +0 -12
- package/dist/lib/evaluation/scorers/llm/toxicityScorer.js +0 -122
- package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +0 -77
- package/dist/lib/evaluation/scorers/rule/baseRuleScorer.js +0 -234
- package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +0 -81
- package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.js +0 -353
- package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +0 -107
- package/dist/lib/evaluation/scorers/rule/formatScorer.js +0 -471
- package/dist/lib/evaluation/scorers/rule/index.d.ts +0 -9
- package/dist/lib/evaluation/scorers/rule/index.js +0 -11
- package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +0 -66
- package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.js +0 -348
- package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +0 -74
- package/dist/lib/evaluation/scorers/rule/lengthScorer.js +0 -352
- package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +0 -160
- package/dist/lib/evaluation/scorers/scorerBuilder.js +0 -421
- package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +0 -65
- package/dist/lib/evaluation/scorers/scorerRegistry.js +0 -540
- package/dist/lib/evaluation/scoring.d.ts +0 -15
- package/dist/lib/evaluation/scoring.js +0 -61
- package/dist/lib/factories/providerDescriptors.d.ts +0 -18
- package/dist/lib/factories/providerDescriptors.js +0 -547
- package/dist/lib/factories/providerFactory.d.ts +0 -87
- package/dist/lib/factories/providerFactory.js +0 -199
- package/dist/lib/factories/providerRegistry.d.ts +0 -58
- package/dist/lib/factories/providerRegistry.js +0 -549
- package/dist/lib/features/ppt/constants.d.ts +0 -121
- package/dist/lib/features/ppt/constants.js +0 -897
- package/dist/lib/features/ppt/contentPlanner.d.ts +0 -47
- package/dist/lib/features/ppt/contentPlanner.js +0 -558
- package/dist/lib/features/ppt/index.d.ts +0 -11
- package/dist/lib/features/ppt/index.js +0 -33
- package/dist/lib/features/ppt/pptError.d.ts +0 -38
- package/dist/lib/features/ppt/pptError.js +0 -54
- package/dist/lib/features/ppt/presentationOrchestrator.d.ts +0 -37
- package/dist/lib/features/ppt/presentationOrchestrator.js +0 -231
- package/dist/lib/features/ppt/slideGenerator.d.ts +0 -56
- package/dist/lib/features/ppt/slideGenerator.js +0 -542
- package/dist/lib/features/ppt/slideRenderers.d.ts +0 -347
- package/dist/lib/features/ppt/slideRenderers.js +0 -2384
- package/dist/lib/features/ppt/slideTypeInference.d.ts +0 -91
- package/dist/lib/features/ppt/slideTypeInference.js +0 -406
- package/dist/lib/features/ppt/utils.d.ts +0 -103
- package/dist/lib/features/ppt/utils.js +0 -446
- package/dist/lib/files/fileReferenceRegistry.d.ts +0 -275
- package/dist/lib/files/fileReferenceRegistry.js +0 -1559
- package/dist/lib/files/fileTools.d.ts +0 -176
- package/dist/lib/files/fileTools.js +0 -435
- package/dist/lib/files/index.d.ts +0 -13
- package/dist/lib/files/index.js +0 -14
- package/dist/lib/files/streamingReader.d.ts +0 -93
- package/dist/lib/files/streamingReader.js +0 -322
- package/dist/lib/hitl/hitlErrors.d.ts +0 -38
- package/dist/lib/hitl/hitlErrors.js +0 -55
- package/dist/lib/hitl/hitlManager.d.ts +0 -100
- package/dist/lib/hitl/hitlManager.js +0 -461
- package/dist/lib/hitl/index.d.ts +0 -7
- package/dist/lib/hitl/index.js +0 -10
- package/dist/lib/image-gen/ImageGenService.d.ts +0 -146
- package/dist/lib/image-gen/ImageGenService.js +0 -349
- package/dist/lib/image-gen/imageGenTools.d.ts +0 -109
- package/dist/lib/image-gen/imageGenTools.js +0 -305
- package/dist/lib/image-gen/index.d.ts +0 -45
- package/dist/lib/image-gen/index.js +0 -49
- package/dist/lib/index.d.ts +0 -447
- package/dist/lib/index.js +0 -748
- package/dist/lib/knowledge/context.d.ts +0 -18
- package/dist/lib/knowledge/context.js +0 -92
- package/dist/lib/knowledge/defaults.d.ts +0 -24
- package/dist/lib/knowledge/defaults.js +0 -30
- package/dist/lib/knowledge/engine.d.ts +0 -35
- package/dist/lib/knowledge/engine.js +0 -180
- package/dist/lib/knowledge/index.d.ts +0 -15
- package/dist/lib/knowledge/index.js +0 -16
- package/dist/lib/knowledge/indexCache.d.ts +0 -19
- package/dist/lib/knowledge/indexCache.js +0 -110
- package/dist/lib/knowledge/knowledgeIndex.d.ts +0 -41
- package/dist/lib/knowledge/knowledgeIndex.js +0 -205
- package/dist/lib/knowledge/normalize.d.ts +0 -32
- package/dist/lib/knowledge/normalize.js +0 -75
- package/dist/lib/knowledge/resolve.d.ts +0 -18
- package/dist/lib/knowledge/resolve.js +0 -157
- package/dist/lib/knowledge/retrieval.d.ts +0 -16
- package/dist/lib/knowledge/retrieval.js +0 -222
- package/dist/lib/mcp/agentExposure.d.ts +0 -83
- package/dist/lib/mcp/agentExposure.js +0 -357
- package/dist/lib/mcp/auth/index.d.ts +0 -6
- package/dist/lib/mcp/auth/index.js +0 -12
- package/dist/lib/mcp/auth/oauthClientProvider.d.ts +0 -93
- package/dist/lib/mcp/auth/oauthClientProvider.js +0 -331
- package/dist/lib/mcp/auth/tokenStorage.d.ts +0 -56
- package/dist/lib/mcp/auth/tokenStorage.js +0 -135
- package/dist/lib/mcp/batching/index.d.ts +0 -1
- package/dist/lib/mcp/batching/index.js +0 -2
- package/dist/lib/mcp/batching/requestBatcher.d.ts +0 -130
- package/dist/lib/mcp/batching/requestBatcher.js +0 -468
- package/dist/lib/mcp/caching/index.d.ts +0 -1
- package/dist/lib/mcp/caching/index.js +0 -2
- package/dist/lib/mcp/caching/toolCache.d.ts +0 -154
- package/dist/lib/mcp/caching/toolCache.js +0 -434
- package/dist/lib/mcp/elicitation/elicitationManager.d.ts +0 -169
- package/dist/lib/mcp/elicitation/elicitationManager.js +0 -377
- package/dist/lib/mcp/elicitation/index.d.ts +0 -1
- package/dist/lib/mcp/elicitation/index.js +0 -3
- package/dist/lib/mcp/elicitationProtocol.d.ts +0 -139
- package/dist/lib/mcp/elicitationProtocol.js +0 -376
- package/dist/lib/mcp/enhancedToolDiscovery.d.ts +0 -125
- package/dist/lib/mcp/enhancedToolDiscovery.js +0 -482
- package/dist/lib/mcp/externalServerManager.d.ts +0 -189
- package/dist/lib/mcp/externalServerManager.js +0 -1525
- package/dist/lib/mcp/factory.d.ts +0 -60
- package/dist/lib/mcp/factory.js +0 -162
- package/dist/lib/mcp/flexibleToolValidator.d.ts +0 -46
- package/dist/lib/mcp/flexibleToolValidator.js +0 -162
- package/dist/lib/mcp/httpRateLimiter.d.ts +0 -152
- package/dist/lib/mcp/httpRateLimiter.js +0 -386
- package/dist/lib/mcp/httpRetryHandler.d.ts +0 -62
- package/dist/lib/mcp/httpRetryHandler.js +0 -180
- package/dist/lib/mcp/index.d.ts +0 -60
- package/dist/lib/mcp/index.js +0 -82
- package/dist/lib/mcp/mcpCircuitBreaker.d.ts +0 -123
- package/dist/lib/mcp/mcpCircuitBreaker.js +0 -428
- package/dist/lib/mcp/mcpClientFactory.d.ts +0 -109
- package/dist/lib/mcp/mcpClientFactory.js +0 -714
- package/dist/lib/mcp/mcpOutputNormalizer.d.ts +0 -47
- package/dist/lib/mcp/mcpOutputNormalizer.js +0 -183
- package/dist/lib/mcp/mcpRegistryClient.d.ts +0 -129
- package/dist/lib/mcp/mcpRegistryClient.js +0 -489
- package/dist/lib/mcp/mcpServerBase.d.ts +0 -162
- package/dist/lib/mcp/mcpServerBase.js +0 -377
- package/dist/lib/mcp/multiServerManager.d.ts +0 -182
- package/dist/lib/mcp/multiServerManager.js +0 -580
- package/dist/lib/mcp/registry.d.ts +0 -94
- package/dist/lib/mcp/registry.js +0 -159
- package/dist/lib/mcp/routing/index.d.ts +0 -1
- package/dist/lib/mcp/routing/index.js +0 -2
- package/dist/lib/mcp/routing/toolRouter.d.ts +0 -110
- package/dist/lib/mcp/routing/toolRouter.js +0 -417
- package/dist/lib/mcp/serverCapabilities.d.ts +0 -175
- package/dist/lib/mcp/serverCapabilities.js +0 -503
- package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +0 -8
- package/dist/lib/mcp/servers/agent/directToolsServer.js +0 -152
- package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.d.ts +0 -6
- package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.js +0 -364
- package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +0 -10
- package/dist/lib/mcp/servers/aiProviders/aiCoreServer.js +0 -232
- package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.d.ts +0 -5
- package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.js +0 -584
- package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +0 -8
- package/dist/lib/mcp/servers/utilities/utilityServer.js +0 -327
- package/dist/lib/mcp/toolAnnotations.d.ts +0 -57
- package/dist/lib/mcp/toolAnnotations.js +0 -240
- package/dist/lib/mcp/toolConverter.d.ts +0 -87
- package/dist/lib/mcp/toolConverter.js +0 -259
- package/dist/lib/mcp/toolDiscoveryService.d.ts +0 -144
- package/dist/lib/mcp/toolDiscoveryService.js +0 -978
- package/dist/lib/mcp/toolIntegration.d.ts +0 -92
- package/dist/lib/mcp/toolIntegration.js +0 -335
- package/dist/lib/mcp/toolRegistry.d.ts +0 -151
- package/dist/lib/mcp/toolRegistry.js +0 -755
- package/dist/lib/memory/hippocampusInitializer.d.ts +0 -2
- package/dist/lib/memory/hippocampusInitializer.js +0 -50
- package/dist/lib/memory/memoryRetrievalTools.d.ts +0 -13
- package/dist/lib/memory/memoryRetrievalTools.js +0 -267
- package/dist/lib/middleware/builtin/analytics.d.ts +0 -16
- package/dist/lib/middleware/builtin/analytics.js +0 -133
- package/dist/lib/middleware/builtin/autoEvaluation.d.ts +0 -11
- package/dist/lib/middleware/builtin/autoEvaluation.js +0 -201
- package/dist/lib/middleware/builtin/guardrails.d.ts +0 -7
- package/dist/lib/middleware/builtin/guardrails.js +0 -110
- package/dist/lib/middleware/builtin/lifecycle.d.ts +0 -2
- package/dist/lib/middleware/builtin/lifecycle.js +0 -161
- package/dist/lib/middleware/factory.d.ts +0 -69
- package/dist/lib/middleware/factory.js +0 -328
- package/dist/lib/middleware/index.d.ts +0 -11
- package/dist/lib/middleware/index.js +0 -17
- package/dist/lib/middleware/registry.d.ts +0 -76
- package/dist/lib/middleware/registry.js +0 -296
- package/dist/lib/middleware/utils/guardrailsUtils.d.ts +0 -50
- package/dist/lib/middleware/utils/guardrailsUtils.js +0 -397
- package/dist/lib/models/anthropicModels.d.ts +0 -261
- package/dist/lib/models/anthropicModels.js +0 -556
- package/dist/lib/models/manifestRegistry.d.ts +0 -33
- package/dist/lib/models/manifestRegistry.js +0 -174
- package/dist/lib/models/manifests/anthropic.d.ts +0 -9
- package/dist/lib/models/manifests/anthropic.js +0 -346
- package/dist/lib/models/manifests/azure.d.ts +0 -2
- package/dist/lib/models/manifests/azure.js +0 -87
- package/dist/lib/models/manifests/bedrock.d.ts +0 -2
- package/dist/lib/models/manifests/bedrock.js +0 -75
- package/dist/lib/models/manifests/cloudflare.d.ts +0 -8
- package/dist/lib/models/manifests/cloudflare.js +0 -19
- package/dist/lib/models/manifests/cohere.d.ts +0 -8
- package/dist/lib/models/manifests/cohere.js +0 -19
- package/dist/lib/models/manifests/deepseek.d.ts +0 -8
- package/dist/lib/models/manifests/deepseek.js +0 -19
- package/dist/lib/models/manifests/fireworks.d.ts +0 -8
- package/dist/lib/models/manifests/fireworks.js +0 -19
- package/dist/lib/models/manifests/google-ai.d.ts +0 -2
- package/dist/lib/models/manifests/google-ai.js +0 -28
- package/dist/lib/models/manifests/groq.d.ts +0 -8
- package/dist/lib/models/manifests/groq.js +0 -19
- package/dist/lib/models/manifests/huggingface.d.ts +0 -8
- package/dist/lib/models/manifests/huggingface.js +0 -19
- package/dist/lib/models/manifests/ideogram.d.ts +0 -8
- package/dist/lib/models/manifests/ideogram.js +0 -19
- package/dist/lib/models/manifests/jina.d.ts +0 -8
- package/dist/lib/models/manifests/jina.js +0 -19
- package/dist/lib/models/manifests/litellm.d.ts +0 -8
- package/dist/lib/models/manifests/litellm.js +0 -19
- package/dist/lib/models/manifests/llamacpp.d.ts +0 -8
- package/dist/lib/models/manifests/llamacpp.js +0 -19
- package/dist/lib/models/manifests/lm-studio.d.ts +0 -8
- package/dist/lib/models/manifests/lm-studio.js +0 -19
- package/dist/lib/models/manifests/mistral.d.ts +0 -2
- package/dist/lib/models/manifests/mistral.js +0 -50
- package/dist/lib/models/manifests/nvidia-nim.d.ts +0 -8
- package/dist/lib/models/manifests/nvidia-nim.js +0 -19
- package/dist/lib/models/manifests/ollama.d.ts +0 -2
- package/dist/lib/models/manifests/ollama.js +0 -72
- package/dist/lib/models/manifests/openai-compatible.d.ts +0 -8
- package/dist/lib/models/manifests/openai-compatible.js +0 -19
- package/dist/lib/models/manifests/openai.d.ts +0 -11
- package/dist/lib/models/manifests/openai.js +0 -560
- package/dist/lib/models/manifests/openrouter.d.ts +0 -8
- package/dist/lib/models/manifests/openrouter.js +0 -19
- package/dist/lib/models/manifests/perplexity.d.ts +0 -8
- package/dist/lib/models/manifests/perplexity.js +0 -19
- package/dist/lib/models/manifests/recraft.d.ts +0 -8
- package/dist/lib/models/manifests/recraft.js +0 -19
- package/dist/lib/models/manifests/replicate.d.ts +0 -8
- package/dist/lib/models/manifests/replicate.js +0 -19
- package/dist/lib/models/manifests/sagemaker.d.ts +0 -8
- package/dist/lib/models/manifests/sagemaker.js +0 -19
- package/dist/lib/models/manifests/stability.d.ts +0 -8
- package/dist/lib/models/manifests/stability.js +0 -19
- package/dist/lib/models/manifests/together-ai.d.ts +0 -8
- package/dist/lib/models/manifests/together-ai.js +0 -19
- package/dist/lib/models/manifests/vertex.d.ts +0 -8
- package/dist/lib/models/manifests/vertex.js +0 -19
- package/dist/lib/models/manifests/voyage.d.ts +0 -8
- package/dist/lib/models/manifests/voyage.js +0 -19
- package/dist/lib/models/manifests/xai.d.ts +0 -8
- package/dist/lib/models/manifests/xai.js +0 -19
- package/dist/lib/models/modelRegistry.d.ts +0 -74
- package/dist/lib/models/modelRegistry.js +0 -2695
- package/dist/lib/models/modelResolver.d.ts +0 -74
- package/dist/lib/models/modelResolver.js +0 -470
- package/dist/lib/music/index.d.ts +0 -27
- package/dist/lib/music/index.js +0 -94
- package/dist/lib/music/providers/BeatovenMusic.d.ts +0 -31
- package/dist/lib/music/providers/BeatovenMusic.js +0 -334
- package/dist/lib/music/providers/ElevenLabsMusic.d.ts +0 -30
- package/dist/lib/music/providers/ElevenLabsMusic.js +0 -169
- package/dist/lib/music/providers/LyriaMusic.d.ts +0 -29
- package/dist/lib/music/providers/LyriaMusic.js +0 -173
- package/dist/lib/music/providers/ReplicateMusic.d.ts +0 -31
- package/dist/lib/music/providers/ReplicateMusic.js +0 -262
- package/dist/lib/neurolink.d.ts +0 -2662
- package/dist/lib/neurolink.js +0 -12946
- package/dist/lib/observability/exporterRegistry.d.ts +0 -133
- package/dist/lib/observability/exporterRegistry.js +0 -414
- package/dist/lib/observability/exporters/arizeExporter.d.ts +0 -32
- package/dist/lib/observability/exporters/arizeExporter.js +0 -139
- package/dist/lib/observability/exporters/baseExporter.d.ts +0 -117
- package/dist/lib/observability/exporters/baseExporter.js +0 -191
- package/dist/lib/observability/exporters/braintrustExporter.d.ts +0 -30
- package/dist/lib/observability/exporters/braintrustExporter.js +0 -155
- package/dist/lib/observability/exporters/datadogExporter.d.ts +0 -37
- package/dist/lib/observability/exporters/datadogExporter.js +0 -197
- package/dist/lib/observability/exporters/index.d.ts +0 -13
- package/dist/lib/observability/exporters/index.js +0 -14
- package/dist/lib/observability/exporters/laminarExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/laminarExporter.js +0 -304
- package/dist/lib/observability/exporters/langfuseExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/langfuseExporter.js +0 -210
- package/dist/lib/observability/exporters/langsmithExporter.d.ts +0 -26
- package/dist/lib/observability/exporters/langsmithExporter.js +0 -144
- package/dist/lib/observability/exporters/otelExporter.d.ts +0 -39
- package/dist/lib/observability/exporters/otelExporter.js +0 -165
- package/dist/lib/observability/exporters/posthogExporter.d.ts +0 -48
- package/dist/lib/observability/exporters/posthogExporter.js +0 -289
- package/dist/lib/observability/exporters/sentryExporter.d.ts +0 -32
- package/dist/lib/observability/exporters/sentryExporter.js +0 -167
- package/dist/lib/observability/index.d.ts +0 -23
- package/dist/lib/observability/index.js +0 -32
- package/dist/lib/observability/metricsAggregator.d.ts +0 -126
- package/dist/lib/observability/metricsAggregator.js +0 -553
- package/dist/lib/observability/otelBridge.d.ts +0 -49
- package/dist/lib/observability/otelBridge.js +0 -141
- package/dist/lib/observability/retryPolicy.d.ts +0 -154
- package/dist/lib/observability/retryPolicy.js +0 -384
- package/dist/lib/observability/sampling/index.d.ts +0 -4
- package/dist/lib/observability/sampling/index.js +0 -5
- package/dist/lib/observability/sampling/samplers.d.ts +0 -104
- package/dist/lib/observability/sampling/samplers.js +0 -217
- package/dist/lib/observability/spanProcessor.d.ts +0 -115
- package/dist/lib/observability/spanProcessor.js +0 -304
- package/dist/lib/observability/tokenTracker.d.ts +0 -109
- package/dist/lib/observability/tokenTracker.js +0 -416
- package/dist/lib/observability/utils/index.d.ts +0 -4
- package/dist/lib/observability/utils/index.js +0 -5
- package/dist/lib/observability/utils/safeMetadata.d.ts +0 -10
- package/dist/lib/observability/utils/safeMetadata.js +0 -26
- package/dist/lib/observability/utils/spanSerializer.d.ts +0 -119
- package/dist/lib/observability/utils/spanSerializer.js +0 -314
- package/dist/lib/processors/archive/ArchiveProcessor.d.ts +0 -323
- package/dist/lib/processors/archive/ArchiveProcessor.js +0 -1662
- package/dist/lib/processors/archive/index.d.ts +0 -33
- package/dist/lib/processors/archive/index.js +0 -44
- package/dist/lib/processors/archive/zipEntryReader.d.ts +0 -51
- package/dist/lib/processors/archive/zipEntryReader.js +0 -81
- package/dist/lib/processors/base/BaseFileProcessor.d.ts +0 -309
- package/dist/lib/processors/base/BaseFileProcessor.js +0 -769
- package/dist/lib/processors/base/index.d.ts +0 -13
- package/dist/lib/processors/base/index.js +0 -23
- package/dist/lib/processors/cli/fileProcessorCli.d.ts +0 -124
- package/dist/lib/processors/cli/fileProcessorCli.js +0 -392
- package/dist/lib/processors/cli/index.d.ts +0 -36
- package/dist/lib/processors/cli/index.js +0 -53
- package/dist/lib/processors/code/ConfigProcessor.d.ts +0 -169
- package/dist/lib/processors/code/ConfigProcessor.js +0 -405
- package/dist/lib/processors/code/SourceCodeProcessor.d.ts +0 -172
- package/dist/lib/processors/code/SourceCodeProcessor.js +0 -309
- package/dist/lib/processors/code/index.d.ts +0 -44
- package/dist/lib/processors/code/index.js +0 -65
- package/dist/lib/processors/config/fileExtensions.d.ts +0 -280
- package/dist/lib/processors/config/fileExtensions.js +0 -485
- package/dist/lib/processors/config/fileTypeRegistry.d.ts +0 -106
- package/dist/lib/processors/config/fileTypeRegistry.js +0 -702
- package/dist/lib/processors/config/index.d.ts +0 -33
- package/dist/lib/processors/config/index.js +0 -104
- package/dist/lib/processors/config/languageMap.d.ts +0 -62
- package/dist/lib/processors/config/languageMap.js +0 -414
- package/dist/lib/processors/config/mimeConstants.d.ts +0 -373
- package/dist/lib/processors/config/mimeConstants.js +0 -348
- package/dist/lib/processors/config/sizeLimits.d.ts +0 -198
- package/dist/lib/processors/config/sizeLimits.js +0 -262
- package/dist/lib/processors/data/JsonProcessor.d.ts +0 -120
- package/dist/lib/processors/data/JsonProcessor.js +0 -206
- package/dist/lib/processors/data/XmlProcessor.d.ts +0 -158
- package/dist/lib/processors/data/XmlProcessor.js +0 -288
- package/dist/lib/processors/data/YamlProcessor.d.ts +0 -161
- package/dist/lib/processors/data/YamlProcessor.js +0 -297
- package/dist/lib/processors/data/index.d.ts +0 -49
- package/dist/lib/processors/data/index.js +0 -83
- package/dist/lib/processors/document/ExcelProcessor.d.ts +0 -250
- package/dist/lib/processors/document/ExcelProcessor.js +0 -615
- package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +0 -67
- package/dist/lib/processors/document/OpenDocumentProcessor.js +0 -236
- package/dist/lib/processors/document/PptxProcessor.d.ts +0 -77
- package/dist/lib/processors/document/PptxProcessor.js +0 -262
- package/dist/lib/processors/document/RtfProcessor.d.ts +0 -150
- package/dist/lib/processors/document/RtfProcessor.js +0 -364
- package/dist/lib/processors/document/WordProcessor.d.ts +0 -166
- package/dist/lib/processors/document/WordProcessor.js +0 -365
- package/dist/lib/processors/document/index.d.ts +0 -55
- package/dist/lib/processors/document/index.js +0 -100
- package/dist/lib/processors/errors/FileErrorCode.d.ts +0 -86
- package/dist/lib/processors/errors/FileErrorCode.js +0 -256
- package/dist/lib/processors/errors/errorHelpers.d.ts +0 -121
- package/dist/lib/processors/errors/errorHelpers.js +0 -387
- package/dist/lib/processors/errors/errorSerializer.d.ts +0 -96
- package/dist/lib/processors/errors/errorSerializer.js +0 -508
- package/dist/lib/processors/errors/index.d.ts +0 -46
- package/dist/lib/processors/errors/index.js +0 -50
- package/dist/lib/processors/index.d.ts +0 -79
- package/dist/lib/processors/index.js +0 -133
- package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +0 -176
- package/dist/lib/processors/integration/FileProcessorIntegration.js +0 -279
- package/dist/lib/processors/integration/index.d.ts +0 -41
- package/dist/lib/processors/integration/index.js +0 -48
- package/dist/lib/processors/markup/HtmlProcessor.d.ts +0 -167
- package/dist/lib/processors/markup/HtmlProcessor.js +0 -252
- package/dist/lib/processors/markup/MarkdownProcessor.d.ts +0 -163
- package/dist/lib/processors/markup/MarkdownProcessor.js +0 -249
- package/dist/lib/processors/markup/SvgProcessor.d.ts +0 -154
- package/dist/lib/processors/markup/SvgProcessor.js +0 -245
- package/dist/lib/processors/markup/TextProcessor.d.ts +0 -133
- package/dist/lib/processors/markup/TextProcessor.js +0 -191
- package/dist/lib/processors/markup/index.d.ts +0 -66
- package/dist/lib/processors/markup/index.js +0 -111
- package/dist/lib/processors/media/AudioProcessor.d.ts +0 -266
- package/dist/lib/processors/media/AudioProcessor.js +0 -712
- package/dist/lib/processors/media/VideoProcessor.d.ts +0 -337
- package/dist/lib/processors/media/VideoProcessor.js +0 -1154
- package/dist/lib/processors/media/index.d.ts +0 -26
- package/dist/lib/processors/media/index.js +0 -30
- package/dist/lib/processors/registry/ProcessorRegistry.d.ts +0 -347
- package/dist/lib/processors/registry/ProcessorRegistry.js +0 -715
- package/dist/lib/processors/registry/index.d.ts +0 -2
- package/dist/lib/processors/registry/index.js +0 -10
- package/dist/lib/providers/amazonBedrock/client.d.ts +0 -93
- package/dist/lib/providers/amazonBedrock/client.js +0 -1178
- package/dist/lib/providers/amazonBedrock/constants.d.ts +0 -1
- package/dist/lib/providers/amazonBedrock/constants.js +0 -3
- package/dist/lib/providers/amazonBedrock/index.d.ts +0 -3
- package/dist/lib/providers/amazonBedrock/index.js +0 -4
- package/dist/lib/providers/amazonBedrock/inferenceProfile.d.ts +0 -72
- package/dist/lib/providers/amazonBedrock/inferenceProfile.js +0 -186
- package/dist/lib/providers/amazonBedrock/loopAdapter.d.ts +0 -36
- package/dist/lib/providers/amazonBedrock/loopAdapter.js +0 -278
- package/dist/lib/providers/amazonBedrock/utils.d.ts +0 -1
- package/dist/lib/providers/amazonBedrock/utils.js +0 -4
- package/dist/lib/providers/amazonSagemaker.d.ts +0 -108
- package/dist/lib/providers/amazonSagemaker.js +0 -292
- package/dist/lib/providers/anthropic/cacheControl.d.ts +0 -12
- package/dist/lib/providers/anthropic/cacheControl.js +0 -15
- package/dist/lib/providers/anthropic/client.d.ts +0 -149
- package/dist/lib/providers/anthropic/client.js +0 -1862
- package/dist/lib/providers/anthropic/constants.d.ts +0 -3
- package/dist/lib/providers/anthropic/constants.js +0 -7
- package/dist/lib/providers/anthropic/index.d.ts +0 -2
- package/dist/lib/providers/anthropic/index.js +0 -3
- package/dist/lib/providers/anthropic/loopAdapter.d.ts +0 -26
- package/dist/lib/providers/anthropic/loopAdapter.js +0 -326
- package/dist/lib/providers/anthropic/rateLimitCapture.d.ts +0 -82
- package/dist/lib/providers/anthropic/rateLimitCapture.js +0 -375
- package/dist/lib/providers/anthropic/structuredOutput.d.ts +0 -58
- package/dist/lib/providers/anthropic/structuredOutput.js +0 -98
- package/dist/lib/providers/anthropic/toolOutput.d.ts +0 -9
- package/dist/lib/providers/anthropic/toolOutput.js +0 -39
- package/dist/lib/providers/anthropicImageBlocks.d.ts +0 -47
- package/dist/lib/providers/anthropicImageBlocks.js +0 -223
- package/dist/lib/providers/azureOpenai.d.ts +0 -67
- package/dist/lib/providers/azureOpenai.js +0 -230
- package/dist/lib/providers/cohere.d.ts +0 -54
- package/dist/lib/providers/cohere.js +0 -183
- package/dist/lib/providers/configuredOpenAICompat.d.ts +0 -24
- package/dist/lib/providers/configuredOpenAICompat.js +0 -67
- package/dist/lib/providers/deepseek.d.ts +0 -47
- package/dist/lib/providers/deepseek.js +0 -121
- package/dist/lib/providers/googleAiStudio/client.d.ts +0 -92
- package/dist/lib/providers/googleAiStudio/client.js +0 -1661
- package/dist/lib/providers/googleAiStudio/index.d.ts +0 -1
- package/dist/lib/providers/googleAiStudio/index.js +0 -2
- package/dist/lib/providers/googleNativeGemini3/index.d.ts +0 -1
- package/dist/lib/providers/googleNativeGemini3/index.js +0 -2
- package/dist/lib/providers/googleNativeGemini3/utils.d.ts +0 -482
- package/dist/lib/providers/googleNativeGemini3/utils.js +0 -1527
- package/dist/lib/providers/googleVertex/client.d.ts +0 -415
- package/dist/lib/providers/googleVertex/client.js +0 -7018
- package/dist/lib/providers/googleVertex/constants.d.ts +0 -5
- package/dist/lib/providers/googleVertex/constants.js +0 -27
- package/dist/lib/providers/googleVertex/index.d.ts +0 -3
- package/dist/lib/providers/googleVertex/index.js +0 -4
- package/dist/lib/providers/googleVertex/utils.d.ts +0 -12
- package/dist/lib/providers/googleVertex/utils.js +0 -287
- package/dist/lib/providers/huggingFace/client.d.ts +0 -31
- package/dist/lib/providers/huggingFace/client.js +0 -103
- package/dist/lib/providers/huggingFace/index.d.ts +0 -1
- package/dist/lib/providers/huggingFace/index.js +0 -2
- package/dist/lib/providers/ideogram.d.ts +0 -34
- package/dist/lib/providers/ideogram.js +0 -184
- package/dist/lib/providers/jina.d.ts +0 -58
- package/dist/lib/providers/jina.js +0 -217
- package/dist/lib/providers/litellm/client.d.ts +0 -84
- package/dist/lib/providers/litellm/client.js +0 -504
- package/dist/lib/providers/litellm/index.d.ts +0 -1
- package/dist/lib/providers/litellm/index.js +0 -2
- package/dist/lib/providers/llamaCpp.d.ts +0 -24
- package/dist/lib/providers/llamaCpp.js +0 -80
- package/dist/lib/providers/lmStudio.d.ts +0 -29
- package/dist/lib/providers/lmStudio.js +0 -88
- package/dist/lib/providers/nvidiaNim/client.d.ts +0 -60
- package/dist/lib/providers/nvidiaNim/client.js +0 -291
- package/dist/lib/providers/nvidiaNim/constants.d.ts +0 -1
- package/dist/lib/providers/nvidiaNim/constants.js +0 -2
- package/dist/lib/providers/nvidiaNim/index.d.ts +0 -2
- package/dist/lib/providers/nvidiaNim/index.js +0 -3
- package/dist/lib/providers/ollama/client.d.ts +0 -71
- package/dist/lib/providers/ollama/client.js +0 -283
- package/dist/lib/providers/ollama/constants.d.ts +0 -4
- package/dist/lib/providers/ollama/constants.js +0 -6
- package/dist/lib/providers/ollama/index.d.ts +0 -2
- package/dist/lib/providers/ollama/index.js +0 -3
- package/dist/lib/providers/openAI/client.d.ts +0 -76
- package/dist/lib/providers/openAI/client.js +0 -503
- package/dist/lib/providers/openAI/index.d.ts +0 -1
- package/dist/lib/providers/openAI/index.js +0 -2
- package/dist/lib/providers/openRouter/client.d.ts +0 -75
- package/dist/lib/providers/openRouter/client.js +0 -402
- package/dist/lib/providers/openRouter/constants.d.ts +0 -1
- package/dist/lib/providers/openRouter/constants.js +0 -2
- package/dist/lib/providers/openRouter/index.d.ts +0 -3
- package/dist/lib/providers/openRouter/index.js +0 -4
- package/dist/lib/providers/openRouter/utils.d.ts +0 -1
- package/dist/lib/providers/openRouter/utils.js +0 -6
- package/dist/lib/providers/openaiChatCompletionsBase.d.ts +0 -212
- package/dist/lib/providers/openaiChatCompletionsBase.js +0 -1154
- package/dist/lib/providers/openaiChatCompletionsClient.d.ts +0 -70
- package/dist/lib/providers/openaiChatCompletionsClient.js +0 -684
- package/dist/lib/providers/openaiCompatCatalog.d.ts +0 -24
- package/dist/lib/providers/openaiCompatCatalog.js +0 -270
- package/dist/lib/providers/openaiCompatible/client.d.ts +0 -21
- package/dist/lib/providers/openaiCompatible/client.js +0 -91
- package/dist/lib/providers/openaiCompatible/constants.d.ts +0 -1
- package/dist/lib/providers/openaiCompatible/constants.js +0 -2
- package/dist/lib/providers/openaiCompatible/index.d.ts +0 -3
- package/dist/lib/providers/openaiCompatible/index.js +0 -4
- package/dist/lib/providers/openaiCompatible/utils.d.ts +0 -5
- package/dist/lib/providers/openaiCompatible/utils.js +0 -17
- package/dist/lib/providers/providerTypeUtils.d.ts +0 -23
- package/dist/lib/providers/providerTypeUtils.js +0 -41
- package/dist/lib/providers/recraft.d.ts +0 -34
- package/dist/lib/providers/recraft.js +0 -197
- package/dist/lib/providers/replicate.d.ts +0 -74
- package/dist/lib/providers/replicate.js +0 -416
- package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +0 -74
- package/dist/lib/providers/sagemaker/adaptive-semaphore.js +0 -216
- package/dist/lib/providers/sagemaker/client.d.ts +0 -161
- package/dist/lib/providers/sagemaker/client.js +0 -509
- package/dist/lib/providers/sagemaker/config.d.ts +0 -87
- package/dist/lib/providers/sagemaker/config.js +0 -355
- package/dist/lib/providers/sagemaker/detection.d.ts +0 -121
- package/dist/lib/providers/sagemaker/detection.js +0 -607
- package/dist/lib/providers/sagemaker/diagnostics.d.ts +0 -14
- package/dist/lib/providers/sagemaker/diagnostics.js +0 -138
- package/dist/lib/providers/sagemaker/error-constants.d.ts +0 -78
- package/dist/lib/providers/sagemaker/error-constants.js +0 -228
- package/dist/lib/providers/sagemaker/errors.d.ts +0 -90
- package/dist/lib/providers/sagemaker/errors.js +0 -301
- package/dist/lib/providers/sagemaker/index.d.ts +0 -34
- package/dist/lib/providers/sagemaker/index.js +0 -69
- package/dist/lib/providers/sagemaker/language-model.d.ts +0 -207
- package/dist/lib/providers/sagemaker/language-model.js +0 -805
- package/dist/lib/providers/sagemaker/parsers.d.ts +0 -111
- package/dist/lib/providers/sagemaker/parsers.js +0 -644
- package/dist/lib/providers/sagemaker/streaming.d.ts +0 -48
- package/dist/lib/providers/sagemaker/streaming.js +0 -390
- package/dist/lib/providers/sagemaker/structured-parser.d.ts +0 -117
- package/dist/lib/providers/sagemaker/structured-parser.js +0 -626
- package/dist/lib/providers/stability.d.ts +0 -37
- package/dist/lib/providers/stability.js +0 -191
- package/dist/lib/providers/voyage.d.ts +0 -46
- package/dist/lib/providers/voyage.js +0 -176
- package/dist/lib/proxy/accountCooldown.d.ts +0 -5
- package/dist/lib/proxy/accountCooldown.js +0 -121
- package/dist/lib/proxy/accountQuota.d.ts +0 -84
- package/dist/lib/proxy/accountQuota.js +0 -459
- package/dist/lib/proxy/accountQuotaRefreshCoordinator.d.ts +0 -19
- package/dist/lib/proxy/accountQuotaRefreshCoordinator.js +0 -105
- package/dist/lib/proxy/accountSelection.d.ts +0 -8
- package/dist/lib/proxy/accountSelection.js +0 -26
- package/dist/lib/proxy/accountUsage.d.ts +0 -45
- package/dist/lib/proxy/accountUsage.js +0 -302
- package/dist/lib/proxy/awsProxyIntegration.d.ts +0 -23
- package/dist/lib/proxy/awsProxyIntegration.js +0 -286
- package/dist/lib/proxy/claudeFormat.d.ts +0 -129
- package/dist/lib/proxy/claudeFormat.js +0 -600
- package/dist/lib/proxy/cloaking/index.d.ts +0 -43
- package/dist/lib/proxy/cloaking/index.js +0 -88
- package/dist/lib/proxy/cloaking/plugins/headerScrubber.d.ts +0 -9
- package/dist/lib/proxy/cloaking/plugins/headerScrubber.js +0 -87
- package/dist/lib/proxy/cloaking/plugins/sessionIdentity.d.ts +0 -11
- package/dist/lib/proxy/cloaking/plugins/sessionIdentity.js +0 -42
- package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.d.ts +0 -11
- package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.js +0 -84
- package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.d.ts +0 -14
- package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.js +0 -39
- package/dist/lib/proxy/cloaking/plugins/wordObfuscator.d.ts +0 -9
- package/dist/lib/proxy/cloaking/plugins/wordObfuscator.js +0 -122
- package/dist/lib/proxy/codexAccountUsage.d.ts +0 -26
- package/dist/lib/proxy/codexAccountUsage.js +0 -174
- package/dist/lib/proxy/codexUsage.d.ts +0 -68
- package/dist/lib/proxy/codexUsage.js +0 -247
- package/dist/lib/proxy/globalInstaller.d.ts +0 -19
- package/dist/lib/proxy/globalInstaller.js +0 -242
- package/dist/lib/proxy/logCleanupScheduler.d.ts +0 -12
- package/dist/lib/proxy/logCleanupScheduler.js +0 -74
- package/dist/lib/proxy/logCleanupWorkerEntry.d.ts +0 -1
- package/dist/lib/proxy/logCleanupWorkerEntry.js +0 -15
- package/dist/lib/proxy/modelRouter.d.ts +0 -34
- package/dist/lib/proxy/modelRouter.js +0 -74
- package/dist/lib/proxy/oauthFetch.d.ts +0 -36
- package/dist/lib/proxy/oauthFetch.js +0 -353
- package/dist/lib/proxy/openaiFormat.d.ts +0 -139
- package/dist/lib/proxy/openaiFormat.js +0 -817
- package/dist/lib/proxy/providerTransportCoordinator.d.ts +0 -17
- package/dist/lib/proxy/providerTransportCoordinator.js +0 -156
- package/dist/lib/proxy/proxyActivity.d.ts +0 -8
- package/dist/lib/proxy/proxyActivity.js +0 -117
- package/dist/lib/proxy/proxyAnalysis.d.ts +0 -3
- package/dist/lib/proxy/proxyAnalysis.js +0 -985
- package/dist/lib/proxy/proxyConfig.d.ts +0 -42
- package/dist/lib/proxy/proxyConfig.js +0 -700
- package/dist/lib/proxy/proxyDispatcher.d.ts +0 -5
- package/dist/lib/proxy/proxyDispatcher.js +0 -61
- package/dist/lib/proxy/proxyEnv.d.ts +0 -3
- package/dist/lib/proxy/proxyEnv.js +0 -73
- package/dist/lib/proxy/proxyFetch.d.ts +0 -50
- package/dist/lib/proxy/proxyFetch.js +0 -729
- package/dist/lib/proxy/proxyHealth.d.ts +0 -20
- package/dist/lib/proxy/proxyHealth.js +0 -76
- package/dist/lib/proxy/proxyLifecycle.d.ts +0 -13
- package/dist/lib/proxy/proxyLifecycle.js +0 -383
- package/dist/lib/proxy/proxyPaths.d.ts +0 -17
- package/dist/lib/proxy/proxyPaths.js +0 -42
- package/dist/lib/proxy/proxyReplay.d.ts +0 -10
- package/dist/lib/proxy/proxyReplay.js +0 -765
- package/dist/lib/proxy/proxyTracer.d.ts +0 -128
- package/dist/lib/proxy/proxyTracer.js +0 -748
- package/dist/lib/proxy/proxyTranslationEngine.d.ts +0 -125
- package/dist/lib/proxy/proxyTranslationEngine.js +0 -740
- package/dist/lib/proxy/quietDetector.d.ts +0 -17
- package/dist/lib/proxy/quietDetector.js +0 -125
- package/dist/lib/proxy/quotaHeaders.d.ts +0 -73
- package/dist/lib/proxy/quotaHeaders.js +0 -189
- package/dist/lib/proxy/rawStreamCapture.d.ts +0 -2
- package/dist/lib/proxy/rawStreamCapture.js +0 -129
- package/dist/lib/proxy/requestLogger.d.ts +0 -78
- package/dist/lib/proxy/requestLogger.js +0 -770
- package/dist/lib/proxy/rollingProxyServer.d.ts +0 -3
- package/dist/lib/proxy/rollingProxyServer.js +0 -220
- package/dist/lib/proxy/rollingWorkerProcess.d.ts +0 -2
- package/dist/lib/proxy/rollingWorkerProcess.js +0 -199
- package/dist/lib/proxy/rollingWorkerProtocol.d.ts +0 -5
- package/dist/lib/proxy/rollingWorkerProtocol.js +0 -46
- package/dist/lib/proxy/rollingWorkerSupervisor.d.ts +0 -44
- package/dist/lib/proxy/rollingWorkerSupervisor.js +0 -530
- package/dist/lib/proxy/routingEvidence.d.ts +0 -17
- package/dist/lib/proxy/routingEvidence.js +0 -59
- package/dist/lib/proxy/routingPolicy.d.ts +0 -19
- package/dist/lib/proxy/routingPolicy.js +0 -75
- package/dist/lib/proxy/runtimeConfig.d.ts +0 -27
- package/dist/lib/proxy/runtimeConfig.js +0 -448
- package/dist/lib/proxy/snapshotPersistence.d.ts +0 -2
- package/dist/lib/proxy/snapshotPersistence.js +0 -41
- package/dist/lib/proxy/socketWorkerRuntime.d.ts +0 -14
- package/dist/lib/proxy/socketWorkerRuntime.js +0 -322
- package/dist/lib/proxy/sseInterceptor.d.ts +0 -41
- package/dist/lib/proxy/sseInterceptor.js +0 -496
- package/dist/lib/proxy/streamOutcome.d.ts +0 -5
- package/dist/lib/proxy/streamOutcome.js +0 -104
- package/dist/lib/proxy/systemRelocation.d.ts +0 -21
- package/dist/lib/proxy/systemRelocation.js +0 -51
- package/dist/lib/proxy/tokenRefresh.d.ts +0 -18
- package/dist/lib/proxy/tokenRefresh.js +0 -257
- package/dist/lib/proxy/updateChecker.d.ts +0 -17
- package/dist/lib/proxy/updateChecker.js +0 -98
- package/dist/lib/proxy/updateCoordinator.d.ts +0 -7
- package/dist/lib/proxy/updateCoordinator.js +0 -60
- package/dist/lib/proxy/updateState.d.ts +0 -69
- package/dist/lib/proxy/updateState.js +0 -309
- package/dist/lib/proxy/updaterSupervisor.d.ts +0 -3
- package/dist/lib/proxy/updaterSupervisor.js +0 -58
- package/dist/lib/proxy/usageStats.d.ts +0 -91
- package/dist/lib/proxy/usageStats.js +0 -1154
- package/dist/lib/proxy/utils/noProxyUtils.d.ts +0 -39
- package/dist/lib/proxy/utils/noProxyUtils.js +0 -150
- package/dist/lib/proxy/workerLog.d.ts +0 -6
- package/dist/lib/proxy/workerLog.js +0 -42
- package/dist/lib/rag/ChunkerFactory.d.ts +0 -91
- package/dist/lib/rag/ChunkerFactory.js +0 -321
- package/dist/lib/rag/ChunkerRegistry.d.ts +0 -91
- package/dist/lib/rag/ChunkerRegistry.js +0 -422
- package/dist/lib/rag/chunkers/BaseChunker.d.ts +0 -53
- package/dist/lib/rag/chunkers/BaseChunker.js +0 -158
- package/dist/lib/rag/chunkers/CharacterChunker.d.ts +0 -18
- package/dist/lib/rag/chunkers/CharacterChunker.js +0 -29
- package/dist/lib/rag/chunkers/HTMLChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/HTMLChunker.js +0 -39
- package/dist/lib/rag/chunkers/JSONChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/JSONChunker.js +0 -69
- package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +0 -15
- package/dist/lib/rag/chunkers/LaTeXChunker.js +0 -64
- package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +0 -37
- package/dist/lib/rag/chunkers/MarkdownChunker.js +0 -315
- package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +0 -27
- package/dist/lib/rag/chunkers/RecursiveChunker.js +0 -140
- package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +0 -22
- package/dist/lib/rag/chunkers/SemanticMarkdownChunker.js +0 -139
- package/dist/lib/rag/chunkers/SentenceChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/SentenceChunker.js +0 -67
- package/dist/lib/rag/chunkers/TokenChunker.d.ts +0 -19
- package/dist/lib/rag/chunkers/TokenChunker.js +0 -62
- package/dist/lib/rag/chunkers/index.d.ts +0 -15
- package/dist/lib/rag/chunkers/index.js +0 -16
- package/dist/lib/rag/chunking/characterChunker.d.ts +0 -16
- package/dist/lib/rag/chunking/characterChunker.js +0 -143
- package/dist/lib/rag/chunking/chunkerRegistry.d.ts +0 -67
- package/dist/lib/rag/chunking/chunkerRegistry.js +0 -195
- package/dist/lib/rag/chunking/htmlChunker.d.ts +0 -34
- package/dist/lib/rag/chunking/htmlChunker.js +0 -248
- package/dist/lib/rag/chunking/index.d.ts +0 -15
- package/dist/lib/rag/chunking/index.js +0 -18
- package/dist/lib/rag/chunking/jsonChunker.d.ts +0 -20
- package/dist/lib/rag/chunking/jsonChunker.js +0 -282
- package/dist/lib/rag/chunking/latexChunker.d.ts +0 -26
- package/dist/lib/rag/chunking/latexChunker.js +0 -252
- package/dist/lib/rag/chunking/markdownChunker.d.ts +0 -35
- package/dist/lib/rag/chunking/markdownChunker.js +0 -383
- package/dist/lib/rag/chunking/recursiveChunker.d.ts +0 -19
- package/dist/lib/rag/chunking/recursiveChunker.js +0 -149
- package/dist/lib/rag/chunking/semanticChunker.d.ts +0 -41
- package/dist/lib/rag/chunking/semanticChunker.js +0 -306
- package/dist/lib/rag/chunking/sentenceChunker.d.ts +0 -25
- package/dist/lib/rag/chunking/sentenceChunker.js +0 -231
- package/dist/lib/rag/chunking/tokenChunker.d.ts +0 -36
- package/dist/lib/rag/chunking/tokenChunker.js +0 -184
- package/dist/lib/rag/document/MDocument.d.ts +0 -198
- package/dist/lib/rag/document/MDocument.js +0 -392
- package/dist/lib/rag/document/index.d.ts +0 -5
- package/dist/lib/rag/document/index.js +0 -6
- package/dist/lib/rag/document/loaders.d.ts +0 -142
- package/dist/lib/rag/document/loaders.js +0 -544
- package/dist/lib/rag/errors/RAGError.d.ts +0 -244
- package/dist/lib/rag/errors/RAGError.js +0 -275
- package/dist/lib/rag/errors/index.d.ts +0 -6
- package/dist/lib/rag/errors/index.js +0 -7
- package/dist/lib/rag/graphRag/graphRAG.d.ts +0 -115
- package/dist/lib/rag/graphRag/graphRAG.js +0 -402
- package/dist/lib/rag/graphRag/index.d.ts +0 -4
- package/dist/lib/rag/graphRag/index.js +0 -5
- package/dist/lib/rag/index.d.ts +0 -104
- package/dist/lib/rag/index.js +0 -144
- package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +0 -103
- package/dist/lib/rag/metadata/MetadataExtractorFactory.js +0 -419
- package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +0 -99
- package/dist/lib/rag/metadata/MetadataExtractorRegistry.js +0 -363
- package/dist/lib/rag/metadata/index.d.ts +0 -6
- package/dist/lib/rag/metadata/index.js +0 -10
- package/dist/lib/rag/metadata/metadataExtractor.d.ts +0 -69
- package/dist/lib/rag/metadata/metadataExtractor.js +0 -281
- package/dist/lib/rag/pipeline/RAGPipeline.d.ts +0 -105
- package/dist/lib/rag/pipeline/RAGPipeline.js +0 -436
- package/dist/lib/rag/pipeline/contextAssembly.d.ts +0 -80
- package/dist/lib/rag/pipeline/contextAssembly.js +0 -342
- package/dist/lib/rag/pipeline/index.d.ts +0 -5
- package/dist/lib/rag/pipeline/index.js +0 -6
- package/dist/lib/rag/ragIntegration.d.ts +0 -30
- package/dist/lib/rag/ragIntegration.js +0 -327
- package/dist/lib/rag/reranker/RerankerFactory.d.ts +0 -124
- package/dist/lib/rag/reranker/RerankerFactory.js +0 -431
- package/dist/lib/rag/reranker/RerankerRegistry.d.ts +0 -119
- package/dist/lib/rag/reranker/RerankerRegistry.js +0 -403
- package/dist/lib/rag/reranker/index.d.ts +0 -6
- package/dist/lib/rag/reranker/index.js +0 -10
- package/dist/lib/rag/reranker/reranker.d.ts +0 -70
- package/dist/lib/rag/reranker/reranker.js +0 -307
- package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -142
- package/dist/lib/rag/resilience/CircuitBreaker.js +0 -432
- package/dist/lib/rag/resilience/RetryHandler.d.ts +0 -95
- package/dist/lib/rag/resilience/RetryHandler.js +0 -305
- package/dist/lib/rag/resilience/index.d.ts +0 -7
- package/dist/lib/rag/resilience/index.js +0 -8
- package/dist/lib/rag/retrieval/hybridSearch.d.ts +0 -53
- package/dist/lib/rag/retrieval/hybridSearch.js +0 -339
- package/dist/lib/rag/retrieval/index.d.ts +0 -5
- package/dist/lib/rag/retrieval/index.js +0 -6
- package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +0 -72
- package/dist/lib/rag/retrieval/vectorQueryTool.js +0 -325
- package/dist/lib/rag/stores/chroma.d.ts +0 -90
- package/dist/lib/rag/stores/chroma.js +0 -281
- package/dist/lib/rag/stores/index.d.ts +0 -21
- package/dist/lib/rag/stores/index.js +0 -22
- package/dist/lib/rag/stores/pgvector.d.ts +0 -95
- package/dist/lib/rag/stores/pgvector.js +0 -400
- package/dist/lib/rag/stores/pinecone.d.ts +0 -85
- package/dist/lib/rag/stores/pinecone.js +0 -159
- package/dist/lib/routing/classifierRouter.d.ts +0 -52
- package/dist/lib/routing/classifierRouter.js +0 -269
- package/dist/lib/routing/classifierStrategies.d.ts +0 -23
- package/dist/lib/routing/classifierStrategies.js +0 -156
- package/dist/lib/routing/index.d.ts +0 -9
- package/dist/lib/routing/index.js +0 -10
- package/dist/lib/routing/modelPool.d.ts +0 -83
- package/dist/lib/routing/modelPool.js +0 -243
- package/dist/lib/routing/requestRouter.d.ts +0 -30
- package/dist/lib/routing/requestRouter.js +0 -81
- package/dist/lib/sdk/toolRegistration.d.ts +0 -74
- package/dist/lib/sdk/toolRegistration.js +0 -383
- package/dist/lib/server/abstract/baseServerAdapter.d.ts +0 -171
- package/dist/lib/server/abstract/baseServerAdapter.js +0 -575
- package/dist/lib/server/adapters/expressAdapter.d.ts +0 -70
- package/dist/lib/server/adapters/expressAdapter.js +0 -487
- package/dist/lib/server/adapters/fastifyAdapter.d.ts +0 -70
- package/dist/lib/server/adapters/fastifyAdapter.js +0 -473
- package/dist/lib/server/adapters/honoAdapter.d.ts +0 -77
- package/dist/lib/server/adapters/honoAdapter.js +0 -633
- package/dist/lib/server/adapters/index.d.ts +0 -7
- package/dist/lib/server/adapters/index.js +0 -8
- package/dist/lib/server/adapters/koaAdapter.d.ts +0 -79
- package/dist/lib/server/adapters/koaAdapter.js +0 -511
- package/dist/lib/server/errors.d.ts +0 -193
- package/dist/lib/server/errors.js +0 -487
- package/dist/lib/server/factory/serverAdapterFactory.d.ts +0 -73
- package/dist/lib/server/factory/serverAdapterFactory.js +0 -161
- package/dist/lib/server/index.d.ts +0 -46
- package/dist/lib/server/index.js +0 -122
- package/dist/lib/server/middleware/abortSignal.d.ts +0 -52
- package/dist/lib/server/middleware/abortSignal.js +0 -112
- package/dist/lib/server/middleware/auth.d.ts +0 -166
- package/dist/lib/server/middleware/auth.js +0 -404
- package/dist/lib/server/middleware/cache.d.ts +0 -161
- package/dist/lib/server/middleware/cache.js +0 -370
- package/dist/lib/server/middleware/common.d.ts +0 -108
- package/dist/lib/server/middleware/common.js +0 -297
- package/dist/lib/server/middleware/deprecation.d.ts +0 -40
- package/dist/lib/server/middleware/deprecation.js +0 -191
- package/dist/lib/server/middleware/index.d.ts +0 -12
- package/dist/lib/server/middleware/index.js +0 -13
- package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +0 -42
- package/dist/lib/server/middleware/mcpBodyAttachment.js +0 -64
- package/dist/lib/server/middleware/rateLimit.d.ts +0 -70
- package/dist/lib/server/middleware/rateLimit.js +0 -224
- package/dist/lib/server/middleware/validation.d.ts +0 -69
- package/dist/lib/server/middleware/validation.js +0 -393
- package/dist/lib/server/openapi/generator.d.ts +0 -61
- package/dist/lib/server/openapi/generator.js +0 -399
- package/dist/lib/server/openapi/index.d.ts +0 -7
- package/dist/lib/server/openapi/index.js +0 -37
- package/dist/lib/server/openapi/schemas.d.ts +0 -94
- package/dist/lib/server/openapi/schemas.js +0 -696
- package/dist/lib/server/openapi/templates.d.ts +0 -108
- package/dist/lib/server/openapi/templates.js +0 -375
- package/dist/lib/server/routes/agentRoutes.d.ts +0 -9
- package/dist/lib/server/routes/agentRoutes.js +0 -423
- package/dist/lib/server/routes/claudeProxyRoutes.d.ts +0 -491
- package/dist/lib/server/routes/claudeProxyRoutes.js +0 -6455
- package/dist/lib/server/routes/codexProxyRoutes.d.ts +0 -64
- package/dist/lib/server/routes/codexProxyRoutes.js +0 -482
- package/dist/lib/server/routes/healthRoutes.d.ts +0 -9
- package/dist/lib/server/routes/healthRoutes.js +0 -234
- package/dist/lib/server/routes/index.d.ts +0 -25
- package/dist/lib/server/routes/index.js +0 -66
- package/dist/lib/server/routes/mcpRoutes.d.ts +0 -9
- package/dist/lib/server/routes/mcpRoutes.js +0 -376
- package/dist/lib/server/routes/memoryRoutes.d.ts +0 -11
- package/dist/lib/server/routes/memoryRoutes.js +0 -366
- package/dist/lib/server/routes/openApiRoutes.d.ts +0 -34
- package/dist/lib/server/routes/openApiRoutes.js +0 -151
- package/dist/lib/server/routes/openaiProxyRoutes.d.ts +0 -38
- package/dist/lib/server/routes/openaiProxyRoutes.js +0 -404
- package/dist/lib/server/routes/toolRoutes.d.ts +0 -9
- package/dist/lib/server/routes/toolRoutes.js +0 -272
- package/dist/lib/server/streaming/dataStream.d.ts +0 -212
- package/dist/lib/server/streaming/dataStream.js +0 -502
- package/dist/lib/server/streaming/index.d.ts +0 -5
- package/dist/lib/server/streaming/index.js +0 -17
- package/dist/lib/server/utils/redaction.d.ts +0 -68
- package/dist/lib/server/utils/redaction.js +0 -321
- package/dist/lib/server/utils/validation.d.ts +0 -153
- package/dist/lib/server/utils/validation.js +0 -265
- package/dist/lib/server/voice/frameBus.d.ts +0 -8
- package/dist/lib/server/voice/frameBus.js +0 -25
- package/dist/lib/server/voice/tokenCompare.d.ts +0 -14
- package/dist/lib/server/voice/tokenCompare.js +0 -23
- package/dist/lib/server/voice/turnManager.d.ts +0 -15
- package/dist/lib/server/voice/turnManager.js +0 -36
- package/dist/lib/server/voice/voiceServerApp.d.ts +0 -1
- package/dist/lib/server/voice/voiceServerApp.js +0 -177
- package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -24
- package/dist/lib/server/voice/voiceWebSocketHandler.js +0 -669
- package/dist/lib/server/websocket/WebSocketHandler.d.ts +0 -107
- package/dist/lib/server/websocket/WebSocketHandler.js +0 -384
- package/dist/lib/server/websocket/index.d.ts +0 -4
- package/dist/lib/server/websocket/index.js +0 -5
- package/dist/lib/services/server/ai/observability/instrumentation.d.ts +0 -229
- package/dist/lib/services/server/ai/observability/instrumentation.js +0 -1244
- package/dist/lib/session/globalSessionState.d.ts +0 -71
- package/dist/lib/session/globalSessionState.js +0 -235
- package/dist/lib/skills/skillMatcher.d.ts +0 -55
- package/dist/lib/skills/skillMatcher.js +0 -170
- package/dist/lib/skills/skillSessionTracker.d.ts +0 -52
- package/dist/lib/skills/skillSessionTracker.js +0 -150
- package/dist/lib/skills/skillStoreRedis.d.ts +0 -30
- package/dist/lib/skills/skillStoreRedis.js +0 -114
- package/dist/lib/skills/skillStoreS3.d.ts +0 -56
- package/dist/lib/skills/skillStoreS3.js +0 -305
- package/dist/lib/skills/skillStores.d.ts +0 -58
- package/dist/lib/skills/skillStores.js +0 -341
- package/dist/lib/skills/skillTools.d.ts +0 -35
- package/dist/lib/skills/skillTools.js +0 -451
- package/dist/lib/skills/skillsManager.d.ts +0 -78
- package/dist/lib/skills/skillsManager.js +0 -281
- package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +0 -31
- package/dist/lib/tasks/autoresearchTaskExecutor.js +0 -304
- package/dist/lib/tasks/backends/bullmqBackend.d.ts +0 -33
- package/dist/lib/tasks/backends/bullmqBackend.js +0 -206
- package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +0 -27
- package/dist/lib/tasks/backends/nodeTimeoutBackend.js +0 -141
- package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +0 -31
- package/dist/lib/tasks/backends/taskBackendRegistry.js +0 -66
- package/dist/lib/tasks/errors.d.ts +0 -33
- package/dist/lib/tasks/errors.js +0 -19
- package/dist/lib/tasks/store/fileTaskStore.d.ts +0 -43
- package/dist/lib/tasks/store/fileTaskStore.js +0 -179
- package/dist/lib/tasks/store/redisTaskStore.d.ts +0 -43
- package/dist/lib/tasks/store/redisTaskStore.js +0 -222
- package/dist/lib/tasks/taskExecutor.d.ts +0 -22
- package/dist/lib/tasks/taskExecutor.js +0 -170
- package/dist/lib/tasks/taskManager.d.ts +0 -65
- package/dist/lib/tasks/taskManager.js +0 -545
- package/dist/lib/tasks/tools/taskTools.d.ts +0 -20
- package/dist/lib/tasks/tools/taskTools.js +0 -265
- package/dist/lib/telemetry/attributes.d.ts +0 -136
- package/dist/lib/telemetry/attributes.js +0 -165
- package/dist/lib/telemetry/index.d.ts +0 -20
- package/dist/lib/telemetry/index.js +0 -28
- package/dist/lib/telemetry/telemetryService.d.ts +0 -58
- package/dist/lib/telemetry/telemetryService.js +0 -387
- package/dist/lib/telemetry/traceContext.d.ts +0 -9
- package/dist/lib/telemetry/traceContext.js +0 -19
- package/dist/lib/telemetry/tracers.d.ts +0 -38
- package/dist/lib/telemetry/tracers.js +0 -40
- package/dist/lib/telemetry/withSpan.d.ts +0 -39
- package/dist/lib/telemetry/withSpan.js +0 -138
- package/dist/lib/tools/toolDiscovery.d.ts +0 -70
- package/dist/lib/tools/toolDiscovery.js +0 -303
- package/dist/lib/tools/toolGate.d.ts +0 -16
- package/dist/lib/tools/toolGate.js +0 -51
- package/dist/lib/tools/toolPolicy.d.ts +0 -40
- package/dist/lib/tools/toolPolicy.js +0 -194
- package/dist/lib/types/action.d.ts +0 -207
- package/dist/lib/types/action.js +0 -7
- package/dist/lib/types/agentNetwork.d.ts +0 -1199
- package/dist/lib/types/agentNetwork.js +0 -8
- package/dist/lib/types/aliases.d.ts +0 -368
- package/dist/lib/types/aliases.js +0 -50
- package/dist/lib/types/analytics.d.ts +0 -215
- package/dist/lib/types/analytics.js +0 -6
- package/dist/lib/types/artifact.d.ts +0 -70
- package/dist/lib/types/artifact.js +0 -11
- package/dist/lib/types/auth.d.ts +0 -1140
- package/dist/lib/types/auth.js +0 -10
- package/dist/lib/types/autoresearch.d.ts +0 -206
- package/dist/lib/types/autoresearch.js +0 -18
- package/dist/lib/types/avatar.d.ts +0 -150
- package/dist/lib/types/avatar.js +0 -20
- package/dist/lib/types/circuitBreakerErrors.d.ts +0 -30
- package/dist/lib/types/circuitBreakerErrors.js +0 -35
- package/dist/lib/types/classifierRouter.d.ts +0 -194
- package/dist/lib/types/classifierRouter.js +0 -17
- package/dist/lib/types/cli.d.ts +0 -1734
- package/dist/lib/types/cli.js +0 -22
- package/dist/lib/types/client.d.ts +0 -1287
- package/dist/lib/types/client.js +0 -11
- package/dist/lib/types/codex.d.ts +0 -95
- package/dist/lib/types/codex.js +0 -15
- package/dist/lib/types/common.d.ts +0 -434
- package/dist/lib/types/common.js +0 -52
- package/dist/lib/types/config.d.ts +0 -506
- package/dist/lib/types/config.js +0 -54
- package/dist/lib/types/content.d.ts +0 -18
- package/dist/lib/types/content.js +0 -20
- package/dist/lib/types/context.d.ts +0 -587
- package/dist/lib/types/context.js +0 -401
- package/dist/lib/types/conversation.d.ts +0 -637
- package/dist/lib/types/conversation.js +0 -48
- package/dist/lib/types/conversationMemoryInterface.d.ts +0 -59
- package/dist/lib/types/conversationMemoryInterface.js +0 -7
- package/dist/lib/types/domain.d.ts +0 -62
- package/dist/lib/types/domain.js +0 -6
- package/dist/lib/types/dynamic.d.ts +0 -110
- package/dist/lib/types/dynamic.js +0 -10
- package/dist/lib/types/elicitation.d.ts +0 -278
- package/dist/lib/types/elicitation.js +0 -11
- package/dist/lib/types/enums.d.ts +0 -9
- package/dist/lib/types/enums.js +0 -10
- package/dist/lib/types/errors.d.ts +0 -188
- package/dist/lib/types/errors.js +0 -262
- package/dist/lib/types/evaluation.d.ts +0 -647
- package/dist/lib/types/evaluation.js +0 -2
- package/dist/lib/types/evaluationProviders.d.ts +0 -104
- package/dist/lib/types/evaluationProviders.js +0 -6
- package/dist/lib/types/exporter.d.ts +0 -257
- package/dist/lib/types/exporter.js +0 -6
- package/dist/lib/types/externalMcp.d.ts +0 -349
- package/dist/lib/types/externalMcp.js +0 -7
- package/dist/lib/types/file.d.ts +0 -616
- package/dist/lib/types/file.js +0 -5
- package/dist/lib/types/fileReference.d.ts +0 -243
- package/dist/lib/types/fileReference.js +0 -22
- package/dist/lib/types/generate.d.ts +0 -1520
- package/dist/lib/types/generate.js +0 -2
- package/dist/lib/types/grounding.d.ts +0 -231
- package/dist/lib/types/grounding.js +0 -12
- package/dist/lib/types/guardrails.d.ts +0 -116
- package/dist/lib/types/guardrails.js +0 -2
- package/dist/lib/types/hitl.d.ts +0 -237
- package/dist/lib/types/hitl.js +0 -9
- package/dist/lib/types/imageGen.d.ts +0 -255
- package/dist/lib/types/imageGen.js +0 -25
- package/dist/lib/types/index.d.ts +0 -86
- package/dist/lib/types/index.js +0 -98
- package/dist/lib/types/ioProcessor.d.ts +0 -119
- package/dist/lib/types/ioProcessor.js +0 -10
- package/dist/lib/types/isolatedAgent.d.ts +0 -365
- package/dist/lib/types/isolatedAgent.js +0 -12
- package/dist/lib/types/knowledge.d.ts +0 -342
- package/dist/lib/types/knowledge.js +0 -30
- package/dist/lib/types/livekit.d.ts +0 -512
- package/dist/lib/types/livekit.js +0 -13
- package/dist/lib/types/loopEngine.d.ts +0 -306
- package/dist/lib/types/loopEngine.js +0 -2
- package/dist/lib/types/mcp.d.ts +0 -2135
- package/dist/lib/types/mcp.js +0 -6
- package/dist/lib/types/mcpOutput.d.ts +0 -40
- package/dist/lib/types/mcpOutput.js +0 -9
- package/dist/lib/types/memory.d.ts +0 -96
- package/dist/lib/types/memory.js +0 -23
- package/dist/lib/types/middleware.d.ts +0 -435
- package/dist/lib/types/middleware.js +0 -2
- package/dist/lib/types/model.d.ts +0 -342
- package/dist/lib/types/model.js +0 -32
- package/dist/lib/types/modelPool.d.ts +0 -47
- package/dist/lib/types/modelPool.js +0 -11
- package/dist/lib/types/multimodal.d.ts +0 -614
- package/dist/lib/types/multimodal.js +0 -144
- package/dist/lib/types/music.d.ts +0 -172
- package/dist/lib/types/music.js +0 -21
- package/dist/lib/types/nativeTools.d.ts +0 -16
- package/dist/lib/types/nativeTools.js +0 -2
- package/dist/lib/types/noOutputSentinel.d.ts +0 -26
- package/dist/lib/types/noOutputSentinel.js +0 -2
- package/dist/lib/types/observability.d.ts +0 -502
- package/dist/lib/types/observability.js +0 -7
- package/dist/lib/types/openaiCompatible.d.ts +0 -287
- package/dist/lib/types/openaiCompatible.js +0 -2
- package/dist/lib/types/ppt.d.ts +0 -1093
- package/dist/lib/types/ppt.js +0 -37
- package/dist/lib/types/processor.d.ts +0 -993
- package/dist/lib/types/processor.js +0 -91
- package/dist/lib/types/providers.d.ts +0 -2155
- package/dist/lib/types/providers.js +0 -112
- package/dist/lib/types/proxy.d.ts +0 -2789
- package/dist/lib/types/proxy.js +0 -17
- package/dist/lib/types/proxyClient.d.ts +0 -54
- package/dist/lib/types/proxyClient.js +0 -2
- package/dist/lib/types/rag.d.ts +0 -1332
- package/dist/lib/types/rag.js +0 -2
- package/dist/lib/types/realtime.d.ts +0 -243
- package/dist/lib/types/realtime.js +0 -70
- package/dist/lib/types/replicate.d.ts +0 -67
- package/dist/lib/types/replicate.js +0 -10
- package/dist/lib/types/requestRouter.d.ts +0 -75
- package/dist/lib/types/requestRouter.js +0 -16
- package/dist/lib/types/safeFetch.d.ts +0 -24
- package/dist/lib/types/safeFetch.js +0 -7
- package/dist/lib/types/scorer.d.ts +0 -564
- package/dist/lib/types/scorer.js +0 -6
- package/dist/lib/types/sdk.d.ts +0 -23
- package/dist/lib/types/sdk.js +0 -9
- package/dist/lib/types/server.d.ts +0 -1192
- package/dist/lib/types/server.js +0 -68
- package/dist/lib/types/service.d.ts +0 -79
- package/dist/lib/types/service.js +0 -6
- package/dist/lib/types/skills.d.ts +0 -427
- package/dist/lib/types/skills.js +0 -17
- package/dist/lib/types/span.d.ts +0 -247
- package/dist/lib/types/span.js +0 -96
- package/dist/lib/types/stream.d.ts +0 -771
- package/dist/lib/types/stream.js +0 -2
- package/dist/lib/types/streamDedup.d.ts +0 -14
- package/dist/lib/types/streamDedup.js +0 -2
- package/dist/lib/types/streaming.d.ts +0 -15
- package/dist/lib/types/streaming.js +0 -2
- package/dist/lib/types/stt.d.ts +0 -585
- package/dist/lib/types/stt.js +0 -90
- package/dist/lib/types/subscription.d.ts +0 -1064
- package/dist/lib/types/subscription.js +0 -10
- package/dist/lib/types/task.d.ts +0 -313
- package/dist/lib/types/task.js +0 -37
- package/dist/lib/types/taskClassification.d.ts +0 -52
- package/dist/lib/types/taskClassification.js +0 -6
- package/dist/lib/types/toolDedup.d.ts +0 -45
- package/dist/lib/types/toolDedup.js +0 -14
- package/dist/lib/types/toolResolution.d.ts +0 -83
- package/dist/lib/types/toolResolution.js +0 -11
- package/dist/lib/types/toolRouting.d.ts +0 -350
- package/dist/lib/types/toolRouting.js +0 -19
- package/dist/lib/types/tools.d.ts +0 -531
- package/dist/lib/types/tools.js +0 -26
- package/dist/lib/types/tts.d.ts +0 -195
- package/dist/lib/types/tts.js +0 -65
- package/dist/lib/types/utilities.d.ts +0 -310
- package/dist/lib/types/utilities.js +0 -5
- package/dist/lib/types/vectorStoreChroma.d.ts +0 -67
- package/dist/lib/types/vectorStoreChroma.js +0 -12
- package/dist/lib/types/vectorStorePinecone.d.ts +0 -48
- package/dist/lib/types/vectorStorePinecone.js +0 -12
- package/dist/lib/types/video.d.ts +0 -89
- package/dist/lib/types/video.js +0 -15
- package/dist/lib/types/voice.d.ts +0 -272
- package/dist/lib/types/voice.js +0 -137
- package/dist/lib/types/workflow.d.ts +0 -598
- package/dist/lib/types/workflow.js +0 -24
- package/dist/lib/utils/analyticsUtils.d.ts +0 -37
- package/dist/lib/utils/analyticsUtils.js +0 -110
- package/dist/lib/utils/anthropicCacheBreakpoints.d.ts +0 -43
- package/dist/lib/utils/anthropicCacheBreakpoints.js +0 -151
- package/dist/lib/utils/anthropicTraceSanitizer.d.ts +0 -7
- package/dist/lib/utils/anthropicTraceSanitizer.js +0 -26
- package/dist/lib/utils/async/delay.d.ts +0 -40
- package/dist/lib/utils/async/delay.js +0 -43
- package/dist/lib/utils/async/index.d.ts +0 -23
- package/dist/lib/utils/async/index.js +0 -24
- package/dist/lib/utils/async/retry.d.ts +0 -107
- package/dist/lib/utils/async/retry.js +0 -172
- package/dist/lib/utils/async/withTimeout.d.ts +0 -85
- package/dist/lib/utils/async/withTimeout.js +0 -144
- package/dist/lib/utils/asyncMutex.d.ts +0 -14
- package/dist/lib/utils/asyncMutex.js +0 -61
- package/dist/lib/utils/audioFormatDetector.d.ts +0 -15
- package/dist/lib/utils/audioFormatDetector.js +0 -34
- package/dist/lib/utils/avatarProcessor.d.ts +0 -78
- package/dist/lib/utils/avatarProcessor.js +0 -173
- package/dist/lib/utils/cloneOptions.d.ts +0 -36
- package/dist/lib/utils/cloneOptions.js +0 -62
- package/dist/lib/utils/conversationMemory.d.ts +0 -80
- package/dist/lib/utils/conversationMemory.js +0 -670
- package/dist/lib/utils/csvProcessor.d.ts +0 -221
- package/dist/lib/utils/csvProcessor.js +0 -1527
- package/dist/lib/utils/csvUtils.d.ts +0 -26
- package/dist/lib/utils/csvUtils.js +0 -85
- package/dist/lib/utils/errorClassifier.d.ts +0 -30
- package/dist/lib/utils/errorClassifier.js +0 -183
- package/dist/lib/utils/errorHandling.d.ts +0 -398
- package/dist/lib/utils/errorHandling.js +0 -1282
- package/dist/lib/utils/evaluationUtils.d.ts +0 -27
- package/dist/lib/utils/evaluationUtils.js +0 -132
- package/dist/lib/utils/factoryProcessing.d.ts +0 -71
- package/dist/lib/utils/factoryProcessing.js +0 -590
- package/dist/lib/utils/fileDetector.d.ts +0 -198
- package/dist/lib/utils/fileDetector.js +0 -2806
- package/dist/lib/utils/generation.d.ts +0 -8
- package/dist/lib/utils/generation.js +0 -9
- package/dist/lib/utils/generationErrors.d.ts +0 -10
- package/dist/lib/utils/generationErrors.js +0 -11
- package/dist/lib/utils/imageCache.d.ts +0 -124
- package/dist/lib/utils/imageCache.js +0 -437
- package/dist/lib/utils/imageDetection.d.ts +0 -15
- package/dist/lib/utils/imageDetection.js +0 -53
- package/dist/lib/utils/imageProcessor.d.ts +0 -296
- package/dist/lib/utils/imageProcessor.js +0 -1158
- package/dist/lib/utils/isoBmff.d.ts +0 -24
- package/dist/lib/utils/isoBmff.js +0 -83
- package/dist/lib/utils/json/coerce.d.ts +0 -30
- package/dist/lib/utils/json/coerce.js +0 -412
- package/dist/lib/utils/json/extract.d.ts +0 -112
- package/dist/lib/utils/json/extract.js +0 -299
- package/dist/lib/utils/json/index.d.ts +0 -36
- package/dist/lib/utils/json/index.js +0 -37
- package/dist/lib/utils/json/safeParse.d.ts +0 -130
- package/dist/lib/utils/json/safeParse.js +0 -191
- package/dist/lib/utils/lifecycleCallbacks.d.ts +0 -56
- package/dist/lib/utils/lifecycleCallbacks.js +0 -100
- package/dist/lib/utils/lifecycleTimeout.d.ts +0 -25
- package/dist/lib/utils/lifecycleTimeout.js +0 -39
- package/dist/lib/utils/logSanitize.d.ts +0 -285
- package/dist/lib/utils/logSanitize.js +0 -555
- package/dist/lib/utils/logger.d.ts +0 -273
- package/dist/lib/utils/logger.js +0 -516
- package/dist/lib/utils/loggingFetch.d.ts +0 -29
- package/dist/lib/utils/loggingFetch.js +0 -60
- package/dist/lib/utils/loopUtils.d.ts +0 -70
- package/dist/lib/utils/loopUtils.js +0 -263
- package/dist/lib/utils/markupSniff.d.ts +0 -37
- package/dist/lib/utils/markupSniff.js +0 -125
- package/dist/lib/utils/mcpDefaults.d.ts +0 -54
- package/dist/lib/utils/mcpDefaults.js +0 -135
- package/dist/lib/utils/mcpErrorText.d.ts +0 -37
- package/dist/lib/utils/mcpErrorText.js +0 -95
- package/dist/lib/utils/mediaDuration.d.ts +0 -23
- package/dist/lib/utils/mediaDuration.js +0 -45
- package/dist/lib/utils/messageBuilder.d.ts +0 -59
- package/dist/lib/utils/messageBuilder.js +0 -2716
- package/dist/lib/utils/mimeTypeHints.d.ts +0 -40
- package/dist/lib/utils/mimeTypeHints.js +0 -122
- package/dist/lib/utils/modelAliasResolver.d.ts +0 -17
- package/dist/lib/utils/modelAliasResolver.js +0 -55
- package/dist/lib/utils/modelChoices.d.ts +0 -75
- package/dist/lib/utils/modelChoices.js +0 -698
- package/dist/lib/utils/modelDetection.d.ts +0 -37
- package/dist/lib/utils/modelDetection.js +0 -131
- package/dist/lib/utils/modelRouter.d.ts +0 -91
- package/dist/lib/utils/modelRouter.js +0 -293
- package/dist/lib/utils/multimodalOptionsBuilder.d.ts +0 -74
- package/dist/lib/utils/multimodalOptionsBuilder.js +0 -74
- package/dist/lib/utils/musicProcessor.d.ts +0 -77
- package/dist/lib/utils/musicProcessor.js +0 -190
- package/dist/lib/utils/noOutputSentinel.d.ts +0 -67
- package/dist/lib/utils/noOutputSentinel.js +0 -180
- package/dist/lib/utils/observabilityHelpers.d.ts +0 -27
- package/dist/lib/utils/observabilityHelpers.js +0 -48
- package/dist/lib/utils/optionsConversion.d.ts +0 -47
- package/dist/lib/utils/optionsConversion.js +0 -128
- package/dist/lib/utils/optionsUtils.d.ts +0 -175
- package/dist/lib/utils/optionsUtils.js +0 -970
- package/dist/lib/utils/parameterValidation.d.ts +0 -200
- package/dist/lib/utils/parameterValidation.js +0 -981
- package/dist/lib/utils/pdfProcessor.d.ts +0 -137
- package/dist/lib/utils/pdfProcessor.js +0 -689
- package/dist/lib/utils/performance.d.ts +0 -93
- package/dist/lib/utils/performance.js +0 -223
- package/dist/lib/utils/piiDetector.d.ts +0 -24
- package/dist/lib/utils/piiDetector.js +0 -221
- package/dist/lib/utils/pricing.d.ts +0 -26
- package/dist/lib/utils/pricing.js +0 -890
- package/dist/lib/utils/promptRedaction.d.ts +0 -22
- package/dist/lib/utils/promptRedaction.js +0 -63
- package/dist/lib/utils/providerConfig.d.ts +0 -393
- package/dist/lib/utils/providerConfig.js +0 -1363
- package/dist/lib/utils/providerErrorClassification.d.ts +0 -58
- package/dist/lib/utils/providerErrorClassification.js +0 -149
- package/dist/lib/utils/providerHealth.d.ts +0 -253
- package/dist/lib/utils/providerHealth.js +0 -1479
- package/dist/lib/utils/providerRetry.d.ts +0 -68
- package/dist/lib/utils/providerRetry.js +0 -230
- package/dist/lib/utils/providerSetupMessages.d.ts +0 -8
- package/dist/lib/utils/providerSetupMessages.js +0 -122
- package/dist/lib/utils/providerUtils.d.ts +0 -38
- package/dist/lib/utils/providerUtils.js +0 -366
- package/dist/lib/utils/rateLimiter.d.ts +0 -75
- package/dist/lib/utils/rateLimiter.js +0 -201
- package/dist/lib/utils/redis.d.ts +0 -119
- package/dist/lib/utils/redis.js +0 -530
- package/dist/lib/utils/responseValidator.d.ts +0 -21
- package/dist/lib/utils/responseValidator.js +0 -354
- package/dist/lib/utils/retryAfter.d.ts +0 -7
- package/dist/lib/utils/retryAfter.js +0 -44
- package/dist/lib/utils/retryHandler.d.ts +0 -82
- package/dist/lib/utils/retryHandler.js +0 -270
- package/dist/lib/utils/retryability.d.ts +0 -27
- package/dist/lib/utils/retryability.js +0 -45
- package/dist/lib/utils/safeFetch.d.ts +0 -26
- package/dist/lib/utils/safeFetch.js +0 -121
- package/dist/lib/utils/sanitizers/filename.d.ts +0 -116
- package/dist/lib/utils/sanitizers/filename.js +0 -366
- package/dist/lib/utils/sanitizers/html.d.ts +0 -170
- package/dist/lib/utils/sanitizers/html.js +0 -326
- package/dist/lib/utils/sanitizers/index.d.ts +0 -26
- package/dist/lib/utils/sanitizers/index.js +0 -30
- package/dist/lib/utils/sanitizers/svg.d.ts +0 -71
- package/dist/lib/utils/sanitizers/svg.js +0 -482
- package/dist/lib/utils/schemaConversion.d.ts +0 -56
- package/dist/lib/utils/schemaConversion.js +0 -656
- package/dist/lib/utils/sizeGuard.d.ts +0 -34
- package/dist/lib/utils/sizeGuard.js +0 -45
- package/dist/lib/utils/ssrfGuard.d.ts +0 -60
- package/dist/lib/utils/ssrfGuard.js +0 -446
- package/dist/lib/utils/sttProcessor.d.ts +0 -125
- package/dist/lib/utils/sttProcessor.js +0 -301
- package/dist/lib/utils/systemMessages.d.ts +0 -29
- package/dist/lib/utils/systemMessages.js +0 -45
- package/dist/lib/utils/taskClassificationUtils.d.ts +0 -55
- package/dist/lib/utils/taskClassificationUtils.js +0 -150
- package/dist/lib/utils/taskClassifier.d.ts +0 -23
- package/dist/lib/utils/taskClassifier.js +0 -95
- package/dist/lib/utils/textEncoding.d.ts +0 -25
- package/dist/lib/utils/textEncoding.js +0 -141
- package/dist/lib/utils/thinkingConfig.d.ts +0 -76
- package/dist/lib/utils/thinkingConfig.js +0 -105
- package/dist/lib/utils/timeout.d.ts +0 -158
- package/dist/lib/utils/timeout.js +0 -427
- package/dist/lib/utils/tokenEstimation.d.ts +0 -90
- package/dist/lib/utils/tokenEstimation.js +0 -187
- package/dist/lib/utils/tokenLimits.d.ts +0 -53
- package/dist/lib/utils/tokenLimits.js +0 -236
- package/dist/lib/utils/tokenUtils.d.ts +0 -101
- package/dist/lib/utils/tokenUtils.js +0 -323
- package/dist/lib/utils/tool.d.ts +0 -8
- package/dist/lib/utils/tool.js +0 -9
- package/dist/lib/utils/toolCallRepair.d.ts +0 -14
- package/dist/lib/utils/toolCallRepair.js +0 -286
- package/dist/lib/utils/toolChoice.d.ts +0 -4
- package/dist/lib/utils/toolChoice.js +0 -7
- package/dist/lib/utils/toolEndEmitter.d.ts +0 -25
- package/dist/lib/utils/toolEndEmitter.js +0 -65
- package/dist/lib/utils/toolUtils.d.ts +0 -40
- package/dist/lib/utils/toolUtils.js +0 -76
- package/dist/lib/utils/transformationUtils.d.ts +0 -218
- package/dist/lib/utils/transformationUtils.js +0 -578
- package/dist/lib/utils/tripwireEvaluator.d.ts +0 -73
- package/dist/lib/utils/tripwireEvaluator.js +0 -285
- package/dist/lib/utils/tryImport.d.ts +0 -35
- package/dist/lib/utils/tryImport.js +0 -95
- package/dist/lib/utils/ttsProcessor.d.ts +0 -159
- package/dist/lib/utils/ttsProcessor.js +0 -293
- package/dist/lib/utils/typeUtils.d.ts +0 -77
- package/dist/lib/utils/typeUtils.js +0 -98
- package/dist/lib/utils/videoAnalysisProcessor.d.ts +0 -24
- package/dist/lib/utils/videoAnalysisProcessor.js +0 -61
- package/dist/lib/utils/videoProcessor.d.ts +0 -64
- package/dist/lib/utils/videoProcessor.js +0 -196
- package/dist/lib/voice/RealtimeVoiceAPI.d.ts +0 -186
- package/dist/lib/voice/RealtimeVoiceAPI.js +0 -431
- package/dist/lib/voice/audio-utils.d.ts +0 -135
- package/dist/lib/voice/audio-utils.js +0 -435
- package/dist/lib/voice/errors.d.ts +0 -123
- package/dist/lib/voice/errors.js +0 -386
- package/dist/lib/voice/index.d.ts +0 -49
- package/dist/lib/voice/index.js +0 -177
- package/dist/lib/voice/livekit/brain.d.ts +0 -21
- package/dist/lib/voice/livekit/brain.js +0 -75
- package/dist/lib/voice/livekit/config.d.ts +0 -52
- package/dist/lib/voice/livekit/config.js +0 -134
- package/dist/lib/voice/livekit/eventBridge.d.ts +0 -27
- package/dist/lib/voice/livekit/eventBridge.js +0 -360
- package/dist/lib/voice/livekit/index.d.ts +0 -22
- package/dist/lib/voice/livekit/index.js +0 -23
- package/dist/lib/voice/livekit/realtimeEventBridge.d.ts +0 -14
- package/dist/lib/voice/livekit/realtimeEventBridge.js +0 -161
- package/dist/lib/voice/livekit/realtimeMcpTools.d.ts +0 -31
- package/dist/lib/voice/livekit/realtimeMcpTools.js +0 -206
- package/dist/lib/voice/livekit/realtimeVoiceAgent.d.ts +0 -26
- package/dist/lib/voice/livekit/realtimeVoiceAgent.js +0 -365
- package/dist/lib/voice/livekit/roomContext.d.ts +0 -23
- package/dist/lib/voice/livekit/roomContext.js +0 -57
- package/dist/lib/voice/livekit/roomDispatch.d.ts +0 -24
- package/dist/lib/voice/livekit/roomDispatch.js +0 -31
- package/dist/lib/voice/livekit/schemaSanitizer.d.ts +0 -26
- package/dist/lib/voice/livekit/schemaSanitizer.js +0 -144
- package/dist/lib/voice/livekit/tokens.d.ts +0 -19
- package/dist/lib/voice/livekit/tokens.js +0 -51
- package/dist/lib/voice/livekit/vertexAuth.d.ts +0 -30
- package/dist/lib/voice/livekit/vertexAuth.js +0 -73
- package/dist/lib/voice/livekit/voiceAgent.d.ts +0 -32
- package/dist/lib/voice/livekit/voiceAgent.js +0 -425
- package/dist/lib/voice/livekit/voiceAgentWorker.d.ts +0 -29
- package/dist/lib/voice/livekit/voiceAgentWorker.js +0 -122
- package/dist/lib/voice/providers/AzureSTT.d.ts +0 -47
- package/dist/lib/voice/providers/AzureSTT.js +0 -345
- package/dist/lib/voice/providers/AzureTTS.d.ts +0 -59
- package/dist/lib/voice/providers/AzureTTS.js +0 -349
- package/dist/lib/voice/providers/CartesiaTTS.d.ts +0 -31
- package/dist/lib/voice/providers/CartesiaTTS.js +0 -189
- package/dist/lib/voice/providers/DeepgramSTT.d.ts +0 -40
- package/dist/lib/voice/providers/DeepgramSTT.js +0 -550
- package/dist/lib/voice/providers/ElevenLabsTTS.d.ts +0 -53
- package/dist/lib/voice/providers/ElevenLabsTTS.js +0 -311
- package/dist/lib/voice/providers/FishAudioTTS.d.ts +0 -27
- package/dist/lib/voice/providers/FishAudioTTS.js +0 -183
- package/dist/lib/voice/providers/GeminiLive.d.ts +0 -52
- package/dist/lib/voice/providers/GeminiLive.js +0 -372
- package/dist/lib/voice/providers/GoogleSTT.d.ts +0 -60
- package/dist/lib/voice/providers/GoogleSTT.js +0 -454
- package/dist/lib/voice/providers/OpenAIRealtime.d.ts +0 -47
- package/dist/lib/voice/providers/OpenAIRealtime.js +0 -412
- package/dist/lib/voice/providers/OpenAISTT.d.ts +0 -41
- package/dist/lib/voice/providers/OpenAISTT.js +0 -286
- package/dist/lib/voice/providers/OpenAITTS.d.ts +0 -55
- package/dist/lib/voice/providers/OpenAITTS.js +0 -285
- package/dist/lib/voice/stream-handler.d.ts +0 -166
- package/dist/lib/voice/stream-handler.js +0 -514
- package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +0 -13
- package/dist/lib/workflow/LAYER-EXAMPLES.js +0 -312
- package/dist/lib/workflow/PROMPT-EXAMPLES.d.ts +0 -117
- package/dist/lib/workflow/PROMPT-EXAMPLES.js +0 -246
- package/dist/lib/workflow/config.d.ts +0 -376
- package/dist/lib/workflow/config.js +0 -399
- package/dist/lib/workflow/core/ensembleExecutor.d.ts +0 -55
- package/dist/lib/workflow/core/ensembleExecutor.js +0 -451
- package/dist/lib/workflow/core/judgeScorer.d.ts +0 -25
- package/dist/lib/workflow/core/judgeScorer.js +0 -568
- package/dist/lib/workflow/core/responseConditioner.d.ts +0 -21
- package/dist/lib/workflow/core/responseConditioner.js +0 -243
- package/dist/lib/workflow/core/workflowRegistry.d.ts +0 -72
- package/dist/lib/workflow/core/workflowRegistry.js +0 -305
- package/dist/lib/workflow/core/workflowRunner.d.ts +0 -61
- package/dist/lib/workflow/core/workflowRunner.js +0 -642
- package/dist/lib/workflow/index.d.ts +0 -21
- package/dist/lib/workflow/index.js +0 -46
- package/dist/lib/workflow/utils/workflowMetrics.d.ts +0 -74
- package/dist/lib/workflow/utils/workflowMetrics.js +0 -312
- package/dist/lib/workflow/utils/workflowValidation.d.ts +0 -29
- package/dist/lib/workflow/utils/workflowValidation.js +0 -421
- package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +0 -72
- package/dist/lib/workflow/workflows/adaptiveWorkflow.js +0 -367
- package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +0 -69
- package/dist/lib/workflow/workflows/consensusWorkflow.js +0 -193
- package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +0 -49
- package/dist/lib/workflow/workflows/fallbackWorkflow.js +0 -226
- package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +0 -70
- package/dist/lib/workflow/workflows/multiJudgeWorkflow.js +0 -352
- package/dist/providers/googleVertex/utils.d.ts +0 -12
- package/dist/providers/googleVertex/utils.js +0 -286
package/dist/lib/types/cli.d.ts
DELETED
|
@@ -1,1734 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI-specific type definitions for NeuroLink
|
|
3
|
-
*/
|
|
4
|
-
import type { UnknownRecord, JsonValue } from "./common.js";
|
|
5
|
-
import type { AnalyticsData, TokenUsage } from "./analytics.js";
|
|
6
|
-
import type { EvaluationData } from "./evaluation.js";
|
|
7
|
-
import type { ToolCall, ToolResult } from "./tools.js";
|
|
8
|
-
import type { TTSResult } from "./tts.js";
|
|
9
|
-
import type { VideoGenerationResult } from "./multimodal.js";
|
|
10
|
-
import type { PPTGenerationResult } from "./ppt.js";
|
|
11
|
-
import type { AvatarResult } from "./avatar.js";
|
|
12
|
-
import type { MusicResult } from "./music.js";
|
|
13
|
-
import type { OAuthTokens } from "./auth.js";
|
|
14
|
-
import type { AccountQuota } from "./proxy.js";
|
|
15
|
-
import type { ClaudeSubscriptionTier } from "./subscription.js";
|
|
16
|
-
import type { ServerFramework } from "./server.js";
|
|
17
|
-
import type { AuthProviderType } from "./auth.js";
|
|
18
|
-
import type { AIProviderName } from "./enums.js";
|
|
19
|
-
/**
|
|
20
|
-
* Ollama command utilities type
|
|
21
|
-
*/
|
|
22
|
-
export type AllowedCommand = "ollama" | "curl" | "systemctl" | "pkill" | "killall" | "open" | "taskkill" | "start";
|
|
23
|
-
/**
|
|
24
|
-
* Defines the schema for a session variable or a generation option.
|
|
25
|
-
*/
|
|
26
|
-
export type OptionSchema = {
|
|
27
|
-
type: "string" | "boolean" | "number";
|
|
28
|
-
description: string;
|
|
29
|
-
allowedValues?: string[];
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Base command arguments type
|
|
33
|
-
*/
|
|
34
|
-
export type BaseCommandArgs = {
|
|
35
|
-
/** Enable debug output */
|
|
36
|
-
debug?: boolean;
|
|
37
|
-
/** Output format */
|
|
38
|
-
format?: "text" | "json" | "table" | "yaml";
|
|
39
|
-
/** Verbose output */
|
|
40
|
-
verbose?: boolean;
|
|
41
|
-
/** Quiet mode */
|
|
42
|
-
quiet?: boolean;
|
|
43
|
-
/** Index signature to allow additional properties */
|
|
44
|
-
[key: string]: unknown;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Generate command arguments
|
|
48
|
-
*/
|
|
49
|
-
export type GenerateCommandArgs = BaseCommandArgs & CliToolRoutingFlags & CliClassifierRouterFlags & {
|
|
50
|
-
/** Input text or prompt */
|
|
51
|
-
input?: string;
|
|
52
|
-
/** AI provider to use */
|
|
53
|
-
provider?: string;
|
|
54
|
-
/** Model name */
|
|
55
|
-
model?: string;
|
|
56
|
-
/** System prompt */
|
|
57
|
-
system?: string;
|
|
58
|
-
/** Temperature setting */
|
|
59
|
-
temperature?: number;
|
|
60
|
-
/** Maximum tokens */
|
|
61
|
-
maxTokens?: number;
|
|
62
|
-
/** Enable analytics */
|
|
63
|
-
analytics?: boolean;
|
|
64
|
-
/** Enable evaluation */
|
|
65
|
-
evaluation?: boolean;
|
|
66
|
-
/** Context data */
|
|
67
|
-
context?: string;
|
|
68
|
-
/** Disable tools */
|
|
69
|
-
disableTools?: boolean;
|
|
70
|
-
/** Maximum steps for multi-turn */
|
|
71
|
-
maxSteps?: number;
|
|
72
|
-
/** Output file */
|
|
73
|
-
output?: string;
|
|
74
|
-
/** Enable extended thinking/reasoning */
|
|
75
|
-
thinking?: boolean;
|
|
76
|
-
/** Token budget for thinking */
|
|
77
|
-
thinkingBudget?: number;
|
|
78
|
-
/** Thinking level for extended reasoning */
|
|
79
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
80
|
-
/** Vertex AI region */
|
|
81
|
-
region?: string;
|
|
82
|
-
/** Output mode - 'text' for standard generation, 'video' for video generation, 'ppt' for presentation */
|
|
83
|
-
outputMode?: "text" | "video" | "ppt";
|
|
84
|
-
/** Path to save generated video file */
|
|
85
|
-
videoOutput?: string;
|
|
86
|
-
/** Video output resolution (720p or 1080p) */
|
|
87
|
-
videoResolution?: "720p" | "1080p";
|
|
88
|
-
/** Video duration in seconds (4, 6, or 8) */
|
|
89
|
-
videoLength?: 4 | 6 | 8;
|
|
90
|
-
/** Video aspect ratio (9:16 for portrait, 16:9 for landscape) */
|
|
91
|
-
videoAspectRatio?: "9:16" | "16:9";
|
|
92
|
-
/** Enable/disable audio generation in video */
|
|
93
|
-
videoAudio?: boolean;
|
|
94
|
-
/** Number of slides to generate (5-50) */
|
|
95
|
-
pptPages?: number;
|
|
96
|
-
/** Presentation theme/style */
|
|
97
|
-
pptTheme?: "modern" | "corporate" | "creative" | "minimal" | "dark";
|
|
98
|
-
/** Target audience */
|
|
99
|
-
pptAudience?: "business" | "students" | "technical" | "general";
|
|
100
|
-
/** Presentation tone/style */
|
|
101
|
-
pptTone?: "professional" | "casual" | "educational" | "persuasive";
|
|
102
|
-
/** Path to save generated PPTX file */
|
|
103
|
-
pptOutput?: string;
|
|
104
|
-
/** PPT aspect ratio */
|
|
105
|
-
pptAspectRatio?: "16:9" | "4:3";
|
|
106
|
-
/** Disable AI image generation for PPT slides */
|
|
107
|
-
pptNoImages?: boolean;
|
|
108
|
-
/** Custom path for generated image output */
|
|
109
|
-
imageOutput?: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Stream command arguments
|
|
113
|
-
*/
|
|
114
|
-
export type StreamCommandArgs = BaseCommandArgs & CliToolRoutingFlags & CliClassifierRouterFlags & {
|
|
115
|
-
/** Input text or prompt */
|
|
116
|
-
input?: string;
|
|
117
|
-
/** AI provider to use */
|
|
118
|
-
provider?: string;
|
|
119
|
-
/** Model name */
|
|
120
|
-
model?: string;
|
|
121
|
-
/** System prompt */
|
|
122
|
-
system?: string;
|
|
123
|
-
/** Temperature setting */
|
|
124
|
-
temperature?: number;
|
|
125
|
-
/** Maximum tokens */
|
|
126
|
-
maxTokens?: number;
|
|
127
|
-
/** Disable tools */
|
|
128
|
-
disableTools?: boolean;
|
|
129
|
-
/** Enable extended thinking/reasoning */
|
|
130
|
-
thinking?: boolean;
|
|
131
|
-
/** Token budget for thinking */
|
|
132
|
-
thinkingBudget?: number;
|
|
133
|
-
/** Thinking level for extended reasoning */
|
|
134
|
-
thinkingLevel?: "minimal" | "low" | "medium" | "high";
|
|
135
|
-
/** Vertex AI region */
|
|
136
|
-
region?: string;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Batch command arguments
|
|
140
|
-
*/
|
|
141
|
-
export type BatchCommandArgs = BaseCommandArgs & CliToolRoutingFlags & CliClassifierRouterFlags & {
|
|
142
|
-
/** Prompts-list file path (the `<promptsFile>` positional) */
|
|
143
|
-
promptsFile?: string;
|
|
144
|
-
/** AI provider to use */
|
|
145
|
-
provider?: string;
|
|
146
|
-
/** Model name */
|
|
147
|
-
model?: string;
|
|
148
|
-
/** System prompt */
|
|
149
|
-
system?: string;
|
|
150
|
-
/** Temperature setting */
|
|
151
|
-
temperature?: number;
|
|
152
|
-
/** Maximum tokens */
|
|
153
|
-
maxTokens?: number;
|
|
154
|
-
/** Delay between requests (ms) */
|
|
155
|
-
delay?: number;
|
|
156
|
-
/** Output file */
|
|
157
|
-
output?: string;
|
|
158
|
-
/** Disable tools */
|
|
159
|
-
disableTools?: boolean;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* MCP command arguments - Enhanced with transport and server management
|
|
163
|
-
*/
|
|
164
|
-
export type MCPCommandArgs = BaseCommandArgs & {
|
|
165
|
-
/** MCP server name */
|
|
166
|
-
server?: string;
|
|
167
|
-
/** MCP server name (alias for server) */
|
|
168
|
-
serverName?: string;
|
|
169
|
-
/** Tool name to execute */
|
|
170
|
-
tool?: string;
|
|
171
|
-
/** Tool parameters as JSON string */
|
|
172
|
-
params?: string;
|
|
173
|
-
/** List available tools */
|
|
174
|
-
list?: boolean;
|
|
175
|
-
/** List only specific category */
|
|
176
|
-
listOnly?: boolean;
|
|
177
|
-
/** Discover MCP servers */
|
|
178
|
-
discover?: boolean;
|
|
179
|
-
/** Show server information */
|
|
180
|
-
info?: boolean;
|
|
181
|
-
/** Transport type for server connection */
|
|
182
|
-
transport?: "stdio" | "websocket" | "tcp" | "unix";
|
|
183
|
-
/** Server description */
|
|
184
|
-
description?: string;
|
|
185
|
-
/** Command/executable for stdio transport */
|
|
186
|
-
command?: string;
|
|
187
|
-
/** Arguments for server command */
|
|
188
|
-
args?: string[];
|
|
189
|
-
/** Environment variables for server (JSON string) */
|
|
190
|
-
env?: string;
|
|
191
|
-
/** Server URL for network transports */
|
|
192
|
-
url?: string;
|
|
193
|
-
/** Server name for add command */
|
|
194
|
-
name?: string;
|
|
195
|
-
/** Show detailed information */
|
|
196
|
-
detailed?: boolean;
|
|
197
|
-
/** Force operation without confirmation */
|
|
198
|
-
force?: boolean;
|
|
199
|
-
/** Auto install discovered servers */
|
|
200
|
-
autoInstall?: boolean;
|
|
201
|
-
/** Discovery source */
|
|
202
|
-
source?: string;
|
|
203
|
-
/** Connection timeout */
|
|
204
|
-
timeout?: number;
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* Models command arguments - Enhanced for model management
|
|
208
|
-
*/
|
|
209
|
-
export type ModelsCommandArgs = Omit<BaseCommandArgs, "format"> & {
|
|
210
|
-
/** AI provider to query (single or array) */
|
|
211
|
-
provider?: string | string[];
|
|
212
|
-
/** Model category filter */
|
|
213
|
-
category?: string;
|
|
214
|
-
/** Model capability filter (array) */
|
|
215
|
-
capability?: string[];
|
|
216
|
-
/** Include deprecated models */
|
|
217
|
-
deprecated?: boolean;
|
|
218
|
-
/** Search query (capability, use case, or model name) */
|
|
219
|
-
query?: string;
|
|
220
|
-
/** Model use case filter */
|
|
221
|
-
useCase?: string;
|
|
222
|
-
/** Maximum cost per 1K tokens (USD) */
|
|
223
|
-
maxCost?: number;
|
|
224
|
-
/** Minimum context window size (tokens) */
|
|
225
|
-
minContext?: number;
|
|
226
|
-
/** Maximum context window size (tokens) */
|
|
227
|
-
maxContext?: number;
|
|
228
|
-
/** Required performance level */
|
|
229
|
-
performance?: "fast" | "medium" | "slow" | "high" | "low";
|
|
230
|
-
/** Optimize for code generation and programming */
|
|
231
|
-
coding?: boolean;
|
|
232
|
-
/** Optimize for creative writing and content */
|
|
233
|
-
creative?: boolean;
|
|
234
|
-
/** Optimize for data analysis and research */
|
|
235
|
-
analysis?: boolean;
|
|
236
|
-
/** Optimize for conversational interactions */
|
|
237
|
-
conversation?: boolean;
|
|
238
|
-
/** Optimize for logical reasoning tasks */
|
|
239
|
-
reasoning?: boolean;
|
|
240
|
-
/** Optimize for language translation */
|
|
241
|
-
translation?: boolean;
|
|
242
|
-
/** Optimize for text summarization */
|
|
243
|
-
summarization?: boolean;
|
|
244
|
-
/** Prioritize cost-effectiveness */
|
|
245
|
-
costEffective?: boolean;
|
|
246
|
-
/** Prioritize output quality over cost */
|
|
247
|
-
highQuality?: boolean;
|
|
248
|
-
/** Prioritize response speed */
|
|
249
|
-
fast?: boolean;
|
|
250
|
-
/** Require vision/image processing capability */
|
|
251
|
-
requireVision?: boolean;
|
|
252
|
-
/** Require function calling capability */
|
|
253
|
-
requireFunctionCalling?: boolean;
|
|
254
|
-
/** Exclude specific providers */
|
|
255
|
-
excludeProviders?: string[];
|
|
256
|
-
/** Prefer local/offline models */
|
|
257
|
-
preferLocal?: boolean;
|
|
258
|
-
/** Model name, alias, or partial match to resolve */
|
|
259
|
-
model?: string;
|
|
260
|
-
/** Enable fuzzy matching for partial names */
|
|
261
|
-
fuzzy?: boolean;
|
|
262
|
-
/** Model IDs or aliases to compare */
|
|
263
|
-
models?: string[];
|
|
264
|
-
/** Show detailed statistics breakdown */
|
|
265
|
-
detailed?: boolean;
|
|
266
|
-
/** Output format for models command */
|
|
267
|
-
format?: "table" | "json" | "compact";
|
|
268
|
-
/** List all available models */
|
|
269
|
-
list?: boolean;
|
|
270
|
-
/** Show model statistics */
|
|
271
|
-
stats?: boolean;
|
|
272
|
-
/** Show model pricing */
|
|
273
|
-
pricing?: boolean;
|
|
274
|
-
/** Resolve best model for criteria */
|
|
275
|
-
resolve?: boolean;
|
|
276
|
-
/** Maximum tokens filter */
|
|
277
|
-
maxTokens?: number;
|
|
278
|
-
};
|
|
279
|
-
/**
|
|
280
|
-
* Ollama command arguments
|
|
281
|
-
*/
|
|
282
|
-
export type OllamaCommandArgs = BaseCommandArgs & {
|
|
283
|
-
/** Ollama model name */
|
|
284
|
-
model?: string;
|
|
285
|
-
/** List available models */
|
|
286
|
-
list?: boolean;
|
|
287
|
-
/** Pull a model */
|
|
288
|
-
pull?: boolean;
|
|
289
|
-
/** Remove a model */
|
|
290
|
-
remove?: boolean;
|
|
291
|
-
/** Show model information */
|
|
292
|
-
show?: boolean;
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* SageMaker command arguments
|
|
296
|
-
*/
|
|
297
|
-
export type SageMakerCommandArgs = BaseCommandArgs & {
|
|
298
|
-
/** SageMaker endpoint name */
|
|
299
|
-
endpoint?: string;
|
|
300
|
-
/** Model name for the endpoint */
|
|
301
|
-
model?: string;
|
|
302
|
-
/** Test prompt for endpoint testing */
|
|
303
|
-
prompt?: string;
|
|
304
|
-
/** List endpoints */
|
|
305
|
-
list?: boolean;
|
|
306
|
-
/** Show configuration */
|
|
307
|
-
config?: boolean;
|
|
308
|
-
/** Setup configuration */
|
|
309
|
-
setup?: boolean;
|
|
310
|
-
/** Clear configuration cache */
|
|
311
|
-
clearCache?: boolean;
|
|
312
|
-
/** Run benchmark test */
|
|
313
|
-
benchmark?: boolean;
|
|
314
|
-
/** Duration for benchmark test (in seconds) */
|
|
315
|
-
duration?: number;
|
|
316
|
-
/** Concurrency level for benchmark */
|
|
317
|
-
concurrency?: number;
|
|
318
|
-
/** Number of requests for benchmark */
|
|
319
|
-
requests?: number;
|
|
320
|
-
/** Maximum tokens per request */
|
|
321
|
-
maxTokens?: number;
|
|
322
|
-
/** Validate endpoint configuration */
|
|
323
|
-
validate?: boolean;
|
|
324
|
-
/** AWS region override */
|
|
325
|
-
region?: string;
|
|
326
|
-
/** Force operation without confirmation */
|
|
327
|
-
force?: boolean;
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* Secure configuration container that avoids process.env exposure
|
|
331
|
-
*/
|
|
332
|
-
export type SecureConfiguration = {
|
|
333
|
-
accessKeyId: string;
|
|
334
|
-
secretAccessKey: string;
|
|
335
|
-
region: string;
|
|
336
|
-
endpointName: string;
|
|
337
|
-
timeout: number;
|
|
338
|
-
maxRetries: number;
|
|
339
|
-
sessionId: string;
|
|
340
|
-
createdAt: number;
|
|
341
|
-
};
|
|
342
|
-
/**
|
|
343
|
-
* Provider status command arguments
|
|
344
|
-
*/
|
|
345
|
-
export type ProviderStatusArgs = BaseCommandArgs & {
|
|
346
|
-
/** Specific provider to check */
|
|
347
|
-
provider?: string;
|
|
348
|
-
/** Check all providers */
|
|
349
|
-
all?: boolean;
|
|
350
|
-
};
|
|
351
|
-
/**
|
|
352
|
-
* CLI command result
|
|
353
|
-
*/
|
|
354
|
-
export type CommandResult = {
|
|
355
|
-
/** Command success status */
|
|
356
|
-
success: boolean;
|
|
357
|
-
/** Result data */
|
|
358
|
-
data?: unknown;
|
|
359
|
-
/** Error message if failed */
|
|
360
|
-
error?: string;
|
|
361
|
-
/** Output content */
|
|
362
|
-
content?: string;
|
|
363
|
-
/** Execution metadata */
|
|
364
|
-
metadata?: {
|
|
365
|
-
executionTime?: number;
|
|
366
|
-
timestamp?: number;
|
|
367
|
-
command?: string;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Generate command result
|
|
372
|
-
*/
|
|
373
|
-
export type CliGenerateResult = CommandResult & {
|
|
374
|
-
content: string;
|
|
375
|
-
provider?: string;
|
|
376
|
-
model?: string;
|
|
377
|
-
usage?: TokenUsage;
|
|
378
|
-
responseTime?: number;
|
|
379
|
-
toolCalls?: ToolCall[];
|
|
380
|
-
toolResults?: ToolResult[];
|
|
381
|
-
analytics?: AnalyticsData;
|
|
382
|
-
evaluation?: EvaluationData;
|
|
383
|
-
toolsUsed?: string[];
|
|
384
|
-
toolExecutions?: Array<{
|
|
385
|
-
toolName: string;
|
|
386
|
-
args: UnknownRecord;
|
|
387
|
-
result: unknown;
|
|
388
|
-
executionTime: number;
|
|
389
|
-
}>;
|
|
390
|
-
enhancedWithTools?: boolean;
|
|
391
|
-
availableTools?: Array<{
|
|
392
|
-
name: string;
|
|
393
|
-
description: string;
|
|
394
|
-
}>;
|
|
395
|
-
/** TTS audio result when TTS is enabled */
|
|
396
|
-
audio?: TTSResult;
|
|
397
|
-
/** Video generation result when video mode is enabled */
|
|
398
|
-
video?: VideoGenerationResult;
|
|
399
|
-
/** Avatar (talking-head) generation result when avatar mode is enabled */
|
|
400
|
-
avatar?: AvatarResult;
|
|
401
|
-
/** Music generation result when music mode is enabled */
|
|
402
|
-
music?: MusicResult;
|
|
403
|
-
/** PPT generation result when ppt mode is enabled */
|
|
404
|
-
ppt?: PPTGenerationResult;
|
|
405
|
-
imageOutput?: {
|
|
406
|
-
base64: string;
|
|
407
|
-
savedPath?: string;
|
|
408
|
-
} | null;
|
|
409
|
-
};
|
|
410
|
-
/**
|
|
411
|
-
* Stream result chunk
|
|
412
|
-
*/
|
|
413
|
-
export type CliStreamChunk = {
|
|
414
|
-
content?: string;
|
|
415
|
-
delta?: string;
|
|
416
|
-
done?: boolean;
|
|
417
|
-
metadata?: UnknownRecord;
|
|
418
|
-
};
|
|
419
|
-
/**
|
|
420
|
-
* CLI output formatting options
|
|
421
|
-
*/
|
|
422
|
-
export type OutputOptions = {
|
|
423
|
-
format: "text" | "json" | "table" | "yaml";
|
|
424
|
-
pretty?: boolean;
|
|
425
|
-
color?: boolean;
|
|
426
|
-
compact?: boolean;
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* Command handler function type
|
|
430
|
-
*/
|
|
431
|
-
export type CommandHandler<TArgs = BaseCommandArgs, TResult = CommandResult> = (args: TArgs) => Promise<TResult>;
|
|
432
|
-
/**
|
|
433
|
-
* Command definition
|
|
434
|
-
*/
|
|
435
|
-
export type CommandDefinition<TArgs = BaseCommandArgs> = {
|
|
436
|
-
name: string;
|
|
437
|
-
description: string;
|
|
438
|
-
aliases?: string[];
|
|
439
|
-
args?: {
|
|
440
|
-
[K in keyof TArgs]: {
|
|
441
|
-
type: "string" | "number" | "boolean";
|
|
442
|
-
description: string;
|
|
443
|
-
required?: boolean;
|
|
444
|
-
default?: TArgs[K];
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
handler: CommandHandler<TArgs>;
|
|
448
|
-
};
|
|
449
|
-
/**
|
|
450
|
-
* CLI context
|
|
451
|
-
*/
|
|
452
|
-
export type CLIContext = {
|
|
453
|
-
cwd: string;
|
|
454
|
-
args: string[];
|
|
455
|
-
env: NodeJS.ProcessEnv;
|
|
456
|
-
exitCode?: number;
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* Color mapping for CLI output
|
|
460
|
-
*/
|
|
461
|
-
export type ColorMap = {
|
|
462
|
-
[severity: string]: {
|
|
463
|
-
color: string;
|
|
464
|
-
symbol?: string;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* Display severity colors (for evaluation display)
|
|
469
|
-
*/
|
|
470
|
-
export type SeverityColors = {
|
|
471
|
-
[key: string]: {
|
|
472
|
-
color: string;
|
|
473
|
-
symbol: string;
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* JSON output structure
|
|
478
|
-
*/
|
|
479
|
-
export type JSONOutput = {
|
|
480
|
-
success: boolean;
|
|
481
|
-
data?: JsonValue;
|
|
482
|
-
error?: string;
|
|
483
|
-
metadata?: {
|
|
484
|
-
timestamp: number;
|
|
485
|
-
command: string;
|
|
486
|
-
version?: string;
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Console override for quiet mode
|
|
491
|
-
*/
|
|
492
|
-
export type ConsoleOverride = {
|
|
493
|
-
[method: string]: (() => void) | undefined;
|
|
494
|
-
};
|
|
495
|
-
/**
|
|
496
|
-
* Conversation choice for inquirer prompt
|
|
497
|
-
*/
|
|
498
|
-
export type ConversationChoice = {
|
|
499
|
-
name: string;
|
|
500
|
-
value: string | "NEW_CONVERSATION";
|
|
501
|
-
short: string;
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* Session restore result
|
|
505
|
-
*/
|
|
506
|
-
export type SessionRestoreResult = {
|
|
507
|
-
success: boolean;
|
|
508
|
-
sessionId: string;
|
|
509
|
-
messageCount: number;
|
|
510
|
-
error?: string;
|
|
511
|
-
lastActivity?: string;
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* Tool context for restored sessions
|
|
515
|
-
*/
|
|
516
|
-
export type RestorationToolContext = Record<string, unknown> & {
|
|
517
|
-
sessionId: string;
|
|
518
|
-
userId: string;
|
|
519
|
-
source: string;
|
|
520
|
-
restored: boolean;
|
|
521
|
-
timestamp: string;
|
|
522
|
-
};
|
|
523
|
-
/**
|
|
524
|
-
* Type guard for generate result
|
|
525
|
-
*/
|
|
526
|
-
export declare function isCliGenerateResult(value: unknown): value is CliGenerateResult;
|
|
527
|
-
/**
|
|
528
|
-
* Type guard for command result
|
|
529
|
-
*/
|
|
530
|
-
export declare function isCommandResult(value: unknown): value is CommandResult;
|
|
531
|
-
/**
|
|
532
|
-
* Environment file backup result
|
|
533
|
-
*/
|
|
534
|
-
export type EnvBackupResult = {
|
|
535
|
-
backupPath?: string;
|
|
536
|
-
existed: boolean;
|
|
537
|
-
};
|
|
538
|
-
/**
|
|
539
|
-
* Environment file update result
|
|
540
|
-
*/
|
|
541
|
-
export type EnvUpdateResult = {
|
|
542
|
-
backup: EnvBackupResult;
|
|
543
|
-
updated: string[];
|
|
544
|
-
added: string[];
|
|
545
|
-
unchanged: string[];
|
|
546
|
-
deleted: string[];
|
|
547
|
-
};
|
|
548
|
-
/**
|
|
549
|
-
* Provider configuration for interactive setup
|
|
550
|
-
*/
|
|
551
|
-
export type CLIProviderConfig = {
|
|
552
|
-
id: string;
|
|
553
|
-
name: string;
|
|
554
|
-
description: string;
|
|
555
|
-
envVars: Array<{
|
|
556
|
-
key: string;
|
|
557
|
-
prompt: string;
|
|
558
|
-
secure?: boolean;
|
|
559
|
-
default?: string;
|
|
560
|
-
optional?: boolean;
|
|
561
|
-
}>;
|
|
562
|
-
};
|
|
563
|
-
/**
|
|
564
|
-
* Interactive setup result
|
|
565
|
-
*/
|
|
566
|
-
export type CLISetupResult = {
|
|
567
|
-
selectedProviders: string[];
|
|
568
|
-
credentials: Record<string, string>;
|
|
569
|
-
envFileBackup?: string;
|
|
570
|
-
testResults: Array<{
|
|
571
|
-
provider: string;
|
|
572
|
-
status: "working" | "failed";
|
|
573
|
-
error?: string;
|
|
574
|
-
responseTime?: number;
|
|
575
|
-
}>;
|
|
576
|
-
};
|
|
577
|
-
/**
|
|
578
|
-
* Main setup command arguments
|
|
579
|
-
*/
|
|
580
|
-
export type SetupArgs = {
|
|
581
|
-
provider?: string;
|
|
582
|
-
list?: boolean;
|
|
583
|
-
status?: boolean;
|
|
584
|
-
interactive?: boolean;
|
|
585
|
-
help?: boolean;
|
|
586
|
-
check?: boolean;
|
|
587
|
-
nonInteractive?: boolean;
|
|
588
|
-
};
|
|
589
|
-
/**
|
|
590
|
-
* Narrowed ProviderInfo used by the main `neurolink setup` command,
|
|
591
|
-
* where the descriptive fields are always populated.
|
|
592
|
-
*/
|
|
593
|
-
export type SetupProviderInfo = ProviderInfo & Required<Pick<ProviderInfo, "bestFor" | "models" | "strengths" | "pricing" | "setupCommand">>;
|
|
594
|
-
/**
|
|
595
|
-
* Provider information for setup display
|
|
596
|
-
*/
|
|
597
|
-
export type ProviderInfo = {
|
|
598
|
-
id: string;
|
|
599
|
-
name: string;
|
|
600
|
-
emoji: string;
|
|
601
|
-
description: string;
|
|
602
|
-
setupTime: string;
|
|
603
|
-
cost: string;
|
|
604
|
-
difficulty?: "Easy" | "Medium" | "Hard";
|
|
605
|
-
features?: string[];
|
|
606
|
-
bestFor?: string;
|
|
607
|
-
models?: string;
|
|
608
|
-
strengths?: string;
|
|
609
|
-
pricing?: string;
|
|
610
|
-
setupCommand?: string;
|
|
611
|
-
handler?: (argv: {
|
|
612
|
-
check?: boolean;
|
|
613
|
-
nonInteractive?: boolean;
|
|
614
|
-
}) => Promise<void>;
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* Setup command factory arguments
|
|
618
|
-
*/
|
|
619
|
-
export type SetupCommandArgs = BaseCommandArgs & {
|
|
620
|
-
provider?: string;
|
|
621
|
-
check?: boolean;
|
|
622
|
-
list?: boolean;
|
|
623
|
-
status?: boolean;
|
|
624
|
-
interactive?: boolean;
|
|
625
|
-
nonInteractive?: boolean;
|
|
626
|
-
};
|
|
627
|
-
/**
|
|
628
|
-
* MCP server configuration for CLI
|
|
629
|
-
*/
|
|
630
|
-
export type CLIMCPServerConfig = {
|
|
631
|
-
name: string;
|
|
632
|
-
transport: "stdio" | "websocket" | "tcp" | "unix";
|
|
633
|
-
command?: string;
|
|
634
|
-
args?: string[];
|
|
635
|
-
env?: Record<string, string>;
|
|
636
|
-
url?: string;
|
|
637
|
-
description?: string;
|
|
638
|
-
};
|
|
639
|
-
/**
|
|
640
|
-
* OpenAI setup configuration types
|
|
641
|
-
*/
|
|
642
|
-
export declare namespace OpenAISetup {
|
|
643
|
-
type OpenAISetupOptions = {
|
|
644
|
-
checkOnly?: boolean;
|
|
645
|
-
interactive?: boolean;
|
|
646
|
-
};
|
|
647
|
-
type OpenAISetupArgv = {
|
|
648
|
-
check?: boolean;
|
|
649
|
-
nonInteractive?: boolean;
|
|
650
|
-
};
|
|
651
|
-
type OpenAISetupConfig = {
|
|
652
|
-
apiKey?: string;
|
|
653
|
-
organization?: string;
|
|
654
|
-
model?: string;
|
|
655
|
-
isReconfiguring?: boolean;
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* Anthropic setup configuration types
|
|
660
|
-
*/
|
|
661
|
-
export declare namespace AnthropicSetup {
|
|
662
|
-
type AnthropicSetupOptions = {
|
|
663
|
-
checkOnly?: boolean;
|
|
664
|
-
interactive?: boolean;
|
|
665
|
-
};
|
|
666
|
-
type AnthropicSetupArgv = {
|
|
667
|
-
check?: boolean;
|
|
668
|
-
nonInteractive?: boolean;
|
|
669
|
-
};
|
|
670
|
-
type AnthropicSetupConfig = {
|
|
671
|
-
apiKey?: string;
|
|
672
|
-
model?: string;
|
|
673
|
-
isReconfiguring?: boolean;
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* Google AI setup configuration types
|
|
678
|
-
*/
|
|
679
|
-
export declare namespace GoogleAISetup {
|
|
680
|
-
type GoogleAISetupOptions = {
|
|
681
|
-
checkOnly?: boolean;
|
|
682
|
-
interactive?: boolean;
|
|
683
|
-
};
|
|
684
|
-
type GoogleAISetupArgv = {
|
|
685
|
-
check?: boolean;
|
|
686
|
-
nonInteractive?: boolean;
|
|
687
|
-
};
|
|
688
|
-
type GoogleAISetupConfig = {
|
|
689
|
-
apiKey?: string;
|
|
690
|
-
model?: string;
|
|
691
|
-
isReconfiguring?: boolean;
|
|
692
|
-
};
|
|
693
|
-
}
|
|
694
|
-
/**
|
|
695
|
-
* Azure setup configuration types
|
|
696
|
-
*/
|
|
697
|
-
export declare namespace AzureSetup {
|
|
698
|
-
type AzureSetupOptions = {
|
|
699
|
-
checkOnly?: boolean;
|
|
700
|
-
interactive?: boolean;
|
|
701
|
-
};
|
|
702
|
-
type AzureSetupArgv = {
|
|
703
|
-
check?: boolean;
|
|
704
|
-
nonInteractive?: boolean;
|
|
705
|
-
};
|
|
706
|
-
type AzureSetupConfig = {
|
|
707
|
-
apiKey?: string;
|
|
708
|
-
endpoint?: string;
|
|
709
|
-
deploymentName?: string;
|
|
710
|
-
apiVersion?: string;
|
|
711
|
-
model?: string;
|
|
712
|
-
isReconfiguring?: boolean;
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* AWS Bedrock setup configuration types
|
|
717
|
-
*/
|
|
718
|
-
export declare namespace BedrockSetup {
|
|
719
|
-
type BedrockSetupOptions = {
|
|
720
|
-
checkOnly?: boolean;
|
|
721
|
-
interactive?: boolean;
|
|
722
|
-
};
|
|
723
|
-
type BedrockSetupArgv = {
|
|
724
|
-
check?: boolean;
|
|
725
|
-
nonInteractive?: boolean;
|
|
726
|
-
};
|
|
727
|
-
type ConfigData = {
|
|
728
|
-
region?: string;
|
|
729
|
-
accessKeyId?: string;
|
|
730
|
-
secretAccessKey?: string;
|
|
731
|
-
model?: string;
|
|
732
|
-
};
|
|
733
|
-
type ConfigStatus = {
|
|
734
|
-
hasCredentials: boolean;
|
|
735
|
-
hasRegion: boolean;
|
|
736
|
-
hasModel: boolean;
|
|
737
|
-
isReconfiguring?: boolean;
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* GCP/Vertex AI setup configuration types
|
|
742
|
-
*/
|
|
743
|
-
export declare namespace GCPSetup {
|
|
744
|
-
type GCPSetupOptions = {
|
|
745
|
-
checkOnly?: boolean;
|
|
746
|
-
interactive?: boolean;
|
|
747
|
-
};
|
|
748
|
-
type GCPSetupArgv = {
|
|
749
|
-
check?: boolean;
|
|
750
|
-
nonInteractive?: boolean;
|
|
751
|
-
};
|
|
752
|
-
type AuthMethodStatus = {
|
|
753
|
-
hasServiceAccount: boolean;
|
|
754
|
-
hasGcloudAuth: boolean;
|
|
755
|
-
hasApplicationDefault: boolean;
|
|
756
|
-
preferredMethod?: "service-account" | "gcloud" | "adc";
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Hugging Face setup configuration types
|
|
761
|
-
*/
|
|
762
|
-
export declare namespace HuggingFaceSetup {
|
|
763
|
-
type HuggingFaceSetupArgs = {
|
|
764
|
-
check?: boolean;
|
|
765
|
-
nonInteractive?: boolean;
|
|
766
|
-
help?: boolean;
|
|
767
|
-
};
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Mistral setup configuration types
|
|
771
|
-
*/
|
|
772
|
-
export declare namespace MistralSetup {
|
|
773
|
-
type MistralSetupArgs = {
|
|
774
|
-
check?: boolean;
|
|
775
|
-
nonInteractive?: boolean;
|
|
776
|
-
help?: boolean;
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
/** Arguments accepted by `neurolink proxy start` */
|
|
780
|
-
export type ProxyStartArgs = {
|
|
781
|
-
port?: number;
|
|
782
|
-
host?: string;
|
|
783
|
-
strategy?: string;
|
|
784
|
-
healthInterval?: number;
|
|
785
|
-
quiet?: boolean;
|
|
786
|
-
debug?: boolean;
|
|
787
|
-
config?: string;
|
|
788
|
-
envFile?: string;
|
|
789
|
-
passthrough?: boolean;
|
|
790
|
-
dev?: boolean;
|
|
791
|
-
};
|
|
792
|
-
/** Arguments accepted by `neurolink proxy status` */
|
|
793
|
-
export type ProxyStatusArgs = {
|
|
794
|
-
format?: "text" | "json";
|
|
795
|
-
quiet?: boolean;
|
|
796
|
-
};
|
|
797
|
-
/** Arguments accepted by `neurolink proxy analyze` */
|
|
798
|
-
export type ProxyAnalyzeArgs = {
|
|
799
|
-
logsDir?: string;
|
|
800
|
-
since?: string;
|
|
801
|
-
until?: string;
|
|
802
|
-
format?: "text" | "json";
|
|
803
|
-
quiet?: boolean;
|
|
804
|
-
};
|
|
805
|
-
/** Arguments accepted by `neurolink proxy replay <export|compare>`. */
|
|
806
|
-
export type ProxyReplayArgs = {
|
|
807
|
-
action?: "export" | "compare";
|
|
808
|
-
requestId?: string;
|
|
809
|
-
attempt?: number;
|
|
810
|
-
logsDir?: string;
|
|
811
|
-
bundle?: string;
|
|
812
|
-
output?: string;
|
|
813
|
-
execute?: boolean;
|
|
814
|
-
headerEnv?: string[];
|
|
815
|
-
bodyFile?: string;
|
|
816
|
-
url?: string;
|
|
817
|
-
timeoutMs?: number;
|
|
818
|
-
format?: "text" | "json";
|
|
819
|
-
quiet?: boolean;
|
|
820
|
-
};
|
|
821
|
-
/** Arguments accepted by hidden `neurolink proxy guard` command */
|
|
822
|
-
export type ProxyGuardArgs = {
|
|
823
|
-
host?: string;
|
|
824
|
-
port?: number;
|
|
825
|
-
parentPid?: number;
|
|
826
|
-
maxWaitMs?: number;
|
|
827
|
-
failureThreshold?: number;
|
|
828
|
-
pollIntervalMs?: number;
|
|
829
|
-
quiet?: boolean;
|
|
830
|
-
/** Run update checks only; never mutate client settings. */
|
|
831
|
-
updaterOnly?: boolean;
|
|
832
|
-
};
|
|
833
|
-
/** Arguments accepted by `neurolink proxy telemetry <subcommand>` */
|
|
834
|
-
export type ProxyTelemetryArgs = {
|
|
835
|
-
action?: "setup" | "start" | "stop" | "status" | "logs" | "import-dashboard";
|
|
836
|
-
quiet?: boolean;
|
|
837
|
-
};
|
|
838
|
-
/** A fallback chain entry (serialisable subset of FallbackEntry) */
|
|
839
|
-
export type FallbackInfo = {
|
|
840
|
-
provider: string;
|
|
841
|
-
model: string;
|
|
842
|
-
};
|
|
843
|
-
export type ProxyRollingState = {
|
|
844
|
-
generation: number;
|
|
845
|
-
active: {
|
|
846
|
-
pid: number;
|
|
847
|
-
version: string;
|
|
848
|
-
generation: number;
|
|
849
|
-
} | null;
|
|
850
|
-
candidate: {
|
|
851
|
-
pid: number;
|
|
852
|
-
expectedVersion: string;
|
|
853
|
-
generation: number;
|
|
854
|
-
} | null;
|
|
855
|
-
draining: Array<{
|
|
856
|
-
pid: number;
|
|
857
|
-
version: string;
|
|
858
|
-
generation: number;
|
|
859
|
-
}>;
|
|
860
|
-
queuedSockets: number;
|
|
861
|
-
rejectedSockets: number;
|
|
862
|
-
failedTransfers: number;
|
|
863
|
-
lastFailure: {
|
|
864
|
-
at: string;
|
|
865
|
-
generation: number;
|
|
866
|
-
version: string;
|
|
867
|
-
phase: "startup" | "activation" | "runtime" | "transfer";
|
|
868
|
-
message: string;
|
|
869
|
-
workerPid?: number;
|
|
870
|
-
workerExitCode?: number | null;
|
|
871
|
-
workerExitSignal?: string | null;
|
|
872
|
-
supervisorAction?: "none" | "sigkill_after_transfer_failure";
|
|
873
|
-
} | null;
|
|
874
|
-
};
|
|
875
|
-
export type ProxySupervisorState = {
|
|
876
|
-
pid: number;
|
|
877
|
-
host: string;
|
|
878
|
-
port: number;
|
|
879
|
-
startTime: string;
|
|
880
|
-
/** Version loaded by the long-lived supervisor process. */
|
|
881
|
-
version?: string;
|
|
882
|
-
updaterPid?: number;
|
|
883
|
-
rolling: ProxyRollingState;
|
|
884
|
-
};
|
|
885
|
-
/** Persisted state for a running proxy instance */
|
|
886
|
-
export type ProxyState = {
|
|
887
|
-
pid: number;
|
|
888
|
-
port: number;
|
|
889
|
-
host: string;
|
|
890
|
-
strategy: string;
|
|
891
|
-
startTime: string;
|
|
892
|
-
ready?: boolean;
|
|
893
|
-
readyAt?: string;
|
|
894
|
-
healthPath?: string;
|
|
895
|
-
statusPath?: string;
|
|
896
|
-
envFile?: string;
|
|
897
|
-
/** Fallback chain from proxy config (persisted at start time) */
|
|
898
|
-
fallbackChain?: FallbackInfo[];
|
|
899
|
-
/** Normalized Anthropic account keys allowed for this proxy process. */
|
|
900
|
-
accountAllowlist?: string[];
|
|
901
|
-
/** Optional fail-open guard PID that reverts Claude settings if proxy dies */
|
|
902
|
-
guardPid?: number;
|
|
903
|
-
/** Dedicated updater PID for launchd-managed proxy installations. */
|
|
904
|
-
updaterPid?: number;
|
|
905
|
-
/** Stable listener supervisor PID when requests are served by socket workers. */
|
|
906
|
-
supervisorPid?: number;
|
|
907
|
-
/** How the proxy was launched — "launchd" if installed as service, "manual" otherwise */
|
|
908
|
-
managedBy?: "launchd" | "manual";
|
|
909
|
-
/** Whether the proxy is running in transparent passthrough mode */
|
|
910
|
-
passthrough?: boolean;
|
|
911
|
-
/** Active hot-reload configuration generation. */
|
|
912
|
-
configGeneration?: number;
|
|
913
|
-
/** Timestamp when the active configuration generation was loaded. */
|
|
914
|
-
configLoadedAt?: string;
|
|
915
|
-
/** Last rejected hot-reload error, when any. */
|
|
916
|
-
lastConfigReloadError?: string;
|
|
917
|
-
/** Absolute path watched for proxy routing configuration changes. */
|
|
918
|
-
configFile?: string;
|
|
919
|
-
};
|
|
920
|
-
/** Stored credentials for an authenticated provider. */
|
|
921
|
-
export type StoredCredentials = {
|
|
922
|
-
type: "api-key" | "oauth";
|
|
923
|
-
apiKey?: string;
|
|
924
|
-
oauth?: OAuthTokens;
|
|
925
|
-
provider: string;
|
|
926
|
-
subscriptionTier?: ClaudeSubscriptionTier;
|
|
927
|
-
email?: string;
|
|
928
|
-
createdAt: number;
|
|
929
|
-
updatedAt: number;
|
|
930
|
-
};
|
|
931
|
-
/** Result of checking authentication status for a provider. */
|
|
932
|
-
export type AuthStatusResult = {
|
|
933
|
-
provider: string;
|
|
934
|
-
isAuthenticated: boolean;
|
|
935
|
-
method: "api-key" | "oauth" | "none";
|
|
936
|
-
subscriptionTier?: string;
|
|
937
|
-
tokenExpiry?: string;
|
|
938
|
-
hasRefreshToken?: boolean;
|
|
939
|
-
needsRefresh?: boolean;
|
|
940
|
-
};
|
|
941
|
-
/** Auth command arguments interface */
|
|
942
|
-
export type AuthCommandArgs = BaseCommandArgs & {
|
|
943
|
-
provider?: string;
|
|
944
|
-
method?: "api-key" | "oauth" | "create-api-key";
|
|
945
|
-
format?: "text" | "json";
|
|
946
|
-
quiet?: boolean;
|
|
947
|
-
debug?: boolean;
|
|
948
|
-
nonInteractive?: boolean;
|
|
949
|
-
add?: boolean;
|
|
950
|
-
label?: string;
|
|
951
|
-
account?: string;
|
|
952
|
-
force?: boolean;
|
|
953
|
-
/** `auth list --refresh`: fetch fresh limits from Anthropic before listing */
|
|
954
|
-
refresh?: boolean;
|
|
955
|
-
/** Path to the proxy config YAML, used by set-/get-/clear-primary */
|
|
956
|
-
config?: string;
|
|
957
|
-
/** Email passed to `auth set-primary <email>` */
|
|
958
|
-
email?: string;
|
|
959
|
-
/** Why an account is being disabled, recorded by `auth disable` */
|
|
960
|
-
reason?: string;
|
|
961
|
-
/** Subcommand verb for `auth cooldown <action>` */
|
|
962
|
-
action?: string;
|
|
963
|
-
/** `auth cooldown clear --all` */
|
|
964
|
-
all?: boolean;
|
|
965
|
-
/** Yargs positional arguments */
|
|
966
|
-
_?: (string | number)[];
|
|
967
|
-
};
|
|
968
|
-
/** Outcome of the `auth list --refresh` fresh-limit fetch. */
|
|
969
|
-
export type AuthListRefreshOutcome = {
|
|
970
|
-
/** How the fresh limits were obtained ("none" when every path failed). */
|
|
971
|
-
via: "proxy" | "direct" | "none";
|
|
972
|
-
/** Freshly fetched quotas keyed by account label; null when none fetched. */
|
|
973
|
-
quotas: Record<string, AccountQuota> | null;
|
|
974
|
-
/** Per-account and transport errors, already formatted for display. */
|
|
975
|
-
errors: string[];
|
|
976
|
-
};
|
|
977
|
-
/** Telemetry command arguments */
|
|
978
|
-
export type TelemetryCommandArgs = {
|
|
979
|
-
format?: "text" | "json" | "table";
|
|
980
|
-
quiet?: boolean;
|
|
981
|
-
};
|
|
982
|
-
/** Telemetry status sub-command args */
|
|
983
|
-
export type TelemetryStatusArgs = TelemetryCommandArgs;
|
|
984
|
-
/** Telemetry configure sub-command args */
|
|
985
|
-
export type TelemetryConfigureArgs = TelemetryCommandArgs & {
|
|
986
|
-
exporter: string;
|
|
987
|
-
config: string;
|
|
988
|
-
};
|
|
989
|
-
/** Telemetry list-exporters sub-command args */
|
|
990
|
-
export type TelemetryListExportersArgs = TelemetryCommandArgs;
|
|
991
|
-
/** Telemetry flush sub-command args */
|
|
992
|
-
export type TelemetryFlushArgs = TelemetryCommandArgs & {
|
|
993
|
-
timeout?: number;
|
|
994
|
-
};
|
|
995
|
-
/** Telemetry stats sub-command args */
|
|
996
|
-
export type TelemetryStatsArgs = TelemetryCommandArgs & {
|
|
997
|
-
detailed?: boolean;
|
|
998
|
-
byModel?: boolean;
|
|
999
|
-
byProvider?: boolean;
|
|
1000
|
-
};
|
|
1001
|
-
/** Available exporter names */
|
|
1002
|
-
export type ExporterName = "langfuse" | "langsmith" | "otel" | "datadog" | "sentry" | "braintrust" | "arize" | "posthog" | "laminar";
|
|
1003
|
-
/** Observability command arguments */
|
|
1004
|
-
export type ObservabilityCommandArgs = {
|
|
1005
|
-
format?: "text" | "json" | "table";
|
|
1006
|
-
quiet?: boolean;
|
|
1007
|
-
};
|
|
1008
|
-
/** Observability status sub-command args */
|
|
1009
|
-
export type ObservabilityStatusArgs = ObservabilityCommandArgs;
|
|
1010
|
-
/** Observability metrics sub-command args */
|
|
1011
|
-
export type ObservabilityMetricsArgs = ObservabilityCommandArgs & {
|
|
1012
|
-
detailed?: boolean;
|
|
1013
|
-
};
|
|
1014
|
-
/** Observability exporters sub-command args */
|
|
1015
|
-
export type ObservabilityExportersArgs = ObservabilityCommandArgs;
|
|
1016
|
-
/** Observability costs sub-command args */
|
|
1017
|
-
export type ObservabilityCostsArgs = ObservabilityCommandArgs & {
|
|
1018
|
-
byModel?: boolean;
|
|
1019
|
-
byProvider?: boolean;
|
|
1020
|
-
};
|
|
1021
|
-
/** Docs command arguments */
|
|
1022
|
-
export type DocsCommandArgs = {
|
|
1023
|
-
transport?: "stdio" | "http";
|
|
1024
|
-
port?: number;
|
|
1025
|
-
};
|
|
1026
|
-
/** Server command arguments */
|
|
1027
|
-
export type ServerCommandArgs = {
|
|
1028
|
-
port?: number;
|
|
1029
|
-
host?: string;
|
|
1030
|
-
framework?: "hono" | "express" | "fastify" | "koa";
|
|
1031
|
-
basePath?: string;
|
|
1032
|
-
cors?: boolean;
|
|
1033
|
-
rateLimit?: boolean;
|
|
1034
|
-
quiet?: boolean;
|
|
1035
|
-
format?: "text" | "json" | "yaml";
|
|
1036
|
-
output?: string;
|
|
1037
|
-
debug?: boolean;
|
|
1038
|
-
};
|
|
1039
|
-
/** Server status stored in state file */
|
|
1040
|
-
export type ServerState = {
|
|
1041
|
-
pid: number;
|
|
1042
|
-
port: number;
|
|
1043
|
-
host: string;
|
|
1044
|
-
framework: ServerFramework;
|
|
1045
|
-
startTime: string;
|
|
1046
|
-
basePath: string;
|
|
1047
|
-
};
|
|
1048
|
-
/** Server configuration stored in config file */
|
|
1049
|
-
export type ServerConfig = {
|
|
1050
|
-
defaultPort: number;
|
|
1051
|
-
defaultHost: string;
|
|
1052
|
-
defaultFramework: "hono" | "express" | "fastify" | "koa";
|
|
1053
|
-
defaultBasePath: string;
|
|
1054
|
-
cors: {
|
|
1055
|
-
enabled: boolean;
|
|
1056
|
-
origins?: string[];
|
|
1057
|
-
};
|
|
1058
|
-
rateLimit: {
|
|
1059
|
-
enabled: boolean;
|
|
1060
|
-
windowMs?: number;
|
|
1061
|
-
maxRequests?: number;
|
|
1062
|
-
};
|
|
1063
|
-
swagger: {
|
|
1064
|
-
enabled: boolean;
|
|
1065
|
-
path?: string;
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
/** Serve command arguments */
|
|
1069
|
-
export type ServeCommandArgs = {
|
|
1070
|
-
port?: number;
|
|
1071
|
-
host?: string;
|
|
1072
|
-
framework?: ServerFramework;
|
|
1073
|
-
basePath?: string;
|
|
1074
|
-
cors?: boolean;
|
|
1075
|
-
rateLimit?: number;
|
|
1076
|
-
swagger?: boolean;
|
|
1077
|
-
config?: string;
|
|
1078
|
-
watch?: boolean;
|
|
1079
|
-
quiet?: boolean;
|
|
1080
|
-
debug?: boolean;
|
|
1081
|
-
format?: "text" | "json";
|
|
1082
|
-
};
|
|
1083
|
-
/** Server configuration file format */
|
|
1084
|
-
export type ServerConfigFile = {
|
|
1085
|
-
port?: number;
|
|
1086
|
-
host?: string;
|
|
1087
|
-
framework?: ServerFramework;
|
|
1088
|
-
basePath?: string;
|
|
1089
|
-
cors?: {
|
|
1090
|
-
enabled?: boolean;
|
|
1091
|
-
origins?: string[];
|
|
1092
|
-
methods?: string[];
|
|
1093
|
-
headers?: string[];
|
|
1094
|
-
credentials?: boolean;
|
|
1095
|
-
maxAge?: number;
|
|
1096
|
-
};
|
|
1097
|
-
rateLimit?: {
|
|
1098
|
-
enabled?: boolean;
|
|
1099
|
-
windowMs?: number;
|
|
1100
|
-
maxRequests?: number;
|
|
1101
|
-
message?: string;
|
|
1102
|
-
skipPaths?: string[];
|
|
1103
|
-
};
|
|
1104
|
-
bodyParser?: {
|
|
1105
|
-
enabled?: boolean;
|
|
1106
|
-
maxSize?: string;
|
|
1107
|
-
jsonLimit?: string;
|
|
1108
|
-
urlEncoded?: boolean;
|
|
1109
|
-
};
|
|
1110
|
-
logging?: {
|
|
1111
|
-
enabled?: boolean;
|
|
1112
|
-
level?: "debug" | "info" | "warn" | "error";
|
|
1113
|
-
includeBody?: boolean;
|
|
1114
|
-
includeResponse?: boolean;
|
|
1115
|
-
};
|
|
1116
|
-
timeout?: number;
|
|
1117
|
-
enableMetrics?: boolean;
|
|
1118
|
-
enableSwagger?: boolean;
|
|
1119
|
-
};
|
|
1120
|
-
/** Menu choice type for conversation selector (includes separators). */
|
|
1121
|
-
export type MenuChoice = ConversationChoice | {
|
|
1122
|
-
type: "separator";
|
|
1123
|
-
line?: string;
|
|
1124
|
-
};
|
|
1125
|
-
/**
|
|
1126
|
-
* Type for language models that expose the low-level doGenerate method.
|
|
1127
|
-
* Used by SageMaker CLI commands for direct endpoint testing and benchmarking.
|
|
1128
|
-
*/
|
|
1129
|
-
export type DoGenerateModel = {
|
|
1130
|
-
doGenerate(options: Record<string, unknown>): Promise<{
|
|
1131
|
-
text?: string;
|
|
1132
|
-
finishReason?: string;
|
|
1133
|
-
usage: {
|
|
1134
|
-
/** Token count for the prompt (Vercel AI SDK convention) */
|
|
1135
|
-
promptTokens?: number;
|
|
1136
|
-
/** Token count for the completion (Vercel AI SDK convention) */
|
|
1137
|
-
completionTokens?: number;
|
|
1138
|
-
/** Token count for the input (SageMaker/provider convention) */
|
|
1139
|
-
inputTokens?: number;
|
|
1140
|
-
/** Token count for the output (SageMaker/provider convention) */
|
|
1141
|
-
outputTokens?: number;
|
|
1142
|
-
totalTokens?: number;
|
|
1143
|
-
};
|
|
1144
|
-
}>;
|
|
1145
|
-
};
|
|
1146
|
-
/** Redis client type (awaited return of createRedisClient). */
|
|
1147
|
-
export type CliRedisClient = {
|
|
1148
|
-
get: (key: string) => Promise<string | null>;
|
|
1149
|
-
set: (key: string, value: string, options?: unknown) => Promise<unknown>;
|
|
1150
|
-
del: (key: string) => Promise<number>;
|
|
1151
|
-
keys: (pattern: string) => Promise<string[]>;
|
|
1152
|
-
quit: () => Promise<void>;
|
|
1153
|
-
[key: string]: unknown;
|
|
1154
|
-
};
|
|
1155
|
-
/**
|
|
1156
|
-
* Auth command argument types
|
|
1157
|
-
*/
|
|
1158
|
-
export type AuthProvidersArgs = {
|
|
1159
|
-
format?: "text" | "json" | "table";
|
|
1160
|
-
};
|
|
1161
|
-
export type AuthValidateArgs = {
|
|
1162
|
-
token: string;
|
|
1163
|
-
provider: AuthProviderType;
|
|
1164
|
-
domain?: string;
|
|
1165
|
-
clientId?: string;
|
|
1166
|
-
secretKey?: string;
|
|
1167
|
-
secret?: string;
|
|
1168
|
-
url?: string;
|
|
1169
|
-
anonKey?: string;
|
|
1170
|
-
apiKey?: string;
|
|
1171
|
-
format?: "text" | "json";
|
|
1172
|
-
};
|
|
1173
|
-
export type AuthHealthArgs = {
|
|
1174
|
-
provider: AuthProviderType;
|
|
1175
|
-
domain?: string;
|
|
1176
|
-
clientId?: string;
|
|
1177
|
-
secretKey?: string;
|
|
1178
|
-
secret?: string;
|
|
1179
|
-
url?: string;
|
|
1180
|
-
anonKey?: string;
|
|
1181
|
-
apiKey?: string;
|
|
1182
|
-
format?: "text" | "json";
|
|
1183
|
-
};
|
|
1184
|
-
export type SetupResult = {
|
|
1185
|
-
selectedProviders: AIProviderName[];
|
|
1186
|
-
credentials: Record<string, string>;
|
|
1187
|
-
envFileBackup?: string;
|
|
1188
|
-
testResults: Array<{
|
|
1189
|
-
provider: AIProviderName;
|
|
1190
|
-
status: "working" | "failed";
|
|
1191
|
-
error?: string;
|
|
1192
|
-
responseTime?: number;
|
|
1193
|
-
}>;
|
|
1194
|
-
};
|
|
1195
|
-
/**
|
|
1196
|
-
* Shared options for every provider-specific CLI setup command
|
|
1197
|
-
* (anthropic, azure, bedrock, gcp, google-ai, openai).
|
|
1198
|
-
*/
|
|
1199
|
-
export type ProviderSetupOptions = {
|
|
1200
|
-
checkOnly?: boolean;
|
|
1201
|
-
interactive?: boolean;
|
|
1202
|
-
};
|
|
1203
|
-
/** Shared yargs-argv shape for every provider-specific CLI setup command. */
|
|
1204
|
-
export type ProviderSetupArgv = {
|
|
1205
|
-
check?: boolean;
|
|
1206
|
-
nonInteractive?: boolean;
|
|
1207
|
-
};
|
|
1208
|
-
/**
|
|
1209
|
-
* Superset provider-setup config. `endpoint` is Azure-only; other providers
|
|
1210
|
-
* leave it undefined. Pre-consolidation there were 4 near-duplicate types
|
|
1211
|
-
* (Anthropic/Azure/GoogleAI/OpenAI); they are now one.
|
|
1212
|
-
*/
|
|
1213
|
-
export type ProviderSetupConfig = {
|
|
1214
|
-
apiKey?: string;
|
|
1215
|
-
model?: string;
|
|
1216
|
-
endpoint?: string;
|
|
1217
|
-
isReconfiguring?: boolean;
|
|
1218
|
-
};
|
|
1219
|
-
/** Providers supported by the `neurolink auth` command. */
|
|
1220
|
-
export type SupportedProvider = "anthropic" | "codex";
|
|
1221
|
-
/** Arguments for `neurolink autoresearch init`. */
|
|
1222
|
-
export type AutoresearchInitArgs = {
|
|
1223
|
-
repoPath: string;
|
|
1224
|
-
tag: string;
|
|
1225
|
-
target: string;
|
|
1226
|
-
immutable: string;
|
|
1227
|
-
runCommand: string;
|
|
1228
|
-
metricName: string;
|
|
1229
|
-
metricPattern: string;
|
|
1230
|
-
metricDirection: string;
|
|
1231
|
-
timeout: number;
|
|
1232
|
-
provider?: string;
|
|
1233
|
-
model?: string;
|
|
1234
|
-
};
|
|
1235
|
-
/** Base options shared across all `neurolink evaluate` subcommands. */
|
|
1236
|
-
export type BaseEvaluateArgs = {
|
|
1237
|
-
json?: boolean;
|
|
1238
|
-
verbose?: boolean;
|
|
1239
|
-
format?: "text" | "json" | "table";
|
|
1240
|
-
};
|
|
1241
|
-
/** Arguments for the bare `neurolink evaluate` invocation. */
|
|
1242
|
-
export type DirectEvaluateArgs = BaseEvaluateArgs & {
|
|
1243
|
-
input?: string;
|
|
1244
|
-
query?: string;
|
|
1245
|
-
scorers?: string[];
|
|
1246
|
-
context?: string;
|
|
1247
|
-
threshold?: number;
|
|
1248
|
-
};
|
|
1249
|
-
/** Arguments for `neurolink evaluate run`. */
|
|
1250
|
-
export type EvaluateRunArgs = BaseEvaluateArgs & {
|
|
1251
|
-
input?: string;
|
|
1252
|
-
output?: string;
|
|
1253
|
-
context?: string[];
|
|
1254
|
-
groundTruth?: string;
|
|
1255
|
-
pipeline?: string;
|
|
1256
|
-
scorer?: string[];
|
|
1257
|
-
};
|
|
1258
|
-
/** Arguments for `neurolink evaluate score`. */
|
|
1259
|
-
export type EvaluateScoreArgs = BaseEvaluateArgs & {
|
|
1260
|
-
scorer: string;
|
|
1261
|
-
input?: string;
|
|
1262
|
-
output?: string;
|
|
1263
|
-
context?: string[];
|
|
1264
|
-
groundTruth?: string;
|
|
1265
|
-
};
|
|
1266
|
-
/** Arguments for `neurolink evaluate report`. */
|
|
1267
|
-
export type EvaluateReportArgs = BaseEvaluateArgs & {
|
|
1268
|
-
input?: string;
|
|
1269
|
-
output?: string;
|
|
1270
|
-
context?: string[];
|
|
1271
|
-
groundTruth?: string;
|
|
1272
|
-
"ground-truth"?: string;
|
|
1273
|
-
pipeline?: string;
|
|
1274
|
-
scorer?: string[];
|
|
1275
|
-
outputFile?: string;
|
|
1276
|
-
"output-file"?: string;
|
|
1277
|
-
};
|
|
1278
|
-
/** Arguments for `neurolink evaluate presets`. */
|
|
1279
|
-
export type EvaluatePresetsArgs = {
|
|
1280
|
-
preset?: string;
|
|
1281
|
-
json?: boolean;
|
|
1282
|
-
};
|
|
1283
|
-
/** Arguments for `neurolink evaluate scorers` (list-scorers). */
|
|
1284
|
-
export type EvaluateScorersArgs = {
|
|
1285
|
-
category?: string;
|
|
1286
|
-
type?: string;
|
|
1287
|
-
json?: boolean;
|
|
1288
|
-
detailed?: boolean;
|
|
1289
|
-
};
|
|
1290
|
-
/** Arguments for `neurolink evaluate run-pipeline`. */
|
|
1291
|
-
export type RunPipelineArgs = BaseEvaluateArgs & {
|
|
1292
|
-
preset: string;
|
|
1293
|
-
input: string;
|
|
1294
|
-
query?: string;
|
|
1295
|
-
context?: string;
|
|
1296
|
-
threshold?: number;
|
|
1297
|
-
};
|
|
1298
|
-
/** Info row for an MCP tool annotation. */
|
|
1299
|
-
export type ToolAnnotationInfo = {
|
|
1300
|
-
serverName: string;
|
|
1301
|
-
serverId: string;
|
|
1302
|
-
toolName: string;
|
|
1303
|
-
description: string;
|
|
1304
|
-
annotations: import("./mcp.js").MCPToolAnnotations;
|
|
1305
|
-
};
|
|
1306
|
-
/** Tool target used by the annotation printer. */
|
|
1307
|
-
export type AnnotatedToolTarget = {
|
|
1308
|
-
name: string;
|
|
1309
|
-
description: string;
|
|
1310
|
-
serverId: string;
|
|
1311
|
-
serverName: string;
|
|
1312
|
-
};
|
|
1313
|
-
/** Arguments for `neurolink rag chunk`. */
|
|
1314
|
-
export type RagChunkArgs = import("./rag.js").RAGCommandArgs & {
|
|
1315
|
-
file: string;
|
|
1316
|
-
output?: string;
|
|
1317
|
-
extract?: boolean;
|
|
1318
|
-
};
|
|
1319
|
-
/** Arguments for `neurolink rag index`. */
|
|
1320
|
-
export type RagIndexArgs = import("./rag.js").RAGCommandArgs & {
|
|
1321
|
-
file: string;
|
|
1322
|
-
indexName?: string;
|
|
1323
|
-
};
|
|
1324
|
-
/** Arguments for `neurolink rag query`. */
|
|
1325
|
-
export type RagQueryArgs = import("./rag.js").RAGCommandArgs & {
|
|
1326
|
-
query: string;
|
|
1327
|
-
indexName?: string;
|
|
1328
|
-
};
|
|
1329
|
-
/** Minimal server instance contract used by `neurolink serve`. */
|
|
1330
|
-
export type ServerInstance = {
|
|
1331
|
-
initialize: () => Promise<void>;
|
|
1332
|
-
start: () => Promise<void>;
|
|
1333
|
-
stop: () => Promise<void>;
|
|
1334
|
-
registerRouteGroup: (group: import("./server.js").RouteGroup) => void;
|
|
1335
|
-
listRoutes?: () => import("./server.js").RouteDefinition[];
|
|
1336
|
-
};
|
|
1337
|
-
/** Persisted state for a running `neurolink serve` process. */
|
|
1338
|
-
export type ServeState = {
|
|
1339
|
-
pid: number;
|
|
1340
|
-
port: number;
|
|
1341
|
-
host: string;
|
|
1342
|
-
framework: string;
|
|
1343
|
-
startTime: string;
|
|
1344
|
-
basePath: string;
|
|
1345
|
-
configFile?: string;
|
|
1346
|
-
};
|
|
1347
|
-
/** Captured Bedrock setup configuration data. */
|
|
1348
|
-
export type BedrockConfigData = {
|
|
1349
|
-
accessKeyId?: string;
|
|
1350
|
-
secretAccessKey?: string;
|
|
1351
|
-
region?: string;
|
|
1352
|
-
model?: string;
|
|
1353
|
-
};
|
|
1354
|
-
/** Status of Bedrock setup configuration flags. */
|
|
1355
|
-
export type BedrockConfigStatus = {
|
|
1356
|
-
hasAccessKey: boolean;
|
|
1357
|
-
hasSecretKey: boolean;
|
|
1358
|
-
hasRegion: boolean;
|
|
1359
|
-
};
|
|
1360
|
-
/** Status of each GCP auth method tried by setup-gcp. */
|
|
1361
|
-
export type GcpAuthMethodStatus = {
|
|
1362
|
-
method1: {
|
|
1363
|
-
complete: boolean;
|
|
1364
|
-
hasCredentials: boolean;
|
|
1365
|
-
missingVars: string[];
|
|
1366
|
-
};
|
|
1367
|
-
method2: {
|
|
1368
|
-
complete: boolean;
|
|
1369
|
-
hasServiceAccountKey: boolean;
|
|
1370
|
-
missingVars: string[];
|
|
1371
|
-
};
|
|
1372
|
-
method3: {
|
|
1373
|
-
complete: boolean;
|
|
1374
|
-
hasClientEmail: boolean;
|
|
1375
|
-
hasPrivateKey: boolean;
|
|
1376
|
-
missingVars: string[];
|
|
1377
|
-
};
|
|
1378
|
-
common: {
|
|
1379
|
-
hasProject: boolean;
|
|
1380
|
-
hasLocation: boolean;
|
|
1381
|
-
missingVars: string[];
|
|
1382
|
-
};
|
|
1383
|
-
};
|
|
1384
|
-
/** Arguments for `neurolink setup huggingface`. */
|
|
1385
|
-
export type SetupHuggingFaceArgs = {
|
|
1386
|
-
check?: boolean;
|
|
1387
|
-
"non-interactive"?: boolean;
|
|
1388
|
-
};
|
|
1389
|
-
/** Arguments for `neurolink setup mistral`. */
|
|
1390
|
-
export type SetupMistralArgs = {
|
|
1391
|
-
check?: boolean;
|
|
1392
|
-
"non-interactive"?: boolean;
|
|
1393
|
-
};
|
|
1394
|
-
/** Arguments for `neurolink task create`. */
|
|
1395
|
-
export type TaskCreateArgs = {
|
|
1396
|
-
name: string;
|
|
1397
|
-
prompt: string;
|
|
1398
|
-
cron?: string;
|
|
1399
|
-
timezone?: string;
|
|
1400
|
-
every?: string;
|
|
1401
|
-
at?: string;
|
|
1402
|
-
mode: string;
|
|
1403
|
-
provider?: string;
|
|
1404
|
-
model?: string;
|
|
1405
|
-
maxRuns?: number;
|
|
1406
|
-
maxTokens?: number;
|
|
1407
|
-
temperature?: number;
|
|
1408
|
-
systemPrompt?: string;
|
|
1409
|
-
};
|
|
1410
|
-
/** Arguments for `neurolink task update`. */
|
|
1411
|
-
export type TaskUpdateArgs = {
|
|
1412
|
-
taskId: string;
|
|
1413
|
-
prompt?: string;
|
|
1414
|
-
cron?: string;
|
|
1415
|
-
every?: string;
|
|
1416
|
-
at?: string;
|
|
1417
|
-
mode?: string;
|
|
1418
|
-
};
|
|
1419
|
-
/** Arguments for `neurolink task logs`. */
|
|
1420
|
-
export type TaskLogsArgs = {
|
|
1421
|
-
taskId: string;
|
|
1422
|
-
limit: number;
|
|
1423
|
-
status?: string;
|
|
1424
|
-
full?: boolean;
|
|
1425
|
-
};
|
|
1426
|
-
/** Arguments for `neurolink voice-server`. */
|
|
1427
|
-
export type VoiceServerArgs = {
|
|
1428
|
-
port: number;
|
|
1429
|
-
};
|
|
1430
|
-
/** Provider config row used by the interactive setup wizard. */
|
|
1431
|
-
export type InteractiveProviderConfig = {
|
|
1432
|
-
id: AIProviderName;
|
|
1433
|
-
name: string;
|
|
1434
|
-
description: string;
|
|
1435
|
-
envVars: Array<{
|
|
1436
|
-
key: string;
|
|
1437
|
-
prompt: string;
|
|
1438
|
-
secure?: boolean;
|
|
1439
|
-
default?: string;
|
|
1440
|
-
optional?: boolean;
|
|
1441
|
-
}>;
|
|
1442
|
-
};
|
|
1443
|
-
/** Result of saving video to file. */
|
|
1444
|
-
export type VideoSaveResult = {
|
|
1445
|
-
success: boolean;
|
|
1446
|
-
path: string;
|
|
1447
|
-
size: number;
|
|
1448
|
-
error?: string;
|
|
1449
|
-
};
|
|
1450
|
-
/** Provider identifier recognized by the `neurolink config` command. */
|
|
1451
|
-
export type CliConfigProvider = "auto" | "openai" | "bedrock" | "vertex" | "anthropic" | "azure" | "google-ai" | "huggingface" | "ollama" | "mistral";
|
|
1452
|
-
/** Analytics config for the healthcare evaluation domain. */
|
|
1453
|
-
export type CliHealthcareAnalyticsConfig = {
|
|
1454
|
-
trackPatientData: boolean;
|
|
1455
|
-
trackDiagnosticAccuracy: boolean;
|
|
1456
|
-
trackTreatmentOutcomes: boolean;
|
|
1457
|
-
};
|
|
1458
|
-
/** Analytics config for the analytics evaluation domain. */
|
|
1459
|
-
export type CliAnalyticsDomainAnalyticsConfig = {
|
|
1460
|
-
trackDataQuality: boolean;
|
|
1461
|
-
trackModelPerformance: boolean;
|
|
1462
|
-
trackBusinessImpact: boolean;
|
|
1463
|
-
};
|
|
1464
|
-
/** Analytics config for the finance evaluation domain. */
|
|
1465
|
-
export type CliFinanceAnalyticsConfig = {
|
|
1466
|
-
trackRiskMetrics: boolean;
|
|
1467
|
-
trackRegulatory: boolean;
|
|
1468
|
-
trackPortfolioImpact: boolean;
|
|
1469
|
-
};
|
|
1470
|
-
/** Analytics config for the ecommerce evaluation domain. */
|
|
1471
|
-
export type CliEcommerceAnalyticsConfig = {
|
|
1472
|
-
trackConversions: boolean;
|
|
1473
|
-
trackUserBehavior: boolean;
|
|
1474
|
-
trackRevenueImpact: boolean;
|
|
1475
|
-
};
|
|
1476
|
-
/** Generic shape of a single domain entry in the CLI config. */
|
|
1477
|
-
export type CliDomainConfig<TAnalytics extends Record<string, boolean> = Record<string, boolean>> = {
|
|
1478
|
-
evaluationCriteria: string[];
|
|
1479
|
-
analyticsConfig: TAnalytics;
|
|
1480
|
-
};
|
|
1481
|
-
/**
|
|
1482
|
-
* Materialized shape of the CLI config parsed from `~/.neurolink/config.json`.
|
|
1483
|
-
* Matches the output of `ConfigSchema.parse()` defined in
|
|
1484
|
-
* `src/cli/commands/config.ts`. The schema is annotated with
|
|
1485
|
-
* `z.ZodType<CliNeuroLinkConfig>` so drift fails at compile time.
|
|
1486
|
-
*/
|
|
1487
|
-
export type CliNeuroLinkConfig = {
|
|
1488
|
-
defaultProvider: CliConfigProvider;
|
|
1489
|
-
providers: {
|
|
1490
|
-
openai?: {
|
|
1491
|
-
apiKey?: string;
|
|
1492
|
-
model: string;
|
|
1493
|
-
baseURL?: string;
|
|
1494
|
-
};
|
|
1495
|
-
bedrock?: {
|
|
1496
|
-
region?: string;
|
|
1497
|
-
accessKeyId?: string;
|
|
1498
|
-
secretAccessKey?: string;
|
|
1499
|
-
sessionToken?: string;
|
|
1500
|
-
model: string;
|
|
1501
|
-
};
|
|
1502
|
-
vertex?: {
|
|
1503
|
-
projectId?: string;
|
|
1504
|
-
location: string;
|
|
1505
|
-
credentials?: string;
|
|
1506
|
-
serviceAccountKey?: string;
|
|
1507
|
-
clientEmail?: string;
|
|
1508
|
-
privateKey?: string;
|
|
1509
|
-
model: string;
|
|
1510
|
-
};
|
|
1511
|
-
anthropic?: {
|
|
1512
|
-
apiKey?: string;
|
|
1513
|
-
model: string;
|
|
1514
|
-
};
|
|
1515
|
-
azure?: {
|
|
1516
|
-
apiKey?: string;
|
|
1517
|
-
endpoint?: string;
|
|
1518
|
-
deploymentId?: string;
|
|
1519
|
-
model: string;
|
|
1520
|
-
};
|
|
1521
|
-
"google-ai"?: {
|
|
1522
|
-
apiKey?: string;
|
|
1523
|
-
model: string;
|
|
1524
|
-
};
|
|
1525
|
-
huggingface?: {
|
|
1526
|
-
apiKey?: string;
|
|
1527
|
-
model: string;
|
|
1528
|
-
};
|
|
1529
|
-
ollama?: {
|
|
1530
|
-
baseUrl: string;
|
|
1531
|
-
model: string;
|
|
1532
|
-
timeout: number;
|
|
1533
|
-
};
|
|
1534
|
-
mistral?: {
|
|
1535
|
-
apiKey?: string;
|
|
1536
|
-
model: string;
|
|
1537
|
-
};
|
|
1538
|
-
};
|
|
1539
|
-
profiles: Record<string, unknown>;
|
|
1540
|
-
preferences: {
|
|
1541
|
-
outputFormat: "text" | "json" | "yaml";
|
|
1542
|
-
temperature: number;
|
|
1543
|
-
maxTokens?: number;
|
|
1544
|
-
enableLogging: boolean;
|
|
1545
|
-
enableCaching: boolean;
|
|
1546
|
-
cacheStrategy: "memory" | "file" | "redis";
|
|
1547
|
-
defaultEvaluationDomain?: string;
|
|
1548
|
-
enableAnalyticsByDefault: boolean;
|
|
1549
|
-
enableEvaluationByDefault: boolean;
|
|
1550
|
-
};
|
|
1551
|
-
domains: {
|
|
1552
|
-
healthcare: CliDomainConfig<CliHealthcareAnalyticsConfig>;
|
|
1553
|
-
analytics: CliDomainConfig<CliAnalyticsDomainAnalyticsConfig>;
|
|
1554
|
-
finance: CliDomainConfig<CliFinanceAnalyticsConfig>;
|
|
1555
|
-
ecommerce: CliDomainConfig<CliEcommerceAnalyticsConfig>;
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
/** Row in the MCP tools listing produced by `neurolink mcp tools`. */
|
|
1559
|
-
export type MCPToolWithServer = {
|
|
1560
|
-
name: string;
|
|
1561
|
-
description: string;
|
|
1562
|
-
serverId: string;
|
|
1563
|
-
serverName: string;
|
|
1564
|
-
inputSchema?: object;
|
|
1565
|
-
category?: string;
|
|
1566
|
-
annotations?: {
|
|
1567
|
-
readOnlyHint?: boolean;
|
|
1568
|
-
destructiveHint?: boolean;
|
|
1569
|
-
idempotentHint?: boolean;
|
|
1570
|
-
requiresConfirmation?: boolean;
|
|
1571
|
-
tags?: string[];
|
|
1572
|
-
};
|
|
1573
|
-
};
|
|
1574
|
-
/** Per-server discovery result produced by `neurolink mcp discover`. */
|
|
1575
|
-
export type MCPDiscoveryResult = {
|
|
1576
|
-
serverId: string;
|
|
1577
|
-
serverName: string;
|
|
1578
|
-
toolCount: number;
|
|
1579
|
-
tools: Array<{
|
|
1580
|
-
name: string;
|
|
1581
|
-
description: string;
|
|
1582
|
-
annotations: Record<string, unknown>;
|
|
1583
|
-
}>;
|
|
1584
|
-
};
|
|
1585
|
-
/**
|
|
1586
|
-
* Minimal route-group shape reflected at runtime by `neurolink serve routes`.
|
|
1587
|
-
* Named with a `CliServe` prefix to disambiguate from the richer RouteGroup
|
|
1588
|
-
* in server.ts (§Rule 9).
|
|
1589
|
-
*/
|
|
1590
|
-
export type CliServeRouteGroup = {
|
|
1591
|
-
prefix: string;
|
|
1592
|
-
routes: Array<{
|
|
1593
|
-
method: string;
|
|
1594
|
-
path: string;
|
|
1595
|
-
description?: string;
|
|
1596
|
-
}>;
|
|
1597
|
-
};
|
|
1598
|
-
/** Flat per-route row used by the `neurolink serve routes` listing. */
|
|
1599
|
-
export type CliServeFlatRoute = {
|
|
1600
|
-
method: string;
|
|
1601
|
-
path: string;
|
|
1602
|
-
description?: string;
|
|
1603
|
-
group: string;
|
|
1604
|
-
};
|
|
1605
|
-
/**
|
|
1606
|
-
* Raw CLI flag shape for the tool-routing family of options.
|
|
1607
|
-
* Keys are camelCase as yargs delivers them after parsing kebab-case aliases.
|
|
1608
|
-
*/
|
|
1609
|
-
export type CliToolRoutingFlags = {
|
|
1610
|
-
/** Master enable switch (--tool-routing). */
|
|
1611
|
-
toolRouting?: boolean;
|
|
1612
|
-
/** Router LLM hard timeout in ms (--tool-routing-timeout). */
|
|
1613
|
-
toolRoutingTimeout?: number;
|
|
1614
|
-
/** Router LLM provider override (--tool-routing-router-provider). */
|
|
1615
|
-
toolRoutingRouterProvider?: string;
|
|
1616
|
-
/** Router LLM model override (--tool-routing-router-model). */
|
|
1617
|
-
toolRoutingRouterModel?: string;
|
|
1618
|
-
/** Router LLM region override (--tool-routing-router-region). */
|
|
1619
|
-
toolRoutingRouterRegion?: string;
|
|
1620
|
-
/**
|
|
1621
|
-
* Server ids that are always kept and never offered to the router
|
|
1622
|
-
* (--tool-routing-always-include, repeatable).
|
|
1623
|
-
*/
|
|
1624
|
-
toolRoutingAlwaysInclude?: string[];
|
|
1625
|
-
/**
|
|
1626
|
-
* Path to a JSON file OR inline JSON array of server descriptors
|
|
1627
|
-
* (--tool-routing-servers).
|
|
1628
|
-
*/
|
|
1629
|
-
toolRoutingServers?: string;
|
|
1630
|
-
};
|
|
1631
|
-
/**
|
|
1632
|
-
* CLI flags for the classifier router (`--classifier-*`). Builds a
|
|
1633
|
-
* ClassifierRouterConfig that is injected at SDK construction time.
|
|
1634
|
-
*/
|
|
1635
|
-
export type CliClassifierRouterFlags = {
|
|
1636
|
-
/** Master enable switch (--classifier-router). */
|
|
1637
|
-
classifierRouter?: boolean;
|
|
1638
|
-
/** Strategy: "heuristic" (default) or "llm" (--classifier-strategy). */
|
|
1639
|
-
classifierStrategy?: string;
|
|
1640
|
-
/** LLM-classifier provider override (--classifier-model-provider). */
|
|
1641
|
-
classifierModelProvider?: string;
|
|
1642
|
-
/** LLM-classifier model override (--classifier-model-name). */
|
|
1643
|
-
classifierModelName?: string;
|
|
1644
|
-
/** LLM-classifier region override (--classifier-model-region). */
|
|
1645
|
-
classifierModelRegion?: string;
|
|
1646
|
-
/**
|
|
1647
|
-
* Path to a JSON file OR inline JSON array of pool members
|
|
1648
|
-
* (--classifier-pool). Each entry: { provider, model?, region?, description?,
|
|
1649
|
-
* tiers?, cost?, quality?, capabilities?, id? }.
|
|
1650
|
-
*/
|
|
1651
|
-
classifierPool?: string;
|
|
1652
|
-
/** LLM-classifier hard timeout in ms (--classifier-timeout). */
|
|
1653
|
-
classifierTimeout?: number;
|
|
1654
|
-
};
|
|
1655
|
-
/**
|
|
1656
|
-
* Agent command arguments for multi-agent orchestration
|
|
1657
|
-
*/
|
|
1658
|
-
export type CliAgentCommandArgs = BaseCommandArgs & {
|
|
1659
|
-
/** Agent ID */
|
|
1660
|
-
id?: string;
|
|
1661
|
-
/** Agent name */
|
|
1662
|
-
name?: string;
|
|
1663
|
-
/** Agent description */
|
|
1664
|
-
description?: string;
|
|
1665
|
-
/** Agent instructions/system prompt */
|
|
1666
|
-
instructions?: string;
|
|
1667
|
-
/** AI provider to use */
|
|
1668
|
-
provider?: string;
|
|
1669
|
-
/** Model name */
|
|
1670
|
-
model?: string;
|
|
1671
|
-
/** Tools available to the agent */
|
|
1672
|
-
tools?: string[];
|
|
1673
|
-
/** Maximum execution steps */
|
|
1674
|
-
maxSteps?: number;
|
|
1675
|
-
/** Temperature setting */
|
|
1676
|
-
temperature?: number;
|
|
1677
|
-
/** Input prompt for execution */
|
|
1678
|
-
input?: string;
|
|
1679
|
-
/** Context data as JSON */
|
|
1680
|
-
context?: string;
|
|
1681
|
-
/** Agent definition file path */
|
|
1682
|
-
file?: string;
|
|
1683
|
-
/** Output file path */
|
|
1684
|
-
output?: string;
|
|
1685
|
-
/** Enable streaming output */
|
|
1686
|
-
stream?: boolean;
|
|
1687
|
-
/** Show detailed information */
|
|
1688
|
-
detailed?: boolean;
|
|
1689
|
-
};
|
|
1690
|
-
/**
|
|
1691
|
-
* Network command arguments for agent network orchestration
|
|
1692
|
-
*/
|
|
1693
|
-
export type CliNetworkCommandArgs = BaseCommandArgs & {
|
|
1694
|
-
/** Network ID */
|
|
1695
|
-
id?: string;
|
|
1696
|
-
/** Network name */
|
|
1697
|
-
name?: string;
|
|
1698
|
-
/** Network description */
|
|
1699
|
-
description?: string;
|
|
1700
|
-
/** Network configuration file path */
|
|
1701
|
-
file?: string;
|
|
1702
|
-
/** Input message for execution */
|
|
1703
|
-
input?: string;
|
|
1704
|
-
/** Maximum execution steps */
|
|
1705
|
-
maxSteps?: number;
|
|
1706
|
-
/** Execution timeout in ms */
|
|
1707
|
-
timeout?: number;
|
|
1708
|
-
/** Context data as JSON */
|
|
1709
|
-
context?: string;
|
|
1710
|
-
/** Output file path */
|
|
1711
|
-
output?: string;
|
|
1712
|
-
/** Enable streaming output */
|
|
1713
|
-
stream?: boolean;
|
|
1714
|
-
/** Router provider */
|
|
1715
|
-
routerProvider?: string;
|
|
1716
|
-
/** Router model */
|
|
1717
|
-
routerModel?: string;
|
|
1718
|
-
/** Show detailed information */
|
|
1719
|
-
detailed?: boolean;
|
|
1720
|
-
};
|
|
1721
|
-
/**
|
|
1722
|
-
* A single audio-player invocation for CLI TTS playback: a binary plus its
|
|
1723
|
-
* arguments for `execFile`. The player list is tried in order until one
|
|
1724
|
-
* succeeds (see `src/cli/utils/audioPlayer.ts`).
|
|
1725
|
-
*/
|
|
1726
|
-
export type CliAudioPlayerCommand = {
|
|
1727
|
-
command: string;
|
|
1728
|
-
args: string[];
|
|
1729
|
-
};
|
|
1730
|
-
/**
|
|
1731
|
-
* The CLI flags validated by `validateCliInputFiles` before a
|
|
1732
|
-
* generate/stream/batch run starts (--image/--csv/--pdf/--video/--file).
|
|
1733
|
-
*/
|
|
1734
|
-
export type CliValidatedFileOption = "--image" | "--csv" | "--pdf" | "--video" | "--file";
|