@aws/lsp-codewhisperer 0.0.27 → 0.0.29

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 (595) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +62 -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/client/token/codewhisperer.d.ts +1 -1
  39. package/out/constants.d.ts +6 -0
  40. package/out/constants.js +7 -1
  41. package/out/constants.js.map +1 -1
  42. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.d.ts +90 -0
  43. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js +466 -0
  44. package/out/language-server/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -0
  45. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.d.ts +5 -0
  46. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js +3 -0
  47. package/out/language-server/amazonQServiceManager/BaseAmazonQServiceManager.js.map +1 -0
  48. package/out/language-server/amazonQServiceManager/errors.d.ts +28 -0
  49. package/out/language-server/amazonQServiceManager/errors.js +70 -0
  50. package/out/language-server/amazonQServiceManager/errors.js.map +1 -0
  51. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.d.ts +38 -0
  52. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js +85 -0
  53. package/out/language-server/amazonQServiceManager/qDeveloperProfiles.js.map +1 -0
  54. package/out/language-server/chat/chatController.d.ts +1 -1
  55. package/out/language-server/chat/chatController.js +19 -3
  56. package/out/language-server/chat/chatController.js.map +1 -1
  57. package/out/language-server/chat/chatSessionManagementService.d.ts +3 -8
  58. package/out/language-server/chat/chatSessionManagementService.js +5 -57
  59. package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
  60. package/out/language-server/chat/chatSessionService.d.ts +2 -3
  61. package/out/language-server/chat/chatSessionService.js +7 -21
  62. package/out/language-server/chat/chatSessionService.js.map +1 -1
  63. package/out/language-server/chat/contexts/triggerContext.d.ts +1 -1
  64. package/out/language-server/chat/contexts/triggerContext.js +2 -1
  65. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  66. package/out/language-server/chat/telemetry/chatTelemetryController.js +88 -81
  67. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  68. package/out/language-server/codeWhispererSecurityScanServer.d.ts +2 -4
  69. package/out/language-server/codeWhispererSecurityScanServer.js +24 -11
  70. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
  71. package/out/language-server/codeWhispererServer.js +93 -65
  72. package/out/language-server/codeWhispererServer.js.map +1 -1
  73. package/out/language-server/codeWhispererService.d.ts +12 -1
  74. package/out/language-server/codeWhispererService.js +45 -16
  75. package/out/language-server/codeWhispererService.js.map +1 -1
  76. package/out/language-server/configuration/qConfigurationServer.d.ts +17 -4
  77. package/out/language-server/configuration/qConfigurationServer.js +103 -14
  78. package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
  79. package/out/language-server/dependencyGraph/commonUtil.d.ts +0 -1
  80. package/out/language-server/dependencyGraph/commonUtil.js +0 -11
  81. package/out/language-server/dependencyGraph/commonUtil.js.map +1 -1
  82. package/out/language-server/dependencyGraph/dependencyGraph.js +2 -2
  83. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  84. package/out/language-server/netTransform/transformHandler.d.ts +3 -2
  85. package/out/language-server/netTransform/transformHandler.js +7 -2
  86. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  87. package/out/language-server/netTransformServer.js +3 -3
  88. package/out/language-server/netTransformServer.js.map +1 -1
  89. package/out/language-server/proxy-server.js +3 -14
  90. package/out/language-server/proxy-server.js.map +1 -1
  91. package/out/language-server/qChatServer.d.ts +2 -4
  92. package/out/language-server/qChatServer.js +30 -16
  93. package/out/language-server/qChatServer.js.map +1 -1
  94. package/out/language-server/securityScan/constants.d.ts +3 -0
  95. package/out/language-server/securityScan/constants.js +7 -0
  96. package/out/language-server/securityScan/constants.js.map +1 -0
  97. package/out/language-server/securityScan/securityScanHandler.d.ts +5 -5
  98. package/out/language-server/securityScan/securityScanHandler.js +22 -12
  99. package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
  100. package/out/language-server/telemetry/codeDiffTracker.d.ts +1 -1
  101. package/out/language-server/telemetry/codeDiffTracker.js +16 -13
  102. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
  103. package/out/language-server/telemetryService.d.ts +7 -5
  104. package/out/language-server/telemetryService.js +29 -20
  105. package/out/language-server/telemetryService.js.map +1 -1
  106. package/out/language-server/testUtils.d.ts +3 -0
  107. package/out/language-server/testUtils.js +12 -1
  108. package/out/language-server/testUtils.js.map +1 -1
  109. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js +2 -2
  110. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.js.map +1 -1
  111. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js +2 -2
  112. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  113. package/out/language-server/utils.d.ts +3 -0
  114. package/out/language-server/utils.js +15 -0
  115. package/out/language-server/utils.js.map +1 -1
  116. package/package.json +8 -8
  117. package/node_modules/@smithy/node-http-handler/README.md +0 -4
  118. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -21
  119. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -8
  120. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -6
  121. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -14
  122. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -2
  123. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -2
  124. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -2
  125. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -6
  126. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -2
  127. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -13
  128. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -13
  129. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +0 -23
  130. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +0 -23
  131. package/out/language-server/auto-trigger/autoTrigger.test.d.ts +0 -1
  132. package/out/language-server/auto-trigger/autoTrigger.test.js +0 -82
  133. package/out/language-server/auto-trigger/autoTrigger.test.js.map +0 -1
  134. package/out/language-server/chat/chatController.test.d.ts +0 -1
  135. package/out/language-server/chat/chatController.test.js +0 -709
  136. package/out/language-server/chat/chatController.test.js.map +0 -1
  137. package/out/language-server/chat/chatEventParser.test.d.ts +0 -1
  138. package/out/language-server/chat/chatEventParser.test.js +0 -239
  139. package/out/language-server/chat/chatEventParser.test.js.map +0 -1
  140. package/out/language-server/chat/chatSessionManagementService.test.d.ts +0 -1
  141. package/out/language-server/chat/chatSessionManagementService.test.js +0 -77
  142. package/out/language-server/chat/chatSessionManagementService.test.js.map +0 -1
  143. package/out/language-server/chat/chatSessionService.test.d.ts +0 -1
  144. package/out/language-server/chat/chatSessionService.test.js +0 -86
  145. package/out/language-server/chat/chatSessionService.test.js.map +0 -1
  146. package/out/language-server/chat/contexts/documentContext.test.d.ts +0 -1
  147. package/out/language-server/chat/contexts/documentContext.test.js +0 -117
  148. package/out/language-server/chat/contexts/documentContext.test.js.map +0 -1
  149. package/out/language-server/chat/contexts/triggerContexts.test.d.ts +0 -1
  150. package/out/language-server/chat/contexts/triggerContexts.test.js +0 -81
  151. package/out/language-server/chat/contexts/triggerContexts.test.js.map +0 -1
  152. package/out/language-server/chat/contexts/utils.test.d.ts +0 -1
  153. package/out/language-server/chat/contexts/utils.test.js +0 -72
  154. package/out/language-server/chat/contexts/utils.test.js.map +0 -1
  155. package/out/language-server/chat/telemetry/chatTelemetryController.test.d.ts +0 -1
  156. package/out/language-server/chat/telemetry/chatTelemetryController.test.js +0 -195
  157. package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +0 -1
  158. package/out/language-server/codeWhispererServer.test.d.ts +0 -1
  159. package/out/language-server/codeWhispererServer.test.js +0 -1377
  160. package/out/language-server/codeWhispererServer.test.js.map +0 -1
  161. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +0 -1
  162. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +0 -483
  163. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +0 -1
  164. package/out/language-server/dependencyGraph/gitIgnoreFilter.d.ts +0 -7
  165. package/out/language-server/dependencyGraph/gitIgnoreFilter.js +0 -39
  166. package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +0 -1
  167. package/out/language-server/languageDetection.test.d.ts +0 -1
  168. package/out/language-server/languageDetection.test.js +0 -31
  169. package/out/language-server/languageDetection.test.js.map +0 -1
  170. package/out/language-server/mergeRightUtils.test.d.ts +0 -1
  171. package/out/language-server/mergeRightUtils.test.js +0 -53
  172. package/out/language-server/mergeRightUtils.test.js.map +0 -1
  173. package/out/language-server/netTransform/tests/converter.test.d.ts +0 -1
  174. package/out/language-server/netTransform/tests/converter.test.js +0 -108
  175. package/out/language-server/netTransform/tests/converter.test.js.map +0 -1
  176. package/out/language-server/netTransform/tests/transformHandler.test.d.ts +0 -1
  177. package/out/language-server/netTransform/tests/transformHandler.test.js +0 -252
  178. package/out/language-server/netTransform/tests/transformHandler.test.js.map +0 -1
  179. package/out/language-server/netTransform/tests/validation.test.d.ts +0 -1
  180. package/out/language-server/netTransform/tests/validation.test.js +0 -84
  181. package/out/language-server/netTransform/tests/validation.test.js.map +0 -1
  182. package/out/language-server/qChatServer.test.d.ts +0 -1
  183. package/out/language-server/qChatServer.test.js +0 -51
  184. package/out/language-server/qChatServer.test.js.map +0 -1
  185. package/out/language-server/securityScan/securityScanHandler.test.d.ts +0 -1
  186. package/out/language-server/securityScan/securityScanHandler.test.js +0 -171
  187. package/out/language-server/securityScan/securityScanHandler.test.js.map +0 -1
  188. package/out/language-server/session/sessionManager.test.d.ts +0 -1
  189. package/out/language-server/session/sessionManager.test.js +0 -588
  190. package/out/language-server/session/sessionManager.test.js.map +0 -1
  191. package/out/language-server/telemetry/codeDiffTracker.test.d.ts +0 -1
  192. package/out/language-server/telemetry/codeDiffTracker.test.js +0 -125
  193. package/out/language-server/telemetry/codeDiffTracker.test.js.map +0 -1
  194. package/out/language-server/telemetry/codePercentage.test.d.ts +0 -1
  195. package/out/language-server/telemetry/codePercentage.test.js +0 -214
  196. package/out/language-server/telemetry/codePercentage.test.js.map +0 -1
  197. package/out/language-server/telemetry/userTriggerDecision.test.d.ts +0 -1
  198. package/out/language-server/telemetry/userTriggerDecision.test.js +0 -1348
  199. package/out/language-server/telemetry/userTriggerDecision.test.js.map +0 -1
  200. package/out/language-server/telemetry.test.d.ts +0 -1
  201. package/out/language-server/telemetry.test.js +0 -98
  202. package/out/language-server/telemetry.test.js.map +0 -1
  203. package/out/language-server/telemetryService.test.d.ts +0 -1
  204. package/out/language-server/telemetryService.test.js +0 -771
  205. package/out/language-server/telemetryService.test.js.map +0 -1
  206. package/out/language-server/utilities/filesystemUtilities.d.ts +0 -8
  207. package/out/language-server/utilities/filesystemUtilities.js +0 -30
  208. package/out/language-server/utilities/filesystemUtilities.js.map +0 -1
  209. package/out/language-server/utilities/filesystemUtilities.test.d.ts +0 -1
  210. package/out/language-server/utilities/filesystemUtilities.test.js +0 -85
  211. package/out/language-server/utilities/filesystemUtilities.test.js.map +0 -1
  212. package/out/language-server/utilities/pathUtils.d.ts +0 -27
  213. package/out/language-server/utilities/pathUtils.js +0 -79
  214. package/out/language-server/utilities/pathUtils.js.map +0 -1
  215. package/out/language-server/utilities/pathUtils.test.d.ts +0 -1
  216. package/out/language-server/utilities/pathUtils.test.js +0 -43
  217. package/out/language-server/utilities/pathUtils.test.js.map +0 -1
  218. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.d.ts +0 -5
  219. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js +0 -49
  220. package/out/language-server/utilities/supplementalContextUtil/codeParsingUtil.test.js.map +0 -1
  221. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.d.ts +0 -1
  222. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js +0 -157
  223. package/out/language-server/utilities/supplementalContextUtil/crossFileContextUtil.test.js.map +0 -1
  224. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.d.ts +0 -1
  225. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js +0 -88
  226. package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +0 -1
  227. package/out/language-server/utilities/telemetryUtils.test.d.ts +0 -1
  228. package/out/language-server/utilities/telemetryUtils.test.js +0 -207
  229. package/out/language-server/utilities/telemetryUtils.test.js.map +0 -1
  230. package/out/language-server/utilities/textUtils.d.ts +0 -1
  231. package/out/language-server/utilities/textUtils.js +0 -12
  232. package/out/language-server/utilities/textUtils.js.map +0 -1
  233. package/out/language-server/utilities/textUtils.test.d.ts +0 -1
  234. package/out/language-server/utilities/textUtils.test.js +0 -21
  235. package/out/language-server/utilities/textUtils.test.js.map +0 -1
  236. package/out/language-server/utils.test.d.ts +0 -1
  237. package/out/language-server/utils.test.js +0 -152
  238. package/out/language-server/utils.test.js.map +0 -1
  239. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming/node_modules/@smithy/abort-controller}/LICENSE +0 -0
  240. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/README.md +0 -0
  241. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -0
  242. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -0
  243. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -0
  244. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -0
  245. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -0
  246. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-es/index.js +0 -0
  247. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -0
  248. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -0
  249. /package/node_modules/{@smithy/node-http-handler/node_modules/@smithy/abort-controller → @amzn/codewhisperer-streaming/node_modules/@smithy/node-http-handler}/LICENSE +0 -0
  250. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/constants.js +0 -0
  251. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/get-transformed-headers.js +0 -0
  252. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http-handler.js +0 -0
  253. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -0
  254. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -0
  255. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/node-http2-handler.js +0 -0
  256. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/readable.mock.js +0 -0
  257. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/server.mock.js +0 -0
  258. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-connection-timeout.js +0 -0
  259. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -0
  260. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/set-socket-timeout.js +0 -0
  261. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/collector.js +0 -0
  262. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/index.js +0 -0
  263. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -0
  264. /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
  265. /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
  266. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/constants.js +0 -0
  267. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/get-transformed-headers.js +0 -0
  268. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/index.js +0 -0
  269. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/node-http2-connection-pool.js +0 -0
  270. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/readable.mock.js +0 -0
  271. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/collector.js +0 -0
  272. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -0
  273. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/constants.d.ts +0 -0
  274. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/get-transformed-headers.d.ts +0 -0
  275. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/index.d.ts +0 -0
  276. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -0
  277. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-connection-pool.d.ts +0 -0
  278. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/node-http2-handler.d.ts +0 -0
  279. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/readable.mock.d.ts +0 -0
  280. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/server.mock.d.ts +0 -0
  281. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -0
  282. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/index.d.ts +0 -0
  283. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -0
  284. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/constants.d.ts +0 -0
  285. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +0 -0
  286. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/index.d.ts +0 -0
  287. /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
  288. /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
  289. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +0 -0
  290. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -0
  291. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/server.mock.d.ts +0 -0
  292. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -0
  293. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +0 -0
  294. /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
  295. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -0
  296. /package/node_modules/{@smithy → @amzn/codewhisperer-streaming/node_modules/@smithy}/node-http-handler/dist-types/write-request-body.d.ts +0 -0
  297. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/LICENSE +0 -0
  298. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/README.md +0 -0
  299. /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
  300. /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
  301. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
  302. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -0
  303. /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
  304. /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
  305. /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
  306. /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
  307. /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
  308. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Field.js +0 -0
  309. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/Fields.js +0 -0
  310. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +0 -0
  311. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -0
  312. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +0 -0
  313. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +0 -0
  314. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/index.js +0 -0
  315. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +0 -0
  316. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-es/types.js +0 -0
  317. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +0 -0
  318. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +0 -0
  319. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
  320. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +0 -0
  321. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -0
  322. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +0 -0
  323. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/index.d.ts +0 -0
  324. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +0 -0
  325. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +0 -0
  326. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +0 -0
  327. /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
  328. /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
  329. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -0
  330. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +0 -0
  331. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +0 -0
  332. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +0 -0
  333. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +0 -0
  334. /package/node_modules/{@smithy/node-http-handler → @amzn/codewhisperer-streaming}/node_modules/@smithy/protocol-http/dist-types/types.d.ts +0 -0
  335. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/LICENSE +0 -0
  336. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/README.md +0 -0
  337. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-cjs/index.js +0 -0
  338. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-es/index.js +0 -0
  339. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/index.d.ts +0 -0
  340. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
  341. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/querystring-builder → querystring-builder}/package.json +0 -0
  342. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/LICENSE +0 -0
  343. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/README.md +0 -0
  344. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/checksum.js → types/dist-cjs/abort.js} +0 -0
  345. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
  346. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
  347. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
  348. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/HttpSigner.js +0 -0
  349. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
  350. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/auth.js +0 -0
  351. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/auth/index.js +0 -0
  352. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
  353. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/client.js → types/dist-cjs/checksum.js} +0 -0
  354. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/command.js → types/dist-cjs/client.js} +0 -0
  355. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/crypto.js → types/dist-cjs/command.js} +0 -0
  356. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/config.js +0 -0
  357. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/index.js +0 -0
  358. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/manager.js +0 -0
  359. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/connection/pool.js +0 -0
  360. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/encode.js → types/dist-cjs/crypto.js} +0 -0
  361. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
  362. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/endpoint.js → types/dist-cjs/encode.js} +0 -0
  363. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/eventStream.js → types/dist-cjs/endpoint.js} +0 -0
  364. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
  365. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
  366. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
  367. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
  368. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/index.js +0 -0
  369. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/endpoints/shared.js +0 -0
  370. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/http.js → types/dist-cjs/eventStream.js} +0 -0
  371. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/checksum.js +0 -0
  372. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
  373. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
  374. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/index.js +0 -0
  375. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/extensions/retry.js +0 -0
  376. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
  377. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
  378. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/logger.js → types/dist-cjs/http.js} +0 -0
  379. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
  380. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
  381. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/identity.js +0 -0
  382. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/index.js +0 -0
  383. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/identity/tokenIdentity.js +0 -0
  384. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/index.js +0 -0
  385. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/middleware.js → types/dist-cjs/logger.js} +0 -0
  386. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/pagination.js → types/dist-cjs/middleware.js} +0 -0
  387. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/profile.js → types/dist-cjs/pagination.js} +0 -0
  388. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/response.js → types/dist-cjs/profile.js} +0 -0
  389. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/retry.js → types/dist-cjs/response.js} +0 -0
  390. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/serde.js → types/dist-cjs/retry.js} +0 -0
  391. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/shapes.js → types/dist-cjs/serde.js} +0 -0
  392. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/signature.js → types/dist-cjs/shapes.js} +0 -0
  393. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/stream.js → types/dist-cjs/signature.js} +0 -0
  394. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/transfer.js → types/dist-cjs/stream.js} +0 -0
  395. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
  396. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  397. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  398. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/uri.js → types/dist-cjs/transfer.js} +0 -0
  399. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-method-transforms.js +0 -0
  400. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
  401. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/exact.js +0 -0
  402. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/no-undefined.js +0 -0
  403. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-cjs/transform/type-transform.js +0 -0
  404. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/util.js → types/dist-cjs/uri.js} +0 -0
  405. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types/dist-cjs/waiter.js → types/dist-cjs/util.js} +0 -0
  406. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/abort.js +0 -0
  407. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
  408. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthScheme.js +0 -0
  409. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpAuthSchemeProvider.js +0 -0
  410. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/HttpSigner.js +0 -0
  411. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/IdentityProviderConfig.js +0 -0
  412. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/auth.js +0 -0
  413. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/auth/index.js +0 -0
  414. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/blob/blob-payload-input-types.js +0 -0
  415. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/checksum.js +0 -0
  416. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/client.js +0 -0
  417. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/command.js +0 -0
  418. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/config.js +0 -0
  419. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/index.js +0 -0
  420. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/manager.js +0 -0
  421. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/connection/pool.js +0 -0
  422. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/crypto.js +0 -0
  423. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -0
  424. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/encode.js +0 -0
  425. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoint.js +0 -0
  426. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/EndpointRuleObject.js +0 -0
  427. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/ErrorRuleObject.js +0 -0
  428. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/RuleSetObject.js +0 -0
  429. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/TreeRuleObject.js +0 -0
  430. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/index.js +0 -0
  431. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/endpoints/shared.js +0 -0
  432. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/eventStream.js +0 -0
  433. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/checksum.js +0 -0
  434. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
  435. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/defaultExtensionConfiguration.js +0 -0
  436. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/index.js +0 -0
  437. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/extensions/retry.js +0 -0
  438. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/externals-check/browser-externals-check.js +0 -0
  439. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http/httpHandlerInitialization.js +0 -0
  440. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/http.js +0 -0
  441. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/apiKeyIdentity.js +0 -0
  442. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/awsCredentialIdentity.js +0 -0
  443. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/identity.js +0 -0
  444. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/index.js +0 -0
  445. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/identity/tokenIdentity.js +0 -0
  446. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/index.js +0 -0
  447. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/logger.js +0 -0
  448. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/middleware.js +0 -0
  449. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/pagination.js +0 -0
  450. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/profile.js +0 -0
  451. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/response.js +0 -0
  452. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/retry.js +0 -0
  453. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/serde.js +0 -0
  454. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/shapes.js +0 -0
  455. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/signature.js +0 -0
  456. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/stream.js +0 -0
  457. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-common-types.js +0 -0
  458. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -0
  459. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -0
  460. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transfer.js +0 -0
  461. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-method-transforms.js +0 -0
  462. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/client-payload-blob-type-narrow.js +0 -0
  463. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/exact.js +0 -0
  464. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/no-undefined.js +0 -0
  465. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/transform/type-transform.js +0 -0
  466. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/uri.js +0 -0
  467. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/util.js +0 -0
  468. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-es/waiter.js +0 -0
  469. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/abort.d.ts +0 -0
  470. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
  471. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
  472. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
  473. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/HttpSigner.d.ts +0 -0
  474. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
  475. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/auth.d.ts +0 -0
  476. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/auth/index.d.ts +0 -0
  477. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
  478. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/checksum.d.ts +0 -0
  479. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/client.d.ts +0 -0
  480. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/command.d.ts +0 -0
  481. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/config.d.ts +0 -0
  482. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/index.d.ts +0 -0
  483. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/manager.d.ts +0 -0
  484. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/connection/pool.d.ts +0 -0
  485. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/crypto.d.ts +0 -0
  486. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
  487. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/encode.d.ts +0 -0
  488. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoint.d.ts +0 -0
  489. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
  490. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
  491. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
  492. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
  493. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/index.d.ts +0 -0
  494. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/endpoints/shared.d.ts +0 -0
  495. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/eventStream.d.ts +0 -0
  496. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/checksum.d.ts +0 -0
  497. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
  498. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
  499. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/index.d.ts +0 -0
  500. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/extensions/retry.d.ts +0 -0
  501. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
  502. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
  503. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/http.d.ts +0 -0
  504. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
  505. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
  506. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/identity.d.ts +0 -0
  507. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/index.d.ts +0 -0
  508. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/identity/tokenIdentity.d.ts +0 -0
  509. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/index.d.ts +0 -0
  510. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/logger.d.ts +0 -0
  511. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/middleware.d.ts +0 -0
  512. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/pagination.d.ts +0 -0
  513. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/profile.d.ts +0 -0
  514. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/response.d.ts +0 -0
  515. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/retry.d.ts +0 -0
  516. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/serde.d.ts +0 -0
  517. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/shapes.d.ts +0 -0
  518. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/signature.d.ts +0 -0
  519. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/stream.d.ts +0 -0
  520. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
  521. /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
  522. /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
  523. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transfer.d.ts +0 -0
  524. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-method-transforms.d.ts +0 -0
  525. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
  526. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/exact.d.ts +0 -0
  527. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/no-undefined.d.ts +0 -0
  528. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/transform/type-transform.d.ts +0 -0
  529. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/abort.d.ts +0 -0
  530. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
  531. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
  532. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
  533. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
  534. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
  535. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
  536. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/auth/index.d.ts +0 -0
  537. /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
  538. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/checksum.d.ts +0 -0
  539. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/client.d.ts +0 -0
  540. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/command.d.ts +0 -0
  541. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/config.d.ts +0 -0
  542. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/index.d.ts +0 -0
  543. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
  544. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
  545. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/crypto.d.ts +0 -0
  546. /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
  547. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/encode.d.ts +0 -0
  548. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoint.d.ts +0 -0
  549. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
  550. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
  551. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
  552. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
  553. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
  554. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
  555. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/eventStream.d.ts +0 -0
  556. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
  557. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
  558. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
  559. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
  560. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
  561. /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
  562. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
  563. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/http.d.ts +0 -0
  564. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
  565. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
  566. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
  567. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/index.d.ts +0 -0
  568. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
  569. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/index.d.ts +0 -0
  570. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/logger.d.ts +0 -0
  571. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/middleware.d.ts +0 -0
  572. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/pagination.d.ts +0 -0
  573. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/profile.d.ts +0 -0
  574. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/response.d.ts +0 -0
  575. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/retry.d.ts +0 -0
  576. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/serde.d.ts +0 -0
  577. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/shapes.d.ts +0 -0
  578. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/signature.d.ts +0 -0
  579. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/stream.d.ts +0 -0
  580. /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
  581. /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
  582. /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
  583. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transfer.d.ts +0 -0
  584. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
  585. /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
  586. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
  587. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
  588. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
  589. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/uri.d.ts +0 -0
  590. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/util.d.ts +0 -0
  591. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/ts3.4/waiter.d.ts +0 -0
  592. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/uri.d.ts +0 -0
  593. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/util.d.ts +0 -0
  594. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/dist-types/waiter.d.ts +0 -0
  595. /package/node_modules/@smithy/{node-http-handler/node_modules/@smithy/types → types}/package.json +0 -0
