@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.
Files changed (432) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/node_modules/@amzn/codewhisperer-streaming/README.md +56 -0
  3. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +2 -0
  4. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +2 -0
  5. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +3 -0
  6. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +3 -0
  7. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +3 -0
  8. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +10 -0
  9. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +2 -2
  10. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
  11. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
  12. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
  13. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
  14. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
  15. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
  16. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
  17. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
  18. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
  19. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
  20. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
  21. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
  22. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
  23. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
  24. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
  25. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
  26. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
  27. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
  28. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
  29. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
  30. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +5 -5
  31. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/LICENSE +201 -0
  32. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/README.md +115 -0
  33. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort-handler.js +1 -0
  34. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort.js +1 -0
  35. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -0
  36. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -0
  37. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -0
  38. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -0
  39. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -0
  40. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -0
  41. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -0
  42. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -0
  43. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/checksum.js +1 -0
  44. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/client.js +1 -0
  45. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/command.js +1 -0
  46. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -0
  47. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -0
  48. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -0
  49. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -0
  50. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/crypto.js +1 -0
  51. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -0
  52. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/encode.js +1 -0
  53. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -0
  54. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -0
  55. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -0
  56. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -0
  57. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -0
  58. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -0
  59. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -0
  60. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -0
  61. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -0
  62. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -0
  63. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -0
  64. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -0
  65. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -0
  66. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -0
  67. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/feature-ids.js +1 -0
  68. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -0
  69. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http.js +1 -0
  70. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -0
  71. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -0
  72. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -0
  73. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -0
  74. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -0
  75. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/index.js +144 -0
  76. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/logger.js +1 -0
  77. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/middleware.js +1 -0
  78. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/pagination.js +1 -0
  79. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/profile.js +1 -0
  80. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/response.js +1 -0
  81. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/retry.js +1 -0
  82. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
  83. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
  84. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
  85. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/serde.js +1 -0
  86. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/shapes.js +1 -0
  87. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/signature.js +1 -0
  88. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/stream.js +1 -0
  89. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -0
  90. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  91. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  92. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transfer.js +1 -0
  93. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -0
  94. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -0
  95. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -0
  96. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
  97. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -0
  98. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -0
  99. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/uri.js +1 -0
  100. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/util.js +1 -0
  101. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
  102. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort-handler.js +1 -0
  103. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort.js +1 -0
  104. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
  105. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
  106. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
  107. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
  108. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
  109. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/auth.js +5 -0
  110. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
  111. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +1 -0
  112. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/checksum.js +1 -0
  113. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/client.js +1 -0
  114. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/command.js +1 -0
  115. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
  116. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/index.js +3 -0
  117. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
  118. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
  119. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/crypto.js +1 -0
  120. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +1 -0
  121. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/encode.js +1 -0
  122. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
  123. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
  124. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
  125. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
  126. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
  127. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/index.js +5 -0
  128. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
  129. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
  130. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/checksum.js +38 -0
  131. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +7 -0
  132. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +1 -0
  133. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/index.js +3 -0
  134. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/retry.js +1 -0
  135. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +1 -0
  136. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/feature-ids.js +1 -0
  137. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  138. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http.js +5 -0
  139. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
  140. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
  141. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
  142. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/index.js +4 -0
  143. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
  144. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/index.js +40 -0
  145. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/logger.js +1 -0
  146. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/middleware.js +1 -0
  147. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/pagination.js +1 -0
  148. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/profile.js +6 -0
  149. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/response.js +1 -0
  150. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/retry.js +1 -0
  151. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
  152. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
  153. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
  154. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/serde.js +1 -0
  155. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/shapes.js +1 -0
  156. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/signature.js +1 -0
  157. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/stream.js +1 -0
  158. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +1 -0
  159. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  160. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  161. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transfer.js +6 -0
  162. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +1 -0
  163. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +1 -0
  164. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/exact.js +1 -0
  165. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
  166. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/no-undefined.js +1 -0
  167. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/type-transform.js +1 -0
  168. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/uri.js +1 -0
  169. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/util.js +1 -0
  170. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/waiter.js +1 -0
  171. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort-handler.d.ts +7 -0
  172. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort.d.ts +50 -0
  173. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
  174. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
  175. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
  176. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +41 -0
  177. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
  178. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/auth.d.ts +57 -0
  179. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
  180. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +40 -0
  181. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/checksum.d.ts +63 -0
  182. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/client.d.ts +57 -0
  183. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/command.d.ts +25 -0
  184. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/config.d.ts +10 -0
  185. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
  186. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/manager.d.ts +34 -0
  187. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/pool.d.ts +32 -0
  188. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/crypto.d.ts +60 -0
  189. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +25 -0
  190. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/encode.d.ts +31 -0
  191. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
  192. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +27 -0
  193. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +10 -0
  194. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +28 -0
  195. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +16 -0
  196. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
  197. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +55 -0
  198. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/eventStream.d.ts +137 -0
  199. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +58 -0
  200. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +33 -0
  201. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +9 -0
  202. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/index.d.ts +4 -0
  203. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +18 -0
  204. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +35 -0
  205. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/feature-ids.d.ts +16 -0
  206. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +121 -0
  207. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http.d.ts +112 -0
  208. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
  209. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +31 -0
  210. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
  211. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -0
  212. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
  213. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/index.d.ts +40 -0
  214. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
  215. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/middleware.d.ts +534 -0
  216. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/pagination.d.ts +33 -0
  217. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/profile.d.ts +30 -0
  218. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
  219. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/retry.d.ts +133 -0
  220. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
  221. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
  222. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
  223. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/serde.d.ts +114 -0
  224. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/shapes.d.ts +82 -0
  225. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/signature.d.ts +155 -0
  226. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
  227. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +32 -0
  228. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +60 -0
  229. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +51 -0
  230. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transfer.d.ts +41 -0
  231. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +26 -0
  232. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +77 -0
  233. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/exact.d.ts +6 -0
  234. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
  235. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +68 -0
  236. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +34 -0
  237. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +7 -0
  238. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +50 -0
  239. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
  240. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
  241. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
  242. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
  243. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
  244. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +57 -0
  245. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
  246. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +40 -0
  247. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +63 -0
  248. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +57 -0
  249. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +25 -0
  250. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +10 -0
  251. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
  252. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +34 -0
  253. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +32 -0
  254. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +60 -0
  255. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +41 -0
  256. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +31 -0
  257. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
  258. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +27 -0
  259. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +10 -0
  260. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +28 -0
  261. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +16 -0
  262. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
  263. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +55 -0
  264. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +137 -0
  265. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +58 -0
  266. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +33 -0
  267. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
  268. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +4 -0
  269. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
  270. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
  271. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
  272. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +121 -0
  273. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +112 -0
  274. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
  275. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +31 -0
  276. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
  277. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
  278. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
  279. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +40 -0
  280. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
  281. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +534 -0
  282. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +33 -0
  283. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
  284. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
  285. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +133 -0
  286. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
  287. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
  288. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
  289. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +114 -0
  290. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +82 -0
  291. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +155 -0
  292. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
  293. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +32 -0
  294. 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
  295. 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
  296. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +41 -0
  297. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
  298. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +81 -0
  299. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
  300. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
  301. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +88 -0
  302. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +41 -0
  303. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
  304. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
  305. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
  306. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
  307. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/util.d.ts +176 -0
  308. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
  309. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/package.json +60 -0
  310. package/node_modules/@amzn/codewhisperer-streaming/package.json +1 -1
  311. package/out/client/sigv4/service.json +8 -0
  312. package/out/client/token/bearer-token-service.json +20 -0
  313. package/out/language-server/agenticChat/agenticChatController.d.ts +9 -3
  314. package/out/language-server/agenticChat/agenticChatController.js +379 -85
  315. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  316. package/out/language-server/agenticChat/agenticChatResultStream.d.ts +9 -0
  317. package/out/language-server/agenticChat/agenticChatResultStream.js +41 -1
  318. package/out/language-server/agenticChat/agenticChatResultStream.js.map +1 -1
  319. package/out/language-server/agenticChat/constants.d.ts +0 -1
  320. package/out/language-server/agenticChat/constants.js +1 -2
  321. package/out/language-server/agenticChat/constants.js.map +1 -1
  322. package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +2 -3
  323. package/out/language-server/agenticChat/context/addtionalContextProvider.js +3 -5
  324. package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -1
  325. package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +1 -0
  326. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +15 -2
  327. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -1
  328. package/out/language-server/agenticChat/context/contextCommandsProvider.d.ts +1 -1
  329. package/out/language-server/agenticChat/context/contextCommandsProvider.js +8 -24
  330. package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -1
  331. package/out/language-server/agenticChat/errors.d.ts +2 -1
  332. package/out/language-server/agenticChat/errors.js +11 -1
  333. package/out/language-server/agenticChat/errors.js.map +1 -1
  334. package/out/language-server/agenticChat/tabBarController.d.ts +10 -1
  335. package/out/language-server/agenticChat/tabBarController.js +54 -27
  336. package/out/language-server/agenticChat/tabBarController.js.map +1 -1
  337. package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +8 -9
  338. package/out/language-server/agenticChat/tools/chatDb/chatDb.js +58 -124
  339. package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -1
  340. package/out/language-server/agenticChat/tools/codeSearch.js +1 -1
  341. package/out/language-server/agenticChat/tools/codeSearch.js.map +1 -1
  342. package/out/language-server/agenticChat/tools/executeBash.d.ts +10 -2
  343. package/out/language-server/agenticChat/tools/executeBash.js +80 -21
  344. package/out/language-server/agenticChat/tools/executeBash.js.map +1 -1
  345. package/out/language-server/agenticChat/tools/fsRead.js +1 -1
  346. package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
  347. package/out/language-server/agenticChat/tools/fsWrite.js +1 -1
  348. package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
  349. package/out/language-server/agenticChat/tools/{fileSearch.d.ts → fuzzySearch.d.ts} +17 -11
  350. package/out/language-server/agenticChat/tools/{fileSearch.js → fuzzySearch.js} +53 -55
  351. package/out/language-server/agenticChat/tools/fuzzySearch.js.map +1 -0
  352. package/out/language-server/agenticChat/tools/grepSearch.d.ts +74 -0
  353. package/out/language-server/agenticChat/tools/grepSearch.js +254 -0
  354. package/out/language-server/agenticChat/tools/grepSearch.js.map +1 -0
  355. package/out/language-server/agenticChat/tools/listDirectory.js +1 -1
  356. package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -1
  357. package/out/language-server/agenticChat/tools/toolServer.js +14 -5
  358. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  359. package/out/language-server/agenticChat/tools/toolShared.d.ts +1 -1
  360. package/out/language-server/agenticChat/tools/toolShared.js +2 -2
  361. package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
  362. package/out/language-server/chat/chatController.d.ts +1 -1
  363. package/out/language-server/chat/chatController.js.map +1 -1
  364. package/out/language-server/chat/chatSessionService.d.ts +13 -0
  365. package/out/language-server/chat/chatSessionService.js +28 -4
  366. package/out/language-server/chat/chatSessionService.js.map +1 -1
  367. package/out/language-server/chat/contexts/triggerContext.js +1 -0
  368. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  369. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +5 -4
  370. package/out/language-server/chat/telemetry/chatTelemetryController.js +29 -5
  371. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  372. package/out/language-server/inline-completion/codePercentage.js +1 -0
  373. package/out/language-server/inline-completion/codePercentage.js.map +1 -1
  374. package/out/language-server/inline-completion/codeWhispererServer.d.ts +1 -0
  375. package/out/language-server/inline-completion/codeWhispererServer.js +55 -19
  376. package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
  377. package/out/language-server/inline-completion/session/sessionManager.d.ts +5 -1
  378. package/out/language-server/inline-completion/session/sessionManager.js +4 -0
  379. package/out/language-server/inline-completion/session/sessionManager.js.map +1 -1
  380. package/out/language-server/localProjectContext/localProjectContextServer.js +8 -8
  381. package/out/language-server/localProjectContext/localProjectContextServer.js.map +1 -1
  382. package/out/language-server/workspaceContext/artifactManager.d.ts +1 -1
  383. package/out/language-server/workspaceContext/artifactManager.js +55 -22
  384. package/out/language-server/workspaceContext/artifactManager.js.map +1 -1
  385. package/out/language-server/workspaceContext/client.d.ts +1 -2
  386. package/out/language-server/workspaceContext/client.js +8 -16
  387. package/out/language-server/workspaceContext/client.js.map +1 -1
  388. package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.d.ts +2 -0
  389. package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js +11 -1
  390. package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js.map +1 -1
  391. package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.d.ts +17 -0
  392. package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.js +75 -0
  393. package/out/language-server/workspaceContext/dependency/dependencyHandler/DependencyWatcher.js.map +1 -0
  394. package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js +9 -9
  395. package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js.map +1 -1
  396. package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js +9 -9
  397. package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js.map +1 -1
  398. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.d.ts +7 -5
  399. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js +21 -15
  400. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js.map +1 -1
  401. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.d.ts +1 -1
  402. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js +4 -4
  403. package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js.map +1 -1
  404. package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js +38 -29
  405. package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js.map +1 -1
  406. package/out/language-server/workspaceContext/javaManager.js +1 -1
  407. package/out/language-server/workspaceContext/javaManager.js.map +1 -1
  408. package/out/language-server/workspaceContext/util.d.ts +1 -0
  409. package/out/language-server/workspaceContext/util.js +12 -6
  410. package/out/language-server/workspaceContext/util.js.map +1 -1
  411. package/out/language-server/workspaceContext/workspaceContextServer.js +266 -236
  412. package/out/language-server/workspaceContext/workspaceContextServer.js.map +1 -1
  413. package/out/language-server/workspaceContext/workspaceFolderManager.d.ts +21 -50
  414. package/out/language-server/workspaceContext/workspaceFolderManager.js +254 -496
  415. package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
  416. package/out/shared/languageDetection.d.ts +1 -1
  417. package/out/shared/languageDetection.js +4 -0
  418. package/out/shared/languageDetection.js.map +1 -1
  419. package/out/shared/localProjectContextController.d.ts +5 -3
  420. package/out/shared/localProjectContextController.js +47 -21
  421. package/out/shared/localProjectContextController.js.map +1 -1
  422. package/out/shared/telemetry/telemetryService.d.ts +10 -1
  423. package/out/shared/telemetry/telemetryService.js +36 -7
  424. package/out/shared/telemetry/telemetryService.js.map +1 -1
  425. package/out/shared/telemetry/types.d.ts +39 -0
  426. package/out/shared/telemetry/types.js +1 -0
  427. package/out/shared/telemetry/types.js.map +1 -1
  428. package/package.json +8 -6
  429. package/out/language-server/agenticChat/tools/fileSearch.js.map +0 -1
  430. package/out/shared/initializeUtils.d.ts +0 -3
  431. package/out/shared/initializeUtils.js +0 -32
  432. 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
