@aws/lsp-codewhisperer 0.0.32 → 0.0.33
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 +213 -0
- package/README.md +18 -1
- package/node_modules/@amzn/amazon-q-developer-streaming-client/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +864 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreaming.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +49 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthSchemeProvider.js +50 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +26 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +26 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +211 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/extensionConfiguration.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/index.js +10 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/QDeveloperStreamingServiceException.js +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/index.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +1051 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +597 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.browser.js +40 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.js +48 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +32 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeExtensions.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreaming.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthSchemeProvider.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/index.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +207 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/QDeveloperStreamingServiceException.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/index.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +963 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +590 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.browser.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreaming.d.ts +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +196 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +102 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +796 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/QDeveloperStreamingServiceException.d.ts +14 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/index.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +2985 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/protocols/Aws_json1_0.d.ts +20 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +46 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/README.md +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-cjs/index.js +294 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/auth.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/checksum.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/client.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/command.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/connection.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/credentials.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/crypto.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/dns.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/encode.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/eventStream.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/extensions/index.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/http.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/index.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/logger.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/middleware.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/pagination.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/profile.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/request.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/response.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/retry.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/serde.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/shapes.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/signature.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/stream.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/token.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/util.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/waiter.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +50 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/dns.d.ts +85 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/http.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/index.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/logger.d.ts +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/request.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/response.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/serde.d.ts +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/token.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +14 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/package.json +56 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/README.md +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/index.js +84 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller}/package.json +21 -31
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/index.js +806 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +209 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +167 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +88 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +56 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +62 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +46 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +62 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/package.json +67 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CHANGELOG.md +274 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/README.md +466 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng-browser.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/stringify.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v35.js +80 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v4.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/package.json +135 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +88 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +121 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +266 -42
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +205 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/endpoints.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +241 -33
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +207 -5
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +2 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +9 -7
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +168 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +169 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +168 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +874 -221
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +25 -17
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +12 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +6 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +6 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +4 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +8 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +6 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +5 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/package.json +11 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +21 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +6 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -39
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +10 -10
- package/node_modules/@amzn/codewhisperer-streaming/package.json +42 -42
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-cjs/index.js +8 -30
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +1 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpRequest.js +8 -13
- package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +23 -0
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +23 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/package.json +6 -6
- package/out/client/sigv4/codewhisperer.d.ts +2 -2
- package/out/client/sigv4/codewhisperer.js +4 -3
- package/out/client/sigv4/codewhisperer.js.map +1 -1
- package/out/client/streamingClient/codewhispererStreamingClient.d.ts +3 -3
- package/out/client/streamingClient/codewhispererStreamingClient.js +4 -3
- package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
- package/out/client/token/codewhisperer.d.ts +2 -2
- package/out/client/token/codewhisperer.js +4 -3
- package/out/client/token/codewhisperer.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +4 -1
- package/out/index.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatController.d.ts +35 -4
- package/out/language-server/agenticChat/agenticChatController.js +1337 -91
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatEventParser.d.ts +52 -0
- package/out/language-server/agenticChat/agenticChatEventParser.js +186 -0
- package/out/language-server/agenticChat/agenticChatEventParser.js.map +1 -0
- package/out/language-server/agenticChat/agenticChatResultStream.d.ts +83 -0
- package/out/language-server/agenticChat/agenticChatResultStream.js +176 -0
- package/out/language-server/agenticChat/agenticChatResultStream.js.map +1 -0
- package/out/language-server/agenticChat/constants.d.ts +4 -0
- package/out/language-server/agenticChat/constants.js +8 -0
- package/out/language-server/agenticChat/constants.js.map +1 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +14 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.js +191 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +54 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +246 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.d.ts +20 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.js +206 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -0
- package/out/language-server/agenticChat/context/contextUtils.d.ts +27 -0
- package/out/language-server/agenticChat/context/contextUtils.js +44 -0
- package/out/language-server/agenticChat/context/contextUtils.js.map +1 -0
- package/out/language-server/agenticChat/errors.d.ts +10 -0
- package/out/language-server/agenticChat/errors.js +42 -0
- package/out/language-server/agenticChat/errors.js.map +1 -0
- package/out/language-server/agenticChat/qAgenticChatServer.js +42 -15
- package/out/language-server/agenticChat/qAgenticChatServer.js.map +1 -1
- package/out/language-server/agenticChat/tabBarController.d.ts +55 -0
- package/out/language-server/agenticChat/tabBarController.js +216 -0
- package/out/language-server/agenticChat/tabBarController.js.map +1 -0
- package/out/language-server/agenticChat/textFormatting.d.ts +4 -0
- package/out/language-server/agenticChat/textFormatting.js +28 -0
- package/out/language-server/agenticChat/textFormatting.js.map +1 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +89 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js +561 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -0
- package/out/language-server/agenticChat/tools/chatDb/util.d.ts +74 -0
- package/out/language-server/agenticChat/tools/chatDb/util.js +255 -0
- package/out/language-server/agenticChat/tools/chatDb/util.js.map +1 -0
- package/out/language-server/agenticChat/tools/codeSearch.d.ts +43 -0
- package/out/language-server/agenticChat/tools/codeSearch.js +168 -0
- package/out/language-server/agenticChat/tools/codeSearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/executeBash.d.ts +70 -0
- package/out/language-server/agenticChat/tools/executeBash.js +463 -0
- package/out/language-server/agenticChat/tools/executeBash.js.map +1 -0
- package/out/language-server/agenticChat/tools/fileSearch.d.ts +45 -0
- package/out/language-server/agenticChat/tools/fileSearch.js +115 -0
- package/out/language-server/agenticChat/tools/fileSearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/fsRead.d.ts +13 -9
- package/out/language-server/agenticChat/tools/fsRead.js +68 -22
- package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.d.ts +21 -12
- package/out/language-server/agenticChat/tools/fsWrite.js +127 -44
- package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.d.ts +36 -0
- package/out/language-server/agenticChat/tools/listDirectory.js +110 -0
- package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.d.ts +100 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js +140 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.d.ts +24 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.js +45 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.d.ts +37 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.js +116 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +21 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +106 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.d.ts +21 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.js +54 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.d.ts +28 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.js +7 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.d.ts +7 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.js +78 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.js.map +1 -0
- package/out/language-server/agenticChat/tools/toolServer.d.ts +3 -0
- package/out/language-server/agenticChat/tools/toolServer.js +62 -6
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolShared.d.ts +48 -5
- package/out/language-server/agenticChat/tools/toolShared.js +109 -2
- package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
- package/out/language-server/chat/chatController.d.ts +7 -4
- package/out/language-server/chat/chatController.js +13 -18
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatEventParser.d.ts +3 -1
- package/out/language-server/chat/chatEventParser.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.d.ts +2 -2
- package/out/language-server/chat/chatSessionManagementService.js +4 -4
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +36 -3
- package/out/language-server/chat/chatSessionService.js +88 -5
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/constants.d.ts +3 -0
- package/out/language-server/chat/constants.js +17 -1
- package/out/language-server/chat/constants.js.map +1 -1
- package/out/language-server/chat/contexts/documentContext.d.ts +2 -1
- package/out/language-server/chat/contexts/documentContext.js +2 -0
- package/out/language-server/chat/contexts/documentContext.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.d.ts +7 -3
- package/out/language-server/chat/contexts/triggerContext.js +39 -2
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/qChatServer.d.ts +4 -1
- package/out/language-server/chat/qChatServer.js +17 -17
- package/out/language-server/chat/qChatServer.js.map +1 -1
- package/out/language-server/chat/quickActions.d.ts +2 -0
- package/out/language-server/chat/quickActions.js +2 -0
- package/out/language-server/chat/quickActions.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +5 -3
- package/out/language-server/chat/telemetry/chatTelemetryController.js +50 -4
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/chat/tools/relevantTextDocuments.d.ts +3 -0
- package/out/language-server/chat/tools/relevantTextDocuments.js +42 -0
- package/out/language-server/chat/tools/relevantTextDocuments.js.map +1 -0
- package/out/language-server/chat/utils.js +18 -3
- package/out/language-server/chat/utils.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +2 -3
- package/out/language-server/configuration/qConfigurationServer.js +27 -20
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/inline-completion/auto-trigger/coefficients.json +4 -1
- package/out/language-server/inline-completion/codeWhispererServer.d.ts +2 -3
- package/out/language-server/inline-completion/codeWhispererServer.js +29 -30
- package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
- package/out/language-server/localProjectContext/localProjectContextServer.d.ts +2 -0
- package/out/language-server/localProjectContext/localProjectContextServer.js +130 -0
- package/out/language-server/localProjectContext/localProjectContextServer.js.map +1 -0
- package/out/language-server/netTransform/artifactManager.js +12 -4
- package/out/language-server/netTransform/artifactManager.js.map +1 -1
- package/out/language-server/netTransform/metrics.d.ts +2 -0
- package/out/language-server/netTransform/metrics.js +26 -1
- package/out/language-server/netTransform/metrics.js.map +1 -1
- package/out/language-server/netTransform/models.d.ts +2 -0
- package/out/language-server/netTransform/models.js.map +1 -1
- package/out/language-server/netTransform/netTransformServer.d.ts +2 -4
- package/out/language-server/netTransform/netTransformServer.js +21 -16
- package/out/language-server/netTransform/netTransformServer.js.map +1 -1
- package/out/language-server/netTransform/tests/mockData.js +1 -0
- package/out/language-server/netTransform/tests/mockData.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +6 -5
- package/out/language-server/netTransform/transformHandler.js +35 -12
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/securityScan/codeWhispererSecurityScanServer.js +10 -11
- package/out/language-server/securityScan/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/securityScan/types.d.ts +2 -1
- package/out/shared/amazonQServer.d.ts +5 -0
- package/out/shared/amazonQServer.js +53 -0
- package/out/shared/amazonQServer.js.map +1 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.d.ts +19 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js +61 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js.map +1 -0
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +14 -28
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +78 -99
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +72 -5
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js +116 -0
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -1
- package/out/shared/amazonQServiceManager/configurationUtils.d.ts +13 -1
- package/out/shared/amazonQServiceManager/configurationUtils.js +41 -22
- package/out/shared/amazonQServiceManager/configurationUtils.js.map +1 -1
- package/out/shared/amazonQServiceManager/errors.d.ts +9 -0
- package/out/shared/amazonQServiceManager/errors.js +22 -1
- package/out/shared/amazonQServiceManager/errors.js.map +1 -1
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.d.ts +2 -1
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.js +26 -3
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.js.map +1 -1
- package/out/shared/amazonQServiceManager/testUtils.d.ts +48 -0
- package/out/shared/amazonQServiceManager/testUtils.js +112 -0
- package/out/shared/amazonQServiceManager/testUtils.js.map +1 -0
- package/out/shared/codeWhispererService.d.ts +3 -3
- package/out/shared/codeWhispererService.js +4 -4
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/constants.d.ts +10 -0
- package/out/shared/constants.js +12 -1
- package/out/shared/constants.js.map +1 -1
- package/out/shared/localProjectContextController.d.ts +56 -0
- package/out/shared/localProjectContextController.js +371 -0
- package/out/shared/localProjectContextController.js.map +1 -0
- package/out/shared/models/constants.d.ts +5 -0
- package/out/shared/models/constants.js +6 -1
- package/out/shared/models/constants.js.map +1 -1
- package/out/shared/models/model.d.ts +2 -1
- package/out/shared/proxy-server.d.ts +4 -2
- package/out/shared/proxy-server.js +11 -10
- package/out/shared/proxy-server.js.map +1 -1
- package/out/shared/streamingClientService.d.ts +23 -7
- package/out/shared/streamingClientService.js +56 -9
- package/out/shared/streamingClientService.js.map +1 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +4 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js +73 -17
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +8 -0
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js +63 -2
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
- package/out/shared/telemetry/telemetryService.d.ts +16 -2
- package/out/shared/telemetry/telemetryService.js +25 -2
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/telemetry/types.d.ts +37 -2
- package/out/shared/telemetry/types.js +2 -0
- package/out/shared/telemetry/types.js.map +1 -1
- package/out/shared/telemetryUtils.d.ts +1 -0
- package/out/shared/telemetryUtils.js +5 -3
- package/out/shared/telemetryUtils.js.map +1 -1
- package/out/shared/testUtils.d.ts +2 -1
- package/out/shared/testUtils.js +10 -1
- package/out/shared/testUtils.js.map +1 -1
- package/out/shared/utils.d.ts +30 -0
- package/out/shared/utils.js +184 -0
- package/out/shared/utils.js.map +1 -1
- package/package.json +21 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -53
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -53
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -206
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -44
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -44
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -13
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -13
- package/out/shared/amazonQServiceManager/factories.d.ts +0 -15
- package/out/shared/amazonQServiceManager/factories.js +0 -47
- package/out/shared/amazonQServiceManager/factories.js.map +0 -1
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/httpHandler.js → amazon-q-developer-streaming-client/dist-es/extensionConfiguration.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types}/LICENSE +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/abort.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/constants.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector}/index.js +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/LICENSE +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/README.md +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js → @smithy/protocol-http/dist-cjs/Field.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js → @smithy/protocol-http/dist-cjs/Fields.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js → @smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Field.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Fields.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpResponse.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/isValidHostname.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Field.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Fields.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpHandler.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpResponse.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/isValidHostname.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/types.d.ts +0 -0
|
@@ -132,6 +132,9 @@ export interface TransformationJobArtifactsDownloadedEvent {
|
|
|
132
132
|
transformationJobId: string;
|
|
133
133
|
error: string;
|
|
134
134
|
}
|
|
135
|
+
export interface PollingCancelledEvent {
|
|
136
|
+
CancelPollingEnabled: Boolean;
|
|
137
|
+
}
|
|
135
138
|
export interface TransformationFailureEvent {
|
|
136
139
|
[key: string]: any;
|
|
137
140
|
category: string;
|
|
@@ -147,7 +150,9 @@ export declare enum ChatTelemetryEventName {
|
|
|
147
150
|
AddMessage = "amazonq_addMessage",
|
|
148
151
|
RunCommand = "amazonq_runCommand",
|
|
149
152
|
MessageResponseError = "amazonq_messageResponseError",
|
|
150
|
-
ModifyCode = "amazonq_modifyCode"
|
|
153
|
+
ModifyCode = "amazonq_modifyCode",
|
|
154
|
+
ToolUseSuggested = "amazonq_toolUseSuggested",
|
|
155
|
+
InteractWithAgenticChat = "amazonq_interactWithAgenticChat"
|
|
151
156
|
}
|
|
152
157
|
export interface ChatTelemetryEventMap {
|
|
153
158
|
[ChatTelemetryEventName.EnterFocusChat]: EnterFocusChatEvent;
|
|
@@ -160,7 +165,23 @@ export interface ChatTelemetryEventMap {
|
|
|
160
165
|
[ChatTelemetryEventName.RunCommand]: RunCommandEvent;
|
|
161
166
|
[ChatTelemetryEventName.MessageResponseError]: MessageResponseErrorEvent;
|
|
162
167
|
[ChatTelemetryEventName.ModifyCode]: ModifyCodeEvent;
|
|
168
|
+
[ChatTelemetryEventName.ToolUseSuggested]: ToolUseSuggestedEvent;
|
|
169
|
+
[ChatTelemetryEventName.InteractWithAgenticChat]: InteractWithAgenticChatEvent;
|
|
163
170
|
}
|
|
171
|
+
export type ToolUseSuggestedEvent = {
|
|
172
|
+
credentialStartUrl?: string;
|
|
173
|
+
cwsprChatConversationId: string;
|
|
174
|
+
cwsprChatConversationType: ChatConversationType;
|
|
175
|
+
cwsprToolName: string;
|
|
176
|
+
cwsprToolUseId: string;
|
|
177
|
+
languageServerVersion?: string;
|
|
178
|
+
};
|
|
179
|
+
export type InteractWithAgenticChatEvent = {
|
|
180
|
+
credentialStartUrl?: string;
|
|
181
|
+
cwsprChatConversationId: string;
|
|
182
|
+
cwsprChatConversationType: ChatConversationType;
|
|
183
|
+
cwsprAgenticChatInteractionType: AgenticChatInteractionType;
|
|
184
|
+
};
|
|
164
185
|
export type ModifyCodeEvent = {
|
|
165
186
|
cwsprChatConversationId: string;
|
|
166
187
|
cwsprChatMessageId: string;
|
|
@@ -190,6 +211,18 @@ export type AddMessageEvent = {
|
|
|
190
211
|
cwsprChatResponseLength?: number;
|
|
191
212
|
cwsprChatConversationType: ChatConversationType;
|
|
192
213
|
codewhispererCustomizationArn?: string;
|
|
214
|
+
languageServerVersion?: string;
|
|
215
|
+
cwsprChatHasContextList?: boolean;
|
|
216
|
+
cwsprChatFolderContextCount?: number;
|
|
217
|
+
cwsprChatFileContextCount?: number;
|
|
218
|
+
cwsprChatFileContextLength?: number;
|
|
219
|
+
cwsprChatRuleContextCount?: number;
|
|
220
|
+
cwsprChatRuleContextLength?: number;
|
|
221
|
+
cwsprChatPromptContextCount?: number;
|
|
222
|
+
cwsprChatPromptContextLength?: number;
|
|
223
|
+
cwsprChatFocusFileContextLength?: number;
|
|
224
|
+
cwsprChatCodeContextCount?: number;
|
|
225
|
+
cwsprChatCodeContextLength?: number;
|
|
193
226
|
};
|
|
194
227
|
export type EnterFocusChatEvent = {
|
|
195
228
|
credentialStartUrl?: string;
|
|
@@ -216,7 +249,8 @@ export declare enum ChatInteractionType {
|
|
|
216
249
|
Downvote = "downvote",
|
|
217
250
|
ClickBodyLink = "clickBodyLink"
|
|
218
251
|
}
|
|
219
|
-
export type ChatConversationType = 'Chat' | 'Assign' | 'Transform';
|
|
252
|
+
export type ChatConversationType = 'Chat' | 'Assign' | 'Transform' | 'AgenticChat' | 'AgenticChatWithToolUse';
|
|
253
|
+
export type AgenticChatInteractionType = 'RejectDiff' | 'GeneratedDiff' | 'RunCommand' | 'GeneratedCommand' | 'StopChat';
|
|
220
254
|
export type InteractWithMessageEvent = {
|
|
221
255
|
credentialStartUrl?: string;
|
|
222
256
|
cwsprChatConversationId: string;
|
|
@@ -250,6 +284,7 @@ export type MessageResponseErrorEvent = {
|
|
|
250
284
|
cwsprChatRepsonseCode: number;
|
|
251
285
|
cwsprChatRequestLength?: number;
|
|
252
286
|
cwsprChatConversationType: ChatConversationType;
|
|
287
|
+
languageServerVersion?: string;
|
|
253
288
|
};
|
|
254
289
|
export type RunCommandEvent = {
|
|
255
290
|
credentialStartUrl?: string;
|
|
@@ -13,6 +13,8 @@ var ChatTelemetryEventName;
|
|
|
13
13
|
ChatTelemetryEventName["RunCommand"] = "amazonq_runCommand";
|
|
14
14
|
ChatTelemetryEventName["MessageResponseError"] = "amazonq_messageResponseError";
|
|
15
15
|
ChatTelemetryEventName["ModifyCode"] = "amazonq_modifyCode";
|
|
16
|
+
ChatTelemetryEventName["ToolUseSuggested"] = "amazonq_toolUseSuggested";
|
|
17
|
+
ChatTelemetryEventName["InteractWithAgenticChat"] = "amazonq_interactWithAgenticChat";
|
|
16
18
|
})(ChatTelemetryEventName || (exports.ChatTelemetryEventName = ChatTelemetryEventName = {}));
|
|
17
19
|
var ChatInteractionType;
|
|
18
20
|
(function (ChatInteractionType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/shared/telemetry/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/shared/telemetry/types.ts"],"names":[],"mappings":";;;AAgKA,IAAY,sBAaX;AAbD,WAAY,sBAAsB;IAC9B,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;IACvC,mFAAyD,CAAA;IACzD,iFAAuD,CAAA;IACvD,yEAA+C,CAAA;IAC/C,6EAAmD,CAAA;IACnD,2DAAiC,CAAA;IACjC,2DAAiC,CAAA;IACjC,+EAAqD,CAAA;IACrD,2DAAiC,CAAA;IACjC,uEAA6C,CAAA;IAC7C,qFAA2D,CAAA;AAC/D,CAAC,EAbW,sBAAsB,sCAAtB,sBAAsB,QAajC;AAiGD,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC3B,wDAAiC,CAAA;IACjC,kDAA2B,CAAA;IAC3B,oCAAa,CAAA;IACb,8CAAuB,CAAA;IACvB,sDAA+B,CAAA;IAC/B,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,sDAA+B,CAAA;AACnC,CAAC,EAVW,mBAAmB,mCAAnB,mBAAmB,QAU9B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InitializeParams, Platform, ServerInfo } from '@aws/language-server-runtimes/server-interface';
|
|
2
2
|
import { UserContext } from '../client/token/codewhispererbearertokenclient';
|
|
3
3
|
export declare const getUserAgent: (initializeParams: InitializeParams, serverInfo?: ServerInfo) => string;
|
|
4
|
+
export declare const getIdeCategory: (initializeParams: InitializeParams) => string;
|
|
4
5
|
export declare const makeUserContextObject: (initializeParams: InitializeParams, platform: Platform, product: string) => UserContext | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeUserContextObject = exports.getUserAgent = void 0;
|
|
3
|
+
exports.makeUserContextObject = exports.getIdeCategory = exports.getUserAgent = void 0;
|
|
4
4
|
const USER_AGENT_PREFIX = 'AWS-Language-Servers';
|
|
5
5
|
const getUserAgent = (initializeParams, serverInfo) => {
|
|
6
6
|
const format = (s) => s.replace(/\s/g, '-');
|
|
@@ -39,8 +39,9 @@ const getUserAgent = (initializeParams, serverInfo) => {
|
|
|
39
39
|
};
|
|
40
40
|
exports.getUserAgent = getUserAgent;
|
|
41
41
|
const IDE_CATEGORY_MAP = {
|
|
42
|
+
// TODO: VSCode key needs to change for getting the correct coefficient value for inline
|
|
42
43
|
'AmazonQ-For-VSCode': 'VSCODE',
|
|
43
|
-
'Amazon
|
|
44
|
+
'Amazon Q For JetBrains': 'JETBRAINS',
|
|
44
45
|
'AmazonQ-For-Eclipse': 'ECLIPSE',
|
|
45
46
|
'AWS-Toolkit-For-VisualStudio': 'VISUAL_STUDIO',
|
|
46
47
|
};
|
|
@@ -56,6 +57,7 @@ const getIdeCategory = (initializeParams) => {
|
|
|
56
57
|
}
|
|
57
58
|
return ideCategory || 'UNKNOWN';
|
|
58
59
|
};
|
|
60
|
+
exports.getIdeCategory = getIdeCategory;
|
|
59
61
|
// Map result from https://github.com/aws/language-server-runtimes/blob/main/runtimes/server-interface/runtime.ts#L6 to expected Operating system
|
|
60
62
|
const getOperatingSystem = (platform) => {
|
|
61
63
|
switch (platform) {
|
|
@@ -74,7 +76,7 @@ const getOperatingSystem = (platform) => {
|
|
|
74
76
|
// This behaviour may change in the future, when API will accept not enumerated values in API definition.
|
|
75
77
|
const makeUserContextObject = (initializeParams, platform, product) => {
|
|
76
78
|
const userContext = {
|
|
77
|
-
ideCategory: getIdeCategory(initializeParams),
|
|
79
|
+
ideCategory: (0, exports.getIdeCategory)(initializeParams),
|
|
78
80
|
operatingSystem: getOperatingSystem(platform),
|
|
79
81
|
product: product,
|
|
80
82
|
clientId: initializeParams.initializationOptions?.aws?.clientInfo?.clientId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryUtils.js","sourceRoot":"","sources":["../../src/shared/telemetryUtils.ts"],"names":[],"mappings":";;;AAGA,MAAM,iBAAiB,GAAG,sBAAsB,CAAA;AAEzC,MAAM,YAAY,GAAG,CAAC,gBAAkC,EAAE,UAAuB,EAAU,EAAE;IAChG,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAEnD,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;IAE7B,sCAAsC;IACtC,IAAI,UAAU,EAAE,IAAI,EAAE,CAAC;QACnB,UAAU,CAAC,OAAO;YACd,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;YAChE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;IAC7C,CAAC;IAED,iCAAiC;IACjC,iEAAiE;IACjE,oEAAoE;IACpE,IAAI,gBAAgB,EAAE,qBAAqB,EAAE,GAAG,EAAE,CAAC;QAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,qBAAqB,EAAE,GAAG,CAAA;QACnE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,IAAI,EAAE,CAAA;QAEtC,IAAI,SAAS,EAAE,CAAC;YACZ,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,OAAO,IAAI,SAAS,E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AAW,IAAI,SAAS,CAAA;AACnC,CAAC,CAAA;AAPY,QAAA,cAAc,kBAO1B;AAED,iJAAiJ;AACjJ,MAAM,kBAAkB,GAAG,CAAC,QAAkB,EAAE,EAAE;IAC9C,QAAQ,QAAQ,EAAE,CAAC;QACf,KAAK,QAAQ;YACT,OAAO,KAAK,CAAA;QAChB,KAAK,OAAO;YACR,OAAO,SAAS,CAAA;QACpB,KAAK,OAAO;YACR,OAAO,OAAO,CAAA;QAClB;YACI,OAAO,SAAS,CAAA;IACxB,CAAC;AACL,CAAC,CAAA;AAED,8DAA8D;AAC9D,uEAAuE;AACvE,yGAAyG;AAClG,MAAM,qBAAqB,GAAG,CACjC,gBAAkC,EAClC,QAAkB,EAClB,OAAe,EACQ,EAAE;IACzB,MAAM,WAAW,GAAgB;QAC7B,WAAW,EAAE,IAAA,sBAAc,EAAC,gBAAgB,CAAC;QAC7C,eAAe,EAAE,kBAAkB,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,gBAAgB,CAAC,qBAAqB,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ;QAC3E,UAAU,EACN,gBAAgB,CAAC,qBAAqB,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,IAAI,gBAAgB,CAAC,UAAU,EAAE,OAAO;KAC/G,CAAA;IAED,IAAI,WAAW,CAAC,WAAW,KAAK,SAAS,IAAI,WAAW,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;QACrF,OAAM;IACV,CAAC;IAED,OAAO,WAAW,CAAA;AACtB,CAAC,CAAA;AAnBY,QAAA,qBAAqB,yBAmBjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
2
|
-
import { ResponseContext, Suggestion } from './codeWhispererService';
|
|
2
|
+
import { CodeWhispererServiceBase, ResponseContext, Suggestion } from './codeWhispererService';
|
|
3
3
|
import { TestFeatures } from '@aws/language-server-runtimes/testing';
|
|
4
4
|
import { SsoConnectionType } from './utils';
|
|
5
5
|
export declare const HELLO_WORLD_IN_CSHARP = "class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine(\"Hello World!\");\n }\n}";
|
|
@@ -78,3 +78,4 @@ export declare const createIterableResponse: <T>(data: T[]) => AsyncIterable<T>;
|
|
|
78
78
|
*/
|
|
79
79
|
export declare function shuffleList<T>(list: T[]): T[];
|
|
80
80
|
export declare const setCredentialsForAmazonQTokenServiceManagerFactory: (getFeatures: () => TestFeatures) => (connectionType: SsoConnectionType) => void;
|
|
81
|
+
export declare const stubCodeWhispererService: <C extends CodeWhispererServiceBase>() => import("ts-sinon").StubbedInstance<C>;
|
package/out/shared/testUtils.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setCredentialsForAmazonQTokenServiceManagerFactory = exports.createIterableResponse = exports.EMPTY_RESULT = exports.EXPECTED_RESULT_WITHOUT_REFERENCES = exports.EXPECTED_RESULT_WITH_REFERENCES = exports.EXPECTED_SUGGESTION_LIST = exports.EXPECTED_REFERENCE = exports.EXPECTED_RESULT = exports.EXPECTED_SESSION_ID = exports.EXPECTED_RESPONSE_CONTEXT = exports.EXPECTED_SUGGESTION = exports.SOME_SINGLE_LINE_FILE = exports.SINGLE_LINE_FILE_CUTOFF_INDEX = exports.HELLO_WORLD_LINE = exports.SAMPLE_FILE_OF_60_LINES_IN_JAVA = exports.SOME_FILE_WITH_EXTENSION = exports.SOME_UNSUPPORTED_FILE = exports.SOME_CLOSED_FILE = exports.SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = exports.SOME_FILE = exports.HELLO_WORLD_WITH_WINDOWS_ENDING = exports.SPECIAL_CHARACTER_HELLO_WORLD = exports.HELLO_WORLD_IN_CSHARP = void 0;
|
|
3
|
+
exports.stubCodeWhispererService = exports.setCredentialsForAmazonQTokenServiceManagerFactory = exports.createIterableResponse = exports.EMPTY_RESULT = exports.EXPECTED_RESULT_WITHOUT_REFERENCES = exports.EXPECTED_RESULT_WITH_REFERENCES = exports.EXPECTED_SUGGESTION_LIST = exports.EXPECTED_REFERENCE = exports.EXPECTED_RESULT = exports.EXPECTED_SESSION_ID = exports.EXPECTED_RESPONSE_CONTEXT = exports.EXPECTED_SUGGESTION = exports.SOME_SINGLE_LINE_FILE = exports.SINGLE_LINE_FILE_CUTOFF_INDEX = exports.HELLO_WORLD_LINE = exports.SAMPLE_FILE_OF_60_LINES_IN_JAVA = exports.SOME_FILE_WITH_EXTENSION = exports.SOME_UNSUPPORTED_FILE = exports.SOME_CLOSED_FILE = exports.SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = exports.SOME_FILE = exports.HELLO_WORLD_WITH_WINDOWS_ENDING = exports.SPECIAL_CHARACTER_HELLO_WORLD = exports.HELLO_WORLD_IN_CSHARP = void 0;
|
|
4
4
|
exports.shuffleList = shuffleList;
|
|
5
5
|
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
6
|
+
const ts_sinon_1 = require("ts-sinon");
|
|
6
7
|
exports.HELLO_WORLD_IN_CSHARP = `class HelloWorld
|
|
7
8
|
{
|
|
8
9
|
static void Main()
|
|
@@ -188,4 +189,12 @@ const setCredentialsForAmazonQTokenServiceManagerFactory = (getFeatures) => {
|
|
|
188
189
|
};
|
|
189
190
|
};
|
|
190
191
|
exports.setCredentialsForAmazonQTokenServiceManagerFactory = setCredentialsForAmazonQTokenServiceManagerFactory;
|
|
192
|
+
const stubCodeWhispererService = () => {
|
|
193
|
+
const service = (0, ts_sinon_1.stubInterface)();
|
|
194
|
+
// by default, sinon will add method stubs instead of settings these to undefined, which can lead to unintended test errors.
|
|
195
|
+
service.customizationArn = undefined;
|
|
196
|
+
service.profileArn = undefined;
|
|
197
|
+
return service;
|
|
198
|
+
};
|
|
199
|
+
exports.stubCodeWhispererService = stubCodeWhispererService;
|
|
191
200
|
//# sourceMappingURL=testUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../../src/shared/testUtils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../../src/shared/testUtils.ts"],"names":[],"mappings":";;;AA0MA,kCASC;AAnND,2FAAiE;AAIjE,uCAAwC;AAG3B,QAAA,qBAAqB,GAAG;;;;;;EAMnC,CAAA;AAEW,QAAA,6BAA6B,GAAG,mBAAmB,CAAA;AAEnD,QAAA,+BAA+B,GAAG,6BAAqB,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;AAEhF,QAAA,SAAS,GAAG,iDAAY,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,EAAE,CAAC,EAAE,6BAAqB,CAAC,CAAA;AACtF,QAAA,oCAAoC,GAAG,iDAAY,CAAC,MAAM;AACnE,6FAA6F;AAC7F,uBAAuB,EACvB,QAAQ,EACR,CAAC,EACD,6BAAqB,CACxB,CAAA;AACY,QAAA,gBAAgB,GAAG,iDAAY,CAAC,MAAM,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EAAE,6BAAqB,CAAC,CAAA;AAC/F,QAAA,qBAAqB,GAAG,iDAAY,CAAC,MAAM,CACpD,mBAAmB,EACnB,YAAY,EACZ,CAAC,EACD,4BAA4B,CAC/B,CAAA;AACY,QAAA,wBAAwB,GAAG,iDAAY,CAAC,MAAM,CAAC,qBAAqB,EAAE,EAAE,EAAE,CAAC,EAAE,6BAAqB,CAAC,CAAA;AAEnG,QAAA,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2D7C,CAAA;AAEW,QAAA,gBAAgB,GAAG,oCAAoC,CAAA;AACpE,wDAAwD;AAC3C,QAAA,6BAA6B,GAAG,CAAC,CAAA;AACjC,QAAA,qBAAqB,GAAG,iDAAY,CAAC,MAAM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AwB,4BAQpC"}
|
package/out/shared/utils.d.ts
CHANGED
|
@@ -4,6 +4,34 @@ import { Suggestion } from './codeWhispererService';
|
|
|
4
4
|
import { CodewhispererCompletionType } from './telemetry/types';
|
|
5
5
|
export type SsoConnectionType = 'builderId' | 'identityCenter' | 'none';
|
|
6
6
|
export declare function isAwsError(error: unknown): error is AWSError;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the identifier the given error.
|
|
9
|
+
* Depending on the implementation, the identifier may exist on a
|
|
10
|
+
* different property.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getErrorId(error: Error): string;
|
|
13
|
+
/**
|
|
14
|
+
* Derives an error message from the given error object.
|
|
15
|
+
* Depending on the Error, the property used to derive the message can vary.
|
|
16
|
+
*
|
|
17
|
+
* @param withCause Append the message(s) from the cause chain, recursively.
|
|
18
|
+
* The message(s) are delimited by ' | '. Eg: msg1 | causeMsg1 | causeMsg2
|
|
19
|
+
*/
|
|
20
|
+
export declare function getErrorMsg(err: Error | undefined, withCause?: boolean): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Removes potential PII from a string, for logging/telemetry.
|
|
23
|
+
*
|
|
24
|
+
* Examples:
|
|
25
|
+
* - "Failed to save c:/fooß/bar/baz.txt" => "Failed to save c:/xß/x/x.txt"
|
|
26
|
+
* - "EPERM for dir c:/Users/user1/.aws/sso/cache/abc123.json" => "EPERM for dir c:/Users/x/.aws/sso/cache/x.json"
|
|
27
|
+
*/
|
|
28
|
+
export declare function scrubNames(s: string, username?: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the (partial) error message detail for the `reasonDesc` field.
|
|
31
|
+
*
|
|
32
|
+
* @param err Error object, or message text
|
|
33
|
+
*/
|
|
34
|
+
export declare function getTelemetryReasonDesc(err: unknown | undefined): string | undefined;
|
|
7
35
|
export declare function isObject(value: unknown): value is {
|
|
8
36
|
[key: number | string | symbol]: any;
|
|
9
37
|
};
|
|
@@ -19,3 +47,5 @@ export declare function getUnmodifiedAcceptedTokens(origin: string, after: strin
|
|
|
19
47
|
export declare function getEndPositionForAcceptedSuggestion(content: string, startPosition: Position): Position;
|
|
20
48
|
export declare function safeGet<T, E extends Error>(object: T | undefined, customError?: E): T;
|
|
21
49
|
export declare function isStringOrNull(object: any): object is string | null;
|
|
50
|
+
export declare function getHttpStatusCode(err: unknown): number | undefined;
|
|
51
|
+
export declare function hasConnectionExpired(error: any): boolean;
|
package/out/shared/utils.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.flattenMetric = void 0;
|
|
4
4
|
exports.isAwsError = isAwsError;
|
|
5
|
+
exports.getErrorId = getErrorId;
|
|
6
|
+
exports.getErrorMsg = getErrorMsg;
|
|
7
|
+
exports.scrubNames = scrubNames;
|
|
8
|
+
exports.getTelemetryReasonDesc = getTelemetryReasonDesc;
|
|
5
9
|
exports.isObject = isObject;
|
|
6
10
|
exports.isNullish = isNullish;
|
|
7
11
|
exports.isBool = isBool;
|
|
@@ -14,14 +18,164 @@ exports.getUnmodifiedAcceptedTokens = getUnmodifiedAcceptedTokens;
|
|
|
14
18
|
exports.getEndPositionForAcceptedSuggestion = getEndPositionForAcceptedSuggestion;
|
|
15
19
|
exports.safeGet = safeGet;
|
|
16
20
|
exports.isStringOrNull = isStringOrNull;
|
|
21
|
+
exports.getHttpStatusCode = getHttpStatusCode;
|
|
22
|
+
exports.hasConnectionExpired = hasConnectionExpired;
|
|
17
23
|
const fastest_levenshtein_1 = require("fastest-levenshtein");
|
|
18
24
|
const constants_1 = require("./constants");
|
|
25
|
+
const utils_1 = require("../language-server/chat/utils");
|
|
19
26
|
function isAwsError(error) {
|
|
20
27
|
if (error === undefined) {
|
|
21
28
|
return false;
|
|
22
29
|
}
|
|
23
30
|
return error instanceof Error && hasCode(error) && hasTime(error);
|
|
24
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns the identifier the given error.
|
|
34
|
+
* Depending on the implementation, the identifier may exist on a
|
|
35
|
+
* different property.
|
|
36
|
+
*/
|
|
37
|
+
function getErrorId(error) {
|
|
38
|
+
// prioritize code over the name
|
|
39
|
+
return hasCode(error) ? error.code : error.name;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Derives an error message from the given error object.
|
|
43
|
+
* Depending on the Error, the property used to derive the message can vary.
|
|
44
|
+
*
|
|
45
|
+
* @param withCause Append the message(s) from the cause chain, recursively.
|
|
46
|
+
* The message(s) are delimited by ' | '. Eg: msg1 | causeMsg1 | causeMsg2
|
|
47
|
+
*/
|
|
48
|
+
function getErrorMsg(err, withCause = false) {
|
|
49
|
+
if (err === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
// Non-standard SDK fields added by the OIDC service, to conform to the OAuth spec
|
|
53
|
+
// (https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1) :
|
|
54
|
+
// - error: code per the OAuth spec
|
|
55
|
+
// - error_description: improved error message provided by OIDC service. Prefer this to
|
|
56
|
+
// `message` if present.
|
|
57
|
+
// https://github.com/aws/aws-toolkit-jetbrains/commit/cc9ed87fa9391dd39ac05cbf99b4437112fa3d10
|
|
58
|
+
// - error_uri: not provided by OIDC currently?
|
|
59
|
+
//
|
|
60
|
+
// Example:
|
|
61
|
+
//
|
|
62
|
+
// [error] API response (oidc.us-east-1.amazonaws.com /token): {
|
|
63
|
+
// name: 'InvalidGrantException',
|
|
64
|
+
// '$fault': 'client',
|
|
65
|
+
// '$metadata': {
|
|
66
|
+
// httpStatusCode: 400,
|
|
67
|
+
// requestId: '7f5af448-5af7-45f2-8e47-5808deaea4ab',
|
|
68
|
+
// extendedRequestId: undefined,
|
|
69
|
+
// cfId: undefined
|
|
70
|
+
// },
|
|
71
|
+
// error: 'invalid_grant',
|
|
72
|
+
// error_description: 'Invalid refresh token provided',
|
|
73
|
+
// message: 'UnknownError'
|
|
74
|
+
// }
|
|
75
|
+
const anyDesc = err.error_description;
|
|
76
|
+
const errDesc = typeof anyDesc === 'string' ? anyDesc.trim() : '';
|
|
77
|
+
let msg = errDesc !== '' ? errDesc : err.message?.trim();
|
|
78
|
+
if (typeof msg !== 'string') {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
// append the cause's message
|
|
82
|
+
if (withCause) {
|
|
83
|
+
const errorId = getErrorId(err);
|
|
84
|
+
// - prepend id to message
|
|
85
|
+
// - If a generic error does not have the `name` field explicitly set, it returns a generic 'Error' name. So skip since it is useless.
|
|
86
|
+
if (errorId && errorId !== 'Error') {
|
|
87
|
+
msg = `${errorId}: ${msg}`;
|
|
88
|
+
}
|
|
89
|
+
const cause = err.cause;
|
|
90
|
+
return `${msg}${cause ? ' | ' + getErrorMsg(cause, withCause) : ''}`;
|
|
91
|
+
}
|
|
92
|
+
return msg;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Removes potential PII from a string, for logging/telemetry.
|
|
96
|
+
*
|
|
97
|
+
* Examples:
|
|
98
|
+
* - "Failed to save c:/fooß/bar/baz.txt" => "Failed to save c:/xß/x/x.txt"
|
|
99
|
+
* - "EPERM for dir c:/Users/user1/.aws/sso/cache/abc123.json" => "EPERM for dir c:/Users/x/.aws/sso/cache/x.json"
|
|
100
|
+
*/
|
|
101
|
+
function scrubNames(s, username) {
|
|
102
|
+
let r = '';
|
|
103
|
+
const fileExtRe = /\.[^.\/]+$/;
|
|
104
|
+
const slashdot = /^[~.]*[\/\\]*/;
|
|
105
|
+
/** Allowlisted filepath segments. */
|
|
106
|
+
const keep = new Set([
|
|
107
|
+
'~',
|
|
108
|
+
'.',
|
|
109
|
+
'..',
|
|
110
|
+
'.aws',
|
|
111
|
+
'aws',
|
|
112
|
+
'sso',
|
|
113
|
+
'cache',
|
|
114
|
+
'credentials',
|
|
115
|
+
'config',
|
|
116
|
+
'Users',
|
|
117
|
+
'users',
|
|
118
|
+
'home',
|
|
119
|
+
'tmp',
|
|
120
|
+
'aws-toolkit-vscode',
|
|
121
|
+
'globalStorage', // from vscode globalStorageUri
|
|
122
|
+
constants_1.crashMonitoringDirName,
|
|
123
|
+
]);
|
|
124
|
+
if (username && username.length > 2) {
|
|
125
|
+
s = s.replaceAll(username, 'x');
|
|
126
|
+
}
|
|
127
|
+
// Replace contiguous whitespace with 1 space.
|
|
128
|
+
s = s.replace(/\s+/g, ' ');
|
|
129
|
+
// 1. split on whitespace.
|
|
130
|
+
// 2. scrub words that match username or look like filepaths.
|
|
131
|
+
const words = s.split(/\s+/);
|
|
132
|
+
for (const word of words) {
|
|
133
|
+
const pathSegments = word.split(/[\/\\]/);
|
|
134
|
+
if (pathSegments.length < 2) {
|
|
135
|
+
// Not a filepath.
|
|
136
|
+
r += ' ' + word;
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
// Replace all (non-allowlisted) ASCII filepath segments with "x".
|
|
140
|
+
// "/foo/bar/aws/sso/" => "/x/x/aws/sso/"
|
|
141
|
+
let scrubbed = '';
|
|
142
|
+
// Get the frontmatter ("/", "../", "~/", or "./").
|
|
143
|
+
const start = word.trimStart().match(slashdot)?.[0] ?? '';
|
|
144
|
+
pathSegments[0] = pathSegments[0].trimStart().replace(slashdot, '');
|
|
145
|
+
for (const seg of pathSegments) {
|
|
146
|
+
if (constants_1.driveLetterRegex.test(seg)) {
|
|
147
|
+
scrubbed += seg;
|
|
148
|
+
}
|
|
149
|
+
else if (keep.has(seg)) {
|
|
150
|
+
scrubbed += '/' + seg;
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
// Save the first non-ASCII (unicode) char, if any.
|
|
154
|
+
const nonAscii = seg.match(/[^\p{ASCII}]/u)?.[0] ?? '';
|
|
155
|
+
// Replace all chars (except [^…]) with "x" .
|
|
156
|
+
const ascii = seg.replace(/[^$[\](){}:;'" ]+/g, 'x');
|
|
157
|
+
scrubbed += `/${ascii}${nonAscii}`;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// includes leading '.', eg: '.json'
|
|
161
|
+
const fileExt = pathSegments[pathSegments.length - 1].match(fileExtRe) ?? '';
|
|
162
|
+
r += ` ${start.replace(/\\/g, '/')}${scrubbed.replace(/^[\/\\]+/, '')}${fileExt}`;
|
|
163
|
+
}
|
|
164
|
+
return r.trim();
|
|
165
|
+
}
|
|
166
|
+
// Port of implementation in AWS Toolkit for VSCode
|
|
167
|
+
// https://github.com/aws/aws-toolkit-vscode/blob/c22efa03e73b241564c8051c35761eb8620edb83/packages/core/src/shared/errors.ts#L455
|
|
168
|
+
/**
|
|
169
|
+
* Gets the (partial) error message detail for the `reasonDesc` field.
|
|
170
|
+
*
|
|
171
|
+
* @param err Error object, or message text
|
|
172
|
+
*/
|
|
173
|
+
function getTelemetryReasonDesc(err) {
|
|
174
|
+
const m = typeof err === 'string' ? err : (getErrorMsg(err, true) ?? '');
|
|
175
|
+
const msg = scrubNames(m);
|
|
176
|
+
// Truncate message as these strings can be very long.
|
|
177
|
+
return msg && msg.length > 0 ? msg.substring(0, 350) : undefined;
|
|
178
|
+
}
|
|
25
179
|
function hasCode(error) {
|
|
26
180
|
return typeof error.code === 'string';
|
|
27
181
|
}
|
|
@@ -127,4 +281,34 @@ function safeGet(object, customError) {
|
|
|
127
281
|
function isStringOrNull(object) {
|
|
128
282
|
return typeof object === 'string' || object === null;
|
|
129
283
|
}
|
|
284
|
+
// Port of implementation in AWS Toolkit for VSCode
|
|
285
|
+
// https://github.com/aws/aws-toolkit-vscode/blob/c22efa03e73b241564c8051c35761eb8620edb83/packages/core/src/shared/errors.ts#L648
|
|
286
|
+
function getHttpStatusCode(err) {
|
|
287
|
+
if (hasResponse(err) && err?.$response?.statusCode !== undefined) {
|
|
288
|
+
return err?.$response?.statusCode;
|
|
289
|
+
}
|
|
290
|
+
if (hasMetadata(err) && err.$metadata?.httpStatusCode !== undefined) {
|
|
291
|
+
return err.$metadata?.httpStatusCode;
|
|
292
|
+
}
|
|
293
|
+
if (hasCause(err) && err.cause.$metadata?.httpStatusCode !== undefined) {
|
|
294
|
+
return err.cause.$metadata.httpStatusCode;
|
|
295
|
+
}
|
|
296
|
+
return undefined;
|
|
297
|
+
}
|
|
298
|
+
function hasResponse(error) {
|
|
299
|
+
return typeof error?.$response === 'object';
|
|
300
|
+
}
|
|
301
|
+
function hasMetadata(error) {
|
|
302
|
+
return typeof error?.$metadata === 'object';
|
|
303
|
+
}
|
|
304
|
+
function hasCause(error) {
|
|
305
|
+
return typeof error?.cause === 'object';
|
|
306
|
+
}
|
|
307
|
+
function hasConnectionExpired(error) {
|
|
308
|
+
if (error instanceof Error) {
|
|
309
|
+
const authFollowType = (0, utils_1.getAuthFollowUpType)(error);
|
|
310
|
+
return authFollowType == 're-auth';
|
|
311
|
+
}
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
130
314
|
//# sourceMappingURL=utils.js.map
|
package/out/shared/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/shared/utils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/shared/utils.ts"],"names":[],"mappings":";;;AAWA,gCAMC;AAOD,gCAGC;AASD,kCAkDC;AASD,gCAqEC;AASD,wDAMC;AAUD,4BAEC;AAED,8BAEC;AAED,wBAEC;AAED,8CAIC;AAED,8BAMC;AAED,0CAKC;AAED,gEAYC;AAsBD,oDAIC;AASD,kEAEC;AAED,kFAoBC;AAED,0BAMC;AAED,wCAEC;AAID,8CAYC;AAcD,oDAMC;AAnVD,6DAA8C;AAG9C,2CAAwH;AAGxH,yDAAmE;AAGnE,SAAgB,UAAU,CAAC,KAAc;IACrC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,OAAO,KAAK,YAAY,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAA;AACrE,CAAC;AAED;;;;GAIG;AACH,SA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CAAC,SAAS,EAAE,cAAc,KAAK,SAAS,EAAE,CAAC;QACrE,OAAO,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAA;IAC7C,CAAC;IAED,OAAO,SAAS,CAAA;AACpB,CAAC;AAED,SAAS,WAAW,CAAI,KAAQ;IAC5B,OAAO,OAAQ,KAAiC,EAAE,SAAS,KAAK,QAAQ,CAAA;AAC5E,CAAC;AAED,SAAS,WAAW,CAAI,KAAQ;IAC5B,OAAO,OAAQ,KAAiC,EAAE,SAAS,KAAK,QAAQ,CAAA;AAC5E,CAAC;AAED,SAAS,QAAQ,CAAI,KAAQ;IACzB,OAAO,OAAQ,KAA6B,EAAE,KAAK,KAAK,QAAQ,CAAA;AACpE,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU;IAC3C,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QACzB,MAAM,cAAc,GAAG,IAAA,2BAAmB,EAAC,KAAK,CAAC,CAAA;QACjD,OAAO,cAAc,IAAI,SAAS,CAAA;IACtC,CAAC;IACD,OAAO,KAAK,CAAA;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/lsp-codewhisperer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"description": "CodeWhisperer Language Server",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,32 +21,45 @@
|
|
|
21
21
|
"lint": "npm run lint:src",
|
|
22
22
|
"lint:bundle:webworker": "webpack --config webpack.lint.config.js && eslint bundle/aws-lsp-codewhisperer-webworker.js # Verify compatibility with web runtime target",
|
|
23
23
|
"lint:src": "eslint src/ --ext .ts,.tsx",
|
|
24
|
-
"test:unit": "ts-mocha -b \"./src/**/*.test.ts\"",
|
|
24
|
+
"test:unit": "ts-mocha --timeout 0 -b \"./src/**/*.test.ts\"",
|
|
25
25
|
"test": "npm run lint && npm run test:unit",
|
|
26
26
|
"prepack": "npm run compile && ts-node ../../script/link_bundled_dependencies.ts",
|
|
27
27
|
"postinstall": "node ./script/install_transitive_dep.js"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@amzn/
|
|
30
|
+
"@amzn/amazon-q-developer-streaming-client": "file:../../core/q-developer-streaming-client/amzn-amazon-q-developer-streaming-client-1.0.0.tgz",
|
|
31
|
+
"@amzn/codewhisperer-streaming": "file:../../core/codewhisperer-streaming/amzn-codewhisperer-streaming-1.0.6.tgz",
|
|
32
|
+
"@aws-sdk/util-arn-parser": "^3.723.0",
|
|
31
33
|
"@aws-sdk/util-retry": "^3.374.0",
|
|
32
|
-
"@aws/chat-client-ui-types": "^0.1.
|
|
33
|
-
"@aws/language-server-runtimes": "^0.2.
|
|
34
|
-
"@aws/lsp-core": "^0.0.
|
|
34
|
+
"@aws/chat-client-ui-types": "^0.1.32",
|
|
35
|
+
"@aws/language-server-runtimes": "^0.2.75",
|
|
36
|
+
"@aws/lsp-core": "^0.0.4",
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.9.0",
|
|
35
38
|
"@smithy/node-http-handler": "^2.5.0",
|
|
36
39
|
"adm-zip": "^0.5.10",
|
|
37
40
|
"archiver": "^7.0.1",
|
|
38
41
|
"aws-sdk": "^2.1403.0",
|
|
42
|
+
"chokidar": "^4.0.3",
|
|
39
43
|
"deepmerge": "^4.3.1",
|
|
44
|
+
"diff": "^7.0.0",
|
|
40
45
|
"fastest-levenshtein": "^1.0.16",
|
|
46
|
+
"fdir": "^6.4.3",
|
|
41
47
|
"got": "^11.8.5",
|
|
42
48
|
"hpagent": "^1.2.0",
|
|
49
|
+
"ignore": "^7.0.3",
|
|
43
50
|
"js-md5": "^0.8.3",
|
|
51
|
+
"lokijs": "^1.5.12",
|
|
52
|
+
"picomatch": "^4.0.2",
|
|
53
|
+
"shlex": "2.1.2",
|
|
44
54
|
"uuid": "^11.0.5",
|
|
45
55
|
"vscode-uri": "^3.1.0"
|
|
46
56
|
},
|
|
47
57
|
"devDependencies": {
|
|
48
58
|
"@types/adm-zip": "^0.5.5",
|
|
49
59
|
"@types/archiver": "^6.0.2",
|
|
60
|
+
"@types/diff": "^7.0.2",
|
|
61
|
+
"@types/local-indexing": "file:./types/types-local-indexing-1.0.0.tgz",
|
|
62
|
+
"@types/lokijs": "^1.5.14",
|
|
50
63
|
"@types/uuid": "^9.0.8",
|
|
51
64
|
"assert": "^2.1.0",
|
|
52
65
|
"copyfiles": "^2.4.1",
|
|
@@ -70,6 +83,7 @@
|
|
|
70
83
|
"endOfLine": "lf"
|
|
71
84
|
},
|
|
72
85
|
"bundleDependencies": [
|
|
73
|
-
"@amzn/codewhisperer-streaming"
|
|
86
|
+
"@amzn/codewhisperer-streaming",
|
|
87
|
+
"@amzn/amazon-q-developer-streaming-client"
|
|
74
88
|
]
|
|
75
89
|
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@smithy/types";
|
|
2
|
-
type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {
|
|
3
|
-
method?: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Use the distinct IHttpRequest interface from @smithy/types instead.
|
|
7
|
-
* This should not be used due to
|
|
8
|
-
* overlapping with the concrete class' name.
|
|
9
|
-
*
|
|
10
|
-
* This is not marked deprecated since that would mark the concrete class
|
|
11
|
-
* deprecated as well.
|
|
12
|
-
*/
|
|
13
|
-
export interface HttpRequest extends IHttpRequest {
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export { IHttpRequest };
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export declare class HttpRequest implements HttpMessage, URI {
|
|
23
|
-
method: string;
|
|
24
|
-
protocol: string;
|
|
25
|
-
hostname: string;
|
|
26
|
-
port?: number;
|
|
27
|
-
path: string;
|
|
28
|
-
query: QueryParameterBag;
|
|
29
|
-
headers: HeaderBag;
|
|
30
|
-
username?: string;
|
|
31
|
-
password?: string;
|
|
32
|
-
fragment?: string;
|
|
33
|
-
body?: any;
|
|
34
|
-
constructor(options: HttpRequestOptions);
|
|
35
|
-
/**
|
|
36
|
-
* Note: this does not deep-clone the body.
|
|
37
|
-
*/
|
|
38
|
-
static clone(request: IHttpRequest): HttpRequest;
|
|
39
|
-
/**
|
|
40
|
-
* This method only actually asserts that request is the interface {@link IHttpRequest},
|
|
41
|
-
* and not necessarily this concrete class. Left in place for API stability.
|
|
42
|
-
*
|
|
43
|
-
* Do not call instance methods on the input of this function, and
|
|
44
|
-
* do not assume it has the HttpRequest prototype.
|
|
45
|
-
*/
|
|
46
|
-
static isInstance(request: unknown): request is HttpRequest;
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated use static HttpRequest.clone(request) instead. It's not safe to call
|
|
49
|
-
* this method because {@link HttpRequest.isInstance} incorrectly
|
|
50
|
-
* asserts that IHttpRequest (interface) objects are of type HttpRequest (class).
|
|
51
|
-
*/
|
|
52
|
-
clone(): HttpRequest;
|
|
53
|
-
}
|