@@ -1,1348 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const server_interface_1 = require("@aws/language-server-runtimes/server-interface");
4
- const testing_1 = require("@aws/language-server-runtimes/testing");
5
- const assert = require("assert");
6
- const ts_sinon_1 = require("ts-sinon");
7
- const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
8
- const codeWhispererServer_1 = require("../codeWhispererServer");
9
- const sessionManager_1 = require("../session/sessionManager");
10
- const telemetryService_1 = require("../telemetryService");
11
- describe('Telemetry', () => {
12
- const sandbox = ts_sinon_1.default.createSandbox();
13
- let SESSION_IDS_LOG = [];
14
- let sessionManager;
15
- let sessionManagerSpy;
16
- let generateSessionIdStub;
17
- let clock;
18
- let telemetryServiceSpy;
19
- beforeEach(() => {
20
- const StubSessionIdGenerator = () => {
21
- let id = 'some-random-session-uuid-' + SESSION_IDS_LOG.length;
22
- SESSION_IDS_LOG.push(id);
23
- return id;
24
- };
25
- generateSessionIdStub = ts_sinon_1.default
26
- .stub(sessionManager_1.CodeWhispererSession.prototype, 'generateSessionId')
27
- .callsFake(StubSessionIdGenerator);
28
- sessionManager_1.SessionManager.reset();
29
- sessionManager = sessionManager_1.SessionManager.getInstance();
30
- sessionManagerSpy = sandbox.spy(sessionManager);
31
- SESSION_IDS_LOG = [];
32
- clock = ts_sinon_1.default.useFakeTimers({
33
- now: 1483228800000,
34
- });
35
- telemetryServiceSpy = ts_sinon_1.default.spy(telemetryService_1.TelemetryService.prototype, 'emitUserTriggerDecision');
36
- });
37
- afterEach(() => {
38
- generateSessionIdStub.restore();
39
- clock.restore();
40
- sandbox.restore();
41
- telemetryServiceSpy.restore();
42
- });
43
- describe('User Trigger Decision telemetry', () => {
44
- const HELLO_WORLD_IN_CSHARP = `class HelloWorld
45
- {
46
- static void Main()
47
- {
48
- Console.WriteLine("Hello World!");
49
- }
50
- }
51
- `;
52
- const AUTO_TRIGGER_POSITION = { line: 2, character: 21 };
53
- const SOME_FILE = vscode_languageserver_textdocument_1.TextDocument.create('file:///test.cs', 'csharp', 1, HELLO_WORLD_IN_CSHARP);
54
- const SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = vscode_languageserver_textdocument_1.TextDocument.create(
55
- // Use unsupported extension, so that we can test that we get a match based on the LanguageId
56
- 'file:///test.seesharp', 'CSharp', 1, HELLO_WORLD_IN_CSHARP);
57
- const EXPECTED_REFERENCE = {
58
- licenseName: 'test license',
59
- repository: 'test repository',
60
- url: 'test url',
61
- recommendationContentSpan: { start: 0, end: 1 },
62
- };
63
- const DEFAULT_SUGGESTIONS = [
64
- { itemId: 'cwspr-item-id-1', content: 'recommendation' },
65
- { itemId: 'cwspr-item-id-2', content: 'recommendation' },
66
- { itemId: 'cwspr-item-id-3', content: 'recommendation' },
67
- ];
68
- const EXPECTED_RESULT = {
69
- sessionId: 'some-random-session-uuid-0',
70
- items: [
71
- {
72
- itemId: DEFAULT_SUGGESTIONS[0].itemId,
73
- insertText: DEFAULT_SUGGESTIONS[0].content,
74
- range: undefined,
75
- references: undefined,
76
- },
77
- {
78
- itemId: DEFAULT_SUGGESTIONS[1].itemId,
79
- insertText: DEFAULT_SUGGESTIONS[1].content,
80
- range: undefined,
81
- references: undefined,
82
- },
83
- {
84
- itemId: DEFAULT_SUGGESTIONS[2].itemId,
85
- insertText: DEFAULT_SUGGESTIONS[2].content,
86
- range: undefined,
87
- references: undefined,
88
- },
89
- ],
90
- };
91
- const EXPECTED_RESPONSE_CONTEXT = {
92
- requestId: 'cwspr-request-id',
93
- codewhispererSessionId: 'cwspr-session-id',
94
- };
95
- const DEFAULT_SESSION_RESULT_DATA = {
96
- sessionId: 'some-random-session-uuid-0',
97
- completionSessionResult: {
98
- 'cwspr-item-id-1': {
99
- seen: true,
100
- accepted: false,
101
- discarded: false,
102
- },
103
- 'cwspr-item-id-2': {
104
- seen: true,
105
- accepted: false,
106
- discarded: false,
107
- },
108
- 'cwspr-item-id-3': {
109
- seen: true,
110
- accepted: false,
111
- discarded: false,
112
- },
113
- },
114
- };
115
- const EMPTY_RESULT = { items: [], sessionId: '' };
116
- let features;
117
- let server;
118
- // TODO move more of the service code out of the stub and into the testable realm
119
- // See: https://aws.amazon.com/blogs/developer/mocking-modular-aws-sdk-for-javascript-v3-in-unit-tests/
120
- // for examples on how to mock just the SDK client
121
- let service;
122
- const setServiceResponse = (suggestions, responseContext, time = 2000) => {
123
- service.generateSuggestions.callsFake(_request => {
124
- clock.tick(time);
125
- return Promise.resolve({
126
- suggestions,
127
- responseContext,
128
- });
129
- });
130
- };
131
- const autoTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
132
- textDocument: { uri: SOME_FILE.uri },
133
- position: AUTO_TRIGGER_POSITION,
134
- context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Automatic },
135
- }, server_interface_1.CancellationToken.None);
136
- const manualTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
137
- textDocument: { uri: SOME_FILE.uri },
138
- position: { line: 0, character: 0 },
139
- context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Invoked },
140
- }, server_interface_1.CancellationToken.None);
141
- beforeEach(async () => {
142
- // Set up the server with a mock service, returning predefined recommendations
143
- service = (0, ts_sinon_1.stubInterface)();
144
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
145
- server = (0, codeWhispererServer_1.CodewhispererServerFactory)(_auth => service);
146
- // Initialize the features, but don't start server yet
147
- features = new testing_1.TestFeatures();
148
- // Return no specific configuration for CodeWhisperer
149
- features.lsp.workspace.getConfiguration.returns(Promise.resolve({}));
150
- // Return credentialsStartUrl value
151
- features.credentialsProvider.getConnectionMetadata.returns({
152
- sso: {
153
- startUrl: 'teststarturl',
154
- },
155
- });
156
- // Start the server and open a document
157
- await features.start(server);
158
- features.openDocument(SOME_FILE).openDocument(SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID);
159
- });
160
- const aUserTriggerDecision = (override = {}) => {
161
- return {
162
- id: 'some-random-session-uuid-0',
163
- document: {
164
- _uri: 'file:///test.cs',
165
- _languageId: 'csharp',
166
- _version: 1,
167
- _content: 'class HelloWorld\n' +
168
- '{\n' +
169
- ' static void Main()\n' +
170
- ' {\n' +
171
- ' Console.WriteLine("Hello World!");\n' +
172
- ' }\n' +
173
- '}\n',
174
- _lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
175
- },
176
- startTime: 1483228800000,
177
- closeTime: 1483228802000,
178
- state: 'CLOSED',
179
- codewhispererSessionId: 'cwspr-session-id',
180
- startPosition: { line: 2, character: 21 },
181
- suggestions: [
182
- { itemId: 'cwspr-item-id-1', content: '' },
183
- { itemId: 'cwspr-item-id-2', content: '' },
184
- { itemId: 'cwspr-item-id-3', content: '' },
185
- ],
186
- suggestionsStates: new Map([
187
- ['cwspr-item-id-1', 'Empty'],
188
- ['cwspr-item-id-2', 'Empty'],
189
- ['cwspr-item-id-3', 'Empty'],
190
- ]),
191
- acceptedSuggestionId: undefined,
192
- responseContext: {
193
- requestId: 'cwspr-request-id',
194
- codewhispererSessionId: 'cwspr-session-id',
195
- },
196
- triggerType: 'AutoTrigger',
197
- autoTriggerType: 'SpecialCharacters',
198
- triggerCharacter: '(',
199
- classifierResult: 0.46733811481459187,
200
- classifierThreshold: 0.43,
201
- language: 'csharp',
202
- requestContext: {
203
- fileContext: {
204
- filename: 'file:///test.cs',
205
- programmingLanguage: {
206
- languageName: 'csharp',
207
- },
208
- leftFileContent: 'class HelloWorld\n{\n static void Main(',
209
- rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
210
- },
211
- maxResults: 1,
212
- },
213
- supplementalMetadata: undefined,
214
- timeToFirstRecommendation: 2000,
215
- credentialStartUrl: 'teststarturl',
216
- completionSessionResult: undefined,
217
- firstCompletionDisplayLatency: undefined,
218
- totalSessionDisplayTime: undefined,
219
- typeaheadLength: undefined,
220
- previousTriggerDecision: undefined,
221
- previousTriggerDecisionTime: undefined,
222
- reportedUserDecision: true,
223
- customizationArn: undefined,
224
- ...override,
225
- };
226
- };
227
- describe('Case 1. Session is processed by server without sending results', () => {
228
- it('should send Empty user desicion when Codewhisperer returned list of empty suggestions and close session', async () => {
229
- const SUGGESTIONS = [
230
- { itemId: 'cwspr-item-id-1', content: '' },
231
- { itemId: 'cwspr-item-id-2', content: '' },
232
- { itemId: 'cwspr-item-id-3', content: '' },
233
- ];
234
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
235
- await autoTriggerInlineCompletionWithReferences();
236
- const currentSession = sessionManager.getCurrentSession();
237
- assert(currentSession);
238
- assert.equal(currentSession.state, 'CLOSED');
239
- ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
240
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision();
241
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
242
- });
243
- it('should send Empty User Decision when Codewhisperer returned empty list of suggestions', async () => {
244
- const SUGGESTIONS = [];
245
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
246
- await autoTriggerInlineCompletionWithReferences();
247
- const currentSession = sessionManager.getCurrentSession();
248
- assert(currentSession);
249
- assert.equal(currentSession.state, 'CLOSED');
250
- ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
251
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
252
- suggestions: [],
253
- suggestionsStates: new Map([]),
254
- });
255
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
256
- });
257
- it('should send Discard User Decision when all suggestions are filtered out by includeSuggestionsWithCodeReferences setting filter', async () => {
258
- features.lsp.workspace.getConfiguration.returns(Promise.resolve({ includeSuggestionsWithCodeReferences: false }));
259
- const SUGGESTIONS = [
260
- {
261
- itemId: 'cwspr-item-id-1',
262
- content: 'recommendation with reference',
263
- references: [EXPECTED_REFERENCE],
264
- },
265
- {
266
- itemId: 'cwspr-item-id-2',
267
- content: 'recommendation with reference',
268
- references: [EXPECTED_REFERENCE],
269
- },
270
- {
271
- itemId: 'cwspr-item-id-3',
272
- content: 'recommendation with reference',
273
- references: [EXPECTED_REFERENCE],
274
- },
275
- ];
276
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
277
- await autoTriggerInlineCompletionWithReferences();
278
- const currentSession = sessionManager.getCurrentSession();
279
- assert(currentSession);
280
- assert.equal(currentSession.state, 'CLOSED');
281
- ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
282
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
283
- suggestions: [
284
- {
285
- itemId: 'cwspr-item-id-1',
286
- content: 'recommendation with reference',
287
- references: [EXPECTED_REFERENCE],
288
- },
289
- {
290
- itemId: 'cwspr-item-id-2',
291
- content: 'recommendation with reference',
292
- references: [EXPECTED_REFERENCE],
293
- },
294
- {
295
- itemId: 'cwspr-item-id-3',
296
- content: 'recommendation with reference',
297
- references: [EXPECTED_REFERENCE],
298
- },
299
- ],
300
- suggestionsStates: new Map([
301
- ['cwspr-item-id-1', 'Filter'],
302
- ['cwspr-item-id-2', 'Filter'],
303
- ['cwspr-item-id-3', 'Filter'],
304
- ]),
305
- });
306
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
307
- });
308
- it('should send Discard User Decision when all suggestions are discarded after right context merge', async () => {
309
- const SUGGESTIONS = [
310
- { itemId: 'cwspr-item-id-1', content: HELLO_WORLD_IN_CSHARP },
311
- { itemId: 'cwspr-item-id-2', content: HELLO_WORLD_IN_CSHARP },
312
- { itemId: 'cwspr-item-id-3', content: HELLO_WORLD_IN_CSHARP },
313
- ];
314
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
315
- await manualTriggerInlineCompletionWithReferences();
316
- const currentSession = sessionManager.getCurrentSession();
317
- assert(currentSession);
318
- assert.equal(currentSession?.state, 'CLOSED');
319
- ts_sinon_1.default.assert.calledOnceWithExactly(sessionManagerSpy.closeSession, currentSession);
320
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
321
- startPosition: { line: 0, character: 0 },
322
- suggestions: [
323
- {
324
- itemId: 'cwspr-item-id-1',
325
- content: 'class HelloWorld\n' +
326
- '{\n' +
327
- ' static void Main()\n' +
328
- ' {\n' +
329
- ' Console.WriteLine("Hello World!");\n' +
330
- ' }\n' +
331
- '}\n',
332
- },
333
- {
334
- itemId: 'cwspr-item-id-2',
335
- content: 'class HelloWorld\n' +
336
- '{\n' +
337
- ' static void Main()\n' +
338
- ' {\n' +
339
- ' Console.WriteLine("Hello World!");\n' +
340
- ' }\n' +
341
- '}\n',
342
- },
343
- {
344
- itemId: 'cwspr-item-id-3',
345
- content: 'class HelloWorld\n' +
346
- '{\n' +
347
- ' static void Main()\n' +
348
- ' {\n' +
349
- ' Console.WriteLine("Hello World!");\n' +
350
- ' }\n' +
351
- '}\n',
352
- },
353
- ],
354
- suggestionsStates: new Map([
355
- ['cwspr-item-id-1', 'Discard'],
356
- ['cwspr-item-id-2', 'Discard'],
357
- ['cwspr-item-id-3', 'Discard'],
358
- ]),
359
- triggerType: 'OnDemand',
360
- autoTriggerType: undefined,
361
- triggerCharacter: '',
362
- classifierResult: -0.8524073111924992,
363
- requestContext: {
364
- fileContext: {
365
- filename: 'file:///test.cs',
366
- programmingLanguage: {
367
- languageName: 'csharp',
368
- },
369
- leftFileContent: '',
370
- rightFileContent: 'class HelloWorld\n' +
371
- '{\n' +
372
- ' static void Main()\n' +
373
- ' {\n' +
374
- ' Console.WriteLine("Hello World!");\n' +
375
- ' }\n' +
376
- '}\n',
377
- },
378
- maxResults: 5,
379
- },
380
- });
381
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
382
- });
383
- });
384
- describe('Case 2. Session returns recommendation to client and is closed by LogInlineCompletionSessionResults notification', () => {
385
- it('should emit User Decision event for active completion session when session results are received', async () => {
386
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
387
- await autoTriggerInlineCompletionWithReferences();
388
- const currentSession = sessionManager.getCurrentSession();
389
- assert(currentSession);
390
- assert.equal(currentSession?.state, 'ACTIVE');
391
- ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
392
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
393
- await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
394
- ts_sinon_1.default.assert.called(telemetryServiceSpy);
395
- });
396
- it('should emit User Decision event with correct typeaheadLength value when session results are received', async () => {
397
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
398
- await autoTriggerInlineCompletionWithReferences();
399
- const currentSession = sessionManager.getCurrentSession();
400
- assert(currentSession);
401
- assert.equal(currentSession?.state, 'ACTIVE');
402
- ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
403
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
404
- await features.doLogInlineCompletionSessionResults({
405
- ...DEFAULT_SESSION_RESULT_DATA,
406
- typeaheadLength: 20,
407
- });
408
- ts_sinon_1.default.assert.called(telemetryServiceSpy);
409
- });
410
- it('should not emit User Decision event when session results are received after session was closed', async () => {
411
- setServiceResponse(DEFAULT_SUGGESTIONS, {
412
- ...EXPECTED_RESPONSE_CONTEXT,
413
- codewhispererSessionId: 'cwspr-session-id-1',
414
- });
415
- await autoTriggerInlineCompletionWithReferences();
416
- const firstSession = sessionManager.getCurrentSession();
417
- assert(firstSession);
418
- assert.equal(firstSession.state, 'ACTIVE');
419
- ts_sinon_1.default.assert.notCalled(sessionManagerSpy.closeSession);
420
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
421
- // Send second completion request to close first one
422
- setServiceResponse(DEFAULT_SUGGESTIONS, {
423
- ...EXPECTED_RESPONSE_CONTEXT,
424
- codewhispererSessionId: 'cwspr-session-id-2',
425
- });
426
- await autoTriggerInlineCompletionWithReferences();
427
- assert.equal(firstSession.state, 'DISCARD');
428
- assert.notEqual(firstSession, sessionManager.getCurrentSession());
429
- ts_sinon_1.default.assert.calledWithExactly(sessionManagerSpy.closeSession, firstSession);
430
- // Test that session reports it's status when second request is received
431
- const expectedEvent = aUserTriggerDecision({
432
- state: 'DISCARD',
433
- codewhispererSessionId: 'cwspr-session-id-1',
434
- suggestions: [
435
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
436
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
437
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
438
- ],
439
- suggestionsStates: new Map([
440
- ['cwspr-item-id-1', 'Discard'],
441
- ['cwspr-item-id-2', 'Discard'],
442
- ['cwspr-item-id-3', 'Discard'],
443
- ]),
444
- responseContext: {
445
- requestId: 'cwspr-request-id',
446
- codewhispererSessionId: 'cwspr-session-id-1',
447
- },
448
- });
449
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedEvent, 0);
450
- telemetryServiceSpy.resetHistory();
451
- // Send session results for closed first session
452
- await features.doLogInlineCompletionSessionResults({
453
- ...DEFAULT_SESSION_RESULT_DATA,
454
- sessionId: firstSession.id,
455
- });
456
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
457
- });
458
- it('should not emit User Decision event when session results received for session that does not exist', async () => {
459
- // Send session results for closed first session
460
- await features.doLogInlineCompletionSessionResults({
461
- ...DEFAULT_SESSION_RESULT_DATA,
462
- sessionId: 'cwspr-session-id-never-created',
463
- });
464
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
465
- });
466
- it('should emit Accept User Decision event for current active completion session when session results are received with accepted suggestion', async () => {
467
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
468
- const SESSION_RESULT_DATA = {
469
- sessionId: 'some-random-session-uuid-0',
470
- completionSessionResult: {
471
- 'cwspr-item-id-1': {
472
- seen: true,
473
- accepted: false,
474
- discarded: false,
475
- },
476
- 'cwspr-item-id-2': {
477
- seen: true,
478
- accepted: true, // Second suggestion was accepted
479
- discarded: false,
480
- },
481
- 'cwspr-item-id-3': {
482
- seen: true,
483
- accepted: false,
484
- discarded: false,
485
- },
486
- },
487
- };
488
- await autoTriggerInlineCompletionWithReferences();
489
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
490
- // Send session results for closed first session
491
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
492
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
493
- completionSessionResult: {
494
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
495
- 'cwspr-item-id-2': { seen: true, accepted: true, discarded: false },
496
- 'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
497
- },
498
- suggestions: [
499
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
500
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
501
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
502
- ],
503
- suggestionsStates: new Map([
504
- ['cwspr-item-id-1', 'Ignore'],
505
- ['cwspr-item-id-2', 'Accept'],
506
- ['cwspr-item-id-3', 'Ignore'],
507
- ]),
508
- acceptedSuggestionId: 'cwspr-item-id-2',
509
- });
510
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
511
- });
512
- it('should emit Reject User Decision event for current active completion session when session results are received without accepted suggestion', async () => {
513
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
514
- const SESSION_RESULT_DATA = {
515
- sessionId: 'some-random-session-uuid-0',
516
- completionSessionResult: {
517
- 'cwspr-item-id-1': {
518
- seen: true, // Reject
519
- accepted: false,
520
- discarded: false,
521
- },
522
- 'cwspr-item-id-2': {
523
- seen: false, // Unseen
524
- accepted: false,
525
- discarded: true,
526
- },
527
- 'cwspr-item-id-3': {
528
- seen: false, // Discard
529
- accepted: false,
530
- discarded: true,
531
- },
532
- },
533
- };
534
- await autoTriggerInlineCompletionWithReferences();
535
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
536
- // Send session results for closed first session
537
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
538
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
539
- suggestions: [
540
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
541
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
542
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
543
- ],
544
- suggestionsStates: new Map([
545
- ['cwspr-item-id-1', 'Reject'],
546
- ['cwspr-item-id-2', 'Discard'],
547
- ['cwspr-item-id-3', 'Discard'],
548
- ]),
549
- completionSessionResult: {
550
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
551
- 'cwspr-item-id-2': { seen: false, accepted: false, discarded: true },
552
- 'cwspr-item-id-3': { seen: false, accepted: false, discarded: true },
553
- },
554
- });
555
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
556
- });
557
- it('should send Discard User Decision when all suggestions have Discard state', async () => {
558
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
559
- const SESSION_RESULT_DATA = {
560
- sessionId: 'some-random-session-uuid-0',
561
- completionSessionResult: {
562
- 'cwspr-item-id-1': {
563
- seen: false, // Discard
564
- accepted: false,
565
- discarded: true,
566
- },
567
- 'cwspr-item-id-2': {
568
- seen: false, // Discard
569
- accepted: false,
570
- discarded: true,
571
- },
572
- 'cwspr-item-id-3': {
573
- seen: false, // Discard
574
- accepted: false,
575
- discarded: true,
576
- },
577
- },
578
- };
579
- await autoTriggerInlineCompletionWithReferences();
580
- ts_sinon_1.default.assert.notCalled(telemetryServiceSpy);
581
- // Send session results for closed first session
582
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
583
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
584
- suggestions: [
585
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
586
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
587
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
588
- ],
589
- suggestionsStates: new Map([
590
- ['cwspr-item-id-1', 'Discard'],
591
- ['cwspr-item-id-2', 'Discard'],
592
- ['cwspr-item-id-3', 'Discard'],
593
- ]),
594
- completionSessionResult: {
595
- 'cwspr-item-id-1': { seen: false, accepted: false, discarded: true },
596
- 'cwspr-item-id-2': { seen: false, accepted: false, discarded: true },
597
- 'cwspr-item-id-3': { seen: false, accepted: false, discarded: true },
598
- },
599
- });
600
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
601
- });
602
- it('should set codewhispererTimeSinceLastDocumentChange as difference between 2 any document changes', async () => {
603
- const typeSomething = async () => await features.doChangeTextDocument({
604
- textDocument: { uri: SOME_FILE.uri, version: 1 },
605
- contentChanges: [
606
- {
607
- range: { start: { line: 0, character: 0 }, end: { line: 0, character: 1 } },
608
- text: 'f',
609
- },
610
- ],
611
- });
612
- await autoTriggerInlineCompletionWithReferences();
613
- await typeSomething();
614
- clock.tick(1234);
615
- await typeSomething();
616
- clock.tick(5678);
617
- await typeSomething();
618
- await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
619
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
620
- completionSessionResult: {
621
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
622
- 'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
623
- 'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
624
- },
625
- suggestions: [
626
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
627
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
628
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
629
- ],
630
- suggestionsStates: new Map([
631
- ['cwspr-item-id-1', 'Reject'],
632
- ['cwspr-item-id-2', 'Reject'],
633
- ['cwspr-item-id-3', 'Reject'],
634
- ]),
635
- closeTime: clock.now,
636
- });
637
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 5678);
638
- });
639
- });
640
- describe('Case 3. Active session is closed by subsequent trigger', function () {
641
- it('should close ACTIVE session and emit Discard user trigger decision event on Manual trigger', async () => {
642
- setServiceResponse(DEFAULT_SUGGESTIONS, {
643
- ...EXPECTED_RESPONSE_CONTEXT,
644
- codewhispererSessionId: 'cwspr-session-id-1',
645
- });
646
- await autoTriggerInlineCompletionWithReferences();
647
- setServiceResponse(DEFAULT_SUGGESTIONS, {
648
- ...EXPECTED_RESPONSE_CONTEXT,
649
- codewhispererSessionId: 'cwspr-session-id-2',
650
- });
651
- await manualTriggerInlineCompletionWithReferences();
652
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
653
- state: 'DISCARD',
654
- codewhispererSessionId: 'cwspr-session-id-1',
655
- suggestions: [
656
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
657
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
658
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
659
- ],
660
- suggestionsStates: new Map([
661
- ['cwspr-item-id-1', 'Discard'],
662
- ['cwspr-item-id-2', 'Discard'],
663
- ['cwspr-item-id-3', 'Discard'],
664
- ]),
665
- responseContext: {
666
- requestId: 'cwspr-request-id',
667
- codewhispererSessionId: 'cwspr-session-id-1',
668
- },
669
- });
670
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
671
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
672
- codewhispererSessionId: 'cwspr-session-id-2',
673
- }, 0);
674
- });
675
- it('should close ACTIVE session and emit Discard user trigger decision event on Auto trigger', async () => {
676
- setServiceResponse(DEFAULT_SUGGESTIONS, {
677
- ...EXPECTED_RESPONSE_CONTEXT,
678
- codewhispererSessionId: 'cwspr-session-id-1',
679
- });
680
- await autoTriggerInlineCompletionWithReferences();
681
- setServiceResponse(DEFAULT_SUGGESTIONS, {
682
- ...EXPECTED_RESPONSE_CONTEXT,
683
- codewhispererSessionId: 'cwspr-session-id-2',
684
- });
685
- await autoTriggerInlineCompletionWithReferences();
686
- const expectedUserTriggerDecisionMetric = aUserTriggerDecision({
687
- state: 'DISCARD',
688
- codewhispererSessionId: 'cwspr-session-id-1',
689
- suggestions: [
690
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
691
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
692
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
693
- ],
694
- suggestionsStates: new Map([
695
- ['cwspr-item-id-1', 'Discard'],
696
- ['cwspr-item-id-2', 'Discard'],
697
- ['cwspr-item-id-3', 'Discard'],
698
- ]),
699
- responseContext: {
700
- requestId: 'cwspr-request-id',
701
- codewhispererSessionId: 'cwspr-session-id-1',
702
- },
703
- });
704
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, expectedUserTriggerDecisionMetric, 0);
705
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
706
- codewhispererSessionId: 'cwspr-session-id-2',
707
- }, 0);
708
- });
709
- it('should attach previous session trigger decision', async () => {
710
- setServiceResponse(DEFAULT_SUGGESTIONS, {
711
- ...EXPECTED_RESPONSE_CONTEXT,
712
- codewhispererSessionId: 'cwspr-session-id-1',
713
- });
714
- await autoTriggerInlineCompletionWithReferences();
715
- const firstSession = sessionManager.getCurrentSession();
716
- setServiceResponse(DEFAULT_SUGGESTIONS, {
717
- ...EXPECTED_RESPONSE_CONTEXT,
718
- codewhispererSessionId: 'cwspr-session-id-2',
719
- });
720
- await autoTriggerInlineCompletionWithReferences();
721
- setServiceResponse(DEFAULT_SUGGESTIONS, {
722
- ...EXPECTED_RESPONSE_CONTEXT,
723
- codewhispererSessionId: 'cwspr-session-id-3',
724
- });
725
- await autoTriggerInlineCompletionWithReferences();
726
- ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
727
- const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
728
- const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
729
- ts_sinon_1.default.assert.match(firstCallArgs, {
730
- id: 'some-random-session-uuid-0',
731
- document: {
732
- _uri: 'file:///test.cs',
733
- _languageId: 'csharp',
734
- _version: 1,
735
- _content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
736
- _lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
737
- },
738
- startTime: 1483228800000,
739
- closeTime: 1483228802000,
740
- state: 'DISCARD',
741
- codewhispererSessionId: 'cwspr-session-id-1',
742
- startPosition: { line: 2, character: 21 },
743
- suggestions: [
744
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
745
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
746
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
747
- ],
748
- suggestionsStates: {},
749
- responseContext: { requestId: 'cwspr-request-id', codewhispererSessionId: 'cwspr-session-id-1' },
750
- triggerType: 'AutoTrigger',
751
- autoTriggerType: 'SpecialCharacters',
752
- triggerCharacter: '(',
753
- classifierResult: 0.46733811481459187,
754
- classifierThreshold: 0.43,
755
- language: 'csharp',
756
- requestContext: {
757
- fileContext: {
758
- filename: 'file:///test.cs',
759
- programmingLanguage: { languageName: 'csharp' },
760
- leftFileContent: 'class HelloWorld\n{\n static void Main(',
761
- rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
762
- },
763
- maxResults: 1,
764
- },
765
- timeToFirstRecommendation: 2000,
766
- credentialStartUrl: 'teststarturl',
767
- reportedUserDecision: true,
768
- });
769
- ts_sinon_1.default.assert.match(secondCallArgs, aUserTriggerDecision({
770
- previousTriggerDecision: 'Discard',
771
- previousTriggerDecisionTime: 1483228802000,
772
- responseContext: {
773
- requestId: 'cwspr-request-id',
774
- codewhispererSessionId: 'cwspr-session-id-2',
775
- },
776
- id: 'some-random-session-uuid-1',
777
- startTime: 1483228802000,
778
- closeTime: 1483228804000,
779
- state: 'DISCARD',
780
- codewhispererSessionId: 'cwspr-session-id-2',
781
- suggestions: [
782
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
783
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
784
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
785
- ],
786
- suggestionsStates: new Map([
787
- ['cwspr-item-id-1', 'Discard'],
788
- ['cwspr-item-id-2', 'Discard'],
789
- ['cwspr-item-id-3', 'Discard'],
790
- ]),
791
- }));
792
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
793
- codewhispererSessionId: 'cwspr-session-id-3',
794
- }), 0);
795
- });
796
- it('should set correct values for past trigger result fields', async () => {
797
- setServiceResponse(DEFAULT_SUGGESTIONS, {
798
- ...EXPECTED_RESPONSE_CONTEXT,
799
- codewhispererSessionId: 'cwspr-session-id-1',
800
- });
801
- await autoTriggerInlineCompletionWithReferences();
802
- const firstSession = sessionManager.getCurrentSession();
803
- await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
804
- clock.tick(1234);
805
- setServiceResponse(DEFAULT_SUGGESTIONS, {
806
- ...EXPECTED_RESPONSE_CONTEXT,
807
- codewhispererSessionId: 'cwspr-session-id-2',
808
- });
809
- await autoTriggerInlineCompletionWithReferences();
810
- // Trigger 3rd session to close second one
811
- await autoTriggerInlineCompletionWithReferences();
812
- // For first session previous data does not exist
813
- ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
814
- const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
815
- const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
816
- ts_sinon_1.default.assert.match(firstCallArgs, aUserTriggerDecision({
817
- previousTriggerDecision: undefined,
818
- previousTriggerDecisionTime: undefined,
819
- responseContext: {
820
- requestId: 'cwspr-request-id',
821
- codewhispererSessionId: 'cwspr-session-id-1',
822
- },
823
- id: 'some-random-session-uuid-0',
824
- startTime: 1483228800000,
825
- closeTime: 1483228802000,
826
- state: 'CLOSED',
827
- codewhispererSessionId: 'cwspr-session-id-1',
828
- suggestions: [
829
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
830
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
831
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
832
- ],
833
- suggestionsStates: new Map([
834
- ['cwspr-item-id-1', 'Reject'],
835
- ['cwspr-item-id-2', 'Reject'],
836
- ['cwspr-item-id-3', 'Reject'],
837
- ]),
838
- completionSessionResult: {
839
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
840
- 'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
841
- 'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
842
- },
843
- }));
844
- ts_sinon_1.default.assert.match(secondCallArgs, {
845
- id: 'some-random-session-uuid-1',
846
- document: {
847
- _uri: 'file:///test.cs',
848
- _languageId: 'csharp',
849
- _version: 1,
850
- _content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
851
- _lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
852
- },
853
- startTime: 1483228803234,
854
- closeTime: 1483228805234,
855
- state: 'DISCARD',
856
- codewhispererSessionId: 'cwspr-session-id-2',
857
- startPosition: {
858
- line: 2,
859
- character: 21,
860
- },
861
- suggestions: [
862
- {
863
- itemId: 'cwspr-item-id-1',
864
- content: 'recommendation',
865
- insertText: 'recommendation',
866
- },
867
- {
868
- itemId: 'cwspr-item-id-2',
869
- content: 'recommendation',
870
- insertText: 'recommendation',
871
- },
872
- {
873
- itemId: 'cwspr-item-id-3',
874
- content: 'recommendation',
875
- insertText: 'recommendation',
876
- },
877
- ],
878
- suggestionsStates: {},
879
- responseContext: {
880
- requestId: 'cwspr-request-id',
881
- codewhispererSessionId: 'cwspr-session-id-2',
882
- },
883
- triggerType: 'AutoTrigger',
884
- autoTriggerType: 'SpecialCharacters',
885
- triggerCharacter: '(',
886
- classifierResult: 0.30173811481459184,
887
- classifierThreshold: 0.43,
888
- language: 'csharp',
889
- requestContext: {
890
- fileContext: {
891
- filename: 'file:///test.cs',
892
- programmingLanguage: {
893
- languageName: 'csharp',
894
- },
895
- leftFileContent: 'class HelloWorld\n{\n static void Main(',
896
- rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
897
- },
898
- maxResults: 1,
899
- },
900
- timeToFirstRecommendation: 2000,
901
- credentialStartUrl: 'teststarturl',
902
- previousTriggerDecision: 'Reject',
903
- previousTriggerDecisionTime: 1483228802000,
904
- reportedUserDecision: true,
905
- });
906
- });
907
- });
908
- describe('Case 4. Inflight session is closed by subsequent completion request', function () {
909
- it('should emit Discard user trigger decision event when REQUESTING session is closed before becoming ACTIVE', async () => {
910
- // Chain requests in a callbacks
911
- let concurrentCount = 0;
912
- let requests = [];
913
- service.generateSuggestions.callsFake(_request => {
914
- clock.tick(1000);
915
- let i = concurrentCount;
916
- if (concurrentCount < 2) {
917
- // Trigger second request before first one was resolved
918
- concurrentCount++;
919
- const req = autoTriggerInlineCompletionWithReferences();
920
- requests.push(req);
921
- clock.tick(10);
922
- }
923
- clock.tick(250);
924
- return Promise.resolve({
925
- suggestions: DEFAULT_SUGGESTIONS,
926
- responseContext: {
927
- ...EXPECTED_RESPONSE_CONTEXT,
928
- codewhispererSessionId: `cwspr-session-id-${i}`,
929
- },
930
- });
931
- });
932
- const result = [await autoTriggerInlineCompletionWithReferences(), ...(await Promise.all(requests))];
933
- assert.deepEqual(result, [
934
- EMPTY_RESULT,
935
- EMPTY_RESULT,
936
- { ...EXPECTED_RESULT, sessionId: 'some-random-session-uuid-2' },
937
- ]);
938
- // 3 sessions were created, each one closes previous one in REQUESTING state
939
- assert.equal(SESSION_IDS_LOG.length, 3);
940
- ts_sinon_1.default.assert.calledTwice(telemetryServiceSpy);
941
- const firstCallArgs = telemetryServiceSpy.getCall(0).args[0];
942
- const secondCallArgs = telemetryServiceSpy.getCall(1).args[0];
943
- ts_sinon_1.default.assert.match(firstCallArgs, aUserTriggerDecision({
944
- codewhispererSessionId: 'cwspr-session-id-0',
945
- state: 'DISCARD',
946
- suggestions: [
947
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
948
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
949
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
950
- ],
951
- suggestionsStates: new Map([
952
- ['cwspr-item-id-1', 'Discard'],
953
- ['cwspr-item-id-2', 'Discard'],
954
- ['cwspr-item-id-3', 'Discard'],
955
- ]),
956
- responseContext: {
957
- requestId: 'cwspr-request-id',
958
- codewhispererSessionId: 'cwspr-session-id-0',
959
- },
960
- timeToFirstRecommendation: 1260,
961
- closeTime: 1483228801000,
962
- }));
963
- ts_sinon_1.default.assert.match(secondCallArgs, {
964
- id: 'some-random-session-uuid-1',
965
- document: {
966
- _uri: 'file:///test.cs',
967
- _languageId: 'csharp',
968
- _version: 1,
969
- _content: 'class HelloWorld\n{\n static void Main()\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
970
- _lineOffsets: [0, 17, 19, 42, 48, 91, 97, 99],
971
- },
972
- startTime: 1483228801260,
973
- closeTime: 1483228802260,
974
- state: 'DISCARD',
975
- codewhispererSessionId: 'cwspr-session-id-1',
976
- startPosition: { line: 2, character: 21 },
977
- suggestions: [
978
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
979
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
980
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
981
- ],
982
- suggestionsStates: {},
983
- responseContext: { requestId: 'cwspr-request-id', codewhispererSessionId: 'cwspr-session-id-1' },
984
- triggerType: 'AutoTrigger',
985
- autoTriggerType: 'SpecialCharacters',
986
- triggerCharacter: '(',
987
- classifierResult: 0.46733811481459187,
988
- classifierThreshold: 0.43,
989
- language: 'csharp',
990
- requestContext: {
991
- fileContext: {
992
- filename: 'file:///test.cs',
993
- programmingLanguage: { languageName: 'csharp' },
994
- leftFileContent: 'class HelloWorld\n{\n static void Main(',
995
- rightFileContent: ')\n {\n Console.WriteLine("Hello World!");\n }\n}\n',
996
- },
997
- maxResults: 1,
998
- },
999
- timeToFirstRecommendation: 1260,
1000
- credentialStartUrl: 'teststarturl',
1001
- previousTriggerDecision: 'Discard',
1002
- previousTriggerDecisionTime: 1483228801000,
1003
- reportedUserDecision: true,
1004
- });
1005
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
1006
- codewhispererSessionId: 'cwspr-session-id-2',
1007
- });
1008
- telemetryServiceSpy.resetHistory();
1009
- const activeSession = sessionManager.getActiveSession();
1010
- assert.equal(activeSession?.id, SESSION_IDS_LOG[2]);
1011
- await features.doLogInlineCompletionSessionResults({
1012
- ...DEFAULT_SESSION_RESULT_DATA,
1013
- sessionId: SESSION_IDS_LOG[2],
1014
- });
1015
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
1016
- id: 'some-random-session-uuid-2',
1017
- startTime: 1483228802520,
1018
- closeTime: 1483228803770,
1019
- codewhispererSessionId: 'cwspr-session-id-2',
1020
- suggestions: [
1021
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
1022
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
1023
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
1024
- ],
1025
- suggestionsStates: new Map([
1026
- ['cwspr-item-id-1', 'Reject'],
1027
- ['cwspr-item-id-2', 'Reject'],
1028
- ['cwspr-item-id-3', 'Reject'],
1029
- ]),
1030
- previousTriggerDecision: 'Discard',
1031
- previousTriggerDecisionTime: 1483228802260,
1032
- timeToFirstRecommendation: 1250,
1033
- completionSessionResult: {
1034
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
1035
- 'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
1036
- 'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
1037
- },
1038
- responseContext: {
1039
- requestId: 'cwspr-request-id',
1040
- codewhispererSessionId: 'cwspr-session-id-2',
1041
- },
1042
- }), 0);
1043
- });
1044
- });
1045
- it('should report user trigger decision only once for a session', async () => {
1046
- setServiceResponse(DEFAULT_SUGGESTIONS, {
1047
- ...EXPECTED_RESPONSE_CONTEXT,
1048
- codewhispererSessionId: 'cwspr-session-id-1',
1049
- });
1050
- await autoTriggerInlineCompletionWithReferences();
1051
- const firstSession = sessionManager.getCurrentSession();
1052
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy);
1053
- // Record session results and close the session
1054
- await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
1055
- ts_sinon_1.default.assert.calledWithMatch(telemetryServiceSpy, aUserTriggerDecision({
1056
- codewhispererSessionId: 'cwspr-session-id-1',
1057
- suggestions: [
1058
- { itemId: 'cwspr-item-id-1', content: 'recommendation', insertText: 'recommendation' },
1059
- { itemId: 'cwspr-item-id-2', content: 'recommendation', insertText: 'recommendation' },
1060
- { itemId: 'cwspr-item-id-3', content: 'recommendation', insertText: 'recommendation' },
1061
- ],
1062
- suggestionsStates: new Map([
1063
- ['cwspr-item-id-1', 'Reject'],
1064
- ['cwspr-item-id-2', 'Reject'],
1065
- ['cwspr-item-id-3', 'Reject'],
1066
- ]),
1067
- responseContext: {
1068
- requestId: 'cwspr-request-id',
1069
- codewhispererSessionId: 'cwspr-session-id-1',
1070
- },
1071
- completionSessionResult: {
1072
- 'cwspr-item-id-1': { seen: true, accepted: false, discarded: false },
1073
- 'cwspr-item-id-2': { seen: true, accepted: false, discarded: false },
1074
- 'cwspr-item-id-3': { seen: true, accepted: false, discarded: false },
1075
- },
1076
- }), 0);
1077
- assert.equal(firstSession?.state, 'CLOSED');
1078
- telemetryServiceSpy.resetHistory();
1079
- // Triggering new completion request creates new session
1080
- // and should not emit telemetry for previous session, which was closed earlier
1081
- setServiceResponse(DEFAULT_SUGGESTIONS, {
1082
- ...EXPECTED_RESPONSE_CONTEXT,
1083
- codewhispererSessionId: 'cwspr-session-id-2',
1084
- });
1085
- await autoTriggerInlineCompletionWithReferences();
1086
- // Or attempt to record data
1087
- await features.doLogInlineCompletionSessionResults(DEFAULT_SESSION_RESULT_DATA);
1088
- ts_sinon_1.default.assert.neverCalledWithMatch(telemetryServiceSpy, {
1089
- codewhispererSessionId: 'cwspr-session-id-1',
1090
- }, 0);
1091
- });
1092
- });
1093
- describe('User Decision Telemetry', () => {
1094
- const HELLO_WORLD_IN_CSHARP = `class HelloWorld
1095
- {
1096
- static void Main()
1097
- {
1098
- Console.WriteLine("Hello World!");
1099
- }
1100
- }
1101
- `;
1102
- const AUTO_TRIGGER_POSITION = { line: 2, character: 21 };
1103
- const SOME_FILE = vscode_languageserver_textdocument_1.TextDocument.create('file:///test.cs', 'csharp', 1, HELLO_WORLD_IN_CSHARP);
1104
- const SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID = vscode_languageserver_textdocument_1.TextDocument.create(
1105
- // Use unsupported extension, so that we can test that we get a match based on the LanguageId
1106
- 'file:///test.seesharp', 'CSharp', 1, HELLO_WORLD_IN_CSHARP);
1107
- const REFERENCE = [
1108
- {
1109
- licenseName: 'test license 1',
1110
- repository: 'test repository 1',
1111
- url: 'test url 1',
1112
- recommendationContentSpan: { start: 0, end: 1 },
1113
- },
1114
- {
1115
- licenseName: 'test license 2',
1116
- repository: 'test repository 2',
1117
- url: 'test url 2',
1118
- recommendationContentSpan: { start: 0, end: 1 },
1119
- },
1120
- {
1121
- licenseName: 'test license 1',
1122
- repository: 'test repository 3',
1123
- url: 'test url 3',
1124
- recommendationContentSpan: { start: 0, end: 1 },
1125
- },
1126
- ];
1127
- const DEFAULT_SUGGESTIONS = [
1128
- { itemId: 'cwspr-item-id-1', content: 'recommendation' },
1129
- { itemId: 'cwspr-item-id-2', content: 'recommendation' },
1130
- { itemId: 'cwspr-item-id-3', content: 'recommendation' },
1131
- ];
1132
- const EXPECTED_RESPONSE_CONTEXT = {
1133
- requestId: 'cwspr-request-id',
1134
- codewhispererSessionId: 'cwspr-session-id',
1135
- };
1136
- let features;
1137
- let server;
1138
- // TODO move more of the service code out of the stub and into the testable realm
1139
- // See: https://aws.amazon.com/blogs/developer/mocking-modular-aws-sdk-for-javascript-v3-in-unit-tests/
1140
- // for examples on how to mock just the SDK client
1141
- let service;
1142
- const setServiceResponse = (suggestions, responseContext, time = 2000) => {
1143
- service.generateSuggestions.callsFake(_request => {
1144
- clock.tick(time);
1145
- return Promise.resolve({
1146
- suggestions,
1147
- responseContext,
1148
- });
1149
- });
1150
- };
1151
- const autoTriggerInlineCompletionWithReferences = async () => await features.doInlineCompletionWithReferences({
1152
- textDocument: { uri: SOME_FILE.uri },
1153
- position: AUTO_TRIGGER_POSITION,
1154
- context: { triggerKind: server_interface_1.InlineCompletionTriggerKind.Automatic },
1155
- }, server_interface_1.CancellationToken.None);
1156
- beforeEach(async () => {
1157
- // Set up the server with a mock service, returning predefined recommendations
1158
- service = (0, ts_sinon_1.stubInterface)();
1159
- setServiceResponse(DEFAULT_SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
1160
- server = (0, codeWhispererServer_1.CodewhispererServerFactory)(_auth => service);
1161
- // Initialize the features, but don't start server yet
1162
- features = new testing_1.TestFeatures();
1163
- features.lsp.workspace.getConfiguration.returns(Promise.resolve({ includeSuggestionsWithCodeReferences: true }));
1164
- // Return credentialsStartUrl value
1165
- features.credentialsProvider.getConnectionMetadata.returns({
1166
- sso: {
1167
- startUrl: 'teststarturl',
1168
- },
1169
- });
1170
- // Start the server and open a document
1171
- await features.start(server);
1172
- features.openDocument(SOME_FILE).openDocument(SOME_FILE_WITH_ALT_CASED_LANGUAGE_ID);
1173
- });
1174
- const aUserDecision = (override = {}) => {
1175
- return {
1176
- name: 'codewhisperer_userDecision',
1177
- data: {
1178
- codewhispererRequestId: 'cwspr-request-id',
1179
- codewhispererSessionId: 'cwspr-session-id',
1180
- credentialStartUrl: 'teststarturl',
1181
- codewhispererCompletionType: 'Line',
1182
- codewhispererLanguage: 'csharp',
1183
- codewhispererTriggerType: 'AutoTrigger',
1184
- codewhispererSuggestionIndex: 0,
1185
- codewhispererSuggestionState: 'Discard',
1186
- codewhispererSuggestionReferences: ['MIT'],
1187
- codewhispererSuggestionReferenceCount: 1,
1188
- ...override,
1189
- },
1190
- };
1191
- };
1192
- it('should send correct empty reference when suggestion does not have any', async () => {
1193
- const SESSION_RESULT_DATA = {
1194
- sessionId: 'some-random-session-uuid-0',
1195
- completionSessionResult: {
1196
- 'cwspr-item-id-1': {
1197
- accepted: true, // 'Accept'
1198
- seen: true,
1199
- discarded: false,
1200
- },
1201
- },
1202
- };
1203
- const SUGGESTIONS = [
1204
- {
1205
- itemId: 'cwspr-item-id-1',
1206
- content: 'recommendation with reference',
1207
- references: undefined,
1208
- },
1209
- ];
1210
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
1211
- await autoTriggerInlineCompletionWithReferences();
1212
- ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
1213
- name: 'codewhisperer_userDecision',
1214
- });
1215
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
1216
- const expectedUserDecisionMetric = aUserDecision({
1217
- codewhispererSuggestionIndex: 0,
1218
- codewhispererSuggestionState: 'Accept',
1219
- codewhispererSuggestionReferences: [],
1220
- codewhispererSuggestionReferenceCount: 0,
1221
- });
1222
- ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
1223
- });
1224
- it('should send correct reference when suggestion has any', async () => {
1225
- const SESSION_RESULT_DATA = {
1226
- sessionId: 'some-random-session-uuid-0',
1227
- completionSessionResult: {
1228
- 'cwspr-item-id-1-y': {
1229
- accepted: true, // 'Accept'
1230
- seen: true,
1231
- discarded: false,
1232
- },
1233
- },
1234
- };
1235
- const SUGGESTIONS = [
1236
- {
1237
- itemId: 'cwspr-item-id-1-y',
1238
- content: 'recommendation with reference',
1239
- references: [REFERENCE[0]],
1240
- },
1241
- ];
1242
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
1243
- await autoTriggerInlineCompletionWithReferences();
1244
- ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
1245
- name: 'codewhisperer_userDecision',
1246
- });
1247
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
1248
- const expectedUserDecisionMetric = aUserDecision({
1249
- codewhispererSuggestionIndex: 0,
1250
- codewhispererSuggestionState: 'Accept',
1251
- codewhispererSuggestionReferences: ['test license 1'],
1252
- codewhispererSuggestionReferenceCount: 1,
1253
- });
1254
- ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
1255
- });
1256
- it('should send unique licenses when suggestion has any that overlaps', async () => {
1257
- const SESSION_RESULT_DATA = {
1258
- sessionId: 'some-random-session-uuid-0',
1259
- completionSessionResult: {
1260
- 'cwspr-item-id-1': {
1261
- accepted: true, // 'Accept'
1262
- seen: true,
1263
- discarded: false,
1264
- },
1265
- },
1266
- };
1267
- const SUGGESTIONS = [
1268
- {
1269
- itemId: 'cwspr-item-id-1',
1270
- content: 'recommendation with reference',
1271
- references: REFERENCE,
1272
- },
1273
- ];
1274
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
1275
- await autoTriggerInlineCompletionWithReferences();
1276
- ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
1277
- name: 'codewhisperer_userDecision',
1278
- });
1279
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
1280
- const expectedUserDecisionMetric = aUserDecision({
1281
- codewhispererSuggestionIndex: 0,
1282
- codewhispererSuggestionState: 'Accept',
1283
- codewhispererSuggestionReferences: ['test license 1', 'test license 2'],
1284
- codewhispererSuggestionReferenceCount: 3,
1285
- });
1286
- ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, expectedUserDecisionMetric);
1287
- });
1288
- it('should send multiple metrics on all suggestions returned', async () => {
1289
- const SESSION_RESULT_DATA = {
1290
- sessionId: 'some-random-session-uuid-0',
1291
- completionSessionResult: {
1292
- 'cwspr-item-id-1': {
1293
- accepted: true, // 'Accept'
1294
- seen: true,
1295
- discarded: false,
1296
- },
1297
- 'cwspr-item-id-2': {
1298
- accepted: false, // Discard
1299
- seen: false,
1300
- discarded: true,
1301
- },
1302
- 'cwspr-item-id-3': {
1303
- accepted: false, // 'Unseen'
1304
- seen: false,
1305
- discarded: false,
1306
- },
1307
- },
1308
- };
1309
- const SUGGESTIONS = [
1310
- {
1311
- itemId: 'cwspr-item-id-1',
1312
- content: 'recommendation with reference',
1313
- references: REFERENCE,
1314
- },
1315
- {
1316
- itemId: 'cwspr-item-id-2',
1317
- content: 'recommendation with reference',
1318
- references: REFERENCE,
1319
- },
1320
- {
1321
- itemId: 'cwspr-item-id-3',
1322
- content: 'recommendation with reference',
1323
- references: REFERENCE,
1324
- },
1325
- ];
1326
- setServiceResponse(SUGGESTIONS, EXPECTED_RESPONSE_CONTEXT);
1327
- await autoTriggerInlineCompletionWithReferences();
1328
- ts_sinon_1.default.assert.neverCalledWithMatch(features.telemetry.emitMetric, {
1329
- name: 'codewhisperer_userDecision',
1330
- });
1331
- await features.doLogInlineCompletionSessionResults(SESSION_RESULT_DATA);
1332
- const expectedStates = ['Accept', 'Discard', 'Unseen'];
1333
- const expectedUserDecisionMetrics = new Array();
1334
- SUGGESTIONS.forEach((_, i) => {
1335
- expectedUserDecisionMetrics.push(aUserDecision({
1336
- codewhispererSuggestionIndex: i,
1337
- codewhispererSuggestionState: expectedStates[i],
1338
- codewhispererSuggestionReferences: ['test license 1', 'test license 2'],
1339
- codewhispererSuggestionReferenceCount: 3,
1340
- }));
1341
- });
1342
- expectedUserDecisionMetrics.forEach(metric => {
1343
- ts_sinon_1.default.assert.calledWithMatch(features.telemetry.emitMetric, metric);
1344
- });
1345
- });
1346
- });
1347
- });
1348
- //# sourceMappingURL=userTriggerDecision.test.js.map