- workspaceFolders = params.workspaceFolders || [];
27
- if (params.workspaceFolders) {
28
- workspaceFolders = params.workspaceFolders;
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
- const workspaceMap = workspaceFolderManager.getWorkspaces();
70
- // Filter workspaces to only include those with websocket connected.
71
- // To reduce the error of GenerateCompletions getting repoMap from server-side workspace context,
72
- // with websocket connected, at least workspace/didChangeWorkspaceFolders websocket request has been sent.
73
- // When the workspace is reopened and server-side was prepared, compared to filter with READY state of workspace,
74
- // this filter would add delay to wait for websocket connection being established
75
- const workspaceArray = Array.from(workspaceMap)
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: workspaceArray,
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.log(`A/B testing enabled: ${abTestingEnabled}`);
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
- amazonQServiceManager = AmazonQTokenServiceManager_1.AmazonQTokenServiceManager.getInstance();
140
- artifactManager = new artifactManager_1.ArtifactManager(workspace, logging, workspaceFolders);
141
- dependencyDiscoverer = new dependencyDiscoverer_1.DependencyDiscoverer(workspace, logging, workspaceFolders, artifactManager);
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
- const removedFolders = params.event.removed;
150
- if (removedFolders.length > 0) {
151
- for (const folder of removedFolders) {
152
- const index = workspaceFolders.findIndex(f => f.uri === folder.uri);
153
- if (index !== -1) {
154
- workspaceFolders.splice(index, 1);
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
- workspaceFolderManager.updateWorkspaceFolders(workspaceFolders);
159
- if (!isUserEligibleForWorkspaceContext()) {
160
- return;
161
- }
162
- if (addedFolders.length > 0) {
163
- await workspaceFolderManager.processNewWorkspaceFolders(addedFolders);
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
- catch (e) {
178
+ workspaceFolderManager.updateWorkspaceFolders(workspaceFolders);
179
+ if (!isUserEligibleForWorkspaceContext()) {
189
180
  return;
190
181
  }
191
- await evaluateABTesting();
192
- isWorkflowInitialized = true;
193
- if (!isUserEligibleForWorkspaceContext()) {
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
- logging.log(`Workspace context workflow initialized`);
197
- artifactManager.updateWorkspaceFolders(workspaceFolders);
198
- workspaceFolderManager.processNewWorkspaceFolders(workspaceFolders).catch(error => {
199
- logging.error(`Error while processing new workspace folders: ${error}`);
200
- });
201
- }
202
- else if (!isLoggedIn) {
203
- if (isWorkflowInitialized) {
204
- // If user is not logged in but the workflow is marked as initialized, it means user was logged in and is now logged out
205
- // In this case, clear the resources and stop the monitoring
206
- await workspaceFolderManager.clearAllWorkspaceResources();
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
- isWorkflowInitialized = false;
209
- }
210
- }, 5000);
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
- if (!isUserEligibleForWorkspaceContext()) {
215
- return;
216
- }
217
- const programmingLanguage = (0, languageDetection_1.getCodeWhispererLanguageIdFromPath)(event.textDocument.uri);
218
- if (!programmingLanguage || !artifactManager_1.SUPPORTED_WORKSPACE_CONTEXT_LANGUAGES.includes(programmingLanguage)) {
219
- return;
220
- }
221
- logging.log(`Received didSave event for ${event.textDocument.uri}`);
222
- const result = workspaceFolderManager.getWorkspaceDetailsWithId(event.textDocument.uri, workspaceFolders);
223
- if (!result) {
224
- logging.log(`No workspace found for ${event.textDocument.uri} discarding the save event`);
225
- return;
226
- }
227
- const { workspaceDetails, workspaceRoot } = result;
228
- const fileMetadata = await artifactManager.processNewFile(workspaceRoot, event.textDocument.uri);
229
- const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
230
- if (!s3Url) {
231
- return;
232
- }
233
- const message = JSON.stringify({
234
- method: 'textDocument/didSave',
235
- params: {
236
- textDocument: { uri: (0, util_1.getRelativePath)(fileMetadata.workspaceFolder, event.textDocument.uri) },
237
- workspaceChangeMetadata: {
238
- workspaceId: workspaceDetails.workspaceId,
239
- s3Path: (0, util_1.cleanUrl)(s3Url),
240
- programmingLanguage: programmingLanguage,
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
- if (!isUserEligibleForWorkspaceContext()) {
256
- return;
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
- for (const fileMetadata of filesMetadata) {
277
- const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
278
- if (!s3Url) {
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 message = JSON.stringify({
282
- method: 'workspace/didCreateFiles',
283
- params: {
284
- files: [
285
- {
286
- uri: (0, util_1.getRelativePath)(fileMetadata.workspaceFolder, file.uri),
287
- },
288
- ],
289
- workspaceChangeMetadata: {
290
- workspaceId: workspaceDetails.workspaceId,
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
- workspaceDetails.webSocketClient.send(message).catch(error => {
302
- logging.error(`Error while sending didCreateFiles message: ${error}`);
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
- if (!isUserEligibleForWorkspaceContext()) {
310
- return;
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
- // Send notification for each programming language
326
- for (const language of programmingLanguages) {
327
- const message = JSON.stringify({
328
- method: 'workspace/didDeleteFiles',
329
- params: {
330
- files: [
331
- {
332
- uri: (0, util_1.getRelativePath)(workspaceRoot, file.uri),
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
- if (!isUserEligibleForWorkspaceContext()) {
355
- return;
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
- const { workspaceDetails, workspaceRoot } = result;
364
- const filesMetadata = await artifactManager.handleRename(workspaceRoot, file.oldUri, file.newUri);
365
- for (const fileMetadata of filesMetadata) {
366
- const s3Url = await workspaceFolderManager.uploadToS3(fileMetadata);
367
- if (!s3Url) {
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 message = JSON.stringify({
371
- method: 'workspace/didRenameFiles',
372
- params: {
373
- files: [
374
- {
375
- old_uri: (0, util_1.getRelativePath)(fileMetadata.workspaceFolder, file.oldUri),
376
- new_uri: (0, util_1.getRelativePath)(fileMetadata.workspaceFolder, file.newUri),
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
- if (!isUserEligibleForWorkspaceContext()) {
400
- return;
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 () => {