@aws/lsp-codewhisperer 0.0.27 → 0.0.28

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 (553) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +59 -1
  3. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
  4. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +6 -3
  5. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
  6. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +6 -3
  7. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/package.json +6 -6
  8. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/README.md +9 -0
  9. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/index.js +193 -76
  10. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http-handler.js +39 -15
  11. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  12. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-handler.js +9 -1
  13. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/server.mock.js +9 -2
  14. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +36 -0
  15. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +22 -0
  16. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +22 -0
  17. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +41 -0
  18. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-es/timing.js +4 -0
  19. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/write-request-body.js +13 -9
  20. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http-handler.d.ts +4 -2
  21. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +7 -0
  22. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +11 -0
  23. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +7 -0
  24. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/timing.d.ts +8 -0
  25. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -2
  26. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +3 -0
  27. package/node_modules/{@smithy/node-http-handler/dist-types → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4}/set-socket-keep-alive.d.ts +7 -6
  28. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +3 -0
  29. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-types/ts3.4/timing.d.ts +8 -0
  30. package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/package.json +10 -10
  31. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/index.js +30 -8
  32. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +13 -8
  33. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +53 -0
  34. package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +53 -0
  35. package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/package.json +6 -6
  36. package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -0
  37. package/out/client/token/bearer-token-service.json +1650 -96
  38. package/out/constants.d.ts +3 -0
  39. package/out/constants.js +4 -1
  40. package/out/constants.js.map +1 -1
  41. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.d.ts +38 -0
  42. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js +85 -0
  43. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js.map +1 -0
  44. package/out/language-server/chat/chatController.d.ts +1 -1
  45. package/out/language-server/chat/chatController.js +2 -2
  46. package/out/language-server/chat/chatController.js.map +1 -1
  47. package/out/language-server/codeWhispererServer.js +7 -32
  48. package/out/language-server/codeWhispererServer.js.map +1 -1
  49. package/out/language-server/codeWhispererService.d.ts +4 -0
  50. package/out/language-server/codeWhispererService.js +6 -0
  51. package/out/language-server/codeWhispererService.js.map +1 -1
  52. package/out/language-server/configuration/qConfigurationServer.d.ts +18 -1
  53. package/out/language-server/configuration/qConfigurationServer.js +107 -6
  54. package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
  55. package/out/language-server/dependencyGraph/commonUtil.d.ts +0 -1
  56. package/out/language-server/dependencyGraph/commonUtil.js +0 -11
  57. package/out/language-server/dependencyGraph/commonUtil.js.map +1 -1
  58. package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
  59. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  60. package/out/language-server/netTransform/transformHandler.d.ts +3 -2
  61. package/out/language-server/netTransform/transformHandler.js +7 -2
  62. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  63. package/out/language-server/netTransformServer.js +1 -1
  64. package/out/language-server/netTransformServer.js.map +1 -1
  65. package/out/language-server/telemetry/codeDiffTracker.js +15 -12
  66. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
  67. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js +2 -2
  68. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js.map +1 -1
  69. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +2 -2
  70. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  71. package/out/language-server/utils.d.ts +1 -0
  72. package/out/language-server/utils.js +4 -0
  73. package/out/language-server/utils.js.map +1 -1
  74. package/package.json +8 -8
  75. package/node_modules/@smithy/node-http-handler/README.md +0 -4
  76. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -21
  77. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -8
  78. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -6
  79. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -14
  80. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
  81. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
  82. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
  83. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
  84. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
  85. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -13
  86. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -13
  87. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -23
  88. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -23
  89. package/out/language-server/auto-trigger/autoTrigger.test.d.ts +0 -1
  90. package/out/language-server/auto-trigger/autoTrigger.test.js +0 -82
  91. package/out/language-server/auto-trigger/autoTrigger.test.js.map +0 -1
  92. package/out/language-server/chat/chatController.test.d.ts +0 -1
  93. package/out/language-server/chat/chatController.test.js +0 -709
  94. package/out/language-server/chat/chatController.test.js.map +0 -1
  95. package/out/language-server/chat/chatEventParser.test.d.ts +0 -1
  96. package/out/language-server/chat/chatEventParser.test.js +0 -239
  97. package/out/language-server/chat/chatEventParser.test.js.map +0 -1
  98. package/out/language-server/chat/chatSessionManagementService.test.d.ts +0 -1
  99. package/out/language-server/chat/chatSessionManagementService.test.js +0 -77
  100. package/out/language-server/chat/chatSessionManagementService.test.js.map +0 -1
  101. package/out/language-server/chat/chatSessionService.test.d.ts +0 -1
  102. package/out/language-server/chat/chatSessionService.test.js +0 -86
  103. package/out/language-server/chat/chatSessionService.test.js.map +0 -1
  104. package/out/language-server/chat/contexts/documentContext.test.d.ts +0 -1
  105. package/out/language-server/chat/contexts/documentContext.test.js +0 -117
  106. package/out/language-server/chat/contexts/documentContext.test.js.map +0 -1
  107. package/out/language-server/chat/contexts/triggerContexts.test.d.ts +0 -1
  108. package/out/language-server/chat/contexts/triggerContexts.test.js +0 -81
  109. package/out/language-server/chat/contexts/triggerContexts.test.js.map +0 -1
  110. package/out/language-server/chat/contexts/utils.test.d.ts +0 -1
  111. package/out/language-server/chat/contexts/utils.test.js +0 -72
  112. package/out/language-server/chat/contexts/utils.test.js.map +0 -1
  113. package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +0 -1
  114. package/out/language-server/chat/telemetry/chatTelemetryController.test.js +0 -195
  115. package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +0 -1
  116. package/out/language-server/codeWhispererServer.test.d.ts +0 -1
  117. package/out/language-server/codeWhispererServer.test.js +0 -1377
  118. package/out/language-server/codeWhispererServer.test.js.map +0 -1
  119. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +0 -1
  120. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +0 -483
  121. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +0 -1
  122. package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +0 -7
  123. package/out/language-server/dependencyGraph/gitIgnoreFilter.js +0 -39
  124. package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +0 -1
  125. package/out/language-server/languageDetection.test.d.ts +0 -1
  126. package/out/language-server/languageDetection.test.js +0 -31
  127. package/out/language-server/languageDetection.test.js.map +0 -1
  128. package/out/language-server/mergeRightUtils.test.d.ts +0 -1
  129. package/out/language-server/mergeRightUtils.test.js +0 -53
  130. package/out/language-server/mergeRightUtils.test.js.map +0 -1
  131. package/out/language-server/netTransform/tests/converter.test.d.ts +0 -1
  132. package/out/language-server/netTransform/tests/converter.test.js +0 -108
  133. package/out/language-server/netTransform/tests/converter.test.js.map +0 -1
  134. package/out/language-server/netTransform/tests/transformHandler.test.d.ts +0 -1
  135. package/out/language-server/netTransform/tests/transformHandler.test.js +0 -252
  136. package/out/language-server/netTransform/tests/transformHandler.test.js.map +0 -1
  137. package/out/language-server/netTransform/tests/validation.test.d.ts +0 -1
  138. package/out/language-server/netTransform/tests/validation.test.js +0 -84
  139. package/out/language-server/netTransform/tests/validation.test.js.map +0 -1
  140. package/out/language-server/qChatServer.test.d.ts +0 -1
  141. package/out/language-server/qChatServer.test.js +0 -51
  142. package/out/language-server/qChatServer.test.js.map +0 -1
  143. package/out/language-server/securityScan/securityScanHandler.test.d.ts +0 -1
  144. package/out/language-server/securityScan/securityScanHandler.test.js +0 -171
  145. package/out/language-server/securityScan/securityScanHandler.test.js.map +0 -1
  146. package/out/language-server/session/sessionManager.test.d.ts +0 -1
  147. package/out/language-server/session/sessionManager.test.js +0 -588
  148. package/out/language-server/session/sessionManager.test.js.map +0 -1
  149. package/out/language-server/telemetry/codeDiffTracker.test.d.ts +0 -1
  150. package/out/language-server/telemetry/codeDiffTracker.test.js +0 -125
  151. package/out/language-server/telemetry/codeDiffTracker.test.js.map +0 -1
  152. package/out/language-server/telemetry/codePercentage.test.d.ts +0 -1
  153. package/out/language-server/telemetry/codePercentage.test.js +0 -214
  154. package/out/language-server/telemetry/codePercentage.test.js.map +0 -1
  155. package/out/language-server/telemetry/userTriggerDecision.test.d.ts +0 -1
  156. package/out/language-server/telemetry/userTriggerDecision.test.js +0 -1348
  157. package/out/language-server/telemetry/userTriggerDecision.test.js.map +0 -1
  158. package/out/language-server/telemetry.test.d.ts +0 -1
  159. package/out/language-server/telemetry.test.js +0 -98
  160. package/out/language-server/telemetry.test.js.map +0 -1
  161. package/out/language-server/telemetryService.test.d.ts +0 -1
  162. package/out/language-server/telemetryService.test.js +0 -771
  163. package/out/language-server/telemetryService.test.js.map +0 -1
  164. package/out/language-server/utilities/filesystemUtilities.d.ts +0 -8
  165. package/out/language-server/utilities/filesystemUtilities.js +0 -30
  166. package/out/language-server/utilities/filesystemUtilities.js.map +0 -1
  167. package/out/language-server/utilities/filesystemUtilities.test.d.ts +0 -1
  168. package/out/language-server/utilities/filesystemUtilities.test.js +0 -85
  169. package/out/language-server/utilities/filesystemUtilities.test.js.map +0 -1
  170. package/out/language-server/utilities/pathUtils.d.ts +0 -27
  171. package/out/language-server/utilities/pathUtils.js +0 -79
  172. package/out/language-server/utilities/pathUtils.js.map +0 -1
  173. package/out/language-server/utilities/pathUtils.test.d.ts +0 -1
  174. package/out/language-server/utilities/pathUtils.test.js +0 -43
  175. package/out/language-server/utilities/pathUtils.test.js.map +0 -1
  176. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +0 -5
  177. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js +0 -49
  178. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js.map +0 -1
  179. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts +0 -1
  180. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js +0 -157
  181. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js.map +0 -1
  182. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts +0 -1
  183. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js +0 -88
  184. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +0 -1
  185. package/out/language-server/utilities/telemetryUtils.test.d.ts +0 -1
  186. package/out/language-server/utilities/telemetryUtils.test.js +0 -207
  187. package/out/language-server/utilities/telemetryUtils.test.js.map +0 -1
  188. package/out/language-server/utilities/textUtils.d.ts +0 -1
  189. package/out/language-server/utilities/textUtils.js +0 -12
  190. package/out/language-server/utilities/textUtils.js.map +0 -1
  191. package/out/language-server/utilities/textUtils.test.d.ts +0 -1
  192. package/out/language-server/utilities/textUtils.test.js +0 -21
  193. package/out/language-server/utilities/textUtils.test.js.map +0 -1
  194. package/out/language-server/utils.test.d.ts +0 -1
  195. package/out/language-server/utils.test.js +0 -152
  196. package/out/language-server/utils.test.js.map +0 -1
  197. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller}/LICENSE +0 -0
  198. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/README.md +0 -0
  199. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -0
  200. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -0
  201. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -0
  202. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -0
  203. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -0
  204. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/index.js +0 -0
  205. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -0
  206. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -0
  207. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/abort-controller → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler}/LICENSE +0 -0
  208. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/constants.js +0 -0
  209. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/get-transformed-headers.js +0 -0
  210. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http-handler.js +0 -0
  211. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -0
  212. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -0
  213. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-handler.js +0 -0
  214. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/readable.mock.js +0 -0
  215. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/server.mock.js +0 -0
  216. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-connection-timeout.js +0 -0
  217. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -0
  218. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-timeout.js +0 -0
  219. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/collector.js +0 -0
  220. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/index.js +0 -0
  221. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -0
  222. /package/node_modules/{@smithy/node-http-handler/dist-cjs/write-request-body.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/timing.js} +0 -0
  223. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Field.js → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js} +0 -0
  224. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/constants.js +0 -0
  225. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/get-transformed-headers.js +0 -0
  226. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/index.js +0 -0
  227. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-pool.js +0 -0
  228. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/readable.mock.js +0 -0
  229. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/collector.js +0 -0
  230. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -0
  231. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/constants.d.ts +0 -0
  232. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -0
  233. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/index.d.ts +0 -0
  234. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -0
  235. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -0
  236. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-handler.d.ts +0 -0
  237. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/readable.mock.d.ts +0 -0
  238. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/server.mock.d.ts +0 -0
  239. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -0
  240. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/index.d.ts +0 -0
  241. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -0
  242. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -0
  243. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -0
  244. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/index.d.ts +0 -0
  245. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -0
  246. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +0 -0
  247. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -0
  248. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -0
  249. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -0
  250. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -0
  251. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -0
  252. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -0
  253. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -0
  254. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/write-request-body.d.ts +0 -0
  255. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/LICENSE +0 -0
  256. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/README.md +0 -0
  257. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/Fields.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Field.js} +0 -0
  258. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/Fields.js} +0 -0
  259. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
  260. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -0
  261. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js} +0 -0
  262. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js} +0 -0
  263. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js} +0 -0
  264. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-cjs/types.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js} +0 -0
  265. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/abort.js → @amzn/codewhisperer-streaming/node_modules/@smithy/protocol-http/dist-cjs/types.js} +0 -0
  266. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Field.js +0 -0
  267. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Fields.js +0 -0
  268. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
  269. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -0
  270. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +0 -0
  271. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +0 -0
  272. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/index.js +0 -0
  273. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +0 -0
  274. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/types.js +0 -0
  275. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +0 -0
  276. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +0 -0
  277. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
  278. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +0 -0
  279. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -0
  280. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +0 -0
  281. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/index.d.ts +0 -0
  282. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +0 -0
  283. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
  284. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
  285. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
  286. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +0 -0
  287. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
  288. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
  289. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
  290. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
  291. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
  292. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/types.d.ts +0 -0
  293. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/LICENSE +0 -0
  294. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/README.md +0 -0
  295. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-cjs/index.js +0 -0
  296. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-es/index.js +0 -0
  297. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/index.d.ts +0 -0
  298. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
  299. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/package.json +0 -0
  300. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/LICENSE +0 -0
  301. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/README.md +0 -0
  302. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/checksum.js → types/dist-cjs/abort.js} +0 -0
  303. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
  304. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
  305. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
  306. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpSigner.js +0 -0
  307. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
  308. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/auth.js +0 -0
  309. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/index.js +0 -0
  310. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
  311. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/client.js → types/dist-cjs/checksum.js} +0 -0
  312. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/command.js → types/dist-cjs/client.js} +0 -0
  313. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/crypto.js → types/dist-cjs/command.js} +0 -0
  314. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/config.js +0 -0
  315. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/index.js +0 -0
  316. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/manager.js +0 -0
  317. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/pool.js +0 -0
  318. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/encode.js → types/dist-cjs/crypto.js} +0 -0
  319. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
  320. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/endpoint.js → types/dist-cjs/encode.js} +0 -0
  321. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/eventStream.js → types/dist-cjs/endpoint.js} +0 -0
  322. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
  323. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
  324. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
  325. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
  326. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/index.js +0 -0
  327. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/shared.js +0 -0
  328. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/http.js → types/dist-cjs/eventStream.js} +0 -0
  329. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/checksum.js +0 -0
  330. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
  331. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
  332. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/index.js +0 -0
  333. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/retry.js +0 -0
  334. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
  335. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
  336. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/logger.js → types/dist-cjs/http.js} +0 -0
  337. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
  338. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
  339. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/identity.js +0 -0
  340. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/index.js +0 -0
  341. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/tokenIdentity.js +0 -0
  342. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/index.js +0 -0
  343. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/middleware.js → types/dist-cjs/logger.js} +0 -0
  344. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/pagination.js → types/dist-cjs/middleware.js} +0 -0
  345. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/profile.js → types/dist-cjs/pagination.js} +0 -0
  346. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/response.js → types/dist-cjs/profile.js} +0 -0
  347. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/retry.js → types/dist-cjs/response.js} +0 -0
  348. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/serde.js → types/dist-cjs/retry.js} +0 -0
  349. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/shapes.js → types/dist-cjs/serde.js} +0 -0
  350. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/signature.js → types/dist-cjs/shapes.js} +0 -0
  351. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/stream.js → types/dist-cjs/signature.js} +0 -0
  352. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/transfer.js → types/dist-cjs/stream.js} +0 -0
  353. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
  354. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  355. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  356. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/uri.js → types/dist-cjs/transfer.js} +0 -0
  357. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-method-transforms.js +0 -0
  358. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
  359. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/exact.js +0 -0
  360. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/no-undefined.js +0 -0
  361. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/type-transform.js +0 -0
  362. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/util.js → types/dist-cjs/uri.js} +0 -0
  363. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/waiter.js → types/dist-cjs/util.js} +0 -0
  364. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/abort.js +0 -0
  365. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
  366. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthScheme.js +0 -0
  367. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthSchemeProvider.js +0 -0
  368. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpSigner.js +0 -0
  369. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/IdentityProviderConfig.js +0 -0
  370. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/auth.js +0 -0
  371. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/index.js +0 -0
  372. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/blob/blob-payload-input-types.js +0 -0
  373. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/checksum.js +0 -0
  374. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/client.js +0 -0
  375. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/command.js +0 -0
  376. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/config.js +0 -0
  377. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/index.js +0 -0
  378. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/manager.js +0 -0
  379. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/pool.js +0 -0
  380. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/crypto.js +0 -0
  381. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -0
  382. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/encode.js +0 -0
  383. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoint.js +0 -0
  384. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/EndpointRuleObject.js +0 -0
  385. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/ErrorRuleObject.js +0 -0
  386. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/RuleSetObject.js +0 -0
  387. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/TreeRuleObject.js +0 -0
  388. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/index.js +0 -0
  389. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/shared.js +0 -0
  390. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/eventStream.js +0 -0
  391. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/checksum.js +0 -0
  392. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
  393. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultExtensionConfiguration.js +0 -0
  394. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/index.js +0 -0
  395. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/retry.js +0 -0
  396. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/externals-check/browser-externals-check.js +0 -0
  397. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http/httpHandlerInitialization.js +0 -0
  398. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http.js +0 -0
  399. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/apiKeyIdentity.js +0 -0
  400. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/awsCredentialIdentity.js +0 -0
  401. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/identity.js +0 -0
  402. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/index.js +0 -0
  403. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/tokenIdentity.js +0 -0
  404. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/index.js +0 -0
  405. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/logger.js +0 -0
  406. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/middleware.js +0 -0
  407. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/pagination.js +0 -0
  408. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/profile.js +0 -0
  409. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/response.js +0 -0
  410. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/retry.js +0 -0
  411. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/serde.js +0 -0
  412. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/shapes.js +0 -0
  413. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/signature.js +0 -0
  414. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/stream.js +0 -0
  415. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-common-types.js +0 -0
  416. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  417. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  418. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transfer.js +0 -0
  419. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-method-transforms.js +0 -0
  420. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-payload-blob-type-narrow.js +0 -0
  421. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/exact.js +0 -0
  422. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/no-undefined.js +0 -0
  423. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/type-transform.js +0 -0
  424. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/uri.js +0 -0
  425. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/util.js +0 -0
  426. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/waiter.js +0 -0
  427. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/abort.d.ts +0 -0
  428. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
  429. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
  430. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
  431. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpSigner.d.ts +0 -0
  432. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
  433. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/auth.d.ts +0 -0
  434. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/index.d.ts +0 -0
  435. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
  436. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/checksum.d.ts +0 -0
  437. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/client.d.ts +0 -0
  438. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/command.d.ts +0 -0
  439. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/config.d.ts +0 -0
  440. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/index.d.ts +0 -0
  441. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/manager.d.ts +0 -0
  442. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/pool.d.ts +0 -0
  443. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/crypto.d.ts +0 -0
  444. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
  445. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/encode.d.ts +0 -0
  446. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoint.d.ts +0 -0
  447. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
  448. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
  449. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
  450. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
  451. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/index.d.ts +0 -0
  452. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/shared.d.ts +0 -0
  453. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/eventStream.d.ts +0 -0
  454. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/checksum.d.ts +0 -0
  455. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
  456. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
  457. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/index.d.ts +0 -0
  458. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/retry.d.ts +0 -0
  459. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
  460. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
  461. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http.d.ts +0 -0
  462. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
  463. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
  464. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/identity.d.ts +0 -0
  465. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/index.d.ts +0 -0
  466. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/tokenIdentity.d.ts +0 -0
  467. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/index.d.ts +0 -0
  468. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/logger.d.ts +0 -0
  469. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/middleware.d.ts +0 -0
  470. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/pagination.d.ts +0 -0
  471. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/profile.d.ts +0 -0
  472. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/response.d.ts +0 -0
  473. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/retry.d.ts +0 -0
  474. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/serde.d.ts +0 -0
  475. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/shapes.d.ts +0 -0
  476. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/signature.d.ts +0 -0
  477. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/stream.d.ts +0 -0
  478. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
  479. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
  480. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
  481. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transfer.d.ts +0 -0
  482. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-method-transforms.d.ts +0 -0
  483. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
  484. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/exact.d.ts +0 -0
  485. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/no-undefined.d.ts +0 -0
  486. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/type-transform.d.ts +0 -0
  487. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/abort.d.ts +0 -0
  488. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
  489. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
  490. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
  491. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
  492. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
  493. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
  494. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/index.d.ts +0 -0
  495. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -0
  496. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/checksum.d.ts +0 -0
  497. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/client.d.ts +0 -0
  498. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/command.d.ts +0 -0
  499. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/config.d.ts +0 -0
  500. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/index.d.ts +0 -0
  501. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
  502. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
  503. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/crypto.d.ts +0 -0
  504. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
  505. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/encode.d.ts +0 -0
  506. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoint.d.ts +0 -0
  507. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
  508. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
  509. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
  510. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
  511. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
  512. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
  513. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/eventStream.d.ts +0 -0
  514. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
  515. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
  516. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
  517. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
  518. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
  519. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -0
  520. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
  521. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http.d.ts +0 -0
  522. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
  523. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
  524. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
  525. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/index.d.ts +0 -0
  526. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
  527. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/index.d.ts +0 -0
  528. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/logger.d.ts +0 -0
  529. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/middleware.d.ts +0 -0
  530. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/pagination.d.ts +0 -0
  531. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/profile.d.ts +0 -0
  532. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/response.d.ts +0 -0
  533. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/retry.d.ts +0 -0
  534. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/serde.d.ts +0 -0
  535. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/shapes.d.ts +0 -0
  536. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/signature.d.ts +0 -0
  537. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/stream.d.ts +0 -0
  538. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -0
  539. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
  540. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
  541. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transfer.d.ts +0 -0
  542. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
  543. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -0
  544. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
  545. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
  546. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
  547. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/uri.d.ts +0 -0
  548. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/util.d.ts +0 -0
  549. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/waiter.d.ts +0 -0
  550. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/uri.d.ts +0 -0
  551. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/util.d.ts +0 -0
  552. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/waiter.d.ts +0 -0
  553. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/package.json +0 -0
