@aws/lsp-codewhisperer 0.0.32 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (750) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/README.md +18 -1
  3. package/node_modules/@amzn/amazon-q-developer-streaming-client/LICENSE +201 -0
  4. package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +864 -0
  5. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreaming.js +15 -0
  6. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +49 -0
  7. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  8. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/auth/httpAuthSchemeProvider.js +50 -0
  9. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +26 -0
  10. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +26 -0
  11. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/index.js +5 -0
  12. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +211 -0
  13. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/extensionConfiguration.js +2 -0
  14. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/index.js +10 -0
  15. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/QDeveloperStreamingServiceException.js +12 -0
  16. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/index.js +4 -0
  17. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +1051 -0
  18. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +597 -0
  19. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.browser.js +40 -0
  20. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.js +48 -0
  21. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.native.js +15 -0
  22. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +32 -0
  23. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeExtensions.js +25 -0
  24. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreaming.js +11 -0
  25. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +45 -0
  26. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  27. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/auth/httpAuthSchemeProvider.js +44 -0
  28. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +22 -0
  29. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +22 -0
  30. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/index.js +2 -0
  31. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +207 -0
  32. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/index.js +5 -0
  33. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/QDeveloperStreamingServiceException.js +8 -0
  34. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/index.js +1 -0
  35. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +963 -0
  36. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +590 -0
  37. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.browser.js +35 -0
  38. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.js +43 -0
  39. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.native.js +11 -0
  40. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +28 -0
  41. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeExtensions.js +21 -0
  42. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreaming.d.ts +23 -0
  43. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +196 -0
  44. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  45. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  46. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +102 -0
  47. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +796 -0
  48. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/index.d.ts +2 -0
  49. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +2 -0
  50. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/extensionConfiguration.d.ts +9 -0
  51. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +7 -0
  52. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/QDeveloperStreamingServiceException.d.ts +14 -0
  53. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/index.d.ts +1 -0
  54. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +2985 -0
  55. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/protocols/Aws_json1_0.d.ts +20 -0
  56. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +47 -0
  57. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +47 -0
  58. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +46 -0
  59. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +19 -0
  60. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeExtensions.d.ts +17 -0
  61. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/README.md +4 -0
  62. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-cjs/index.js +294 -0
  63. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/auth.js +1 -0
  64. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/checksum.js +1 -0
  65. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/client.js +1 -0
  66. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/command.js +1 -0
  67. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/connection.js +1 -0
  68. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/credentials.js +1 -0
  69. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/crypto.js +1 -0
  70. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/dns.js +5 -0
  71. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/encode.js +1 -0
  72. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/endpoint.js +1 -0
  73. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/eventStream.js +1 -0
  74. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/extensions/index.js +1 -0
  75. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
  76. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/http.js +1 -0
  77. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +1 -0
  78. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +1 -0
  79. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +1 -0
  80. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +1 -0
  81. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +1 -0
  82. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/identity/index.js +5 -0
  83. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/index.js +33 -0
  84. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/logger.js +1 -0
  85. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/middleware.js +1 -0
  86. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/pagination.js +1 -0
  87. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/profile.js +1 -0
  88. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/request.js +1 -0
  89. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/response.js +1 -0
  90. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/retry.js +1 -0
  91. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/serde.js +1 -0
  92. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/shapes.js +1 -0
  93. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/signature.js +1 -0
  94. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/stream.js +1 -0
  95. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/token.js +1 -0
  96. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/transfer.js +1 -0
  97. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
  98. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/util.js +1 -0
  99. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/waiter.js +1 -0
  100. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -0
  101. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -0
  102. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +2 -0
  103. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +1 -0
  104. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/client.d.ts +1 -0
  105. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/command.d.ts +1 -0
  106. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/connection.d.ts +1 -0
  107. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +50 -0
  108. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +1 -0
  109. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/dns.d.ts +85 -0
  110. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/encode.d.ts +1 -0
  111. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +1 -0
  112. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +1 -0
  113. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +8 -0
  114. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
  115. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/http.d.ts +33 -0
  116. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +6 -0
  117. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -0
  118. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -0
  119. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +18 -0
  120. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +1 -0
  121. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +5 -0
  122. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/index.d.ts +33 -0
  123. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/logger.d.ts +22 -0
  124. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +13 -0
  125. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +1 -0
  126. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -0
  127. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/request.d.ts +7 -0
  128. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/response.d.ts +7 -0
  129. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/retry.d.ts +1 -0
  130. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/serde.d.ts +24 -0
  131. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -0
  132. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/signature.d.ts +1 -0
  133. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/stream.d.ts +1 -0
  134. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/token.d.ts +17 -0
  135. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +1 -0
  136. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +1 -0
  137. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +5 -0
  138. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +2 -0
  139. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +1 -0
  140. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +1 -0
  141. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +1 -0
  142. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +6 -0
  143. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +13 -0
  144. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +7 -0
  145. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +19 -0
  146. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +6 -0
  147. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +9 -0
  148. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +24 -0
  149. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +5 -0
  150. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
  151. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +17 -0
  152. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +2 -0
  153. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +25 -0
  154. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +1 -0
  155. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +6 -0
  156. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +1 -0
  157. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +5 -0
  158. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +33 -0
  159. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +15 -0
  160. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +47 -0
  161. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +1 -0
  162. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +6 -0
  163. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +4 -0
  164. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +4 -0
  165. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +12 -0
  166. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +16 -0
  167. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +6 -0
  168. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +15 -0
  169. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +4 -0
  170. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +4 -0
  171. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +7 -0
  172. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +1 -0
  173. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +14 -0
  174. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +1 -0
  175. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/uri.d.ts +1 -0
  176. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/util.d.ts +1 -0
  177. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +1 -0
  178. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/package.json +56 -0
  179. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/LICENSE +201 -0
  180. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/README.md +4 -0
  181. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/index.js +84 -0
  182. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortController.js +9 -0
  183. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
  184. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
  185. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
  186. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +21 -0
  187. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
  188. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
  189. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +21 -0
  190. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
  191. package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller}/package.json +21 -31
  192. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/LICENSE +201 -0
  193. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/README.md +9 -0
  194. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/index.js +806 -0
  195. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -0
  196. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/constants.js +1 -0
  197. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +9 -0
  198. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -0
  199. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +209 -0
  200. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +86 -0
  201. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -0
  202. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +167 -0
  203. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +19 -0
  204. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +88 -0
  205. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  206. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  207. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +24 -0
  208. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +11 -0
  209. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
  210. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +19 -0
  211. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  212. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +56 -0
  213. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +5 -0
  214. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +4 -0
  215. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -0
  216. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +47 -0
  217. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +25 -0
  218. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +13 -0
  219. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +62 -0
  220. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +15 -0
  221. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +12 -0
  222. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +9 -0
  223. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +13 -0
  224. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +9 -0
  225. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +8 -0
  226. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +6 -0
  227. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +15 -0
  228. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
  229. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +5 -0
  230. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +4 -0
  231. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +3 -0
  232. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +46 -0
  233. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +25 -0
  234. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +13 -0
  235. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +62 -0
  236. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +13 -0
  237. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +12 -0
  238. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
  239. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +7 -0
  240. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
  241. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +6 -0
  242. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +6 -0
  243. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +13 -0
  244. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
  245. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +12 -0
  246. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +13 -0
  247. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/package.json +67 -0
  248. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CHANGELOG.md +274 -0
  249. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/CONTRIBUTING.md +18 -0
  250. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/LICENSE.md +9 -0
  251. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/README.md +466 -0
  252. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/bin/uuid +2 -0
  253. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  254. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  255. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  256. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  257. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  258. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  259. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  260. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  261. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  262. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  263. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  264. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  265. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  266. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  267. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  268. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  269. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/index.js +9 -0
  270. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  271. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/native.js +4 -0
  272. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  273. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  274. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  275. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  276. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  277. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  278. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  279. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  280. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  281. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  282. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  283. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  284. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-browser/version.js +11 -0
  285. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/index.js +9 -0
  286. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/md5.js +13 -0
  287. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/native.js +4 -0
  288. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/nil.js +1 -0
  289. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/parse.js +35 -0
  290. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/regex.js +1 -0
  291. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/rng.js +12 -0
  292. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  293. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  294. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v1.js +95 -0
  295. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v3.js +4 -0
  296. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v35.js +66 -0
  297. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v4.js +29 -0
  298. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/v5.js +4 -0
  299. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/validate.js +7 -0
  300. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/esm-node/version.js +11 -0
  301. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/index.js +79 -0
  302. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5-browser.js +223 -0
  303. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/md5.js +23 -0
  304. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native-browser.js +11 -0
  305. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/native.js +15 -0
  306. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/nil.js +8 -0
  307. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/parse.js +45 -0
  308. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/regex.js +8 -0
  309. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng-browser.js +25 -0
  310. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/rng.js +24 -0
  311. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1-browser.js +104 -0
  312. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/sha1.js +23 -0
  313. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/stringify.js +44 -0
  314. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/uuid-bin.js +85 -0
  315. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v1.js +107 -0
  316. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v3.js +16 -0
  317. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v35.js +80 -0
  318. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v4.js +43 -0
  319. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/v5.js +16 -0
  320. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/validate.js +17 -0
  321. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/dist/version.js +21 -0
  322. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/package.json +135 -0
  323. package/node_modules/@amzn/amazon-q-developer-streaming-client/node_modules/uuid/wrapper.mjs +10 -0
  324. package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +88 -0
  325. package/node_modules/@amzn/codewhisperer-streaming/README.md +121 -1
  326. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +1 -0
  327. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +2 -0
  328. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +266 -42
  329. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +205 -3
  330. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +1 -1
  331. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +8 -6
  332. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +1 -0
  333. package/node_modules/@amzn/codewhisperer-streaming/dist-es/endpoints.js +2 -0
  334. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +241 -33
  335. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +207 -5
  336. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +2 -2
  337. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +9 -7
  338. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +18 -0
  339. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +1 -0
  340. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +168 -8
  341. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +169 -8
  342. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +168 -8
  343. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +874 -221
  344. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +6 -1
  345. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +3 -1
  346. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +3 -1
  347. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +25 -17
  348. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +12 -3
  349. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
  350. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +6 -8
  351. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +6 -2
  352. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -0
  353. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +3 -1
  354. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +4 -3
  355. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +8 -3
  356. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +6 -2
  357. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +5 -1
  358. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/package.json +11 -12
  359. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
  360. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
  361. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
  362. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
  363. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +59 -0
  364. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +47 -1
  365. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
  366. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +12 -0
  367. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
  368. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +54 -0
  369. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +21 -0
  370. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
  371. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +7 -0
  372. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +4 -4
  373. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
  374. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +6 -6
  375. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -39
  376. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
  377. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +3 -1
  378. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
  379. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
  380. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
  381. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
  382. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
  383. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
  384. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
  385. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
  386. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
  387. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
  388. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
  389. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
  390. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
  391. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
  392. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
  393. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +1 -1
  394. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +1 -1
  395. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +10 -10
  396. package/node_modules/@amzn/codewhisperer-streaming/package.json +42 -42
  397. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -0
  398. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -0
  399. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -0
  400. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -0
  401. package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-cjs/index.js +8 -30
  402. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -0
  403. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -0
  404. package/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +1 -0
  405. package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpRequest.js +8 -13
  406. package/node_modules/@smithy/protocol-http/dist-es/types.js +1 -0
  407. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +23 -0
  408. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +23 -0
  409. package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/package.json +6 -6
  410. package/out/client/sigv4/codewhisperer.d.ts +2 -2
  411. package/out/client/sigv4/codewhisperer.js +4 -3
  412. package/out/client/sigv4/codewhisperer.js.map +1 -1
  413. package/out/client/streamingClient/codewhispererStreamingClient.d.ts +3 -3
  414. package/out/client/streamingClient/codewhispererStreamingClient.js +4 -3
  415. package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
  416. package/out/client/token/codewhisperer.d.ts +2 -2
  417. package/out/client/token/codewhisperer.js +4 -3
  418. package/out/client/token/codewhisperer.js.map +1 -1
  419. package/out/index.d.ts +1 -0
  420. package/out/index.js +4 -1
  421. package/out/index.js.map +1 -1
  422. package/out/language-server/agenticChat/agenticChatController.d.ts +35 -4
  423. package/out/language-server/agenticChat/agenticChatController.js +1341 -91
  424. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  425. package/out/language-server/agenticChat/agenticChatEventParser.d.ts +52 -0
  426. package/out/language-server/agenticChat/agenticChatEventParser.js +189 -0
  427. package/out/language-server/agenticChat/agenticChatEventParser.js.map +1 -0
  428. package/out/language-server/agenticChat/agenticChatResultStream.d.ts +83 -0
  429. package/out/language-server/agenticChat/agenticChatResultStream.js +176 -0
  430. package/out/language-server/agenticChat/agenticChatResultStream.js.map +1 -0
  431. package/out/language-server/agenticChat/constants.d.ts +4 -0
  432. package/out/language-server/agenticChat/constants.js +8 -0
  433. package/out/language-server/agenticChat/constants.js.map +1 -0
  434. package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +14 -0
  435. package/out/language-server/agenticChat/context/addtionalContextProvider.js +191 -0
  436. package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -0
  437. package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +54 -0
  438. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +246 -0
  439. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -0
  440. package/out/language-server/agenticChat/context/contextCommandsProvider.d.ts +20 -0
  441. package/out/language-server/agenticChat/context/contextCommandsProvider.js +206 -0
  442. package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -0
  443. package/out/language-server/agenticChat/context/contextUtils.d.ts +27 -0
  444. package/out/language-server/agenticChat/context/contextUtils.js +44 -0
  445. package/out/language-server/agenticChat/context/contextUtils.js.map +1 -0
  446. package/out/language-server/agenticChat/errors.d.ts +10 -0
  447. package/out/language-server/agenticChat/errors.js +42 -0
  448. package/out/language-server/agenticChat/errors.js.map +1 -0
  449. package/out/language-server/agenticChat/qAgenticChatServer.js +42 -15
  450. package/out/language-server/agenticChat/qAgenticChatServer.js.map +1 -1
  451. package/out/language-server/agenticChat/tabBarController.d.ts +55 -0
  452. package/out/language-server/agenticChat/tabBarController.js +216 -0
  453. package/out/language-server/agenticChat/tabBarController.js.map +1 -0
  454. package/out/language-server/agenticChat/textFormatting.d.ts +4 -0
  455. package/out/language-server/agenticChat/textFormatting.js +28 -0
  456. package/out/language-server/agenticChat/textFormatting.js.map +1 -0
  457. package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +89 -0
  458. package/out/language-server/agenticChat/tools/chatDb/chatDb.js +561 -0
  459. package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -0
  460. package/out/language-server/agenticChat/tools/chatDb/util.d.ts +74 -0
  461. package/out/language-server/agenticChat/tools/chatDb/util.js +255 -0
  462. package/out/language-server/agenticChat/tools/chatDb/util.js.map +1 -0
  463. package/out/language-server/agenticChat/tools/codeSearch.d.ts +43 -0
  464. package/out/language-server/agenticChat/tools/codeSearch.js +168 -0
  465. package/out/language-server/agenticChat/tools/codeSearch.js.map +1 -0
  466. package/out/language-server/agenticChat/tools/executeBash.d.ts +70 -0
  467. package/out/language-server/agenticChat/tools/executeBash.js +476 -0
  468. package/out/language-server/agenticChat/tools/executeBash.js.map +1 -0
  469. package/out/language-server/agenticChat/tools/fileSearch.d.ts +45 -0
  470. package/out/language-server/agenticChat/tools/fileSearch.js +115 -0
  471. package/out/language-server/agenticChat/tools/fileSearch.js.map +1 -0
  472. package/out/language-server/agenticChat/tools/fsRead.d.ts +13 -9
  473. package/out/language-server/agenticChat/tools/fsRead.js +68 -22
  474. package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
  475. package/out/language-server/agenticChat/tools/fsWrite.d.ts +21 -12
  476. package/out/language-server/agenticChat/tools/fsWrite.js +127 -44
  477. package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
  478. package/out/language-server/agenticChat/tools/listDirectory.d.ts +36 -0
  479. package/out/language-server/agenticChat/tools/listDirectory.js +110 -0
  480. package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -0
  481. package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.d.ts +100 -0
  482. package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js +140 -0
  483. package/out/language-server/agenticChat/tools/lspApplyWorkspaceEdit.js.map +1 -0
  484. package/out/language-server/agenticChat/tools/lspGetDocuments.d.ts +24 -0
  485. package/out/language-server/agenticChat/tools/lspGetDocuments.js +45 -0
  486. package/out/language-server/agenticChat/tools/lspGetDocuments.js.map +1 -0
  487. package/out/language-server/agenticChat/tools/lspReadDocumentContents.d.ts +37 -0
  488. package/out/language-server/agenticChat/tools/lspReadDocumentContents.js +116 -0
  489. package/out/language-server/agenticChat/tools/lspReadDocumentContents.js.map +1 -0
  490. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +21 -0
  491. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +106 -0
  492. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -0
  493. package/out/language-server/agenticChat/tools/mcp/mcpTool.d.ts +21 -0
  494. package/out/language-server/agenticChat/tools/mcp/mcpTool.js +54 -0
  495. package/out/language-server/agenticChat/tools/mcp/mcpTool.js.map +1 -0
  496. package/out/language-server/agenticChat/tools/mcp/mcpTypes.d.ts +28 -0
  497. package/out/language-server/agenticChat/tools/mcp/mcpTypes.js +7 -0
  498. package/out/language-server/agenticChat/tools/mcp/mcpTypes.js.map +1 -0
  499. package/out/language-server/agenticChat/tools/mcp/mcpUtils.d.ts +7 -0
  500. package/out/language-server/agenticChat/tools/mcp/mcpUtils.js +78 -0
  501. package/out/language-server/agenticChat/tools/mcp/mcpUtils.js.map +1 -0
  502. package/out/language-server/agenticChat/tools/toolServer.d.ts +3 -0
  503. package/out/language-server/agenticChat/tools/toolServer.js +62 -6
  504. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  505. package/out/language-server/agenticChat/tools/toolShared.d.ts +48 -5
  506. package/out/language-server/agenticChat/tools/toolShared.js +109 -2
  507. package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
  508. package/out/language-server/chat/chatController.d.ts +7 -4
  509. package/out/language-server/chat/chatController.js +13 -18
  510. package/out/language-server/chat/chatController.js.map +1 -1
  511. package/out/language-server/chat/chatEventParser.d.ts +3 -1
  512. package/out/language-server/chat/chatEventParser.js.map +1 -1
  513. package/out/language-server/chat/chatSessionManagementService.d.ts +2 -2
  514. package/out/language-server/chat/chatSessionManagementService.js +4 -4
  515. package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
  516. package/out/language-server/chat/chatSessionService.d.ts +36 -3
  517. package/out/language-server/chat/chatSessionService.js +88 -5
  518. package/out/language-server/chat/chatSessionService.js.map +1 -1
  519. package/out/language-server/chat/constants.d.ts +3 -0
  520. package/out/language-server/chat/constants.js +17 -1
  521. package/out/language-server/chat/constants.js.map +1 -1
  522. package/out/language-server/chat/contexts/documentContext.d.ts +2 -1
  523. package/out/language-server/chat/contexts/documentContext.js +2 -0
  524. package/out/language-server/chat/contexts/documentContext.js.map +1 -1
  525. package/out/language-server/chat/contexts/triggerContext.d.ts +7 -3
  526. package/out/language-server/chat/contexts/triggerContext.js +39 -2
  527. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  528. package/out/language-server/chat/qChatServer.d.ts +4 -1
  529. package/out/language-server/chat/qChatServer.js +17 -17
  530. package/out/language-server/chat/qChatServer.js.map +1 -1
  531. package/out/language-server/chat/quickActions.d.ts +2 -0
  532. package/out/language-server/chat/quickActions.js +2 -0
  533. package/out/language-server/chat/quickActions.js.map +1 -1
  534. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +5 -3
  535. package/out/language-server/chat/telemetry/chatTelemetryController.js +50 -4
  536. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  537. package/out/language-server/chat/tools/relevantTextDocuments.d.ts +3 -0
  538. package/out/language-server/chat/tools/relevantTextDocuments.js +42 -0
  539. package/out/language-server/chat/tools/relevantTextDocuments.js.map +1 -0
  540. package/out/language-server/chat/utils.js +18 -3
  541. package/out/language-server/chat/utils.js.map +1 -1
  542. package/out/language-server/configuration/qConfigurationServer.d.ts +2 -3
  543. package/out/language-server/configuration/qConfigurationServer.js +27 -20
  544. package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
  545. package/out/language-server/inline-completion/auto-trigger/coefficients.json +4 -1
  546. package/out/language-server/inline-completion/codeWhispererServer.d.ts +2 -3
  547. package/out/language-server/inline-completion/codeWhispererServer.js +29 -30
  548. package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
  549. package/out/language-server/localProjectContext/localProjectContextServer.d.ts +2 -0
  550. package/out/language-server/localProjectContext/localProjectContextServer.js +132 -0
  551. package/out/language-server/localProjectContext/localProjectContextServer.js.map +1 -0
  552. package/out/language-server/netTransform/artifactManager.js +12 -4
  553. package/out/language-server/netTransform/artifactManager.js.map +1 -1
  554. package/out/language-server/netTransform/metrics.d.ts +2 -0
  555. package/out/language-server/netTransform/metrics.js +26 -1
  556. package/out/language-server/netTransform/metrics.js.map +1 -1
  557. package/out/language-server/netTransform/models.d.ts +22 -0
  558. package/out/language-server/netTransform/models.js +12 -1
  559. package/out/language-server/netTransform/models.js.map +1 -1
  560. package/out/language-server/netTransform/netTransformServer.d.ts +2 -4
  561. package/out/language-server/netTransform/netTransformServer.js +21 -16
  562. package/out/language-server/netTransform/netTransformServer.js.map +1 -1
  563. package/out/language-server/netTransform/tests/mockData.js +1 -0
  564. package/out/language-server/netTransform/tests/mockData.js.map +1 -1
  565. package/out/language-server/netTransform/transformHandler.d.ts +13 -5
  566. package/out/language-server/netTransform/transformHandler.js +45 -12
  567. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  568. package/out/language-server/netTransform/validation.d.ts +11 -0
  569. package/out/language-server/netTransform/validation.js +33 -0
  570. package/out/language-server/netTransform/validation.js.map +1 -1
  571. package/out/language-server/securityScan/codeWhispererSecurityScanServer.js +10 -11
  572. package/out/language-server/securityScan/codeWhispererSecurityScanServer.js.map +1 -1
  573. package/out/language-server/securityScan/types.d.ts +2 -1
  574. package/out/shared/amazonQServer.d.ts +5 -0
  575. package/out/shared/amazonQServer.js +53 -0
  576. package/out/shared/amazonQServer.js.map +1 -0
  577. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.d.ts +19 -0
  578. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js +61 -0
  579. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js.map +1 -0
  580. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +14 -28
  581. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +78 -99
  582. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
  583. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +72 -5
  584. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js +116 -0
  585. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -1
  586. package/out/shared/amazonQServiceManager/configurationUtils.d.ts +13 -1
  587. package/out/shared/amazonQServiceManager/configurationUtils.js +41 -22
  588. package/out/shared/amazonQServiceManager/configurationUtils.js.map +1 -1
  589. package/out/shared/amazonQServiceManager/errors.d.ts +9 -0
  590. package/out/shared/amazonQServiceManager/errors.js +22 -1
  591. package/out/shared/amazonQServiceManager/errors.js.map +1 -1
  592. package/out/shared/amazonQServiceManager/qDeveloperProfiles.d.ts +2 -1
  593. package/out/shared/amazonQServiceManager/qDeveloperProfiles.js +26 -3
  594. package/out/shared/amazonQServiceManager/qDeveloperProfiles.js.map +1 -1
  595. package/out/shared/amazonQServiceManager/testUtils.d.ts +48 -0
  596. package/out/shared/amazonQServiceManager/testUtils.js +112 -0
  597. package/out/shared/amazonQServiceManager/testUtils.js.map +1 -0
  598. package/out/shared/codeWhispererService.d.ts +3 -3
  599. package/out/shared/codeWhispererService.js +4 -4
  600. package/out/shared/codeWhispererService.js.map +1 -1
  601. package/out/shared/constants.d.ts +10 -0
  602. package/out/shared/constants.js +12 -1
  603. package/out/shared/constants.js.map +1 -1
  604. package/out/shared/initializeUtils.d.ts +3 -0
  605. package/out/shared/initializeUtils.js +32 -0
  606. package/out/shared/initializeUtils.js.map +1 -0
  607. package/out/shared/localProjectContextController.d.ts +56 -0
  608. package/out/shared/localProjectContextController.js +371 -0
  609. package/out/shared/localProjectContextController.js.map +1 -0
  610. package/out/shared/models/constants.d.ts +5 -0
  611. package/out/shared/models/constants.js +6 -1
  612. package/out/shared/models/constants.js.map +1 -1
  613. package/out/shared/models/model.d.ts +2 -1
  614. package/out/shared/proxy-server.d.ts +4 -2
  615. package/out/shared/proxy-server.js +11 -10
  616. package/out/shared/proxy-server.js.map +1 -1
  617. package/out/shared/streamingClientService.d.ts +23 -7
  618. package/out/shared/streamingClientService.js +56 -9
  619. package/out/shared/streamingClientService.js.map +1 -1
  620. package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +4 -1
  621. package/out/shared/supplementalContextUtil/crossFileContextUtil.js +73 -17
  622. package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  623. package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +8 -0
  624. package/out/shared/supplementalContextUtil/supplementalContextUtil.js +63 -2
  625. package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
  626. package/out/shared/telemetry/telemetryService.d.ts +16 -2
  627. package/out/shared/telemetry/telemetryService.js +26 -3
  628. package/out/shared/telemetry/telemetryService.js.map +1 -1
  629. package/out/shared/telemetry/types.d.ts +37 -2
  630. package/out/shared/telemetry/types.js +2 -0
  631. package/out/shared/telemetry/types.js.map +1 -1
  632. package/out/shared/telemetryUtils.d.ts +1 -0
  633. package/out/shared/telemetryUtils.js +5 -3
  634. package/out/shared/telemetryUtils.js.map +1 -1
  635. package/out/shared/testUtils.d.ts +2 -1
  636. package/out/shared/testUtils.js +10 -1
  637. package/out/shared/testUtils.js.map +1 -1
  638. package/out/shared/utils.d.ts +30 -0
  639. package/out/shared/utils.js +184 -0
  640. package/out/shared/utils.js.map +1 -1
  641. package/package.json +21 -7
  642. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -53
  643. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -53
  644. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
  645. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
  646. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
  647. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -12
  648. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -206
  649. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
  650. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
  651. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
  652. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
  653. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
  654. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
  655. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
  656. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -8
  657. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
  658. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -8
  659. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
  660. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
  661. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
  662. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
  663. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
  664. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
  665. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
  666. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
  667. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
  668. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
  669. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -5
  670. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -4
  671. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -44
  672. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
  673. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -8
  674. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -26
  675. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -10
  676. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
  677. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
  678. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -15
  679. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
  680. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
  681. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
  682. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
  683. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
  684. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -5
  685. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -4
  686. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -44
  687. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
  688. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -8
  689. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -26
  690. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -10
  691. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
  692. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
  693. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -15
  694. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
  695. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -13
  696. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -13
  697. package/out/shared/amazonQServiceManager/factories.d.ts +0 -15
  698. package/out/shared/amazonQServiceManager/factories.js +0 -47
  699. package/out/shared/amazonQServiceManager/factories.js.map +0 -1
  700. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/httpHandler.js → amazon-q-developer-streaming-client/dist-es/extensionConfiguration.js} +0 -0
  701. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types}/LICENSE +0 -0
  702. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/abort.js} +0 -0
  703. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js → amazon-q-developer-streaming-client/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js} +0 -0
  704. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js} +0 -0
  705. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → amazon-q-developer-streaming-client/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js} +0 -0
  706. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/constants.js} +0 -0
  707. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js} +0 -0
  708. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js} +0 -0
  709. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js} +0 -0
  710. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js} +0 -0
  711. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js} +0 -0
  712. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js} +0 -0
  713. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js} +0 -0
  714. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js} +0 -0
  715. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js} +0 -0
  716. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js} +0 -0
  717. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js} +0 -0
  718. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/extensions → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector}/index.js +0 -0
  719. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
  720. /package/node_modules/@amzn/{codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js → amazon-q-developer-streaming-client/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
  721. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/LICENSE +0 -0
  722. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/README.md +0 -0
  723. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js → @smithy/protocol-http/dist-cjs/Field.js} +0 -0
  724. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js → @smithy/protocol-http/dist-cjs/Fields.js} +0 -0
  725. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js → @smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
  726. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Field.js +0 -0
  727. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Fields.js +0 -0
  728. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
  729. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/index.js +0 -0
  730. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpResponse.js +0 -0
  731. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/index.js +0 -0
  732. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/isValidHostname.js +0 -0
  733. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Field.d.ts +0 -0
  734. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Fields.d.ts +0 -0
  735. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
  736. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/index.d.ts +0 -0
  737. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpHandler.d.ts +0 -0
  738. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpResponse.d.ts +0 -0
  739. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/index.d.ts +0 -0
  740. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/isValidHostname.d.ts +0 -0
  741. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
  742. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
  743. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
  744. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
  745. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
  746. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
  747. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
  748. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
  749. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
  750. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/types.d.ts +0 -0
