@aws/lsp-codewhisperer 0.0.88 → 0.0.90
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 +20 -0
- package/node_modules/@amzn/codewhisperer-runtime/README.md +78 -15
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/CodeWhispererRuntimeClient.js +13 -10
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateArtifactUploadUrlCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateSubscriptionTokenCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateTaskAssistConversationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateUploadUrlCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateUserMemoryEntryCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateWorkspaceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteTaskAssistConversationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteUserMemoryEntryCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteWorkspaceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GenerateCompletionsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetCodeAnalysisCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetCodeFixJobCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetProfileCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetRetrievalsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTaskAssistCodeGenerationCommand.js +6 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTestGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTransformationPlanCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetUsageLimitsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableCustomizationsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableModelsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableProfilesCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableSubscriptionsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListCodeAnalysisFindingsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListEventsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListFeatureEvaluationsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListUserMemoryEntriesCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListWorkspaceMetadataCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/PushTelemetryEventCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ResumeTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/SendTelemetryEventCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/SetUserPreferenceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartCodeAnalysisCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartCodeFixJobCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTaskAssistCodeGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTestGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StopTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/UpdateUsageLimitsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/endpointResolver.js +19 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/ruleset.js +61 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_0.js +52 -43
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_1.js +7 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/protocols/Aws_restJson1.js +23 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/CodeWhispererRuntimeClient.js +15 -12
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateArtifactUploadUrlCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateSubscriptionTokenCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateTaskAssistConversationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateUploadUrlCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateUserMemoryEntryCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateWorkspaceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteTaskAssistConversationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteUserMemoryEntryCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteWorkspaceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GenerateCompletionsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetCodeAnalysisCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetCodeFixJobCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetProfileCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetRetrievalsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTaskAssistCodeGenerationCommand.js +5 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTestGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTransformationPlanCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetUsageLimitsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableCustomizationsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableModelsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableProfilesCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableSubscriptionsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListCodeAnalysisFindingsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListEventsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListFeatureEvaluationsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListUserMemoryEntriesCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListWorkspaceMetadataCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/PushTelemetryEventCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ResumeTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/SendTelemetryEventCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/SetUserPreferenceCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartCodeAnalysisCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartCodeFixJobCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTaskAssistCodeGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTestGenerationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StopTransformationCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/UpdateUsageLimitsCommand.js +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/EndpointParameters.js +11 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/endpointResolver.js +15 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/ruleset.js +58 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_0.js +47 -37
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_1.js +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/protocols/Aws_restJson1.js +23 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/CodeWhispererRuntimeClient.d.ts +6 -9
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateArtifactUploadUrlCommand.d.ts +7 -7
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateSubscriptionTokenCommand.d.ts +8 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateTaskAssistConversationCommand.d.ts +4 -4
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateUploadUrlCommand.d.ts +11 -11
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateUserMemoryEntryCommand.d.ts +10 -10
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateWorkspaceCommand.d.ts +8 -8
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteTaskAssistConversationCommand.d.ts +5 -4
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteUserMemoryEntryCommand.d.ts +4 -4
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GenerateCompletionsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetCodeAnalysisCommand.d.ts +8 -8
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetCodeFixJobCommand.d.ts +7 -7
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetProfileCommand.d.ts +10 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetRetrievalsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTaskAssistCodeGenerationCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTestGenerationCommand.d.ts +4 -4
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTransformationCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTransformationPlanCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetUsageLimitsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableCustomizationsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableModelsCommand.d.ts +10 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableProfilesCommand.d.ts +9 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableSubscriptionsCommand.d.ts +3 -3
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListCodeAnalysisFindingsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListEventsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListFeatureEvaluationsCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListUserMemoryEntriesCommand.d.ts +4 -4
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListWorkspaceMetadataCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/PushTelemetryEventCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ResumeTransformationCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SendTelemetryEventCommand.d.ts +7 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SetUserPreferenceCommand.d.ts +6 -6
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartCodeAnalysisCommand.d.ts +8 -8
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartCodeFixJobCommand.d.ts +7 -7
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTaskAssistCodeGenerationCommand.d.ts +8 -8
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTestGenerationCommand.d.ts +7 -7
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTransformationCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StopTransformationCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/UpdateUsageLimitsCommand.d.ts +8 -8
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/EndpointParameters.d.ts +28 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_0.d.ts +151 -131
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_1.d.ts +52 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.d.ts +5 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.native.d.ts +5 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +423 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +229 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +229 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/package.json +58 -0
- package/node_modules/@amzn/codewhisperer-runtime/package.json +3 -0
- package/out/client/token/codewhisperer.d.ts +1 -1
- package/out/client/token/codewhisperer.js +1 -1
- package/out/client/token/codewhisperer.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatController.d.ts +7 -0
- package/out/language-server/agenticChat/agenticChatController.js +75 -14
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.d.ts +7 -0
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +202 -34
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +4 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +19 -6
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.d.ts +6 -0
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +6 -0
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/inline-completion/handler/editCompletionHandler.js +8 -2
- package/out/language-server/inline-completion/handler/editCompletionHandler.js.map +1 -1
- package/out/language-server/inline-completion/handler/inlineCompletionHandler.js +7 -2
- package/out/language-server/inline-completion/handler/inlineCompletionHandler.js.map +1 -1
- package/out/language-server/inline-completion/handler/sessionResultsHandler.js +15 -2
- package/out/language-server/inline-completion/handler/sessionResultsHandler.js.map +1 -1
- package/out/language-server/inline-completion/telemetry/telemetry.d.ts +4 -4
- package/out/language-server/inline-completion/telemetry/telemetry.js +6 -6
- package/out/language-server/inline-completion/telemetry/telemetry.js.map +1 -1
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +5 -1
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
- package/out/shared/codeWhispererService.d.ts +10 -3
- package/out/shared/codeWhispererService.js +64 -3
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +3 -3
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js +9 -9
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +1 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js +2 -2
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
- package/out/shared/telemetry/telemetryService.d.ts +2 -2
- package/out/shared/telemetry/telemetryService.js +4 -2
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/package.json +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoints.js +0 -211
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoints.js +0 -207
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoints.d.ts +0 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointPartition } from "@smithy/types";
|
|
2
|
+
export type PartitionsInfo = {
|
|
3
|
+
partitions: Array<{
|
|
4
|
+
id: string;
|
|
5
|
+
outputs: {
|
|
6
|
+
dnsSuffix: string;
|
|
7
|
+
dualStackDnsSuffix: string;
|
|
8
|
+
name: string;
|
|
9
|
+
supportsDualStack: boolean;
|
|
10
|
+
supportsFIPS: boolean;
|
|
11
|
+
};
|
|
12
|
+
regionRegex: string;
|
|
13
|
+
regions: Record<string, {
|
|
14
|
+
description?: string;
|
|
15
|
+
} | undefined>;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Evaluates a single string argument value as a region, and matches the
|
|
20
|
+
* string value to an AWS partition.
|
|
21
|
+
* The matcher MUST always return a successful object describing the partition
|
|
22
|
+
* that the region has been determined to be a part of.
|
|
23
|
+
*/
|
|
24
|
+
export declare const partition: (value: string) => EndpointPartition;
|
|
25
|
+
/**
|
|
26
|
+
* Set custom partitions.json data.
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const setPartitionInfo: (partitionsInfo: PartitionsInfo, userAgentPrefix?: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Reset to the default partitions.json data.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const useDefaultPartitionInfo: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare const getUserAgentPrefix: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isIpAddress } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { resolveEndpoint } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EndpointPartition } from "@smithy/types";
|
|
2
|
+
export type PartitionsInfo = {
|
|
3
|
+
partitions: Array<{
|
|
4
|
+
id: string;
|
|
5
|
+
outputs: {
|
|
6
|
+
dnsSuffix: string;
|
|
7
|
+
dualStackDnsSuffix: string;
|
|
8
|
+
name: string;
|
|
9
|
+
supportsDualStack: boolean;
|
|
10
|
+
supportsFIPS: boolean;
|
|
11
|
+
};
|
|
12
|
+
regionRegex: string;
|
|
13
|
+
regions: Record<
|
|
14
|
+
string,
|
|
15
|
+
| {
|
|
16
|
+
description?: string;
|
|
17
|
+
}
|
|
18
|
+
| undefined
|
|
19
|
+
>;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export declare const partition: (value: string) => EndpointPartition;
|
|
23
|
+
export declare const setPartitionInfo: (
|
|
24
|
+
partitionsInfo: PartitionsInfo,
|
|
25
|
+
userAgentPrefix?: string
|
|
26
|
+
) => void;
|
|
27
|
+
export declare const useDefaultPartitionInfo: () => void;
|
|
28
|
+
export declare const getUserAgentPrefix: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isIpAddress } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { resolveEndpoint } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EndpointError } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorRuleObject } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EndpointError } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorRuleObject } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/util-endpoints";
|
package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/util-endpoints",
|
|
3
|
+
"version": "3.731.0",
|
|
4
|
+
"description": "Utilities to help with endpoint resolution",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"types": "./dist-types/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
10
|
+
"build:cjs": "node ../../scripts/compilation/inline util-endpoints",
|
|
11
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
12
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
13
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
14
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
16
|
+
"test": "yarn g:vitest run",
|
|
17
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
|
18
|
+
"test:watch": "yarn g:vitest watch",
|
|
19
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
|
20
|
+
},
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "AWS SDK for JavaScript Team",
|
|
23
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@aws-sdk/types": "3.731.0",
|
|
28
|
+
"@smithy/types": "^4.0.0",
|
|
29
|
+
"@smithy/util-endpoints": "^3.0.0",
|
|
30
|
+
"tslib": "^2.6.2"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18.0.0"
|
|
34
|
+
},
|
|
35
|
+
"typesVersions": {
|
|
36
|
+
"<4.0": {
|
|
37
|
+
"dist-types/*": [
|
|
38
|
+
"dist-types/ts3.4/*"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist-*/**"
|
|
44
|
+
],
|
|
45
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-endpoints",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
49
|
+
"directory": "packages/util-endpoints"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@tsconfig/recommended": "1.0.1",
|
|
53
|
+
"concurrently": "7.0.0",
|
|
54
|
+
"downlevel-dts": "0.10.1",
|
|
55
|
+
"rimraf": "3.0.2",
|
|
56
|
+
"typescript": "~5.2.2"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@aws-sdk/region-config-resolver": "3.731.0",
|
|
28
28
|
"@aws-sdk/token-providers": "3.731.1",
|
|
29
29
|
"@aws-sdk/types": "3.731.0",
|
|
30
|
+
"@aws-sdk/util-endpoints": "3.731.0",
|
|
30
31
|
"@aws-sdk/util-user-agent-browser": "3.731.0",
|
|
31
32
|
"@aws-sdk/util-user-agent-node": "3.731.0",
|
|
32
33
|
"@smithy/config-resolver": "^4.0.1",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"@smithy/hash-node": "^4.0.1",
|
|
36
37
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
37
38
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
39
|
+
"@smithy/middleware-endpoint": "^4.0.2",
|
|
38
40
|
"@smithy/middleware-retry": "^4.0.3",
|
|
39
41
|
"@smithy/middleware-serde": "^4.0.1",
|
|
40
42
|
"@smithy/middleware-stack": "^4.0.1",
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
50
52
|
"@smithy/util-defaults-mode-browser": "^4.0.3",
|
|
51
53
|
"@smithy/util-defaults-mode-node": "^4.0.3",
|
|
54
|
+
"@smithy/util-endpoints": "^3.0.1",
|
|
52
55
|
"@smithy/util-middleware": "^4.0.1",
|
|
53
56
|
"@smithy/util-retry": "^4.0.1",
|
|
54
57
|
"@smithy/util-utf8": "^4.0.0",
|
|
@@ -2,5 +2,5 @@ import { CodeWhispererRuntimeClient, CodeWhispererRuntimeClientConfig } from '@a
|
|
|
2
2
|
import { SDKInitializator, Logging, CredentialsProvider } from '@aws/language-server-runtimes/server-interface';
|
|
3
3
|
export interface CodeWhispererTokenClientConfigurationOptions extends CodeWhispererRuntimeClientConfig {
|
|
4
4
|
}
|
|
5
|
-
export declare function createCodeWhispererTokenClient(options: CodeWhispererTokenClientConfigurationOptions, sdkInitializator: SDKInitializator, logging: Logging, credentialsProvider: CredentialsProvider, shareCodeWhispererContentWithAWS: boolean): CodeWhispererRuntimeClient;
|
|
5
|
+
export declare function createCodeWhispererTokenClient(options: CodeWhispererTokenClientConfigurationOptions, sdkInitializator: SDKInitializator, logging: Logging, credentialsProvider: CredentialsProvider, shareCodeWhispererContentWithAWS: () => boolean): CodeWhispererRuntimeClient;
|
|
6
6
|
export type CodeWhispererTokenClient = CodeWhispererRuntimeClient;
|
|
@@ -10,7 +10,7 @@ function createCodeWhispererTokenClient(options, sdkInitializator, logging, cred
|
|
|
10
10
|
// Add middleware for custom headers
|
|
11
11
|
client.middlewareStack.add(next => async (args) => {
|
|
12
12
|
const request = args.request;
|
|
13
|
-
request.headers['x-amzn-codewhisperer-optout'] = `${!shareCodeWhispererContentWithAWS}`;
|
|
13
|
+
request.headers['x-amzn-codewhisperer-optout'] = `${!shareCodeWhispererContentWithAWS()}`;
|
|
14
14
|
if (credentialsProvider.getConnectionType() === 'external_idp') {
|
|
15
15
|
request.headers['TokenType'] = 'EXTERNAL_IDP';
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codewhisperer.js","sourceRoot":"","sources":["../../../src/client/token/codewhisperer.ts"],"names":[],"mappings":";;AAQA,wEAsDC;AA9DD,uEAA0G;AAQ1G,SAAgB,8BAA8B,CAC1C,OAAqD,EACrD,gBAAkC,EAClC,OAAgB,EAChB,mBAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"codewhisperer.js","sourceRoot":"","sources":["../../../src/client/token/codewhisperer.ts"],"names":[],"mappings":";;AAQA,wEAsDC;AA9DD,uEAA0G;AAQ1G,SAAgB,8BAA8B,CAC1C,OAAqD,EACrD,gBAAkC,EAClC,OAAgB,EAChB,mBAAwC,EACxC,gCAA+C;IAE/C,OAAO,CAAC,GAAG,CACP,gHAAgH,CACnH,CAAA;IAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,kDAA0B,EAAE;QACxD,GAAG,OAAO;KACb,CAAC,CAAA;IAEF,oCAAoC;IACpC,MAAM,CAAC,eAAe,CAAC,GAAG,CACtB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;QACjB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAsB,CAAA;QAC3C,OAAO,CAAC,OAAO,CAAC,6BAA6B,CAAC,GAAG,GAAG,CAAC,gCAAgC,EAAE,EAAE,CAAA;QAEzF,IAAI,mBAAmB,CAAC,iBAAiB,EAAE,KAAK,cAAc,EAAE,CAAC;YAC7D,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,cAAc,CAAA;QACjD,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC,EACD,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CACtC,CAAA;IAED,yCAAyC;IACzC,MAAM,CAAC,eAAe,CAAC,GAAG,CACtB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;QACjB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,CAAA;QAE/B,yCAAyC;QACzC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,YAAY,GAAG,MAAM,CAAC,QAAwB,CAAA;YACpD,IAAI,YAAY,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;gBACnD,qCAAqC;gBACrC,CAAC;gBAAC,MAAM,CAAC,MAAM,CAAC,SAAiB,CAAC,WAAW,GAAG,YAAY,CAAC,OAAO,CAAA;YACxE,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAA;IACjB,CAAC,EACD;QACI,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,MAAM;KACnB,CACJ,CAAA;IAED,OAAO,MAAM,CAAA;AACjB,CAAC"}
|
|
@@ -34,6 +34,13 @@ export declare class AgenticChatController implements ChatHandlers {
|
|
|
34
34
|
onRuleClick(params: RuleClickParams): Promise<import("@aws/language-server-runtimes/protocol").RuleClickResult>;
|
|
35
35
|
onListRules(params: ListRulesParams): Promise<import("@aws/language-server-runtimes/protocol").ListRulesResult>;
|
|
36
36
|
onListMcpServers(params: ListMcpServersParams): Promise<{
|
|
37
|
+
header: {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
actions: never[];
|
|
41
|
+
};
|
|
42
|
+
list: never[];
|
|
43
|
+
} | {
|
|
37
44
|
header: {
|
|
38
45
|
title: string;
|
|
39
46
|
description: string;
|
|
@@ -1372,7 +1372,15 @@ class AgenticChatController {
|
|
|
1372
1372
|
// — DEFAULT ⇒ Only MCP tools, but can also handle generic tool execution messages
|
|
1373
1373
|
default:
|
|
1374
1374
|
// Get original server and tool names from the mapping
|
|
1375
|
-
|
|
1375
|
+
let originalNames;
|
|
1376
|
+
try {
|
|
1377
|
+
originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
|
|
1378
|
+
}
|
|
1379
|
+
catch (error) {
|
|
1380
|
+
// McpManager not initialized, skip MCP tool handling
|
|
1381
|
+
this.#features.logging.debug(`McpManager not initialized, skipping MCP tool handling with error: ${error}`);
|
|
1382
|
+
originalNames = undefined;
|
|
1383
|
+
}
|
|
1376
1384
|
// Remove explanation field from toolUse.input for MCP tools
|
|
1377
1385
|
// many MCP servers do not support explanation field and it will break the tool if this is altered
|
|
1378
1386
|
if (originalNames &&
|
|
@@ -1384,9 +1392,16 @@ class AgenticChatController {
|
|
|
1384
1392
|
}
|
|
1385
1393
|
if (originalNames) {
|
|
1386
1394
|
const { serverName, toolName } = originalNames;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1395
|
+
let def;
|
|
1396
|
+
try {
|
|
1397
|
+
def = mcpManager_1.McpManager.instance
|
|
1398
|
+
.getAllTools()
|
|
1399
|
+
.find(d => d.serverName === serverName && d.toolName === toolName);
|
|
1400
|
+
}
|
|
1401
|
+
catch (error) {
|
|
1402
|
+
this.#features.logging.debug(`McpManager not initialized, cannot get tool definitions with error: ${error}`);
|
|
1403
|
+
def = undefined;
|
|
1404
|
+
}
|
|
1390
1405
|
if (def) {
|
|
1391
1406
|
const mcpTool = new mcpTool_1.McpTool(this.#features, def);
|
|
1392
1407
|
const { requiresAcceptance, warning } = await mcpTool.requiresAcceptance(serverName, toolName);
|
|
@@ -1608,7 +1623,15 @@ class AgenticChatController {
|
|
|
1608
1623
|
this.#telemetryController.emitToolUseSuggested(toolUse, session.conversationId ?? '', this.#features.runtime.serverInfo.version ?? '', undefined, session.pairProgrammingMode, this.#abTestingAllocation?.experimentName, this.#abTestingAllocation?.userVariation, 'Failed');
|
|
1609
1624
|
}
|
|
1610
1625
|
// Handle MCP tool failures
|
|
1611
|
-
|
|
1626
|
+
let originalNames;
|
|
1627
|
+
try {
|
|
1628
|
+
originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
|
|
1629
|
+
}
|
|
1630
|
+
catch (error) {
|
|
1631
|
+
// McpManager not initialized, skip MCP error handling
|
|
1632
|
+
this.#features.logging.debug(`McpManager not initialized, skipping MCP error handling with error: ${error}`);
|
|
1633
|
+
originalNames = undefined;
|
|
1634
|
+
}
|
|
1612
1635
|
if (originalNames && toolUse.toolUseId) {
|
|
1613
1636
|
const { toolName } = originalNames;
|
|
1614
1637
|
const cachedToolUse = session.toolUseLookup.get(toolUse.toolUseId);
|
|
@@ -3541,16 +3564,39 @@ class AgenticChatController {
|
|
|
3541
3564
|
return allTools;
|
|
3542
3565
|
}
|
|
3543
3566
|
// Clear tool name mapping to avoid conflicts from previous registrations
|
|
3544
|
-
|
|
3567
|
+
try {
|
|
3568
|
+
mcpManager_1.McpManager.instance.clearToolNameMapping();
|
|
3569
|
+
}
|
|
3570
|
+
catch (error) {
|
|
3571
|
+
// McpManager not initialized, return tools without MCP
|
|
3572
|
+
this.#features.logging.debug(`McpManager not initialized in #getTools, returning non-MCP tools with error: ${error}`);
|
|
3573
|
+
return session.pairProgrammingMode
|
|
3574
|
+
? allTools
|
|
3575
|
+
: allTools.filter(tool => !builtInWriteTools.has(tool.toolSpecification?.name || ''));
|
|
3576
|
+
}
|
|
3545
3577
|
const tempMapping = new Map();
|
|
3546
3578
|
// Read Only Tools = All Tools - Restricted Tools (MCP + Write Tools)
|
|
3547
3579
|
// TODO: mcp tool spec name will be server___tool.
|
|
3548
3580
|
// TODO: Will also need to handle rare edge cases of long server name + long tool name > 64 char
|
|
3549
3581
|
const allNamespacedTools = new Set();
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3582
|
+
let mcpToolSpecNames;
|
|
3583
|
+
try {
|
|
3584
|
+
mcpToolSpecNames = new Set(mcpManager_1.McpManager.instance
|
|
3585
|
+
.getAllTools()
|
|
3586
|
+
.map(tool => (0, mcpUtils_1.createNamespacedToolName)(tool.serverName, tool.toolName, allNamespacedTools, tempMapping)));
|
|
3587
|
+
}
|
|
3588
|
+
catch (error) {
|
|
3589
|
+
// McpManager not initialized, use empty set
|
|
3590
|
+
this.#features.logging.debug(`McpManager not initialized, cannot get MCP tools because of error: ${error}`);
|
|
3591
|
+
mcpToolSpecNames = new Set();
|
|
3592
|
+
}
|
|
3593
|
+
try {
|
|
3594
|
+
mcpManager_1.McpManager.instance.setToolNameMapping(tempMapping);
|
|
3595
|
+
}
|
|
3596
|
+
catch (error) {
|
|
3597
|
+
// McpManager not initialized, skip setting mapping
|
|
3598
|
+
this.#features.logging.debug(`McpManager not initialized, cannot set tool name mapping because of error: ${error}`);
|
|
3599
|
+
}
|
|
3554
3600
|
const restrictedToolNames = new Set([...mcpToolSpecNames, ...builtInWriteTools]);
|
|
3555
3601
|
const readOnlyTools = allTools.filter(tool => {
|
|
3556
3602
|
const toolName = tool.toolSpecification.name;
|
|
@@ -3589,12 +3635,27 @@ class AgenticChatController {
|
|
|
3589
3635
|
return;
|
|
3590
3636
|
}
|
|
3591
3637
|
// Get original server and tool names from the mapping
|
|
3592
|
-
|
|
3638
|
+
let originalNames;
|
|
3639
|
+
try {
|
|
3640
|
+
originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
|
|
3641
|
+
}
|
|
3642
|
+
catch (error) {
|
|
3643
|
+
// McpManager not initialized, skip MCP tool result handling
|
|
3644
|
+
this.#features.logging.debug(`McpManager not initialized, cannot handle MCP tool result because of error: ${error}`);
|
|
3645
|
+
originalNames = undefined;
|
|
3646
|
+
}
|
|
3593
3647
|
if (originalNames) {
|
|
3594
3648
|
const { serverName, toolName } = originalNames;
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3649
|
+
let def;
|
|
3650
|
+
try {
|
|
3651
|
+
def = mcpManager_1.McpManager.instance
|
|
3652
|
+
.getAllTools()
|
|
3653
|
+
.find(d => d.serverName === serverName && d.toolName === toolName);
|
|
3654
|
+
}
|
|
3655
|
+
catch (error) {
|
|
3656
|
+
this.#features.logging.debug(`McpManager not initialized, cannot get tool definitions because of error: ${error}`);
|
|
3657
|
+
def = undefined;
|
|
3658
|
+
}
|
|
3598
3659
|
if (def) {
|
|
3599
3660
|
// Format the tool result and input as JSON strings
|
|
3600
3661
|
const toolInput = JSON.stringify(toolUse.input, null, 2);
|