@aws/lsp-codewhisperer 0.0.39 → 0.0.41
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 +75 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +56 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/LICENSE +201 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/README.md +115 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort-handler.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/checksum.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/client.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/command.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/crypto.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/encode.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/feature-ids.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/index.js +144 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/logger.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/middleware.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/pagination.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/profile.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/response.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/retry.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/serde.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/shapes.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/signature.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/stream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transfer.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/uri.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/util.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort-handler.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/auth.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/checksum.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/client.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/command.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/crypto.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/encode.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/checksum.js +38 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/index.js +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/retry.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http.js +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/index.js +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/index.js +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/logger.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/middleware.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/pagination.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/profile.js +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/response.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/retry.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/serde.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/shapes.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/signature.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/stream.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transfer.js +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/exact.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/no-undefined.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/type-transform.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/uri.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/util.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/waiter.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort-handler.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort.d.ts +50 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/auth.d.ts +57 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/client.d.ts +57 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/command.d.ts +25 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/config.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/manager.d.ts +34 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/pool.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +25 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/encode.d.ts +31 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +27 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +28 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +55 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/eventStream.d.ts +137 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +58 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/feature-ids.d.ts +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +121 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http.d.ts +112 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +31 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/index.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/middleware.d.ts +534 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/pagination.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/profile.d.ts +30 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/retry.d.ts +133 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/serde.d.ts +114 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/shapes.d.ts +82 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/signature.d.ts +155 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +60 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +51 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transfer.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +26 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +77 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/exact.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +68 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +34 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +50 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +57 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +63 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +57 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +25 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +34 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +60 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +31 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +27 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +10 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +28 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +55 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +137 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +58 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +121 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +112 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +31 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +534 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +33 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +133 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +114 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +82 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +155 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +32 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +60 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +51 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +81 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +88 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +41 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/util.d.ts +176 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/package.json +60 -0
- package/node_modules/@amzn/codewhisperer-streaming/package.json +1 -1
- package/out/client/sigv4/service.json +8 -0
- package/out/client/token/bearer-token-service.json +20 -0
- package/out/language-server/agenticChat/agenticChatController.d.ts +9 -3
- package/out/language-server/agenticChat/agenticChatController.js +379 -85
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/agenticChatResultStream.d.ts +9 -0
- package/out/language-server/agenticChat/agenticChatResultStream.js +41 -1
- package/out/language-server/agenticChat/agenticChatResultStream.js.map +1 -1
- package/out/language-server/agenticChat/constants.d.ts +0 -1
- package/out/language-server/agenticChat/constants.js +1 -2
- package/out/language-server/agenticChat/constants.js.map +1 -1
- package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +2 -3
- package/out/language-server/agenticChat/context/addtionalContextProvider.js +3 -5
- package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -1
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +1 -0
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +15 -2
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -1
- package/out/language-server/agenticChat/context/contextCommandsProvider.d.ts +1 -1
- package/out/language-server/agenticChat/context/contextCommandsProvider.js +8 -24
- package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -1
- package/out/language-server/agenticChat/errors.d.ts +2 -1
- package/out/language-server/agenticChat/errors.js +11 -1
- package/out/language-server/agenticChat/errors.js.map +1 -1
- package/out/language-server/agenticChat/tabBarController.d.ts +10 -1
- package/out/language-server/agenticChat/tabBarController.js +54 -27
- package/out/language-server/agenticChat/tabBarController.js.map +1 -1
- package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +8 -9
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js +58 -124
- package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -1
- package/out/language-server/agenticChat/tools/codeSearch.js +1 -1
- package/out/language-server/agenticChat/tools/codeSearch.js.map +1 -1
- package/out/language-server/agenticChat/tools/executeBash.d.ts +10 -2
- package/out/language-server/agenticChat/tools/executeBash.js +80 -21
- package/out/language-server/agenticChat/tools/executeBash.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsRead.js +1 -1
- package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.js +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
- package/out/language-server/agenticChat/tools/{fileSearch.d.ts → fuzzySearch.d.ts} +17 -11
- package/out/language-server/agenticChat/tools/{fileSearch.js → fuzzySearch.js} +53 -55
- package/out/language-server/agenticChat/tools/fuzzySearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/grepSearch.d.ts +74 -0
- package/out/language-server/agenticChat/tools/grepSearch.js +254 -0
- package/out/language-server/agenticChat/tools/grepSearch.js.map +1 -0
- package/out/language-server/agenticChat/tools/listDirectory.js +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js +14 -5
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolShared.d.ts +1 -1
- package/out/language-server/agenticChat/tools/toolShared.js +2 -2
- package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
- package/out/language-server/chat/chatController.d.ts +1 -1
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +13 -0
- package/out/language-server/chat/chatSessionService.js +28 -4
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.js +1 -0
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +5 -4
- package/out/language-server/chat/telemetry/chatTelemetryController.js +29 -5
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/inline-completion/codePercentage.js +1 -0
- package/out/language-server/inline-completion/codePercentage.js.map +1 -1
- package/out/language-server/inline-completion/codeWhispererServer.d.ts +1 -0
- package/out/language-server/inline-completion/codeWhispererServer.js +55 -19
- package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
- package/out/language-server/inline-completion/session/sessionManager.d.ts +5 -1
- package/out/language-server/inline-completion/session/sessionManager.js +4 -0
- package/out/language-server/inline-completion/session/sessionManager.js.map +1 -1
- package/out/language-server/localProjectContext/localProjectContextServer.js +8 -8
- package/out/language-server/localProjectContext/localProjectContextServer.js.map +1 -1
- package/out/language-server/workspaceContext/artifactManager.d.ts +1 -1
- package/out/language-server/workspaceContext/artifactManager.js +55 -22
- package/out/language-server/workspaceContext/artifactManager.js.map +1 -1
- package/out/language-server/workspaceContext/client.d.ts +1 -2
- package/out/language-server/workspaceContext/client.js +8 -16
- package/out/language-server/workspaceContext/client.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.d.ts +2 -0
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js +11 -1
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.d.ts +17 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.js +75 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js +9 -9
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js +9 -9
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.d.ts +7 -5
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js +21 -15
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.d.ts +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js +4 -4
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js +38 -29
- package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js.map +1 -1
- package/out/language-server/workspaceContext/javaManager.js +1 -1
- package/out/language-server/workspaceContext/javaManager.js.map +1 -1
- package/out/language-server/workspaceContext/util.d.ts +1 -0
- package/out/language-server/workspaceContext/util.js +12 -6
- package/out/language-server/workspaceContext/util.js.map +1 -1
- package/out/language-server/workspaceContext/workspaceContextServer.js +266 -236
- package/out/language-server/workspaceContext/workspaceContextServer.js.map +1 -1
- package/out/language-server/workspaceContext/workspaceFolderManager.d.ts +21 -50
- package/out/language-server/workspaceContext/workspaceFolderManager.js +254 -496
- package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
- package/out/shared/languageDetection.d.ts +1 -1
- package/out/shared/languageDetection.js +4 -0
- package/out/shared/languageDetection.js.map +1 -1
- package/out/shared/localProjectContextController.d.ts +5 -3
- package/out/shared/localProjectContextController.js +47 -21
- package/out/shared/localProjectContextController.js.map +1 -1
- package/out/shared/telemetry/telemetryService.d.ts +10 -1
- package/out/shared/telemetry/telemetryService.js +36 -7
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/telemetry/types.d.ts +39 -0
- package/out/shared/telemetry/types.js +1 -0
- package/out/shared/telemetry/types.js.map +1 -1
- package/package.json +8 -6
- package/out/language-server/agenticChat/tools/fileSearch.js.map +0 -1
- package/out/shared/initializeUtils.d.ts +0 -3
- package/out/shared/initializeUtils.js +0 -32
- package/out/shared/initializeUtils.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkspaceContextServer = void 0;
|
|
4
|
+
const crypto = require("crypto");
|
|
4
5
|
const util_1 = require("./util");
|
|
5
6
|
const artifactManager_1 = require("./artifactManager");
|
|
6
7
|
const workspaceFolderManager_1 = require("./workspaceFolderManager");
|
|
@@ -13,6 +14,7 @@ const AmazonQTokenServiceManager_1 = require("../../shared/amazonQServiceManager
|
|
|
13
14
|
const Q_CONTEXT_CONFIGURATION_SECTION = 'aws.q.workspaceContext';
|
|
14
15
|
const WorkspaceContextServer = () => features => {
|
|
15
16
|
const { credentialsProvider, workspace, logging, lsp, runtime, sdkInitializator } = features;
|
|
17
|
+
let workspaceIdentifier = '';
|
|
16
18
|
let workspaceFolders = [];
|
|
17
19
|
let artifactManager;
|
|
18
20
|
let dependencyDiscoverer;
|
|
@@ -22,12 +24,27 @@ const WorkspaceContextServer = () => features => {
|
|
|
22
24
|
let abTestingEvaluated = false;
|
|
23
25
|
let abTestingEnabled = false;
|
|
24
26
|
let amazonQServiceManager;
|
|
27
|
+
let allowedExtension = ['AmazonQ-For-VSCode', 'Amazon Q For JetBrains'];
|
|
28
|
+
let isSupportedExtension = false;
|
|
25
29
|
lsp.addInitializer((params) => {
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
|
|
30
|
+
let clientExtension = params.initializationOptions?.aws?.clientInfo?.extension.name || '';
|
|
31
|
+
if (!allowedExtension.includes(clientExtension)) {
|
|
32
|
+
logging.warn(`Server context is currently not supported in ${clientExtension}`);
|
|
33
|
+
return {
|
|
34
|
+
capabilities: {},
|
|
35
|
+
};
|
|
29
36
|
}
|
|
30
37
|
else {
|
|
38
|
+
isSupportedExtension = true;
|
|
39
|
+
}
|
|
40
|
+
workspaceIdentifier = params.initializationOptions?.aws?.contextConfiguration?.workspaceIdentifier || '';
|
|
41
|
+
if (!workspaceIdentifier) {
|
|
42
|
+
logging.warn(`No workspaceIdentifier set. Treating this workspace as a temporary session.`);
|
|
43
|
+
workspaceIdentifier = crypto.randomUUID();
|
|
44
|
+
}
|
|
45
|
+
const folders = workspace.getAllWorkspaceFolders();
|
|
46
|
+
workspaceFolders = folders || params.workspaceFolders || [];
|
|
47
|
+
if (!folders) {
|
|
31
48
|
logging.warn(`No workspace folders set during initialization`);
|
|
32
49
|
}
|
|
33
50
|
return {
|
|
@@ -66,20 +83,18 @@ const WorkspaceContextServer = () => features => {
|
|
|
66
83
|
});
|
|
67
84
|
lsp.extensions.onGetConfigurationFromServer(async (params, token) => {
|
|
68
85
|
if (params.section === Q_CONTEXT_CONFIGURATION_SECTION) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.filter(([_, workspaceState]) => workspaceState.webSocketClient?.isConnected())
|
|
77
|
-
.map(([workspaceRoot, workspaceState]) => ({
|
|
78
|
-
workspaceRoot,
|
|
79
|
-
workspaceId: workspaceState.workspaceId ?? '',
|
|
80
|
-
}));
|
|
86
|
+
// Only append workspaceId to GenerateCompletions when WebSocket client is connected
|
|
87
|
+
if (!workspaceFolderManager.getWorkspaceState().webSocketClient?.isConnected() ||
|
|
88
|
+
!workspaceFolderManager.getWorkspaceState().workspaceId) {
|
|
89
|
+
return {
|
|
90
|
+
workspaces: [],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
81
93
|
return {
|
|
82
|
-
workspaces:
|
|
94
|
+
workspaces: workspaceFolders.map(workspaceFolder => ({
|
|
95
|
+
workspaceRoot: workspaceFolder.uri,
|
|
96
|
+
workspaceId: workspaceFolderManager.getWorkspaceState().workspaceId,
|
|
97
|
+
})),
|
|
83
98
|
};
|
|
84
99
|
}
|
|
85
100
|
return {
|
|
@@ -120,7 +135,7 @@ const WorkspaceContextServer = () => features => {
|
|
|
120
135
|
logging.log(`${JSON.stringify(result)}`);
|
|
121
136
|
abTestingEnabled =
|
|
122
137
|
result.featureEvaluations?.some(feature => feature.feature === 'ServiceSideWorkspaceContext' && feature.variation === 'TREATMENT') ?? false;
|
|
123
|
-
logging.
|
|
138
|
+
logging.info(`A/B testing enabled: ${abTestingEnabled}`);
|
|
124
139
|
abTestingEvaluated = true;
|
|
125
140
|
}
|
|
126
141
|
catch (error) {
|
|
@@ -133,275 +148,290 @@ const WorkspaceContextServer = () => features => {
|
|
|
133
148
|
return (isOptedIn &&
|
|
134
149
|
(0, util_1.isLoggedInUsingBearerToken)(credentialsProvider) &&
|
|
135
150
|
abTestingEnabled &&
|
|
136
|
-
!workspaceFolderManager.getOptOutStatus()
|
|
151
|
+
!workspaceFolderManager.getOptOutStatus() &&
|
|
152
|
+
workspaceIdentifier);
|
|
137
153
|
};
|
|
138
154
|
lsp.onInitialized(async (params) => {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
workspaceFolderManager = workspaceFolderManager_1.WorkspaceFolderManager.createInstance(amazonQServiceManager, logging, artifactManager, dependencyDiscoverer, workspaceFolders, credentialsProvider);
|
|
143
|
-
await updateConfiguration();
|
|
144
|
-
lsp.workspace.onDidChangeWorkspaceFolders(async (params) => {
|
|
145
|
-
const addedFolders = params.event.added;
|
|
146
|
-
if (addedFolders.length > 0) {
|
|
147
|
-
workspaceFolders.push(...addedFolders);
|
|
155
|
+
try {
|
|
156
|
+
if (!isSupportedExtension) {
|
|
157
|
+
return {};
|
|
148
158
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
159
|
+
amazonQServiceManager = AmazonQTokenServiceManager_1.AmazonQTokenServiceManager.getInstance();
|
|
160
|
+
artifactManager = new artifactManager_1.ArtifactManager(workspace, logging, workspaceFolders);
|
|
161
|
+
dependencyDiscoverer = new dependencyDiscoverer_1.DependencyDiscoverer(workspace, logging, workspaceFolders, artifactManager);
|
|
162
|
+
workspaceFolderManager = workspaceFolderManager_1.WorkspaceFolderManager.createInstance(amazonQServiceManager, logging, artifactManager, dependencyDiscoverer, workspaceFolders, credentialsProvider, workspaceIdentifier);
|
|
163
|
+
await updateConfiguration();
|
|
164
|
+
lsp.workspace.onDidChangeWorkspaceFolders(async (params) => {
|
|
165
|
+
const addedFolders = params.event.added;
|
|
166
|
+
if (addedFolders.length > 0) {
|
|
167
|
+
workspaceFolders.push(...addedFolders);
|
|
156
168
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (removedFolders.length > 0) {
|
|
166
|
-
await workspaceFolderManager.processWorkspaceFoldersDeletion(removedFolders);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
/**
|
|
170
|
-
* The below code checks the login state of the workspace and initializes the workspace
|
|
171
|
-
* folders. *isWorkflowInitialized* variable is used to keep track if the workflow has been initialized
|
|
172
|
-
* or not to prevent it from initializing again. However, there can be a case when user logs out, does some
|
|
173
|
-
* activity with removing or adding workspace folders, and logs back in. To handle this case- the new state
|
|
174
|
-
* of workspace folders is updated using *artifactManager.updateWorkspaceFolders(workspaceFolders)* before
|
|
175
|
-
* initializing again.
|
|
176
|
-
*/
|
|
177
|
-
setInterval(async () => {
|
|
178
|
-
if (!isOptedIn) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
const isLoggedIn = (0, util_1.isLoggedInUsingBearerToken)(credentialsProvider);
|
|
182
|
-
if (isLoggedIn && !isWorkflowInitialized) {
|
|
183
|
-
try {
|
|
184
|
-
// getCodewhispererService only returns the cwspr client if the service manager was initialized i.e. profile was selected otherwise it throws an error
|
|
185
|
-
// we will not evaluate a/b status until profile is selected and service manager is fully initialized
|
|
186
|
-
amazonQServiceManager.getCodewhispererService();
|
|
169
|
+
const removedFolders = params.event.removed;
|
|
170
|
+
if (removedFolders.length > 0) {
|
|
171
|
+
for (const folder of removedFolders) {
|
|
172
|
+
const index = workspaceFolders.findIndex(f => f.uri === folder.uri);
|
|
173
|
+
if (index !== -1) {
|
|
174
|
+
workspaceFolders.splice(index, 1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
187
177
|
}
|
|
188
|
-
|
|
178
|
+
workspaceFolderManager.updateWorkspaceFolders(workspaceFolders);
|
|
179
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
189
180
|
return;
|
|
190
181
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
182
|
+
if (addedFolders.length > 0) {
|
|
183
|
+
await workspaceFolderManager.processNewWorkspaceFolders(addedFolders);
|
|
184
|
+
}
|
|
185
|
+
if (removedFolders.length > 0) {
|
|
186
|
+
await workspaceFolderManager.processWorkspaceFoldersDeletion(removedFolders);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* The below code checks the login state of the workspace and initializes the workspace
|
|
191
|
+
* folders. *isWorkflowInitialized* variable is used to keep track if the workflow has been initialized
|
|
192
|
+
* or not to prevent it from initializing again. However, there can be a case when user logs out, does some
|
|
193
|
+
* activity with removing or adding workspace folders, and logs back in. To handle this case- the new state
|
|
194
|
+
* of workspace folders is updated using *artifactManager.updateWorkspaceFolders(workspaceFolders)* before
|
|
195
|
+
* initializing again.
|
|
196
|
+
*/
|
|
197
|
+
setInterval(async () => {
|
|
198
|
+
if (!isOptedIn) {
|
|
194
199
|
return;
|
|
195
200
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
await
|
|
201
|
+
const isLoggedIn = (0, util_1.isLoggedInUsingBearerToken)(credentialsProvider);
|
|
202
|
+
if (isLoggedIn && !isWorkflowInitialized) {
|
|
203
|
+
try {
|
|
204
|
+
// getCodewhispererService only returns the cwspr client if the service manager was initialized i.e. profile was selected otherwise it throws an error
|
|
205
|
+
// we will not evaluate a/b status until profile is selected and service manager is fully initialized
|
|
206
|
+
amazonQServiceManager.getCodewhispererService();
|
|
207
|
+
}
|
|
208
|
+
catch (e) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
await evaluateABTesting();
|
|
212
|
+
isWorkflowInitialized = true;
|
|
213
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
workspaceFolderManager.initializeWorkspaceStatusMonitor().catch(error => {
|
|
217
|
+
logging.error(`Error while initializing workspace status monitoring: ${error}`);
|
|
218
|
+
});
|
|
219
|
+
logging.log(`Workspace context workflow initialized`);
|
|
220
|
+
artifactManager.updateWorkspaceFolders(workspaceFolders);
|
|
221
|
+
workspaceFolderManager.processNewWorkspaceFolders(workspaceFolders).catch(error => {
|
|
222
|
+
logging.error(`Error while processing new workspace folders: ${error}`);
|
|
223
|
+
});
|
|
207
224
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
225
|
+
else if (!isLoggedIn) {
|
|
226
|
+
if (isWorkflowInitialized) {
|
|
227
|
+
// If user is not logged in but the workflow is marked as initialized, it means user was logged in and is now logged out
|
|
228
|
+
// In this case, clear the resources and stop the monitoring
|
|
229
|
+
await workspaceFolderManager.clearAllWorkspaceResources();
|
|
230
|
+
}
|
|
231
|
+
isWorkflowInitialized = false;
|
|
232
|
+
}
|
|
233
|
+
}, 5000);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
logging.error(`Failed to initialize workspace context server: ${error}`);
|
|
237
|
+
}
|
|
211
238
|
});
|
|
212
239
|
lsp.didChangeConfiguration(updateConfiguration);
|
|
213
240
|
lsp.onDidSaveTextDocument(async (event) => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
try {
|
|
242
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const programmingLanguage = (0, languageDetection_1.getCodeWhispererLanguageIdFromPath)(event.textDocument.uri);
|
|
246
|
+
if (!programmingLanguage || !artifactManager_1.SUPPORTED_WORKSPACE_CONTEXT_LANGUAGES.includes(programmingLanguage)) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
logging.log(`Received didSave event for ${event.textDocument.uri}`);
|
|
250
|
+
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(event.textDocument.uri, workspaceFolders);
|
|
251
|
+
if (!workspaceFolder) {
|
|
252
|
+
logging.log(`No workspaceFolder found for ${event.textDocument.uri} discarding the save event`);
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const workspaceId = await workspaceFolderManager.waitForRemoteWorkspaceId();
|
|
256
|
+
const fileMetadata = await artifactManager.processNewFile(workspaceFolder, event.textDocument.uri);
|
|
257
|
+
const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
|
|
258
|
+
if (!s3Url) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
const message = JSON.stringify({
|
|
262
|
+
method: 'textDocument/didSave',
|
|
263
|
+
params: {
|
|
264
|
+
textDocument: {
|
|
265
|
+
uri: event.textDocument.uri,
|
|
266
|
+
},
|
|
267
|
+
workspaceChangeMetadata: {
|
|
268
|
+
workspaceId: workspaceId,
|
|
269
|
+
s3Path: (0, util_1.cleanUrl)(s3Url),
|
|
270
|
+
programmingLanguage: programmingLanguage,
|
|
271
|
+
},
|
|
241
272
|
},
|
|
242
|
-
},
|
|
243
|
-
});
|
|
244
|
-
if (!workspaceDetails.webSocketClient) {
|
|
245
|
-
logging.log(`WebSocket client is not connected yet: ${workspaceRoot.uri}, adding didSave message to queue`);
|
|
246
|
-
workspaceDetails.messageQueue?.push(message);
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
workspaceDetails.webSocketClient.send(message).catch(error => {
|
|
250
|
-
logging.error(`Error while sending didSave message: ${error}`);
|
|
251
273
|
});
|
|
274
|
+
const workspaceState = workspaceFolderManager.getWorkspaceState();
|
|
275
|
+
workspaceState.messageQueue.push(message);
|
|
276
|
+
}
|
|
277
|
+
catch (error) {
|
|
278
|
+
logging.error(`Error handling save event: ${error}`);
|
|
252
279
|
}
|
|
253
280
|
});
|
|
254
281
|
lsp.workspace.onDidCreateFiles(async (event) => {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
logging.log(`Received didCreateFiles event of length ${event.files.length}`);
|
|
259
|
-
for (const file of event.files) {
|
|
260
|
-
const isDir = (0, util_1.isDirectory)(file.uri);
|
|
261
|
-
const result = workspaceFolderManager.getWorkspaceDetailsWithId(file.uri, workspaceFolders);
|
|
262
|
-
if (!result) {
|
|
263
|
-
continue;
|
|
264
|
-
}
|
|
265
|
-
const { workspaceDetails, workspaceRoot } = result;
|
|
266
|
-
let filesMetadata = [];
|
|
267
|
-
if (isDir && (0, util_1.isEmptyDirectory)(file.uri)) {
|
|
268
|
-
continue;
|
|
269
|
-
}
|
|
270
|
-
else if (isDir) {
|
|
271
|
-
filesMetadata = await artifactManager.addNewDirectories([vscode_uri_1.URI.parse(file.uri)]);
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
filesMetadata = [await artifactManager.processNewFile(workspaceRoot, file.uri)];
|
|
282
|
+
try {
|
|
283
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
284
|
+
return;
|
|
275
285
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
286
|
+
logging.log(`Received didCreateFiles event of length ${event.files.length}`);
|
|
287
|
+
const workspaceState = workspaceFolderManager.getWorkspaceState();
|
|
288
|
+
for (const file of event.files) {
|
|
289
|
+
const isDir = (0, util_1.isDirectory)(file.uri);
|
|
290
|
+
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(file.uri, workspaceFolders);
|
|
291
|
+
if (!workspaceFolder) {
|
|
279
292
|
continue;
|
|
280
293
|
}
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
s3Path: (0, util_1.cleanUrl)(s3Url),
|
|
292
|
-
programmingLanguage: fileMetadata.language,
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
});
|
|
296
|
-
if (!workspaceDetails.webSocketClient) {
|
|
297
|
-
logging.log(`WebSocket client is not connected yet: ${workspaceRoot.uri}, adding didCreateFiles message to queue`);
|
|
298
|
-
workspaceDetails.messageQueue?.push(message);
|
|
294
|
+
const programmingLanguage = (0, languageDetection_1.getCodeWhispererLanguageIdFromPath)(file.uri);
|
|
295
|
+
if (!programmingLanguage || !artifactManager_1.SUPPORTED_WORKSPACE_CONTEXT_LANGUAGES.includes(programmingLanguage)) {
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
let filesMetadata = [];
|
|
299
|
+
if (isDir && (0, util_1.isEmptyDirectory)(file.uri)) {
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
else if (isDir) {
|
|
303
|
+
filesMetadata = await artifactManager.addNewDirectories([vscode_uri_1.URI.parse(file.uri)]);
|
|
299
304
|
}
|
|
300
305
|
else {
|
|
301
|
-
|
|
302
|
-
|
|
306
|
+
filesMetadata = [await artifactManager.processNewFile(workspaceFolder, file.uri)];
|
|
307
|
+
}
|
|
308
|
+
const workspaceId = await workspaceFolderManager.waitForRemoteWorkspaceId();
|
|
309
|
+
for (const fileMetadata of filesMetadata) {
|
|
310
|
+
const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
|
|
311
|
+
if (!s3Url) {
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
const message = JSON.stringify({
|
|
315
|
+
method: 'workspace/didCreateFiles',
|
|
316
|
+
params: {
|
|
317
|
+
files: [
|
|
318
|
+
{
|
|
319
|
+
uri: file.uri,
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
workspaceChangeMetadata: {
|
|
323
|
+
workspaceId: workspaceId,
|
|
324
|
+
s3Path: (0, util_1.cleanUrl)(s3Url),
|
|
325
|
+
programmingLanguage: fileMetadata.language,
|
|
326
|
+
},
|
|
327
|
+
},
|
|
303
328
|
});
|
|
329
|
+
workspaceState.messageQueue.push(message);
|
|
304
330
|
}
|
|
305
331
|
}
|
|
306
332
|
}
|
|
333
|
+
catch (error) {
|
|
334
|
+
logging.error(`Error handling create event: ${error}`);
|
|
335
|
+
}
|
|
307
336
|
});
|
|
308
337
|
lsp.workspace.onDidDeleteFiles(async (event) => {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
logging.log(`Received didDeleteFiles event of length ${event.files.length}`);
|
|
313
|
-
for (const file of event.files) {
|
|
314
|
-
const result = workspaceFolderManager.getWorkspaceDetailsWithId(file.uri, workspaceFolders);
|
|
315
|
-
if (!result) {
|
|
316
|
-
logging.log(`Workspace details not found for deleted file: ${file.uri}`);
|
|
317
|
-
continue;
|
|
318
|
-
}
|
|
319
|
-
const { workspaceDetails, workspaceRoot } = result;
|
|
320
|
-
const programmingLanguages = artifactManager.handleDeletedPathAndGetLanguages(file.uri, workspaceRoot);
|
|
321
|
-
if (programmingLanguages.length === 0) {
|
|
322
|
-
logging.log(`No programming languages determined for: ${file.uri}`);
|
|
323
|
-
continue;
|
|
338
|
+
try {
|
|
339
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
340
|
+
return;
|
|
324
341
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
342
|
+
logging.log(`Received didDeleteFiles event of length ${event.files.length}`);
|
|
343
|
+
const workspaceState = workspaceFolderManager.getWorkspaceState();
|
|
344
|
+
for (const file of event.files) {
|
|
345
|
+
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(file.uri, workspaceFolders);
|
|
346
|
+
if (!workspaceFolder) {
|
|
347
|
+
logging.log(`Workspace details not found for deleted file: ${file.uri}`);
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
const programmingLanguages = artifactManager.handleDeletedPathAndGetLanguages(file.uri, workspaceFolder);
|
|
351
|
+
if (programmingLanguages.length === 0) {
|
|
352
|
+
logging.log(`No programming languages determined for: ${file.uri}`);
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
const workspaceId = await workspaceFolderManager.waitForRemoteWorkspaceId();
|
|
356
|
+
// Send notification for each programming language
|
|
357
|
+
for (const language of programmingLanguages) {
|
|
358
|
+
const message = JSON.stringify({
|
|
359
|
+
method: 'workspace/didDeleteFiles',
|
|
360
|
+
params: {
|
|
361
|
+
files: [
|
|
362
|
+
{
|
|
363
|
+
uri: file.uri,
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
workspaceChangeMetadata: {
|
|
367
|
+
workspaceId: workspaceId,
|
|
368
|
+
programmingLanguage: language,
|
|
333
369
|
},
|
|
334
|
-
],
|
|
335
|
-
workspaceChangeMetadata: {
|
|
336
|
-
workspaceId: workspaceDetails.workspaceId,
|
|
337
|
-
programmingLanguage: language,
|
|
338
370
|
},
|
|
339
|
-
},
|
|
340
|
-
});
|
|
341
|
-
if (!workspaceDetails.webSocketClient) {
|
|
342
|
-
logging.log(`WebSocket client is not connected yet: ${workspaceRoot.uri}, adding didDeleteFiles message to queue`);
|
|
343
|
-
workspaceDetails.messageQueue?.push(message);
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
workspaceDetails.webSocketClient.send(message).catch(error => {
|
|
347
|
-
logging.error(`Error while sending didDeleteFiles message: ${error}`);
|
|
348
371
|
});
|
|
372
|
+
workspaceState.messageQueue.push(message);
|
|
349
373
|
}
|
|
350
374
|
}
|
|
351
375
|
}
|
|
376
|
+
catch (error) {
|
|
377
|
+
logging.error(`Error handling delete event: ${error}`);
|
|
378
|
+
}
|
|
352
379
|
});
|
|
353
380
|
lsp.workspace.onDidRenameFiles(async (event) => {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
logging.log(`Received didRenameFiles event of length ${event.files.length}`);
|
|
358
|
-
for (const file of event.files) {
|
|
359
|
-
const result = workspaceFolderManager.getWorkspaceDetailsWithId(file.newUri, workspaceFolders);
|
|
360
|
-
if (!result) {
|
|
361
|
-
continue;
|
|
381
|
+
try {
|
|
382
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
383
|
+
return;
|
|
362
384
|
}
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
for (const
|
|
366
|
-
const
|
|
367
|
-
if (!
|
|
385
|
+
logging.log(`Received didRenameFiles event of length ${event.files.length}`);
|
|
386
|
+
const workspaceState = workspaceFolderManager.getWorkspaceState();
|
|
387
|
+
for (const file of event.files) {
|
|
388
|
+
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(file.newUri, workspaceFolders);
|
|
389
|
+
if (!workspaceFolder) {
|
|
368
390
|
continue;
|
|
369
391
|
}
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
392
|
+
const filesMetadata = await artifactManager.handleRename(workspaceFolder, file.oldUri, file.newUri);
|
|
393
|
+
const workspaceId = await workspaceFolderManager.waitForRemoteWorkspaceId();
|
|
394
|
+
for (const fileMetadata of filesMetadata) {
|
|
395
|
+
const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
|
|
396
|
+
if (!s3Url) {
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
const message = JSON.stringify({
|
|
400
|
+
method: 'workspace/didRenameFiles',
|
|
401
|
+
params: {
|
|
402
|
+
files: [
|
|
403
|
+
{
|
|
404
|
+
old_uri: file.oldUri,
|
|
405
|
+
new_uri: file.newUri,
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
workspaceChangeMetadata: {
|
|
409
|
+
workspaceId: workspaceId,
|
|
410
|
+
s3Path: (0, util_1.cleanUrl)(s3Url),
|
|
411
|
+
programmingLanguage: fileMetadata.language,
|
|
377
412
|
},
|
|
378
|
-
],
|
|
379
|
-
workspaceChangeMetadata: {
|
|
380
|
-
workspaceId: workspaceDetails.workspaceId,
|
|
381
|
-
s3Path: (0, util_1.cleanUrl)(s3Url),
|
|
382
|
-
programmingLanguage: fileMetadata.language,
|
|
383
413
|
},
|
|
384
|
-
},
|
|
385
|
-
});
|
|
386
|
-
if (!workspaceDetails.webSocketClient) {
|
|
387
|
-
logging.log(`WebSocket client is not connected yet: ${workspaceRoot.uri}, adding didRenameFiles message to queue`);
|
|
388
|
-
workspaceDetails.messageQueue?.push(message);
|
|
389
|
-
}
|
|
390
|
-
else {
|
|
391
|
-
workspaceDetails.webSocketClient.send(message).catch(error => {
|
|
392
|
-
logging.error(`Error while sending didRenameFiles message: ${error}`);
|
|
393
414
|
});
|
|
415
|
+
workspaceState.messageQueue.push(message);
|
|
394
416
|
}
|
|
395
417
|
}
|
|
396
418
|
}
|
|
419
|
+
catch (error) {
|
|
420
|
+
logging.error(`Error handling rename event: ${error}`);
|
|
421
|
+
}
|
|
397
422
|
});
|
|
398
423
|
lsp.extensions.onDidChangeDependencyPaths(async (params) => {
|
|
399
|
-
|
|
400
|
-
|
|
424
|
+
try {
|
|
425
|
+
if (!isUserEligibleForWorkspaceContext()) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
logging.log(`Received onDidChangeDependencyPaths event for ${params.moduleName}`);
|
|
429
|
+
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(params.moduleName);
|
|
430
|
+
await dependencyDiscoverer.handleDependencyUpdateFromLSP(params.runtimeLanguage, params.paths, workspaceFolder);
|
|
431
|
+
}
|
|
432
|
+
catch (error) {
|
|
433
|
+
logging.error(`Error handling didChangeDependencyPaths event: ${error}`);
|
|
401
434
|
}
|
|
402
|
-
logging.log(`Received onDidChangeDependencyPaths event for ${params.moduleName}`);
|
|
403
|
-
const workspaceFolder = workspaceFolderManager.getWorkspaceFolder(params.moduleName);
|
|
404
|
-
await dependencyDiscoverer.handleDependencyUpdateFromLSP(params.runtimeLanguage, params.paths, workspaceFolder);
|
|
405
435
|
});
|
|
406
436
|
logging.log('Workspace context server has been initialized');
|
|
407
437
|
return () => {
|