@@ -1,709 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const codewhisperer_streaming_1 = require("@amzn/codewhisperer-streaming");
4
- const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
5
- const testing_1 = require("@aws/language-server-runtimes/testing");
6
- const assert = require("assert");
7
- const ts_sinon_1 = require("ts-sinon");
8
- const testUtils_1 = require("../testUtils");
9
- const chatController_1 = require("./chatController");
10
- const chatSessionManagementService_1 = require("./chatSessionManagementService");
11
- const chatSessionService_1 = require("./chatSessionService");
12
- const chatTelemetryController_1 = require("./telemetry/chatTelemetryController");
13
- const documentContext_1 = require("./contexts/documentContext");
14
- const utils = require("./utils");
15
- const constants_1 = require("./constants");
16
- const telemetryService_1 = require("../telemetryService");
17
- const constants_2 = require("../../constants");
18
- describe('ChatController', () => {
19
- const mockTabId = 'tab-1';
20
- const mockConversationId = 'mock-conversation-id';
21
- const mockMessageId = 'mock-message-id';
22
- const mockChatResponseList = [
23
- {
24
- messageMetadataEvent: {
25
- conversationId: mockConversationId,
26
- },
27
- },
28
- {
29
- assistantResponseEvent: {
30
- content: 'Hello ',
31
- },
32
- },
33
- {
34
- assistantResponseEvent: {
35
- content: 'World',
36
- },
37
- },
38
- {
39
- assistantResponseEvent: {
40
- content: '!',
41
- },
42
- },
43
- ];
44
- const expectedCompleteChatResult = {
45
- messageId: mockMessageId,
46
- body: 'Hello World!',
47
- canBeVoted: true,
48
- codeReference: undefined,
49
- followUp: undefined,
50
- relatedContent: undefined,
51
- };
52
- const mockCancellationToken = {
53
- isCancellationRequested: false,
54
- onCancellationRequested: () => ({ dispose: () => null }),
55
- };
56
- const logging = {
57
- log: (message) => {
58
- console.log(message);
59
- },
60
- };
61
- const awsQRegion = constants_2.DEFAULT_AWS_Q_REGION;
62
- const awsQEndpointUrl = constants_2.DEFAULT_AWS_Q_ENDPOINT_URL;
63
- let sendMessageStub;
64
- let disposeStub;
65
- let activeTabSpy;
66
- let removeConversationSpy;
67
- let emitConversationMetricStub;
68
- let testFeatures;
69
- let chatSessionManagementService;
70
- let chatController;
71
- let telemetryService;
72
- let invokeSendTelemetryEventStub;
73
- let telemetry;
74
- beforeEach(() => {
75
- sendMessageStub = ts_sinon_1.default.stub(codewhisperer_streaming_1.CodeWhispererStreaming.prototype, 'sendMessage').callsFake(() => {
76
- return new Promise(resolve => setTimeout(() => {
77
- resolve({
78
- $metadata: {
79
- requestId: mockMessageId,
80
- },
81
- sendMessageResponse: (0, testUtils_1.createIterableResponse)(mockChatResponseList),
82
- });
83
- }));
84
- });
85
- testFeatures = new testing_1.TestFeatures();
86
- activeTabSpy = ts_sinon_1.default.spy(chatTelemetryController_1.ChatTelemetryController.prototype, 'activeTabId', ['get', 'set']);
87
- removeConversationSpy = ts_sinon_1.default.spy(chatTelemetryController_1.ChatTelemetryController.prototype, 'removeConversation');
88
- emitConversationMetricStub = ts_sinon_1.default.stub(chatTelemetryController_1.ChatTelemetryController.prototype, 'emitConversationMetric');
89
- disposeStub = ts_sinon_1.default.stub(chatSessionService_1.ChatSessionService.prototype, 'dispose');
90
- const mockSdkRuntimeConfigurator = Object.assign(
91
- // Default callable function for v3 clients
92
- (Ctor, current_config) => new Ctor({ ...current_config }),
93
- // Property for v2 clients
94
- {
95
- v2: (Ctor, current_config) => new Ctor({ ...current_config }),
96
- });
97
- chatSessionManagementService = chatSessionManagementService_1.ChatSessionManagementService.getInstance()
98
- .withCredentialsProvider(testFeatures.credentialsProvider)
99
- .withCodeWhispererRegion(awsQRegion)
100
- .withCodeWhispererEndpoint(awsQEndpointUrl)
101
- .withSdkRuntimeConfigurator(mockSdkRuntimeConfigurator);
102
- const mockCredentialsProvider = {
103
- hasCredentials: ts_sinon_1.default.stub().returns(true),
104
- getCredentials: ts_sinon_1.default.stub().returns({ token: 'token' }),
105
- getConnectionMetadata: ts_sinon_1.default.stub().returns({
106
- sso: {
107
- startUrl: undefined,
108
- },
109
- }),
110
- };
111
- const mockWorkspace = {};
112
- telemetry = {
113
- emitMetric: ts_sinon_1.default.stub(),
114
- onClientTelemetry: ts_sinon_1.default.stub(),
115
- };
116
- telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace, awsQRegion, awsQEndpointUrl, mockSdkRuntimeConfigurator);
117
- invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
118
- chatController = new chatController_1.ChatController(chatSessionManagementService, testFeatures, telemetryService);
119
- });
120
- afterEach(() => {
121
- ts_sinon_1.default.restore();
122
- chatSessionManagementService_1.ChatSessionManagementService.reset();
123
- });
124
- it('creates a session when a tab add notifcation is received', () => {
125
- chatController.onTabAdd({ tabId: mockTabId });
126
- const sessionResult = chatSessionManagementService.getSession(mockTabId);
127
- ts_sinon_1.default.assert.match(sessionResult, {
128
- success: true,
129
- data: ts_sinon_1.default.match.instanceOf(chatSessionService_1.ChatSessionService),
130
- });
131
- });
132
- it('deletes a session by tab id when a tab remove notifcation is received', () => {
133
- chatController.onTabAdd({ tabId: mockTabId });
134
- assert.ok(chatSessionManagementService.getSession(mockTabId).data instanceof chatSessionService_1.ChatSessionService);
135
- chatController.onTabRemove({ tabId: mockTabId });
136
- ts_sinon_1.default.assert.calledOnce(disposeStub);
137
- const hasSession = chatSessionManagementService.hasSession(mockTabId);
138
- assert.ok(!hasSession);
139
- });
140
- it('deletes a session by tab id an end chat request is received', () => {
141
- chatController.onTabAdd({ tabId: mockTabId });
142
- chatController.onEndChat({ tabId: mockTabId }, mockCancellationToken);
143
- ts_sinon_1.default.assert.calledOnce(disposeStub);
144
- const hasSession = chatSessionManagementService.hasSession(mockTabId);
145
- assert.ok(!hasSession);
146
- });
147
- it('onTabAdd sets active tab id in telemetryController', () => {
148
- chatController.onTabAdd({ tabId: mockTabId });
149
- ts_sinon_1.default.assert.calledWithExactly(activeTabSpy.set, mockTabId);
150
- });
151
- it('onTabChange sets active tab id in telemetryController and emits metrics', () => {
152
- chatController.onTabChange({ tabId: mockTabId });
153
- ts_sinon_1.default.assert.calledWithExactly(activeTabSpy.set, mockTabId);
154
- ts_sinon_1.default.assert.calledTwice(emitConversationMetricStub);
155
- });
156
- it('onTabRemove unsets tab id if current tab is removed and emits metrics', () => {
157
- chatController.onTabAdd({ tabId: mockTabId });
158
- emitConversationMetricStub.resetHistory();
159
- activeTabSpy.set.resetHistory();
160
- chatController.onTabRemove({ tabId: mockTabId });
161
- ts_sinon_1.default.assert.calledWithExactly(removeConversationSpy, mockTabId);
162
- ts_sinon_1.default.assert.calledOnce(emitConversationMetricStub);
163
- });
164
- it('onTabRemove does not unset tabId if current tab is not being removed', () => {
165
- chatController.onTabAdd({ tabId: mockTabId });
166
- chatController.onTabAdd({ tabId: 'mockTabId-2' });
167
- testFeatures.telemetry.emitMetric.resetHistory();
168
- activeTabSpy.set.resetHistory();
169
- chatController.onTabRemove({ tabId: mockTabId });
170
- ts_sinon_1.default.assert.notCalled(activeTabSpy.set);
171
- ts_sinon_1.default.assert.calledWithExactly(removeConversationSpy, mockTabId);
172
- ts_sinon_1.default.assert.notCalled(emitConversationMetricStub);
173
- });
174
- describe('onChatPrompt', () => {
175
- beforeEach(() => {
176
- chatController.onTabAdd({ tabId: mockTabId });
177
- });
178
- it("throws error if credentials provider doesn't exist", async () => {
179
- chatSessionManagementService_1.ChatSessionManagementService.getInstance().withCredentialsProvider(undefined);
180
- const result = await chatController.onChatPrompt({ tabId: 'XXXX', prompt: { prompt: 'Hello' } }, mockCancellationToken);
181
- assert.ok(result instanceof server_interface_1.ResponseError);
182
- });
183
- it('read all the response streams and return compiled results', async () => {
184
- const chatResultPromise = chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' } }, mockCancellationToken);
185
- const chatResult = await chatResultPromise;
186
- ts_sinon_1.default.assert.callCount(testFeatures.lsp.sendProgress, 0);
187
- assert.deepStrictEqual(chatResult, expectedCompleteChatResult);
188
- });
189
- it('returns help message if it is a help follow up action', async () => {
190
- const chatResultPromise = chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: constants_1.DEFAULT_HELP_FOLLOW_UP_PROMPT } }, mockCancellationToken);
191
- const chatResult = await chatResultPromise;
192
- ts_sinon_1.default.assert.match(chatResult, {
193
- messageId: ts_sinon_1.default.match.string,
194
- body: constants_1.HELP_MESSAGE,
195
- });
196
- });
197
- it('read all the response streams and send progress as partial result is received', async () => {
198
- const chatResultPromise = chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' }, partialResultToken: 1 }, mockCancellationToken);
199
- const chatResult = await chatResultPromise;
200
- ts_sinon_1.default.assert.callCount(testFeatures.lsp.sendProgress, mockChatResponseList.length);
201
- assert.deepStrictEqual(chatResult, expectedCompleteChatResult);
202
- });
203
- it('can use 0 as progress token', async () => {
204
- const chatResultPromise = chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' }, partialResultToken: 0 }, mockCancellationToken);
205
- const chatResult = await chatResultPromise;
206
- ts_sinon_1.default.assert.callCount(testFeatures.lsp.sendProgress, mockChatResponseList.length);
207
- assert.deepStrictEqual(chatResult, expectedCompleteChatResult);
208
- });
209
- it('returns a ResponseError if sendMessage returns an error', async () => {
210
- sendMessageStub.callsFake(() => {
211
- throw new Error('Error');
212
- });
213
- const chatResult = await chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' } }, mockCancellationToken);
214
- assert.ok(chatResult instanceof server_interface_1.ResponseError);
215
- });
216
- it('returns a auth follow up action if sendMessage returns an auth error', async () => {
217
- sendMessageStub.callsFake(() => {
218
- throw new Error('Error');
219
- });
220
- ts_sinon_1.default.stub(utils, 'getAuthFollowUpType').returns('full-auth');
221
- const chatResultPromise = chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' }, partialResultToken: 1 }, mockCancellationToken);
222
- const chatResult = await chatResultPromise;
223
- ts_sinon_1.default.assert.callCount(testFeatures.lsp.sendProgress, 0);
224
- assert.deepStrictEqual(chatResult, utils.createAuthFollowUpResult('full-auth'));
225
- });
226
- it('returns a ResponseError if response streams return an error event', async () => {
227
- sendMessageStub.callsFake(() => {
228
- return Promise.resolve({
229
- $metadata: {
230
- requestId: mockMessageId,
231
- },
232
- sendMessageResponse: (0, testUtils_1.createIterableResponse)([
233
- // ["Hello ", "World"]
234
- ...mockChatResponseList.slice(1, 3),
235
- { error: { message: 'some error' } },
236
- // ["!"]
237
- ...mockChatResponseList.slice(3),
238
- ]),
239
- });
240
- });
241
- const chatResult = await chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' } }, mockCancellationToken);
242
- assert.deepStrictEqual(chatResult, new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, 'some error'));
243
- });
244
- it('returns a ResponseError if response streams return an invalid state event', async () => {
245
- sendMessageStub.callsFake(() => {
246
- return Promise.resolve({
247
- $metadata: {
248
- requestId: mockMessageId,
249
- },
250
- sendMessageResponse: (0, testUtils_1.createIterableResponse)([
251
- // ["Hello ", "World"]
252
- ...mockChatResponseList.slice(1, 3),
253
- { invalidStateEvent: { message: 'invalid state' } },
254
- // ["!"]
255
- ...mockChatResponseList.slice(3),
256
- ]),
257
- });
258
- });
259
- const chatResult = await chatController.onChatPrompt({ tabId: mockTabId, prompt: { prompt: 'Hello' } }, mockCancellationToken);
260
- assert.deepStrictEqual(chatResult, new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, 'invalid state'));
261
- });
262
- describe('#extractDocumentContext', () => {
263
- const typescriptDocument = server_interface_1.TextDocument.create('file:///test.ts', 'typescript', 1, 'test');
264
- let extractDocumentContextStub;
265
- const mockCursorState = {
266
- range: {
267
- start: {
268
- line: 1,
269
- character: 1,
270
- },
271
- end: {
272
- line: 1,
273
- character: 1,
274
- },
275
- },
276
- };
277
- beforeEach(() => {
278
- extractDocumentContextStub = ts_sinon_1.default.stub(documentContext_1.DocumentContextExtractor.prototype, 'extractDocumentContext');
279
- testFeatures.openDocument(typescriptDocument);
280
- });
281
- afterEach(() => {
282
- extractDocumentContextStub.restore();
283
- });
284
- it('leaves editor state as undefined if cursorState is not passed', async () => {
285
- const documentContextObject = {
286
- programmingLanguage: 'typescript',
287
- cursorState: undefined,
288
- relativeFilePath: 'file:///test.ts',
289
- };
290
- extractDocumentContextStub.resolves(documentContextObject);
291
- await chatController.onChatPrompt({
292
- tabId: mockTabId,
293
- prompt: { prompt: 'Hello' },
294
- textDocument: { uri: 'file:///test.ts' },
295
- cursorState: undefined,
296
- }, mockCancellationToken);
297
- const calledRequestInput = sendMessageStub.firstCall.firstArg;
298
- assert.strictEqual(calledRequestInput.conversationState?.currentMessage?.userInputMessage?.userInputMessageContext
299
- ?.editorState, undefined);
300
- });
301
- it('leaves editor state as undefined if relative file path is undefined', async () => {
302
- const documentContextObject = {
303
- programmingLanguage: 'typescript',
304
- cursorState: [],
305
- relativeFilePath: undefined,
306
- };
307
- extractDocumentContextStub.resolves(documentContextObject);
308
- await chatController.onChatPrompt({
309
- tabId: mockTabId,
310
- prompt: { prompt: 'Hello' },
311
- cursorState: [mockCursorState],
312
- }, mockCancellationToken);
313
- const calledRequestInput = sendMessageStub.firstCall.firstArg;
314
- assert.strictEqual(calledRequestInput.conversationState?.currentMessage?.userInputMessage?.userInputMessageContext
315
- ?.editorState, undefined);
316
- });
317
- it('parses editor state context and includes as requestInput if both cursor state and text document are found', async () => {
318
- const documentContextObject = {
319
- programmingLanguage: 'typescript',
320
- cursorState: [],
321
- relativeFilePath: typescriptDocument.uri,
322
- };
323
- extractDocumentContextStub.resolves(documentContextObject);
324
- await chatController.onChatPrompt({
325
- tabId: mockTabId,
326
- prompt: { prompt: 'Hello' },
327
- textDocument: { uri: 'file:///test.ts' },
328
- cursorState: [mockCursorState],
329
- }, mockCancellationToken);
330
- const calledRequestInput = sendMessageStub.firstCall.firstArg;
331
- assert.deepStrictEqual(calledRequestInput.conversationState?.currentMessage?.userInputMessage?.userInputMessageContext
332
- ?.editorState, {
333
- cursorState: [],
334
- document: {
335
- programmingLanguage: 'typescript',
336
- relativeFilePath: 'file:///test.ts',
337
- text: undefined,
338
- },
339
- });
340
- });
341
- });
342
- });
343
- describe('onCodeInsertToCursorPosition', () => {
344
- beforeEach(() => {
345
- chatController.onTabAdd({ tabId: mockTabId });
346
- testFeatures.lsp.workspace.applyWorkspaceEdit.resolves({ applied: true });
347
- testFeatures.workspace.getTextDocument = ts_sinon_1.default.stub();
348
- });
349
- afterEach(() => {
350
- chatController.dispose();
351
- });
352
- it('handles regular insertion correctly', async () => {
353
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, ' ');
354
- testFeatures.workspace.getTextDocument.resolves(document);
355
- const cursorPosition = server_interface_1.Position.create(0, 0);
356
- const params = {
357
- textDocument: { uri: 'test.ts' },
358
- cursorPosition,
359
- code: 'const x = 1\n const y = 2',
360
- tabId: mockTabId,
361
- messageId: 'XXX',
362
- };
363
- await chatController.onCodeInsertToCursorPosition(params);
364
- assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
365
- edit: {
366
- documentChanges: [
367
- {
368
- textDocument: { uri: 'test.ts', version: 0 },
369
- edits: [
370
- {
371
- range: {
372
- start: cursorPosition,
373
- end: cursorPosition,
374
- },
375
- newText: params.code,
376
- },
377
- ],
378
- },
379
- ],
380
- },
381
- });
382
- });
383
- it('handles tab-based indentation correctly', async () => {
384
- const documentContent = 'function test() {\n\tif (true) {\n\t\t// cursor here\n\t}';
385
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
386
- testFeatures.workspace.getTextDocument.resolves(document);
387
- const cursorPosition = server_interface_1.Position.create(2, 2);
388
- const params = {
389
- textDocument: { uri: 'test.ts' },
390
- cursorPosition,
391
- code: 'console.log("test");\nconsole.log("test2")',
392
- tabId: mockTabId,
393
- messageId: 'XXX',
394
- };
395
- await chatController.onCodeInsertToCursorPosition(params);
396
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
397
- assert(documentChanges);
398
- const insertedText = documentChanges[0].edits[0].newText;
399
- // Should maintain tab-based indentation
400
- assert.deepStrictEqual(insertedText, 'console.log("test");\n\t\tconsole.log("test2")');
401
- });
402
- it('handles insertion at mixed indentation levels correctly', async () => {
403
- const documentContent = `function test() {
404
- if (true) {
405
- // cursor here
406
- console.log("test");
407
- }
408
- }`;
409
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
410
- testFeatures.workspace.getTextDocument.resolves(document);
411
- const cursorPosition = server_interface_1.Position.create(2, 12);
412
- const params = {
413
- textDocument: { uri: 'test.ts' },
414
- cursorPosition,
415
- code: 'const x = 1;\nconst y = 2;',
416
- tabId: mockTabId,
417
- messageId: 'XXX',
418
- };
419
- await chatController.onCodeInsertToCursorPosition(params);
420
- // Verify that the inserted code maintains the indentation level of the insertion point
421
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
422
- assert(documentChanges);
423
- const insertedText = documentChanges[0].edits[0].newText;
424
- assert.deepStrictEqual(insertedText, `const x = 1;\n${' '.repeat(12)}const y = 2;`);
425
- });
426
- it('handles code starting with multiple blank lines correctly', async () => {
427
- // Create a document with some existing indentation
428
- const documentContent = `${' '.repeat(4)}const existingCode = true;`;
429
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
430
- testFeatures.workspace.getTextDocument.resolves(document);
431
- // Position cursor at an indented position
432
- const cursorPosition = server_interface_1.Position.create(0, 4);
433
- const params = {
434
- textDocument: { uri: 'test.ts' },
435
- cursorPosition,
436
- // Code starts with 3 blank lines, followed by actual code
437
- code: '\n\n\nfunction test() {\n console.log("test");\n}',
438
- tabId: mockTabId,
439
- messageId: 'XXX',
440
- };
441
- await chatController.onCodeInsertToCursorPosition(params);
442
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
443
- assert(documentChanges);
444
- const insertedText = documentChanges[0].edits[0].newText;
445
- // The blank lines should have no indentation
446
- // Only the actual code lines should be indented
447
- // First three lines should be empty with no indentation
448
- // Following lines should have the indentation
449
- assert.deepStrictEqual(insertedText, `\n\n\n${' '.repeat(4)}function test() {\n${' '.repeat(8)}console.log("test");\n${' '.repeat(4)}}`);
450
- });
451
- it('handles insertion of code with multiple leading blank lines into empty document at position 0', async () => {
452
- const documentContent = '';
453
- const document = server_interface_1.TextDocument.create('test.py', 'python', 1, documentContent);
454
- testFeatures.workspace.getTextDocument.resolves(document);
455
- const cursorPosition = server_interface_1.Position.create(0, 0);
456
- const params = {
457
- textDocument: { uri: 'test.ts' },
458
- cursorPosition,
459
- // Code with 5 blank lines at the beginning
460
- code: '\n\n\n\n\ndef multiply(x, y):\n result = x * y\n return result\n\nprint(multiply(4, 5))',
461
- tabId: mockTabId,
462
- messageId: 'XXX',
463
- };
464
- await chatController.onCodeInsertToCursorPosition(params);
465
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
466
- assert(documentChanges);
467
- const insertedText = documentChanges[0].edits[0].newText;
468
- // Since document is empty and cursor is at 0,0:
469
- // - Leading blank lines should be preserved exactly as is
470
- // - No additional indentation should be added to any lines
471
- assert.deepStrictEqual(insertedText, params.code);
472
- });
473
- it('handles undefined document content correctly', async () => {
474
- testFeatures.workspace.getTextDocument.resolves(undefined);
475
- const cursorPosition = server_interface_1.Position.create(0, 0);
476
- const params = {
477
- textDocument: { uri: 'test.ts' },
478
- cursorPosition,
479
- code: 'const x = 1;\nconst y = 2;',
480
- tabId: mockTabId,
481
- messageId: 'XXX',
482
- };
483
- await chatController.onCodeInsertToCursorPosition(params);
484
- // When document content is undefined, the code should:
485
- // 1. Still attempt to insert the code
486
- // 2. Not add any indentation
487
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
488
- assert(documentChanges);
489
- const edit = documentChanges[0].edits[0];
490
- assert.deepStrictEqual(edit.newText, params.code);
491
- assert.deepStrictEqual(edit.range.start, cursorPosition);
492
- assert.deepStrictEqual(edit.range.end, cursorPosition);
493
- });
494
- it('handles indentation correctly when inserting after an indent', async () => {
495
- // Text document contains 8 space characters
496
- const documentContent = ' '.repeat(8);
497
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
498
- testFeatures.workspace.getTextDocument.resolves(document);
499
- // Cursor is positioned at the end of the first line, after the 8 spaces
500
- const cursorPosition = server_interface_1.Position.create(0, documentContent.length);
501
- const params = {
502
- textDocument: { uri: 'test.ts' },
503
- cursorPosition,
504
- code: 'const x = 1\nconst y = 2',
505
- tabId: mockTabId,
506
- messageId: 'XXX',
507
- };
508
- await chatController.onCodeInsertToCursorPosition(params);
509
- assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
510
- edit: {
511
- documentChanges: [
512
- {
513
- textDocument: { uri: 'test.ts', version: 0 },
514
- edits: [
515
- {
516
- range: {
517
- start: cursorPosition,
518
- end: cursorPosition,
519
- },
520
- // We expect new text to be added to the end of the existing line and also apply indentation on the next line
521
- newText: `const x = 1\n${' '.repeat(8)}const y = 2`,
522
- },
523
- ],
524
- },
525
- ],
526
- },
527
- });
528
- });
529
- it('handles indentation correctly when inserting at the end of a single line that does not have any indentation', async () => {
530
- const documentContent = 'console.log("Hello world")';
531
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
532
- testFeatures.workspace.getTextDocument.resolves(document);
533
- const forLoop = `for (let i = 2; i <= n; i++) {
534
- const next = prev + current;
535
- prev = current;
536
- current = next;
537
- }`;
538
- const cursorPosition = server_interface_1.Position.create(0, documentContent.length);
539
- const params = {
540
- textDocument: { uri: 'test.ts' },
541
- cursorPosition,
542
- code: forLoop,
543
- tabId: mockTabId,
544
- messageId: 'XXX',
545
- };
546
- await chatController.onCodeInsertToCursorPosition(params);
547
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
548
- assert(documentChanges);
549
- const insertedText = documentChanges[0].edits[0].newText;
550
- // For loop should be inserted as is in this case
551
- assert.deepStrictEqual(insertedText, forLoop);
552
- });
553
- it('handles indentation correctly when inserting inside an indented block', async () => {
554
- const fibonacci = `function fibonacci(n) {
555
- if (n <= 1) return n;
556
-
557
- let prev = 0,
558
- let current = 1;
559
-
560
- for (let i = 2; i <= n; i++) {
561
- // Insertion will happen on the line below
562
-
563
- const next = prev + current;
564
- prev = current;
565
- current = next;
566
- }
567
-
568
- return current;
569
- }
570
- `;
571
- // This test will insert an extra for loop inside the existing for loop in the fibonacci function above
572
- const forLoop = `for (let i = 2; i <= n; i++) {
573
- const next = prev + current;
574
- prev = current;
575
- current = next;
576
- }
577
- `;
578
- // Given the for loop is inside a function and we will be inserting a new for loop inside, the for loop to be inserted will have 8 prefix spaces
579
- const twiceIndentedForLoop = `for (let i = 2; i <= n; i++) {
580
- ${' '.repeat(8)} const next = prev + current;
581
- ${' '.repeat(8)} prev = current;
582
- ${' '.repeat(8)} current = next;
583
- ${' '.repeat(8)}}
584
- `;
585
- let document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, fibonacci);
586
- testFeatures.workspace.getTextDocument.resolves(document);
587
- const cursorPosition = server_interface_1.Position.create(8, 8);
588
- const params = {
589
- textDocument: { uri: 'test.ts' },
590
- cursorPosition,
591
- code: forLoop,
592
- tabId: mockTabId,
593
- messageId: 'XXX',
594
- };
595
- await chatController.onCodeInsertToCursorPosition(params);
596
- const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
597
- assert(documentChanges);
598
- const insertedText = documentChanges[0].edits[0].newText;
599
- assert.deepStrictEqual(insertedText, twiceIndentedForLoop);
600
- });
601
- it('handles virtual spaces when cursor is in empty line with virtual indent', async () => {
602
- // Create an empty document
603
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
604
- testFeatures.workspace.getTextDocument.resolves(document);
605
- // Position cursor at character 8 in an empty line (virtual space)
606
- const cursorPosition = server_interface_1.Position.create(0, 8);
607
- const params = {
608
- textDocument: { uri: 'test.ts' },
609
- cursorPosition,
610
- code: 'const x = 1\nconst y = 2',
611
- tabId: mockTabId,
612
- messageId: 'XXX',
613
- };
614
- await chatController.onCodeInsertToCursorPosition(params);
615
- // The code should be indented with 8 spaces for both lines
616
- // and cursor should be moved to position 0
617
- assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
618
- edit: {
619
- documentChanges: [
620
- {
621
- textDocument: { uri: 'test.ts', version: 0 },
622
- edits: [
623
- {
624
- range: {
625
- start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
626
- end: server_interface_1.Position.create(0, 0),
627
- },
628
- newText: `${' '.repeat(8)}const x = 1\n${' '.repeat(8)}const y = 2`,
629
- },
630
- ],
631
- },
632
- ],
633
- },
634
- });
635
- });
636
- it('handles virtual spaces with multiline code containing empty lines', async () => {
637
- // Create an empty document
638
- let document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
639
- testFeatures.workspace.getTextDocument.resolves(document);
640
- // Position cursor at character 4 in an empty line (virtual space)
641
- const cursorPosition = server_interface_1.Position.create(0, 4);
642
- const params = {
643
- textDocument: { uri: 'test.ts' },
644
- cursorPosition,
645
- code: 'if (condition) {\n\n console.log("test");\n}',
646
- tabId: mockTabId,
647
- messageId: 'XXX',
648
- };
649
- await chatController.onCodeInsertToCursorPosition(params);
650
- // The code should be indented with 4 spaces, empty lines should remain empty
651
- assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
652
- edit: {
653
- documentChanges: [
654
- {
655
- textDocument: { uri: 'test.ts', version: 0 },
656
- edits: [
657
- {
658
- range: {
659
- start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
660
- end: server_interface_1.Position.create(0, 0),
661
- },
662
- newText: `${' '.repeat(4)}if (condition) {\n\n${' '.repeat(8)}console.log("test");\n }`,
663
- },
664
- ],
665
- },
666
- ],
667
- },
668
- });
669
- });
670
- it('handles virtual spaces correctly when code starts with empty line', async () => {
671
- const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
672
- testFeatures.workspace.getTextDocument.resolves(document);
673
- // Position cursor at character 6 in an empty line (virtual space)
674
- const cursorPosition = server_interface_1.Position.create(0, 6);
675
- const params = {
676
- textDocument: { uri: 'test.ts' },
677
- cursorPosition,
678
- // Code starts with an empty line, followed by actual code
679
- code: '\nfunction test() {\n console.log("test");\n}',
680
- tabId: mockTabId,
681
- messageId: 'XXX',
682
- };
683
- await chatController.onCodeInsertToCursorPosition(params);
684
- // The first empty line should have no indentation
685
- // Subsequent lines should be indented with 6 spaces
686
- assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
687
- edit: {
688
- documentChanges: [
689
- {
690
- textDocument: { uri: 'test.ts', version: 0 },
691
- edits: [
692
- {
693
- range: {
694
- start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
695
- end: server_interface_1.Position.create(0, 0),
696
- },
697
- // First line is empty (no indentation)
698
- // Following lines get the virtual space indentation
699
- newText: `\n${' '.repeat(6)}function test() {\n${' '.repeat(10)}console.log("test");\n${' '.repeat(6)}}`,
700
- },
701
- ],
702
- },
703
- ],
704
- },
705
- });
706
- });
707
- });
708
- });
709
- //# sourceMappingURL=chatController.test.js.map