@vybestack/llxprt-code-core 0.1.19-alpha → 0.1.19-gamma
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/README.md +49 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/src/auth/anthropic-device-flow.d.ts +53 -0
- package/dist/src/auth/anthropic-device-flow.js +208 -0
- package/dist/src/auth/anthropic-device-flow.js.map +1 -0
- package/dist/src/auth/precedence.d.ts +55 -0
- package/dist/src/auth/precedence.js +211 -0
- package/dist/src/auth/precedence.js.map +1 -0
- package/dist/src/auth/qwen-device-flow.d.ts +45 -0
- package/dist/src/auth/qwen-device-flow.js +179 -0
- package/dist/src/auth/qwen-device-flow.js.map +1 -0
- package/dist/src/auth/token-store.d.ts +66 -0
- package/dist/src/auth/token-store.js +151 -0
- package/dist/src/auth/token-store.js.map +1 -0
- package/dist/src/auth/types.d.ts +130 -0
- package/dist/src/auth/types.js +60 -0
- package/dist/src/auth/types.js.map +1 -0
- package/dist/src/code_assist/converter.d.ts +2 -1
- package/dist/src/code_assist/converter.js +1 -1
- package/dist/src/code_assist/converter.js.map +1 -1
- package/dist/src/code_assist/oauth2.js +2 -1
- package/dist/src/code_assist/oauth2.js.map +1 -1
- package/dist/src/config/config.d.ts +61 -2
- package/dist/src/config/config.js +134 -4
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/endpoints.d.ts +60 -0
- package/dist/src/config/endpoints.js +126 -0
- package/dist/src/config/endpoints.js.map +1 -0
- package/dist/src/config/profileManager.d.ts +14 -4
- package/dist/src/config/profileManager.js +90 -11
- package/dist/src/config/profileManager.js.map +1 -1
- package/dist/src/core/client.js +9 -12
- package/dist/src/core/client.js.map +1 -1
- package/dist/src/core/contentGenerator.d.ts +4 -1
- package/dist/src/core/contentGenerator.js +3 -0
- package/dist/src/core/contentGenerator.js.map +1 -1
- package/dist/src/core/logger.d.ts +1 -0
- package/dist/src/core/logger.js +18 -0
- package/dist/src/core/logger.js.map +1 -1
- package/dist/src/core/loggingContentGenerator.d.ts +24 -0
- package/dist/src/core/loggingContentGenerator.js +89 -0
- package/dist/src/core/loggingContentGenerator.js.map +1 -0
- package/dist/src/core/nonInteractiveToolExecutor.js +17 -0
- package/dist/src/core/nonInteractiveToolExecutor.js.map +1 -1
- package/dist/src/core/subagent.js +12 -10
- package/dist/src/core/subagent.js.map +1 -1
- package/dist/src/ide/ide-client.d.ts +1 -1
- package/dist/src/ide/ide-client.js +21 -7
- package/dist/src/ide/ide-client.js.map +1 -1
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +12 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/providers/BaseProvider.d.ts +149 -0
- package/dist/src/providers/BaseProvider.js +315 -0
- package/dist/src/providers/BaseProvider.js.map +1 -0
- package/dist/src/providers/IProvider.d.ts +1 -0
- package/dist/src/providers/IProviderManager.d.ts +5 -0
- package/dist/src/providers/LoggingProviderWrapper.d.ts +54 -0
- package/dist/src/providers/LoggingProviderWrapper.js +350 -0
- package/dist/src/providers/LoggingProviderWrapper.js.map +1 -0
- package/dist/src/providers/ProviderManager.d.ts +20 -1
- package/dist/src/providers/ProviderManager.js +236 -14
- package/dist/src/providers/ProviderManager.js.map +1 -1
- package/dist/src/providers/anthropic/AnthropicProvider.d.ts +20 -6
- package/dist/src/providers/anthropic/AnthropicProvider.js +172 -26
- package/dist/src/providers/anthropic/AnthropicProvider.js.map +1 -1
- package/dist/src/providers/gemini/GeminiProvider.d.ts +16 -7
- package/dist/src/providers/gemini/GeminiProvider.js +163 -148
- package/dist/src/providers/gemini/GeminiProvider.js.map +1 -1
- package/dist/src/providers/logging/ProviderContentExtractor.d.ts +27 -0
- package/dist/src/providers/logging/ProviderContentExtractor.js +198 -0
- package/dist/src/providers/logging/ProviderContentExtractor.js.map +1 -0
- package/dist/src/providers/logging/ProviderPerformanceTracker.d.ts +43 -0
- package/dist/src/providers/logging/ProviderPerformanceTracker.js +98 -0
- package/dist/src/providers/logging/ProviderPerformanceTracker.js.map +1 -0
- package/dist/src/providers/openai/OpenAIProvider.d.ts +53 -6
- package/dist/src/providers/openai/OpenAIProvider.js +373 -40
- package/dist/src/providers/openai/OpenAIProvider.js.map +1 -1
- package/dist/src/providers/openai/RESPONSES_API_MODELS.d.ts +1 -1
- package/dist/src/providers/openai/RESPONSES_API_MODELS.js +1 -0
- package/dist/src/providers/openai/RESPONSES_API_MODELS.js.map +1 -1
- package/dist/src/providers/openai/syntheticToolResponses.d.ts +52 -0
- package/dist/src/providers/openai/syntheticToolResponses.js +129 -0
- package/dist/src/providers/openai/syntheticToolResponses.js.map +1 -0
- package/dist/src/providers/types.d.ts +47 -0
- package/dist/src/services/git-stats-service.d.ts +32 -0
- package/dist/src/services/git-stats-service.js +22 -0
- package/dist/src/services/git-stats-service.js.map +1 -0
- package/dist/src/services/loopDetectionService.js +10 -6
- package/dist/src/services/loopDetectionService.js.map +1 -1
- package/dist/src/services/shellExecutionService.js +44 -8
- package/dist/src/services/shellExecutionService.js.map +1 -1
- package/dist/src/settings/SettingsService.d.ts +32 -0
- package/dist/src/settings/SettingsService.js +204 -0
- package/dist/src/settings/SettingsService.js.map +1 -0
- package/dist/src/settings/settingsServiceInstance.d.ts +12 -0
- package/dist/src/settings/settingsServiceInstance.js +24 -0
- package/dist/src/settings/settingsServiceInstance.js.map +1 -0
- package/dist/src/settings/types.d.ts +141 -0
- package/dist/src/settings/types.js +5 -0
- package/dist/src/settings/types.js.map +1 -0
- package/dist/src/storage/ConversationFileWriter.d.ts +16 -0
- package/dist/src/storage/ConversationFileWriter.js +69 -0
- package/dist/src/storage/ConversationFileWriter.js.map +1 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +8 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +56 -3
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +5 -1
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +11 -0
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
- package/dist/src/telemetry/constants.d.ts +5 -0
- package/dist/src/telemetry/constants.js +5 -0
- package/dist/src/telemetry/constants.js.map +1 -1
- package/dist/src/telemetry/loggers.d.ts +5 -1
- package/dist/src/telemetry/loggers.js +87 -1
- package/dist/src/telemetry/loggers.js.map +1 -1
- package/dist/src/telemetry/metrics.d.ts +2 -1
- package/dist/src/telemetry/metrics.js +7 -1
- package/dist/src/telemetry/metrics.js.map +1 -1
- package/dist/src/telemetry/tool-call-decision.d.ts +13 -0
- package/dist/src/telemetry/tool-call-decision.js +29 -0
- package/dist/src/telemetry/tool-call-decision.js.map +1 -0
- package/dist/src/telemetry/types.d.ts +56 -1
- package/dist/src/telemetry/types.js +123 -0
- package/dist/src/telemetry/types.js.map +1 -1
- package/dist/src/telemetry/uiTelemetry.d.ts +2 -1
- package/dist/src/telemetry/uiTelemetry.js +1 -1
- package/dist/src/telemetry/uiTelemetry.js.map +1 -1
- package/dist/src/tools/diffOptions.d.ts +2 -0
- package/dist/src/tools/diffOptions.js +28 -0
- package/dist/src/tools/diffOptions.js.map +1 -1
- package/dist/src/tools/edit.d.ts +4 -0
- package/dist/src/tools/edit.js +38 -8
- package/dist/src/tools/edit.js.map +1 -1
- package/dist/src/tools/mcp-client.d.ts +4 -3
- package/dist/src/tools/mcp-client.js +23 -6
- package/dist/src/tools/mcp-client.js.map +1 -1
- package/dist/src/tools/read-file.js +34 -2
- package/dist/src/tools/read-file.js.map +1 -1
- package/dist/src/tools/todo-pause.d.ts +22 -0
- package/dist/src/tools/todo-pause.js +93 -0
- package/dist/src/tools/todo-pause.js.map +1 -0
- package/dist/src/tools/tool-error.d.ts +4 -0
- package/dist/src/tools/tool-error.js +4 -0
- package/dist/src/tools/tool-error.js.map +1 -1
- package/dist/src/tools/tool-registry.js +3 -3
- package/dist/src/tools/tool-registry.js.map +1 -1
- package/dist/src/tools/tools.d.ts +7 -0
- package/dist/src/tools/tools.js.map +1 -1
- package/dist/src/tools/write-file.d.ts +4 -0
- package/dist/src/tools/write-file.js +90 -16
- package/dist/src/tools/write-file.js.map +1 -1
- package/dist/src/types/modelParams.d.ts +2 -0
- package/dist/src/utils/environmentContext.js +1 -1
- package/dist/src/utils/errors.d.ts +3 -0
- package/dist/src/utils/errors.js +6 -0
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/fileUtils.d.ts +7 -0
- package/dist/src/utils/fileUtils.js +9 -0
- package/dist/src/utils/fileUtils.js.map +1 -1
- package/package.json +4 -2
- package/dist/src/code_assist/converter.test.d.ts +0 -6
- package/dist/src/code_assist/converter.test.js +0 -232
- package/dist/src/code_assist/converter.test.js.map +0 -1
- package/dist/src/code_assist/oauth2.test.d.ts +0 -6
- package/dist/src/code_assist/oauth2.test.js +0 -370
- package/dist/src/code_assist/oauth2.test.js.map +0 -1
- package/dist/src/code_assist/server.test.d.ts +0 -6
- package/dist/src/code_assist/server.test.js +0 -131
- package/dist/src/code_assist/server.test.js.map +0 -1
- package/dist/src/code_assist/setup.test.d.ts +0 -6
- package/dist/src/code_assist/setup.test.js +0 -65
- package/dist/src/code_assist/setup.test.js.map +0 -1
- package/dist/src/config/config.alwaysAllow.test.d.ts +0 -6
- package/dist/src/config/config.alwaysAllow.test.js +0 -84
- package/dist/src/config/config.alwaysAllow.test.js.map +0 -1
- package/dist/src/config/config.test.d.ts +0 -6
- package/dist/src/config/config.test.js +0 -369
- package/dist/src/config/config.test.js.map +0 -1
- package/dist/src/config/flashFallback.test.d.ts +0 -6
- package/dist/src/config/flashFallback.test.js +0 -91
- package/dist/src/config/flashFallback.test.js.map +0 -1
- package/dist/src/core/client.test.d.ts +0 -6
- package/dist/src/core/client.test.js +0 -1322
- package/dist/src/core/client.test.js.map +0 -1
- package/dist/src/core/contentGenerator.test.d.ts +0 -6
- package/dist/src/core/contentGenerator.test.js +0 -103
- package/dist/src/core/contentGenerator.test.js.map +0 -1
- package/dist/src/core/coreToolScheduler.test.d.ts +0 -6
- package/dist/src/core/coreToolScheduler.test.js +0 -637
- package/dist/src/core/coreToolScheduler.test.js.map +0 -1
- package/dist/src/core/geminiChat.test.d.ts +0 -6
- package/dist/src/core/geminiChat.test.js +0 -425
- package/dist/src/core/geminiChat.test.js.map +0 -1
- package/dist/src/core/googleGenAIWrapper.test.d.ts +0 -6
- package/dist/src/core/googleGenAIWrapper.test.js +0 -104
- package/dist/src/core/googleGenAIWrapper.test.js.map +0 -1
- package/dist/src/core/logger.test.d.ts +0 -6
- package/dist/src/core/logger.test.js +0 -438
- package/dist/src/core/logger.test.js.map +0 -1
- package/dist/src/core/nonInteractiveToolExecutor.test.d.ts +0 -6
- package/dist/src/core/nonInteractiveToolExecutor.test.js +0 -165
- package/dist/src/core/nonInteractiveToolExecutor.test.js.map +0 -1
- package/dist/src/core/prompts-async.test.d.ts +0 -6
- package/dist/src/core/prompts-async.test.js +0 -115
- package/dist/src/core/prompts-async.test.js.map +0 -1
- package/dist/src/core/prompts.test.d.ts +0 -6
- package/dist/src/core/prompts.test.js +0 -68
- package/dist/src/core/prompts.test.js.map +0 -1
- package/dist/src/core/subagent.test.d.ts +0 -6
- package/dist/src/core/subagent.test.js +0 -519
- package/dist/src/core/subagent.test.js.map +0 -1
- package/dist/src/core/tokenLimits.test.d.ts +0 -6
- package/dist/src/core/tokenLimits.test.js +0 -66
- package/dist/src/core/tokenLimits.test.js.map +0 -1
- package/dist/src/core/turn.test.d.ts +0 -6
- package/dist/src/core/turn.test.js +0 -366
- package/dist/src/core/turn.test.js.map +0 -1
- package/dist/src/hooks/tool-render-suppression-hook.test.d.ts +0 -6
- package/dist/src/hooks/tool-render-suppression-hook.test.js +0 -59
- package/dist/src/hooks/tool-render-suppression-hook.test.js.map +0 -1
- package/dist/src/ide/ide-installer.test.d.ts +0 -6
- package/dist/src/ide/ide-installer.test.js +0 -55
- package/dist/src/ide/ide-installer.test.js.map +0 -1
- package/dist/src/ide/ideContext.test.d.ts +0 -6
- package/dist/src/ide/ideContext.test.js +0 -265
- package/dist/src/ide/ideContext.test.js.map +0 -1
- package/dist/src/index.test.d.ts +0 -6
- package/dist/src/index.test.js +0 -12
- package/dist/src/index.test.js.map +0 -1
- package/dist/src/integration-tests/todo-system.test.d.ts +0 -6
- package/dist/src/integration-tests/todo-system.test.js +0 -46
- package/dist/src/integration-tests/todo-system.test.js.map +0 -1
- package/dist/src/mcp/google-auth-provider.test.d.ts +0 -6
- package/dist/src/mcp/google-auth-provider.test.js +0 -54
- package/dist/src/mcp/google-auth-provider.test.js.map +0 -1
- package/dist/src/mcp/oauth-provider.test.d.ts +0 -6
- package/dist/src/mcp/oauth-provider.test.js +0 -602
- package/dist/src/mcp/oauth-provider.test.js.map +0 -1
- package/dist/src/mcp/oauth-token-storage.test.d.ts +0 -6
- package/dist/src/mcp/oauth-token-storage.test.js +0 -205
- package/dist/src/mcp/oauth-token-storage.test.js.map +0 -1
- package/dist/src/mcp/oauth-utils.test.d.ts +0 -6
- package/dist/src/mcp/oauth-utils.test.js +0 -144
- package/dist/src/mcp/oauth-utils.test.js.map +0 -1
- package/dist/src/parsers/TextToolCallParser.multibyte.test.d.ts +0 -1
- package/dist/src/parsers/TextToolCallParser.multibyte.test.js +0 -42
- package/dist/src/parsers/TextToolCallParser.multibyte.test.js.map +0 -1
- package/dist/src/parsers/TextToolCallParser.test.d.ts +0 -1
- package/dist/src/parsers/TextToolCallParser.test.js +0 -225
- package/dist/src/parsers/TextToolCallParser.test.js.map +0 -1
- package/dist/src/prompt-config/TemplateEngine.test.d.ts +0 -1
- package/dist/src/prompt-config/TemplateEngine.test.js +0 -494
- package/dist/src/prompt-config/TemplateEngine.test.js.map +0 -1
- package/dist/src/prompt-config/prompt-cache.test.d.ts +0 -6
- package/dist/src/prompt-config/prompt-cache.test.js +0 -437
- package/dist/src/prompt-config/prompt-cache.test.js.map +0 -1
- package/dist/src/prompt-config/prompt-installer.test.d.ts +0 -7
- package/dist/src/prompt-config/prompt-installer.test.js +0 -503
- package/dist/src/prompt-config/prompt-installer.test.js.map +0 -1
- package/dist/src/prompt-config/prompt-loader.test.d.ts +0 -5
- package/dist/src/prompt-config/prompt-loader.test.js +0 -413
- package/dist/src/prompt-config/prompt-loader.test.js.map +0 -1
- package/dist/src/prompt-config/prompt-resolver.test.d.ts +0 -1
- package/dist/src/prompt-config/prompt-resolver.test.js +0 -529
- package/dist/src/prompt-config/prompt-resolver.test.js.map +0 -1
- package/dist/src/prompt-config/prompt-service.test.d.ts +0 -1
- package/dist/src/prompt-config/prompt-service.test.js +0 -811
- package/dist/src/prompt-config/prompt-service.test.js.map +0 -1
- package/dist/src/providers/ProviderManager.gemini-switch.test.d.ts +0 -6
- package/dist/src/providers/ProviderManager.gemini-switch.test.js +0 -57
- package/dist/src/providers/ProviderManager.gemini-switch.test.js.map +0 -1
- package/dist/src/providers/ProviderManager.test.d.ts +0 -6
- package/dist/src/providers/ProviderManager.test.js +0 -284
- package/dist/src/providers/ProviderManager.test.js.map +0 -1
- package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.d.ts +0 -6
- package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.js +0 -273
- package/dist/src/providers/adapters/GeminiCompatibleWrapper.test.js.map +0 -1
- package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.d.ts +0 -1
- package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.js +0 -48
- package/dist/src/providers/anthropic/AnthropicProvider.modelParams.test.js.map +0 -1
- package/dist/src/providers/anthropic/AnthropicProvider.test.d.ts +0 -1
- package/dist/src/providers/anthropic/AnthropicProvider.test.js +0 -487
- package/dist/src/providers/anthropic/AnthropicProvider.test.js.map +0 -1
- package/dist/src/providers/gemini/GeminiProvider.integration.test.d.ts +0 -6
- package/dist/src/providers/gemini/GeminiProvider.integration.test.js +0 -126
- package/dist/src/providers/gemini/GeminiProvider.integration.test.js.map +0 -1
- package/dist/src/providers/gemini/GeminiProvider.test.d.ts +0 -6
- package/dist/src/providers/gemini/GeminiProvider.test.js +0 -136
- package/dist/src/providers/gemini/GeminiProvider.test.js.map +0 -1
- package/dist/src/providers/integration/multi-provider.integration.test.d.ts +0 -6
- package/dist/src/providers/integration/multi-provider.integration.test.js +0 -292
- package/dist/src/providers/integration/multi-provider.integration.test.js.map +0 -1
- package/dist/src/providers/openai/ConversationCache.accumTokens.test.d.ts +0 -1
- package/dist/src/providers/openai/ConversationCache.accumTokens.test.js +0 -97
- package/dist/src/providers/openai/ConversationCache.accumTokens.test.js.map +0 -1
- package/dist/src/providers/openai/ConversationCache.test.d.ts +0 -1
- package/dist/src/providers/openai/ConversationCache.test.js +0 -113
- package/dist/src/providers/openai/ConversationCache.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.d.ts +0 -1
- package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.js +0 -189
- package/dist/src/providers/openai/OpenAIProvider.callResponses.stateless.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.integration.test.d.ts +0 -6
- package/dist/src/providers/openai/OpenAIProvider.integration.test.js +0 -125
- package/dist/src/providers/openai/OpenAIProvider.integration.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.responses.test.d.ts +0 -1
- package/dist/src/providers/openai/OpenAIProvider.responses.test.js +0 -350
- package/dist/src/providers/openai/OpenAIProvider.responses.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.d.ts +0 -1
- package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.js +0 -213
- package/dist/src/providers/openai/OpenAIProvider.responsesIntegration.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.d.ts +0 -1
- package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.js +0 -59
- package/dist/src/providers/openai/OpenAIProvider.shouldUseResponses.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.d.ts +0 -6
- package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.js +0 -105
- package/dist/src/providers/openai/OpenAIProvider.stateful.integration.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.switch.test.d.ts +0 -1
- package/dist/src/providers/openai/OpenAIProvider.switch.test.js +0 -256
- package/dist/src/providers/openai/OpenAIProvider.switch.test.js.map +0 -1
- package/dist/src/providers/openai/OpenAIProvider.test.d.ts +0 -16
- package/dist/src/providers/openai/OpenAIProvider.test.js +0 -620
- package/dist/src/providers/openai/OpenAIProvider.test.js.map +0 -1
- package/dist/src/providers/openai/ResponsesContextTrim.integration.test.d.ts +0 -1
- package/dist/src/providers/openai/ResponsesContextTrim.integration.test.js +0 -210
- package/dist/src/providers/openai/ResponsesContextTrim.integration.test.js.map +0 -1
- package/dist/src/providers/openai/__tests__/formatArrayResponse.test.d.ts +0 -1
- package/dist/src/providers/openai/__tests__/formatArrayResponse.test.js +0 -65
- package/dist/src/providers/openai/__tests__/formatArrayResponse.test.js.map +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.d.ts +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.js +0 -129
- package/dist/src/providers/openai/buildResponsesRequest.stripToolCalls.test.js.map +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.test.d.ts +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.test.js +0 -406
- package/dist/src/providers/openai/buildResponsesRequest.test.js.map +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.undefined.test.d.ts +0 -1
- package/dist/src/providers/openai/buildResponsesRequest.undefined.test.js +0 -50
- package/dist/src/providers/openai/buildResponsesRequest.undefined.test.js.map +0 -1
- package/dist/src/providers/openai/estimateRemoteTokens.test.d.ts +0 -1
- package/dist/src/providers/openai/estimateRemoteTokens.test.js +0 -125
- package/dist/src/providers/openai/estimateRemoteTokens.test.js.map +0 -1
- package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.d.ts +0 -1
- package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.js +0 -192
- package/dist/src/providers/openai/parseResponsesStream.responsesToolCalls.test.js.map +0 -1
- package/dist/src/providers/openai/parseResponsesStream.test.d.ts +0 -1
- package/dist/src/providers/openai/parseResponsesStream.test.js +0 -151
- package/dist/src/providers/openai/parseResponsesStream.test.js.map +0 -1
- package/dist/src/services/fileDiscoveryService.test.d.ts +0 -6
- package/dist/src/services/fileDiscoveryService.test.js +0 -143
- package/dist/src/services/fileDiscoveryService.test.js.map +0 -1
- package/dist/src/services/gitService.test.d.ts +0 -6
- package/dist/src/services/gitService.test.js +0 -209
- package/dist/src/services/gitService.test.js.map +0 -1
- package/dist/src/services/loopDetectionService.test.d.ts +0 -6
- package/dist/src/services/loopDetectionService.test.js +0 -345
- package/dist/src/services/loopDetectionService.test.js.map +0 -1
- package/dist/src/services/shellExecutionService.multibyte.test.d.ts +0 -6
- package/dist/src/services/shellExecutionService.multibyte.test.js +0 -72
- package/dist/src/services/shellExecutionService.multibyte.test.js.map +0 -1
- package/dist/src/services/shellExecutionService.test.d.ts +0 -6
- package/dist/src/services/shellExecutionService.test.js +0 -272
- package/dist/src/services/shellExecutionService.test.js.map +0 -1
- package/dist/src/services/shellExecutionService.windows.multibyte.test.d.ts +0 -6
- package/dist/src/services/shellExecutionService.windows.multibyte.test.js +0 -98
- package/dist/src/services/shellExecutionService.windows.multibyte.test.js.map +0 -1
- package/dist/src/services/shellExecutionService.windows.test.d.ts +0 -6
- package/dist/src/services/shellExecutionService.windows.test.js +0 -79
- package/dist/src/services/shellExecutionService.windows.test.js.map +0 -1
- package/dist/src/services/tool-call-tracker-service.test.d.ts +0 -6
- package/dist/src/services/tool-call-tracker-service.test.js +0 -99
- package/dist/src/services/tool-call-tracker-service.test.js.map +0 -1
- package/dist/src/telemetry/loggers.test.d.ts +0 -6
- package/dist/src/telemetry/loggers.test.js +0 -572
- package/dist/src/telemetry/loggers.test.js.map +0 -1
- package/dist/src/telemetry/metrics.test.d.ts +0 -6
- package/dist/src/telemetry/metrics.test.js +0 -162
- package/dist/src/telemetry/metrics.test.js.map +0 -1
- package/dist/src/telemetry/telemetry.test.d.ts +0 -6
- package/dist/src/telemetry/telemetry.test.js +0 -54
- package/dist/src/telemetry/telemetry.test.js.map +0 -1
- package/dist/src/telemetry/uiTelemetry.test.d.ts +0 -6
- package/dist/src/telemetry/uiTelemetry.test.js +0 -517
- package/dist/src/telemetry/uiTelemetry.test.js.map +0 -1
- package/dist/src/tools/ToolFormatter.test.d.ts +0 -16
- package/dist/src/tools/ToolFormatter.test.js +0 -349
- package/dist/src/tools/ToolFormatter.test.js.map +0 -1
- package/dist/src/tools/ToolFormatter.toResponsesTool.test.d.ts +0 -1
- package/dist/src/tools/ToolFormatter.toResponsesTool.test.js +0 -241
- package/dist/src/tools/ToolFormatter.toResponsesTool.test.js.map +0 -1
- package/dist/src/tools/edit.test.d.ts +0 -6
- package/dist/src/tools/edit.test.js +0 -688
- package/dist/src/tools/edit.test.js.map +0 -1
- package/dist/src/tools/glob.test.d.ts +0 -6
- package/dist/src/tools/glob.test.js +0 -332
- package/dist/src/tools/glob.test.js.map +0 -1
- package/dist/src/tools/grep.test.d.ts +0 -6
- package/dist/src/tools/grep.test.js +0 -272
- package/dist/src/tools/grep.test.js.map +0 -1
- package/dist/src/tools/ls.test.d.ts +0 -6
- package/dist/src/tools/ls.test.js +0 -357
- package/dist/src/tools/ls.test.js.map +0 -1
- package/dist/src/tools/mcp-client.test.d.ts +0 -6
- package/dist/src/tools/mcp-client.test.js +0 -575
- package/dist/src/tools/mcp-client.test.js.map +0 -1
- package/dist/src/tools/mcp-tool.test.d.ts +0 -6
- package/dist/src/tools/mcp-tool.test.js +0 -501
- package/dist/src/tools/mcp-tool.test.js.map +0 -1
- package/dist/src/tools/memoryTool.test.d.ts +0 -6
- package/dist/src/tools/memoryTool.test.js +0 -266
- package/dist/src/tools/memoryTool.test.js.map +0 -1
- package/dist/src/tools/modifiable-tool.test.d.ts +0 -6
- package/dist/src/tools/modifiable-tool.test.js +0 -193
- package/dist/src/tools/modifiable-tool.test.js.map +0 -1
- package/dist/src/tools/read-file.test.d.ts +0 -6
- package/dist/src/tools/read-file.test.js +0 -313
- package/dist/src/tools/read-file.test.js.map +0 -1
- package/dist/src/tools/read-many-files.test.d.ts +0 -6
- package/dist/src/tools/read-many-files.test.js +0 -644
- package/dist/src/tools/read-many-files.test.js.map +0 -1
- package/dist/src/tools/shell.multibyte.test.d.ts +0 -6
- package/dist/src/tools/shell.multibyte.test.js +0 -75
- package/dist/src/tools/shell.multibyte.test.js.map +0 -1
- package/dist/src/tools/shell.test.d.ts +0 -6
- package/dist/src/tools/shell.test.js +0 -350
- package/dist/src/tools/shell.test.js.map +0 -1
- package/dist/src/tools/todo-read.test.d.ts +0 -6
- package/dist/src/tools/todo-read.test.js +0 -162
- package/dist/src/tools/todo-read.test.js.map +0 -1
- package/dist/src/tools/todo-schemas.test.d.ts +0 -6
- package/dist/src/tools/todo-schemas.test.js +0 -341
- package/dist/src/tools/todo-schemas.test.js.map +0 -1
- package/dist/src/tools/todo-store.test.d.ts +0 -6
- package/dist/src/tools/todo-store.test.js +0 -169
- package/dist/src/tools/todo-store.test.js.map +0 -1
- package/dist/src/tools/todo-write.test.d.ts +0 -6
- package/dist/src/tools/todo-write.test.js +0 -226
- package/dist/src/tools/todo-write.test.js.map +0 -1
- package/dist/src/tools/tool-registry.test.d.ts +0 -6
- package/dist/src/tools/tool-registry.test.js +0 -468
- package/dist/src/tools/tool-registry.test.js.map +0 -1
- package/dist/src/tools/tools.test.d.ts +0 -6
- package/dist/src/tools/tools.test.js +0 -117
- package/dist/src/tools/tools.test.js.map +0 -1
- package/dist/src/tools/web-fetch.integration.test.d.ts +0 -6
- package/dist/src/tools/web-fetch.integration.test.js +0 -532
- package/dist/src/tools/web-fetch.integration.test.js.map +0 -1
- package/dist/src/tools/web-search.test.d.ts +0 -6
- package/dist/src/tools/web-search.test.js +0 -229
- package/dist/src/tools/web-search.test.js.map +0 -1
- package/dist/src/tools/write-file.test.d.ts +0 -6
- package/dist/src/tools/write-file.test.js +0 -464
- package/dist/src/tools/write-file.test.js.map +0 -1
- package/dist/src/utils/bfsFileSearch.test.d.ts +0 -6
- package/dist/src/utils/bfsFileSearch.test.js +0 -191
- package/dist/src/utils/bfsFileSearch.test.js.map +0 -1
- package/dist/src/utils/editCorrector.test.d.ts +0 -6
- package/dist/src/utils/editCorrector.test.js +0 -564
- package/dist/src/utils/editCorrector.test.js.map +0 -1
- package/dist/src/utils/editor.test.d.ts +0 -6
- package/dist/src/utils/editor.test.js +0 -445
- package/dist/src/utils/editor.test.js.map +0 -1
- package/dist/src/utils/environmentContext.test.d.ts +0 -6
- package/dist/src/utils/environmentContext.test.js +0 -139
- package/dist/src/utils/environmentContext.test.js.map +0 -1
- package/dist/src/utils/errorReporting.test.d.ts +0 -6
- package/dist/src/utils/errorReporting.test.js +0 -130
- package/dist/src/utils/errorReporting.test.js.map +0 -1
- package/dist/src/utils/fileUtils.test.d.ts +0 -6
- package/dist/src/utils/fileUtils.test.js +0 -363
- package/dist/src/utils/fileUtils.test.js.map +0 -1
- package/dist/src/utils/filesearch/crawlCache.test.d.ts +0 -6
- package/dist/src/utils/filesearch/crawlCache.test.js +0 -103
- package/dist/src/utils/filesearch/crawlCache.test.js.map +0 -1
- package/dist/src/utils/filesearch/fileSearch.test.d.ts +0 -6
- package/dist/src/utils/filesearch/fileSearch.test.js +0 -654
- package/dist/src/utils/filesearch/fileSearch.test.js.map +0 -1
- package/dist/src/utils/filesearch/ignore.test.d.ts +0 -6
- package/dist/src/utils/filesearch/ignore.test.js +0 -57
- package/dist/src/utils/filesearch/ignore.test.js.map +0 -1
- package/dist/src/utils/filesearch/result-cache.test.d.ts +0 -6
- package/dist/src/utils/filesearch/result-cache.test.js +0 -47
- package/dist/src/utils/filesearch/result-cache.test.js.map +0 -1
- package/dist/src/utils/flashFallback.integration.test.d.ts +0 -6
- package/dist/src/utils/flashFallback.integration.test.js +0 -120
- package/dist/src/utils/flashFallback.integration.test.js.map +0 -1
- package/dist/src/utils/generateContentResponseUtilities.test.d.ts +0 -6
- package/dist/src/utils/generateContentResponseUtilities.test.js +0 -273
- package/dist/src/utils/generateContentResponseUtilities.test.js.map +0 -1
- package/dist/src/utils/getFolderStructure.test.d.ts +0 -6
- package/dist/src/utils/getFolderStructure.test.js +0 -282
- package/dist/src/utils/getFolderStructure.test.js.map +0 -1
- package/dist/src/utils/gitIgnoreParser.test.d.ts +0 -6
- package/dist/src/utils/gitIgnoreParser.test.js +0 -154
- package/dist/src/utils/gitIgnoreParser.test.js.map +0 -1
- package/dist/src/utils/memoryDiscovery.test.d.ts +0 -6
- package/dist/src/utils/memoryDiscovery.test.js +0 -181
- package/dist/src/utils/memoryDiscovery.test.js.map +0 -1
- package/dist/src/utils/memoryImportProcessor.test.d.ts +0 -6
- package/dist/src/utils/memoryImportProcessor.test.js +0 -715
- package/dist/src/utils/memoryImportProcessor.test.js.map +0 -1
- package/dist/src/utils/nextSpeakerChecker.test.d.ts +0 -6
- package/dist/src/utils/nextSpeakerChecker.test.js +0 -172
- package/dist/src/utils/nextSpeakerChecker.test.js.map +0 -1
- package/dist/src/utils/partUtils.test.d.ts +0 -6
- package/dist/src/utils/partUtils.test.js +0 -130
- package/dist/src/utils/partUtils.test.js.map +0 -1
- package/dist/src/utils/paths.test.d.ts +0 -6
- package/dist/src/utils/paths.test.js +0 -153
- package/dist/src/utils/paths.test.js.map +0 -1
- package/dist/src/utils/retry.test.d.ts +0 -6
- package/dist/src/utils/retry.test.js +0 -322
- package/dist/src/utils/retry.test.js.map +0 -1
- package/dist/src/utils/safeJsonStringify.test.d.ts +0 -6
- package/dist/src/utils/safeJsonStringify.test.js +0 -61
- package/dist/src/utils/safeJsonStringify.test.js.map +0 -1
- package/dist/src/utils/sanitization.test.d.ts +0 -6
- package/dist/src/utils/sanitization.test.js +0 -81
- package/dist/src/utils/sanitization.test.js.map +0 -1
- package/dist/src/utils/schemaValidator.test.d.ts +0 -6
- package/dist/src/utils/schemaValidator.test.js +0 -146
- package/dist/src/utils/schemaValidator.test.js.map +0 -1
- package/dist/src/utils/secure-browser-launcher.test.d.ts +0 -6
- package/dist/src/utils/secure-browser-launcher.test.js +0 -149
- package/dist/src/utils/secure-browser-launcher.test.js.map +0 -1
- package/dist/src/utils/shell-utils.shellReplacement.test.d.ts +0 -6
- package/dist/src/utils/shell-utils.shellReplacement.test.js +0 -149
- package/dist/src/utils/shell-utils.shellReplacement.test.js.map +0 -1
- package/dist/src/utils/shell-utils.test.d.ts +0 -6
- package/dist/src/utils/shell-utils.test.js +0 -200
- package/dist/src/utils/shell-utils.test.js.map +0 -1
- package/dist/src/utils/summarizer.test.d.ts +0 -6
- package/dist/src/utils/summarizer.test.js +0 -131
- package/dist/src/utils/summarizer.test.js.map +0 -1
- package/dist/src/utils/systemEncoding.test.d.ts +0 -6
- package/dist/src/utils/systemEncoding.test.js +0 -368
- package/dist/src/utils/systemEncoding.test.js.map +0 -1
- package/dist/src/utils/toolOutputLimiter.test.d.ts +0 -6
- package/dist/src/utils/toolOutputLimiter.test.js +0 -164
- package/dist/src/utils/toolOutputLimiter.test.js.map +0 -1
- package/dist/src/utils/unicodeUtils.test.d.ts +0 -6
- package/dist/src/utils/unicodeUtils.test.js +0 -120
- package/dist/src/utils/unicodeUtils.test.js.map +0 -1
- package/dist/src/utils/user_account.test.d.ts +0 -6
- package/dist/src/utils/user_account.test.js +0 -153
- package/dist/src/utils/user_account.test.js.map +0 -1
- package/dist/src/utils/user_id.test.d.ts +0 -6
- package/dist/src/utils/user_id.test.js +0 -21
- package/dist/src/utils/user_id.test.js.map +0 -1
- package/dist/src/utils/workspaceContext.test.d.ts +0 -6
- package/dist/src/utils/workspaceContext.test.js +0 -209
- package/dist/src/utils/workspaceContext.test.js.map +0 -1
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
|
-
import { describe, it, expect, vi, beforeEach, afterEach, } from 'vitest';
|
|
8
|
-
import { DiscoveredMCPTool, generateValidName } from './mcp-tool.js'; // Added getStringifiedResultForDisplay
|
|
9
|
-
import { ToolConfirmationOutcome } from './tools.js'; // Added ToolConfirmationOutcome
|
|
10
|
-
// Mock @google/genai mcpToTool and CallableTool
|
|
11
|
-
// We only need to mock the parts of CallableTool that DiscoveredMCPTool uses.
|
|
12
|
-
const mockCallTool = vi.fn();
|
|
13
|
-
const mockToolMethod = vi.fn();
|
|
14
|
-
const mockCallableToolInstance = {
|
|
15
|
-
tool: mockToolMethod, // Not directly used by DiscoveredMCPTool instance methods
|
|
16
|
-
callTool: mockCallTool,
|
|
17
|
-
// Add other methods if DiscoveredMCPTool starts using them
|
|
18
|
-
};
|
|
19
|
-
describe('generateValidName', () => {
|
|
20
|
-
it('should return a valid name for a simple function', () => {
|
|
21
|
-
expect(generateValidName('myFunction')).toBe('myFunction');
|
|
22
|
-
});
|
|
23
|
-
it('should replace invalid characters with underscores', () => {
|
|
24
|
-
expect(generateValidName('invalid-name with spaces')).toBe('invalid-name_with_spaces');
|
|
25
|
-
});
|
|
26
|
-
it('should truncate long names', () => {
|
|
27
|
-
expect(generateValidName('x'.repeat(80))).toBe('xxxxxxxxxxxxxxxxxxxxxxxxxxxx___xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
|
|
28
|
-
});
|
|
29
|
-
it('should handle names with only invalid characters', () => {
|
|
30
|
-
expect(generateValidName('!@#$%^&*()')).toBe('__________');
|
|
31
|
-
});
|
|
32
|
-
it('should handle names that are exactly 63 characters long', () => {
|
|
33
|
-
expect(generateValidName('a'.repeat(63)).length).toBe(63);
|
|
34
|
-
});
|
|
35
|
-
it('should handle names that are exactly 64 characters long', () => {
|
|
36
|
-
expect(generateValidName('a'.repeat(64)).length).toBe(63);
|
|
37
|
-
});
|
|
38
|
-
it('should handle names that are longer than 64 characters', () => {
|
|
39
|
-
expect(generateValidName('a'.repeat(80)).length).toBe(63);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
describe('DiscoveredMCPTool', () => {
|
|
43
|
-
const serverName = 'mock-mcp-server';
|
|
44
|
-
const serverToolName = 'actual-server-tool-name';
|
|
45
|
-
const baseDescription = 'A test MCP tool.';
|
|
46
|
-
const inputSchema = {
|
|
47
|
-
type: 'object',
|
|
48
|
-
properties: { param: { type: 'string' } },
|
|
49
|
-
required: ['param'],
|
|
50
|
-
};
|
|
51
|
-
beforeEach(() => {
|
|
52
|
-
mockCallTool.mockClear();
|
|
53
|
-
mockToolMethod.mockClear();
|
|
54
|
-
// Clear allowlist before each relevant test, especially for shouldConfirmExecute
|
|
55
|
-
DiscoveredMCPTool.allowlist.clear();
|
|
56
|
-
});
|
|
57
|
-
afterEach(() => {
|
|
58
|
-
vi.restoreAllMocks();
|
|
59
|
-
});
|
|
60
|
-
describe('constructor', () => {
|
|
61
|
-
it('should set properties correctly', () => {
|
|
62
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
63
|
-
expect(tool.name).toBe(serverToolName);
|
|
64
|
-
expect(tool.schema.name).toBe(serverToolName);
|
|
65
|
-
expect(tool.schema.description).toBe(baseDescription);
|
|
66
|
-
expect(tool.schema.parameters).toBeUndefined();
|
|
67
|
-
expect(tool.schema.parametersJsonSchema).toEqual(inputSchema);
|
|
68
|
-
expect(tool.serverToolName).toBe(serverToolName);
|
|
69
|
-
expect(tool.timeout).toBeUndefined();
|
|
70
|
-
});
|
|
71
|
-
it('should accept and store a custom timeout', () => {
|
|
72
|
-
const customTimeout = 5000;
|
|
73
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema, customTimeout);
|
|
74
|
-
expect(tool.timeout).toBe(customTimeout);
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
describe('execute', () => {
|
|
78
|
-
it('should call mcpTool.callTool with correct parameters and format display output', async () => {
|
|
79
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
80
|
-
const params = { param: 'testValue' };
|
|
81
|
-
const mockToolSuccessResultObject = {
|
|
82
|
-
success: true,
|
|
83
|
-
details: 'executed',
|
|
84
|
-
};
|
|
85
|
-
const mockFunctionResponseContent = [
|
|
86
|
-
{
|
|
87
|
-
type: 'text',
|
|
88
|
-
text: JSON.stringify(mockToolSuccessResultObject),
|
|
89
|
-
},
|
|
90
|
-
];
|
|
91
|
-
const mockMcpToolResponseParts = [
|
|
92
|
-
{
|
|
93
|
-
functionResponse: {
|
|
94
|
-
name: serverToolName,
|
|
95
|
-
response: { content: mockFunctionResponseContent },
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
];
|
|
99
|
-
mockCallTool.mockResolvedValue(mockMcpToolResponseParts);
|
|
100
|
-
const toolResult = await tool.execute(params);
|
|
101
|
-
expect(mockCallTool).toHaveBeenCalledWith([
|
|
102
|
-
{ name: serverToolName, args: params },
|
|
103
|
-
]);
|
|
104
|
-
const stringifiedResponseContent = JSON.stringify(mockToolSuccessResultObject);
|
|
105
|
-
expect(toolResult.llmContent).toEqual([
|
|
106
|
-
{ text: stringifiedResponseContent },
|
|
107
|
-
]);
|
|
108
|
-
expect(toolResult.returnDisplay).toBe(stringifiedResponseContent);
|
|
109
|
-
});
|
|
110
|
-
it('should handle empty result from getStringifiedResultForDisplay', async () => {
|
|
111
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
112
|
-
const params = { param: 'testValue' };
|
|
113
|
-
const mockMcpToolResponsePartsEmpty = [];
|
|
114
|
-
mockCallTool.mockResolvedValue(mockMcpToolResponsePartsEmpty);
|
|
115
|
-
const toolResult = await tool.execute(params);
|
|
116
|
-
expect(toolResult.returnDisplay).toBe('```json\n[]\n```');
|
|
117
|
-
expect(toolResult.llmContent).toEqual([
|
|
118
|
-
{ text: '[Error: Could not parse tool response]' },
|
|
119
|
-
]);
|
|
120
|
-
});
|
|
121
|
-
it('should propagate rejection if mcpTool.callTool rejects', async () => {
|
|
122
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
123
|
-
const params = { param: 'failCase' };
|
|
124
|
-
const expectedError = new Error('MCP call failed');
|
|
125
|
-
mockCallTool.mockRejectedValue(expectedError);
|
|
126
|
-
await expect(tool.execute(params)).rejects.toThrow(expectedError);
|
|
127
|
-
});
|
|
128
|
-
it('should handle a simple text response correctly', async () => {
|
|
129
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
130
|
-
const params = { query: 'test' };
|
|
131
|
-
const successMessage = 'This is a success message.';
|
|
132
|
-
// Simulate the response from the GenAI SDK, which wraps the MCP
|
|
133
|
-
// response in a functionResponse Part.
|
|
134
|
-
const sdkResponse = [
|
|
135
|
-
{
|
|
136
|
-
functionResponse: {
|
|
137
|
-
name: serverToolName,
|
|
138
|
-
response: {
|
|
139
|
-
// The `content` array contains MCP ContentBlocks.
|
|
140
|
-
content: [{ type: 'text', text: successMessage }],
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
];
|
|
145
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
146
|
-
const toolResult = await tool.execute(params);
|
|
147
|
-
// 1. Assert that the llmContent sent to the scheduler is a clean Part array.
|
|
148
|
-
expect(toolResult.llmContent).toEqual([{ text: successMessage }]);
|
|
149
|
-
// 2. Assert that the display output is the simple text message.
|
|
150
|
-
expect(toolResult.returnDisplay).toBe(successMessage);
|
|
151
|
-
// 3. Verify that the underlying callTool was made correctly.
|
|
152
|
-
expect(mockCallTool).toHaveBeenCalledWith([
|
|
153
|
-
{ name: serverToolName, args: params },
|
|
154
|
-
]);
|
|
155
|
-
});
|
|
156
|
-
it('should handle an AudioBlock response', async () => {
|
|
157
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
158
|
-
const params = { action: 'play' };
|
|
159
|
-
const sdkResponse = [
|
|
160
|
-
{
|
|
161
|
-
functionResponse: {
|
|
162
|
-
name: serverToolName,
|
|
163
|
-
response: {
|
|
164
|
-
content: [
|
|
165
|
-
{
|
|
166
|
-
type: 'audio',
|
|
167
|
-
data: 'BASE64_AUDIO_DATA',
|
|
168
|
-
mimeType: 'audio/mp3',
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
];
|
|
175
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
176
|
-
const toolResult = await tool.execute(params);
|
|
177
|
-
expect(toolResult.llmContent).toEqual([
|
|
178
|
-
{
|
|
179
|
-
text: `[Tool '${serverToolName}' provided the following audio data with mime-type: audio/mp3]`,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
inlineData: {
|
|
183
|
-
mimeType: 'audio/mp3',
|
|
184
|
-
data: 'BASE64_AUDIO_DATA',
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
]);
|
|
188
|
-
expect(toolResult.returnDisplay).toBe('[Audio: audio/mp3]');
|
|
189
|
-
});
|
|
190
|
-
it('should handle a ResourceLinkBlock response', async () => {
|
|
191
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
192
|
-
const params = { resource: 'get' };
|
|
193
|
-
const sdkResponse = [
|
|
194
|
-
{
|
|
195
|
-
functionResponse: {
|
|
196
|
-
name: serverToolName,
|
|
197
|
-
response: {
|
|
198
|
-
content: [
|
|
199
|
-
{
|
|
200
|
-
type: 'resource_link',
|
|
201
|
-
uri: 'file:///path/to/thing',
|
|
202
|
-
name: 'resource-name',
|
|
203
|
-
title: 'My Resource',
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
];
|
|
210
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
211
|
-
const toolResult = await tool.execute(params);
|
|
212
|
-
expect(toolResult.llmContent).toEqual([
|
|
213
|
-
{
|
|
214
|
-
text: 'Resource Link: My Resource at file:///path/to/thing',
|
|
215
|
-
},
|
|
216
|
-
]);
|
|
217
|
-
expect(toolResult.returnDisplay).toBe('[Link to My Resource: file:///path/to/thing]');
|
|
218
|
-
});
|
|
219
|
-
it('should handle an embedded text ResourceBlock response', async () => {
|
|
220
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
221
|
-
const params = { resource: 'get' };
|
|
222
|
-
const sdkResponse = [
|
|
223
|
-
{
|
|
224
|
-
functionResponse: {
|
|
225
|
-
name: serverToolName,
|
|
226
|
-
response: {
|
|
227
|
-
content: [
|
|
228
|
-
{
|
|
229
|
-
type: 'resource',
|
|
230
|
-
resource: {
|
|
231
|
-
uri: 'file:///path/to/text.txt',
|
|
232
|
-
text: 'This is the text content.',
|
|
233
|
-
mimeType: 'text/plain',
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
];
|
|
241
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
242
|
-
const toolResult = await tool.execute(params);
|
|
243
|
-
expect(toolResult.llmContent).toEqual([
|
|
244
|
-
{ text: 'This is the text content.' },
|
|
245
|
-
]);
|
|
246
|
-
expect(toolResult.returnDisplay).toBe('This is the text content.');
|
|
247
|
-
});
|
|
248
|
-
it('should handle an embedded binary ResourceBlock response', async () => {
|
|
249
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
250
|
-
const params = { resource: 'get' };
|
|
251
|
-
const sdkResponse = [
|
|
252
|
-
{
|
|
253
|
-
functionResponse: {
|
|
254
|
-
name: serverToolName,
|
|
255
|
-
response: {
|
|
256
|
-
content: [
|
|
257
|
-
{
|
|
258
|
-
type: 'resource',
|
|
259
|
-
resource: {
|
|
260
|
-
uri: 'file:///path/to/data.bin',
|
|
261
|
-
blob: 'BASE64_BINARY_DATA',
|
|
262
|
-
mimeType: 'application/octet-stream',
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
];
|
|
270
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
271
|
-
const toolResult = await tool.execute(params);
|
|
272
|
-
expect(toolResult.llmContent).toEqual([
|
|
273
|
-
{
|
|
274
|
-
text: `[Tool '${serverToolName}' provided the following embedded resource with mime-type: application/octet-stream]`,
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
inlineData: {
|
|
278
|
-
mimeType: 'application/octet-stream',
|
|
279
|
-
data: 'BASE64_BINARY_DATA',
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
]);
|
|
283
|
-
expect(toolResult.returnDisplay).toBe('[Embedded Resource: application/octet-stream]');
|
|
284
|
-
});
|
|
285
|
-
it('should handle a mix of content block types', async () => {
|
|
286
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
287
|
-
const params = { action: 'complex' };
|
|
288
|
-
const sdkResponse = [
|
|
289
|
-
{
|
|
290
|
-
functionResponse: {
|
|
291
|
-
name: serverToolName,
|
|
292
|
-
response: {
|
|
293
|
-
content: [
|
|
294
|
-
{ type: 'text', text: 'First part.' },
|
|
295
|
-
{
|
|
296
|
-
type: 'image',
|
|
297
|
-
data: 'BASE64_IMAGE_DATA',
|
|
298
|
-
mimeType: 'image/jpeg',
|
|
299
|
-
},
|
|
300
|
-
{ type: 'text', text: 'Second part.' },
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
];
|
|
306
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
307
|
-
const toolResult = await tool.execute(params);
|
|
308
|
-
expect(toolResult.llmContent).toEqual([
|
|
309
|
-
{ text: 'First part.' },
|
|
310
|
-
{
|
|
311
|
-
text: `[Tool '${serverToolName}' provided the following image data with mime-type: image/jpeg]`,
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
inlineData: {
|
|
315
|
-
mimeType: 'image/jpeg',
|
|
316
|
-
data: 'BASE64_IMAGE_DATA',
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
|
-
{ text: 'Second part.' },
|
|
320
|
-
]);
|
|
321
|
-
expect(toolResult.returnDisplay).toBe('First part.\n[Image: image/jpeg]\nSecond part.');
|
|
322
|
-
});
|
|
323
|
-
it('should ignore unknown content block types', async () => {
|
|
324
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
325
|
-
const params = { action: 'test' };
|
|
326
|
-
const sdkResponse = [
|
|
327
|
-
{
|
|
328
|
-
functionResponse: {
|
|
329
|
-
name: serverToolName,
|
|
330
|
-
response: {
|
|
331
|
-
content: [
|
|
332
|
-
{ type: 'text', text: 'Valid part.' },
|
|
333
|
-
{ type: 'future_block', data: 'some-data' },
|
|
334
|
-
],
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
];
|
|
339
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
340
|
-
const toolResult = await tool.execute(params);
|
|
341
|
-
expect(toolResult.llmContent).toEqual([{ text: 'Valid part.' }]);
|
|
342
|
-
expect(toolResult.returnDisplay).toBe('Valid part.\n[Unknown content type: future_block]');
|
|
343
|
-
});
|
|
344
|
-
it('should handle a complex mix of content block types', async () => {
|
|
345
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
346
|
-
const params = { action: 'super-complex' };
|
|
347
|
-
const sdkResponse = [
|
|
348
|
-
{
|
|
349
|
-
functionResponse: {
|
|
350
|
-
name: serverToolName,
|
|
351
|
-
response: {
|
|
352
|
-
content: [
|
|
353
|
-
{ type: 'text', text: 'Here is a resource.' },
|
|
354
|
-
{
|
|
355
|
-
type: 'resource_link',
|
|
356
|
-
uri: 'file:///path/to/resource',
|
|
357
|
-
name: 'resource-name',
|
|
358
|
-
title: 'My Resource',
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
type: 'resource',
|
|
362
|
-
resource: {
|
|
363
|
-
uri: 'file:///path/to/text.txt',
|
|
364
|
-
text: 'Embedded text content.',
|
|
365
|
-
mimeType: 'text/plain',
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
type: 'image',
|
|
370
|
-
data: 'BASE64_IMAGE_DATA',
|
|
371
|
-
mimeType: 'image/jpeg',
|
|
372
|
-
},
|
|
373
|
-
],
|
|
374
|
-
},
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
];
|
|
378
|
-
mockCallTool.mockResolvedValue(sdkResponse);
|
|
379
|
-
const toolResult = await tool.execute(params);
|
|
380
|
-
expect(toolResult.llmContent).toEqual([
|
|
381
|
-
{ text: 'Here is a resource.' },
|
|
382
|
-
{
|
|
383
|
-
text: 'Resource Link: My Resource at file:///path/to/resource',
|
|
384
|
-
},
|
|
385
|
-
{ text: 'Embedded text content.' },
|
|
386
|
-
{
|
|
387
|
-
text: `[Tool '${serverToolName}' provided the following image data with mime-type: image/jpeg]`,
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
inlineData: {
|
|
391
|
-
mimeType: 'image/jpeg',
|
|
392
|
-
data: 'BASE64_IMAGE_DATA',
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
]);
|
|
396
|
-
expect(toolResult.returnDisplay).toBe('Here is a resource.\n[Link to My Resource: file:///path/to/resource]\nEmbedded text content.\n[Image: image/jpeg]');
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
describe('shouldConfirmExecute', () => {
|
|
400
|
-
// beforeEach is already clearing allowlist
|
|
401
|
-
it('should return false if trust is true', async () => {
|
|
402
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema, undefined, true);
|
|
403
|
-
expect(await tool.shouldConfirmExecute({}, new AbortController().signal)).toBe(false);
|
|
404
|
-
});
|
|
405
|
-
it('should return false if server is allowlisted', async () => {
|
|
406
|
-
DiscoveredMCPTool.allowlist.add(serverName);
|
|
407
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
408
|
-
expect(await tool.shouldConfirmExecute({}, new AbortController().signal)).toBe(false);
|
|
409
|
-
});
|
|
410
|
-
it('should return false if tool is allowlisted', async () => {
|
|
411
|
-
const toolAllowlistKey = `${serverName}.${serverToolName}`;
|
|
412
|
-
DiscoveredMCPTool.allowlist.add(toolAllowlistKey);
|
|
413
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
414
|
-
expect(await tool.shouldConfirmExecute({}, new AbortController().signal)).toBe(false);
|
|
415
|
-
});
|
|
416
|
-
it('should return confirmation details if not trusted and not allowlisted', async () => {
|
|
417
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
418
|
-
const confirmation = await tool.shouldConfirmExecute({}, new AbortController().signal);
|
|
419
|
-
expect(confirmation).not.toBe(false);
|
|
420
|
-
if (confirmation && confirmation.type === 'mcp') {
|
|
421
|
-
// Type guard for ToolMcpConfirmationDetails
|
|
422
|
-
expect(confirmation.type).toBe('mcp');
|
|
423
|
-
expect(confirmation.serverName).toBe(serverName);
|
|
424
|
-
expect(confirmation.toolName).toBe(serverToolName);
|
|
425
|
-
}
|
|
426
|
-
else if (confirmation) {
|
|
427
|
-
// Handle other possible confirmation types if necessary, or strengthen test if only MCP is expected
|
|
428
|
-
throw new Error('Confirmation was not of expected type MCP or was false');
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
throw new Error('Confirmation details not in expected format or was false');
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
it('should add server to allowlist on ProceedAlwaysServer', async () => {
|
|
435
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
436
|
-
const confirmation = await tool.shouldConfirmExecute({}, new AbortController().signal);
|
|
437
|
-
expect(confirmation).not.toBe(false);
|
|
438
|
-
if (confirmation &&
|
|
439
|
-
typeof confirmation === 'object' &&
|
|
440
|
-
'onConfirm' in confirmation &&
|
|
441
|
-
typeof confirmation.onConfirm === 'function') {
|
|
442
|
-
await confirmation.onConfirm(ToolConfirmationOutcome.ProceedAlwaysServer);
|
|
443
|
-
expect(DiscoveredMCPTool.allowlist.has(serverName)).toBe(true);
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
throw new Error('Confirmation details or onConfirm not in expected format');
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
it('should add tool to allowlist on ProceedAlwaysTool', async () => {
|
|
450
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
451
|
-
const toolAllowlistKey = `${serverName}.${serverToolName}`;
|
|
452
|
-
const confirmation = await tool.shouldConfirmExecute({}, new AbortController().signal);
|
|
453
|
-
expect(confirmation).not.toBe(false);
|
|
454
|
-
if (confirmation &&
|
|
455
|
-
typeof confirmation === 'object' &&
|
|
456
|
-
'onConfirm' in confirmation &&
|
|
457
|
-
typeof confirmation.onConfirm === 'function') {
|
|
458
|
-
await confirmation.onConfirm(ToolConfirmationOutcome.ProceedAlwaysTool);
|
|
459
|
-
expect(DiscoveredMCPTool.allowlist.has(toolAllowlistKey)).toBe(true);
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
throw new Error('Confirmation details or onConfirm not in expected format');
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
it('should handle Cancel confirmation outcome', async () => {
|
|
466
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
467
|
-
const confirmation = await tool.shouldConfirmExecute({}, new AbortController().signal);
|
|
468
|
-
expect(confirmation).not.toBe(false);
|
|
469
|
-
if (confirmation &&
|
|
470
|
-
typeof confirmation === 'object' &&
|
|
471
|
-
'onConfirm' in confirmation &&
|
|
472
|
-
typeof confirmation.onConfirm === 'function') {
|
|
473
|
-
// Cancel should not add anything to allowlist
|
|
474
|
-
await confirmation.onConfirm(ToolConfirmationOutcome.Cancel);
|
|
475
|
-
expect(DiscoveredMCPTool.allowlist.has(serverName)).toBe(false);
|
|
476
|
-
expect(DiscoveredMCPTool.allowlist.has(`${serverName}.${serverToolName}`)).toBe(false);
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
throw new Error('Confirmation details or onConfirm not in expected format');
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
it('should handle ProceedOnce confirmation outcome', async () => {
|
|
483
|
-
const tool = new DiscoveredMCPTool(mockCallableToolInstance, serverName, serverToolName, baseDescription, inputSchema);
|
|
484
|
-
const confirmation = await tool.shouldConfirmExecute({}, new AbortController().signal);
|
|
485
|
-
expect(confirmation).not.toBe(false);
|
|
486
|
-
if (confirmation &&
|
|
487
|
-
typeof confirmation === 'object' &&
|
|
488
|
-
'onConfirm' in confirmation &&
|
|
489
|
-
typeof confirmation.onConfirm === 'function') {
|
|
490
|
-
// ProceedOnce should not add anything to allowlist
|
|
491
|
-
await confirmation.onConfirm(ToolConfirmationOutcome.ProceedOnce);
|
|
492
|
-
expect(DiscoveredMCPTool.allowlist.has(serverName)).toBe(false);
|
|
493
|
-
expect(DiscoveredMCPTool.allowlist.has(`${serverName}.${serverToolName}`)).toBe(false);
|
|
494
|
-
}
|
|
495
|
-
else {
|
|
496
|
-
throw new Error('Confirmation details or onConfirm not in expected format');
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
});
|
|
501
|
-
//# sourceMappingURL=mcp-tool.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tool.test.js","sourceRoot":"","sources":["../../../src/tools/mcp-tool.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,uDAAuD;AACvD,OAAO,EACL,QAAQ,EACR,EAAE,EACF,MAAM,EACN,EAAE,EACF,UAAU,EACV,SAAS,GAEV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC,CAAC,uCAAuC;AAC7G,OAAO,EAAc,uBAAuB,EAAE,MAAM,YAAY,CAAC,CAAC,gCAAgC;AAGlG,gDAAgD;AAChD,8EAA8E;AAC9E,MAAM,YAAY,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAC7B,MAAM,cAAc,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/B,MAAM,wBAAwB,GAAyB;IACrD,IAAI,EAAE,cAAqB,EAAE,0DAA0D;IACvF,QAAQ,EAAE,YAAmB;IAC7B,2DAA2D;CAC5D,CAAC;AAEF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAAC,CAAC,IAAI,CACxD,0BAA0B,CAC3B,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,E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