@aws/lsp-codewhisperer 0.0.26 → 0.0.28
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 +33 -0
- package/README.md +59 -1
- 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/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/auth.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/endpoint.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/transfer.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/abort-controller/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +6 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +6 -3
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/package.json +6 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/index.js +193 -76
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http-handler.js +39 -15
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-handler.js +9 -1
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/server.mock.js +9 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/write-request-body.js +13 -9
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http-handler.d.ts +4 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +11 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
- package/node_modules/{@smithy/node-http-handler/dist-types → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4}/set-socket-keep-alive.d.ts +7 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/package.json +10 -10
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/index.js +30 -8
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +13 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +53 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +53 -0
- package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/package.json +6 -6
- 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/getHomeDir.js +26 -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/index.js +206 -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-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-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/node_modules/@smithy/types/dist-cjs/pagination.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/profile.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/response.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/retry.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/serde.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/signature.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/stream.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/uri.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/util.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
- package/node_modules/@smithy/types/dist-es/util.js +1 -0
- package/node_modules/@smithy/types/dist-es/waiter.js +1 -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 +1652 -98
- 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/constants.d.ts +3 -0
- package/out/constants.js +4 -1
- package/out/constants.js.map +1 -1
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.d.ts +38 -0
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js +85 -0
- package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js.map +1 -0
- package/out/language-server/chat/chatController.d.ts +1 -1
- package/out/language-server/chat/chatController.js +2 -2
- package/out/language-server/chat/chatController.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/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/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 +12 -37
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/codeWhispererService.d.ts +7 -4
- package/out/language-server/codeWhispererService.js +17 -11
- package/out/language-server/codeWhispererService.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +20 -2
- package/out/language-server/configuration/qConfigurationServer.js +109 -8
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/dependencyGraph/commonUtil.d.ts +0 -1
- package/out/language-server/dependencyGraph/commonUtil.js +0 -11
- package/out/language-server/dependencyGraph/commonUtil.js.map +1 -1
- package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
- package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +3 -2
- package/out/language-server/netTransform/transformHandler.js +7 -2
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransformServer.d.ts +2 -1
- package/out/language-server/netTransformServer.js +4 -4
- 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/telemetry/codeDiffTracker.js +15 -12
- package/out/language-server/telemetry/codeDiffTracker.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/utilities/supplementalContextUtil/codeParsingUtil.js +2 -2
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js.map +1 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +17 -3
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/language-server/utils.d.ts +3 -3
- package/out/language-server/utils.js +5 -26
- package/out/language-server/utils.js.map +1 -1
- package/package.json +10 -10
- package/node_modules/@smithy/node-http-handler/README.md +0 -4
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -21
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -14
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -13
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -13
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -23
- package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -23
- package/out/language-server/auto-trigger/autoTrigger.test.js +0 -82
- package/out/language-server/auto-trigger/autoTrigger.test.js.map +0 -1
- package/out/language-server/chat/chatController.test.js +0 -701
- package/out/language-server/chat/chatController.test.js.map +0 -1
- package/out/language-server/chat/chatEventParser.test.js +0 -239
- package/out/language-server/chat/chatEventParser.test.js.map +0 -1
- package/out/language-server/chat/chatSessionManagementService.test.js +0 -69
- package/out/language-server/chat/chatSessionManagementService.test.js.map +0 -1
- package/out/language-server/chat/chatSessionService.test.js +0 -79
- package/out/language-server/chat/chatSessionService.test.js.map +0 -1
- package/out/language-server/chat/contexts/documentContext.test.js +0 -117
- package/out/language-server/chat/contexts/documentContext.test.js.map +0 -1
- package/out/language-server/chat/contexts/triggerContexts.test.js +0 -81
- package/out/language-server/chat/contexts/triggerContexts.test.js.map +0 -1
- package/out/language-server/chat/contexts/utils.test.js +0 -72
- package/out/language-server/chat/contexts/utils.test.js.map +0 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js +0 -195
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +0 -1
- package/out/language-server/codeWhispererServer.test.js +0 -1377
- package/out/language-server/codeWhispererServer.test.js.map +0 -1
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +0 -483
- package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +0 -1
- package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +0 -7
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js +0 -39
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +0 -1
- package/out/language-server/languageDetection.test.js +0 -31
- package/out/language-server/languageDetection.test.js.map +0 -1
- package/out/language-server/mergeRightUtils.test.js +0 -53
- package/out/language-server/mergeRightUtils.test.js.map +0 -1
- package/out/language-server/netTransform/tests/converter.test.js +0 -108
- package/out/language-server/netTransform/tests/converter.test.js.map +0 -1
- package/out/language-server/netTransform/tests/transformHandler.test.js +0 -245
- package/out/language-server/netTransform/tests/transformHandler.test.js.map +0 -1
- package/out/language-server/netTransform/tests/validation.test.js +0 -84
- package/out/language-server/netTransform/tests/validation.test.js.map +0 -1
- package/out/language-server/qChatServer.test.js +0 -51
- package/out/language-server/qChatServer.test.js.map +0 -1
- package/out/language-server/securityScan/securityScanHandler.test.js +0 -171
- package/out/language-server/securityScan/securityScanHandler.test.js.map +0 -1
- package/out/language-server/session/sessionManager.test.js +0 -588
- package/out/language-server/session/sessionManager.test.js.map +0 -1
- package/out/language-server/telemetry/codeDiffTracker.test.js +0 -125
- package/out/language-server/telemetry/codeDiffTracker.test.js.map +0 -1
- package/out/language-server/telemetry/codePercentage.test.js +0 -214
- package/out/language-server/telemetry/codePercentage.test.js.map +0 -1
- package/out/language-server/telemetry/userTriggerDecision.test.js +0 -1348
- package/out/language-server/telemetry/userTriggerDecision.test.js.map +0 -1
- package/out/language-server/telemetry.test.js +0 -98
- package/out/language-server/telemetry.test.js.map +0 -1
- package/out/language-server/telemetryService.test.js +0 -764
- package/out/language-server/telemetryService.test.js.map +0 -1
- package/out/language-server/utilities/filesystemUtilities.d.ts +0 -8
- package/out/language-server/utilities/filesystemUtilities.js +0 -30
- package/out/language-server/utilities/filesystemUtilities.js.map +0 -1
- package/out/language-server/utilities/filesystemUtilities.test.js +0 -85
- package/out/language-server/utilities/filesystemUtilities.test.js.map +0 -1
- package/out/language-server/utilities/pathUtils.d.ts +0 -27
- package/out/language-server/utilities/pathUtils.js +0 -79
- package/out/language-server/utilities/pathUtils.js.map +0 -1
- package/out/language-server/utilities/pathUtils.test.js +0 -43
- package/out/language-server/utilities/pathUtils.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +0 -5
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js +0 -49
- package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js +0 -157
- package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js.map +0 -1
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js +0 -88
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +0 -1
- package/out/language-server/utilities/telemetryUtils.test.js +0 -207
- package/out/language-server/utilities/telemetryUtils.test.js.map +0 -1
- package/out/language-server/utilities/textUtils.d.ts +0 -1
- package/out/language-server/utilities/textUtils.js +0 -12
- package/out/language-server/utilities/textUtils.js.map +0 -1
- package/out/language-server/utilities/textUtils.test.js +0 -21
- package/out/language-server/utilities/textUtils.test.js.map +0 -1
- package/out/language-server/utils.test.js +0 -152
- package/out/language-server/utils.test.js.map +0 -1
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers}/LICENSE +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/abort-controller → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types}/LICENSE +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/abort.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-es/httpHandler.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/checksum.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/client.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/command.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-es/types.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/connection.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/credentials.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/crypto.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/encode.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/eventStream.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/extensions/index.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpSigner.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/http.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/config.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/Identity.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/manager.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/pool.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/logger.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/middleware.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/pagination.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/profile.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/request.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/response.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es}/retry.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/serde.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/shapes.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/signature.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/stream.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js → @amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/token.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/uri.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/util.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy → @amzn/codewhisperer-streaming/node_modules/@aws-sdk}/types/dist-es/waiter.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/README.md +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/constants.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/get-transformed-headers.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http-handler.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-handler.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/server.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-connection-timeout.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-timeout.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/collector.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/index.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/dist-cjs/write-request-body.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Field.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/constants.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/get-transformed-headers.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/index.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-pool.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/collector.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/constants.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-handler.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/server.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -0
- /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/write-request-body.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/LICENSE +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/README.md +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/types.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/abort.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Field.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Fields.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/httpHandler.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/index.js +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/shared.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/types.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/types.d.ts +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/checksum.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/client.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/command.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/crypto.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/encode.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/endpoint.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/eventStream.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/http.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/logger.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/middleware.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/pagination.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js} +0 -0
- /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js → @amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/LICENSE +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/README.md +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/package.json +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/LICENSE +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/README.md +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/profile.js → types/dist-cjs/abort.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpSigner.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/auth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/response.js → types/dist-cjs/checksum.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/retry.js → types/dist-cjs/client.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/serde.js → types/dist-cjs/command.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/config.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/manager.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/pool.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/shapes.js → types/dist-cjs/crypto.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/signature.js → types/dist-cjs/encode.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/stream.js → types/dist-cjs/endpoint.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/shared.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/transfer.js → types/dist-cjs/eventStream.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/retry.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/uri.js → types/dist-cjs/http.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/identity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/tokenIdentity.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/util.js → types/dist-cjs/logger.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/waiter.js → types/dist-cjs/middleware.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-method-transforms.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/exact.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/no-undefined.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js → types/dist-es/abort.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js → types/dist-es/auth/HttpAuthScheme.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js → types/dist-es/auth/HttpAuthSchemeProvider.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js → types/dist-es/auth/HttpSigner.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/identity/identity.js → types/dist-es/auth/IdentityProviderConfig.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/auth.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js → types/dist-es/blob/blob-payload-input-types.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/retry.js → types/dist-es/checksum.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js → types/dist-es/client.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js → types/dist-es/command.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js → types/dist-es/connection/config.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/index.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js → types/dist-es/connection/manager.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js → types/dist-es/connection/pool.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/transform/exact.js → types/dist-es/crypto.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es → types/dist-es/downlevel-ts3.4}/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-es/transform/no-undefined.js → types/dist-es/encode.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoint.js +0 -0
- /package/{out/language-server/auto-trigger/autoTrigger.test.d.ts → node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js} +0 -0
- /package/{out/language-server/chat/chatController.test.d.ts → node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js} +0 -0
- /package/{out/language-server/chat/chatEventParser.test.d.ts → node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js} +0 -0
- /package/{out/language-server/chat/chatSessionManagementService.test.d.ts → node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/index.js +0 -0
- /package/{out/language-server/chat/chatSessionService.test.d.ts → node_modules/@smithy/types/dist-es/endpoints/shared.js} +0 -0
- /package/{out/language-server/chat/contexts/documentContext.test.d.ts → node_modules/@smithy/types/dist-es/eventStream.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
- /package/{out/language-server/chat/contexts/triggerContexts.test.d.ts → node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/index.js +0 -0
- /package/{out/language-server/chat/contexts/utils.test.d.ts → node_modules/@smithy/types/dist-es/extensions/retry.js} +0 -0
- /package/{out/language-server/chat/telemetry/chatTelemetryController.test.d.ts → node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js} +0 -0
- /package/{out/language-server/codeWhispererServer.test.d.ts → node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http.js +0 -0
- /package/{out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts → node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js} +0 -0
- /package/{out/language-server/languageDetection.test.d.ts → node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js} +0 -0
- /package/{out/language-server/mergeRightUtils.test.d.ts → node_modules/@smithy/types/dist-es/identity/identity.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/index.js +0 -0
- /package/{out/language-server/netTransform/tests/converter.test.d.ts → node_modules/@smithy/types/dist-es/identity/tokenIdentity.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/index.js +0 -0
- /package/{out/language-server/netTransform/tests/transformHandler.test.d.ts → node_modules/@smithy/types/dist-es/logger.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/middleware.js +0 -0
- /package/{out/language-server/netTransform/tests/validation.test.d.ts → node_modules/@smithy/types/dist-es/pagination.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/profile.js +0 -0
- /package/{out/language-server/qChatServer.test.d.ts → node_modules/@smithy/types/dist-es/response.js} +0 -0
- /package/{out/language-server/securityScan/securityScanHandler.test.d.ts → node_modules/@smithy/types/dist-es/retry.js} +0 -0
- /package/{out/language-server/session/sessionManager.test.d.ts → node_modules/@smithy/types/dist-es/serde.js} +0 -0
- /package/{out/language-server/telemetry.test.d.ts → node_modules/@smithy/types/dist-es/shapes.js} +0 -0
- /package/{out/language-server/telemetry/codeDiffTracker.test.d.ts → node_modules/@smithy/types/dist-es/signature.js} +0 -0
- /package/{out/language-server/telemetry/codePercentage.test.d.ts → node_modules/@smithy/types/dist-es/stream.js} +0 -0
- /package/{out/language-server/telemetry/userTriggerDecision.test.d.ts → node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js} +0 -0
- /package/{out/language-server/telemetryService.test.d.ts → node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js} +0 -0
- /package/{out/language-server/utilities/filesystemUtilities.test.d.ts → node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transfer.js +0 -0
- /package/{out/language-server/utilities/pathUtils.test.d.ts → node_modules/@smithy/types/dist-es/transform/client-method-transforms.js} +0 -0
- /package/{out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts → node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js} +0 -0
- /package/{out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts → node_modules/@smithy/types/dist-es/transform/exact.js} +0 -0
- /package/{out/language-server/utilities/telemetryUtils.test.d.ts → node_modules/@smithy/types/dist-es/transform/no-undefined.js} +0 -0
- /package/{out/language-server/utilities/textUtils.test.d.ts → node_modules/@smithy/types/dist-es/transform/type-transform.js} +0 -0
- /package/{out/language-server/utils.test.d.ts → node_modules/@smithy/types/dist-es/uri.js} +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/abort.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/client.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/command.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/crypto.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/encode.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/logger.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/profile.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/response.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/serde.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/signature.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/stream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-method-transforms.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/abort.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/client.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/command.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/crypto.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/encode.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/logger.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/profile.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/response.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/retry.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/serde.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/signature.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/stream.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/uri.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/util.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/uri.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/util.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/package.json +0 -0
|
@@ -1,1348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
|
|
4
|
-
const testing_1 = require("@aws/language-server-runtimes/testing");
|
|
5
|
-
const assert = require("assert");
|
|
6
|
-
const ts_sinon_1 = require("ts-sinon");
|
|
7
|
-
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
8
|
-
const codeWhispererServer_1 = require("../codeWhispererServer");
|
|
9
|
-
const sessionManager_1 = require("../session/sessionManager");
|
|
10
|
-
const telemetryService_1 = require("../telemetryService");
|
|
11
|
-
describe('Telemetry', () => {
|
|
12
|
-
const sandbox = ts_sinon_1.default.createSandbox();
|
|
13
|
-
let SESSION_IDS_LOG = [];
|
|
14
|
-
let sessionManager;
|
|
15
|
-
let sessionManagerSpy;
|
|
16
|
-
let generateSessionIdStub;
|
|
17
|
-
let clock;
|
|
18
|
-
let telemetryServiceSpy;
|
|
19
|
-
beforeEach(() => {
|
|
20
|
-
const StubSessionIdGenerator = () => {
|
|
21
|
-
let id = 'some-random-session-uuid-' + SESSION_IDS_LOG.length;
|
|
22
|
-
SESSION_IDS_LOG.push(id);
|
|
23
|
-
return id;
|
|
24
|
-
};
|
|
25
|
-
generateSessionIdStub = ts_sinon_1.default
|
|
26
|
-
.stub(sessionManager_1.CodeWhispererSession.prototype, 'generateSessionId')
|
|
27
|
-
.callsFake(StubSessionIdGenerator);
|
|
28
|
-
sessionManager_1.SessionManager.reset();
|
|
29
|
-
sessionManager = sessionManager_1.SessionManager.getInstance();
|
|
30
|
-
sessionManagerSpy = sandbox.spy(sessionManager);
|
|
31
|
-
SESSION_IDS_LOG = [];
|
|
32
|
-
clock = ts_sinon_1.default.useFakeTimers({
|
|
33
|
-
now: 1483228800000,
|
|
34
|
-
});
|
|
35
|
-
telemetryServiceSpy = ts_sinon_1.default.spy(telemetryService_1.TelemetryService.prototype, 'emitUserTriggerDecision');
|
|
36
|
-
});
|
|
37
|
-
afterEach(() => {
|
|
38
|
-
generateSessionIdStub.restore();
|
|
39
|
-
clock.restore();
|
|
40
|
-
sandbox.restore();
|
|
41
|
-
telemetryServiceSpy.restore();
|
|
42
|
-
});
|
|
43
|
-
describe('User Trigger Decision telemetry', () => {
|
|
44
|
-
const HELLO_WORLD_IN_CSHARP = `class HelloWorld
|
|
45
|
-
{
|
|
46
|
-
static void Main()
|
|
47
|
-
{
|
|
48
|
-
Console.WriteLine("Hello World!");
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
const AUTO_TRIGGER_POSITION = { line: 2, character: 21 };
|
|
53
|
-
const SOME_FILE = vscode_languageserver_textdocument_1.TextDocument.create('file:///test.cs', 'csharp', 1, HELLO_WORLD_IN_CSHARP);
|
|
54
|
-
const SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = vscode_languageserver_textdocument_1.TextDocument.create(
|
|
55
|
-
// Use unsupported extension, so that we can test that we get a match based on the LanguageId
|
|
56
|
-
'file:///test.seesharp', 'CSharp', 1, HELLO_WORLD_IN_CSHARP);
|
|
57
|
-
const EXPECTED_REFERENCE = {
|
|
58
|
-
licenseName: 'test license',
|
|
59
|
-
repository: 'test repository',
|
|
60
|
-
url: 'test url',
|
|
61
|
-
recommendationContentSpan: { start: 0, end: 1 },
|
|
62
|
-
};
|
|
63
|
-
const DEFAULT_SUGGESTIONS = [
|
|
64
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation' },
|
|
65
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation' },
|
|
66
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation' },
|
|
67
|
-
];
|
|
68
|
-
const EXPECTED_RESULT = {
|
|
69
|
-
sessionId: 'some-random-session-uuid-0',
|
|
70
|
-
items: [
|
|
71
|
-
{
|
|
72
|
-
itemId: DEFAULT_SUGGESTIONS[0].itemId,
|
|
73
|
-
insertText: DEFAULT_SUGGESTIONS[0].content,
|
|
74
|
-
range: undefined,
|
|
75
|
-
references: undefined,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
itemId: DEFAULT_SUGGESTIONS[1].itemId,
|
|
79
|
-
insertText: DEFAULT_SUGGESTIONS[1].content,
|
|
80
|
-
range: undefined,
|
|
81
|
-
references: undefined,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
itemId: DEFAULT_SUGGESTIONS[2].itemId,
|
|
85
|
-
insertText: DEFAULT_SUGGESTIONS[2].content,
|
|
86
|
-
range: undefined,
|
|
87
|
-
references: undefined,
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
};
|
|
91
|
-
const EXPECTED_RESPONSE_CONTEXT = {
|
|
92
|
-
requestId: 'cwspr-request-id',
|
|
93
|
-
codewhispererSessionId: 'cwspr-session-id',
|
|
94
|
-
};
|
|
95
|
-
const DEFAULT_SESSION_RESULT_DATA = {
|
|
96
|
-
sessionId: 'some-random-session-uuid-0',
|
|
97
|
-
completionSessionResult: {
|
|
98
|
-
'cwspr-item-id-1': {
|
|
99
|
-
seen: true,
|
|
100
|
-
accepted: false,
|
|
101
|
-
discarded: false,
|
|
102
|
-
},
|
|
103
|
-
'cwspr-item-id-2': {
|
|
104
|
-
seen: true,
|
|
105
|
-
accepted: false,
|
|
106
|
-
discarded: false,
|
|
107
|
-
},
|
|
108
|
-
'cwspr-item-id-3': {
|
|
109
|
-
seen: true,
|
|
110
|
-
accepted: false,
|
|
111
|
-
discarded: false,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
const EMPTY_RESULT = { items: [], sessionId: '' };
|
|
116
|
-
let features;
|
|
117
|
-
let server;
|
|
118
|
-
// TODO move more of the service code out of the stub and into the testable realm
|
|
119
|
-
// See: https://aws.amazon.com/blogs/developer/mocking-modular-aws-sdk-for-javascript-v3-in-unit-tests/
|
|
120
|
-
// for examples on how to mock just the SDK client
|
|
121
|
-
let service;
|
|
122
|
-
const setServiceResponse = (suggestions, responseContext, time = 2000) => {
|
|
123
|
-
service.generateSuggestions.callsFake(_request => {
|
|
124
|
-
clock.tick(time);
|
|
125
|
-
return Promise.resolve({
|
|
126
|
-
suggestions,
|
|
127
|
-
responseContext,
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
const autoTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
|
|
132
|
-
textDocument: { uri: SOME_FILE.uri },
|
|
133
|
-
position: AUTO_TRIGGER_POSITION,
|
|
134
|
-
context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Automatic },
|
|
135
|
-
}, server_interface_1.CancellationToken.None);
|
|
136
|
-
const manualTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
|
|
137
|
-
textDocument: { uri: SOME_FILE.uri },
|
|
138
|
-
position: { line: 0, character: 0 },
|
|
139
|
-
context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Invoked },
|
|
140
|
-
}, server_interface_1.CancellationToken.None);
|
|
141
|
-
beforeEach(async () => {
|
|
142
|
-
// Set up the server with a mock service, returning predefined recommendations
|
|
143
|
-
service = (0, ts_sinon_1.stubInterface)();
|
|
144
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
145
|
-
server = (0, codeWhispererServer_1.CodewhispererServerFactory)(_auth => service);
|
|
146
|
-
// Initialize the features, but don't start server yet
|
|
147
|
-
features = new testing_1.TestFeatures();
|
|
148
|
-
// Return no specific configuration for CodeWhisperer
|
|
149
|
-
features.lsp.workspace.getConfiguration.returns(Promise.resolve({}));
|
|
150
|
-
// Return credentialsStartUrl value
|
|
151
|
-
features.credentialsProvider.getConnectionMetadata.returns({
|
|
152
|
-
sso: {
|
|
153
|
-
startUrl: 'teststarturl',
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
// Start the server and open a document
|
|
157
|
-
await features.start(server);
|
|
158
|
-
features.openDocument(SOME_FILE).openDocument(SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID);
|
|
159
|
-
});
|
|
160
|
-
const aUserTriggerDecision = (override = {}) => {
|
|
161
|
-
return {
|
|
162
|
-
id: 'some-random-session-uuid-0',
|
|
163
|
-
document: {
|
|
164
|
-
_uri: 'file:///test.cs',
|
|
165
|
-
_languageId: 'csharp',
|
|
166
|
-
_version: 1,
|
|
167
|
-
_content: 'class HelloWorld\n' +
|
|
168
|
-
'{\n' +
|
|
169
|
-
' static void Main()\n' +
|
|
170
|
-
' {\n' +
|
|
171
|
-
' Console.WriteLine("Hello World!");\n' +
|
|
172
|
-
' }\n' +
|
|
173
|
-
'}\n',
|
|
174
|
-
_lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
|
|
175
|
-
},
|
|
176
|
-
startTime: 1483228800000,
|
|
177
|
-
closeTime: 1483228802000,
|
|
178
|
-
state: 'CLOSED',
|
|
179
|
-
codewhispererSessionId: 'cwspr-session-id',
|
|
180
|
-
startPosition: { line: 2, character: 21 },
|
|
181
|
-
suggestions: [
|
|
182
|
-
{ itemId: 'cwspr-item-id-1', content: '' },
|
|
183
|
-
{ itemId: 'cwspr-item-id-2', content: '' },
|
|
184
|
-
{ itemId: 'cwspr-item-id-3', content: '' },
|
|
185
|
-
],
|
|
186
|
-
suggestionsStates: new Map([
|
|
187
|
-
['cwspr-item-id-1', 'Empty'],
|
|
188
|
-
['cwspr-item-id-2', 'Empty'],
|
|
189
|
-
['cwspr-item-id-3', 'Empty'],
|
|
190
|
-
]),
|
|
191
|
-
acceptedSuggestionId: undefined,
|
|
192
|
-
responseContext: {
|
|
193
|
-
requestId: 'cwspr-request-id',
|
|
194
|
-
codewhispererSessionId: 'cwspr-session-id',
|
|
195
|
-
},
|
|
196
|
-
triggerType: 'AutoTrigger',
|
|
197
|
-
autoTriggerType: 'SpecialCharacters',
|
|
198
|
-
triggerCharacter: '(',
|
|
199
|
-
classifierResult: 0.46733811481459187,
|
|
200
|
-
classifierThreshold: 0.43,
|
|
201
|
-
language: 'csharp',
|
|
202
|
-
requestContext: {
|
|
203
|
-
fileContext: {
|
|
204
|
-
filename: 'file:///test.cs',
|
|
205
|
-
programmingLanguage: {
|
|
206
|
-
languageName: 'csharp',
|
|
207
|
-
},
|
|
208
|
-
leftFileContent: 'class HelloWorld\n{\n static void Main(',
|
|
209
|
-
rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
210
|
-
},
|
|
211
|
-
maxResults: 1,
|
|
212
|
-
},
|
|
213
|
-
supplementalMetadata: undefined,
|
|
214
|
-
timeToFirstRecommendation: 2000,
|
|
215
|
-
credentialStartUrl: 'teststarturl',
|
|
216
|
-
completionSessionResult: undefined,
|
|
217
|
-
firstCompletionDisplayLatency: undefined,
|
|
218
|
-
totalSessionDisplayTime: undefined,
|
|
219
|
-
typeaheadLength: undefined,
|
|
220
|
-
previousTriggerDecision: undefined,
|
|
221
|
-
previousTriggerDecisionTime: undefined,
|
|
222
|
-
reportedUserDecision: true,
|
|
223
|
-
customizationArn: undefined,
|
|
224
|
-
...override,
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
describe('Case 1. Session is processed by server without sending results', () => {
|
|
228
|
-
it('should send Empty user desicion when Codewhisperer returned list of empty suggestions and close session', async () => {
|
|
229
|
-
const SUGGESTIONS = [
|
|
230
|
-
{ itemId: 'cwspr-item-id-1', content: '' },
|
|
231
|
-
{ itemId: 'cwspr-item-id-2', content: '' },
|
|
232
|
-
{ itemId: 'cwspr-item-id-3', content: '' },
|
|
233
|
-
];
|
|
234
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
235
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
236
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
237
|
-
assert(currentSession);
|
|
238
|
-
assert.equal(currentSession.state, 'CLOSED');
|
|
239
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
|
|
240
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision();
|
|
241
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
242
|
-
});
|
|
243
|
-
it('should send Empty User Decision when Codewhisperer returned empty list of suggestions', async () => {
|
|
244
|
-
const SUGGESTIONS = [];
|
|
245
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
246
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
247
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
248
|
-
assert(currentSession);
|
|
249
|
-
assert.equal(currentSession.state, 'CLOSED');
|
|
250
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
|
|
251
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
252
|
-
suggestions: [],
|
|
253
|
-
suggestionsStates: new Map([]),
|
|
254
|
-
});
|
|
255
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
256
|
-
});
|
|
257
|
-
it('should send Discard User Decision when all suggestions are filtered out by includeSuggestionsWithCodeReferences setting filter', async () => {
|
|
258
|
-
features.lsp.workspace.getConfiguration.returns(Promise.resolve({ includeSuggestionsWithCodeReferences: false }));
|
|
259
|
-
const SUGGESTIONS = [
|
|
260
|
-
{
|
|
261
|
-
itemId: 'cwspr-item-id-1',
|
|
262
|
-
content: 'recommendation with reference',
|
|
263
|
-
references: [EXPECTED_REFERENCE],
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
itemId: 'cwspr-item-id-2',
|
|
267
|
-
content: 'recommendation with reference',
|
|
268
|
-
references: [EXPECTED_REFERENCE],
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
itemId: 'cwspr-item-id-3',
|
|
272
|
-
content: 'recommendation with reference',
|
|
273
|
-
references: [EXPECTED_REFERENCE],
|
|
274
|
-
},
|
|
275
|
-
];
|
|
276
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
277
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
278
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
279
|
-
assert(currentSession);
|
|
280
|
-
assert.equal(currentSession.state, 'CLOSED');
|
|
281
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
|
|
282
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
283
|
-
suggestions: [
|
|
284
|
-
{
|
|
285
|
-
itemId: 'cwspr-item-id-1',
|
|
286
|
-
content: 'recommendation with reference',
|
|
287
|
-
references: [EXPECTED_REFERENCE],
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
itemId: 'cwspr-item-id-2',
|
|
291
|
-
content: 'recommendation with reference',
|
|
292
|
-
references: [EXPECTED_REFERENCE],
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
itemId: 'cwspr-item-id-3',
|
|
296
|
-
content: 'recommendation with reference',
|
|
297
|
-
references: [EXPECTED_REFERENCE],
|
|
298
|
-
},
|
|
299
|
-
],
|
|
300
|
-
suggestionsStates: new Map([
|
|
301
|
-
['cwspr-item-id-1', 'Filter'],
|
|
302
|
-
['cwspr-item-id-2', 'Filter'],
|
|
303
|
-
['cwspr-item-id-3', 'Filter'],
|
|
304
|
-
]),
|
|
305
|
-
});
|
|
306
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
307
|
-
});
|
|
308
|
-
it('should send Discard User Decision when all suggestions are discarded after right context merge', async () => {
|
|
309
|
-
const SUGGESTIONS = [
|
|
310
|
-
{ itemId: 'cwspr-item-id-1', content: HELLO_WORLD_IN_CSHARP },
|
|
311
|
-
{ itemId: 'cwspr-item-id-2', content: HELLO_WORLD_IN_CSHARP },
|
|
312
|
-
{ itemId: 'cwspr-item-id-3', content: HELLO_WORLD_IN_CSHARP },
|
|
313
|
-
];
|
|
314
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
315
|
-
await manualTriggerInlineCompletionWithReferences();
|
|
316
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
317
|
-
assert(currentSession);
|
|
318
|
-
assert.equal(currentSession?.state, 'CLOSED');
|
|
319
|
-
ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
|
|
320
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
321
|
-
startPosition: { line: 0, character: 0 },
|
|
322
|
-
suggestions: [
|
|
323
|
-
{
|
|
324
|
-
itemId: 'cwspr-item-id-1',
|
|
325
|
-
content: 'class HelloWorld\n' +
|
|
326
|
-
'{\n' +
|
|
327
|
-
' static void Main()\n' +
|
|
328
|
-
' {\n' +
|
|
329
|
-
' Console.WriteLine("Hello World!");\n' +
|
|
330
|
-
' }\n' +
|
|
331
|
-
'}\n',
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
itemId: 'cwspr-item-id-2',
|
|
335
|
-
content: 'class HelloWorld\n' +
|
|
336
|
-
'{\n' +
|
|
337
|
-
' static void Main()\n' +
|
|
338
|
-
' {\n' +
|
|
339
|
-
' Console.WriteLine("Hello World!");\n' +
|
|
340
|
-
' }\n' +
|
|
341
|
-
'}\n',
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
itemId: 'cwspr-item-id-3',
|
|
345
|
-
content: 'class HelloWorld\n' +
|
|
346
|
-
'{\n' +
|
|
347
|
-
' static void Main()\n' +
|
|
348
|
-
' {\n' +
|
|
349
|
-
' Console.WriteLine("Hello World!");\n' +
|
|
350
|
-
' }\n' +
|
|
351
|
-
'}\n',
|
|
352
|
-
},
|
|
353
|
-
],
|
|
354
|
-
suggestionsStates: new Map([
|
|
355
|
-
['cwspr-item-id-1', 'Discard'],
|
|
356
|
-
['cwspr-item-id-2', 'Discard'],
|
|
357
|
-
['cwspr-item-id-3', 'Discard'],
|
|
358
|
-
]),
|
|
359
|
-
triggerType: 'OnDemand',
|
|
360
|
-
autoTriggerType: undefined,
|
|
361
|
-
triggerCharacter: '',
|
|
362
|
-
classifierResult: -0.8524073111924992,
|
|
363
|
-
requestContext: {
|
|
364
|
-
fileContext: {
|
|
365
|
-
filename: 'file:///test.cs',
|
|
366
|
-
programmingLanguage: {
|
|
367
|
-
languageName: 'csharp',
|
|
368
|
-
},
|
|
369
|
-
leftFileContent: '',
|
|
370
|
-
rightFileContent: 'class HelloWorld\n' +
|
|
371
|
-
'{\n' +
|
|
372
|
-
' static void Main()\n' +
|
|
373
|
-
' {\n' +
|
|
374
|
-
' Console.WriteLine("Hello World!");\n' +
|
|
375
|
-
' }\n' +
|
|
376
|
-
'}\n',
|
|
377
|
-
},
|
|
378
|
-
maxResults: 5,
|
|
379
|
-
},
|
|
380
|
-
});
|
|
381
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
382
|
-
});
|
|
383
|
-
});
|
|
384
|
-
describe('Case 2. Session returns recommendation to client and is closed by LogInlineCompletionSessionResults notification', () => {
|
|
385
|
-
it('should emit User Decision event for active completion session when session results are received', async () => {
|
|
386
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
387
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
388
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
389
|
-
assert(currentSession);
|
|
390
|
-
assert.equal(currentSession?.state, 'ACTIVE');
|
|
391
|
-
ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
|
|
392
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
393
|
-
await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
|
|
394
|
-
ts_sinon_1.default.assert.called(telemetryServiceSpy);
|
|
395
|
-
});
|
|
396
|
-
it('should emit User Decision event with correct typeaheadLength value when session results are received', async () => {
|
|
397
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
398
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
399
|
-
const currentSession = sessionManager.getCurrentSession();
|
|
400
|
-
assert(currentSession);
|
|
401
|
-
assert.equal(currentSession?.state, 'ACTIVE');
|
|
402
|
-
ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
|
|
403
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
404
|
-
await features.doLogInlineCompletionSessionResults({
|
|
405
|
-
...DEFAULT_SESSION_RESULT_DATA,
|
|
406
|
-
typeaheadLength: 20,
|
|
407
|
-
});
|
|
408
|
-
ts_sinon_1.default.assert.called(telemetryServiceSpy);
|
|
409
|
-
});
|
|
410
|
-
it('should not emit User Decision event when session results are received after session was closed', async () => {
|
|
411
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
412
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
413
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
414
|
-
});
|
|
415
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
416
|
-
const firstSession = sessionManager.getCurrentSession();
|
|
417
|
-
assert(firstSession);
|
|
418
|
-
assert.equal(firstSession.state, 'ACTIVE');
|
|
419
|
-
ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
|
|
420
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
421
|
-
// Send second completion request to close first one
|
|
422
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
423
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
424
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
425
|
-
});
|
|
426
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
427
|
-
assert.equal(firstSession.state, 'DISCARD');
|
|
428
|
-
assert.notEqual(firstSession, sessionManager.getCurrentSession());
|
|
429
|
-
ts_sinon_1.default.assert.calledWithExactly(sessionManagerSpy.closeSession, firstSession);
|
|
430
|
-
// Test that session reports it's status when second request is received
|
|
431
|
-
const expectedEvent = aUserTriggerDecision({
|
|
432
|
-
state: 'DISCARD',
|
|
433
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
434
|
-
suggestions: [
|
|
435
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
436
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
437
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
438
|
-
],
|
|
439
|
-
suggestionsStates: new Map([
|
|
440
|
-
['cwspr-item-id-1', 'Discard'],
|
|
441
|
-
['cwspr-item-id-2', 'Discard'],
|
|
442
|
-
['cwspr-item-id-3', 'Discard'],
|
|
443
|
-
]),
|
|
444
|
-
responseContext: {
|
|
445
|
-
requestId: 'cwspr-request-id',
|
|
446
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
447
|
-
},
|
|
448
|
-
});
|
|
449
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedEvent, 0);
|
|
450
|
-
telemetryServiceSpy.resetHistory();
|
|
451
|
-
// Send session results for closed first session
|
|
452
|
-
await features.doLogInlineCompletionSessionResults({
|
|
453
|
-
...DEFAULT_SESSION_RESULT_DATA,
|
|
454
|
-
sessionId: firstSession.id,
|
|
455
|
-
});
|
|
456
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
457
|
-
});
|
|
458
|
-
it('should not emit User Decision event when session results received for session that does not exist', async () => {
|
|
459
|
-
// Send session results for closed first session
|
|
460
|
-
await features.doLogInlineCompletionSessionResults({
|
|
461
|
-
...DEFAULT_SESSION_RESULT_DATA,
|
|
462
|
-
sessionId: 'cwspr-session-id-never-created',
|
|
463
|
-
});
|
|
464
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
465
|
-
});
|
|
466
|
-
it('should emit Accept User Decision event for current active completion session when session results are received with accepted suggestion', async () => {
|
|
467
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
468
|
-
const SESSION_RESULT_DATA = {
|
|
469
|
-
sessionId: 'some-random-session-uuid-0',
|
|
470
|
-
completionSessionResult: {
|
|
471
|
-
'cwspr-item-id-1': {
|
|
472
|
-
seen: true,
|
|
473
|
-
accepted: false,
|
|
474
|
-
discarded: false,
|
|
475
|
-
},
|
|
476
|
-
'cwspr-item-id-2': {
|
|
477
|
-
seen: true,
|
|
478
|
-
accepted: true, // Second suggestion was accepted
|
|
479
|
-
discarded: false,
|
|
480
|
-
},
|
|
481
|
-
'cwspr-item-id-3': {
|
|
482
|
-
seen: true,
|
|
483
|
-
accepted: false,
|
|
484
|
-
discarded: false,
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
};
|
|
488
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
489
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
490
|
-
// Send session results for closed first session
|
|
491
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
492
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
493
|
-
completionSessionResult: {
|
|
494
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
495
|
-
'cwspr-item-id-2': { seen: true, accepted: true, discarded: false },
|
|
496
|
-
'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
|
|
497
|
-
},
|
|
498
|
-
suggestions: [
|
|
499
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
500
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
501
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
502
|
-
],
|
|
503
|
-
suggestionsStates: new Map([
|
|
504
|
-
['cwspr-item-id-1', 'Ignore'],
|
|
505
|
-
['cwspr-item-id-2', 'Accept'],
|
|
506
|
-
['cwspr-item-id-3', 'Ignore'],
|
|
507
|
-
]),
|
|
508
|
-
acceptedSuggestionId: 'cwspr-item-id-2',
|
|
509
|
-
});
|
|
510
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
511
|
-
});
|
|
512
|
-
it('should emit Reject User Decision event for current active completion session when session results are received without accepted suggestion', async () => {
|
|
513
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
514
|
-
const SESSION_RESULT_DATA = {
|
|
515
|
-
sessionId: 'some-random-session-uuid-0',
|
|
516
|
-
completionSessionResult: {
|
|
517
|
-
'cwspr-item-id-1': {
|
|
518
|
-
seen: true, // Reject
|
|
519
|
-
accepted: false,
|
|
520
|
-
discarded: false,
|
|
521
|
-
},
|
|
522
|
-
'cwspr-item-id-2': {
|
|
523
|
-
seen: false, // Unseen
|
|
524
|
-
accepted: false,
|
|
525
|
-
discarded: true,
|
|
526
|
-
},
|
|
527
|
-
'cwspr-item-id-3': {
|
|
528
|
-
seen: false, // Discard
|
|
529
|
-
accepted: false,
|
|
530
|
-
discarded: true,
|
|
531
|
-
},
|
|
532
|
-
},
|
|
533
|
-
};
|
|
534
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
535
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
536
|
-
// Send session results for closed first session
|
|
537
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
538
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
539
|
-
suggestions: [
|
|
540
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
541
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
542
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
543
|
-
],
|
|
544
|
-
suggestionsStates: new Map([
|
|
545
|
-
['cwspr-item-id-1', 'Reject'],
|
|
546
|
-
['cwspr-item-id-2', 'Discard'],
|
|
547
|
-
['cwspr-item-id-3', 'Discard'],
|
|
548
|
-
]),
|
|
549
|
-
completionSessionResult: {
|
|
550
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
551
|
-
'cwspr-item-id-2': { seen: false, accepted: false, discarded: true },
|
|
552
|
-
'cwspr-item-id-3': { seen: false, accepted: false, discarded: true },
|
|
553
|
-
},
|
|
554
|
-
});
|
|
555
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
556
|
-
});
|
|
557
|
-
it('should send Discard User Decision when all suggestions have Discard state', async () => {
|
|
558
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
559
|
-
const SESSION_RESULT_DATA = {
|
|
560
|
-
sessionId: 'some-random-session-uuid-0',
|
|
561
|
-
completionSessionResult: {
|
|
562
|
-
'cwspr-item-id-1': {
|
|
563
|
-
seen: false, // Discard
|
|
564
|
-
accepted: false,
|
|
565
|
-
discarded: true,
|
|
566
|
-
},
|
|
567
|
-
'cwspr-item-id-2': {
|
|
568
|
-
seen: false, // Discard
|
|
569
|
-
accepted: false,
|
|
570
|
-
discarded: true,
|
|
571
|
-
},
|
|
572
|
-
'cwspr-item-id-3': {
|
|
573
|
-
seen: false, // Discard
|
|
574
|
-
accepted: false,
|
|
575
|
-
discarded: true,
|
|
576
|
-
},
|
|
577
|
-
},
|
|
578
|
-
};
|
|
579
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
580
|
-
ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
|
|
581
|
-
// Send session results for closed first session
|
|
582
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
583
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
584
|
-
suggestions: [
|
|
585
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
586
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
587
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
588
|
-
],
|
|
589
|
-
suggestionsStates: new Map([
|
|
590
|
-
['cwspr-item-id-1', 'Discard'],
|
|
591
|
-
['cwspr-item-id-2', 'Discard'],
|
|
592
|
-
['cwspr-item-id-3', 'Discard'],
|
|
593
|
-
]),
|
|
594
|
-
completionSessionResult: {
|
|
595
|
-
'cwspr-item-id-1': { seen: false, accepted: false, discarded: true },
|
|
596
|
-
'cwspr-item-id-2': { seen: false, accepted: false, discarded: true },
|
|
597
|
-
'cwspr-item-id-3': { seen: false, accepted: false, discarded: true },
|
|
598
|
-
},
|
|
599
|
-
});
|
|
600
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
601
|
-
});
|
|
602
|
-
it('should set codewhispererTimeSinceLastDocumentChange as difference between 2 any document changes', async () => {
|
|
603
|
-
const typeSomething = async () => await features.doChangeTextDocument({
|
|
604
|
-
textDocument: { uri: SOME_FILE.uri, version: 1 },
|
|
605
|
-
contentChanges: [
|
|
606
|
-
{
|
|
607
|
-
range: { start: { line: 0, character: 0 }, end: { line: 0, character: 1 } },
|
|
608
|
-
text: 'f',
|
|
609
|
-
},
|
|
610
|
-
],
|
|
611
|
-
});
|
|
612
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
613
|
-
await typeSomething();
|
|
614
|
-
clock.tick(1234);
|
|
615
|
-
await typeSomething();
|
|
616
|
-
clock.tick(5678);
|
|
617
|
-
await typeSomething();
|
|
618
|
-
await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
|
|
619
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
620
|
-
completionSessionResult: {
|
|
621
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
622
|
-
'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
|
|
623
|
-
'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
|
|
624
|
-
},
|
|
625
|
-
suggestions: [
|
|
626
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
627
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
628
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
629
|
-
],
|
|
630
|
-
suggestionsStates: new Map([
|
|
631
|
-
['cwspr-item-id-1', 'Reject'],
|
|
632
|
-
['cwspr-item-id-2', 'Reject'],
|
|
633
|
-
['cwspr-item-id-3', 'Reject'],
|
|
634
|
-
]),
|
|
635
|
-
closeTime: clock.now,
|
|
636
|
-
});
|
|
637
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 5678);
|
|
638
|
-
});
|
|
639
|
-
});
|
|
640
|
-
describe('Case 3. Active session is closed by subsequent trigger', function () {
|
|
641
|
-
it('should close ACTIVE session and emit Discard user trigger decision event on Manual trigger', async () => {
|
|
642
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
643
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
644
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
645
|
-
});
|
|
646
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
647
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
648
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
649
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
650
|
-
});
|
|
651
|
-
await manualTriggerInlineCompletionWithReferences();
|
|
652
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
653
|
-
state: 'DISCARD',
|
|
654
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
655
|
-
suggestions: [
|
|
656
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
657
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
658
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
659
|
-
],
|
|
660
|
-
suggestionsStates: new Map([
|
|
661
|
-
['cwspr-item-id-1', 'Discard'],
|
|
662
|
-
['cwspr-item-id-2', 'Discard'],
|
|
663
|
-
['cwspr-item-id-3', 'Discard'],
|
|
664
|
-
]),
|
|
665
|
-
responseContext: {
|
|
666
|
-
requestId: 'cwspr-request-id',
|
|
667
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
668
|
-
},
|
|
669
|
-
});
|
|
670
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
671
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
|
|
672
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
673
|
-
}, 0);
|
|
674
|
-
});
|
|
675
|
-
it('should close ACTIVE session and emit Discard user trigger decision event on Auto trigger', async () => {
|
|
676
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
677
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
678
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
679
|
-
});
|
|
680
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
681
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
682
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
683
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
684
|
-
});
|
|
685
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
686
|
-
const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
|
|
687
|
-
state: 'DISCARD',
|
|
688
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
689
|
-
suggestions: [
|
|
690
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
691
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
692
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
693
|
-
],
|
|
694
|
-
suggestionsStates: new Map([
|
|
695
|
-
['cwspr-item-id-1', 'Discard'],
|
|
696
|
-
['cwspr-item-id-2', 'Discard'],
|
|
697
|
-
['cwspr-item-id-3', 'Discard'],
|
|
698
|
-
]),
|
|
699
|
-
responseContext: {
|
|
700
|
-
requestId: 'cwspr-request-id',
|
|
701
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
702
|
-
},
|
|
703
|
-
});
|
|
704
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
|
|
705
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
|
|
706
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
707
|
-
}, 0);
|
|
708
|
-
});
|
|
709
|
-
it('should attach previous session trigger decision', async () => {
|
|
710
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
711
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
712
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
713
|
-
});
|
|
714
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
715
|
-
const firstSession = sessionManager.getCurrentSession();
|
|
716
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
717
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
718
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
719
|
-
});
|
|
720
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
721
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
722
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
723
|
-
codewhispererSessionId: 'cwspr-session-id-3',
|
|
724
|
-
});
|
|
725
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
726
|
-
ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
|
|
727
|
-
const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
|
|
728
|
-
const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
|
|
729
|
-
ts_sinon_1.default.assert.match(firstCallArgs, {
|
|
730
|
-
id: 'some-random-session-uuid-0',
|
|
731
|
-
document: {
|
|
732
|
-
_uri: 'file:///test.cs',
|
|
733
|
-
_languageId: 'csharp',
|
|
734
|
-
_version: 1,
|
|
735
|
-
_content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
736
|
-
_lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
|
|
737
|
-
},
|
|
738
|
-
startTime: 1483228800000,
|
|
739
|
-
closeTime: 1483228802000,
|
|
740
|
-
state: 'DISCARD',
|
|
741
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
742
|
-
startPosition: { line: 2, character: 21 },
|
|
743
|
-
suggestions: [
|
|
744
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
745
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
746
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
747
|
-
],
|
|
748
|
-
suggestionsStates: {},
|
|
749
|
-
responseContext: { requestId: 'cwspr-request-id', codewhispererSessionId: 'cwspr-session-id-1' },
|
|
750
|
-
triggerType: 'AutoTrigger',
|
|
751
|
-
autoTriggerType: 'SpecialCharacters',
|
|
752
|
-
triggerCharacter: '(',
|
|
753
|
-
classifierResult: 0.46733811481459187,
|
|
754
|
-
classifierThreshold: 0.43,
|
|
755
|
-
language: 'csharp',
|
|
756
|
-
requestContext: {
|
|
757
|
-
fileContext: {
|
|
758
|
-
filename: 'file:///test.cs',
|
|
759
|
-
programmingLanguage: { languageName: 'csharp' },
|
|
760
|
-
leftFileContent: 'class HelloWorld\n{\n static void Main(',
|
|
761
|
-
rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
762
|
-
},
|
|
763
|
-
maxResults: 1,
|
|
764
|
-
},
|
|
765
|
-
timeToFirstRecommendation: 2000,
|
|
766
|
-
credentialStartUrl: 'teststarturl',
|
|
767
|
-
reportedUserDecision: true,
|
|
768
|
-
});
|
|
769
|
-
ts_sinon_1.default.assert.match(secondCallArgs, aUserTriggerDecision({
|
|
770
|
-
previousTriggerDecision: 'Discard',
|
|
771
|
-
previousTriggerDecisionTime: 1483228802000,
|
|
772
|
-
responseContext: {
|
|
773
|
-
requestId: 'cwspr-request-id',
|
|
774
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
775
|
-
},
|
|
776
|
-
id: 'some-random-session-uuid-1',
|
|
777
|
-
startTime: 1483228802000,
|
|
778
|
-
closeTime: 1483228804000,
|
|
779
|
-
state: 'DISCARD',
|
|
780
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
781
|
-
suggestions: [
|
|
782
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
783
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
784
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
785
|
-
],
|
|
786
|
-
suggestionsStates: new Map([
|
|
787
|
-
['cwspr-item-id-1', 'Discard'],
|
|
788
|
-
['cwspr-item-id-2', 'Discard'],
|
|
789
|
-
['cwspr-item-id-3', 'Discard'],
|
|
790
|
-
]),
|
|
791
|
-
}));
|
|
792
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
|
|
793
|
-
codewhispererSessionId: 'cwspr-session-id-3',
|
|
794
|
-
}), 0);
|
|
795
|
-
});
|
|
796
|
-
it('should set correct values for past trigger result fields', async () => {
|
|
797
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
798
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
799
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
800
|
-
});
|
|
801
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
802
|
-
const firstSession = sessionManager.getCurrentSession();
|
|
803
|
-
await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
|
|
804
|
-
clock.tick(1234);
|
|
805
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
806
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
807
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
808
|
-
});
|
|
809
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
810
|
-
// Trigger 3rd session to close second one
|
|
811
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
812
|
-
// For first session previous data does not exist
|
|
813
|
-
ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
|
|
814
|
-
const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
|
|
815
|
-
const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
|
|
816
|
-
ts_sinon_1.default.assert.match(firstCallArgs, aUserTriggerDecision({
|
|
817
|
-
previousTriggerDecision: undefined,
|
|
818
|
-
previousTriggerDecisionTime: undefined,
|
|
819
|
-
responseContext: {
|
|
820
|
-
requestId: 'cwspr-request-id',
|
|
821
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
822
|
-
},
|
|
823
|
-
id: 'some-random-session-uuid-0',
|
|
824
|
-
startTime: 1483228800000,
|
|
825
|
-
closeTime: 1483228802000,
|
|
826
|
-
state: 'CLOSED',
|
|
827
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
828
|
-
suggestions: [
|
|
829
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
830
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
831
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
832
|
-
],
|
|
833
|
-
suggestionsStates: new Map([
|
|
834
|
-
['cwspr-item-id-1', 'Reject'],
|
|
835
|
-
['cwspr-item-id-2', 'Reject'],
|
|
836
|
-
['cwspr-item-id-3', 'Reject'],
|
|
837
|
-
]),
|
|
838
|
-
completionSessionResult: {
|
|
839
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
840
|
-
'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
|
|
841
|
-
'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
|
|
842
|
-
},
|
|
843
|
-
}));
|
|
844
|
-
ts_sinon_1.default.assert.match(secondCallArgs, {
|
|
845
|
-
id: 'some-random-session-uuid-1',
|
|
846
|
-
document: {
|
|
847
|
-
_uri: 'file:///test.cs',
|
|
848
|
-
_languageId: 'csharp',
|
|
849
|
-
_version: 1,
|
|
850
|
-
_content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
851
|
-
_lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
|
|
852
|
-
},
|
|
853
|
-
startTime: 1483228803234,
|
|
854
|
-
closeTime: 1483228805234,
|
|
855
|
-
state: 'DISCARD',
|
|
856
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
857
|
-
startPosition: {
|
|
858
|
-
line: 2,
|
|
859
|
-
character: 21,
|
|
860
|
-
},
|
|
861
|
-
suggestions: [
|
|
862
|
-
{
|
|
863
|
-
itemId: 'cwspr-item-id-1',
|
|
864
|
-
content: 'recommendation',
|
|
865
|
-
insertText: 'recommendation',
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
itemId: 'cwspr-item-id-2',
|
|
869
|
-
content: 'recommendation',
|
|
870
|
-
insertText: 'recommendation',
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
itemId: 'cwspr-item-id-3',
|
|
874
|
-
content: 'recommendation',
|
|
875
|
-
insertText: 'recommendation',
|
|
876
|
-
},
|
|
877
|
-
],
|
|
878
|
-
suggestionsStates: {},
|
|
879
|
-
responseContext: {
|
|
880
|
-
requestId: 'cwspr-request-id',
|
|
881
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
882
|
-
},
|
|
883
|
-
triggerType: 'AutoTrigger',
|
|
884
|
-
autoTriggerType: 'SpecialCharacters',
|
|
885
|
-
triggerCharacter: '(',
|
|
886
|
-
classifierResult: 0.30173811481459184,
|
|
887
|
-
classifierThreshold: 0.43,
|
|
888
|
-
language: 'csharp',
|
|
889
|
-
requestContext: {
|
|
890
|
-
fileContext: {
|
|
891
|
-
filename: 'file:///test.cs',
|
|
892
|
-
programmingLanguage: {
|
|
893
|
-
languageName: 'csharp',
|
|
894
|
-
},
|
|
895
|
-
leftFileContent: 'class HelloWorld\n{\n static void Main(',
|
|
896
|
-
rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
897
|
-
},
|
|
898
|
-
maxResults: 1,
|
|
899
|
-
},
|
|
900
|
-
timeToFirstRecommendation: 2000,
|
|
901
|
-
credentialStartUrl: 'teststarturl',
|
|
902
|
-
previousTriggerDecision: 'Reject',
|
|
903
|
-
previousTriggerDecisionTime: 1483228802000,
|
|
904
|
-
reportedUserDecision: true,
|
|
905
|
-
});
|
|
906
|
-
});
|
|
907
|
-
});
|
|
908
|
-
describe('Case 4. Inflight session is closed by subsequent completion request', function () {
|
|
909
|
-
it('should emit Discard user trigger decision event when REQUESTING session is closed before becoming ACTIVE', async () => {
|
|
910
|
-
// Chain requests in a callbacks
|
|
911
|
-
let concurrentCount = 0;
|
|
912
|
-
let requests = [];
|
|
913
|
-
service.generateSuggestions.callsFake(_request => {
|
|
914
|
-
clock.tick(1000);
|
|
915
|
-
let i = concurrentCount;
|
|
916
|
-
if (concurrentCount < 2) {
|
|
917
|
-
// Trigger second request before first one was resolved
|
|
918
|
-
concurrentCount++;
|
|
919
|
-
const req = autoTriggerInlineCompletionWithReferences();
|
|
920
|
-
requests.push(req);
|
|
921
|
-
clock.tick(10);
|
|
922
|
-
}
|
|
923
|
-
clock.tick(250);
|
|
924
|
-
return Promise.resolve({
|
|
925
|
-
suggestions: DEFAULT_SUGGESTIONS,
|
|
926
|
-
responseContext: {
|
|
927
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
928
|
-
codewhispererSessionId: `cwspr-session-id-${i}`,
|
|
929
|
-
},
|
|
930
|
-
});
|
|
931
|
-
});
|
|
932
|
-
const result = [await autoTriggerInlineCompletionWithReferences(), ...(await Promise.all(requests))];
|
|
933
|
-
assert.deepEqual(result, [
|
|
934
|
-
EMPTY_RESULT,
|
|
935
|
-
EMPTY_RESULT,
|
|
936
|
-
{ ...EXPECTED_RESULT, sessionId: 'some-random-session-uuid-2' },
|
|
937
|
-
]);
|
|
938
|
-
// 3 sessions were created, each one closes previous one in REQUESTING state
|
|
939
|
-
assert.equal(SESSION_IDS_LOG.length, 3);
|
|
940
|
-
ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
|
|
941
|
-
const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
|
|
942
|
-
const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
|
|
943
|
-
ts_sinon_1.default.assert.match(firstCallArgs, aUserTriggerDecision({
|
|
944
|
-
codewhispererSessionId: 'cwspr-session-id-0',
|
|
945
|
-
state: 'DISCARD',
|
|
946
|
-
suggestions: [
|
|
947
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
948
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
949
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
950
|
-
],
|
|
951
|
-
suggestionsStates: new Map([
|
|
952
|
-
['cwspr-item-id-1', 'Discard'],
|
|
953
|
-
['cwspr-item-id-2', 'Discard'],
|
|
954
|
-
['cwspr-item-id-3', 'Discard'],
|
|
955
|
-
]),
|
|
956
|
-
responseContext: {
|
|
957
|
-
requestId: 'cwspr-request-id',
|
|
958
|
-
codewhispererSessionId: 'cwspr-session-id-0',
|
|
959
|
-
},
|
|
960
|
-
timeToFirstRecommendation: 1260,
|
|
961
|
-
closeTime: 1483228801000,
|
|
962
|
-
}));
|
|
963
|
-
ts_sinon_1.default.assert.match(secondCallArgs, {
|
|
964
|
-
id: 'some-random-session-uuid-1',
|
|
965
|
-
document: {
|
|
966
|
-
_uri: 'file:///test.cs',
|
|
967
|
-
_languageId: 'csharp',
|
|
968
|
-
_version: 1,
|
|
969
|
-
_content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
970
|
-
_lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
|
|
971
|
-
},
|
|
972
|
-
startTime: 1483228801260,
|
|
973
|
-
closeTime: 1483228802260,
|
|
974
|
-
state: 'DISCARD',
|
|
975
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
976
|
-
startPosition: { line: 2, character: 21 },
|
|
977
|
-
suggestions: [
|
|
978
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
979
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
980
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
981
|
-
],
|
|
982
|
-
suggestionsStates: {},
|
|
983
|
-
responseContext: { requestId: 'cwspr-request-id', codewhispererSessionId: 'cwspr-session-id-1' },
|
|
984
|
-
triggerType: 'AutoTrigger',
|
|
985
|
-
autoTriggerType: 'SpecialCharacters',
|
|
986
|
-
triggerCharacter: '(',
|
|
987
|
-
classifierResult: 0.46733811481459187,
|
|
988
|
-
classifierThreshold: 0.43,
|
|
989
|
-
language: 'csharp',
|
|
990
|
-
requestContext: {
|
|
991
|
-
fileContext: {
|
|
992
|
-
filename: 'file:///test.cs',
|
|
993
|
-
programmingLanguage: { languageName: 'csharp' },
|
|
994
|
-
leftFileContent: 'class HelloWorld\n{\n static void Main(',
|
|
995
|
-
rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
|
|
996
|
-
},
|
|
997
|
-
maxResults: 1,
|
|
998
|
-
},
|
|
999
|
-
timeToFirstRecommendation: 1260,
|
|
1000
|
-
credentialStartUrl: 'teststarturl',
|
|
1001
|
-
previousTriggerDecision: 'Discard',
|
|
1002
|
-
previousTriggerDecisionTime: 1483228801000,
|
|
1003
|
-
reportedUserDecision: true,
|
|
1004
|
-
});
|
|
1005
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
|
|
1006
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
1007
|
-
});
|
|
1008
|
-
telemetryServiceSpy.resetHistory();
|
|
1009
|
-
const activeSession = sessionManager.getActiveSession();
|
|
1010
|
-
assert.equal(activeSession?.id, SESSION_IDS_LOG[2]);
|
|
1011
|
-
await features.doLogInlineCompletionSessionResults({
|
|
1012
|
-
...DEFAULT_SESSION_RESULT_DATA,
|
|
1013
|
-
sessionId: SESSION_IDS_LOG[2],
|
|
1014
|
-
});
|
|
1015
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
|
|
1016
|
-
id: 'some-random-session-uuid-2',
|
|
1017
|
-
startTime: 1483228802520,
|
|
1018
|
-
closeTime: 1483228803770,
|
|
1019
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
1020
|
-
suggestions: [
|
|
1021
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
1022
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
1023
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
1024
|
-
],
|
|
1025
|
-
suggestionsStates: new Map([
|
|
1026
|
-
['cwspr-item-id-1', 'Reject'],
|
|
1027
|
-
['cwspr-item-id-2', 'Reject'],
|
|
1028
|
-
['cwspr-item-id-3', 'Reject'],
|
|
1029
|
-
]),
|
|
1030
|
-
previousTriggerDecision: 'Discard',
|
|
1031
|
-
previousTriggerDecisionTime: 1483228802260,
|
|
1032
|
-
timeToFirstRecommendation: 1250,
|
|
1033
|
-
completionSessionResult: {
|
|
1034
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
1035
|
-
'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
|
|
1036
|
-
'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
|
|
1037
|
-
},
|
|
1038
|
-
responseContext: {
|
|
1039
|
-
requestId: 'cwspr-request-id',
|
|
1040
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
1041
|
-
},
|
|
1042
|
-
}), 0);
|
|
1043
|
-
});
|
|
1044
|
-
});
|
|
1045
|
-
it('should report user trigger decision only once for a session', async () => {
|
|
1046
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
1047
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
1048
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
1049
|
-
});
|
|
1050
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1051
|
-
const firstSession = sessionManager.getCurrentSession();
|
|
1052
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy);
|
|
1053
|
-
// Record session results and close the session
|
|
1054
|
-
await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
|
|
1055
|
-
ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
|
|
1056
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
1057
|
-
suggestions: [
|
|
1058
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
|
|
1059
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
|
|
1060
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
|
|
1061
|
-
],
|
|
1062
|
-
suggestionsStates: new Map([
|
|
1063
|
-
['cwspr-item-id-1', 'Reject'],
|
|
1064
|
-
['cwspr-item-id-2', 'Reject'],
|
|
1065
|
-
['cwspr-item-id-3', 'Reject'],
|
|
1066
|
-
]),
|
|
1067
|
-
responseContext: {
|
|
1068
|
-
requestId: 'cwspr-request-id',
|
|
1069
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
1070
|
-
},
|
|
1071
|
-
completionSessionResult: {
|
|
1072
|
-
'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
|
|
1073
|
-
'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
|
|
1074
|
-
'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
|
|
1075
|
-
},
|
|
1076
|
-
}), 0);
|
|
1077
|
-
assert.equal(firstSession?.state, 'CLOSED');
|
|
1078
|
-
telemetryServiceSpy.resetHistory();
|
|
1079
|
-
// Triggering new completion request creates new session
|
|
1080
|
-
// and should not emit telemetry for previous session, which was closed earlier
|
|
1081
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, {
|
|
1082
|
-
...EXPECTED_RESPONSE_CONTEXT,
|
|
1083
|
-
codewhispererSessionId: 'cwspr-session-id-2',
|
|
1084
|
-
});
|
|
1085
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1086
|
-
// Or attempt to record data
|
|
1087
|
-
await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
|
|
1088
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
|
|
1089
|
-
codewhispererSessionId: 'cwspr-session-id-1',
|
|
1090
|
-
}, 0);
|
|
1091
|
-
});
|
|
1092
|
-
});
|
|
1093
|
-
describe('User Decision Telemetry', () => {
|
|
1094
|
-
const HELLO_WORLD_IN_CSHARP = `class HelloWorld
|
|
1095
|
-
{
|
|
1096
|
-
static void Main()
|
|
1097
|
-
{
|
|
1098
|
-
Console.WriteLine("Hello World!");
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
`;
|
|
1102
|
-
const AUTO_TRIGGER_POSITION = { line: 2, character: 21 };
|
|
1103
|
-
const SOME_FILE = vscode_languageserver_textdocument_1.TextDocument.create('file:///test.cs', 'csharp', 1, HELLO_WORLD_IN_CSHARP);
|
|
1104
|
-
const SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = vscode_languageserver_textdocument_1.TextDocument.create(
|
|
1105
|
-
// Use unsupported extension, so that we can test that we get a match based on the LanguageId
|
|
1106
|
-
'file:///test.seesharp', 'CSharp', 1, HELLO_WORLD_IN_CSHARP);
|
|
1107
|
-
const REFERENCE = [
|
|
1108
|
-
{
|
|
1109
|
-
licenseName: 'test license 1',
|
|
1110
|
-
repository: 'test repository 1',
|
|
1111
|
-
url: 'test url 1',
|
|
1112
|
-
recommendationContentSpan: { start: 0, end: 1 },
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
licenseName: 'test license 2',
|
|
1116
|
-
repository: 'test repository 2',
|
|
1117
|
-
url: 'test url 2',
|
|
1118
|
-
recommendationContentSpan: { start: 0, end: 1 },
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
licenseName: 'test license 1',
|
|
1122
|
-
repository: 'test repository 3',
|
|
1123
|
-
url: 'test url 3',
|
|
1124
|
-
recommendationContentSpan: { start: 0, end: 1 },
|
|
1125
|
-
},
|
|
1126
|
-
];
|
|
1127
|
-
const DEFAULT_SUGGESTIONS = [
|
|
1128
|
-
{ itemId: 'cwspr-item-id-1', content: 'recommendation' },
|
|
1129
|
-
{ itemId: 'cwspr-item-id-2', content: 'recommendation' },
|
|
1130
|
-
{ itemId: 'cwspr-item-id-3', content: 'recommendation' },
|
|
1131
|
-
];
|
|
1132
|
-
const EXPECTED_RESPONSE_CONTEXT = {
|
|
1133
|
-
requestId: 'cwspr-request-id',
|
|
1134
|
-
codewhispererSessionId: 'cwspr-session-id',
|
|
1135
|
-
};
|
|
1136
|
-
let features;
|
|
1137
|
-
let server;
|
|
1138
|
-
// TODO move more of the service code out of the stub and into the testable realm
|
|
1139
|
-
// See: https://aws.amazon.com/blogs/developer/mocking-modular-aws-sdk-for-javascript-v3-in-unit-tests/
|
|
1140
|
-
// for examples on how to mock just the SDK client
|
|
1141
|
-
let service;
|
|
1142
|
-
const setServiceResponse = (suggestions, responseContext, time = 2000) => {
|
|
1143
|
-
service.generateSuggestions.callsFake(_request => {
|
|
1144
|
-
clock.tick(time);
|
|
1145
|
-
return Promise.resolve({
|
|
1146
|
-
suggestions,
|
|
1147
|
-
responseContext,
|
|
1148
|
-
});
|
|
1149
|
-
});
|
|
1150
|
-
};
|
|
1151
|
-
const autoTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
|
|
1152
|
-
textDocument: { uri: SOME_FILE.uri },
|
|
1153
|
-
position: AUTO_TRIGGER_POSITION,
|
|
1154
|
-
context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Automatic },
|
|
1155
|
-
}, server_interface_1.CancellationToken.None);
|
|
1156
|
-
beforeEach(async () => {
|
|
1157
|
-
// Set up the server with a mock service, returning predefined recommendations
|
|
1158
|
-
service = (0, ts_sinon_1.stubInterface)();
|
|
1159
|
-
setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
1160
|
-
server = (0, codeWhispererServer_1.CodewhispererServerFactory)(_auth => service);
|
|
1161
|
-
// Initialize the features, but don't start server yet
|
|
1162
|
-
features = new testing_1.TestFeatures();
|
|
1163
|
-
features.lsp.workspace.getConfiguration.returns(Promise.resolve({ includeSuggestionsWithCodeReferences: true }));
|
|
1164
|
-
// Return credentialsStartUrl value
|
|
1165
|
-
features.credentialsProvider.getConnectionMetadata.returns({
|
|
1166
|
-
sso: {
|
|
1167
|
-
startUrl: 'teststarturl',
|
|
1168
|
-
},
|
|
1169
|
-
});
|
|
1170
|
-
// Start the server and open a document
|
|
1171
|
-
await features.start(server);
|
|
1172
|
-
features.openDocument(SOME_FILE).openDocument(SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID);
|
|
1173
|
-
});
|
|
1174
|
-
const aUserDecision = (override = {}) => {
|
|
1175
|
-
return {
|
|
1176
|
-
name: 'codewhisperer_userDecision',
|
|
1177
|
-
data: {
|
|
1178
|
-
codewhispererRequestId: 'cwspr-request-id',
|
|
1179
|
-
codewhispererSessionId: 'cwspr-session-id',
|
|
1180
|
-
credentialStartUrl: 'teststarturl',
|
|
1181
|
-
codewhispererCompletionType: 'Line',
|
|
1182
|
-
codewhispererLanguage: 'csharp',
|
|
1183
|
-
codewhispererTriggerType: 'AutoTrigger',
|
|
1184
|
-
codewhispererSuggestionIndex: 0,
|
|
1185
|
-
codewhispererSuggestionState: 'Discard',
|
|
1186
|
-
codewhispererSuggestionReferences: ['MIT'],
|
|
1187
|
-
codewhispererSuggestionReferenceCount: 1,
|
|
1188
|
-
...override,
|
|
1189
|
-
},
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
it('should send correct empty reference when suggestion does not have any', async () => {
|
|
1193
|
-
const SESSION_RESULT_DATA = {
|
|
1194
|
-
sessionId: 'some-random-session-uuid-0',
|
|
1195
|
-
completionSessionResult: {
|
|
1196
|
-
'cwspr-item-id-1': {
|
|
1197
|
-
accepted: true, // 'Accept'
|
|
1198
|
-
seen: true,
|
|
1199
|
-
discarded: false,
|
|
1200
|
-
},
|
|
1201
|
-
},
|
|
1202
|
-
};
|
|
1203
|
-
const SUGGESTIONS = [
|
|
1204
|
-
{
|
|
1205
|
-
itemId: 'cwspr-item-id-1',
|
|
1206
|
-
content: 'recommendation with reference',
|
|
1207
|
-
references: undefined,
|
|
1208
|
-
},
|
|
1209
|
-
];
|
|
1210
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
1211
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1212
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
|
|
1213
|
-
name: 'codewhisperer_userDecision',
|
|
1214
|
-
});
|
|
1215
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
1216
|
-
const expectedUserDecisionMetric = aUserDecision({
|
|
1217
|
-
codewhispererSuggestionIndex: 0,
|
|
1218
|
-
codewhispererSuggestionState: 'Accept',
|
|
1219
|
-
codewhispererSuggestionReferences: [],
|
|
1220
|
-
codewhispererSuggestionReferenceCount: 0,
|
|
1221
|
-
});
|
|
1222
|
-
ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
|
|
1223
|
-
});
|
|
1224
|
-
it('should send correct reference when suggestion has any', async () => {
|
|
1225
|
-
const SESSION_RESULT_DATA = {
|
|
1226
|
-
sessionId: 'some-random-session-uuid-0',
|
|
1227
|
-
completionSessionResult: {
|
|
1228
|
-
'cwspr-item-id-1-y': {
|
|
1229
|
-
accepted: true, // 'Accept'
|
|
1230
|
-
seen: true,
|
|
1231
|
-
discarded: false,
|
|
1232
|
-
},
|
|
1233
|
-
},
|
|
1234
|
-
};
|
|
1235
|
-
const SUGGESTIONS = [
|
|
1236
|
-
{
|
|
1237
|
-
itemId: 'cwspr-item-id-1-y',
|
|
1238
|
-
content: 'recommendation with reference',
|
|
1239
|
-
references: [REFERENCE[0]],
|
|
1240
|
-
},
|
|
1241
|
-
];
|
|
1242
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
1243
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1244
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
|
|
1245
|
-
name: 'codewhisperer_userDecision',
|
|
1246
|
-
});
|
|
1247
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
1248
|
-
const expectedUserDecisionMetric = aUserDecision({
|
|
1249
|
-
codewhispererSuggestionIndex: 0,
|
|
1250
|
-
codewhispererSuggestionState: 'Accept',
|
|
1251
|
-
codewhispererSuggestionReferences: ['test license 1'],
|
|
1252
|
-
codewhispererSuggestionReferenceCount: 1,
|
|
1253
|
-
});
|
|
1254
|
-
ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
|
|
1255
|
-
});
|
|
1256
|
-
it('should send unique licenses when suggestion has any that overlaps', async () => {
|
|
1257
|
-
const SESSION_RESULT_DATA = {
|
|
1258
|
-
sessionId: 'some-random-session-uuid-0',
|
|
1259
|
-
completionSessionResult: {
|
|
1260
|
-
'cwspr-item-id-1': {
|
|
1261
|
-
accepted: true, // 'Accept'
|
|
1262
|
-
seen: true,
|
|
1263
|
-
discarded: false,
|
|
1264
|
-
},
|
|
1265
|
-
},
|
|
1266
|
-
};
|
|
1267
|
-
const SUGGESTIONS = [
|
|
1268
|
-
{
|
|
1269
|
-
itemId: 'cwspr-item-id-1',
|
|
1270
|
-
content: 'recommendation with reference',
|
|
1271
|
-
references: REFERENCE,
|
|
1272
|
-
},
|
|
1273
|
-
];
|
|
1274
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
1275
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1276
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
|
|
1277
|
-
name: 'codewhisperer_userDecision',
|
|
1278
|
-
});
|
|
1279
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
1280
|
-
const expectedUserDecisionMetric = aUserDecision({
|
|
1281
|
-
codewhispererSuggestionIndex: 0,
|
|
1282
|
-
codewhispererSuggestionState: 'Accept',
|
|
1283
|
-
codewhispererSuggestionReferences: ['test license 1', 'test license 2'],
|
|
1284
|
-
codewhispererSuggestionReferenceCount: 3,
|
|
1285
|
-
});
|
|
1286
|
-
ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
|
|
1287
|
-
});
|
|
1288
|
-
it('should send multiple metrics on all suggestions returned', async () => {
|
|
1289
|
-
const SESSION_RESULT_DATA = {
|
|
1290
|
-
sessionId: 'some-random-session-uuid-0',
|
|
1291
|
-
completionSessionResult: {
|
|
1292
|
-
'cwspr-item-id-1': {
|
|
1293
|
-
accepted: true, // 'Accept'
|
|
1294
|
-
seen: true,
|
|
1295
|
-
discarded: false,
|
|
1296
|
-
},
|
|
1297
|
-
'cwspr-item-id-2': {
|
|
1298
|
-
accepted: false, // Discard
|
|
1299
|
-
seen: false,
|
|
1300
|
-
discarded: true,
|
|
1301
|
-
},
|
|
1302
|
-
'cwspr-item-id-3': {
|
|
1303
|
-
accepted: false, // 'Unseen'
|
|
1304
|
-
seen: false,
|
|
1305
|
-
discarded: false,
|
|
1306
|
-
},
|
|
1307
|
-
},
|
|
1308
|
-
};
|
|
1309
|
-
const SUGGESTIONS = [
|
|
1310
|
-
{
|
|
1311
|
-
itemId: 'cwspr-item-id-1',
|
|
1312
|
-
content: 'recommendation with reference',
|
|
1313
|
-
references: REFERENCE,
|
|
1314
|
-
},
|
|
1315
|
-
{
|
|
1316
|
-
itemId: 'cwspr-item-id-2',
|
|
1317
|
-
content: 'recommendation with reference',
|
|
1318
|
-
references: REFERENCE,
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
itemId: 'cwspr-item-id-3',
|
|
1322
|
-
content: 'recommendation with reference',
|
|
1323
|
-
references: REFERENCE,
|
|
1324
|
-
},
|
|
1325
|
-
];
|
|
1326
|
-
setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
|
|
1327
|
-
await autoTriggerInlineCompletionWithReferences();
|
|
1328
|
-
ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
|
|
1329
|
-
name: 'codewhisperer_userDecision',
|
|
1330
|
-
});
|
|
1331
|
-
await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
|
|
1332
|
-
const expectedStates = ['Accept', 'Discard', 'Unseen'];
|
|
1333
|
-
const expectedUserDecisionMetrics = new Array();
|
|
1334
|
-
SUGGESTIONS.forEach((_, i) => {
|
|
1335
|
-
expectedUserDecisionMetrics.push(aUserDecision({
|
|
1336
|
-
codewhispererSuggestionIndex: i,
|
|
1337
|
-
codewhispererSuggestionState: expectedStates[i],
|
|
1338
|
-
codewhispererSuggestionReferences: ['test license 1', 'test license 2'],
|
|
1339
|
-
codewhispererSuggestionReferenceCount: 3,
|
|
1340
|
-
}));
|
|
1341
|
-
});
|
|
1342
|
-
expectedUserDecisionMetrics.forEach(metric => {
|
|
1343
|
-
ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, metric);
|
|
1344
|
-
});
|
|
1345
|
-
});
|
|
1346
|
-
});
|
|
1347
|
-
});
|
|
1348
|
-
//# sourceMappingURL=userTriggerDecision.test.js.map
|