@aws/lsp-codewhisperer 0.0.48 → 0.0.50

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 (772) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/out/client/streamingClient/codewhispererStreamingClient.d.ts +1 -1
  3. package/out/client/streamingClient/codewhispererStreamingClient.js +2 -2
  4. package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -1
  5. package/out/client/token/bearer-token-service.json +140 -2
  6. package/out/language-server/agenticChat/agenticChatController.d.ts +10 -4
  7. package/out/language-server/agenticChat/agenticChatController.js +108 -43
  8. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  9. package/out/language-server/agenticChat/agenticChatEventParser.d.ts +1 -1
  10. package/out/language-server/agenticChat/constants.d.ts +3 -3
  11. package/out/language-server/agenticChat/constants.js +3 -5
  12. package/out/language-server/agenticChat/constants.js.map +1 -1
  13. package/out/language-server/agenticChat/context/addtionalContextProvider.d.ts +39 -6
  14. package/out/language-server/agenticChat/context/addtionalContextProvider.js +329 -53
  15. package/out/language-server/agenticChat/context/addtionalContextProvider.js.map +1 -1
  16. package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +3 -2
  17. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +7 -7
  18. package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -1
  19. package/out/language-server/agenticChat/context/contextCommandsProvider.js +4 -2
  20. package/out/language-server/agenticChat/context/contextCommandsProvider.js.map +1 -1
  21. package/out/language-server/agenticChat/context/contextUtils.d.ts +21 -2
  22. package/out/language-server/agenticChat/context/contextUtils.js +45 -16
  23. package/out/language-server/agenticChat/context/contextUtils.js.map +1 -1
  24. package/out/language-server/agenticChat/errors.js +2 -2
  25. package/out/language-server/agenticChat/errors.js.map +1 -1
  26. package/out/language-server/agenticChat/qAgenticChatServer.js +17 -1
  27. package/out/language-server/agenticChat/qAgenticChatServer.js.map +1 -1
  28. package/out/language-server/agenticChat/tabBarController.d.ts +1 -1
  29. package/out/language-server/agenticChat/tabBarController.js +11 -5
  30. package/out/language-server/agenticChat/tabBarController.js.map +1 -1
  31. package/out/language-server/agenticChat/textFormatting.d.ts +1 -1
  32. package/out/language-server/agenticChat/tools/chatDb/chatDb.d.ts +68 -15
  33. package/out/language-server/agenticChat/tools/chatDb/chatDb.js +260 -126
  34. package/out/language-server/agenticChat/tools/chatDb/chatDb.js.map +1 -1
  35. package/out/language-server/agenticChat/tools/chatDb/chatHistoryMaintainer.d.ts +99 -0
  36. package/out/language-server/agenticChat/tools/chatDb/chatHistoryMaintainer.js +318 -0
  37. package/out/language-server/agenticChat/tools/chatDb/chatHistoryMaintainer.js.map +1 -0
  38. package/out/language-server/agenticChat/tools/chatDb/util.d.ts +58 -2
  39. package/out/language-server/agenticChat/tools/chatDb/util.js +74 -2
  40. package/out/language-server/agenticChat/tools/chatDb/util.js.map +1 -1
  41. package/out/language-server/agenticChat/tools/codeSearch.d.ts +1 -1
  42. package/out/language-server/chat/chatController.d.ts +1 -1
  43. package/out/language-server/chat/chatController.js +3 -3
  44. package/out/language-server/chat/chatController.js.map +1 -1
  45. package/out/language-server/chat/chatEventParser.d.ts +1 -1
  46. package/out/language-server/chat/chatSessionService.d.ts +1 -1
  47. package/out/language-server/chat/contexts/documentContext.d.ts +1 -1
  48. package/out/language-server/chat/contexts/triggerContext.d.ts +1 -1
  49. package/out/language-server/chat/contexts/triggerContext.js +5 -5
  50. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  51. package/out/language-server/chat/quickActions.d.ts +1 -7
  52. package/out/language-server/chat/quickActions.js +1 -7
  53. package/out/language-server/chat/quickActions.js.map +1 -1
  54. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +1 -1
  55. package/out/language-server/chat/telemetry/chatTelemetryController.js +13 -8
  56. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  57. package/out/language-server/chat/tools/relevantTextDocuments.d.ts +1 -1
  58. package/out/language-server/inline-completion/auto-trigger/EditPredictionAutoTriggerTestConstants.d.ts +59 -0
  59. package/out/language-server/inline-completion/auto-trigger/EditPredictionAutoTriggerTestConstants.js +189 -0
  60. package/out/language-server/inline-completion/auto-trigger/EditPredictionAutoTriggerTestConstants.js.map +1 -0
  61. package/out/language-server/inline-completion/auto-trigger/editPredictionAutoTrigger.d.ts +27 -0
  62. package/out/language-server/inline-completion/auto-trigger/editPredictionAutoTrigger.js +57 -0
  63. package/out/language-server/inline-completion/auto-trigger/editPredictionAutoTrigger.js.map +1 -0
  64. package/out/language-server/inline-completion/auto-trigger/editPredictionConfig.d.ts +49 -0
  65. package/out/language-server/inline-completion/auto-trigger/editPredictionConfig.js +66 -0
  66. package/out/language-server/inline-completion/auto-trigger/editPredictionConfig.js.map +1 -0
  67. package/out/language-server/inline-completion/auto-trigger/languageDetector.d.ts +24 -0
  68. package/out/language-server/inline-completion/auto-trigger/languageDetector.js +353 -0
  69. package/out/language-server/inline-completion/auto-trigger/languageDetector.js.map +1 -0
  70. package/out/language-server/inline-completion/diffUtils.d.ts +50 -0
  71. package/out/language-server/inline-completion/diffUtils.js +202 -0
  72. package/out/language-server/inline-completion/diffUtils.js.map +1 -0
  73. package/out/language-server/inline-completion/tracker/codeEditTracker.d.ts +178 -0
  74. package/out/language-server/inline-completion/tracker/codeEditTracker.js +478 -0
  75. package/out/language-server/inline-completion/tracker/codeEditTracker.js.map +1 -0
  76. package/out/language-server/inline-completion/tracker/cursorTracker.d.ts +114 -0
  77. package/out/language-server/inline-completion/tracker/cursorTracker.js +188 -0
  78. package/out/language-server/inline-completion/tracker/cursorTracker.js.map +1 -0
  79. package/out/language-server/inline-completion/tracker/rejectedEditTracker.d.ts +57 -0
  80. package/out/language-server/inline-completion/tracker/rejectedEditTracker.js +123 -0
  81. package/out/language-server/inline-completion/tracker/rejectedEditTracker.js.map +1 -0
  82. package/out/language-server/netTransform/artifactManager.js +3 -0
  83. package/out/language-server/netTransform/artifactManager.js.map +1 -1
  84. package/out/language-server/netTransform/models.d.ts +2 -0
  85. package/out/language-server/netTransform/models.js.map +1 -1
  86. package/out/language-server/netTransform/tests/mockData.js +1 -0
  87. package/out/language-server/netTransform/tests/mockData.js.map +1 -1
  88. package/out/language-server/netTransform/transformHandler.js +2 -2
  89. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  90. package/out/language-server/workspaceContext/workspaceContextServer.js +11 -4
  91. package/out/language-server/workspaceContext/workspaceContextServer.js.map +1 -1
  92. package/out/language-server/workspaceContext/workspaceFolderManager.d.ts +1 -0
  93. package/out/language-server/workspaceContext/workspaceFolderManager.js +24 -15
  94. package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
  95. package/out/shared/models/model.d.ts +26 -1
  96. package/out/shared/streamingClientService.d.ts +1 -1
  97. package/out/shared/streamingClientService.js +2 -2
  98. package/out/shared/streamingClientService.js.map +1 -1
  99. package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +10 -1
  100. package/out/shared/supplementalContextUtil/supplementalContextUtil.js +41 -0
  101. package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
  102. package/out/shared/telemetry/telemetryService.d.ts +5 -0
  103. package/out/shared/telemetry/telemetryService.js +5 -0
  104. package/out/shared/telemetry/telemetryService.js.map +1 -1
  105. package/out/shared/telemetry/types.d.ts +5 -0
  106. package/out/shared/telemetry/types.js.map +1 -1
  107. package/out/shared/utils.d.ts +1 -1
  108. package/out/shared/utils.js +5 -5
  109. package/out/shared/utils.js.map +1 -1
  110. package/package.json +4 -4
  111. package/node_modules/@amzn/codewhisperer-streaming/LICENSE +0 -201
  112. package/node_modules/@amzn/codewhisperer-streaming/README.md +0 -941
  113. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +0 -19
  114. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreamingClient.js +0 -49
  115. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  116. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/auth/httpAuthSchemeProvider.js +0 -46
  117. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/ExportResultArchiveCommand.js +0 -26
  118. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateAssistantResponseCommand.js +0 -26
  119. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/GenerateTaskAssistPlanCommand.js +0 -26
  120. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/SendMessageCommand.js +0 -26
  121. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +0 -7
  122. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/endpoints.js +0 -211
  123. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/extensionConfiguration.js +0 -2
  124. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/index.js +0 -10
  125. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/CodeWhispererStreamingServiceException.js +0 -12
  126. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/index.js +0 -4
  127. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +0 -1090
  128. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +0 -687
  129. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.browser.js +0 -39
  130. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.js +0 -53
  131. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.native.js +0 -15
  132. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeConfig.shared.js +0 -32
  133. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/runtimeExtensions.js +0 -25
  134. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +0 -15
  135. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreamingClient.js +0 -45
  136. package/node_modules/@amzn/codewhisperer-streaming/dist-es/auth/httpAuthExtensionConfiguration.js +0 -38
  137. package/node_modules/@amzn/codewhisperer-streaming/dist-es/auth/httpAuthSchemeProvider.js +0 -40
  138. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/ExportResultArchiveCommand.js +0 -22
  139. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/GenerateAssistantResponseCommand.js +0 -22
  140. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/GenerateTaskAssistPlanCommand.js +0 -22
  141. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/SendMessageCommand.js +0 -22
  142. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +0 -4
  143. package/node_modules/@amzn/codewhisperer-streaming/dist-es/endpoints.js +0 -207
  144. package/node_modules/@amzn/codewhisperer-streaming/dist-es/extensionConfiguration.js +0 -1
  145. package/node_modules/@amzn/codewhisperer-streaming/dist-es/index.js +0 -5
  146. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/CodeWhispererStreamingServiceException.js +0 -8
  147. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/index.js +0 -1
  148. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +0 -998
  149. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +0 -676
  150. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.browser.js +0 -34
  151. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.js +0 -48
  152. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.native.js +0 -11
  153. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeConfig.shared.js +0 -28
  154. package/node_modules/@amzn/codewhisperer-streaming/dist-es/runtimeExtensions.js +0 -21
  155. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +0 -37
  156. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +0 -192
  157. package/node_modules/@amzn/codewhisperer-streaming/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
  158. package/node_modules/@amzn/codewhisperer-streaming/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -67
  159. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +0 -114
  160. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +0 -788
  161. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +0 -801
  162. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +0 -801
  163. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +0 -4
  164. package/node_modules/@amzn/codewhisperer-streaming/dist-types/endpoints.d.ts +0 -2
  165. package/node_modules/@amzn/codewhisperer-streaming/dist-types/extensionConfiguration.d.ts +0 -9
  166. package/node_modules/@amzn/codewhisperer-streaming/dist-types/index.d.ts +0 -7
  167. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/CodeWhispererStreamingServiceException.d.ts +0 -14
  168. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/index.d.ts +0 -1
  169. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +0 -3223
  170. package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  171. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.browser.d.ts +0 -48
  172. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.d.ts +0 -47
  173. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.native.d.ts +0 -44
  174. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeConfig.shared.d.ts +0 -25
  175. package/node_modules/@amzn/codewhisperer-streaming/dist-types/runtimeExtensions.d.ts +0 -17
  176. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
  177. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/README.md +0 -53
  178. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -217
  179. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
  180. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -88
  181. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
  182. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
  183. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -8
  184. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -3
  185. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
  186. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
  187. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
  188. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
  189. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +0 -8
  190. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +0 -12
  191. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +0 -9
  192. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +0 -8
  193. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +0 -7
  194. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -3
  195. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +0 -18
  196. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +0 -3
  197. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +0 -14
  198. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +0 -12
  199. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +0 -9
  200. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +0 -5
  201. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -3
  202. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +0 -5
  203. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +0 -2
  204. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +0 -5
  205. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +0 -5
  206. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +0 -5
  207. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +0 -4
  208. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +0 -5
  209. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/token-providers/package.json +0 -67
  210. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/LICENSE +0 -201
  211. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/README.md +0 -4
  212. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -294
  213. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/abort.js +0 -1
  214. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/auth.js +0 -1
  215. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +0 -1
  216. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/checksum.js +0 -1
  217. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/client.js +0 -1
  218. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/command.js +0 -1
  219. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/connection.js +0 -1
  220. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/credentials.js +0 -1
  221. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/crypto.js +0 -1
  222. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/dns.js +0 -5
  223. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/encode.js +0 -1
  224. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/endpoint.js +0 -1
  225. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/eventStream.js +0 -1
  226. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/extensions/index.js +0 -1
  227. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/feature-ids.js +0 -1
  228. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/http.js +0 -1
  229. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +0 -1
  230. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +0 -1
  231. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +0 -1
  232. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +0 -1
  233. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +0 -1
  234. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/index.js +0 -5
  235. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +0 -33
  236. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/logger.js +0 -1
  237. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/middleware.js +0 -1
  238. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/pagination.js +0 -1
  239. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/profile.js +0 -1
  240. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/request.js +0 -1
  241. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/response.js +0 -1
  242. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/retry.js +0 -1
  243. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/serde.js +0 -1
  244. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/shapes.js +0 -1
  245. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/signature.js +0 -1
  246. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/stream.js +0 -1
  247. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/token.js +0 -1
  248. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/transfer.js +0 -1
  249. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/uri.js +0 -1
  250. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/util.js +0 -1
  251. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/waiter.js +0 -1
  252. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/abort.d.ts +0 -1
  253. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/auth.d.ts +0 -1
  254. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +0 -2
  255. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +0 -1
  256. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/client.d.ts +0 -1
  257. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/command.d.ts +0 -1
  258. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/connection.d.ts +0 -1
  259. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +0 -50
  260. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +0 -1
  261. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/dns.d.ts +0 -85
  262. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/encode.d.ts +0 -1
  263. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +0 -1
  264. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +0 -1
  265. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +0 -8
  266. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +0 -59
  267. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/http.d.ts +0 -33
  268. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +0 -6
  269. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +0 -47
  270. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +0 -1
  271. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +0 -18
  272. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +0 -1
  273. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +0 -5
  274. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +0 -33
  275. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/logger.d.ts +0 -22
  276. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +0 -13
  277. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +0 -1
  278. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/profile.d.ts +0 -1
  279. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/request.d.ts +0 -7
  280. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/response.d.ts +0 -7
  281. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/retry.d.ts +0 -1
  282. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/serde.d.ts +0 -24
  283. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +0 -1
  284. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/signature.d.ts +0 -1
  285. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/stream.d.ts +0 -1
  286. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/token.d.ts +0 -17
  287. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +0 -1
  288. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +0 -1
  289. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +0 -5
  290. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +0 -2
  291. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +0 -1
  292. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +0 -1
  293. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +0 -1
  294. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +0 -6
  295. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +0 -13
  296. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +0 -7
  297. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +0 -19
  298. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +0 -6
  299. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +0 -9
  300. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +0 -24
  301. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +0 -5
  302. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +0 -54
  303. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +0 -17
  304. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +0 -2
  305. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +0 -25
  306. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +0 -1
  307. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +0 -6
  308. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +0 -1
  309. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +0 -5
  310. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +0 -33
  311. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +0 -15
  312. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +0 -47
  313. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +0 -1
  314. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +0 -6
  315. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +0 -4
  316. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +0 -4
  317. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +0 -12
  318. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +0 -16
  319. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +0 -6
  320. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +0 -15
  321. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +0 -4
  322. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +0 -4
  323. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +0 -7
  324. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +0 -1
  325. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +0 -14
  326. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +0 -1
  327. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/uri.d.ts +0 -1
  328. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/util.d.ts +0 -1
  329. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +0 -1
  330. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +0 -56
  331. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/LICENSE +0 -201
  332. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/README.md +0 -4
  333. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  334. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  335. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -84
  336. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -9
  337. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -20
  338. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-es/index.js +0 -2
  339. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -16
  340. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +0 -21
  341. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -9
  342. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -16
  343. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +0 -21
  344. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -9
  345. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/package.json +0 -62
  346. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/LICENSE +0 -201
  347. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/README.md +0 -9
  348. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  349. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  350. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -806
  351. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  352. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  353. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  354. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  355. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  356. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  357. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  358. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  359. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  360. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  361. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  362. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  363. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  364. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  365. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
  366. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -9
  367. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
  368. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -209
  369. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -86
  370. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -32
  371. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -167
  372. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -19
  373. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  374. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
  375. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
  376. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -24
  377. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -11
  378. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  379. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -19
  380. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
  381. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -56
  382. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +0 -5
  383. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -4
  384. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +0 -3
  385. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -45
  386. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -24
  387. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -12
  388. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -62
  389. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -12
  390. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +0 -12
  391. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
  392. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -6
  393. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
  394. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
  395. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -6
  396. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -12
  397. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +0 -8
  398. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -5
  399. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -4
  400. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +0 -3
  401. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -45
  402. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -24
  403. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -12
  404. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -62
  405. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -12
  406. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -12
  407. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
  408. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
  409. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
  410. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -5
  411. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -6
  412. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -12
  413. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +0 -8
  414. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -11
  415. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -11
  416. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/package.json +0 -67
  417. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/LICENSE +0 -201
  418. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/README.md +0 -115
  419. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  420. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  421. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  422. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  423. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  424. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  425. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  426. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  427. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  428. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  429. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  430. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  431. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  432. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  433. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  434. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  435. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  436. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  437. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  438. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  439. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  440. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  441. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  442. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  443. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  444. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  445. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  446. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  447. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  448. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  449. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  450. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  451. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  452. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  453. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  454. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  455. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  456. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  457. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  458. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  459. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  460. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  461. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/index.js +0 -144
  462. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  463. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  464. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  465. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  466. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  467. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  468. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  469. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  470. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  471. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  472. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  473. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  474. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  475. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  476. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  477. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  478. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  479. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  480. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  481. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  482. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  483. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  484. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  485. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  486. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  487. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  488. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort-handler.js +0 -1
  489. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/abort.js +0 -1
  490. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +0 -5
  491. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +0 -1
  492. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +0 -1
  493. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +0 -1
  494. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +0 -1
  495. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/auth.js +0 -5
  496. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/auth/index.js +0 -6
  497. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +0 -1
  498. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/checksum.js +0 -1
  499. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/client.js +0 -1
  500. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/command.js +0 -1
  501. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/config.js +0 -1
  502. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/index.js +0 -3
  503. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/manager.js +0 -1
  504. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/connection/pool.js +0 -1
  505. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/crypto.js +0 -1
  506. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -1
  507. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/encode.js +0 -1
  508. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoint.js +0 -5
  509. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +0 -1
  510. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +0 -1
  511. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +0 -1
  512. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +0 -1
  513. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/index.js +0 -5
  514. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/endpoints/shared.js +0 -1
  515. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/eventStream.js +0 -1
  516. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/checksum.js +0 -38
  517. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +0 -7
  518. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +0 -1
  519. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/index.js +0 -3
  520. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/extensions/retry.js +0 -1
  521. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +0 -1
  522. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/feature-ids.js +0 -1
  523. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +0 -1
  524. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/http.js +0 -5
  525. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +0 -1
  526. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +0 -1
  527. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/identity.js +0 -1
  528. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/index.js +0 -4
  529. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +0 -1
  530. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/index.js +0 -40
  531. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/logger.js +0 -1
  532. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/middleware.js +0 -1
  533. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/pagination.js +0 -1
  534. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/profile.js +0 -6
  535. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/response.js +0 -1
  536. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/retry.js +0 -1
  537. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/schema.js +0 -1
  538. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/sentinels.js +0 -1
  539. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/schema/traits.js +0 -1
  540. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/serde.js +0 -1
  541. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/shapes.js +0 -1
  542. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/signature.js +0 -1
  543. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/stream.js +0 -1
  544. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +0 -1
  545. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  546. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  547. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transfer.js +0 -6
  548. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +0 -1
  549. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +0 -1
  550. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/exact.js +0 -1
  551. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/mutable.js +0 -1
  552. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/no-undefined.js +0 -1
  553. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/transform/type-transform.js +0 -1
  554. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/uri.js +0 -1
  555. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/util.js +0 -1
  556. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-es/waiter.js +0 -1
  557. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort-handler.d.ts +0 -7
  558. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/abort.d.ts +0 -50
  559. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +0 -7
  560. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +0 -49
  561. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -20
  562. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +0 -41
  563. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +0 -14
  564. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/auth.d.ts +0 -57
  565. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/auth/index.d.ts +0 -6
  566. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -40
  567. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/checksum.d.ts +0 -63
  568. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/client.d.ts +0 -57
  569. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/command.d.ts +0 -25
  570. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/config.d.ts +0 -10
  571. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/index.d.ts +0 -3
  572. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/manager.d.ts +0 -34
  573. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/connection/pool.d.ts +0 -32
  574. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/crypto.d.ts +0 -60
  575. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -25
  576. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/encode.d.ts +0 -31
  577. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoint.d.ts +0 -77
  578. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +0 -27
  579. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +0 -10
  580. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +0 -28
  581. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +0 -16
  582. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +0 -5
  583. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +0 -55
  584. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/eventStream.d.ts +0 -137
  585. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +0 -58
  586. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +0 -33
  587. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -9
  588. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/index.d.ts +0 -4
  589. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +0 -18
  590. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +0 -35
  591. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/feature-ids.d.ts +0 -16
  592. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -121
  593. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/http.d.ts +0 -112
  594. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +0 -14
  595. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +0 -31
  596. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/identity.d.ts +0 -15
  597. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/index.d.ts +0 -4
  598. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +0 -14
  599. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/index.d.ts +0 -40
  600. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/logger.d.ts +0 -13
  601. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/middleware.d.ts +0 -534
  602. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/pagination.d.ts +0 -33
  603. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/profile.d.ts +0 -30
  604. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/response.d.ts +0 -40
  605. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/retry.d.ts +0 -133
  606. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/schema.d.ts +0 -263
  607. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +0 -65
  608. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/schema/traits.d.ts +0 -46
  609. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/serde.d.ts +0 -114
  610. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/shapes.d.ts +0 -82
  611. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/signature.d.ts +0 -155
  612. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/stream.d.ts +0 -22
  613. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -32
  614. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -60
  615. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -51
  616. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transfer.d.ts +0 -41
  617. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +0 -26
  618. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -77
  619. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/exact.d.ts +0 -6
  620. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +0 -6
  621. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +0 -68
  622. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +0 -34
  623. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +0 -7
  624. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +0 -50
  625. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -7
  626. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -49
  627. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -20
  628. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -41
  629. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -14
  630. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +0 -57
  631. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +0 -6
  632. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -40
  633. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +0 -63
  634. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +0 -57
  635. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +0 -25
  636. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +0 -10
  637. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +0 -3
  638. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +0 -34
  639. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +0 -32
  640. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +0 -60
  641. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -41
  642. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +0 -31
  643. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +0 -77
  644. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -27
  645. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -10
  646. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -28
  647. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -16
  648. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +0 -5
  649. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +0 -55
  650. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +0 -137
  651. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +0 -58
  652. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -33
  653. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -9
  654. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +0 -4
  655. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +0 -18
  656. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -35
  657. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +0 -16
  658. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -121
  659. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +0 -112
  660. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -14
  661. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -31
  662. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +0 -15
  663. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +0 -4
  664. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -14
  665. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +0 -40
  666. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +0 -13
  667. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +0 -534
  668. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +0 -33
  669. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +0 -30
  670. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +0 -40
  671. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +0 -133
  672. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +0 -278
  673. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +0 -65
  674. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +0 -46
  675. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +0 -114
  676. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +0 -82
  677. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +0 -155
  678. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +0 -22
  679. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -32
  680. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -60
  681. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -51
  682. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +0 -41
  683. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -26
  684. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -81
  685. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +0 -14
  686. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +0 -6
  687. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +0 -88
  688. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +0 -41
  689. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +0 -17
  690. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +0 -192
  691. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +0 -35
  692. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/uri.d.ts +0 -17
  693. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/util.d.ts +0 -176
  694. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/dist-types/waiter.d.ts +0 -35
  695. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/types/package.json +0 -60
  696. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/CHANGELOG.md +0 -274
  697. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/CONTRIBUTING.md +0 -18
  698. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/LICENSE.md +0 -9
  699. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/README.md +0 -466
  700. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/bin/uuid +0 -2
  701. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  702. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  703. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  704. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  705. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  706. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  707. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  708. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  709. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  710. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  711. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  712. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  713. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  714. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  715. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  716. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  717. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/index.js +0 -9
  718. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  719. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/native.js +0 -4
  720. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  721. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  722. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  723. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  724. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  725. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  726. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  727. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  728. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  729. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  730. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  731. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  732. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-browser/version.js +0 -11
  733. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/index.js +0 -9
  734. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/md5.js +0 -13
  735. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/native.js +0 -4
  736. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/nil.js +0 -1
  737. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/parse.js +0 -35
  738. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/regex.js +0 -1
  739. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/rng.js +0 -12
  740. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  741. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  742. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v1.js +0 -95
  743. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v3.js +0 -4
  744. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v35.js +0 -66
  745. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v4.js +0 -29
  746. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/v5.js +0 -4
  747. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/validate.js +0 -7
  748. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/esm-node/version.js +0 -11
  749. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/index.js +0 -79
  750. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/md5-browser.js +0 -223
  751. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/md5.js +0 -23
  752. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/native-browser.js +0 -11
  753. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/native.js +0 -15
  754. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/nil.js +0 -8
  755. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/parse.js +0 -45
  756. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/regex.js +0 -8
  757. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/rng-browser.js +0 -25
  758. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/rng.js +0 -24
  759. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/sha1-browser.js +0 -104
  760. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/sha1.js +0 -23
  761. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/stringify.js +0 -44
  762. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/uuid-bin.js +0 -85
  763. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v1.js +0 -107
  764. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v3.js +0 -16
  765. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v35.js +0 -80
  766. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v4.js +0 -43
  767. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/v5.js +0 -16
  768. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/validate.js +0 -17
  769. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/dist/version.js +0 -21
  770. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/package.json +0 -135
  771. package/node_modules/@amzn/codewhisperer-streaming/node_modules/uuid/wrapper.mjs +0 -10
  772. package/node_modules/@amzn/codewhisperer-streaming/package.json +0 -88
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatDatabase = exports.EMPTY_CONVERSATION_LIST_ID = void 0;
3
+ exports.ChatDatabase = exports.EMPTY_CONVERSATION_LIST_ID = exports.ToolResultValidationError = void 0;
4
4
  /*!
5
5
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  * SPDX-License-Identifier: Apache-2.0
@@ -9,11 +9,19 @@ const Loki = require("lokijs");
9
9
  const util_1 = require("./util");
10
10
  const crypto = require("crypto");
11
11
  const path = require("path");
12
- const codewhisperer_streaming_1 = require("@amzn/codewhisperer-streaming");
12
+ const codewhisperer_streaming_client_1 = require("@aws/codewhisperer-streaming-client");
13
13
  const path_1 = require("@aws/lsp-core/out/util/path");
14
+ const chatHistoryMaintainer_1 = require("./chatHistoryMaintainer");
15
+ class ToolResultValidationError extends Error {
16
+ constructor(message) {
17
+ super(message);
18
+ this.name = 'ToolResultValidationError';
19
+ }
20
+ }
21
+ exports.ToolResultValidationError = ToolResultValidationError;
14
22
  exports.EMPTY_CONVERSATION_LIST_ID = 'empty';
15
- // Maximum number of messages to keep in history
16
- const MaxConversationHistoryMessages = 250;
23
+ // Maximum number of history messages to include in each request to the LLM
24
+ const maxConversationHistoryMessages = 250;
17
25
  /**
18
26
  * A singleton database class that manages chat history persistence using LokiJS.
19
27
  * This class handles storage and retrieval of chat conversations, messages, and tab states
@@ -36,6 +44,7 @@ class ChatDatabase {
36
44
  #initialized = false;
37
45
  #loadTimeMs;
38
46
  #dbFileSize;
47
+ #historyMaintainer;
39
48
  constructor(features) {
40
49
  this.#features = features;
41
50
  this.#dbDirectory = path.join(features.runtime.platform === 'browser'
@@ -45,13 +54,12 @@ class ChatDatabase {
45
54
  const dbName = `chat-history-${workspaceId}.json`;
46
55
  const dbPath = path.join(this.#dbDirectory, dbName);
47
56
  this.#features.logging.log(`Initializing database at ${dbPath}`);
48
- this.#features.workspace.fs
49
- .getFileSize(dbPath)
50
- .then(({ size }) => {
57
+ (0, util_1.calculateDatabaseSize)(this.#features, dbPath)
58
+ .then(size => {
51
59
  this.#dbFileSize = size;
52
60
  })
53
61
  .catch(err => {
54
- this.#features.logging.log(`Error getting db file size: ${err}`);
62
+ this.#features.logging.warn(`Error getting db file size: ${err}`);
55
63
  });
56
64
  const startTime = Date.now();
57
65
  this.#db = new Loki(dbName, {
@@ -62,6 +70,12 @@ class ChatDatabase {
62
70
  autosaveInterval: 1000,
63
71
  persistenceMethod: 'fs',
64
72
  });
73
+ this.#historyMaintainer = new chatHistoryMaintainer_1.ChatHistoryMaintainer(features, this.#dbDirectory, dbName, this.#db);
74
+ // Async process: Trimming history asynchronously if the size exceeds the max
75
+ // This process will take several seconds
76
+ this.#historyMaintainer.trimHistoryToMaxSize().catch(err => {
77
+ this.#features.logging.error(`Error trimming history: ${err}`);
78
+ });
65
79
  }
66
80
  static getInstance(features) {
67
81
  if (!ChatDatabase.#instance) {
@@ -73,6 +87,12 @@ class ChatDatabase {
73
87
  this.#db.close();
74
88
  ChatDatabase.#instance = undefined;
75
89
  }
90
+ /**
91
+ * Returns whether the database has been initialized.
92
+ */
93
+ isInitialized() {
94
+ return this.#initialized;
95
+ }
76
96
  setHistoryIdMapping(tabId, historyId) {
77
97
  this.#features.logging.log(`Setting historyIdMapping: tabId=${tabId}, historyId=${historyId}`);
78
98
  this.#historyIdMapping.set(tabId, historyId);
@@ -120,16 +140,124 @@ class ChatDatabase {
120
140
  this.#loadTimeMs = Date.now() - startTime;
121
141
  }
122
142
  getOpenTabs() {
123
- if (this.#initialized) {
143
+ if (this.isInitialized()) {
124
144
  const collection = this.#db.getCollection(util_1.TabCollection);
125
145
  return collection.find({ isOpen: true });
126
146
  }
127
147
  }
148
+ addTabWithContext(collection, historyId, tabContext) {
149
+ collection.insert({
150
+ tabType: 'cwc',
151
+ historyId,
152
+ title: 'Amazon Q Chat',
153
+ conversations: [],
154
+ isOpen: true,
155
+ updatedAt: new Date(),
156
+ tabContext,
157
+ });
158
+ }
159
+ getRules(tabId) {
160
+ if (this.#initialized) {
161
+ const collection = this.#db.getCollection(util_1.TabCollection);
162
+ const historyId = this.#historyIdMapping.get(tabId);
163
+ if (historyId) {
164
+ const tab = collection.findOne({ historyId });
165
+ return tab?.tabContext?.rules || { folders: {}, rules: {} };
166
+ }
167
+ }
168
+ return { folders: {}, rules: {} };
169
+ }
170
+ getPinnedContext(tabId) {
171
+ if (this.#initialized) {
172
+ const collection = this.#db.getCollection(util_1.TabCollection);
173
+ const historyId = this.getOrCreateHistoryId(tabId);
174
+ if (historyId) {
175
+ const tab = collection.findOne({ historyId });
176
+ return tab?.tabContext?.pinnedContext || util_1.DEFAULT_PINNED_CONTEXT;
177
+ }
178
+ }
179
+ return [];
180
+ }
181
+ setRules(tabId, rules) {
182
+ if (this.#initialized) {
183
+ const collection = this.#db.getCollection(util_1.TabCollection);
184
+ const historyId = this.getOrCreateHistoryId(tabId);
185
+ const tab = collection.findOne({ historyId });
186
+ this.#features.logging.log(`Updating rules: rules=${JSON.stringify(rules)}`);
187
+ if (!tab) {
188
+ this.addTabWithContext(collection, historyId, { rules });
189
+ }
190
+ else {
191
+ if (!tab.tabContext) {
192
+ tab.tabContext = {};
193
+ }
194
+ tab.tabContext.rules = rules;
195
+ collection.update(tab);
196
+ }
197
+ }
198
+ }
199
+ addPinnedContext(tabId, context) {
200
+ if (this.#initialized) {
201
+ const collection = this.#db.getCollection(util_1.TabCollection);
202
+ const historyId = this.getOrCreateHistoryId(tabId);
203
+ if (historyId) {
204
+ this.#features.logging.log(`Adding pinned context: historyId=${historyId}, context=${JSON.stringify(context)}`);
205
+ const tab = collection.findOne({ historyId });
206
+ if (!tab) {
207
+ this.addTabWithContext(collection, historyId, {
208
+ pinnedContext: util_1.DEFAULT_PINNED_CONTEXT.concat([context]),
209
+ });
210
+ }
211
+ else {
212
+ if (!tab.tabContext) {
213
+ tab.tabContext = {};
214
+ }
215
+ if (!tab.tabContext.pinnedContext) {
216
+ tab.tabContext.pinnedContext = util_1.DEFAULT_PINNED_CONTEXT;
217
+ }
218
+ // Only add context item if its not already in this tab's pinned context
219
+ if (!tab.tabContext.pinnedContext.find(c => c.id === context.id)) {
220
+ // Active file pill should always be at the beginning of pinned context
221
+ if (util_1.DEFAULT_PINNED_CONTEXT.find(item => context.id === item.id)) {
222
+ tab.tabContext.pinnedContext.unshift(context);
223
+ }
224
+ else {
225
+ tab.tabContext.pinnedContext.push(context);
226
+ }
227
+ }
228
+ collection.update(tab);
229
+ }
230
+ }
231
+ }
232
+ }
233
+ removePinnedContext(tabId, context) {
234
+ if (this.#initialized) {
235
+ const collection = this.#db.getCollection(util_1.TabCollection);
236
+ const historyId = this.getOrCreateHistoryId(tabId);
237
+ if (historyId) {
238
+ this.#features.logging.log(`Removing pinned context: historyId=${historyId}, context=${JSON.stringify(context)}`);
239
+ const tab = collection.findOne({ historyId });
240
+ if (!tab) {
241
+ this.addTabWithContext(collection, historyId, { pinnedContext: [] });
242
+ }
243
+ else {
244
+ if (!tab.tabContext) {
245
+ tab.tabContext = {};
246
+ }
247
+ if (!tab.tabContext.pinnedContext) {
248
+ tab.tabContext.pinnedContext = [];
249
+ }
250
+ tab.tabContext.pinnedContext = tab.tabContext.pinnedContext.filter(c => c.id !== context.id);
251
+ collection.update(tab);
252
+ }
253
+ }
254
+ }
255
+ }
128
256
  getLoadTime() {
129
257
  return this.#loadTimeMs;
130
258
  }
131
259
  getTab(historyId) {
132
- if (this.#initialized) {
260
+ if (this.isInitialized()) {
133
261
  const collection = this.#db.getCollection(util_1.TabCollection);
134
262
  return collection.findOne({ historyId });
135
263
  }
@@ -150,7 +278,7 @@ class ChatDatabase {
150
278
  * Delete a conversation from history when /clear command is sent on an open tab
151
279
  */
152
280
  clearTab(tabId) {
153
- if (this.#initialized) {
281
+ if (this.isInitialized()) {
154
282
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
155
283
  const historyId = this.#historyIdMapping.get(tabId);
156
284
  if (historyId) {
@@ -161,7 +289,7 @@ class ChatDatabase {
161
289
  }
162
290
  }
163
291
  updateTabOpenState(tabId, isOpen) {
164
- if (this.#initialized) {
292
+ if (this.isInitialized()) {
165
293
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
166
294
  const historyId = this.#historyIdMapping.get(tabId);
167
295
  if (historyId) {
@@ -188,7 +316,7 @@ class ChatDatabase {
188
316
  searchMessages(filter) {
189
317
  let searchResults = [];
190
318
  const startTime = Date.now();
191
- if (this.#initialized) {
319
+ if (this.isInitialized()) {
192
320
  if (!filter) {
193
321
  this.#features.logging.log(`Empty search filter, returning all history`);
194
322
  return { results: this.getHistory(), searchTime: Date.now() - startTime };
@@ -219,13 +347,13 @@ class ChatDatabase {
219
347
  * @param numMessages Optional number of most recent messages to return. If not provided, returns all messages.
220
348
  */
221
349
  getMessages(tabId, numMessages) {
222
- if (this.#initialized) {
350
+ if (this.isInitialized()) {
223
351
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
224
352
  const historyId = this.#historyIdMapping.get(tabId);
225
353
  this.#features.logging.log(`Getting messages for tabId=${tabId}, historyId=${historyId}, numMessages=${numMessages}`);
226
354
  const tabData = historyId ? tabCollection.findOne({ historyId }) : undefined;
227
355
  if (tabData) {
228
- const allMessages = tabData.conversations.flatMap((conversation) => conversation.messages.map(msg => (0, util_1.messageToStreamingMessage)(msg)));
356
+ const allMessages = tabData.conversations.flatMap((conversation) => conversation.messages);
229
357
  if (numMessages !== undefined) {
230
358
  return allMessages.slice(-numMessages);
231
359
  }
@@ -238,7 +366,7 @@ class ChatDatabase {
238
366
  * Get all conversations for the current workspace, grouped by last updated time
239
367
  */
240
368
  getHistory() {
241
- if (this.#initialized) {
369
+ if (this.isInitialized()) {
242
370
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
243
371
  const tabs = tabCollection.find();
244
372
  let groupedTabs = (0, util_1.groupTabsByDate)(tabs);
@@ -256,7 +384,7 @@ class ChatDatabase {
256
384
  * Deletes a conversation from history
257
385
  */
258
386
  deleteHistory(historyId) {
259
- if (this.#initialized) {
387
+ if (this.isInitialized()) {
260
388
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
261
389
  tabCollection.findAndRemove({ historyId });
262
390
  this.#features.logging.log(`Removed conversation from history with historyId=${historyId}`);
@@ -266,6 +394,15 @@ class ChatDatabase {
266
394
  }
267
395
  }
268
396
  }
397
+ getOrCreateHistoryId(tabId) {
398
+ let historyId = this.#historyIdMapping.get(tabId);
399
+ if (!historyId) {
400
+ historyId = crypto.randomUUID();
401
+ this.#features.logging.log(`Creating new historyId=${historyId} for tabId=${tabId}`);
402
+ this.setHistoryIdMapping(tabId, historyId);
403
+ }
404
+ return historyId;
405
+ }
269
406
  /**
270
407
  * Adds a message to a conversation within a specified tab.
271
408
  *
@@ -276,16 +413,11 @@ class ChatDatabase {
276
413
  * - Updates tab's last updated time
277
414
  */
278
415
  addMessage(tabId, tabType, conversationId, message) {
279
- if (this.#initialized) {
416
+ if (this.isInitialized()) {
280
417
  const clientType = this.#features.lsp.getClientInitializeParams()?.clientInfo?.name || 'unknown';
281
418
  const tabCollection = this.#db.getCollection(util_1.TabCollection);
282
419
  this.#features.logging.log(`Adding message to history: tabId=${tabId}, tabType=${tabType}, conversationId=${conversationId}`);
283
- let historyId = this.#historyIdMapping.get(tabId);
284
- if (!historyId) {
285
- historyId = crypto.randomUUID();
286
- this.#features.logging.log(`Creating new historyId=${historyId} for tabId=${tabId}`);
287
- this.setHistoryIdMapping(tabId, historyId);
288
- }
420
+ let historyId = this.getOrCreateHistoryId(tabId);
289
421
  const tabData = historyId ? tabCollection.findOne({ historyId }) : undefined;
290
422
  const tabTitle = (message.type === 'prompt' && message.shouldDisplayMessage !== false && message.body.trim().length > 0
291
423
  ? message.body
@@ -306,7 +438,7 @@ class ChatDatabase {
306
438
  isOpen: true,
307
439
  tabType: tabType,
308
440
  title: tabTitle,
309
- conversations: [{ conversationId, clientType, messages: [message] }],
441
+ conversations: [{ conversationId, clientType, updatedAt: new Date(), messages: [message] }],
310
442
  });
311
443
  }
312
444
  }
@@ -331,39 +463,29 @@ class ChatDatabase {
331
463
  return message;
332
464
  }
333
465
  /**
334
- * Fixes the history to maintain the following invariants:
466
+ * Prepare the history messages for service request and fix the persisted history in DB to maintain the following invariants:
335
467
  * 1. The history contains at most MaxConversationHistoryMessages messages. Oldest messages are dropped.
336
- * 2. The first message is from the user. Oldest messages are dropped if needed.
337
- * 3. The last message is from the assistant. The last message is dropped if it is from the user.
338
- * 4. The history contains alternating sequene of userMessage followed by assistantMessages
339
- * 5. The toolUse and toolResult relationship is valid
340
- * 6. The history character length is <= MaxConversationHistoryCharacters - newUserMessageCharacterCount. Oldest messages are dropped.
468
+ * 2. The first message is from the user and without any tool usage results, and the last message is from the assistant.
469
+ * The history contains alternating sequene of userMessage followed by assistantMessages
470
+ * 3. The toolUse and toolResult relationship is valid
471
+ * 4. The history character length is <= MaxConversationHistoryCharacters - newUserMessageCharacterCount. Oldest messages are dropped.
341
472
  */
342
- fixAndValidateHistory(tabId, newUserMessage, conversationId, remainingCharacterBudget) {
343
- if (!this.#initialized) {
344
- return true;
345
- }
346
- const historyId = this.#historyIdMapping.get(tabId);
347
- this.#features.logging.info(`Fixing history: tabId=${tabId}, historyId=${historyId || 'undefined'}`);
348
- if (!historyId) {
349
- return true;
350
- }
351
- const tabCollection = this.#db.getCollection(util_1.TabCollection);
352
- const tabData = tabCollection.findOne({ historyId });
353
- if (!tabData) {
354
- return true;
355
- }
356
- let allMessages = tabData.conversations.flatMap((conversation) => conversation.messages);
357
- this.#features.logging.info(`Found ${allMessages.length} messages in conversation`);
358
- // Make sure we don't exceed MaxConversationHistoryMessages
359
- allMessages = this.trimHistoryToMaxLength(allMessages);
360
- // Drop empty assistant partial if it’s the last message
361
- this.handleEmptyAssistantMessage(allMessages);
362
- // Ensure messages in history a valid for server side checks
363
- this.ensureValidMessageSequence(allMessages, newUserMessage);
364
- // Ensure lastMessage in history toolUse and newMessage toolResult relationship is valid
365
- const isValid = this.validateNewMessageToolResults(allMessages, newUserMessage);
366
- // Make sure max characters ≤ remaining Character Budget
473
+ fixAndGetHistory(tabId, newUserMessage, remainingCharacterBudget) {
474
+ if (!this.isInitialized()) {
475
+ return [];
476
+ }
477
+ this.#features.logging.info(`Fixing history: tabId=${tabId}`);
478
+ // 1. Make sure the length of the history messages don't exceed MaxConversationHistoryMessages
479
+ let allMessages = this.getMessages(tabId, maxConversationHistoryMessages);
480
+ if (allMessages.length === 0) {
481
+ return [];
482
+ }
483
+ // 2. Fix history: Ensure messages in history is valid for server side checks
484
+ this.ensureValidMessageSequence(tabId, allMessages);
485
+ // 3. Fix new user prompt: Ensure lastMessage in history toolUse and newMessage toolResult relationship is valid
486
+ this.validateAndFixNewMessageToolResults(allMessages, newUserMessage);
487
+ // 4. NOTE: Keep this trimming logic at the end of the preprocess.
488
+ // Make sure max characters ≤ remaining Character Budget, must be put at the end of preprocessing
367
489
  allMessages = this.trimMessagesToMaxLength(allMessages, remainingCharacterBudget);
368
490
  // Edge case: If the history is empty and the next message contains tool results, then we have to just abandon them.
369
491
  if (allMessages.length === 0 &&
@@ -373,34 +495,19 @@ class ChatDatabase {
373
495
  newUserMessage.userInputMessage.userInputMessageContext.toolResults = [];
374
496
  newUserMessage.userInputMessage.content = 'The conversation history has overflowed, clearing state';
375
497
  }
376
- const clientType = this.#features.lsp.getClientInitializeParams()?.clientInfo?.name || 'unknown';
377
- tabData.conversations = [
378
- {
379
- conversationId: conversationId,
380
- clientType: clientType,
381
- messages: allMessages,
382
- },
383
- ];
384
- tabData.updatedAt = new Date();
385
- tabCollection.update(tabData);
386
- this.#features.logging.info(`Updated tab data in collection`);
387
- return isValid;
388
- }
389
- trimHistoryToMaxLength(messages) {
390
- while (messages.length > MaxConversationHistoryMessages) {
391
- // Find the next valid user message to start from
392
- const indexToTrim = this.findIndexToTrim(messages);
393
- if (indexToTrim !== undefined && indexToTrim > 0) {
394
- this.#features.logging.debug(`Removing the first ${indexToTrim} elements to maintain valid history length`);
395
- messages.splice(0, indexToTrim);
396
- }
397
- else {
398
- this.#features.logging.debug('Could not find a valid point to trim, reset history to reduce history size');
399
- return [];
400
- }
401
- }
402
- return messages;
498
+ return allMessages;
403
499
  }
500
+ /**
501
+ * Finds a suitable "break point" index in the message sequence.
502
+ *
503
+ * It ensures that the "break point" is at a clean conversation boundary where:
504
+ * 1. The message is from a user (type === 'prompt')
505
+ * 2. The message doesn't contain tool results that would break tool use/result pairs
506
+ * 3. The message has a non-empty body
507
+ *
508
+ * @param allMessages The array of conversation messages to search through
509
+ * @returns The index to trim from, or undefined if no suitable trimming point is found
510
+ */
404
511
  findIndexToTrim(allMessages) {
405
512
  for (let i = 2; i < allMessages.length; i++) {
406
513
  const message = allMessages[i];
@@ -414,18 +521,6 @@ class ChatDatabase {
414
521
  const ctx = message.userInputMessageContext;
415
522
  return !!ctx && (!ctx.toolResults || ctx.toolResults.length === 0) && message.body !== '';
416
523
  }
417
- handleEmptyAssistantMessage(messages) {
418
- if (messages.length < 2) {
419
- return;
420
- }
421
- const lastMsg = messages[messages.length - 1];
422
- if (lastMsg.type === 'answer' &&
423
- (!lastMsg.body || lastMsg.body.trim().length === 0) &&
424
- (!lastMsg.toolUses || lastMsg.toolUses.length === 0)) {
425
- this.#features.logging.debug('Last message is empty partial assistant. Removed last assistant message and user message');
426
- messages.splice(-2);
427
- }
428
- }
429
524
  trimMessagesToMaxLength(messages, remainingCharacterBudget) {
430
525
  let totalCharacters = this.calculateHistoryCharacterCount(messages);
431
526
  this.#features.logging.debug(`Current history characters: ${totalCharacters}`);
@@ -493,55 +588,95 @@ class ChatDatabase {
493
588
  }
494
589
  return count;
495
590
  }
496
- ensureValidMessageSequence(messages, newUserMessage) {
591
+ /**
592
+ * Gets the latest conversation ID for a given tab
593
+ * @param tabId The ID of the tab to get the latest conversation ID from
594
+ * @returns The latest conversation ID, or an empty string if none exists
595
+ */
596
+ getLatestConversationId(tabId) {
597
+ const tabCollection = this.#db.getCollection(util_1.TabCollection);
598
+ const historyId = this.#historyIdMapping.get(tabId);
599
+ const tabData = historyId ? tabCollection.findOne({ historyId }) : undefined;
600
+ const lastConversationLength = tabData?.conversations?.length || 0;
601
+ if (lastConversationLength > 0) {
602
+ return tabData?.conversations[lastConversationLength - 1].conversationId || '';
603
+ }
604
+ return '';
605
+ }
606
+ /**
607
+ * Ensures that the message sequence follows the required pattern for a valid conversation.
608
+ *
609
+ * This method enforces two key rules:
610
+ * 1. The first message must be from the user (type === 'prompt')
611
+ * 2. The last message must be from the assistant (type === 'answer')
612
+ *
613
+ * If the first rule is violated, leading assistant messages are removed.
614
+ * If the second rule is violated, a dummy response is added to maintain the alternating user-assistant pattern.
615
+ *
616
+ * @param tabId - The current tabId.
617
+ * @param messages - The message history to validate and potentially modify, this will be attached to the service request.
618
+ */
619
+ ensureValidMessageSequence(tabId, messages) {
497
620
  if (messages.length === 0) {
498
621
  return;
499
622
  }
500
- // Make sure the first stored message is from the user (type === 'prompt'), else drop
623
+ // Make sure the first message sent to LLM is from the user (type === 'prompt'), else drop
501
624
  while (messages.length > 0 && messages[0].type === 'answer') {
502
625
  messages.shift();
503
626
  this.#features.logging.debug('Dropped first message since it is not from user');
504
627
  }
505
- // Make sure the last stored message is from the assistant (type === 'answer'), else drop
506
- if (messages.length > 0 && messages[messages.length - 1].type === 'prompt') {
507
- // When user aborts some in-progress tooluse event, we should still send the previous toolResult back
508
- if (messages[messages.length - 1].userInputMessageContext?.toolResults) {
509
- if (newUserMessage.userInputMessage?.userInputMessageContext) {
510
- newUserMessage.userInputMessage.userInputMessageContext.toolResults =
511
- messages[messages.length - 1].userInputMessageContext?.toolResults;
512
- }
513
- }
514
- messages.pop();
515
- this.#features.logging.debug('Dropped trailing user message');
516
- }
517
- if (messages.length === 0) {
518
- return;
628
+ // Make sure the first user message doesn't have tool usage results.
629
+ while (messages.length > 0 &&
630
+ messages[0].type === 'prompt' &&
631
+ !this.isValidUserMessageWithoutToolResults(messages[0])) {
632
+ // Remove first user-assistant pair - here we assume that the mid-sequence messages are always in the alternating user-assistant pattern
633
+ messages.splice(0, 2);
634
+ this.#features.logging.debug('Dropped the first message pair since the user message has tool usage results');
519
635
  }
520
- // Make sure there are alternating user and assistant messages
521
- const currentMessageType = (0, util_1.chatMessageToMessage)(newUserMessage).type;
522
- const lastMessageType = messages[messages.length - 1].type;
523
- if (currentMessageType === lastMessageType) {
524
- this.#features.logging.warn(`Invalid alternation: last message is ${lastMessageType}, dropping it before inserting new ${currentMessageType}`);
525
- messages.splice(messages.length - 1, 1);
636
+ // Make sure the last message is from the assistant (type === 'answer'), else add a dummy response
637
+ if (messages.length > 0 && messages[messages.length - 1].type === 'prompt') {
638
+ // Add an assistant response to both request and DB to maintain a valid sequence
639
+ const dummyResponse = {
640
+ body: 'Thinking...',
641
+ type: 'answer',
642
+ shouldDisplayMessage: false,
643
+ timestamp: new Date(),
644
+ };
645
+ // Add to service request
646
+ messages.push(dummyResponse);
647
+ // Add to the last conversation in history DB
648
+ const lastConversationId = this.getLatestConversationId(tabId);
649
+ this.addMessage(tabId, 'cwc', lastConversationId, dummyResponse);
650
+ this.#features.logging.debug('Added a dummy response for the trailing user message');
526
651
  }
527
652
  }
528
- validateNewMessageToolResults(messages, newUserMessage) {
653
+ /**
654
+ * This method modifies the new user message and ensuring that tool results in a new user message
655
+ * properly correspond to tool uses from the previous assistant message.
656
+ *
657
+ * This validation should be performed before sending requests and is critical for maintaining
658
+ * a coherent conversation flow when tools are involved, ensuring the AI model has accurate context
659
+ * about which tools were actually used and which were cancelled or failed.
660
+ *
661
+ * @param messages The conversation history messages
662
+ * @param newUserMessage The new user message being added to the conversation
663
+ * @throws ToolResultValidationError if the message is invalid and not able to be fixed
664
+ */
665
+ validateAndFixNewMessageToolResults(messages, newUserMessage) {
529
666
  if (newUserMessage?.userInputMessage?.userInputMessageContext) {
530
667
  const newUserMessageContext = newUserMessage.userInputMessage.userInputMessageContext;
531
668
  const toolResults = newUserMessageContext.toolResults || [];
532
669
  if (messages.length === 0) {
533
670
  if (toolResults && toolResults.length > 0) {
534
- this.#features.logging.warn('New message has tool results but last message has no tool uses');
535
- return false;
671
+ throw new ToolResultValidationError('New message has tool results but last message has no tool uses');
536
672
  }
537
- return true;
673
+ return;
538
674
  }
539
675
  const lastMsg = messages[messages.length - 1];
540
676
  const lastMsgToolUses = lastMsg?.toolUses || [];
541
677
  // If last message has no tool uses but new message has tool results, this is invalid
542
678
  if (toolResults && toolResults.length > 0 && lastMsgToolUses.length === 0) {
543
- this.#features.logging.warn('New message has tool results but last message has no tool uses');
544
- return false;
679
+ throw new ToolResultValidationError('New message has tool results but last message has no tool uses');
545
680
  }
546
681
  const toolUseIds = new Set(lastMsgToolUses.map(toolUse => toolUse.toolUseId));
547
682
  const validToolResults = toolResults.filter(toolResult => toolUseIds.has(toolResult.toolUseId));
@@ -552,7 +687,7 @@ class ChatDatabase {
552
687
  this.#features.logging.warn(`newUserMessage missing ToolResult for ${toolUse.toolUseId}. Inserting cancelled.`);
553
688
  validToolResults.push({
554
689
  toolUseId: toolUse.toolUseId,
555
- status: codewhisperer_streaming_1.ToolResultStatus.ERROR,
690
+ status: codewhisperer_streaming_client_1.ToolResultStatus.ERROR,
556
691
  content: [{ text: 'Tool use was cancelled by the user' }],
557
692
  });
558
693
  }
@@ -560,10 +695,9 @@ class ChatDatabase {
560
695
  newUserMessageContext.toolResults = validToolResults;
561
696
  if (newUserMessageContext.toolResults.length === 0 &&
562
697
  (!newUserMessage.userInputMessage.content || newUserMessage.userInputMessage.content?.trim() == '')) {
563
- return false;
698
+ throw new ToolResultValidationError('Empty message with no tool results');
564
699
  }
565
700
  }
566
- return true;
567
701
  }
568
702
  getSettings() {
569
703
  if (this.#initialized) {