@aws/lsp-codewhisperer 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/README.md +53 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +209 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +79 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/index.js +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/package.json +68 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/README.md +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +295 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/abort.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/auth.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/checksum.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/client.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/command.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/connection.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/credentials.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/crypto.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/dns.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/encode.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/eventStream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/extensions/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/http.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/index.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/logger.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/middleware.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/pagination.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/profile.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/request.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/response.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/retry.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/serde.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/shapes.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/signature.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/stream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/token.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/util.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/waiter.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +49 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/dns.d.ts +85 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/http.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/logger.d.ts +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/request.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/response.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/serde.d.ts +24 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/token.d.ts +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +19 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +24 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +56 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +206 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +44 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +26 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +44 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +26 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/package.json +72 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/CHANGELOG.md +274 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/README.md +466 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/rng-browser.js +25 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/stringify.js +44 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v35.js +80 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v4.js +43 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/package.json +135 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/wrapper.mjs +10 -0
- package/out/client/sigv4/codewhisperer.d.ts +2 -1
- package/out/client/sigv4/codewhisperer.js +4 -4
- package/out/client/sigv4/codewhisperer.js.map +1 -1
- package/out/client/streamingClient/codewhispererStreamingClient.d.ts +3 -2
- package/out/client/streamingClient/codewhispererStreamingClient.js +4 -29
- package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
- package/out/client/token/bearer-token-service.json +2 -2
- package/out/client/token/codewhisperer.d.ts +2 -1
- package/out/client/token/codewhisperer.js +4 -4
- package/out/client/token/codewhisperer.js.map +1 -1
- package/out/language-server/chat/chatController.test.js +10 -2
- package/out/language-server/chat/chatController.test.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.d.ts +2 -1
- package/out/language-server/chat/chatSessionManagementService.js +12 -1
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.test.js +9 -1
- package/out/language-server/chat/chatSessionManagementService.test.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +2 -1
- package/out/language-server/chat/chatSessionService.js +4 -2
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/chatSessionService.test.js +8 -1
- package/out/language-server/chat/chatSessionService.test.js.map +1 -1
- package/out/language-server/codeWhispererSecurityScanServer.d.ts +2 -1
- package/out/language-server/codeWhispererSecurityScanServer.js +2 -2
- package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.d.ts +2 -2
- package/out/language-server/codeWhispererServer.js +8 -8
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/codeWhispererService.d.ts +3 -4
- package/out/language-server/codeWhispererService.js +11 -11
- package/out/language-server/codeWhispererService.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +2 -1
- package/out/language-server/configuration/qConfigurationServer.js +2 -2
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/netTransform/tests/transformHandler.test.js +9 -2
- package/out/language-server/netTransform/tests/transformHandler.test.js.map +1 -1
- package/out/language-server/netTransformServer.d.ts +2 -1
- package/out/language-server/netTransformServer.js +3 -3
- package/out/language-server/netTransformServer.js.map +1 -1
- package/out/language-server/proxy-server.js +12 -39
- package/out/language-server/proxy-server.js.map +1 -1
- package/out/language-server/qChatServer.d.ts +2 -1
- package/out/language-server/qChatServer.js +3 -3
- package/out/language-server/qChatServer.js.map +1 -1
- package/out/language-server/telemetryService.d.ts +2 -2
- package/out/language-server/telemetryService.js +2 -2
- package/out/language-server/telemetryService.js.map +1 -1
- package/out/language-server/telemetryService.test.js +29 -22
- package/out/language-server/telemetryService.test.js.map +1 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +15 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/language-server/utils.d.ts +2 -3
- package/out/language-server/utils.js +1 -26
- package/out/language-server/utils.js.map +1 -1
- package/package.json +4 -4
|
@@ -5,17 +5,14 @@ const aws_sdk_1 = require("aws-sdk");
|
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
const codewhisperer_1 = require("../client/sigv4/codewhisperer");
|
|
7
7
|
const codewhisperer_2 = require("../client/token/codewhisperer");
|
|
8
|
-
const utils_1 = require("./utils");
|
|
9
8
|
// Right now the only difference between the token client and the IAM client for codewhsiperer is the difference in function name
|
|
10
9
|
// This abstract class can grow in the future to account for any additional changes across the clients
|
|
11
10
|
class CodeWhispererServiceBase {
|
|
12
11
|
codeWhispererRegion;
|
|
13
12
|
codeWhispererEndpoint;
|
|
14
|
-
proxyConfig = {};
|
|
15
13
|
shareCodeWhispererContentWithAWS = false;
|
|
16
14
|
customizationArn;
|
|
17
15
|
constructor(workspace, codeWhispererRegion, codeWhispererEndpoint) {
|
|
18
|
-
this.proxyConfig = (0, utils_1.makeProxyConfig)(workspace);
|
|
19
16
|
this.codeWhispererRegion = codeWhispererRegion;
|
|
20
17
|
this.codeWhispererEndpoint = codeWhispererEndpoint;
|
|
21
18
|
}
|
|
@@ -30,7 +27,7 @@ class CodeWhispererServiceBase {
|
|
|
30
27
|
exports.CodeWhispererServiceBase = CodeWhispererServiceBase;
|
|
31
28
|
class CodeWhispererServiceIAM extends CodeWhispererServiceBase {
|
|
32
29
|
client;
|
|
33
|
-
constructor(credentialsProvider, workspace, codeWhispererRegion, codeWhispererEndpoint) {
|
|
30
|
+
constructor(credentialsProvider, workspace, codeWhispererRegion, codeWhispererEndpoint, sdkInitializator) {
|
|
34
31
|
super(workspace, codeWhispererRegion, codeWhispererEndpoint);
|
|
35
32
|
const options = {
|
|
36
33
|
region: this.codeWhispererRegion,
|
|
@@ -39,10 +36,14 @@ class CodeWhispererServiceIAM extends CodeWhispererServiceBase {
|
|
|
39
36
|
() => credentialsProvider.getCredentials('iam'),
|
|
40
37
|
]),
|
|
41
38
|
};
|
|
42
|
-
this.client = (0, codewhisperer_1.createCodeWhispererSigv4Client)(options);
|
|
43
|
-
|
|
44
|
-
this.client.setupRequestListeners
|
|
45
|
-
|
|
39
|
+
this.client = (0, codewhisperer_1.createCodeWhispererSigv4Client)(options, sdkInitializator);
|
|
40
|
+
// Avoid overwriting any existing client listeners
|
|
41
|
+
const clientRequestListeners = this.client.setupRequestListeners;
|
|
42
|
+
this.client.setupRequestListeners = (request) => {
|
|
43
|
+
if (clientRequestListeners) {
|
|
44
|
+
clientRequestListeners.call(this.client, request);
|
|
45
|
+
}
|
|
46
|
+
request.httpRequest.headers['x-amzn-codewhisperer-optout'] = `${!this.shareCodeWhispererContentWithAWS}`;
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
getCredentialsType() {
|
|
@@ -71,7 +72,7 @@ class CodeWhispererServiceIAM extends CodeWhispererServiceBase {
|
|
|
71
72
|
exports.CodeWhispererServiceIAM = CodeWhispererServiceIAM;
|
|
72
73
|
class CodeWhispererServiceToken extends CodeWhispererServiceBase {
|
|
73
74
|
client;
|
|
74
|
-
constructor(credentialsProvider, workspace, codeWhispererRegion, codeWhispererEndpoint) {
|
|
75
|
+
constructor(credentialsProvider, workspace, codeWhispererRegion, codeWhispererEndpoint, sdkInitializator) {
|
|
75
76
|
super(workspace, codeWhispererRegion, codeWhispererEndpoint);
|
|
76
77
|
const options = {
|
|
77
78
|
region: this.codeWhispererRegion,
|
|
@@ -89,8 +90,7 @@ class CodeWhispererServiceToken extends CodeWhispererServiceBase {
|
|
|
89
90
|
},
|
|
90
91
|
],
|
|
91
92
|
};
|
|
92
|
-
this.client = (0, codewhisperer_2.createCodeWhispererTokenClient)(options);
|
|
93
|
-
this.updateClientConfig(this.proxyConfig);
|
|
93
|
+
this.client = (0, codewhisperer_2.createCodeWhispererTokenClient)(options, sdkInitializator);
|
|
94
94
|
}
|
|
95
95
|
getCredentialsType() {
|
|
96
96
|
return 'bearer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeWhispererService.js","sourceRoot":"","sources":["../../src/language-server/codeWhispererService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"codeWhispererService.js","sourceRoot":"","sources":["../../src/language-server/codeWhispererService.ts"],"names":[],"mappings":";;;AAOA,qCAA8F;AAG9F,+BAAmC;AACnC,iEAGsC;AACtC,iEAGsC;AA6BtC,iIAAiI;AACjI,sGAAsG;AACtG,MAAsB,wBAAwB;IACvB,mBAAmB,CAAA;IACnB,qBAAqB,CAAA;IACjC,gCAAgC,GAAG,KAAK,CAAA;IACxC,gBAAgB,CAAS;IAOhC,YAAY,SAAoB,EAAE,mBAA2B,EAAE,qBAA6B;QACxF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AC,eAAe,CACjB,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAA;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,wBAAwB,CAC1B,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAA;IAClE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,2BAA2B,CAAC,OAAoE;QAClG,OAAO,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAA;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,kBAAkB,CAAC,OAA2D;QAChF,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAA;IAC5D,CAAC;CACJ;AA1JD,8DA0JC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CredentialsProvider, Server, Workspace } from '@aws/language-server-runtimes/server-interface';
|
|
2
2
|
import { CodeWhispererServiceToken } from '../codeWhispererService';
|
|
3
|
+
import { SDKInitializator } from '@aws/language-server-runtimes/server-interface';
|
|
3
4
|
export declare const Q_CONFIGURATION_SECTION = "aws.q";
|
|
4
|
-
export declare const QConfigurationServerToken: (service: (credentials: CredentialsProvider, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string) => CodeWhispererServiceToken) => Server;
|
|
5
|
+
export declare const QConfigurationServerToken: (service: (credentials: CredentialsProvider, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string, sdkInitializator: SDKInitializator) => CodeWhispererServiceToken) => Server;
|
|
@@ -5,8 +5,8 @@ const telemetryUtils_1 = require("../utilities/telemetryUtils");
|
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
// The configuration section that the server will register and listen to
|
|
7
7
|
exports.Q_CONFIGURATION_SECTION = 'aws.q';
|
|
8
|
-
const QConfigurationServerToken = (service) => ({ credentialsProvider, lsp, logging, runtime, workspace }) => {
|
|
9
|
-
const codeWhispererService = service(credentialsProvider, workspace, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL);
|
|
8
|
+
const QConfigurationServerToken = (service) => ({ credentialsProvider, lsp, logging, runtime, workspace, sdkInitializator }) => {
|
|
9
|
+
const codeWhispererService = service(credentialsProvider, workspace, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL, sdkInitializator);
|
|
10
10
|
lsp.addInitializer((params) => {
|
|
11
11
|
codeWhispererService.updateClientConfig({
|
|
12
12
|
customUserAgent: (0, telemetryUtils_1.getUserAgent)(params, runtime.serverInfo),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qConfigurationServer.js","sourceRoot":"","sources":["../../../src/language-server/configuration/qConfigurationServer.ts"],"names":[],"mappings":";;;AASA,gEAA0D;AAC1D,+CAAkF;
|
|
1
|
+
{"version":3,"file":"qConfigurationServer.js","sourceRoot":"","sources":["../../../src/language-server/configuration/qConfigurationServer.ts"],"names":[],"mappings":";;;AASA,gEAA0D;AAC1D,+CAAkF;AAGlF,wEAAwE;AAC3D,QAAA,uBAAuB,GAAG,OAAO,CAAA;AACvC,MAAM,yBAAyB,GAClC,CACI,OAM8B,EACxB,EAAE,CACZ,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5E,MAAM,oBAAoB,GAAG,OAAO,CAChC,mBAAmB,EACnB,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,gCAAoB,EAChE,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,IAAI,sCAA0B,EAC5E,gBAAgB,CACnB,CAAA;IAED,GAAG,CAAC,cAAc,CAAC,CAAC,MAAwB,EAAE,EAAE;QAC5C,oBAAoB,CAAC,kBAAkB,CAAC;YACpC,eAAe,EAAE,IAAA,6BAAY,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC;SAC5D,CAAC,CAAA;QAEF,OAAO;YACH,YAAY,EAAE,EAAE;YAChB,qBAAqB,EAAE;gBACnB,qBAAqB,EAAE,EAAE,QAAQ,EAAE,CAAC,+BAAuB,CAAC,EAAE;aACjE;SACJ,CAAA;IACL,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,UAAU,CAAC,4BAA4B,CACvC,KAAK,EAAE,MAAwC,EAAE,KAAwB,EAAE,EAAE;QACzE,IAAI,MAAM,CAAC,OAAO,KAAK,+BAAuB,EAAE,CAAC;YAC7C,MAAM,cAAc,GAAG,CAAC,MAAM,oBAAoB,CAAC,2BAA2B,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;iBAC/F,cAAc,CAAA;YAEnB,OAAO,EAAE,cAAc,EAAE,CAAA;QAC7B,CAAC;IACL,CAAC,CACJ,CAAA;IAED,OAAO,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAA;IACjE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;AACnB,CAAC,CAAA;AA7CQ,QAAA,yBAAyB,6BA6CjC"}
|
|
@@ -150,16 +150,23 @@ describe('Test Transform handler ', () => {
|
|
|
150
150
|
const mockedCredentialsProvider = {
|
|
151
151
|
getCredentials: sinon.stub().returns({ token: 'mockedToken' }),
|
|
152
152
|
};
|
|
153
|
+
const mockSdkRuntimeConfigurator = Object.assign(
|
|
154
|
+
// Default callable function for v3 clients
|
|
155
|
+
(Ctor, current_config) => new Ctor({ ...current_config }),
|
|
156
|
+
// Property for v2 clients
|
|
157
|
+
{
|
|
158
|
+
v2: (Ctor, current_config) => new Ctor({ ...current_config }),
|
|
159
|
+
});
|
|
153
160
|
describe('StreamingClient', () => {
|
|
154
161
|
it('should create a new streaming client', async () => {
|
|
155
162
|
const streamingClient = new codewhispererStreamingClient_1.StreamingClient();
|
|
156
|
-
const client = await streamingClient.getStreamingClient(mockedCredentialsProvider, awsQRegion, awsQEndpointUrl);
|
|
163
|
+
const client = await streamingClient.getStreamingClient(mockedCredentialsProvider, awsQRegion, awsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
157
164
|
(0, chai_1.expect)(client).to.be.instanceOf(codewhisperer_streaming_1.CodeWhispererStreaming);
|
|
158
165
|
});
|
|
159
166
|
});
|
|
160
167
|
describe('createStreamingClient', () => {
|
|
161
168
|
it('should create a new streaming client with correct configurations', async () => {
|
|
162
|
-
const client = await (0, codewhispererStreamingClient_1.createStreamingClient)(mockedCredentialsProvider, awsQRegion, awsQEndpointUrl);
|
|
169
|
+
const client = await (0, codewhispererStreamingClient_1.createStreamingClient)(mockedCredentialsProvider, awsQRegion, awsQEndpointUrl, mockSdkRuntimeConfigurator);
|
|
163
170
|
(0, chai_1.expect)(client).to.be.instanceOf(codewhisperer_streaming_1.CodeWhispererStreaming);
|
|
164
171
|
});
|
|
165
172
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformHandler.test.js","sourceRoot":"","sources":["../../../../src/language-server/netTransform/tests/transformHandler.test.ts"],"names":[],"mappings":";;AAAA,2EAAsE;
|
|
1
|
+
{"version":3,"file":"transformHandler.test.js","sourceRoot":"","sources":["../../../../src/language-server/netTransform/tests/transformHandler.test.ts"],"names":[],"mappings":";;AAAA,2EAAsE;AAQtE,iCAAgC;AAChC,qCAAsC;AACtC,+BAA6B;AAC7B,yBAAwB;AACxB,6BAAqB;AACrB,uCAA2E;AAC3E,+GAAqH;AAErH,sCAMkB;AAClB,0DAAsD;AAEtD,+BAA+B;AAC/B,kDAAqF;AAIrF,MAAM,eAAe,GAAG;IACpB,SAA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,aAAM,EAAC,GAAG,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;YACrF,IAAI,GAAG,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;gBAChE,IAAA,aAAM,EAAC,GAAG,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAClF,qCAAqC,CACxC,CAAA;YACL,CAAC;QACL,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
|
@@ -3,9 +3,10 @@ import { CodeWhispererServiceToken } from './codeWhispererService';
|
|
|
3
3
|
export declare const validStatesForGettingPlan: string[];
|
|
4
4
|
export declare const validStatesForComplete: string[];
|
|
5
5
|
export declare const failureStates: string[];
|
|
6
|
+
import { SDKInitializator } from '@aws/language-server-runtimes/server-interface';
|
|
6
7
|
/**
|
|
7
8
|
*
|
|
8
9
|
* @param createService Inject service instance based on credentials provider.
|
|
9
10
|
* @returns NetTransform server
|
|
10
11
|
*/
|
|
11
|
-
export declare const QNetTransformServerToken: (service: (credentialsProvider: CredentialsProvider, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string) => CodeWhispererServiceToken) => Server;
|
|
12
|
+
export declare const QNetTransformServerToken: (service: (credentialsProvider: CredentialsProvider, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string, sdkInitializator: SDKInitializator) => CodeWhispererServiceToken) => Server;
|
|
@@ -21,8 +21,8 @@ const constants_1 = require("../constants");
|
|
|
21
21
|
* @param createService Inject service instance based on credentials provider.
|
|
22
22
|
* @returns NetTransform server
|
|
23
23
|
*/
|
|
24
|
-
const QNetTransformServerToken = (service) => ({ credentialsProvider, workspace, logging, lsp, telemetry, runtime }) => {
|
|
25
|
-
const codewhispererclient = service(credentialsProvider, workspace, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL);
|
|
24
|
+
const QNetTransformServerToken = (service) => ({ credentialsProvider, workspace, logging, lsp, telemetry, runtime, sdkInitializator }) => {
|
|
25
|
+
const codewhispererclient = service(credentialsProvider, workspace, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL, sdkInitializator);
|
|
26
26
|
const transformHandler = new transformHandler_1.TransformHandler(codewhispererclient, workspace, logging);
|
|
27
27
|
const runTransformCommand = async (params, _token) => {
|
|
28
28
|
try {
|
|
@@ -68,7 +68,7 @@ const QNetTransformServerToken = (service) => ({ credentialsProvider, workspace,
|
|
|
68
68
|
case DownloadArtifactsCommand: {
|
|
69
69
|
const request = params;
|
|
70
70
|
const cwStreamingClientInstance = new codewhispererStreamingClient_1.StreamingClient();
|
|
71
|
-
const cwStreamingClient = await cwStreamingClientInstance.getStreamingClient(credentialsProvider, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL, customCWClientConfig);
|
|
71
|
+
const cwStreamingClient = await cwStreamingClientInstance.getStreamingClient(credentialsProvider, runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION, runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL, sdkInitializator, customCWClientConfig);
|
|
72
72
|
const response = await transformHandler.downloadExportResultArchive(cwStreamingClient, request.TransformationJobId, request.SolutionRootPath);
|
|
73
73
|
(0, metrics_1.emitTransformationJobArtifactsDownloadedTelemetry)(telemetry, response, request.TransformationJobId);
|
|
74
74
|
return response;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"netTransformServer.js","sourceRoot":"","sources":["../../src/language-server/netTransformServer.ts"],"names":[],"mappings":";;;AAQA,yGAAwF;AAExF,oDAe+B;AAQ/B,sEAAkE;AAElE,+DAAyD;AAE5C,QAAA,yBAAyB,GAAG,CAAC,WAAW,EAAE,qBAAqB,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,CAAC,CAAA;AAC1G,QAAA,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAA;AACtC,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAC1E,MAAM,qBAAqB,GAAG,kCAAkC,CAAA;AAChE,MAAM,mBAAmB,GAAG,gCAAgC,CAAA;AAC5D,MAAM,oBAAoB,GAAG,iCAAiC,CAAA;AAC9D,MAAM,2BAA2B,GAAG,wCAAwC,CAAA;AAC5E,MAAM,uBAAuB,GAAG,oCAAoC,CAAA;AACpE,MAAM,sBAAsB,GAAG,mCAAmC,CAAA;AAClE,MAAM,wBAAwB,GAAG,qCAAqC,CAAA;AACtE,4CAA+E;
|
|
1
|
+
{"version":3,"file":"netTransformServer.js","sourceRoot":"","sources":["../../src/language-server/netTransformServer.ts"],"names":[],"mappings":";;;AAQA,yGAAwF;AAExF,oDAe+B;AAQ/B,sEAAkE;AAElE,+DAAyD;AAE5C,QAAA,yBAAyB,GAAG,CAAC,WAAW,EAAE,qBAAqB,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,CAAC,CAAA;AAC1G,QAAA,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAA;AACtC,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAC1E,MAAM,qBAAqB,GAAG,kCAAkC,CAAA;AAChE,MAA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AmD;QACnD,oBAAoB,CAAC,eAAe,GAAG,IAAA,6BAAY,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;QAE/E,mBAAmB,CAAC,kBAAkB,CAAC;YACnC,eAAe,EAAE,oBAAoB,CAAC,eAAe;SACxD,CAAC,CAAA;QAEF,OAAO;YACH,YAAY,EAAE;gBACV,sBAAsB,EAAE;oBACpB,QAAQ,EAAE;wBACN,qBAAqB;wBACrB,mBAAmB;wBACnB,oBAAoB;wBACpB,2BAA2B;wBAC3B,uBAAuB;wBACvB,sBAAsB;wBACtB,wBAAwB;qBAC3B;iBACJ;aACJ;SACJ,CAAA;IACL,CAAC,CAAA;IACD,GAAG,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAA;IACvC,GAAG,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA;IAE7C,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;AACnB,CAAC,CAAA;AA7KQ,QAAA,wBAAwB,4BA6KhC"}
|
|
@@ -8,53 +8,26 @@ const codeWhispererService_1 = require("./codeWhispererService");
|
|
|
8
8
|
const netTransformServer_1 = require("./netTransformServer");
|
|
9
9
|
const qChatServer_1 = require("./qChatServer");
|
|
10
10
|
const qConfigurationServer_1 = require("./configuration/qConfigurationServer");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
exports.CodeWhispererServerTokenProxy = (0, codeWhispererServer_1.CodewhispererServerFactory)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl) => {
|
|
15
|
-
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
11
|
+
exports.CodeWhispererServerTokenProxy = (0, codeWhispererServer_1.CodewhispererServerFactory)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
12
|
+
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
16
13
|
});
|
|
17
|
-
exports.CodeWhispererServerIAMProxy = (0, codeWhispererServer_1.CodewhispererServerFactory)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl) => {
|
|
18
|
-
return new codeWhispererService_1.CodeWhispererServiceIAM(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
14
|
+
exports.CodeWhispererServerIAMProxy = (0, codeWhispererServer_1.CodewhispererServerFactory)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
15
|
+
return new codeWhispererService_1.CodeWhispererServiceIAM(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
19
16
|
});
|
|
20
|
-
exports.CodeWhispererSecurityScanServerTokenProxy = (0, codeWhispererSecurityScanServer_1.SecurityScanServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl) => {
|
|
21
|
-
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
17
|
+
exports.CodeWhispererSecurityScanServerTokenProxy = (0, codeWhispererSecurityScanServer_1.SecurityScanServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
18
|
+
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
22
19
|
});
|
|
23
|
-
exports.QNetTransformServerTokenProxy = (0, netTransformServer_1.QNetTransformServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl) => {
|
|
24
|
-
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
20
|
+
exports.QNetTransformServerTokenProxy = (0, netTransformServer_1.QNetTransformServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
21
|
+
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
25
22
|
});
|
|
26
|
-
exports.QChatServerProxy = (0, qChatServer_1.QChatServer)((credentialsProvider, awsQRegion, awsQEndpointUrl) => {
|
|
27
|
-
let clientOptions;
|
|
28
|
-
// short term solution to fix webworker bundling, broken due to this node.js specific logic in here
|
|
29
|
-
const isNodeJS = typeof process !== 'undefined' && process.release && process.release.name === 'node';
|
|
30
|
-
const proxyUrl = isNodeJS ? (process.env.HTTPS_PROXY ?? process.env.https_proxy) : undefined;
|
|
31
|
-
const certs = isNodeJS
|
|
32
|
-
? process.env.AWS_CA_BUNDLE
|
|
33
|
-
? [(0, fs_1.readFileSync)(process.env.AWS_CA_BUNDLE)]
|
|
34
|
-
: undefined
|
|
35
|
-
: undefined;
|
|
36
|
-
if (proxyUrl) {
|
|
37
|
-
clientOptions = () => {
|
|
38
|
-
// this mimics aws-sdk-v3-js-proxy
|
|
39
|
-
const agent = new hpagent_1.HttpsProxyAgent({
|
|
40
|
-
proxy: proxyUrl,
|
|
41
|
-
ca: certs,
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
requestHandler: new node_http_handler_1.NodeHttpHandler({
|
|
45
|
-
httpAgent: agent,
|
|
46
|
-
httpsAgent: agent,
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
}
|
|
23
|
+
exports.QChatServerProxy = (0, qChatServer_1.QChatServer)((credentialsProvider, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
51
24
|
return chatSessionManagementService_1.ChatSessionManagementService.getInstance()
|
|
52
25
|
.withCredentialsProvider(credentialsProvider)
|
|
53
26
|
.withCodeWhispererEndpoint(awsQEndpointUrl)
|
|
54
27
|
.withCodeWhispererRegion(awsQRegion)
|
|
55
|
-
.
|
|
28
|
+
.withSdkRuntimeConfigurator(sdkInitializator);
|
|
56
29
|
});
|
|
57
|
-
exports.QConfigurationServerTokenProxy = (0, qConfigurationServer_1.QConfigurationServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl) => {
|
|
58
|
-
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
30
|
+
exports.QConfigurationServerTokenProxy = (0, qConfigurationServer_1.QConfigurationServerToken)((credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) => {
|
|
31
|
+
return new codeWhispererService_1.CodeWhispererServiceToken(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
59
32
|
});
|
|
60
33
|
//# sourceMappingURL=proxy-server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-server.js","sourceRoot":"","sources":["../../src/language-server/proxy-server.ts"],"names":[],"mappings":";;;AAAA,sFAAkF;AAElF,uFAA2E;AAC3E,+DAAkE;AAClE,iEAA2F;AAC3F,6DAA+D;AAC/D,+CAA2C;AAC3C,+EAAgF;
|
|
1
|
+
{"version":3,"file":"proxy-server.js","sourceRoot":"","sources":["../../src/language-server/proxy-server.ts"],"names":[],"mappings":";;;AAAA,sFAAkF;AAElF,uFAA2E;AAC3E,+DAAkE;AAClE,iEAA2F;AAC3F,6DAA+D;AAC/D,+CAA2C;AAC3C,+EAAgF;AAEnE,QAAA,6BAA6B,GAAG,IAAA,gDAA0B,EACnE,CAAC,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC9E,OAAO,IAAI,gDAAyB,CAChC,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;AACL,CAAC,CACJ,CAAA;AAEY,QAAA,2BAA2B,GAAG,IAAA,gDAA0B,EACjE,CAAC,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC9E,OAAO,IAAI,8CAAuB,CAC9B,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;AACL,CAAC,CACJ,CAAA;AAEY,QAAA,yCAAyC,GAAG,IAAA,yDAAuB,EAC5E,CAAC,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC9E,OAAO,IAAI,gDAAyB,CAChC,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;AACL,CAAC,CACJ,CAAA;AAEY,QAAA,6BAA6B,GAAG,IAAA,6CAAwB,EACjE,CAAC,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC9E,OAAO,IAAI,gDAAyB,CAChC,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;AACL,CAAC,CACJ,CAAA;AAEY,QAAA,gBAAgB,GAAG,IAAA,yBAAW,EAAC,CAAC,mBAAmB,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC/G,OAAO,2DAA4B,CAAC,WAAW,EAAE;SAC5C,uBAAuB,CAAC,mBAAmB,CAAC;SAC5C,yBAAyB,CAAC,eAAe,CAAC;SAC1C,uBAAuB,CAAC,UAAU,CAAC;SACnC,0BAA0B,CAAC,gBAAgB,CAAC,CAAA;AACrD,CAAC,CAAC,CAAA;AAEW,QAAA,8BAA8B,GAAG,IAAA,gDAAyB,EACnE,CAAC,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAE;IAC9E,OAAO,IAAI,gDAAyB,CAChC,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;AACL,CAAC,CACJ,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CredentialsProvider, Server } from '@aws/language-server-runtimes/server-interface';
|
|
2
2
|
import { ChatSessionManagementService } from './chat/chatSessionManagementService';
|
|
3
|
-
|
|
3
|
+
import { SDKInitializator } from '@aws/language-server-runtimes/server-interface';
|
|
4
|
+
export declare const QChatServer: (service: (credentialsProvider: CredentialsProvider, awsQRegion: string, awsQEndpointUrl: string, sdkInitializator: SDKInitializator) => ChatSessionManagementService) => Server;
|
|
@@ -7,11 +7,11 @@ const telemetryService_1 = require("./telemetryService");
|
|
|
7
7
|
const telemetryUtils_1 = require("./utilities/telemetryUtils");
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
9
|
const QChatServer = (service) => features => {
|
|
10
|
-
const { chat, credentialsProvider, telemetry, logging, lsp, runtime, workspace } = features;
|
|
10
|
+
const { chat, credentialsProvider, telemetry, logging, lsp, runtime, workspace, sdkInitializator } = features;
|
|
11
11
|
const awsQRegion = runtime.getConfiguration('AWS_Q_REGION') ?? constants_1.DEFAULT_AWS_Q_REGION;
|
|
12
12
|
const awsQEndpointUrl = runtime.getConfiguration('AWS_Q_ENDPOINT_URL') ?? constants_1.DEFAULT_AWS_Q_ENDPOINT_URL;
|
|
13
|
-
const chatSessionManagementService = service(credentialsProvider, awsQRegion, awsQEndpointUrl);
|
|
14
|
-
const telemetryService = new telemetryService_1.TelemetryService(credentialsProvider, 'bearer', telemetry, logging, workspace, awsQRegion, awsQEndpointUrl);
|
|
13
|
+
const chatSessionManagementService = service(credentialsProvider, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
14
|
+
const telemetryService = new telemetryService_1.TelemetryService(credentialsProvider, 'bearer', telemetry, logging, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
15
15
|
const chatController = new chatController_1.ChatController(chatSessionManagementService, features, telemetryService);
|
|
16
16
|
lsp.addInitializer((params) => {
|
|
17
17
|
chatSessionManagementService.setCustomUserAgent((0, telemetryUtils_1.getUserAgent)(params, runtime.serverInfo));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qChatServer.js","sourceRoot":"","sources":["../../src/language-server/qChatServer.ts"],"names":[],"mappings":";;;AACA,0DAAsD;AAEtD,sDAA2E;AAC3E,yDAAqD;AACrD,+DAAgF;AAChF,4CAA+E;
|
|
1
|
+
{"version":3,"file":"qChatServer.js","sourceRoot":"","sources":["../../src/language-server/qChatServer.ts"],"names":[],"mappings":";;;AACA,0DAAsD;AAEtD,sDAA2E;AAC3E,yDAAqD;AACrD,+DAAgF;AAChF,4CAA+E;AAGxE,MAAM,WAAW,GACpB,CACI,OAKiC,EAC3B,EAAE,CACZ,QAAQ,CAAC,EAAE;IACP,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,QAAQ,CAAA;IAE7G,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,gCAAoB,CAAA;IACnF,MAAM,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,IAAI,sCAA0B,CAAA;IACpG,MAAM,4BAA4B,GAAiC,OAAO,CACtE,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;IACD,MAAM,gBAAgB,GAAG,IAAI,mCAAgB,CACzC,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,CACnB,CAAA;IAED,MAAM,cAAc,GAAG,IAAI,+BAAc,CAAC,4BAA4B,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAA;IAEnG,GAAG,CAAC,cAAc,CAAC,CAAC,MAAwB,EAAE,EAAE;QAC5C,4BAA4B,CAAC,kBAAkB,CAAC,IAAA,6BAAY,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAA;QACzF,gBAAgB,CAAC,kBAAkB,CAAC;YAChC,eAAe,EAAE,IAAA,6BAAY,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC;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M,EAAE,EAAE;QAC5B,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,CAAA;IACjD,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,MAAM,EAAE,EAAE;QAC7B,OAAO,cAAc,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,CAAA;IAClD,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;QACzB,OAAO,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE;QACvC,OAAO,cAAc,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,aAAa,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAA;IACrD,GAAG,CAAC,sBAAsB,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAA;IAE9D,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;IAEjD,OAAO,GAAG,EAAE;QACR,cAAc,CAAC,OAAO,EAAE,CAAA;IAC5B,CAAC,CAAA;AACL,CAAC,CAAA;AAvGQ,QAAA,WAAW,eAuGnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeWhispererServiceToken } from './codeWhispererService';
|
|
2
|
-
import { CredentialsProvider, CredentialsType, Logging, Telemetry, Workspace } from '@aws/language-server-runtimes/server-interface';
|
|
2
|
+
import { CredentialsProvider, CredentialsType, Logging, Telemetry, Workspace, SDKInitializator } from '@aws/language-server-runtimes/server-interface';
|
|
3
3
|
import { CodeWhispererSession } from './session/sessionManager';
|
|
4
4
|
import { UserContext, OptOutPreference, UserIntent } from '../client/token/codewhispererbearertokenclient';
|
|
5
5
|
import { ChatConversationType, InteractWithMessageEvent } from './telemetry/types';
|
|
@@ -13,7 +13,7 @@ export declare class TelemetryService extends CodeWhispererServiceToken {
|
|
|
13
13
|
private credentialsProvider;
|
|
14
14
|
private logging;
|
|
15
15
|
private readonly cwInteractionTypeMap;
|
|
16
|
-
constructor(credentialsProvider: CredentialsProvider, credentialsType: CredentialsType, telemetry: Telemetry, logging: Logging, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string);
|
|
16
|
+
constructor(credentialsProvider: CredentialsProvider, credentialsType: CredentialsType, telemetry: Telemetry, logging: Logging, workspace: Workspace, awsQRegion: string, awsQEndpointUrl: string, sdkInitializator: SDKInitializator);
|
|
17
17
|
updateUserContext(userContext: UserContext | undefined): void;
|
|
18
18
|
updateOptOutPreference(optOutPreference: OptOutPreference): void;
|
|
19
19
|
updateEnableTelemetryEventsToDestination(enableTelemetryEventsToDestination: boolean): void;
|
|
@@ -25,8 +25,8 @@ class TelemetryService extends codeWhispererService_1.CodeWhispererServiceToken
|
|
|
25
25
|
[types_1.ChatInteractionType.Downvote]: 'DOWNVOTE',
|
|
26
26
|
[types_1.ChatInteractionType.ClickBodyLink]: 'CLICK_BODY_LINK',
|
|
27
27
|
};
|
|
28
|
-
constructor(credentialsProvider, credentialsType, telemetry, logging, workspace, awsQRegion, awsQEndpointUrl) {
|
|
29
|
-
super(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl);
|
|
28
|
+
constructor(credentialsProvider, credentialsType, telemetry, logging, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator) {
|
|
29
|
+
super(credentialsProvider, workspace, awsQRegion, awsQEndpointUrl, sdkInitializator);
|
|
30
30
|
this.credentialsProvider = credentialsProvider;
|
|
31
31
|
this.credentialsType = credentialsType;
|
|
32
32
|
this.telemetry = telemetry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryService.js","sourceRoot":"","sources":["../../src/language-server/telemetryService.ts"],"names":[],"mappings":";;;AAAA,iEAAkE;AAuBlE,mCAA6E;AAC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,EAAE,MAAM,CAAC,2BAA2B;YAC/D,4BAA4B,EAAE,MAAM,CAAC,4BAA4B;YACjE,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;YAC/C,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,sBAAsB,EAAE,KAAK;SAChC,CAAA;QACD,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAC1B,KAAK,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAA;QACpD,CAAC;QACD,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;YAC7B,KAAK,CAAC,mBAAmB,GAAG;gBACxB,YAAY,EAAE,IAAA,sCAAkB,EAAC,MAAM,CAAC,mBAAmB,CAAC;aAC/D,CAAA;QACL,CAAC;QACD,OAAO,IAAI,CAAC,wBAAwB,CAAC;YACjC,mBAAmB,EAAE,KAAK;SAC7B,CAAC,CAAA;IACN,CAAC;CACJ;AAtZD,4CAsZC"}
|
|
1
|
+
{"version":3,"file":"telemetryService.js","sourceRoot":"","sources":["../../src/language-server/telemetryService.ts"],"names":[],"mappings":";;;AAAA,iEAAkE;AAwBlE,mCAA6E;AAC7E,6CAM0B;AAC1B,2DAA+E;AAC/E,sFAAqF;AAErF,MAAa,gBAAiB,SAAQ,gDAAyB;IACnD,WAAW,CAAyB;IACpC,gBAAgB,CAAmB;IACnC,kCAAkC,CAAS;IAC3C,SAAS,CAAW;IACpB,eAAe,CAAiB;IAChC,mBAAmB,CAAqB;IACxC,OAAO,CAAS;IAEP,oBAAoB,GAA4D;QAC7F,CAAC,2BAAmB,CAAC,cAAc,CAAC,EAAE,kBAAkB;QACxD,CAAC,2BAAmB,CAAC,WAAW,CAAC,EAAE,cAAc;QACjD,CAAC,2BAAmB,CAAC,IAAI,CAAC,EAAE,MAAM;QAClC,C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