@aws/lsp-codewhisperer 0.0.32 → 0.0.33

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 (743) hide show
  1. package/CHANGELOG.md +213 -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 +1337 -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 +186 -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 +463 -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 +130 -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 +2 -0
  558. package/out/language-server/netTransform/models.js.map +1 -1
  559. package/out/language-server/netTransform/netTransformServer.d.ts +2 -4
  560. package/out/language-server/netTransform/netTransformServer.js +21 -16
  561. package/out/language-server/netTransform/netTransformServer.js.map +1 -1
  562. package/out/language-server/netTransform/tests/mockData.js +1 -0
  563. package/out/language-server/netTransform/tests/mockData.js.map +1 -1
  564. package/out/language-server/netTransform/transformHandler.d.ts +6 -5
  565. package/out/language-server/netTransform/transformHandler.js +35 -12
  566. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  567. package/out/language-server/securityScan/codeWhispererSecurityScanServer.js +10 -11
  568. package/out/language-server/securityScan/codeWhispererSecurityScanServer.js.map +1 -1
  569. package/out/language-server/securityScan/types.d.ts +2 -1
  570. package/out/shared/amazonQServer.d.ts +5 -0
  571. package/out/shared/amazonQServer.js +53 -0
  572. package/out/shared/amazonQServer.js.map +1 -0
  573. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.d.ts +19 -0
  574. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js +61 -0
  575. package/out/shared/amazonQServiceManager/AmazonQIAMServiceManager.js.map +1 -0
  576. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +14 -28
  577. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +78 -99
  578. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
  579. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +72 -5
  580. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js +116 -0
  581. package/out/shared/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -1
  582. package/out/shared/amazonQServiceManager/configurationUtils.d.ts +13 -1
  583. package/out/shared/amazonQServiceManager/configurationUtils.js +41 -22
  584. package/out/shared/amazonQServiceManager/configurationUtils.js.map +1 -1
  585. package/out/shared/amazonQServiceManager/errors.d.ts +9 -0
  586. package/out/shared/amazonQServiceManager/errors.js +22 -1
  587. package/out/shared/amazonQServiceManager/errors.js.map +1 -1
  588. package/out/shared/amazonQServiceManager/qDeveloperProfiles.d.ts +2 -1
  589. package/out/shared/amazonQServiceManager/qDeveloperProfiles.js +26 -3
  590. package/out/shared/amazonQServiceManager/qDeveloperProfiles.js.map +1 -1
  591. package/out/shared/amazonQServiceManager/testUtils.d.ts +48 -0
  592. package/out/shared/amazonQServiceManager/testUtils.js +112 -0
  593. package/out/shared/amazonQServiceManager/testUtils.js.map +1 -0
  594. package/out/shared/codeWhispererService.d.ts +3 -3
  595. package/out/shared/codeWhispererService.js +4 -4
  596. package/out/shared/codeWhispererService.js.map +1 -1
  597. package/out/shared/constants.d.ts +10 -0
  598. package/out/shared/constants.js +12 -1
  599. package/out/shared/constants.js.map +1 -1
  600. package/out/shared/localProjectContextController.d.ts +56 -0
  601. package/out/shared/localProjectContextController.js +371 -0
  602. package/out/shared/localProjectContextController.js.map +1 -0
  603. package/out/shared/models/constants.d.ts +5 -0
  604. package/out/shared/models/constants.js +6 -1
  605. package/out/shared/models/constants.js.map +1 -1
  606. package/out/shared/models/model.d.ts +2 -1
  607. package/out/shared/proxy-server.d.ts +4 -2
  608. package/out/shared/proxy-server.js +11 -10
  609. package/out/shared/proxy-server.js.map +1 -1
  610. package/out/shared/streamingClientService.d.ts +23 -7
  611. package/out/shared/streamingClientService.js +56 -9
  612. package/out/shared/streamingClientService.js.map +1 -1
  613. package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +4 -1
  614. package/out/shared/supplementalContextUtil/crossFileContextUtil.js +73 -17
  615. package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  616. package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +8 -0
  617. package/out/shared/supplementalContextUtil/supplementalContextUtil.js +63 -2
  618. package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
  619. package/out/shared/telemetry/telemetryService.d.ts +16 -2
  620. package/out/shared/telemetry/telemetryService.js +25 -2
  621. package/out/shared/telemetry/telemetryService.js.map +1 -1
  622. package/out/shared/telemetry/types.d.ts +37 -2
  623. package/out/shared/telemetry/types.js +2 -0
  624. package/out/shared/telemetry/types.js.map +1 -1
  625. package/out/shared/telemetryUtils.d.ts +1 -0
  626. package/out/shared/telemetryUtils.js +5 -3
  627. package/out/shared/telemetryUtils.js.map +1 -1
  628. package/out/shared/testUtils.d.ts +2 -1
  629. package/out/shared/testUtils.js +10 -1
  630. package/out/shared/testUtils.js.map +1 -1
  631. package/out/shared/utils.d.ts +30 -0
  632. package/out/shared/utils.js +184 -0
  633. package/out/shared/utils.js.map +1 -1
  634. package/package.json +21 -7
  635. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -53
  636. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -53
  637. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
  638. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
  639. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
  640. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -12
  641. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -206
  642. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -13
  643. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
  644. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
  645. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
  646. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
  647. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
  648. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
  649. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -8
  650. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
  651. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -8
  652. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
  653. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
  654. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
  655. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
  656. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
  657. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -9
  658. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
  659. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
  660. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
  661. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
  662. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -5
  663. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -4
  664. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -44
  665. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
  666. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -8
  667. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -26
  668. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -10
  669. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
  670. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
  671. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -15
  672. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -5
  673. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
  674. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
  675. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
  676. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
  677. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -5
  678. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -4
  679. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -44
  680. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
  681. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -8
  682. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -26
  683. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -10
  684. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
  685. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
  686. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -15
  687. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -5
  688. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -13
  689. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -13
  690. package/out/shared/amazonQServiceManager/factories.d.ts +0 -15
  691. package/out/shared/amazonQServiceManager/factories.js +0 -47
  692. package/out/shared/amazonQServiceManager/factories.js.map +0 -1
  693. /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
  694. /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
  695. /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
  696. /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
  697. /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
  698. /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
  699. /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
  700. /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
  701. /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
  702. /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
  703. /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
  704. /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
  705. /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
  706. /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
  707. /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
  708. /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
  709. /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
  710. /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
  711. /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
  712. /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
  713. /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
  714. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/LICENSE +0 -0
  715. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/README.md +0 -0
  716. /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
  717. /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
  718. /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
  719. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Field.js +0 -0
  720. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/Fields.js +0 -0
  721. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
  722. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/extensions/index.js +0 -0
  723. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/httpResponse.js +0 -0
  724. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/index.js +0 -0
  725. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-es/isValidHostname.js +0 -0
  726. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Field.d.ts +0 -0
  727. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/Fields.d.ts +0 -0
  728. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
  729. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/extensions/index.d.ts +0 -0
  730. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpHandler.d.ts +0 -0
  731. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/httpResponse.d.ts +0 -0
  732. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/index.d.ts +0 -0
  733. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/isValidHostname.d.ts +0 -0
  734. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
  735. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
  736. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
  737. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
  738. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
  739. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
  740. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
  741. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
  742. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
  743. /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@smithy → @smithy}/protocol-http/dist-types/types.d.ts +0 -0
