@aws/lsp-codewhisperer 0.0.32 → 0.0.34
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 +233 -0
- package/README.md +18 -1
- package/node_modules/@amzn/amazon-q-developer-streaming-client/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +864 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreaming.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +49 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthSchemeProvider.js +50 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +26 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +26 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +211 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/extensionConfiguration.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/index.js +10 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/QDeveloperStreamingServiceException.js +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/index.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +1051 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +597 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.browser.js +40 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.js +48 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +32 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeExtensions.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreaming.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthSchemeProvider.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/index.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +207 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/QDeveloperStreamingServiceException.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/index.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +963 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +590 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.browser.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreaming.d.ts +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +196 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +102 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +796 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/QDeveloperStreamingServiceException.d.ts +14 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/index.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +2985 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/protocols/Aws_json1_0.d.ts +20 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +46 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/README.md +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-cjs/index.js +294 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/auth.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/checksum.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/client.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/command.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/connection.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/credentials.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/crypto.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/dns.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/encode.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/eventStream.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/extensions/index.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/http.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/index.js +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/index.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/logger.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/middleware.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/pagination.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/profile.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/request.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/response.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/retry.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/serde.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/shapes.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/signature.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/stream.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/token.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/util.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/waiter.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +50 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/dns.d.ts +85 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/http.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/index.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/logger.d.ts +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/request.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/response.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/serde.d.ts +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/token.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +14 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/package.json +56 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/README.md +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/index.js +84 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller}/package.json +21 -31
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/LICENSE +201 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/README.md +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/index.js +806 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +209 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +167 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +88 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +56 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +62 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +46 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +62 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +6 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/package.json +67 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CHANGELOG.md +274 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/README.md +466 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng-browser.js +25 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/stringify.js +44 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v35.js +80 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v4.js +43 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/package.json +135 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +88 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +121 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +266 -42
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +205 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/endpoints.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +241 -33
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +207 -5
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +2 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +9 -7
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +168 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +169 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +168 -8
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +874 -221
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +25 -17
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +12 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +6 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +6 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +4 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +8 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +6 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +5 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/package.json +11 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +12 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +21 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +6 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -39
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +3 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +10 -10
- package/node_modules/@amzn/codewhisperer-streaming/package.json +42 -42
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-cjs/index.js +8 -30
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +1 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpRequest.js +8 -13
- package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -0
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +23 -0
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +23 -0
- package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/package.json +6 -6
- package/out/client/sigv4/codewhisperer.d.ts +2 -2
- package/out/client/sigv4/codewhisperer.js +4 -3
- package/out/client/sigv4/codewhisperer.js.map +1 -1
- package/out/client/streamingClient/codewhispererStreamingClient.d.ts +3 -3
- package/out/client/streamingClient/codewhispererStreamingClient.js +4 -3
- package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
- package/out/client/token/codewhisperer.d.ts +2 -2
- package/out/client/token/codewhisperer.js +4 -3
- package/out/client/token/codewhisperer.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +4 -1
- package/out/index.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatController.d.ts +35 -4
- package/out/language-server/agenticChat/agenticChatController.js +1341 -91
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatEventParser.d.ts +52 -0
- package/out/language-server/agenticChat/agenticChatEventParser.js +189 -0
- package/out/language-server/agenticChat/agenticChatEventParser.js.map +1 -0
- package/out/language-server/agenticChat/agenticChatResultStream.d.ts +83 -0
- package/out/language-server/agenticChat/agenticChatResultStream.js +176 -0
- package/out/language-server/agenticChat/agenticChatResultStream.js.map +1 -0
- package/out/language-server/agenticChat/constants.d.ts +4 -0
- package/out/language-server/agenticChat/constants.js +8 -0
- package/out/language-server/agenticChat/constants.js.map +1 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +14 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.js +191 -0
- package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +54 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +246 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.d.ts +20 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.js +206 -0
- package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -0
- package/out/language-server/agenticChat/context/contextUtils.d.ts +27 -0
- package/out/language-server/agenticChat/context/contextUtils.js +44 -0
- package/out/language-server/agenticChat/context/contextUtils.js.map +1 -0
- package/out/language-server/agenticChat/errors.d.ts +10 -0
- package/out/language-server/agenticChat/errors.js +42 -0
- package/out/language-server/agenticChat/errors.js.map +1 -0
- package/out/language-server/agenticChat/qAgenticChatServer.js +42 -15
- package/out/language-server/agenticChat/qAgenticChatServer.js.map +1 -1
- package/out/language-server/agenticChat/tabBarController.d.ts +55 -0
- package/out/language-server/agenticChat/tabBarController.js +216 -0
- package/out/language-server/agenticChat/tabBarController.js.map +1 -0
- package/out/language-server/agenticChat/textFormatting.d.ts +4 -0
- package/out/language-server/agenticChat/textFormatting.js +28 -0
- package/out/language-server/agenticChat/textFormatting.js.map +1 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +89 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js +561 -0
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -0
- package/out/language-server/agenticChat/tools/chatDb/util.d.ts +74 -0
- package/out/language-server/agenticChat/tools/chatDb/util.js +255 -0
- package/out/language-server/agenticChat/tools/chatDb/util.js.map +1 -0
- package/out/language-server/agenticChat/tools/codeSearch.d.ts +43 -0
- package/out/language-server/agenticChat/tools/codeSearch.js +168 -0
- package/out/language-server/agenticChat/tools/codeSearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/executeBash.d.ts +70 -0
- package/out/language-server/agenticChat/tools/executeBash.js +476 -0
- package/out/language-server/agenticChat/tools/executeBash.js.map +1 -0
- package/out/language-server/agenticChat/tools/fileSearch.d.ts +45 -0
- package/out/language-server/agenticChat/tools/fileSearch.js +115 -0
- package/out/language-server/agenticChat/tools/fileSearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/fsRead.d.ts +13 -9
- package/out/language-server/agenticChat/tools/fsRead.js +68 -22
- package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.d.ts +21 -12
- package/out/language-server/agenticChat/tools/fsWrite.js +127 -44
- package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.d.ts +36 -0
- package/out/language-server/agenticChat/tools/listDirectory.js +110 -0
- package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.d.ts +100 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js +140 -0
- package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.d.ts +24 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.js +45 -0
- package/out/language-server/agenticChat/tools/lspGetDocuments.js.map +1 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.d.ts +37 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.js +116 -0
- package/out/language-server/agenticChat/tools/lspReadDocumentContents.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +21 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +106 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.d.ts +21 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.js +54 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTool.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.d.ts +28 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.js +7 -0
- package/out/language-server/agenticChat/tools/mcp/mcpTypes.js.map +1 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.d.ts +7 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.js +78 -0
- package/out/language-server/agenticChat/tools/mcp/mcpUtils.js.map +1 -0
- package/out/language-server/agenticChat/tools/toolServer.d.ts +3 -0
- package/out/language-server/agenticChat/tools/toolServer.js +62 -6
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolShared.d.ts +48 -5
- package/out/language-server/agenticChat/tools/toolShared.js +109 -2
- package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
- package/out/language-server/chat/chatController.d.ts +7 -4
- package/out/language-server/chat/chatController.js +13 -18
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatEventParser.d.ts +3 -1
- package/out/language-server/chat/chatEventParser.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.d.ts +2 -2
- package/out/language-server/chat/chatSessionManagementService.js +4 -4
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +36 -3
- package/out/language-server/chat/chatSessionService.js +88 -5
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/constants.d.ts +3 -0
- package/out/language-server/chat/constants.js +17 -1
- package/out/language-server/chat/constants.js.map +1 -1
- package/out/language-server/chat/contexts/documentContext.d.ts +2 -1
- package/out/language-server/chat/contexts/documentContext.js +2 -0
- package/out/language-server/chat/contexts/documentContext.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.d.ts +7 -3
- package/out/language-server/chat/contexts/triggerContext.js +39 -2
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/qChatServer.d.ts +4 -1
- package/out/language-server/chat/qChatServer.js +17 -17
- package/out/language-server/chat/qChatServer.js.map +1 -1
- package/out/language-server/chat/quickActions.d.ts +2 -0
- package/out/language-server/chat/quickActions.js +2 -0
- package/out/language-server/chat/quickActions.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +5 -3
- package/out/language-server/chat/telemetry/chatTelemetryController.js +50 -4
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/chat/tools/relevantTextDocuments.d.ts +3 -0
- package/out/language-server/chat/tools/relevantTextDocuments.js +42 -0
- package/out/language-server/chat/tools/relevantTextDocuments.js.map +1 -0
- package/out/language-server/chat/utils.js +18 -3
- package/out/language-server/chat/utils.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +2 -3
- package/out/language-server/configuration/qConfigurationServer.js +27 -20
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/inline-completion/auto-trigger/coefficients.json +4 -1
- package/out/language-server/inline-completion/codeWhispererServer.d.ts +2 -3
- package/out/language-server/inline-completion/codeWhispererServer.js +29 -30
- package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
- package/out/language-server/localProjectContext/localProjectContextServer.d.ts +2 -0
- package/out/language-server/localProjectContext/localProjectContextServer.js +132 -0
- package/out/language-server/localProjectContext/localProjectContextServer.js.map +1 -0
- package/out/language-server/netTransform/artifactManager.js +12 -4
- package/out/language-server/netTransform/artifactManager.js.map +1 -1
- package/out/language-server/netTransform/metrics.d.ts +2 -0
- package/out/language-server/netTransform/metrics.js +26 -1
- package/out/language-server/netTransform/metrics.js.map +1 -1
- package/out/language-server/netTransform/models.d.ts +22 -0
- package/out/language-server/netTransform/models.js +12 -1
- package/out/language-server/netTransform/models.js.map +1 -1
- package/out/language-server/netTransform/netTransformServer.d.ts +2 -4
- package/out/language-server/netTransform/netTransformServer.js +21 -16
- package/out/language-server/netTransform/netTransformServer.js.map +1 -1
- package/out/language-server/netTransform/tests/mockData.js +1 -0
- package/out/language-server/netTransform/tests/mockData.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +13 -5
- package/out/language-server/netTransform/transformHandler.js +45 -12
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransform/validation.d.ts +11 -0
- package/out/language-server/netTransform/validation.js +33 -0
- package/out/language-server/netTransform/validation.js.map +1 -1
- package/out/language-server/securityScan/codeWhispererSecurityScanServer.js +10 -11
- package/out/language-server/securityScan/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/securityScan/types.d.ts +2 -1
- package/out/shared/amazonQServer.d.ts +5 -0
- package/out/shared/amazonQServer.js +53 -0
- package/out/shared/amazonQServer.js.map +1 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.d.ts +19 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js +61 -0
- package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js.map +1 -0
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +14 -28
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +78 -99
- package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +72 -5
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js +116 -0
- package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -1
- package/out/shared/amazonQServiceManager/configurationUtils.d.ts +13 -1
- package/out/shared/amazonQServiceManager/configurationUtils.js +41 -22
- package/out/shared/amazonQServiceManager/configurationUtils.js.map +1 -1
- package/out/shared/amazonQServiceManager/errors.d.ts +9 -0
- package/out/shared/amazonQServiceManager/errors.js +22 -1
- package/out/shared/amazonQServiceManager/errors.js.map +1 -1
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.d.ts +2 -1
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.js +26 -3
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.js.map +1 -1
- package/out/shared/amazonQServiceManager/testUtils.d.ts +48 -0
- package/out/shared/amazonQServiceManager/testUtils.js +112 -0
- package/out/shared/amazonQServiceManager/testUtils.js.map +1 -0
- package/out/shared/codeWhispererService.d.ts +3 -3
- package/out/shared/codeWhispererService.js +4 -4
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/constants.d.ts +10 -0
- package/out/shared/constants.js +12 -1
- package/out/shared/constants.js.map +1 -1
- package/out/shared/initializeUtils.d.ts +3 -0
- package/out/shared/initializeUtils.js +32 -0
- package/out/shared/initializeUtils.js.map +1 -0
- package/out/shared/localProjectContextController.d.ts +56 -0
- package/out/shared/localProjectContextController.js +371 -0
- package/out/shared/localProjectContextController.js.map +1 -0
- package/out/shared/models/constants.d.ts +5 -0
- package/out/shared/models/constants.js +6 -1
- package/out/shared/models/constants.js.map +1 -1
- package/out/shared/models/model.d.ts +2 -1
- package/out/shared/proxy-server.d.ts +4 -2
- package/out/shared/proxy-server.js +11 -10
- package/out/shared/proxy-server.js.map +1 -1
- package/out/shared/streamingClientService.d.ts +23 -7
- package/out/shared/streamingClientService.js +56 -9
- package/out/shared/streamingClientService.js.map +1 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +4 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js +73 -17
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +8 -0
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js +63 -2
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
- package/out/shared/telemetry/telemetryService.d.ts +16 -2
- package/out/shared/telemetry/telemetryService.js +26 -3
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/telemetry/types.d.ts +37 -2
- package/out/shared/telemetry/types.js +2 -0
- package/out/shared/telemetry/types.js.map +1 -1
- package/out/shared/telemetryUtils.d.ts +1 -0
- package/out/shared/telemetryUtils.js +5 -3
- package/out/shared/telemetryUtils.js.map +1 -1
- package/out/shared/testUtils.d.ts +2 -1
- package/out/shared/testUtils.js +10 -1
- package/out/shared/testUtils.js.map +1 -1
- package/out/shared/utils.d.ts +30 -0
- package/out/shared/utils.js +184 -0
- package/out/shared/utils.js.map +1 -1
- package/package.json +21 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -53
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -53
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -206
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -44
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -44
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -26
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -13
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -13
- package/out/shared/amazonQServiceManager/factories.d.ts +0 -15
- package/out/shared/amazonQServiceManager/factories.js +0 -47
- package/out/shared/amazonQServiceManager/factories.js.map +0 -1
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/httpHandler.js → amazon-q-developer-streaming-client/dist-es/extensionConfiguration.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types}/LICENSE +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/abort.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/constants.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector}/index.js +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
- /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/LICENSE +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/README.md +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js → @smithy/protocol-http/dist-cjs/Field.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js → @smithy/protocol-http/dist-cjs/Fields.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js → @smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Field.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Fields.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpResponse.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/isValidHostname.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Field.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Fields.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpHandler.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpResponse.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/isValidHostname.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/types.d.ts +0 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copied from chat/contexts/triggerContext.ts for the purpose of developing a divergent implementation.
|
|
4
|
+
* Will be deleted or merged.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.AgenticChatTriggerContext = exports.additionalContextMaxLength = exports.workspaceChunkMaxSize = void 0;
|
|
8
|
+
const codewhisperer_streaming_1 = require("@amzn/codewhisperer-streaming");
|
|
9
|
+
const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
|
|
10
|
+
const documentContext_1 = require("../../chat/contexts/documentContext");
|
|
11
|
+
const lsp_core_1 = require("@aws/lsp-core");
|
|
12
|
+
const vscode_uri_1 = require("vscode-uri");
|
|
13
|
+
const localProjectContextController_1 = require("../../../shared/localProjectContextController");
|
|
14
|
+
const path = require("path");
|
|
15
|
+
const languageDetection_1 = require("../../../shared/languageDetection");
|
|
16
|
+
// limit for each chunk of @workspace
|
|
17
|
+
exports.workspaceChunkMaxSize = 40_960;
|
|
18
|
+
// limit for the length of additionalContent
|
|
19
|
+
exports.additionalContextMaxLength = 100;
|
|
20
|
+
class AgenticChatTriggerContext {
|
|
21
|
+
static DEFAULT_CURSOR_STATE = { position: { line: 0, character: 0 } };
|
|
22
|
+
#workspace;
|
|
23
|
+
#lsp;
|
|
24
|
+
#logging;
|
|
25
|
+
#documentContextExtractor;
|
|
26
|
+
constructor({ workspace, lsp, logging }) {
|
|
27
|
+
this.#workspace = workspace;
|
|
28
|
+
this.#lsp = lsp;
|
|
29
|
+
this.#logging = logging;
|
|
30
|
+
this.#documentContextExtractor = new documentContext_1.DocumentContextExtractor({ logger: logging, workspace });
|
|
31
|
+
}
|
|
32
|
+
async getNewTriggerContext(params) {
|
|
33
|
+
const documentContext = await this.extractDocumentContext(params);
|
|
34
|
+
return {
|
|
35
|
+
...documentContext,
|
|
36
|
+
userIntent: undefined,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
#mapPlatformToEnvState(platform) {
|
|
40
|
+
switch (platform) {
|
|
41
|
+
case 'darwin':
|
|
42
|
+
return { operatingSystem: 'macos' };
|
|
43
|
+
case 'linux':
|
|
44
|
+
return { operatingSystem: 'linux' };
|
|
45
|
+
case 'win32':
|
|
46
|
+
case 'cygwin':
|
|
47
|
+
return { operatingSystem: 'windows' };
|
|
48
|
+
default:
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async getChatParamsFromTrigger(params, triggerContext, chatTriggerType, customizationArn, chatResultStream, profileArn, history = [], tools = [], additionalContent) {
|
|
53
|
+
const { prompt } = params;
|
|
54
|
+
const defaultEditorState = { workspaceFolders: lsp_core_1.workspaceUtils.getWorkspaceFolderPaths(this.#lsp) };
|
|
55
|
+
const hasWorkspace = 'context' in params ? params.context?.some(c => c.command === '@workspace') : false;
|
|
56
|
+
let promptContent = prompt.escapedPrompt ?? prompt.prompt;
|
|
57
|
+
// When the user adds @sage context, ** gets prepended and appended to the prompt because of markdown.
|
|
58
|
+
// This intereferes with routing logic thus we need to remove it
|
|
59
|
+
if (promptContent && promptContent.includes('@sage')) {
|
|
60
|
+
promptContent = promptContent.replace(/\*\*@sage\*\*/g, '@sage');
|
|
61
|
+
}
|
|
62
|
+
if (hasWorkspace) {
|
|
63
|
+
promptContent = promptContent?.replace(/^@workspace\/?/, '');
|
|
64
|
+
}
|
|
65
|
+
// Get workspace documents if @workspace is used
|
|
66
|
+
let relevantDocuments = hasWorkspace
|
|
67
|
+
? await this.#getRelevantDocuments(promptContent ?? '', chatResultStream)
|
|
68
|
+
: [];
|
|
69
|
+
// Process additionalContent items if present
|
|
70
|
+
if (additionalContent) {
|
|
71
|
+
for (const item of additionalContent) {
|
|
72
|
+
// Determine programming language from file extension or type
|
|
73
|
+
let programmingLanguage = undefined;
|
|
74
|
+
if (item.relativePath) {
|
|
75
|
+
const ext = path.extname(item.relativePath).toLowerCase();
|
|
76
|
+
const language = languageDetection_1.languageByExtension[ext];
|
|
77
|
+
if (language) {
|
|
78
|
+
programmingLanguage = { languageName: language };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const filteredType = item.type === 'file'
|
|
82
|
+
? codewhisperer_streaming_1.ContentType.FILE
|
|
83
|
+
: item.type === 'rule' || item.type === 'prompt'
|
|
84
|
+
? codewhisperer_streaming_1.ContentType.PROMPT
|
|
85
|
+
: item.type === 'code'
|
|
86
|
+
? codewhisperer_streaming_1.ContentType.CODE
|
|
87
|
+
: undefined;
|
|
88
|
+
// Create the relevant text document
|
|
89
|
+
const relevantTextDocument = {
|
|
90
|
+
text: item.innerContext,
|
|
91
|
+
relativeFilePath: item.path,
|
|
92
|
+
programmingLanguage: programmingLanguage,
|
|
93
|
+
type: filteredType,
|
|
94
|
+
startLine: item.startLine || -1,
|
|
95
|
+
endLine: item.endLine || -1,
|
|
96
|
+
};
|
|
97
|
+
relevantDocuments.push(relevantTextDocument);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const useRelevantDocuments = relevantDocuments.length !== 0;
|
|
101
|
+
const data = {
|
|
102
|
+
conversationState: {
|
|
103
|
+
chatTriggerType: chatTriggerType,
|
|
104
|
+
currentMessage: {
|
|
105
|
+
userInputMessage: {
|
|
106
|
+
content: promptContent,
|
|
107
|
+
userInputMessageContext: triggerContext.cursorState && triggerContext.relativeFilePath
|
|
108
|
+
? {
|
|
109
|
+
editorState: {
|
|
110
|
+
cursorState: triggerContext.cursorState,
|
|
111
|
+
document: {
|
|
112
|
+
text: triggerContext.text,
|
|
113
|
+
programmingLanguage: triggerContext.programmingLanguage,
|
|
114
|
+
relativeFilePath: triggerContext.relativeFilePath,
|
|
115
|
+
},
|
|
116
|
+
relevantDocuments: useRelevantDocuments ? relevantDocuments : undefined,
|
|
117
|
+
useRelevantDocuments: useRelevantDocuments,
|
|
118
|
+
...defaultEditorState,
|
|
119
|
+
},
|
|
120
|
+
tools,
|
|
121
|
+
envState: this.#mapPlatformToEnvState(process.platform),
|
|
122
|
+
}
|
|
123
|
+
: {
|
|
124
|
+
tools,
|
|
125
|
+
editorState: {
|
|
126
|
+
relevantDocuments: useRelevantDocuments ? relevantDocuments : undefined,
|
|
127
|
+
useRelevantDocuments: useRelevantDocuments,
|
|
128
|
+
...defaultEditorState,
|
|
129
|
+
},
|
|
130
|
+
envState: this.#mapPlatformToEnvState(process.platform),
|
|
131
|
+
},
|
|
132
|
+
userIntent: triggerContext.userIntent,
|
|
133
|
+
origin: 'IDE',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
customizationArn,
|
|
137
|
+
history,
|
|
138
|
+
},
|
|
139
|
+
profileArn,
|
|
140
|
+
};
|
|
141
|
+
return data;
|
|
142
|
+
}
|
|
143
|
+
// public for testing
|
|
144
|
+
async extractDocumentContext(input) {
|
|
145
|
+
const { textDocument: textDocumentIdentifier, cursorState } = input;
|
|
146
|
+
if (textDocumentIdentifier?.uri === undefined) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const textDocument = await this.getTextDocument(textDocumentIdentifier.uri);
|
|
150
|
+
return textDocument
|
|
151
|
+
? this.#documentContextExtractor.extractDocumentContext(textDocument,
|
|
152
|
+
// we want to include a default position if a text document is found so users can still ask questions about the opened file
|
|
153
|
+
// the range will be expanded up to the max characters downstream
|
|
154
|
+
cursorState?.[0] ?? AgenticChatTriggerContext.DEFAULT_CURSOR_STATE)
|
|
155
|
+
: undefined;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Fetch the current textDocument such that:
|
|
159
|
+
* 1. If the document is synced with LSP, return the synced textDocument
|
|
160
|
+
* 2. If the document is not synced with LSP, read the file from the file system
|
|
161
|
+
* 3. If the file cannot be read, return undefined
|
|
162
|
+
* @param uri
|
|
163
|
+
* @returns
|
|
164
|
+
*/
|
|
165
|
+
async getTextDocument(uri) {
|
|
166
|
+
// Note: version is unused, and languageId can be determined from file extension.
|
|
167
|
+
const syncedTextDocument = await this.#workspace.getTextDocument(uri);
|
|
168
|
+
if (syncedTextDocument) {
|
|
169
|
+
return syncedTextDocument;
|
|
170
|
+
}
|
|
171
|
+
try {
|
|
172
|
+
const content = await this.#workspace.fs.readFile(vscode_uri_1.URI.parse(uri).fsPath);
|
|
173
|
+
return server_interface_1.TextDocument.create(uri, '', 0, content);
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async #getRelevantDocuments(prompt, chatResultStream) {
|
|
180
|
+
const localProjectContextController = await localProjectContextController_1.LocalProjectContextController.getInstance();
|
|
181
|
+
if (!localProjectContextController.isEnabled && chatResultStream) {
|
|
182
|
+
await chatResultStream.writeResultBlock({
|
|
183
|
+
body: `To add your workspace as context, enable local indexing in your IDE settings. After enabling, add @workspace to your question, and I'll generate a response using your workspace as context.`,
|
|
184
|
+
buttons: [
|
|
185
|
+
{
|
|
186
|
+
id: server_interface_1.OPEN_WORKSPACE_INDEX_SETTINGS_BUTTON_ID,
|
|
187
|
+
text: 'Open settings',
|
|
188
|
+
icon: 'external',
|
|
189
|
+
keepCardAfterClick: false,
|
|
190
|
+
status: 'info',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
});
|
|
194
|
+
return [];
|
|
195
|
+
}
|
|
196
|
+
let relevantTextDocuments = await this.#queryRelevantDocuments(prompt, localProjectContextController);
|
|
197
|
+
relevantTextDocuments = relevantTextDocuments.filter(doc => doc.text && doc.text.length > 0);
|
|
198
|
+
for (const relevantDocument of relevantTextDocuments) {
|
|
199
|
+
if (relevantDocument.text && relevantDocument.text.length > exports.workspaceChunkMaxSize) {
|
|
200
|
+
relevantDocument.text = relevantDocument.text.substring(0, exports.workspaceChunkMaxSize);
|
|
201
|
+
this.#logging.debug(`Truncating @workspace chunk: ${relevantDocument.relativeFilePath} `);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return relevantTextDocuments;
|
|
205
|
+
}
|
|
206
|
+
async #queryRelevantDocuments(prompt, localProjectContextController) {
|
|
207
|
+
try {
|
|
208
|
+
const chunks = await localProjectContextController.queryVectorIndex({ query: prompt });
|
|
209
|
+
const relevantTextDocuments = [];
|
|
210
|
+
if (!chunks) {
|
|
211
|
+
return relevantTextDocuments;
|
|
212
|
+
}
|
|
213
|
+
for (const chunk of chunks) {
|
|
214
|
+
const text = chunk.context ?? chunk.content;
|
|
215
|
+
const baseDocument = {
|
|
216
|
+
text,
|
|
217
|
+
relativeFilePath: chunk.relativePath ?? path.basename(chunk.filePath),
|
|
218
|
+
startLine: chunk.startLine ?? -1,
|
|
219
|
+
endLine: chunk.endLine ?? -1,
|
|
220
|
+
};
|
|
221
|
+
if (chunk.programmingLanguage && chunk.programmingLanguage !== 'unknown') {
|
|
222
|
+
relevantTextDocuments.push({
|
|
223
|
+
...baseDocument,
|
|
224
|
+
programmingLanguage: {
|
|
225
|
+
languageName: chunk.programmingLanguage,
|
|
226
|
+
},
|
|
227
|
+
type: codewhisperer_streaming_1.ContentType.WORKSPACE,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
relevantTextDocuments.push({
|
|
232
|
+
...baseDocument,
|
|
233
|
+
type: codewhisperer_streaming_1.ContentType.WORKSPACE,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return relevantTextDocuments;
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
this.#logging.error(`Error querying query vector index to get relevant documents: ${e}`);
|
|
241
|
+
return [];
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.AgenticChatTriggerContext = AgenticChatTriggerContext;
|
|
246
|
+
//# sourceMappingURL=agenticChatTriggerContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenticChatTriggerContext.js","sourceRoot":"","sources":["../../../../src/language-server/agenticChat/context/agenticChatTriggerContext.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,2EASsC;AACtC,qFAQuD;AAEvD,yEAA+F;AAC/F,4CAA8C;AAC9C,2CAAgC;AAChC,iGAA6F;AAC7F,6BAA4B;AAE5B,yEAAuE;AAoBvE,qCAAqC;AACxB,QAAA,qBAAqB,GAAG,MAAM,CAAA;AAE3C,4CAA4C;AAC/B,QAAA,0BAA0B,GAAG,GAAG,CAAA;AAO7C,MAAa,yBAAyB;IAC1B,MAAM,CAAU,oBAAoB,GAAgB,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAA;IAEnG,UAAU,CAAuB;IACjC,IAAI,CAAiB;IACrB,QAAQ,CAAqB;IAC7B,yBAAyB,CAA0B;IAEnD,YAAY,EAAE,SAAS,E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AAI,EAAE,qCAAW,CAAC,SAAS;qBAC9B,CAAC,CAAA;gBACN,CAAC;YACL,CAAC;YAED,OAAO,qBAAqB,CAAA;QAChC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,gEAAgE,CAAC,EAAE,CAAC,CAAA;YACxF,OAAO,EAAE,CAAA;QACb,CAAC;IACL,CAAC;;AA9QL,8DA+QC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ContextCommand, ContextCommandGroup } from '@aws/language-server-runtimes/protocol';
|
|
2
|
+
import { Disposable } from 'vscode-languageclient/node';
|
|
3
|
+
import { Chat, Logging, Lsp, Workspace } from '@aws/language-server-runtimes/server-interface';
|
|
4
|
+
import { ContextCommandItem } from 'local-indexing';
|
|
5
|
+
export declare class ContextCommandsProvider implements Disposable {
|
|
6
|
+
private readonly logging;
|
|
7
|
+
private readonly chat;
|
|
8
|
+
private readonly workspace;
|
|
9
|
+
private readonly lsp;
|
|
10
|
+
private promptFileWatcher?;
|
|
11
|
+
private cachedContextCommands?;
|
|
12
|
+
constructor(logging: Logging, chat: Chat, workspace: Workspace, lsp: Lsp);
|
|
13
|
+
updateContextCommandsOnFileChange(filePaths: string[], isAdd: boolean): Promise<void>;
|
|
14
|
+
registerPromptFileWatcher(): void;
|
|
15
|
+
getUserPromptsCommand(): Promise<ContextCommand[]>;
|
|
16
|
+
processContextCommandUpdate(items: ContextCommandItem[]): Promise<void>;
|
|
17
|
+
mapContextCommandItems(items: ContextCommandItem[]): Promise<ContextCommandGroup[]>;
|
|
18
|
+
maybeUpdateCodeSymbols(): Promise<void>;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContextCommandsProvider = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const chokidar_1 = require("chokidar");
|
|
6
|
+
const contextUtils_1 = require("./contextUtils");
|
|
7
|
+
const localProjectContextController_1 = require("../../../shared/localProjectContextController");
|
|
8
|
+
const vscode_uri_1 = require("vscode-uri");
|
|
9
|
+
class ContextCommandsProvider {
|
|
10
|
+
logging;
|
|
11
|
+
chat;
|
|
12
|
+
workspace;
|
|
13
|
+
lsp;
|
|
14
|
+
promptFileWatcher;
|
|
15
|
+
cachedContextCommands;
|
|
16
|
+
constructor(logging, chat, workspace, lsp) {
|
|
17
|
+
this.logging = logging;
|
|
18
|
+
this.chat = chat;
|
|
19
|
+
this.workspace = workspace;
|
|
20
|
+
this.lsp = lsp;
|
|
21
|
+
this.registerPromptFileWatcher();
|
|
22
|
+
this.lsp.workspace.onDidCreateFiles(async (event) => {
|
|
23
|
+
const filePaths = event.files.map(file => vscode_uri_1.URI.parse(file.uri).fsPath);
|
|
24
|
+
await this.updateContextCommandsOnFileChange(filePaths, true);
|
|
25
|
+
});
|
|
26
|
+
this.lsp.workspace.onDidDeleteFiles(async (event) => {
|
|
27
|
+
const filePaths = event.files.map(file => vscode_uri_1.URI.parse(file.uri).fsPath);
|
|
28
|
+
await this.updateContextCommandsOnFileChange(filePaths, false);
|
|
29
|
+
});
|
|
30
|
+
this.lsp.workspace.onDidRenameFiles(async (event) => {
|
|
31
|
+
const oldFiles = event.files.map(file => vscode_uri_1.URI.parse(file.oldUri).fsPath);
|
|
32
|
+
await this.updateContextCommandsOnFileChange(oldFiles, false);
|
|
33
|
+
const newFiles = event.files.map(file => vscode_uri_1.URI.parse(file.newUri).fsPath);
|
|
34
|
+
await this.updateContextCommandsOnFileChange(newFiles, true);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async updateContextCommandsOnFileChange(filePaths, isAdd) {
|
|
38
|
+
try {
|
|
39
|
+
const localProjectContextController = await localProjectContextController_1.LocalProjectContextController.getInstance();
|
|
40
|
+
const shouldUpdate = await localProjectContextController.shouldUpdateContextCommand(filePaths, isAdd);
|
|
41
|
+
if (shouldUpdate) {
|
|
42
|
+
const contextItems = await localProjectContextController.getContextCommandItems();
|
|
43
|
+
await this.processContextCommandUpdate(contextItems);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
this.logging.error(`Error updating context commands on file change: ${error}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
registerPromptFileWatcher() {
|
|
51
|
+
this.promptFileWatcher = (0, chokidar_1.watch)((0, contextUtils_1.getUserPromptsDirectory)(), {
|
|
52
|
+
persistent: true,
|
|
53
|
+
interval: 2000,
|
|
54
|
+
ignoreInitial: true,
|
|
55
|
+
});
|
|
56
|
+
this.promptFileWatcher.on('add', async () => {
|
|
57
|
+
await this.processContextCommandUpdate(this.cachedContextCommands ?? []);
|
|
58
|
+
});
|
|
59
|
+
this.promptFileWatcher.on('unlink', async () => {
|
|
60
|
+
await this.processContextCommandUpdate(this.cachedContextCommands ?? []);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async getUserPromptsCommand() {
|
|
64
|
+
const createPromptCommand = {
|
|
65
|
+
command: 'Create a new prompt',
|
|
66
|
+
id: 'create-saved-prompt',
|
|
67
|
+
icon: 'list-add',
|
|
68
|
+
};
|
|
69
|
+
try {
|
|
70
|
+
const userPromptsDirectory = (0, contextUtils_1.getUserPromptsDirectory)();
|
|
71
|
+
const directoryExists = await this.workspace.fs.exists(userPromptsDirectory);
|
|
72
|
+
if (directoryExists) {
|
|
73
|
+
const files = await this.workspace.fs.readdir(userPromptsDirectory);
|
|
74
|
+
const systemPromptFiles = files.filter(file => file.name.endsWith(contextUtils_1.promptFileExtension));
|
|
75
|
+
const promptCommands = systemPromptFiles.map(file => ({
|
|
76
|
+
command: path.basename(file.name, contextUtils_1.promptFileExtension),
|
|
77
|
+
icon: 'magic',
|
|
78
|
+
label: 'file',
|
|
79
|
+
id: 'prompt',
|
|
80
|
+
route: [userPromptsDirectory, file.name],
|
|
81
|
+
}));
|
|
82
|
+
promptCommands.push(createPromptCommand);
|
|
83
|
+
return promptCommands;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return [createPromptCommand];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
this.logging.warn(`Error reading user prompts directory: ${e}`);
|
|
91
|
+
return [createPromptCommand];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async processContextCommandUpdate(items) {
|
|
95
|
+
const allItems = await this.mapContextCommandItems(items);
|
|
96
|
+
this.chat.sendContextCommands({ contextCommandGroups: allItems });
|
|
97
|
+
this.cachedContextCommands = items;
|
|
98
|
+
}
|
|
99
|
+
async mapContextCommandItems(items) {
|
|
100
|
+
const folderCmds = [];
|
|
101
|
+
const folderCmdGroup = {
|
|
102
|
+
command: 'Folders',
|
|
103
|
+
children: [
|
|
104
|
+
{
|
|
105
|
+
groupName: 'Folders',
|
|
106
|
+
commands: folderCmds,
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
description: 'Add all files in a folder to context',
|
|
110
|
+
icon: 'folder',
|
|
111
|
+
};
|
|
112
|
+
const fileCmds = [];
|
|
113
|
+
const fileCmdGroup = {
|
|
114
|
+
command: 'Files',
|
|
115
|
+
children: [
|
|
116
|
+
{
|
|
117
|
+
groupName: 'Files',
|
|
118
|
+
commands: fileCmds,
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
description: 'Add a file to context',
|
|
122
|
+
icon: 'file',
|
|
123
|
+
};
|
|
124
|
+
const codeCmds = [];
|
|
125
|
+
const codeCmdGroup = {
|
|
126
|
+
command: 'Code',
|
|
127
|
+
children: [
|
|
128
|
+
{
|
|
129
|
+
groupName: 'Code',
|
|
130
|
+
commands: codeCmds,
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
description: 'Add code to context',
|
|
134
|
+
icon: 'code-block',
|
|
135
|
+
};
|
|
136
|
+
const promptCmds = [];
|
|
137
|
+
const promptCmdGroup = {
|
|
138
|
+
command: 'Prompts',
|
|
139
|
+
children: [
|
|
140
|
+
{
|
|
141
|
+
groupName: 'Prompts',
|
|
142
|
+
commands: promptCmds,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
description: 'Add a saved prompt to context',
|
|
146
|
+
icon: 'magic',
|
|
147
|
+
};
|
|
148
|
+
const workspaceCmd = {
|
|
149
|
+
command: '@workspace',
|
|
150
|
+
description: 'Reference all code in workspace.',
|
|
151
|
+
};
|
|
152
|
+
const commands = [workspaceCmd, folderCmdGroup, fileCmdGroup, codeCmdGroup, promptCmdGroup];
|
|
153
|
+
const allCommands = [
|
|
154
|
+
{
|
|
155
|
+
commands: commands,
|
|
156
|
+
},
|
|
157
|
+
];
|
|
158
|
+
for (const item of items) {
|
|
159
|
+
const wsFolderName = path.basename(item.workspaceFolder);
|
|
160
|
+
let baseItem = {
|
|
161
|
+
command: path.basename(item.relativePath),
|
|
162
|
+
description: path.join(wsFolderName, item.relativePath),
|
|
163
|
+
route: [item.workspaceFolder, item.relativePath],
|
|
164
|
+
id: item.id,
|
|
165
|
+
};
|
|
166
|
+
if (item.type === 'file') {
|
|
167
|
+
fileCmds.push({
|
|
168
|
+
...baseItem,
|
|
169
|
+
label: 'file',
|
|
170
|
+
icon: 'file',
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
else if (item.type === 'folder') {
|
|
174
|
+
folderCmds.push({
|
|
175
|
+
...baseItem,
|
|
176
|
+
label: 'folder',
|
|
177
|
+
icon: 'folder',
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
else if (item.symbol) {
|
|
181
|
+
codeCmds.push({
|
|
182
|
+
...baseItem,
|
|
183
|
+
command: item.symbol.name,
|
|
184
|
+
description: `${item.symbol.kind}, ${path.join(wsFolderName, item.relativePath)}, L${item.symbol.range.start.line}-${item.symbol.range.end.line}`,
|
|
185
|
+
label: 'code',
|
|
186
|
+
icon: 'code-block',
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const userPromptsItem = await this.getUserPromptsCommand();
|
|
191
|
+
promptCmds.push(...userPromptsItem);
|
|
192
|
+
return allCommands;
|
|
193
|
+
}
|
|
194
|
+
async maybeUpdateCodeSymbols() {
|
|
195
|
+
const needUpdate = await (await localProjectContextController_1.LocalProjectContextController.getInstance()).shouldUpdateContextCommandSymbolsOnce();
|
|
196
|
+
if (needUpdate) {
|
|
197
|
+
const items = await (await localProjectContextController_1.LocalProjectContextController.getInstance()).getContextCommandItems();
|
|
198
|
+
await this.processContextCommandUpdate(items);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
dispose() {
|
|
202
|
+
void this.promptFileWatcher?.close();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.ContextCommandsProvider = ContextCommandsProvider;
|
|
206
|
+
//# sourceMappingURL=contextCommandsProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextCommandsProvider.js","sourceRoot":"","sources":["../../../../src/language-server/agenticChat/context/contextCommandsProvider.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAC5B,uCAA2C;AAU3C,iDAA6E;AAE7E,iGAA6F;AAC7F,2CAAgC;AAEhC,MAAa,uBAAuB;IAIX;IACA;IACA;IACA;IANb,iBAAiB,CAAY;IAC7B,qBAAqB,CAAuB;IACpD,YACqB,OAAgB,EAChB,IAAU,EACV,SAAoB,EACpB,GAAQ;QAHR,YAAO,GAAP,OAAO,CAAS;QAChB,SAAI,GAAJ,IAAI,CAAM;QACV,cAAS,GAAT,SAAS,CAAW;QACpB,QAAG,GAAH,GAAG,CAAK;QAEzB,IAAI,CAAC,yBAAyB,EAAE,CAAA;QAChC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YAC9C,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,gBAAG,C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,CAAC;QACL,CAAC;QACD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;QAC1D,UAAU,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAA;QACnC,OAAO,WAAW,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,sBAAsB;QACxB,MAAM,UAAU,GAAG,MAAM,CACrB,MAAM,6DAA6B,CAAC,WAAW,EAAE,CACpD,CAAC,qCAAqC,EAAE,CAAA;QACzC,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,6DAA6B,CAAC,WAAW,EAAE,CAAC,CAAC,sBAAsB,EAAE,CAAA;YAChG,MAAM,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAA;QACjD,CAAC;IACL,CAAC;IAED,OAAO;QACH,KAAK,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,CAAA;IACxC,CAAC;CACJ;AA7MD,0DA6MC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ContextInfo {
|
|
2
|
+
contextCount: {
|
|
3
|
+
fileContextCount: number;
|
|
4
|
+
folderContextCount: number;
|
|
5
|
+
promptContextCount: number;
|
|
6
|
+
ruleContextCount: number;
|
|
7
|
+
codeContextCount: number;
|
|
8
|
+
};
|
|
9
|
+
contextLength: {
|
|
10
|
+
fileContextLength: number;
|
|
11
|
+
ruleContextLength: number;
|
|
12
|
+
promptContextLength: number;
|
|
13
|
+
codeContextLength: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const initialContextInfo: ContextInfo;
|
|
17
|
+
export declare const promptFileExtension = ".md";
|
|
18
|
+
export declare const additionalContentInnerContextLimit = 8192;
|
|
19
|
+
export declare const additionalContentNameLimit = 1024;
|
|
20
|
+
export declare const getUserPromptsDirectory: () => string;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a secure file path for a new prompt file.
|
|
23
|
+
*
|
|
24
|
+
* @param promptName - The user-provided name for the prompt
|
|
25
|
+
* @returns A sanitized file path within the user prompts directory
|
|
26
|
+
*/
|
|
27
|
+
export declare const getNewPromptFilePath: (promptName: string) => string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNewPromptFilePath = exports.getUserPromptsDirectory = exports.additionalContentNameLimit = exports.additionalContentInnerContextLimit = exports.promptFileExtension = exports.initialContextInfo = void 0;
|
|
4
|
+
const path_1 = require("@aws/lsp-core/out/util/path");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const text_1 = require("@aws/lsp-core/out/util/text");
|
|
7
|
+
exports.initialContextInfo = {
|
|
8
|
+
contextCount: {
|
|
9
|
+
fileContextCount: 0,
|
|
10
|
+
folderContextCount: 0,
|
|
11
|
+
promptContextCount: 0,
|
|
12
|
+
ruleContextCount: 0,
|
|
13
|
+
codeContextCount: 0,
|
|
14
|
+
},
|
|
15
|
+
contextLength: {
|
|
16
|
+
fileContextLength: 0,
|
|
17
|
+
ruleContextLength: 0,
|
|
18
|
+
promptContextLength: 0,
|
|
19
|
+
codeContextLength: 0,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
exports.promptFileExtension = '.md';
|
|
23
|
+
exports.additionalContentInnerContextLimit = 8192;
|
|
24
|
+
exports.additionalContentNameLimit = 1024;
|
|
25
|
+
const getUserPromptsDirectory = () => {
|
|
26
|
+
return path.join((0, path_1.getUserHomeDir)(), '.aws', 'amazonq', 'prompts');
|
|
27
|
+
};
|
|
28
|
+
exports.getUserPromptsDirectory = getUserPromptsDirectory;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a secure file path for a new prompt file.
|
|
31
|
+
*
|
|
32
|
+
* @param promptName - The user-provided name for the prompt
|
|
33
|
+
* @returns A sanitized file path within the user prompts directory
|
|
34
|
+
*/
|
|
35
|
+
const getNewPromptFilePath = (promptName) => {
|
|
36
|
+
const userPromptsDirectory = (0, exports.getUserPromptsDirectory)();
|
|
37
|
+
const trimmedName = promptName?.trim() || '';
|
|
38
|
+
const truncatedName = trimmedName.slice(0, 100);
|
|
39
|
+
const safePromptName = truncatedName ? (0, text_1.sanitizeFilename)(path.basename(truncatedName)) : 'default';
|
|
40
|
+
const finalPath = path.join(userPromptsDirectory, `${safePromptName}${exports.promptFileExtension}`);
|
|
41
|
+
return finalPath;
|
|
42
|
+
};
|
|
43
|
+
exports.getNewPromptFilePath = getNewPromptFilePath;
|
|
44
|
+
//# sourceMappingURL=contextUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextUtils.js","sourceRoot":"","sources":["../../../../src/language-server/agenticChat/context/contextUtils.ts"],"names":[],"mappings":";;;AAAA,sDAA4D;AAC5D,6BAA4B;AAC5B,sDAA8D;AAkBjD,QAAA,kBAAkB,GAAgB;IAC3C,YAAY,EAAE;QACV,gBAAgB,EAAE,CAAC;QACnB,kBAAkB,EAAE,CAAC;QACrB,kBAAkB,EAAE,CAAC;QACrB,gBAAgB,EAAE,CAAC;QACnB,gBAAgB,EAAE,CAAC;KACtB;IACD,aAAa,EAAE;QACX,iBAAiB,EAAE,CAAC;QACpB,iBAAiB,EAAE,CAAC;QACpB,mBAAmB,EAAE,CAAC;QACtB,iBAAiB,EAAE,CAAC;KACvB;CACJ,CAAA;AAEY,QAAA,mBAAmB,GAAG,KAAK,CAAA;AAC3B,QAAA,kCAAkC,GAAG,IAAI,CAAA;AACzC,QAAA,0BAA0B,GAAG,IAAI,CAAA;AAEvC,MAAM,uBAAuB,GAAG,GAAW,EAAE;IAChD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAA,qBAAc,GAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAA;AACpE,CAAC,CAAA;AAFY,QAAA,uBAAuB,2BAEnC;AAED;;;;;GAKG;AACI,MAAM,oBAAoB,GAAG,CAAC,UAAkB,EAAU,EAAE;IAC/D,MAAM,oBAAoB,GAAG,IAAA,+BAAuB,GAAE,CAAA;IAEtD,MAAM,WAAW,GAAG,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IAE5C,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAE/C,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,IAAA,uBAAgB,EAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAEjG,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,cAAc,GAAG,2BAAmB,EAAE,CAAC,CAAA;IAE5F,OAAO,SAAS,CAAA;AACpB,CAAC,CAAA;AAZY,QAAA,oBAAoB,wBAYhC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type AgenticChatErrorCode = 'QModelResponse' | 'AmazonQServiceManager' | 'FailedResult' | 'MaxAgentLoopIterations' | 'InputTooLong' | 'PromptCharacterLimit';
|
|
2
|
+
export declare const customerFacingErrorCodes: AgenticChatErrorCode[];
|
|
3
|
+
export declare class AgenticChatError extends Error {
|
|
4
|
+
readonly code: AgenticChatErrorCode;
|
|
5
|
+
readonly requestId?: string | undefined;
|
|
6
|
+
constructor(message: string, code: AgenticChatErrorCode, cause?: Error, requestId?: string | undefined);
|
|
7
|
+
}
|
|
8
|
+
export declare function wrapErrorWithCode(error: unknown, code: AgenticChatErrorCode): AgenticChatError;
|
|
9
|
+
export declare function isInputTooLongError(error: unknown): boolean;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgenticChatError = exports.customerFacingErrorCodes = void 0;
|
|
4
|
+
exports.wrapErrorWithCode = wrapErrorWithCode;
|
|
5
|
+
exports.isInputTooLongError = isInputTooLongError;
|
|
6
|
+
const codewhisperer_streaming_1 = require("@amzn/codewhisperer-streaming");
|
|
7
|
+
exports.customerFacingErrorCodes = [
|
|
8
|
+
'QModelResponse',
|
|
9
|
+
'MaxAgentLoopIterations',
|
|
10
|
+
'InputTooLong',
|
|
11
|
+
'PromptCharacterLimit',
|
|
12
|
+
];
|
|
13
|
+
class AgenticChatError extends Error {
|
|
14
|
+
code;
|
|
15
|
+
requestId;
|
|
16
|
+
constructor(message, code, cause, requestId) {
|
|
17
|
+
super(message, { cause: cause });
|
|
18
|
+
this.code = code;
|
|
19
|
+
this.requestId = requestId;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AgenticChatError = AgenticChatError;
|
|
23
|
+
function wrapErrorWithCode(error, code) {
|
|
24
|
+
if (error instanceof codewhisperer_streaming_1.CodeWhispererStreamingServiceException) {
|
|
25
|
+
return new AgenticChatError(error.message, code, error, error.$metadata?.requestId);
|
|
26
|
+
}
|
|
27
|
+
if (error instanceof Error) {
|
|
28
|
+
return new AgenticChatError(error.message, code, error);
|
|
29
|
+
}
|
|
30
|
+
return new AgenticChatError(String(error), code);
|
|
31
|
+
}
|
|
32
|
+
function isInputTooLongError(error) {
|
|
33
|
+
if (error instanceof AgenticChatError && error.code === 'InputTooLong') {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (error instanceof Error) {
|
|
37
|
+
// This is fragile (breaks if the backend changes their error message wording)
|
|
38
|
+
return error.message.includes('Input is too long');
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/language-server/agenticChat/errors.ts"],"names":[],"mappings":";;;AA2BA,8CASC;AAED,kDAWC;AAjDD,2EAAsF;AAUzE,QAAA,wBAAwB,GAA2B;IAC5D,gBAAgB;IAChB,wBAAwB;IACxB,cAAc;IACd,sBAAsB;CACzB,CAAA;AACD,MAA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