@@ -10,6 +10,8 @@ const securityScanHandler_1 = require("./securityScanHandler");
10
10
  const utils_1 = require("../../shared/utils");
11
11
  const uuid_1 = require("uuid");
12
12
  const AmazonQTokenServiceManager_1 = require("../../shared/amazonQServiceManager/AmazonQTokenServiceManager");
13
+ const utils_2 = require("../../shared/utils");
14
+ const errors_1 = require("../../shared/amazonQServiceManager/errors");
13
15
  const RunSecurityScanCommand = 'aws/codewhisperer/runSecurityScan';
14
16
  const CancelSecurityScanCommand = 'aws/codewhisperer/cancelSecurityScan';
15
17
  const SecurityScanServerToken = () => ({ credentialsProvider, workspace, logging, lsp, telemetry, runtime, sdkInitializator }) => {
@@ -152,10 +154,14 @@ const SecurityScanServerToken = () => ({ credentialsProvider, workspace, logging
152
154
  }
153
155
  logging.log(`Security scan failed. ${error}`);
154
156
  securityScanTelemetryEntry.result = 'Failed';
155
- const err = (0, utils_1.getErrorMessage)(error);
157
+ const errMessage = (0, utils_1.getErrorMessage)(error);
158
+ const exception = (0, utils_2.hasConnectionExpired)(error)
159
+ ? new errors_1.AmazonQServiceConnectionExpiredError(errMessage)
160
+ : error;
156
161
  return {
157
162
  status: 'Failed',
158
- error: err,
163
+ errorMessage: errMessage,
164
+ exception: exception,
159
165
  };
160
166
  }
161
167
  finally {
@@ -188,15 +194,8 @@ const SecurityScanServerToken = () => ({ credentialsProvider, workspace, logging
188
194
  },
189
195
  };
190
196
  };
191
- const onInitializedHandler = () => {
192
- amazonQServiceManager = AmazonQTokenServiceManager_1.AmazonQTokenServiceManager.getInstance({
193
- lsp,
194
- logging,
195
- runtime,
196
- credentialsProvider,
197
- sdkInitializator,
198
- workspace,
199
- });
197
+ const onInitializedHandler = async () => {
198
+ amazonQServiceManager = AmazonQTokenServiceManager_1.AmazonQTokenServiceManager.getInstance();
200
199
  scanHandler = new securityScanHandler_1.SecurityScanHandler(amazonQServiceManager, workspace, logging);
201
200
  };
202
201
  lsp.onExecuteCommand(onExecuteCommandHandler);
@@ -1 +1 @@
1
- {"version":3,"file":"codeWhispererSecurityScanServer.js","sourceRoot":"","sources":["../../../src/language-server/securityScan/codeWhispererSecurityScanServer.ts"],"names":[],"mappings":";;;AAQA,2CAAwC;AACxC,6BAAmC;AAGnC,qFAAiF;AACjF,sEAAuG;AACvG,uFAA+E;AAC/E,+DAAuF;AAGvF,8CAA+D;AAI/D,+BAAmC;AACnC,8GAA0G;AAE1G,MAAM,sBAAsB,GAAG,mCAAmC,CAAA;AAClE,MAAM,yBAAyB,GAAG,sCAAsC,CAAA;AAEjE,MAAM,uBAAuB,GAChC,GAAW,EAAE,CACb,CAAC,EAAE,mBAAmB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACvF,IAAI,qBAAiD,CAAA;IACrD,IAAI,WAAgC,CAAA;IAEpC,MAAM,mBAAmB,GAAG,IAAI,yCAA+B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAE7E,MAAM,eAAe,GAAG,KAAK,EAAE,MAAiC,EAAE,KAAwB,EAAE,EAAE;QAC1F;;WAEG;QACH,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QACrC,MAAM,mBAAmB,CAAC,gBAAgB,EAAE,CAAA;QAC5C,IAAI,SAAiB,CAAA;QACrB,MAAM,qBAAqB,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAA;QAC/C,IAAI,0BAA0B,GAAG,CAAC,CAAA;QAClC,MAAM,0BAA0B,GAA+B;YAC3D,oCAAoC,EAAE,CAAC;YACvC,oCAAoC,EAAE,CAAC;YACvC,0BAA0B,EAAE,CAAC;YAC7B,QAAQ,EAAE,CAAC;YACX,yBAAyB,EAAE,CAAC;YAC5B,uBAAuB,EAAE,CAAC;YAC1B,kCAAkC,EAAE,CAAC;YACrC,MAAM,EAAE,WAAW;YACnB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AC,KAAK,EAAC,EAAE;QACpD,wFAAwF;QACxF,MAAM,mBAAmB,CAAC,gBAAgB,EAAE,CAAA;IAChD,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAA;IAEvD,OAAO,GAAG,EAAE;QACR,mBAAmB;QACnB,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE,CAAA;IACtC,CAAC,CAAA;AACL,CAAC,CAAA;AA1PQ,QAAA,uBAAuB,2BA0P/B"}
1
+ {"version":3,"file":"codeWhispererSecurityScanServer.js","sourceRoot":"","sources":["../../../src/language-server/securityScan/codeWhispererSecurityScanServer.ts"],"names":[],"mappings":";;;AAQA,2CAAwC;AACxC,6BAAmC;AAEnC,qFAAiF;AACjF,sEAAuG;AACvG,uFAA+E;AAC/E,+DAAuF;AAGvF,8CAA+D;AAC/D,+BAAmC;AACnC,8GAA0G;AAC1G,8CAAyD;AACzD,sEAAgG;AAEhG,MAAM,sBAAsB,GAAG,mCAAmC,CAAA;AAClE,MAAM,yBAAyB,GAAG,sCAAsC,CAAA;AAEjE,MAAM,uBAAuB,GAChC,GAAW,EAAE,CACb,CAAC,EAAE,mBAAmB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACvF,IAAI,qBAAiD,CAAA;IACrD,IAAI,WAAgC,CAAA;IAEpC,MAAM,mBAAmB,GAAG,IAAI,yCAA+B,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAE7E,MAAM,eAAe,GAAG,KAAK,EAAE,MAAiC,EAAE,KAAwB,EAAE,EAAE;QAC1F;;WAEG;QACH,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QACrC,MAAM,mBAAmB,CAAC,gBAAgB,EAAE,CAAA;QAC5C,IAAI,SAAiB,CAAA;QACrB,MAAM,qBAAqB,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAA;QAC/C,IA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,CAAC,CAAA;QAEvF,IAAI,CAAC,YAAY,IAAI,CAAC,UAAU,EAAE,CAAC;YAC/B,OAAM;QACV,CAAC;QAED,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;YACpC,MAAM,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QAC7E,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;QACpD,wFAAwF;QACxF,MAAM,mBAAmB,CAAC,gBAAgB,EAAE,CAAA;IAChD,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAA;IAEvD,OAAO,GAAG,EAAE;QACR,mBAAmB;QACnB,WAAW,EAAE,WAAW,CAAC,OAAO,EAAE,CAAA;IACtC,CAAC,CAAA;AACL,CAAC,CAAA;AAzPQ,QAAA,uBAAuB,2BAyP/B"}
@@ -55,7 +55,8 @@ export interface SecurityScanRequestParams extends ExecuteCommandParams {
55
55
  export interface SecurityScanResponse {
56
56
  status: SecurityScanStatus;
57
57
  findings?: SecurityScanFindings;
58
- error?: string;
58
+ errorMessage?: string;
59
+ exception?: Error;
59
60
  }
60
61
  export interface SecurityScanFindings {
61
62
  totalFindings: number;
@@ -0,0 +1,5 @@
1
+ import { Server } from '@aws/language-server-runtimes/server-interface';
2
+ import { AmazonQBaseServiceManager, QServiceManagerFeatures } from './amazonQServiceManager/BaseAmazonQServiceManager';
3
+ export declare const AmazonQServiceServerFactory: (serviceManager: (features: QServiceManagerFeatures) => AmazonQBaseServiceManager) => Server;
4
+ export declare const AmazonQServiceServerIAM: Server;
5
+ export declare const AmazonQServiceServerToken: Server;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmazonQServiceServerToken = exports.AmazonQServiceServerIAM = exports.AmazonQServiceServerFactory = void 0;
4
+ const AmazonQIAMServiceManager_1 = require("./amazonQServiceManager/AmazonQIAMServiceManager");
5
+ const AmazonQTokenServiceManager_1 = require("./amazonQServiceManager/AmazonQTokenServiceManager");
6
+ const LOGGING_PREFIX = '[AMAZON Q SERVER]: ';
7
+ const AmazonQServiceServerFactory = (serviceManager) => ({ credentialsProvider, lsp, workspace, logging, runtime, sdkInitializator }) => {
8
+ let amazonQServiceManager;
9
+ const log = (message) => {
10
+ logging.debug(`${LOGGING_PREFIX}${message}`);
11
+ };
12
+ /*
13
+ The service manager relies on client params to fully initialize, so the initialization needs
14
+ to be deferred to the LSP handshake. Dependent servers may assume the service manager is
15
+ available when the initialized notification has been received.
16
+ */
17
+ lsp.addInitializer((_params) => {
18
+ amazonQServiceManager = serviceManager({
19
+ credentialsProvider,
20
+ lsp,
21
+ workspace,
22
+ logging,
23
+ runtime,
24
+ sdkInitializator,
25
+ });
26
+ return {
27
+ capabilities: {},
28
+ awsServerCapabilities: {},
29
+ };
30
+ });
31
+ lsp.onInitialized(async () => {
32
+ log('Received onInitialized notification');
33
+ await amazonQServiceManager.handleDidChangeConfiguration();
34
+ });
35
+ lsp.didChangeConfiguration(async () => {
36
+ log('Received didChangeConfiguration notification');
37
+ await amazonQServiceManager.handleDidChangeConfiguration();
38
+ });
39
+ lsp.workspace.onUpdateConfiguration(async (params, token) => {
40
+ log('Received onUpdateConfiguration request');
41
+ await amazonQServiceManager.handleOnUpdateConfiguration(params, token);
42
+ });
43
+ credentialsProvider.onCredentialsDeleted((type) => {
44
+ log('Received onCredentialsDeleted notification');
45
+ amazonQServiceManager.handleOnCredentialsDeleted(type);
46
+ });
47
+ logging.log('Amazon Q Service server has been initialised');
48
+ return () => { };
49
+ };
50
+ exports.AmazonQServiceServerFactory = AmazonQServiceServerFactory;
51
+ exports.AmazonQServiceServerIAM = (0, exports.AmazonQServiceServerFactory)(AmazonQIAMServiceManager_1.initBaseIAMServiceManager);
52
+ exports.AmazonQServiceServerToken = (0, exports.AmazonQServiceServerFactory)(AmazonQTokenServiceManager_1.initBaseTokenServiceManager);
53
+ //# sourceMappingURL=amazonQServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amazonQServer.js","sourceRoot":"","sources":["../../src/shared/amazonQServer.ts"],"names":[],"mappings":";;;AAQA,+FAA4F;AAC5F,mGAAgG;AAEhG,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAErC,MAAM,2BAA2B,GACpC,CAAC,cAAgF,EAAU,EAAE,CAC7F,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5E,IAAI,qBAAgD,CAAA;IAEpD,MAAM,GAAG,GAAG,CAAC,OAAe,EAAE,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,GAAG,cAAc,GAAG,OAAO,EAAE,CAAC,CAAA;IAChD,CAAC,CAAA;IAED;;;;MAIE;IACF,GAAG,CAAC,cAAc,CAAC,CAAC,OAAyB,EAAE,EAAE;QAC7C,qBAAqB,GAAG,cAAc,CAAC;YACnC,mBAAmB;YACnB,GAAG;YACH,SAAS;YACT,OAAO;YACP,OAAO;YACP,gBAAgB;SACnB,CAAC,CAAA;QAEF,OAAO;YACH,YAAY,EAAE,EAAE;YAChB,qBAAqB,EAAE,EAAE;SAC5B,CAAA;IACL,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,aAAa,CAAC,KAAK,IAAI,EAAE;QACzB,GAAG,CAAC,qCAAqC,CAAC,CAAA;QAC1C,MAAM,qBAAqB,CAAC,4BAA4B,EAAE,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,sBAAsB,CAAC,KAAK,IAAI,EAAE;QAClC,GAAG,CAAC,8CAA8C,CAAC,CAAA;QACnD,MAAM,qBAAqB,CAAC,4BAA4B,EAAE,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,GAAG,CAAC,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAiC,EAAE,KAAwB,EAAE,EAAE;QACtG,GAAG,CAAC,wCAAwC,CAAC,CAAA;QAC7C,MAAM,qBAAqB,CAAC,2BAA2B,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAC1E,CAAC,CAAC,CAAA;IAEF,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,IAAqB,EAAE,EAAE;QAC/D,GAAG,CAAC,4CAA4C,CAAC,CAAA;QACjD,qBAAqB,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAA;IAC1D,CAAC,CAAC,CAAA;IAEF,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAA;IAC3D,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;AACnB,CAAC,CAAA;AApDQ,QAAA,2BAA2B,+BAoDnC;AAEQ,QAAA,uBAAuB,GAAG,IAAA,mCAA2B,EAAC,oDAAyB,CAAC,CAAA;AAChF,QAAA,yBAAyB,GAAG,IAAA,mCAA2B,EAAC,wDAA2B,CAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { CodeWhispererServiceIAM } from '../codeWhispererService';
2
+ import { AmazonQBaseServiceManager, BaseAmazonQServiceManager, QServiceManagerFeatures } from './BaseAmazonQServiceManager';
3
+ import { StreamingClientServiceIAM } from '../streamingClientService';
4
+ import { CancellationToken, CredentialsType, UpdateConfigurationParams } from '@aws/language-server-runtimes/server-interface';
5
+ export declare class AmazonQIAMServiceManager extends BaseAmazonQServiceManager<CodeWhispererServiceIAM, StreamingClientServiceIAM> {
6
+ private static instance;
7
+ private region;
8
+ private endpoint;
9
+ private constructor();
10
+ static initInstance(features: QServiceManagerFeatures): AmazonQIAMServiceManager;
11
+ static getInstance(): AmazonQIAMServiceManager;
12
+ getCodewhispererService(): CodeWhispererServiceIAM;
13
+ getStreamingClient(): StreamingClientServiceIAM;
14
+ handleOnCredentialsDeleted(_type: CredentialsType): void;
15
+ handleOnUpdateConfiguration(_params: UpdateConfigurationParams, _token: CancellationToken): Promise<void>;
16
+ static resetInstance(): void;
17
+ }
18
+ export declare const initBaseIAMServiceManager: (features: QServiceManagerFeatures) => AmazonQIAMServiceManager;
19
+ export declare const getOrThrowBaseIAMServiceManager: () => AmazonQBaseServiceManager;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOrThrowBaseIAMServiceManager = exports.initBaseIAMServiceManager = exports.AmazonQIAMServiceManager = void 0;
4
+ const codeWhispererService_1 = require("../codeWhispererService");
5
+ const BaseAmazonQServiceManager_1 = require("./BaseAmazonQServiceManager");
6
+ const configurationUtils_1 = require("./configurationUtils");
7
+ const streamingClientService_1 = require("../streamingClientService");
8
+ const errors_1 = require("./errors");
9
+ class AmazonQIAMServiceManager extends BaseAmazonQServiceManager_1.BaseAmazonQServiceManager {
10
+ static instance = null;
11
+ region;
12
+ endpoint;
13
+ constructor(features) {
14
+ super(features);
15
+ const amazonQRegionAndEndpoint = (0, configurationUtils_1.getAmazonQRegionAndEndpoint)(features.runtime, features.logging);
16
+ this.region = amazonQRegionAndEndpoint.region;
17
+ this.endpoint = amazonQRegionAndEndpoint.endpoint;
18
+ }
19
+ static initInstance(features) {
20
+ if (!AmazonQIAMServiceManager.instance) {
21
+ AmazonQIAMServiceManager.instance = new AmazonQIAMServiceManager(features);
22
+ return AmazonQIAMServiceManager.instance;
23
+ }
24
+ throw new errors_1.AmazonQServiceAlreadyInitializedError();
25
+ }
26
+ static getInstance() {
27
+ if (!AmazonQIAMServiceManager.instance) {
28
+ throw new errors_1.AmazonQServiceInitializationError('Amazon Q service has not been initialized yet. Make sure the Amazon Q service server is present and properly initialized.');
29
+ }
30
+ return AmazonQIAMServiceManager.instance;
31
+ }
32
+ getCodewhispererService() {
33
+ if (!this.cachedCodewhispererService) {
34
+ this.cachedCodewhispererService = new codeWhispererService_1.CodeWhispererServiceIAM(this.features.credentialsProvider, this.features.workspace, this.features.logging, this.region, this.endpoint, this.features.sdkInitializator);
35
+ this.updateCachedServiceConfig();
36
+ }
37
+ return this.cachedCodewhispererService;
38
+ }
39
+ getStreamingClient() {
40
+ if (!this.cachedStreamingClient) {
41
+ this.cachedStreamingClient = new streamingClientService_1.StreamingClientServiceIAM(this.features.credentialsProvider, this.features.sdkInitializator, this.features.logging, this.region, this.endpoint);
42
+ }
43
+ return this.cachedStreamingClient;
44
+ }
45
+ handleOnCredentialsDeleted(_type) {
46
+ return;
47
+ }
48
+ handleOnUpdateConfiguration(_params, _token) {
49
+ return Promise.resolve();
50
+ }
51
+ // For Unit Tests
52
+ static resetInstance() {
53
+ AmazonQIAMServiceManager.instance = null;
54
+ }
55
+ }
56
+ exports.AmazonQIAMServiceManager = AmazonQIAMServiceManager;
57
+ const initBaseIAMServiceManager = (features) => AmazonQIAMServiceManager.initInstance(features);
58
+ exports.initBaseIAMServiceManager = initBaseIAMServiceManager;
59
+ const getOrThrowBaseIAMServiceManager = () => AmazonQIAMServiceManager.getInstance();
60
+ exports.getOrThrowBaseIAMServiceManager = getOrThrowBaseIAMServiceManager;
61
+ //# sourceMappingURL=AmazonQIAMServiceManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmazonQIAMServiceManager.js","sourceRoot":"","sources":["../../../src/shared/amazonQServiceManager/AmazonQIAMServiceManager.ts"],"names":[],"mappings":";;;AAAA,kEAAiE;AACjE,2EAIoC;AACpC,6DAAkE;AAClE,sEAAqE;AACrE,qCAAmG;AAOnG,MAAa,wBAAyB,SAAQ,qDAG7C;IACW,MAAM,CAAC,QAAQ,GAAoC,IAAI,CAAA;IACvD,MAAM,CAAQ;IACd,QAAQ,CAAQ;IAExB,YAAoB,QAAiC;QACjD,KAAK,CAAC,QAAQ,CAAC,CAAA;QACf,MAAM,wBAAwB,GAAG,IAAA,gDAA2B,EAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;QAChG,IAAI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,EACrB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,CAChB,CAAA;QACL,CAAC;QACD,OAAO,IAAI,CAAC,qBAAqB,CAAA;IACrC,CAAC;IAEM,0BAA0B,CAAC,KAAsB;QACpD,OAAM;IACV,CAAC;IAEe,2BAA2B,CACvC,OAAkC,EAClC,MAAyB;QAEzB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC5B,CAAC;IAED,iBAAiB;IACV,MAAM,CAAC,aAAa;QACvB,wBAAwB,CAAC,QAAQ,GAAG,IAAI,CAAA;IAC5C,CAAC;;AA/EL,4DAgFC;AAEM,MAAM,yBAAyB,GAAG,CAAC,QAAiC,EAAE,EAAE,CAC3E,wBAAwB,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;AADtC,QAAA,yBAAyB,6BACa;AAE5C,MAAM,+BAA+B,GAAG,GAA8B,EAAE,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAA;AAAzG,QAAA,+BAA+B,mCAA0E"}
@@ -1,16 +1,7 @@
1
- import { Logging, Lsp, CredentialsProvider, SDKInitializator, Runtime, Workspace, SsoConnectionType } from '@aws/language-server-runtimes/server-interface';
1
+ import { UpdateConfigurationParams, SsoConnectionType, CancellationToken, CredentialsType } from '@aws/language-server-runtimes/server-interface';
2
2
  import { CodeWhispererServiceToken } from '../codeWhispererService';
3
- import { BaseAmazonQServiceManager } from './BaseAmazonQServiceManager';
4
- import { AmazonQWorkspaceConfig } from './configurationUtils';
5
- import { StreamingClientService } from '../streamingClientService';
6
- export interface Features {
7
- lsp: Lsp;
8
- logging: Logging;
9
- runtime: Runtime;
10
- credentialsProvider: CredentialsProvider;
11
- sdkInitializator: SDKInitializator;
12
- workspace: Workspace;
13
- }
3
+ import { AmazonQBaseServiceManager, BaseAmazonQServiceManager, QServiceManagerFeatures } from './BaseAmazonQServiceManager';
4
+ import { StreamingClientServiceToken } from '../streamingClientService';
14
5
  /**
15
6
  * AmazonQTokenServiceManager manages state and provides centralized access to
16
7
  * instance of CodeWhispererServiceToken SDK client to any consuming code.
@@ -31,20 +22,14 @@ export interface Features {
31
22
  * - identityCenter: Connected via Identity Center
32
23
  *
33
24
  * AmazonQTokenServiceManager is a singleton class, which must be instantiated with Language Server runtimes [Features](https://github.com/aws/language-server-runtimes/blob/21d5d1dc7c73499475b7c88c98d2ce760e5d26c8/runtimes/server-interface/server.ts#L31-L42)
34
- * To get access to current CodeWhispererServiceToken client object, call `getCodewhispererService()` mathod:
25
+ * in the `AmazonQServiceServer` via the `initBaseTokenServiceManager` factory. Dependencies of this class can access the singleton via
26
+ * the `getOrThrowBaseTokenServiceManager` factory or `getInstance()` method after the initialized notification has been received during
27
+ * the LSP hand shake.
35
28
  *
36
- * @example
37
- * const AmazonQServiceManager = AmazonQTokenServiceManager.getInstance(features);
38
- * const codewhispererService = AmazonQServiceManager.getCodewhispererService();
39
29
  */
40
- export declare class AmazonQTokenServiceManager implements BaseAmazonQServiceManager {
30
+ export declare class AmazonQTokenServiceManager extends BaseAmazonQServiceManager<CodeWhispererServiceToken, StreamingClientServiceToken> {
41
31
  private static instance;
42
- private features;
43
- private logging;
44
- private cachedCodewhispererService?;
45
- private cachedStreamingClient?;
46
32
  private enableDeveloperProfileSupport?;
47
- private configurationCache;
48
33
  private activeIdcProfile?;
49
34
  private connectionType?;
50
35
  private profileChangeTokenSource;
@@ -60,22 +45,21 @@ export declare class AmazonQTokenServiceManager implements BaseAmazonQServiceMan
60
45
  */
61
46
  private state;
62
47
  private constructor();
63
- static getInstance(features: Features): AmazonQTokenServiceManager;
48
+ static initInstance(features: QServiceManagerFeatures): AmazonQTokenServiceManager;
49
+ static getInstance(): AmazonQTokenServiceManager;
64
50
  private initialize;
65
- private setupAuthListener;
66
- private setupConfigurationListeners;
51
+ handleOnCredentialsDeleted(type: CredentialsType): void;
52
+ handleOnUpdateConfiguration(params: UpdateConfigurationParams, _token: CancellationToken): Promise<void>;
67
53
  /**
68
54
  * Validate if Bearer Token Connection type has changed mid-session.
69
55
  * When connection type change is detected: reinitialize CodeWhispererService class with current connection type.
70
56
  */
71
57
  private handleSsoConnectionChange;
72
- handleDidChangeConfiguration(): Promise<Readonly<AmazonQWorkspaceConfig>>;
73
- getConfiguration(): Readonly<AmazonQWorkspaceConfig>;
74
58
  private cancelActiveProfileChangeToken;
75
59
  private handleTokenCancellationRequest;
76
60
  private handleProfileChange;
77
61
  getCodewhispererService(): CodeWhispererServiceToken;
78
- getStreamingClient(): StreamingClientService;
62
+ getStreamingClient(): StreamingClientServiceToken;
79
63
  private resetCodewhispererService;
80
64
  private createCodewhispererServiceInstances;
81
65
  private getCustomUserAgent;
@@ -91,3 +75,5 @@ export declare class AmazonQTokenServiceManager implements BaseAmazonQServiceMan
91
75
  getServiceFactory(): (region: string, endpoint: string) => CodeWhispererServiceToken;
92
76
  getEnableDeveloperProfileSupport(): boolean;
93
77
  }
78
+ export declare const initBaseTokenServiceManager: (features: QServiceManagerFeatures) => AmazonQTokenServiceManager;
79
+ export declare const getOrThrowBaseTokenServiceManager: () => AmazonQBaseServiceManager;
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmazonQTokenServiceManager = void 0;
3
+ exports.getOrThrowBaseTokenServiceManager = exports.initBaseTokenServiceManager = exports.AmazonQTokenServiceManager = void 0;
4
4
  const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
5
5
  const codeWhispererService_1 = require("../codeWhispererService");
6
6
  const errors_1 = require("./errors");
7
- const qConfigurationServer_1 = require("../../language-server/configuration/qConfigurationServer");
7
+ const BaseAmazonQServiceManager_1 = require("./BaseAmazonQServiceManager");
8
+ const constants_1 = require("../constants");
8
9
  const qDeveloperProfiles_1 = require("./qDeveloperProfiles");
9
- const configurationUtils_1 = require("./configurationUtils");
10
10
  const utils_1 = require("../utils");
11
+ const configurationUtils_1 = require("./configurationUtils");
11
12
  const telemetryUtils_1 = require("../telemetryUtils");
12
13
  const streamingClientService_1 = require("../streamingClientService");
14
+ const util_arn_parser_1 = require("@aws-sdk/util-arn-parser");
13
15
  /**
14
16
  * AmazonQTokenServiceManager manages state and provides centralized access to
15
17
  * instance of CodeWhispererServiceToken SDK client to any consuming code.
@@ -30,20 +32,14 @@ const streamingClientService_1 = require("../streamingClientService");
30
32
  * - identityCenter: Connected via Identity Center
31
33
  *
32
34
  * AmazonQTokenServiceManager is a singleton class, which must be instantiated with Language Server runtimes [Features](https://github.com/aws/language-server-runtimes/blob/21d5d1dc7c73499475b7c88c98d2ce760e5d26c8/runtimes/server-interface/server.ts#L31-L42)
33
- * To get access to current CodeWhispererServiceToken client object, call `getCodewhispererService()` mathod:
35
+ * in the `AmazonQServiceServer` via the `initBaseTokenServiceManager` factory. Dependencies of this class can access the singleton via
36
+ * the `getOrThrowBaseTokenServiceManager` factory or `getInstance()` method after the initialized notification has been received during
37
+ * the LSP hand shake.
34
38
  *
35
- * @example
36
- * const AmazonQServiceManager = AmazonQTokenServiceManager.getInstance(features);
37
- * const codewhispererService = AmazonQServiceManager.getCodewhispererService();
38
39
  */
39
- class AmazonQTokenServiceManager {
40
+ class AmazonQTokenServiceManager extends BaseAmazonQServiceManager_1.BaseAmazonQServiceManager {
40
41
  static instance = null;
41
- features;
42
- logging;
43
- cachedCodewhispererService;
44
- cachedStreamingClient;
45
42
  enableDeveloperProfileSupport;
46
- configurationCache = new configurationUtils_1.AmazonQConfigurationCache();
47
43
  activeIdcProfile;
48
44
  connectionType;
49
45
  profileChangeTokenSource;
@@ -58,27 +54,30 @@ class AmazonQTokenServiceManager {
58
54
  * INITIALIZED - Service is initialized
59
55
  */
60
56
  state = 'PENDING_CONNECTION';
61
- constructor() { }
62
- static getInstance(features) {
57
+ constructor(features) {
58
+ super(features);
59
+ }
60
+ static initInstance(features) {
63
61
  if (!AmazonQTokenServiceManager.instance) {
64
- AmazonQTokenServiceManager.instance = new AmazonQTokenServiceManager();
65
- AmazonQTokenServiceManager.instance.initialize(features);
62
+ AmazonQTokenServiceManager.instance = new AmazonQTokenServiceManager(features);
63
+ AmazonQTokenServiceManager.instance.initialize();
64
+ return AmazonQTokenServiceManager.instance;
66
65
  }
67
- return AmazonQTokenServiceManager.instance;
66
+ throw new errors_1.AmazonQServiceAlreadyInitializedError();
68
67
  }
69
- initialize(features) {
70
- if (!features || !features.logging || !features.lsp) {
71
- throw new errors_1.AmazonQServiceInitializationError('Service features not initialized. Please ensure proper initialization.');
68
+ static getInstance() {
69
+ if (!AmazonQTokenServiceManager.instance) {
70
+ throw new errors_1.AmazonQServiceInitializationError('Amazon Q service has not been initialized yet. Make sure the Amazon Q server is present and properly initialized.');
72
71
  }
73
- this.features = features;
74
- this.logging = features.logging;
72
+ return AmazonQTokenServiceManager.instance;
73
+ }
74
+ initialize() {
75
75
  if (!this.features.lsp.getClientInitializeParams()) {
76
76
  this.log('AmazonQTokenServiceManager initialized before LSP connection was initialized.');
77
77
  throw new errors_1.AmazonQServiceInitializationError('AmazonQTokenServiceManager initialized before LSP connection was initialized.');
78
78
  }
79
79
  // Bind methods that are passed by reference to some handlers to maintain proper scope.
80
80
  this.serviceFactory = this.serviceFactory.bind(this);
81
- this.handleDidChangeConfiguration = this.handleDidChangeConfiguration.bind(this);
82
81
  this.log('Reading enableDeveloperProfileSupport setting from AWSInitializationOptions');
83
82
  if (this.features.lsp.getClientInitializeParams()?.initializationOptions?.aws) {
84
83
  const awsOptions = this.features.lsp.getClientInitializeParams()?.initializationOptions?.aws || {};
@@ -87,61 +86,51 @@ class AmazonQTokenServiceManager {
87
86
  }
88
87
  this.connectionType = 'none';
89
88
  this.state = 'PENDING_CONNECTION';
90
- this.setupAuthListener();
91
- this.setupConfigurationListeners();
92
89
  this.log('Manager instance is initialize');
93
90
  }
94
- setupAuthListener() {
95
- this.features.credentialsProvider.onCredentialsDeleted((type) => {
96
- this.log(`Received credentials delete event for type: ${type}`);
97
- if (type === 'iam') {
98
- return;
99
- }
100
- this.cancelActiveProfileChangeToken();
101
- this.resetCodewhispererService();
102
- this.connectionType = 'none';
103
- this.state = 'PENDING_CONNECTION';
104
- });
91
+ handleOnCredentialsDeleted(type) {
92
+ this.log(`Received credentials delete event for type: ${type}`);
93
+ if (type === 'iam') {
94
+ return;
95
+ }
96
+ this.cancelActiveProfileChangeToken();
97
+ this.resetCodewhispererService();
98
+ this.connectionType = 'none';
99
+ this.state = 'PENDING_CONNECTION';
105
100
  }
106
- setupConfigurationListeners() {
107
- // TODO: refactor how handleDidChangeConfiguration can be hooked to lsp Feature.
108
- // Currently can't do this, as it overrides handler set by Server, using ServiceManager.
109
- // this.features.lsp.onInitialized(this.handleDidChangeConfiguration)
110
- // this.features.lsp.didChangeConfiguration(this.handleDidChangeConfiguration)
111
- this.features.lsp.workspace.onUpdateConfiguration(async (params, _token) => {
112
- try {
113
- if (params.section === qConfigurationServer_1.Q_CONFIGURATION_SECTION && params.settings.profileArn !== undefined) {
114
- const profileArn = params.settings.profileArn;
115
- if (!(0, utils_1.isStringOrNull)(profileArn)) {
116
- throw new Error('Expected params.settings.profileArn to be of either type string or null');
117
- }
118
- this.log(`Profile update is requested for profile ${profileArn}`);
119
- this.cancelActiveProfileChangeToken();
120
- this.profileChangeTokenSource = new server_interface_1.CancellationTokenSource();
121
- await this.handleProfileChange(profileArn, this.profileChangeTokenSource.token);
101
+ async handleOnUpdateConfiguration(params, _token) {
102
+ try {
103
+ if (params.section === constants_1.Q_CONFIGURATION_SECTION && params.settings.profileArn !== undefined) {
104
+ const profileArn = params.settings.profileArn;
105
+ if (!(0, utils_1.isStringOrNull)(profileArn)) {
106
+ throw new Error('Expected params.settings.profileArn to be of either type string or null');
122
107
  }
108
+ this.log(`Profile update is requested for profile ${profileArn}`);
109
+ this.cancelActiveProfileChangeToken();
110
+ this.profileChangeTokenSource = new server_interface_1.CancellationTokenSource();
111
+ await this.handleProfileChange(profileArn, this.profileChangeTokenSource.token);
123
112
  }
124
- catch (error) {
125
- this.log('Error updating profiles: ' + error);
126
- if (error instanceof errors_1.AmazonQServiceProfileUpdateCancelled) {
127
- throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.ServerCancelled, error.message, {
128
- awsErrorCode: error.code,
129
- });
130
- }
131
- if (error instanceof errors_1.AmazonQError) {
132
- throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, error.message, {
133
- awsErrorCode: error.code,
134
- });
135
- }
136
- throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, 'Failed to update configuration');
113
+ }
114
+ catch (error) {
115
+ this.log('Error updating profiles: ' + error);
116
+ if (error instanceof errors_1.AmazonQServiceProfileUpdateCancelled) {
117
+ throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.ServerCancelled, error.message, {
118
+ awsErrorCode: error.code,
119
+ });
137
120
  }
138
- finally {
139
- if (this.profileChangeTokenSource) {
140
- this.profileChangeTokenSource.dispose();
141
- this.profileChangeTokenSource = undefined;
142
- }
121
+ if (error instanceof errors_1.AmazonQError) {
122
+ throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, error.message, {
123
+ awsErrorCode: error.code,
124
+ });
143
125
  }
144
- });
126
+ throw new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, 'Failed to update configuration');
127
+ }
128
+ finally {
129
+ if (this.profileChangeTokenSource) {
130
+ this.profileChangeTokenSource.dispose();
131
+ this.profileChangeTokenSource = undefined;
132
+ }
133
+ }
145
134
  }
146
135
  /**
147
136
  * Validate if Bearer Token Connection type has changed mid-session.
@@ -150,9 +139,11 @@ class AmazonQTokenServiceManager {
150
139
  handleSsoConnectionChange() {
151
140
  const newConnectionType = this.features.credentialsProvider.getConnectionType();
152
141
  this.logServiceState('Validate State of SSO Connection');
153
- if (newConnectionType === 'none' || !this.features.credentialsProvider.hasCredentials('bearer')) {
142
+ const noCreds = !this.features.credentialsProvider.hasCredentials('bearer');
143
+ const noConnectionType = newConnectionType === 'none';
144
+ if (noCreds || noConnectionType) {
154
145
  // Connection was reset, wait for SSO connection token from client
155
- this.log('No active SSO connection is detected, resetting the client');
146
+ this.log(`No active SSO connection is detected: no ${noCreds ? 'credentials' : 'connection type'} provided. Resetting the client`);
156
147
  this.resetCodewhispererService();
157
148
  this.connectionType = 'none';
158
149
  this.state = 'PENDING_CONNECTION';
@@ -192,29 +183,6 @@ class AmazonQTokenServiceManager {
192
183
  }
193
184
  this.logServiceState('Unknown Connection state');
194
185
  }
195
- async handleDidChangeConfiguration() {
196
- try {
197
- const amazonQConfig = await (0, configurationUtils_1.getAmazonQRelatedWorkspaceConfigs)(this.features.lsp, this.features.logging);
198
- if (this.cachedCodewhispererService) {
199
- const { customizationArn, shareCodeWhispererContentWithAWS } = amazonQConfig;
200
- this.log(`Using customization=${customizationArn}`);
201
- this.cachedCodewhispererService.customizationArn = customizationArn;
202
- if (shareCodeWhispererContentWithAWS !== undefined) {
203
- this.log('Update shareCodeWhispererContentWithAWS setting on cachedCodewhispererService to ' +
204
- shareCodeWhispererContentWithAWS);
205
- this.cachedCodewhispererService.shareCodeWhispererContentWithAWS = shareCodeWhispererContentWithAWS;
206
- }
207
- }
208
- this.configurationCache.updateConfig(amazonQConfig);
209
- }
210
- catch (error) {
211
- this.log(`Unexpected error in getAmazonQRelatedWorkspaceConfigs: ${error}`);
212
- }
213
- return this.configurationCache.getConfig();
214
- }
215
- getConfiguration() {
216
- return this.configurationCache.getConfig();
217
- }
218
186
  cancelActiveProfileChangeToken() {
219
187
  this.profileChangeTokenSource?.cancel();
220
188
  this.profileChangeTokenSource?.dispose();
@@ -261,9 +229,16 @@ class AmazonQTokenServiceManager {
261
229
  this.state = 'PENDING_Q_PROFILE';
262
230
  return;
263
231
  }
232
+ const parsedArn = (0, util_arn_parser_1.parse)(newProfileArn);
233
+ const endpoint = constants_1.AWS_Q_ENDPOINTS.get(parsedArn.region);
234
+ if (!endpoint) {
235
+ throw new Error('Requested profileArn region is not supported');
236
+ }
264
237
  const profiles = await (0, qDeveloperProfiles_1.getListAllAvailableProfilesHandler)(this.serviceFactory)({
265
238
  connectionType: 'identityCenter',
266
239
  logging: this.logging,
240
+ token: token,
241
+ endpoints: new Map([[parsedArn.region, endpoint]]),
267
242
  });
268
243
  this.handleTokenCancellationRequest(token);
269
244
  const newProfile = profiles.find(el => el.arn === newProfileArn);
@@ -371,7 +346,7 @@ class AmazonQTokenServiceManager {
371
346
  return (0, telemetryUtils_1.getUserAgent)(initializeParams, this.features.runtime.serverInfo);
372
347
  }
373
348
  serviceFactory(region, endpoint) {
374
- const service = new codeWhispererService_1.CodeWhispererServiceToken(this.features.credentialsProvider, this.features.workspace, region, endpoint, this.features.sdkInitializator);
349
+ const service = new codeWhispererService_1.CodeWhispererServiceToken(this.features.credentialsProvider, this.features.workspace, this.features.logging, region, endpoint, this.features.sdkInitializator);
375
350
  const customUserAgent = this.getCustomUserAgent();
376
351
  service.updateClientConfig({
377
352
  customUserAgent: customUserAgent,
@@ -384,7 +359,7 @@ class AmazonQTokenServiceManager {
384
359
  return service;
385
360
  }
386
361
  streamingClientFactory(region, endpoint) {
387
- const streamingClient = new streamingClientService_1.StreamingClientService(this.features.credentialsProvider, this.features.sdkInitializator, region, endpoint, this.getCustomUserAgent());
362
+ const streamingClient = new streamingClientService_1.StreamingClientServiceToken(this.features.credentialsProvider, this.features.sdkInitializator, this.features.logging, region, endpoint, this.getCustomUserAgent());
388
363
  streamingClient.profileArn = this.activeIdcProfile?.arn;
389
364
  this.logging.debug(`Created streaming client instance region=${region}, endpoint=${endpoint}`);
390
365
  return streamingClient;
@@ -427,4 +402,8 @@ class AmazonQTokenServiceManager {
427
402
  }
428
403
  }
429
404
  exports.AmazonQTokenServiceManager = AmazonQTokenServiceManager;
405
+ const initBaseTokenServiceManager = (features) => AmazonQTokenServiceManager.initInstance(features);
406
+ exports.initBaseTokenServiceManager = initBaseTokenServiceManager;
407
+ const getOrThrowBaseTokenServiceManager = () => AmazonQTokenServiceManager.getInstance();
408
+ exports.getOrThrowBaseTokenServiceManager = getOrThrowBaseTokenServiceManager;
430
409
  //# sourceMappingURL=AmazonQTokenServiceManager.js.map