@@ -0,0 +1,463 @@
1
+ "use strict";
2
+ // Port from VSC https://github.com/aws/aws-toolkit-vscode/blob/741c2c481bcf0dca2d9554e32dc91d8514b1b1d1/packages/core/src/codewhispererChat/tools/executeBash.ts#L134
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExecuteBash = exports.outOfWorkspaceWarningmessage = exports.mutateCommandWarningMessage = exports.destructiveCommandWarningMessage = exports.lineCount = exports.maxToolResponseSize = exports.commandCategories = exports.splitOperatorsArray = exports.splitOperators = exports.CommandCategory = void 0;
5
+ const toolShared_1 = require("./toolShared");
6
+ const shlex_1 = require("shlex");
7
+ const lsp_core_1 = require("@aws/lsp-core");
8
+ const processUtils_1 = require("@aws/lsp-core/out/util/processUtils");
9
+ // eslint-disable-next-line import/no-nodejs-modules
10
+ const path_1 = require("path"); // Safe to import on web since this is part of path-browserify
11
+ const workspaceUtils_1 = require("@aws/lsp-core/out/util/workspaceUtils");
12
+ var CommandCategory;
13
+ (function (CommandCategory) {
14
+ CommandCategory[CommandCategory["ReadOnly"] = 0] = "ReadOnly";
15
+ CommandCategory[CommandCategory["Mutate"] = 1] = "Mutate";
16
+ CommandCategory[CommandCategory["Destructive"] = 2] = "Destructive";
17
+ })(CommandCategory || (exports.CommandCategory = CommandCategory = {}));
18
+ exports.splitOperators = new Set(['|', '&&', '||', '>']);
19
+ exports.splitOperatorsArray = Array.from(exports.splitOperators);
20
+ exports.commandCategories = new Map([
21
+ // ReadOnly commands
22
+ ['ls', CommandCategory.ReadOnly],
23
+ ['cat', CommandCategory.ReadOnly],
24
+ ['bat', CommandCategory.ReadOnly],
25
+ ['pwd', CommandCategory.ReadOnly],
26
+ ['echo', CommandCategory.ReadOnly],
27
+ ['file', CommandCategory.ReadOnly],
28
+ ['less', CommandCategory.ReadOnly],
29
+ ['more', CommandCategory.ReadOnly],
30
+ ['tree', CommandCategory.ReadOnly],
31
+ ['find', CommandCategory.ReadOnly],
32
+ ['top', CommandCategory.ReadOnly],
33
+ ['htop', CommandCategory.ReadOnly],
34
+ ['ps', CommandCategory.ReadOnly],
35
+ ['df', CommandCategory.ReadOnly],
36
+ ['du', CommandCategory.ReadOnly],
37
+ ['free', CommandCategory.ReadOnly],
38
+ ['uname', CommandCategory.ReadOnly],
39
+ ['date', CommandCategory.ReadOnly],
40
+ ['whoami', CommandCategory.ReadOnly],
41
+ ['which', CommandCategory.ReadOnly],
42
+ ['ping', CommandCategory.ReadOnly],
43
+ ['ifconfig', CommandCategory.ReadOnly],
44
+ ['ip', CommandCategory.ReadOnly],
45
+ ['netstat', CommandCategory.ReadOnly],
46
+ ['ss', CommandCategory.ReadOnly],
47
+ ['dig', CommandCategory.ReadOnly],
48
+ ['wc', CommandCategory.ReadOnly],
49
+ ['sort', CommandCategory.ReadOnly],
50
+ ['diff', CommandCategory.ReadOnly],
51
+ ['head', CommandCategory.ReadOnly],
52
+ ['tail', CommandCategory.ReadOnly],
53
+ // Mutable commands
54
+ ['chmod', CommandCategory.Mutate],
55
+ ['curl', CommandCategory.Mutate],
56
+ ['mount', CommandCategory.Mutate],
57
+ ['umount', CommandCategory.Mutate],
58
+ ['systemctl', CommandCategory.Mutate],
59
+ ['service', CommandCategory.Mutate],
60
+ ['crontab', CommandCategory.Mutate],
61
+ ['at', CommandCategory.Mutate],
62
+ ['nc', CommandCategory.Mutate],
63
+ ['ssh', CommandCategory.Mutate],
64
+ ['scp', CommandCategory.Mutate],
65
+ ['ftp', CommandCategory.Mutate],
66
+ ['sftp', CommandCategory.Mutate],
67
+ ['rsync', CommandCategory.Mutate],
68
+ ['chroot', CommandCategory.Mutate],
69
+ ['strace', CommandCategory.Mutate],
70
+ ['gdb', CommandCategory.Mutate],
71
+ ['apt', CommandCategory.Mutate],
72
+ ['yum', CommandCategory.Mutate],
73
+ ['dnf', CommandCategory.Mutate],
74
+ ['pacman', CommandCategory.Mutate],
75
+ ['exec', CommandCategory.Mutate],
76
+ ['eval', CommandCategory.Mutate],
77
+ ['xargs', CommandCategory.Mutate],
78
+ // Destructive commands
79
+ ['rm', CommandCategory.Destructive],
80
+ ['dd', CommandCategory.Destructive],
81
+ ['mkfs', CommandCategory.Destructive],
82
+ ['fdisk', CommandCategory.Destructive],
83
+ ['shutdown', CommandCategory.Destructive],
84
+ ['reboot', CommandCategory.Destructive],
85
+ ['poweroff', CommandCategory.Destructive],
86
+ ['sudo', CommandCategory.Destructive],
87
+ ['su', CommandCategory.Destructive],
88
+ ['useradd', CommandCategory.Destructive],
89
+ ['userdel', CommandCategory.Destructive],
90
+ ['passwd', CommandCategory.Destructive],
91
+ ['visudo', CommandCategory.Destructive],
92
+ ['insmod', CommandCategory.Destructive],
93
+ ['rmmod', CommandCategory.Destructive],
94
+ ['modprobe', CommandCategory.Destructive],
95
+ ['kill', CommandCategory.Destructive],
96
+ ['killall', CommandCategory.Destructive],
97
+ ['pkill', CommandCategory.Destructive],
98
+ ['iptables', CommandCategory.Destructive],
99
+ ['route', CommandCategory.Destructive],
100
+ ['chown', CommandCategory.Destructive],
101
+ ]);
102
+ exports.maxToolResponseSize = 1024 * 1024; // 1MB
103
+ exports.lineCount = 1024;
104
+ exports.destructiveCommandWarningMessage = 'WARNING: Potentially destructive command detected:\n\n';
105
+ exports.mutateCommandWarningMessage = 'Mutation command:\n\n';
106
+ exports.outOfWorkspaceWarningmessage = 'Execution out of workspace scope:\n\n';
107
+ /**
108
+ * Static determination if the current platform should use Windows-style commands
109
+ * true if the platform should use Windows command shell, false for Unix-like shells
110
+ */
111
+ const IS_WINDOWS_PLATFORM = process.platform === 'win32';
112
+ class ExecuteBash {
113
+ childProcess;
114
+ logging;
115
+ lsp;
116
+ constructor(features) {
117
+ this.logging = features.logging;
118
+ this.lsp = features.lsp;
119
+ }
120
+ async validate(command) {
121
+ if (!command.trim()) {
122
+ throw new Error('Command cannot be empty.');
123
+ }
124
+ const args = (0, shlex_1.split)(command);
125
+ if (!args || args.length === 0) {
126
+ throw new Error('No command found.');
127
+ }
128
+ try {
129
+ await ExecuteBash.whichCommand(this.logging, args[0]);
130
+ }
131
+ catch {
132
+ throw new Error(`Command '${args[0]}' not found on PATH.`);
133
+ }
134
+ }
135
+ static handleTimestampedChunk(chunk, stdoutBuffer, stderrBuffer, writer) {
136
+ const buffer = chunk.isStdout ? stdoutBuffer : stderrBuffer;
137
+ ExecuteBash.handleChunk(chunk.content, buffer, writer);
138
+ }
139
+ async requiresAcceptance(params, approvedPaths) {
140
+ try {
141
+ const args = (0, shlex_1.split)(params.command);
142
+ if (!args || args.length === 0) {
143
+ return { requiresAcceptance: true };
144
+ }
145
+ // Split commands by operators and process each segment
146
+ let currentCmd = [];
147
+ const allCommands = [];
148
+ for (const arg of args) {
149
+ if (exports.splitOperators.has(arg)) {
150
+ if (currentCmd.length > 0) {
151
+ allCommands.push(currentCmd);
152
+ }
153
+ currentCmd = [];
154
+ }
155
+ else if (exports.splitOperatorsArray.some(op => arg.includes(op))) {
156
+ return { requiresAcceptance: true };
157
+ }
158
+ else {
159
+ currentCmd.push(arg);
160
+ }
161
+ }
162
+ if (currentCmd.length > 0) {
163
+ allCommands.push(currentCmd);
164
+ }
165
+ for (const cmdArgs of allCommands) {
166
+ if (cmdArgs.length === 0) {
167
+ return { requiresAcceptance: true };
168
+ }
169
+ // For each command, validate arguments for path safety within workspace
170
+ for (const arg of cmdArgs) {
171
+ if (this.looksLikePath(arg)) {
172
+ // If not absolute, resolve using workingDirectory if available.
173
+ const fullPath = !(0, path_1.isAbsolute)(arg) && params.cwd ? (0, path_1.join)(params.cwd, arg) : arg;
174
+ // Check if the path is already approved
175
+ if (approvedPaths && (0, toolShared_1.isPathApproved)(fullPath, approvedPaths)) {
176
+ continue;
177
+ }
178
+ const isInWorkspace = lsp_core_1.workspaceUtils.isInWorkspace((0, workspaceUtils_1.getWorkspaceFolderPaths)(this.lsp), fullPath);
179
+ if (!isInWorkspace) {
180
+ return { requiresAcceptance: true, warning: exports.destructiveCommandWarningMessage };
181
+ }
182
+ }
183
+ }
184
+ const command = cmdArgs[0];
185
+ const category = exports.commandCategories.get(command);
186
+ switch (category) {
187
+ case CommandCategory.Destructive:
188
+ return { requiresAcceptance: true, warning: exports.destructiveCommandWarningMessage };
189
+ case CommandCategory.Mutate:
190
+ return { requiresAcceptance: true, warning: exports.mutateCommandWarningMessage };
191
+ case CommandCategory.ReadOnly:
192
+ continue;
193
+ default:
194
+ return { requiresAcceptance: true };
195
+ }
196
+ }
197
+ // Finally, check if the cwd is outside the workspace
198
+ if (params.cwd) {
199
+ // Check if the cwd is already approved
200
+ if (!(approvedPaths && (0, toolShared_1.isPathApproved)(params.cwd, approvedPaths))) {
201
+ const workspaceFolders = (0, workspaceUtils_1.getWorkspaceFolderPaths)(this.lsp);
202
+ // If there are no workspace folders, we can't validate the path
203
+ if (!workspaceFolders || workspaceFolders.length === 0) {
204
+ return { requiresAcceptance: true, warning: exports.outOfWorkspaceWarningmessage };
205
+ }
206
+ // Normalize paths for consistent comparison
207
+ const normalizedCwd = params.cwd.replace(/\\/g, '/');
208
+ const normalizedWorkspaceFolders = workspaceFolders.map(folder => folder.replace(/\\/g, '/'));
209
+ // Check if the normalized cwd is in any of the normalized workspace folders
210
+ const isInWorkspace = normalizedWorkspaceFolders.some(folder => normalizedCwd === folder || normalizedCwd.startsWith(folder + '/'));
211
+ if (!isInWorkspace) {
212
+ return { requiresAcceptance: true, warning: exports.outOfWorkspaceWarningmessage };
213
+ }
214
+ }
215
+ }
216
+ // If we've checked all commands and none required acceptance, we're good
217
+ return { requiresAcceptance: false };
218
+ }
219
+ catch (error) {
220
+ this.logging.warn(`Error while checking acceptance: ${error.message}`);
221
+ return { requiresAcceptance: true };
222
+ }
223
+ }
224
+ looksLikePath(arg) {
225
+ if (IS_WINDOWS_PLATFORM) {
226
+ // Windows path patterns
227
+ return (arg.startsWith('/') ||
228
+ arg.startsWith('./') ||
229
+ arg.startsWith('../') ||
230
+ arg.startsWith('\\\\') || // UNC path
231
+ arg.startsWith('.\\') ||
232
+ arg.startsWith('..\\') ||
233
+ /^[a-zA-Z]:[/\\]/.test(arg)); // Drive letter paths like C:\ or C:/
234
+ }
235
+ else {
236
+ // Unix path patterns
237
+ return arg.startsWith('/') || arg.startsWith('./') || arg.startsWith('../');
238
+ }
239
+ }
240
+ // TODO: generalize cancellation logic for tools.
241
+ async invoke(params, cancellationToken, updates) {
242
+ const { shellName, shellFlag } = IS_WINDOWS_PLATFORM
243
+ ? { shellName: 'cmd.exe', shellFlag: '/c' }
244
+ : { shellName: 'bash', shellFlag: '-c' };
245
+ this.logging.info(`Invoking ${shellName} command: "${params.command}" in cwd: "${params.cwd}"`);
246
+ return new Promise(async (resolve, reject) => {
247
+ let finished = false;
248
+ const abort = (err) => {
249
+ if (!finished) {
250
+ finished = true;
251
+ reject(err); // <─ propagate the error to caller
252
+ }
253
+ };
254
+ // Check if cancelled before starting
255
+ if (cancellationToken?.isCancellationRequested) {
256
+ this.logging.debug('Command execution cancelled before starting');
257
+ return abort(new lsp_core_1.CancellationError('user'));
258
+ }
259
+ this.logging.debug(`Spawning process with command: ${shellName} ${shellFlag} "${params.command}" (cwd=${params.cwd})`);
260
+ const stdoutBuffer = [];
261
+ const stderrBuffer = [];
262
+ // Use a closure boolean value firstChunk and a function to get and set its value
263
+ let isFirstChunk = true;
264
+ const getAndSetFirstChunk = (newValue) => {
265
+ const oldValue = isFirstChunk;
266
+ isFirstChunk = newValue;
267
+ return oldValue;
268
+ };
269
+ // Use a queue to maintain chronological order of chunks
270
+ // This ensures that the output is processed in the exact order it was generated by the child process.
271
+ const outputQueue = [];
272
+ let processingQueue = false;
273
+ const writer = updates?.getWriter();
274
+ // Process the queue in order
275
+ const processQueue = () => {
276
+ if (processingQueue || outputQueue.length === 0) {
277
+ return;
278
+ }
279
+ processingQueue = true;
280
+ try {
281
+ // Sort by timestamp to ensure chronological order
282
+ outputQueue.sort((a, b) => a.timestamp - b.timestamp);
283
+ while (outputQueue.length > 0) {
284
+ const chunk = outputQueue.shift();
285
+ ExecuteBash.handleTimestampedChunk(chunk, stdoutBuffer, stderrBuffer, writer);
286
+ }
287
+ }
288
+ finally {
289
+ processingQueue = false;
290
+ }
291
+ };
292
+ const childProcessOptions = {
293
+ spawnOptions: {
294
+ cwd: params.cwd,
295
+ stdio: ['pipe', 'pipe', 'pipe'],
296
+ },
297
+ collect: false,
298
+ waitForStreams: true,
299
+ onStdout: async (chunk) => {
300
+ if (cancellationToken?.isCancellationRequested) {
301
+ this.logging.debug('Command execution cancelled during stdout processing');
302
+ return abort(new lsp_core_1.CancellationError('user'));
303
+ }
304
+ const isFirst = getAndSetFirstChunk(false);
305
+ const timestamp = Date.now();
306
+ outputQueue.push({
307
+ timestamp,
308
+ isStdout: true,
309
+ content: chunk,
310
+ isFirst,
311
+ });
312
+ processQueue();
313
+ },
314
+ onStderr: async (chunk) => {
315
+ if (cancellationToken?.isCancellationRequested) {
316
+ this.logging.debug('Command execution cancelled during stderr processing');
317
+ return abort(new lsp_core_1.CancellationError('user'));
318
+ }
319
+ const isFirst = getAndSetFirstChunk(false);
320
+ const timestamp = Date.now();
321
+ outputQueue.push({
322
+ timestamp,
323
+ isStdout: false,
324
+ content: chunk,
325
+ isFirst,
326
+ });
327
+ processQueue();
328
+ },
329
+ };
330
+ this.childProcess = new processUtils_1.ChildProcess(this.logging, shellName, [shellFlag, params.command], childProcessOptions);
331
+ // Set up cancellation listener
332
+ if (cancellationToken) {
333
+ cancellationToken.onCancellationRequested(() => {
334
+ this.logging.debug('cancellation detected, killing child process');
335
+ // Kill the process
336
+ this.childProcess?.stop(false, 'SIGTERM');
337
+ // After a short delay, force kill with SIGKILL if still running
338
+ setTimeout(() => {
339
+ if (this.childProcess && !this.childProcess.stopped) {
340
+ this.logging.debug('Process still running after SIGTERM, sending SIGKILL');
341
+ // Try to kill the process group with SIGKILL
342
+ this.childProcess.stop(true, 'SIGKILL');
343
+ }
344
+ }, 500);
345
+ // Return from the function after cancellation
346
+ return abort(new lsp_core_1.CancellationError('user'));
347
+ });
348
+ }
349
+ try {
350
+ const result = await this.childProcess.run();
351
+ // Check if cancelled after execution
352
+ if (cancellationToken?.isCancellationRequested) {
353
+ this.logging.debug('Command execution cancelled after completion');
354
+ return abort(new lsp_core_1.CancellationError('user'));
355
+ }
356
+ const exitStatus = result.exitCode ?? 0;
357
+ const stdout = stdoutBuffer.join('\n');
358
+ const stderr = stderrBuffer.join('\n');
359
+ const success = exitStatus === 0 && !stderr;
360
+ const [stdoutTrunc, stdoutSuffix] = ExecuteBash.truncateSafelyWithSuffix(stdout, exports.maxToolResponseSize / 3);
361
+ const [stderrTrunc, stderrSuffix] = ExecuteBash.truncateSafelyWithSuffix(stderr, exports.maxToolResponseSize / 3);
362
+ const outputJson = {
363
+ exitStatus: exitStatus.toString(),
364
+ stdout: stdoutTrunc + (stdoutSuffix ? ' ... truncated' : ''),
365
+ stderr: stderrTrunc + (stderrSuffix ? ' ... truncated' : ''),
366
+ };
367
+ resolve({
368
+ output: {
369
+ kind: 'json',
370
+ content: outputJson,
371
+ success,
372
+ },
373
+ });
374
+ }
375
+ catch (err) {
376
+ // Check if this was due to cancellation
377
+ if (cancellationToken?.isCancellationRequested) {
378
+ return abort(new lsp_core_1.CancellationError('user'));
379
+ }
380
+ else {
381
+ this.logging.error(`Failed to execute ${shellName} command '${params.command}': ${err.message}`);
382
+ reject(new Error(`Failed to execute command: ${err.message}`));
383
+ }
384
+ }
385
+ finally {
386
+ await writer?.close();
387
+ writer?.releaseLock();
388
+ }
389
+ });
390
+ }
391
+ static handleChunk(chunk, buffer, writer) {
392
+ try {
393
+ void writer?.write(chunk);
394
+ const lines = chunk.split(/\r?\n/);
395
+ for (const line of lines) {
396
+ buffer.push(line);
397
+ if (buffer.length > exports.lineCount) {
398
+ buffer.shift();
399
+ }
400
+ }
401
+ }
402
+ catch (error) {
403
+ // Log the error but don't let it crash the process
404
+ throw new Error('Error handling output chunk');
405
+ }
406
+ }
407
+ static truncateSafelyWithSuffix(str, maxLength) {
408
+ if (str.length > maxLength) {
409
+ return [str.substring(0, maxLength), true];
410
+ }
411
+ return [str, false];
412
+ }
413
+ static async whichCommand(logger, cmd) {
414
+ const { command, args } = IS_WINDOWS_PLATFORM
415
+ ? { command: 'where', args: [cmd] }
416
+ : { command: 'sh', args: ['-c', `command -v ${cmd}`] };
417
+ const cp = new lsp_core_1.processUtils.ChildProcess(logger, command, args, {
418
+ collect: true,
419
+ waitForStreams: true,
420
+ });
421
+ const result = await cp.run();
422
+ if (result.exitCode !== 0) {
423
+ throw new Error(`Command '${cmd}' not found on PATH.`);
424
+ }
425
+ const output = result.stdout.trim();
426
+ if (!output) {
427
+ throw new Error(`Command '${cmd}' found but '${command} ${args.join(' ')}' returned empty output.`);
428
+ }
429
+ return output;
430
+ }
431
+ async queueDescription(command, updates) {
432
+ const writer = updates.getWriter();
433
+ await writer.write('```shell\n' + command + '\n```');
434
+ await writer.close();
435
+ writer.releaseLock();
436
+ }
437
+ getSpec() {
438
+ return {
439
+ name: 'executeBash',
440
+ description: 'Execute the specified command on the system shell (bash on Unix/Linux/macOS, cmd.exe on Windows).',
441
+ inputSchema: {
442
+ type: 'object',
443
+ properties: {
444
+ explanation: {
445
+ type: 'string',
446
+ description: 'One sentence explanation as to why this tool is being used, and how it contributes to the goal.',
447
+ },
448
+ command: {
449
+ type: 'string',
450
+ description: 'Command to execute on the system shell. On Windows, this will run in cmd.exe; on Unix-like systems, this will run in bash.',
451
+ },
452
+ cwd: {
453
+ type: 'string',
454
+ description: 'Parameter to set the current working directory for the command execution.',
455
+ },
456
+ },
457
+ required: ['command', 'cwd'],
458
+ },
459
+ };
460
+ }
461
+ }
462
+ exports.ExecuteBash = ExecuteBash;
463
+ //# sourceMappingURL=executeBash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeBash.js","sourceRoot":"","sources":["../../../../src/language-server/agenticChat/tools/executeBash.ts"],"names":[],"mappings":";AAAA,sKAAsK;;;AAEtK,6CAAiG;AACjG,iCAA6B;AAE7B,4CAA+E;AAE/E,sEAAuF;AACvF,oDAAoD;AACpD,+BAAuC,CAAC,8DAA8D;AAEtG,0EAA+E;AAE/E,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,6DAAQ,CAAA;IACR,yDAAM,CAAA;IACN,mEAAW,CAAA;AACf,CAAC,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E7B,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,YAAY,GAAG,sBAAsB,CAAC,CAAA;QAC1D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;QACnC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,YAAY,GAAG,gBAAgB,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAA;QACvG,CAAC;QACD,OAAO,MAAM,CAAA;IACjB,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAe,EAAE,OAAuB;QAClE,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAA;QAClC,MAAM,MAAM,CAAC,KAAK,CAAC,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC,CAAA;QACpD,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;QACpB,MAAM,CAAC,WAAW,EAAE,CAAA;IACxB,CAAC;IAEM,OAAO;QACV,OAAO;YACH,IAAI,EAAE,aAAa;YACnB,WAAW,EACP,mGAAmG;YACvG,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,iGAAiG;qBACxG;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,4HAA4H;qBACnI;oBACD,GAAG,EAAE;wBACD,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2EAA2E;qBAC3F;iBACJ;gBACD,QAAQ,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;aAC/B;SACK,CAAA;IACd,CAAC;CACJ;AApaD,kCAoaC"}
@@ -0,0 +1,45 @@
1
+ import { CommandValidation, InvokeOutput } from './toolShared';
2
+ import { Features } from '@aws/language-server-runtimes/server-interface/server';
3
+ export interface FileSearchParams {
4
+ path: string;
5
+ pattern: string;
6
+ maxDepth?: number;
7
+ caseSensitive?: boolean;
8
+ }
9
+ export declare class FileSearch {
10
+ private readonly logging;
11
+ private readonly workspace;
12
+ private readonly lsp;
13
+ constructor(features: Pick<Features, 'logging' | 'workspace' | 'lsp'>);
14
+ validate(params: FileSearchParams): Promise<void>;
15
+ queueDescription(params: FileSearchParams, updates: WritableStream, requiresAcceptance: boolean): Promise<void>;
16
+ requiresAcceptance(params: FileSearchParams, approvedPaths?: Set<string>): Promise<CommandValidation>;
17
+ invoke(params: FileSearchParams): Promise<InvokeOutput>;
18
+ private createOutput;
19
+ getSpec(): {
20
+ readonly name: "fileSearch";
21
+ readonly description: "Search for files in a directory and its subdirectories using regex patterns. It filters out build outputs such as `build/`, `out/` and `dist` and dependency directories such as `node_modules/`.\n * Results are filtered by the provided regex pattern.\n * Case sensitivity can be controlled with the caseSensitive parameter.\n * Results clearly distinguish between files, directories or symlinks with [F], [D] and [L] prefixes.";
22
+ readonly inputSchema: {
23
+ readonly type: "object";
24
+ readonly properties: {
25
+ readonly path: {
26
+ readonly type: "string";
27
+ readonly description: "Absolute path to a directory, e.g., `/repo`.";
28
+ };
29
+ readonly pattern: {
30
+ readonly type: "string";
31
+ readonly description: "Regex pattern to match against file and directory names.";
32
+ };
33
+ readonly maxDepth: {
34
+ readonly type: "number";
35
+ readonly description: "Maximum depth to traverse when searching directories. Use `0` to search only the specified directory, `1` to include immediate subdirectories, etc. If it is not provided, it will search all subdirectories recursively.";
36
+ };
37
+ readonly caseSensitive: {
38
+ readonly type: "boolean";
39
+ readonly description: "Whether the pattern matching should be case-sensitive. Defaults to false if not provided.";
40
+ };
41
+ };
42
+ readonly required: readonly ["path", "pattern"];
43
+ };
44
+ };
45
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileSearch = void 0;
4
+ // FileSearch tool based on ListDirectory implementation
5
+ const toolShared_1 = require("./toolShared");
6
+ const lsp_core_1 = require("@aws/lsp-core");
7
+ const path_1 = require("@aws/lsp-core/out/util/path");
8
+ const constants_1 = require("../../chat/constants");
9
+ class FileSearch {
10
+ logging;
11
+ workspace;
12
+ lsp;
13
+ constructor(features) {
14
+ this.logging = features.logging;
15
+ this.workspace = features.workspace;
16
+ this.lsp = features.lsp;
17
+ }
18
+ async validate(params) {
19
+ if (params.maxDepth !== undefined && params.maxDepth < 0) {
20
+ throw new Error('MaxDepth cannot be negative.');
21
+ }
22
+ await (0, toolShared_1.validatePath)(params.path, this.workspace.fs.exists);
23
+ // Validate regex pattern
24
+ try {
25
+ new RegExp(params.pattern, params.caseSensitive ? '' : 'i');
26
+ }
27
+ catch (error) {
28
+ throw new Error(`Invalid regex pattern: ${error.message}`);
29
+ }
30
+ }
31
+ async queueDescription(params, updates, requiresAcceptance) {
32
+ const writer = updates.getWriter();
33
+ const closeWriter = async (w) => {
34
+ await w.close();
35
+ w.releaseLock();
36
+ };
37
+ if (!requiresAcceptance) {
38
+ await writer.write('');
39
+ await closeWriter(writer);
40
+ return;
41
+ }
42
+ const caseSensitiveText = params.caseSensitive ? 'case-sensitive' : 'case-insensitive';
43
+ if (params.maxDepth === undefined) {
44
+ await writer.write(`Searching recursively in ${params.path} for files matching pattern "${params.pattern}" (${caseSensitiveText})`);
45
+ }
46
+ else if (params.maxDepth === 0) {
47
+ await writer.write(`Searching in ${params.path} for files matching pattern "${params.pattern}" (${caseSensitiveText})`);
48
+ }
49
+ else {
50
+ const level = params.maxDepth > 1 ? 'levels' : 'level';
51
+ await writer.write(`Searching in ${params.path} limited to ${params.maxDepth} subfolder ${level} for files matching pattern "${params.pattern}" (${caseSensitiveText})`);
52
+ }
53
+ await closeWriter(writer);
54
+ }
55
+ async requiresAcceptance(params, approvedPaths) {
56
+ return (0, toolShared_1.requiresPathAcceptance)(params.path, this.lsp, this.logging, approvedPaths);
57
+ }
58
+ async invoke(params) {
59
+ const path = (0, path_1.sanitize)(params.path);
60
+ try {
61
+ // Get all files and directories
62
+ const listing = await lsp_core_1.workspaceUtils.readDirectoryRecursively({ workspace: this.workspace, logging: this.logging }, path, { maxDepth: params.maxDepth, excludePatterns: constants_1.DEFAULT_EXCLUDE_PATTERNS });
63
+ // Create regex pattern for filtering
64
+ const regex = new RegExp(params.pattern, params.caseSensitive ? '' : 'i');
65
+ // Filter the results based on the pattern
66
+ const filteredResults = listing.filter(item => regex.test(item));
67
+ if (filteredResults.length === 0) {
68
+ return this.createOutput(`No files matching pattern "${params.pattern}" found in ${path}`);
69
+ }
70
+ return this.createOutput(filteredResults.join('\n'));
71
+ }
72
+ catch (error) {
73
+ this.logging.error(`Failed to search directory "${path}": ${error.message || error}`);
74
+ throw new Error(`Failed to search directory "${path}": ${error.message || error}`);
75
+ }
76
+ }
77
+ createOutput(content) {
78
+ return {
79
+ output: {
80
+ kind: 'text',
81
+ content: content,
82
+ },
83
+ };
84
+ }
85
+ getSpec() {
86
+ return {
87
+ name: 'fileSearch',
88
+ description: 'Search for files in a directory and its subdirectories using regex patterns. It filters out build outputs such as `build/`, `out/` and `dist` and dependency directories such as `node_modules/`.\n * Results are filtered by the provided regex pattern.\n * Case sensitivity can be controlled with the caseSensitive parameter.\n * Results clearly distinguish between files, directories or symlinks with [F], [D] and [L] prefixes.',
89
+ inputSchema: {
90
+ type: 'object',
91
+ properties: {
92
+ path: {
93
+ type: 'string',
94
+ description: 'Absolute path to a directory, e.g., `/repo`.',
95
+ },
96
+ pattern: {
97
+ type: 'string',
98
+ description: 'Regex pattern to match against file and directory names.',
99
+ },
100
+ maxDepth: {
101
+ type: 'number',
102
+ description: 'Maximum depth to traverse when searching directories. Use `0` to search only the specified directory, `1` to include immediate subdirectories, etc. If it is not provided, it will search all subdirectories recursively.',
103
+ },
104
+ caseSensitive: {
105
+ type: 'boolean',
106
+ description: 'Whether the pattern matching should be case-sensitive. Defaults to false if not provided.',
107
+ },
108
+ },
109
+ required: ['path', 'pattern'],
110
+ },
111
+ };
112
+ }
113
+ }
114
+ exports.FileSearch = FileSearch;
115
+ //# sourceMappingURL=fileSearch.js.map