@aws/lsp-codewhisperer 0.0.9 → 0.0.11

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 (323) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/node_modules/@amzn/codewhisperer-streaming/package.json +4 -4
  3. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js +12 -25
  4. package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js.map +1 -1
  5. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js +1 -2
  6. package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js.map +1 -1
  7. package/node_modules/@aws/lsp-fqn/package.json +1 -1
  8. package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +1 -1
  9. package/out/client/streamingClient/codewhispererStreamingClient.d.ts +5 -0
  10. package/out/client/streamingClient/codewhispererStreamingClient.js +25 -0
  11. package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -0
  12. package/out/client/token/bearer-token-service.json +55 -2
  13. package/out/index.d.ts +1 -0
  14. package/out/index.js +1 -0
  15. package/out/index.js.map +1 -1
  16. package/out/language-server/chat/chatController.js +104 -108
  17. package/out/language-server/chat/chatController.js.map +1 -1
  18. package/out/language-server/chat/chatController.test.js +16 -1
  19. package/out/language-server/chat/chatController.test.js.map +1 -1
  20. package/out/language-server/chat/chatEventParser.js +28 -34
  21. package/out/language-server/chat/chatEventParser.js.map +1 -1
  22. package/out/language-server/chat/chatSessionManagementService.js +22 -36
  23. package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
  24. package/out/language-server/chat/chatSessionService.js +24 -37
  25. package/out/language-server/chat/chatSessionService.js.map +1 -1
  26. package/out/language-server/chat/constants.d.ts +2 -0
  27. package/out/language-server/chat/constants.js +32 -0
  28. package/out/language-server/chat/constants.js.map +1 -0
  29. package/out/language-server/chat/contexts/documentContext.js +11 -24
  30. package/out/language-server/chat/contexts/documentContext.js.map +1 -1
  31. package/out/language-server/chat/contexts/documentFqnExtractor.js +67 -78
  32. package/out/language-server/chat/contexts/documentFqnExtractor.js.map +1 -1
  33. package/out/language-server/chat/contexts/triggerContext.js +32 -44
  34. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  35. package/out/language-server/chat/quickActions.d.ts +0 -1
  36. package/out/language-server/chat/quickActions.js +1 -28
  37. package/out/language-server/chat/quickActions.js.map +1 -1
  38. package/out/language-server/chat/telemetry/chatTelemetryController.js +114 -126
  39. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  40. package/out/language-server/chat/utils.d.ts +6 -0
  41. package/out/language-server/chat/utils.js +60 -0
  42. package/out/language-server/chat/utils.js.map +1 -0
  43. package/out/language-server/codeWhispererService.js +13 -11
  44. package/out/language-server/codeWhispererService.js.map +1 -1
  45. package/out/language-server/constants.d.ts +3 -0
  46. package/out/language-server/constants.js +7 -0
  47. package/out/language-server/constants.js.map +1 -0
  48. package/out/language-server/dependencyGraph/csharpDependencyGraph.js +2 -2
  49. package/out/language-server/dependencyGraph/csharpDependencyGraph.js.map +1 -1
  50. package/out/language-server/dependencyGraph/dependencyGraph.js +12 -9
  51. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
  52. package/out/language-server/dependencyGraph/gitIgnoreFilter.js +1 -0
  53. package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +1 -1
  54. package/out/language-server/netTransform/artifactManager.d.ts +29 -0
  55. package/out/language-server/netTransform/artifactManager.js +191 -0
  56. package/out/language-server/netTransform/artifactManager.js.map +1 -0
  57. package/out/language-server/netTransform/converter.d.ts +9 -0
  58. package/out/language-server/netTransform/converter.js +108 -0
  59. package/out/language-server/netTransform/converter.js.map +1 -0
  60. package/out/language-server/netTransform/metrics.d.ts +17 -0
  61. package/out/language-server/netTransform/metrics.js +222 -0
  62. package/out/language-server/netTransform/metrics.js.map +1 -0
  63. package/out/language-server/netTransform/models.d.ts +84 -0
  64. package/out/language-server/netTransform/models.js +12 -0
  65. package/out/language-server/netTransform/models.js.map +1 -0
  66. package/out/language-server/netTransform/resources/SupportedProjects.d.ts +2 -0
  67. package/out/language-server/netTransform/resources/SupportedProjects.js +26 -0
  68. package/out/language-server/netTransform/resources/SupportedProjects.js.map +1 -0
  69. package/out/language-server/netTransform/tests/converter.test.d.ts +1 -0
  70. package/out/language-server/netTransform/tests/converter.test.js +265 -0
  71. package/out/language-server/netTransform/tests/converter.test.js.map +1 -0
  72. package/out/language-server/netTransform/tests/mockData.d.ts +21 -0
  73. package/out/language-server/netTransform/tests/mockData.js +60 -0
  74. package/out/language-server/netTransform/tests/mockData.js.map +1 -0
  75. package/out/language-server/netTransform/tests/transformHandler.test.d.ts +1 -0
  76. package/out/language-server/netTransform/tests/transformHandler.test.js +242 -0
  77. package/out/language-server/netTransform/tests/transformHandler.test.js.map +1 -0
  78. package/out/language-server/netTransform/tests/validation.test.d.ts +1 -0
  79. package/out/language-server/netTransform/tests/validation.test.js +80 -0
  80. package/out/language-server/netTransform/tests/validation.test.js.map +1 -0
  81. package/out/language-server/netTransform/transformHandler.d.ts +27 -0
  82. package/out/language-server/netTransform/transformHandler.js +315 -0
  83. package/out/language-server/netTransform/transformHandler.js.map +1 -0
  84. package/out/language-server/netTransform/validation.d.ts +9 -0
  85. package/out/language-server/netTransform/validation.js +79 -0
  86. package/out/language-server/netTransform/validation.js.map +1 -0
  87. package/out/language-server/netTransformServer.d.ts +5 -6
  88. package/out/language-server/netTransformServer.js +149 -15
  89. package/out/language-server/netTransformServer.js.map +1 -1
  90. package/out/language-server/proxy-server.d.ts +1 -0
  91. package/out/language-server/proxy-server.js +16 -1
  92. package/out/language-server/proxy-server.js.map +1 -1
  93. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +10 -6
  94. package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
  95. package/out/language-server/securityScan/securityScanHandler.js +4 -0
  96. package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
  97. package/out/language-server/session/sessionManager.js +35 -15
  98. package/out/language-server/session/sessionManager.js.map +1 -1
  99. package/out/language-server/telemetry/codeDiffTracker.js +69 -80
  100. package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
  101. package/out/language-server/telemetry/codePercentage.js +3 -0
  102. package/out/language-server/telemetry/codePercentage.js.map +1 -1
  103. package/out/language-server/telemetry/metric.js +8 -21
  104. package/out/language-server/telemetry/metric.js.map +1 -1
  105. package/out/language-server/telemetry/types.d.ts +38 -0
  106. package/out/language-server/telemetry/types.js.map +1 -1
  107. package/out/language-server/utils.d.ts +2 -5
  108. package/out/language-server/utils.js +25 -49
  109. package/out/language-server/utils.js.map +1 -1
  110. package/package.json +5 -2
  111. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/HISTORY.md +0 -395
  112. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/LICENSE +0 -201
  113. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/README.md +0 -530
  114. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js +0 -288
  115. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js.map +0 -1
  116. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js +0 -2
  117. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js.map +0 -1
  118. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js +0 -1737
  119. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js.map +0 -1
  120. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js +0 -3
  121. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +0 -24
  122. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.map +0 -1
  123. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/package.json +0 -57
  124. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Pool.js +0 -476
  125. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Promise.js +0 -293
  126. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/WorkerHandler.js +0 -547
  127. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/debug-port-allocator.js +0 -28
  128. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/environment.js +0 -30
  129. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/generated/embeddedWorker.js +0 -6
  130. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/header.js +0 -24
  131. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/index.js +0 -60
  132. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/requireFoolWebpack.js +0 -8
  133. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/transfer.js +0 -12
  134. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/types.js +0 -46
  135. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/validateOptions.js +0 -51
  136. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/worker.js +0 -256
  137. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Pool.d.ts +0 -130
  138. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Promise.d.ts +0 -125
  139. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/WorkerHandler.d.ts +0 -89
  140. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/debug-port-allocator.d.ts +0 -8
  141. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/environment.d.ts +0 -4
  142. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/generated/embeddedWorker.d.ts +0 -2
  143. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/index.d.ts +0 -43
  144. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/transfer.d.ts +0 -19
  145. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/types.d.ts +0 -99
  146. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/validateOptions.d.ts +0 -4
  147. package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/worker.d.ts +0 -8
  148. package/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +0 -201
  149. package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +0 -10
  150. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -39
  151. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -34
  152. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +0 -18
  153. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +0 -18
  154. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -59
  155. package/node_modules/@aws-sdk/middleware-user-agent/LICENSE +0 -201
  156. package/node_modules/@aws-sdk/middleware-user-agent/README.md +0 -4
  157. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +0 -10
  158. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +0 -10
  159. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -5
  160. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +0 -79
  161. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +0 -6
  162. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +0 -7
  163. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
  164. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +0 -72
  165. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +0 -31
  166. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +0 -7
  167. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +0 -2
  168. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +0 -17
  169. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +0 -7
  170. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +0 -2
  171. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +0 -20
  172. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +0 -17
  173. package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -61
  174. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  175. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  176. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -41
  177. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  178. package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
  179. package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
  180. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -52
  181. package/node_modules/@smithy/eventstream-serde-config-resolver/LICENSE +0 -201
  182. package/node_modules/@smithy/eventstream-serde-config-resolver/README.md +0 -10
  183. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/EventStreamSerdeConfig.js +0 -1
  184. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +0 -37
  185. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js +0 -4
  186. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +0 -1
  187. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/EventStreamSerdeConfig.d.ts +0 -24
  188. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/index.d.ts +0 -4
  189. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/EventStreamSerdeConfig.d.ts +0 -24
  190. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/index.d.ts +0 -4
  191. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +0 -61
  192. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  193. package/node_modules/@smithy/util-utf8/README.md +0 -4
  194. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  195. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  196. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  197. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  198. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  199. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  200. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  201. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  202. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  203. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  204. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  205. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  206. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
  207. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
  208. package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
  209. package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
  210. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
  211. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
  212. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
  213. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
  214. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
  215. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
  216. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
  217. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
  218. package/node_modules/@smithy/util-utf8/package.json +0 -66
  219. package/node_modules/bowser/CHANGELOG.md +0 -218
  220. package/node_modules/bowser/LICENSE +0 -39
  221. package/node_modules/bowser/README.md +0 -179
  222. package/node_modules/bowser/bundled.js +0 -1
  223. package/node_modules/bowser/es5.js +0 -1
  224. package/node_modules/bowser/index.d.ts +0 -250
  225. package/node_modules/bowser/package.json +0 -83
  226. package/node_modules/bowser/src/bowser.js +0 -77
  227. package/node_modules/bowser/src/constants.js +0 -116
  228. package/node_modules/bowser/src/parser-browsers.js +0 -700
  229. package/node_modules/bowser/src/parser-engines.js +0 -120
  230. package/node_modules/bowser/src/parser-os.js +0 -199
  231. package/node_modules/bowser/src/parser-platforms.js +0 -266
  232. package/node_modules/bowser/src/parser.js +0 -496
  233. package/node_modules/bowser/src/utils.js +0 -309
  234. package/node_modules/tslib/CopyrightNotice.txt +0 -15
  235. package/node_modules/tslib/LICENSE.txt +0 -12
  236. package/node_modules/tslib/README.md +0 -164
  237. package/node_modules/tslib/SECURITY.md +0 -41
  238. package/node_modules/tslib/modules/index.d.ts +0 -37
  239. package/node_modules/tslib/modules/index.js +0 -68
  240. package/node_modules/tslib/modules/package.json +0 -3
  241. package/node_modules/tslib/package.json +0 -47
  242. package/node_modules/tslib/tslib.d.ts +0 -453
  243. package/node_modules/tslib/tslib.es6.html +0 -1
  244. package/node_modules/tslib/tslib.es6.js +0 -374
  245. package/node_modules/tslib/tslib.es6.mjs +0 -373
  246. package/node_modules/tslib/tslib.html +0 -1
  247. package/node_modules/tslib/tslib.js +0 -424
  248. package/node_modules/uuid/CHANGELOG.md +0 -274
  249. package/node_modules/uuid/CONTRIBUTING.md +0 -18
  250. package/node_modules/uuid/LICENSE.md +0 -9
  251. package/node_modules/uuid/README.md +0 -466
  252. package/node_modules/uuid/dist/bin/uuid +0 -2
  253. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
  254. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
  255. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
  256. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
  257. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
  258. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
  259. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
  260. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
  261. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
  262. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
  263. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
  264. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
  265. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
  266. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
  267. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
  268. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
  269. package/node_modules/uuid/dist/esm-browser/index.js +0 -9
  270. package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  271. package/node_modules/uuid/dist/esm-browser/native.js +0 -4
  272. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  273. package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  274. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  275. package/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  276. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  277. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  278. package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  279. package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  280. package/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  281. package/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  282. package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  283. package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  284. package/node_modules/uuid/dist/esm-browser/version.js +0 -11
  285. package/node_modules/uuid/dist/esm-node/index.js +0 -9
  286. package/node_modules/uuid/dist/esm-node/md5.js +0 -13
  287. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  288. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  289. package/node_modules/uuid/dist/esm-node/parse.js +0 -35
  290. package/node_modules/uuid/dist/esm-node/regex.js +0 -1
  291. package/node_modules/uuid/dist/esm-node/rng.js +0 -12
  292. package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  293. package/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  294. package/node_modules/uuid/dist/esm-node/v1.js +0 -95
  295. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  296. package/node_modules/uuid/dist/esm-node/v35.js +0 -66
  297. package/node_modules/uuid/dist/esm-node/v4.js +0 -29
  298. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  299. package/node_modules/uuid/dist/esm-node/validate.js +0 -7
  300. package/node_modules/uuid/dist/esm-node/version.js +0 -11
  301. package/node_modules/uuid/dist/index.js +0 -79
  302. package/node_modules/uuid/dist/md5-browser.js +0 -223
  303. package/node_modules/uuid/dist/md5.js +0 -23
  304. package/node_modules/uuid/dist/native-browser.js +0 -11
  305. package/node_modules/uuid/dist/native.js +0 -15
  306. package/node_modules/uuid/dist/nil.js +0 -8
  307. package/node_modules/uuid/dist/parse.js +0 -45
  308. package/node_modules/uuid/dist/regex.js +0 -8
  309. package/node_modules/uuid/dist/rng-browser.js +0 -25
  310. package/node_modules/uuid/dist/rng.js +0 -24
  311. package/node_modules/uuid/dist/sha1-browser.js +0 -104
  312. package/node_modules/uuid/dist/sha1.js +0 -23
  313. package/node_modules/uuid/dist/stringify.js +0 -44
  314. package/node_modules/uuid/dist/uuid-bin.js +0 -85
  315. package/node_modules/uuid/dist/v1.js +0 -107
  316. package/node_modules/uuid/dist/v3.js +0 -16
  317. package/node_modules/uuid/dist/v35.js +0 -80
  318. package/node_modules/uuid/dist/v4.js +0 -43
  319. package/node_modules/uuid/dist/v5.js +0 -16
  320. package/node_modules/uuid/dist/validate.js +0 -17
  321. package/node_modules/uuid/dist/version.js +0 -21
  322. package/node_modules/uuid/package.json +0 -135
  323. package/node_modules/uuid/wrapper.mjs +0 -10
@@ -0,0 +1,222 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emitTransformationJobArtifactsDownloadedFailure = exports.emitTransformationJobArtifactsDownloadedTelemetry = exports.emitTransformationPlanReceivedFailure = exports.emitTransformationPlanReceivedTelemetry = exports.emitTransformationJobPolledForPlanFailure = exports.emitTransformationJobPolledForPlanTelemetry = exports.emitTransformationJobPolledFailure = exports.emitTransformationJobPolledTelemetry = exports.emitTransformationJobCancelledFailure = exports.emitTransformationJobCancelledTelemetry = exports.emitTransformationJobReceivedFailure = exports.emitTransformationJobReceivedTelemetry = exports.emitTransformationJobStartedFailure = exports.emitTransformationJobStartedTelemetry = exports.CODETRANSFORM_CATEGORY = void 0;
4
+ const utils_1 = require("../utils");
5
+ exports.CODETRANSFORM_CATEGORY = 'codeTransform';
6
+ const emitTransformationJobStartedTelemetry = (telemetry, response) => {
7
+ const data = {
8
+ category: exports.CODETRANSFORM_CATEGORY,
9
+ transformationJobId: response.TransformationJobId,
10
+ uploadId: response.UploadId,
11
+ error: response.Error,
12
+ };
13
+ telemetry.emitMetric({
14
+ name: 'codeTransform_jobIsStartedByUser',
15
+ result: 'Succeeded',
16
+ data: (0, utils_1.flattenMetric)(data),
17
+ });
18
+ };
19
+ exports.emitTransformationJobStartedTelemetry = emitTransformationJobStartedTelemetry;
20
+ const emitTransformationJobStartedFailure = (telemetry, request, error) => {
21
+ try {
22
+ const data = {
23
+ category: exports.CODETRANSFORM_CATEGORY,
24
+ programLanguage: request.ProgramLanguage,
25
+ selectedProjectPath: request.SelectedProjectPath,
26
+ targetFramework: request.TargetFramework,
27
+ };
28
+ telemetry.emitMetric({
29
+ name: 'codeTransform_jobIsStartedByUser',
30
+ result: 'Failed',
31
+ errorData: {
32
+ reason: error.message || 'UnknownError',
33
+ },
34
+ });
35
+ }
36
+ catch (e) { }
37
+ };
38
+ exports.emitTransformationJobStartedFailure = emitTransformationJobStartedFailure;
39
+ const emitTransformationJobReceivedTelemetry = (telemetry, response) => {
40
+ const data = {
41
+ category: exports.CODETRANSFORM_CATEGORY,
42
+ transformationJobId: response.TransformationJob?.jobId,
43
+ transformationJobStatus: response.TransformationJob?.status,
44
+ creationTime: response.TransformationJob?.creationTime,
45
+ startExecutionTime: response.TransformationJob?.startExecutionTime,
46
+ endExecutionTime: response.TransformationJob?.endExecutionTime,
47
+ reason: response.TransformationJob?.reason,
48
+ transformationSpec: response.TransformationJob?.transformationSpec,
49
+ };
50
+ telemetry.emitMetric({
51
+ name: 'codeTransform_jobIsReceivedByUser',
52
+ result: 'Succeeded',
53
+ data: (0, utils_1.flattenMetric)(data),
54
+ });
55
+ };
56
+ exports.emitTransformationJobReceivedTelemetry = emitTransformationJobReceivedTelemetry;
57
+ const emitTransformationJobReceivedFailure = (telemetry, request, error) => {
58
+ const data = {
59
+ category: exports.CODETRANSFORM_CATEGORY,
60
+ transformationJobId: request.TransformationJobId,
61
+ };
62
+ telemetry.emitMetric({
63
+ name: 'codeTransform_jobIsReceivedByUser',
64
+ result: 'Failed',
65
+ data,
66
+ errorData: {
67
+ reason: error.message || 'UnknownError',
68
+ },
69
+ });
70
+ };
71
+ exports.emitTransformationJobReceivedFailure = emitTransformationJobReceivedFailure;
72
+ const emitTransformationJobCancelledTelemetry = (telemetry, response, jobId) => {
73
+ const data = {
74
+ category: exports.CODETRANSFORM_CATEGORY,
75
+ transformationJobId: jobId,
76
+ cancellationJobStatus: response.TransformationJobStatus,
77
+ };
78
+ telemetry.emitMetric({
79
+ name: 'codeTransform_jobIsCancelledByUser',
80
+ result: 'Succeeded',
81
+ data: (0, utils_1.flattenMetric)(data),
82
+ });
83
+ };
84
+ exports.emitTransformationJobCancelledTelemetry = emitTransformationJobCancelledTelemetry;
85
+ const emitTransformationJobCancelledFailure = (telemetry, request, error) => {
86
+ const data = {
87
+ category: exports.CODETRANSFORM_CATEGORY,
88
+ transformationJobId: request.TransformationJobId,
89
+ };
90
+ telemetry.emitMetric({
91
+ name: 'codeTransform_jobIsCancelledByUser',
92
+ result: 'Failed',
93
+ data,
94
+ errorData: {
95
+ reason: error.message || 'UnknownError',
96
+ },
97
+ });
98
+ };
99
+ exports.emitTransformationJobCancelledFailure = emitTransformationJobCancelledFailure;
100
+ const emitTransformationJobPolledTelemetry = (telemetry, response) => {
101
+ const data = {
102
+ category: exports.CODETRANSFORM_CATEGORY,
103
+ transformationJobId: response.TransformationJob?.jobId,
104
+ transformationJobStatus: response.TransformationJob?.status,
105
+ creationTime: response.TransformationJob?.creationTime,
106
+ startExecutionTime: response.TransformationJob?.startExecutionTime,
107
+ endExecutionTime: response.TransformationJob?.endExecutionTime,
108
+ reason: response.TransformationJob?.reason,
109
+ transformationSpec: response.TransformationJob?.transformationSpec,
110
+ };
111
+ telemetry.emitMetric({
112
+ name: 'codeTransform_jobIsPolledByUser',
113
+ result: 'Succeeded',
114
+ data: (0, utils_1.flattenMetric)(data),
115
+ });
116
+ };
117
+ exports.emitTransformationJobPolledTelemetry = emitTransformationJobPolledTelemetry;
118
+ const emitTransformationJobPolledFailure = (telemetry, request, error) => {
119
+ const data = {
120
+ category: exports.CODETRANSFORM_CATEGORY,
121
+ transformationJobId: request.TransformationJobId,
122
+ };
123
+ telemetry.emitMetric({
124
+ name: 'codeTransform_jobIsPolledByUser',
125
+ result: 'Failed',
126
+ data,
127
+ errorData: {
128
+ reason: error.message || 'UnknownError',
129
+ },
130
+ });
131
+ };
132
+ exports.emitTransformationJobPolledFailure = emitTransformationJobPolledFailure;
133
+ const emitTransformationJobPolledForPlanTelemetry = (telemetry, response) => {
134
+ const data = {
135
+ category: exports.CODETRANSFORM_CATEGORY,
136
+ transformationJobId: response.TransformationJob?.jobId,
137
+ transformationJobStatus: response.TransformationJob?.status,
138
+ creationTime: response.TransformationJob?.creationTime,
139
+ startExecutionTime: response.TransformationJob?.startExecutionTime,
140
+ endExecutionTime: response.TransformationJob?.endExecutionTime,
141
+ reason: response.TransformationJob?.reason,
142
+ transformationSpec: response.TransformationJob?.transformationSpec,
143
+ };
144
+ telemetry.emitMetric({
145
+ name: 'codeTransform_jobIsPolledForPlanByUser',
146
+ result: 'Succeeded',
147
+ data: (0, utils_1.flattenMetric)(data),
148
+ });
149
+ };
150
+ exports.emitTransformationJobPolledForPlanTelemetry = emitTransformationJobPolledForPlanTelemetry;
151
+ const emitTransformationJobPolledForPlanFailure = (telemetry, request, error) => {
152
+ const data = {
153
+ category: exports.CODETRANSFORM_CATEGORY,
154
+ transformationJobId: request.TransformationJobId,
155
+ };
156
+ telemetry.emitMetric({
157
+ name: 'codeTransform_jobIsPolledForPlanByUser',
158
+ result: 'Failed',
159
+ data,
160
+ errorData: {
161
+ reason: error.message || 'UnknownError',
162
+ },
163
+ });
164
+ };
165
+ exports.emitTransformationJobPolledForPlanFailure = emitTransformationJobPolledForPlanFailure;
166
+ const emitTransformationPlanReceivedTelemetry = (telemetry, response, jobId) => {
167
+ const data = {
168
+ category: exports.CODETRANSFORM_CATEGORY,
169
+ transformationJobId: jobId,
170
+ transformationSteps: response.TransformationPlan.transformationSteps,
171
+ };
172
+ telemetry.emitMetric({
173
+ name: 'codeTransform_planIsReceivedByUser',
174
+ result: 'Succeeded',
175
+ data: (0, utils_1.flattenMetric)(data),
176
+ });
177
+ };
178
+ exports.emitTransformationPlanReceivedTelemetry = emitTransformationPlanReceivedTelemetry;
179
+ const emitTransformationPlanReceivedFailure = (telemetry, request, error) => {
180
+ const data = {
181
+ category: exports.CODETRANSFORM_CATEGORY,
182
+ transformationJobId: request.TransformationJobId,
183
+ };
184
+ telemetry.emitMetric({
185
+ name: 'codeTransform_planIsReceivedByUser',
186
+ result: 'Failed',
187
+ data,
188
+ errorData: {
189
+ reason: error.message || 'UnknownError',
190
+ },
191
+ });
192
+ };
193
+ exports.emitTransformationPlanReceivedFailure = emitTransformationPlanReceivedFailure;
194
+ const emitTransformationJobArtifactsDownloadedTelemetry = (telemetry, response, jobId) => {
195
+ const data = {
196
+ category: exports.CODETRANSFORM_CATEGORY,
197
+ transformationJobId: jobId,
198
+ error: response.Error,
199
+ };
200
+ telemetry.emitMetric({
201
+ name: 'codeTransform_artifactsAreDownloadedByUser',
202
+ result: 'Succeeded',
203
+ data: (0, utils_1.flattenMetric)(data),
204
+ });
205
+ };
206
+ exports.emitTransformationJobArtifactsDownloadedTelemetry = emitTransformationJobArtifactsDownloadedTelemetry;
207
+ const emitTransformationJobArtifactsDownloadedFailure = (telemetry, request, error) => {
208
+ const data = {
209
+ category: exports.CODETRANSFORM_CATEGORY,
210
+ transformationJobId: request.TransformationJobId,
211
+ };
212
+ telemetry.emitMetric({
213
+ name: 'codeTransform_artifactsAreDownloadedByUser',
214
+ result: 'Failed',
215
+ data,
216
+ errorData: {
217
+ reason: error.message || 'UnknownError',
218
+ },
219
+ });
220
+ };
221
+ exports.emitTransformationJobArtifactsDownloadedFailure = emitTransformationJobArtifactsDownloadedFailure;
222
+ //# sourceMappingURL=metrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/language-server/netTransform/metrics.ts"],"names":[],"mappings":";;;AAsBA,oCAAwC;AAE3B,QAAA,sBAAsB,GAAG,eAAe,CAAA;AAE9C,MAAM,qCAAqC,GAAG,CAAC,SAAoB,EAAE,QAAgC,EAAE,EAAE;IAC5G,MAAM,IAAI,GAAkC;QACxC,QAAQ,EAAE,8BAAsB;QAChC,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB;QACjD,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,KAAK,EAAE,QAAQ,CAAC,KAAe;KAClC,CAAA;IAED,SAAS,CAAC,UAAU,CAAC;QACjB,IAAI,EAAE,kCAAkC;QACxC,MA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Y,EACd,EAAE;IACA,MAAM,IAAI,GAA+B;QACrC,QAAQ,EAAE,8BAAsB;QAChC,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;KACnD,CAAA;IAED,SAAS,CAAC,UAAU,CAAC;QACjB,IAAI,EAAE,4CAA4C;QAClD,MAAM,EAAE,QAAQ;QAChB,IAAI;QACJ,SAAS,EAAE;YACP,MAAM,EAAE,KAAK,CAAC,OAAO,IAAI,cAAc;SAC1C;KACJ,CAAC,CAAA;AACN,CAAC,CAAA;AAlBY,QAAA,+CAA+C,mDAkB3D"}
@@ -0,0 +1,84 @@
1
+ import { ExecuteCommandParams } from 'vscode-languageserver';
2
+ import { TransformationJob, TransformationPlan } from '../../client/token/codewhispererbearertokenclient';
3
+ export interface StartTransformRequest extends ExecuteCommandParams {
4
+ SolutionRootPath: string;
5
+ SelectedProjectPath: string;
6
+ ProgramLanguage: string;
7
+ TargetFramework: string;
8
+ SolutionConfigPaths: string[];
9
+ ProjectMetadata: TransformProjectMetadata[];
10
+ }
11
+ export interface StartTransformResponse {
12
+ UploadId: string;
13
+ TransformationJobId: string;
14
+ ArtifactPath: string;
15
+ Error?: string;
16
+ IsSupported?: boolean;
17
+ UnSupportedProjects?: string[];
18
+ ContainsUnsupportedViews?: boolean;
19
+ }
20
+ export interface GetTransformRequest extends ExecuteCommandParams {
21
+ TransformationJobId: string;
22
+ }
23
+ export interface GetTransformResponse {
24
+ TransformationJob: TransformationJob;
25
+ }
26
+ export interface GetTransformPlanRequest extends ExecuteCommandParams {
27
+ TransformationJobId: string;
28
+ }
29
+ export interface GetTransformPlanResponse {
30
+ TransformationPlan: TransformationPlan;
31
+ }
32
+ export interface CancelTransformRequest extends ExecuteCommandParams {
33
+ TransformationJobId: string;
34
+ }
35
+ export interface DownloadArtifactsRequest extends ExecuteCommandParams {
36
+ TransformationJobId: string;
37
+ SolutionRootPath: string;
38
+ }
39
+ export declare enum CancellationJobStatus {
40
+ NOT_STARTED = 0,
41
+ IN_PROGRESS = 1,
42
+ SUCCESSFULLY_CANCELLED = 2,
43
+ FAILED_TO_CANCEL = 3,
44
+ TIMED_OUT = 4
45
+ }
46
+ export interface CancelTransformResponse {
47
+ TransformationJobStatus: CancellationJobStatus;
48
+ }
49
+ export interface DownloadArtifactsResponse {
50
+ PathTosave: string;
51
+ Error: string;
52
+ }
53
+ export interface RequirementJson {
54
+ EntryPath: string;
55
+ Projects: Project[];
56
+ }
57
+ export interface ExternalReference {
58
+ ProjectPath: string;
59
+ RelativePath: string;
60
+ AssemblyFullPath: string;
61
+ IncludedInArtifact: boolean;
62
+ }
63
+ export interface TransformProjectMetadata {
64
+ Name: string;
65
+ ProjectTargetFramework: string;
66
+ ProjectPath: string;
67
+ SourceCodeFilePaths: string[];
68
+ ProjectLanguage: string;
69
+ ProjectType: string;
70
+ ExternalReferences: ExternalReference[];
71
+ }
72
+ export interface Project {
73
+ projectFilePath: string;
74
+ codeFiles: CodeFile[];
75
+ references: References[];
76
+ }
77
+ export interface CodeFile {
78
+ contentMd5Hash: string;
79
+ relativePath: string;
80
+ }
81
+ export interface References {
82
+ includedInArtifact: boolean;
83
+ relativePath: string;
84
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancellationJobStatus = void 0;
4
+ var CancellationJobStatus;
5
+ (function (CancellationJobStatus) {
6
+ CancellationJobStatus[CancellationJobStatus["NOT_STARTED"] = 0] = "NOT_STARTED";
7
+ CancellationJobStatus[CancellationJobStatus["IN_PROGRESS"] = 1] = "IN_PROGRESS";
8
+ CancellationJobStatus[CancellationJobStatus["SUCCESSFULLY_CANCELLED"] = 2] = "SUCCESSFULLY_CANCELLED";
9
+ CancellationJobStatus[CancellationJobStatus["FAILED_TO_CANCEL"] = 3] = "FAILED_TO_CANCEL";
10
+ CancellationJobStatus[CancellationJobStatus["TIMED_OUT"] = 4] = "TIMED_OUT";
11
+ })(CancellationJobStatus = exports.CancellationJobStatus || (exports.CancellationJobStatus = {}));
12
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/language-server/netTransform/models.ts"],"names":[],"mappings":";;;AA+CA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,qGAAsB,CAAA;IACtB,yFAAgB,CAAA;IAChB,2EAAS,CAAA;AACb,CAAC,EANW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAMhC"}
@@ -0,0 +1,2 @@
1
+ export declare const supportedProjects: string[];
2
+ export declare const unsupportedViewComponents: string[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unsupportedViewComponents = exports.supportedProjects = void 0;
4
+ exports.supportedProjects = [
5
+ 'AspNetCoreMvc',
6
+ 'AspNetCoreWebApi',
7
+ 'AspNetCoreMvcRazorPage',
8
+ 'AspNetMvc',
9
+ 'AspNetWebApi',
10
+ 'AspNetWebForms',
11
+ 'CoreWCFService',
12
+ 'CoreWCFServiceConfig',
13
+ 'WCFClient',
14
+ 'WCFService',
15
+ 'ConsoleApp',
16
+ 'ClassLibrary',
17
+ 'Unknown',
18
+ ];
19
+ exports.unsupportedViewComponents = [
20
+ '@Scripts',
21
+ '@Styles',
22
+ '@Session',
23
+ '@FormsAuthentication',
24
+ '@PagedListRenderOptions',
25
+ ];
26
+ //# sourceMappingURL=SupportedProjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupportedProjects.js","sourceRoot":"","sources":["../../../../src/language-server/netTransform/resources/SupportedProjects.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC7B,eAAe;IACf,kBAAkB;IAClB,wBAAwB;IACxB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,SAAS;CACZ,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACrC,UAAU;IACV,SAAS;IACT,UAAU;IACV,sBAAsB;IACtB,yBAAyB;CAC5B,CAAA"}
@@ -0,0 +1,265 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const chai_1 = require("chai");
4
+ const converter_1 = require("../converter");
5
+ const ts_sinon_1 = require("ts-sinon");
6
+ const sinon = require("sinon");
7
+ const mockedLogging = (0, ts_sinon_1.stubInterface)();
8
+ const sampleStartTransformationRequest = {
9
+ workspaceState: {
10
+ uploadId: '',
11
+ programmingLanguage: {
12
+ languageName: '',
13
+ },
14
+ contextTruncationScheme: 'ANALYSIS',
15
+ },
16
+ transformationSpec: {
17
+ transformationType: 'LANGUAGE_UPGRADE',
18
+ source: {
19
+ language: 'C_SHARP',
20
+ runtimeEnv: {
21
+ dotNet: '',
22
+ },
23
+ platformConfig: {
24
+ operatingSystemFamily: 'WINDOWS',
25
+ },
26
+ },
27
+ target: {
28
+ language: 'C_SHARP',
29
+ runtimeEnv: {
30
+ dotNet: '',
31
+ },
32
+ platformConfig: {
33
+ operatingSystemFamily: 'LINUX',
34
+ },
35
+ },
36
+ },
37
+ };
38
+ const sampleUserInputRequest = {
39
+ SolutionRootPath: '',
40
+ TargetFramework: '',
41
+ ProgramLanguage: '',
42
+ SelectedProjectPath: '',
43
+ SolutionConfigPaths: [],
44
+ ProjectMetadata: [
45
+ {
46
+ Name: '',
47
+ ProjectPath: '',
48
+ ProjectLanguage: 'csharp',
49
+ ProjectType: '',
50
+ ExternalReferences: [],
51
+ ProjectTargetFramework: '',
52
+ SourceCodeFilePaths: [],
53
+ },
54
+ ],
55
+ command: '',
56
+ };
57
+ function safeSet(obj, path, value) {
58
+ let current = obj;
59
+ for (let i = 0; i < path.length - 1; i++) {
60
+ if (current[path[i]] === undefined) {
61
+ current[path[i]] = {};
62
+ }
63
+ current = current[path[i]];
64
+ }
65
+ current[path[path.length - 1]] = value;
66
+ }
67
+ describe('Test Converter', () => {
68
+ describe('Test get CW StartTransformRequest', () => {
69
+ it('should return a transformation request with valid source and target framework', () => {
70
+ const testUploadId = 'testUploadId';
71
+ let testUserInputRequest = sampleUserInputRequest;
72
+ testUserInputRequest.TargetFramework = 'net8.0';
73
+ testUserInputRequest.ProgramLanguage = 'csharp';
74
+ testUserInputRequest.ProjectMetadata[0].ProjectTargetFramework = 'net8.0';
75
+ const startTransformationRequest = (0, converter_1.getCWStartTransformRequest)(testUserInputRequest, testUploadId, mockedLogging);
76
+ let expectedStartTransformationRequest = sampleStartTransformationRequest;
77
+ expectedStartTransformationRequest.workspaceState.uploadId = testUploadId;
78
+ expectedStartTransformationRequest.workspaceState.programmingLanguage.languageName = 'csharp';
79
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'source', 'runtimeEnv', 'dotNet'], 'NET_8_0');
80
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'target', 'runtimeEnv', 'dotNet'], 'NET_8_0');
81
+ (0, chai_1.expect)(startTransformationRequest).to.deep.equal(expectedStartTransformationRequest);
82
+ });
83
+ it('should return a transformation request with empty source frameowrk when project target framework is a not supported version', () => {
84
+ const testUploadId = 'testUploadId';
85
+ let testUserInputRequest = sampleUserInputRequest;
86
+ testUserInputRequest.TargetFramework = 'net8.0';
87
+ testUserInputRequest.ProgramLanguage = 'csharp';
88
+ testUserInputRequest.ProjectMetadata[0].ProjectTargetFramework = 'not supported';
89
+ const startTransformationRequest = (0, converter_1.getCWStartTransformRequest)(testUserInputRequest, testUploadId, mockedLogging);
90
+ let expectedStartTransformationRequest = sampleStartTransformationRequest;
91
+ expectedStartTransformationRequest.workspaceState.uploadId = testUploadId;
92
+ expectedStartTransformationRequest.workspaceState.programmingLanguage.languageName = 'csharp';
93
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'source', 'runtimeEnv', 'dotNet'], '');
94
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'target', 'runtimeEnv', 'dotNet'], 'NET_8_0');
95
+ (0, chai_1.expect)(startTransformationRequest).to.deep.equal(expectedStartTransformationRequest);
96
+ });
97
+ it('should return a transformation request with empty target frameowrk when target framework in user request is a not supported version', () => {
98
+ const testUploadId = 'testUploadId';
99
+ let testUserInputRequest = sampleUserInputRequest;
100
+ testUserInputRequest.TargetFramework = 'not support';
101
+ testUserInputRequest.ProgramLanguage = 'csharp';
102
+ testUserInputRequest.ProjectMetadata[0].ProjectTargetFramework = 'net8.0';
103
+ const startTransformationRequest = (0, converter_1.getCWStartTransformRequest)(testUserInputRequest, testUploadId, mockedLogging);
104
+ let expectedStartTransformationRequest = sampleStartTransformationRequest;
105
+ expectedStartTransformationRequest.workspaceState.uploadId = testUploadId;
106
+ expectedStartTransformationRequest.workspaceState.programmingLanguage.languageName = 'csharp';
107
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'source', 'runtimeEnv', 'dotNet'], 'NET_8_0');
108
+ safeSet(expectedStartTransformationRequest, ['transformationSpec', 'target', 'runtimeEnv', 'dotNet'], '');
109
+ (0, chai_1.expect)(startTransformationRequest).to.deep.equal(expectedStartTransformationRequest);
110
+ });
111
+ });
112
+ describe('Test get CW StartTransformResponse', () => {
113
+ it('should return the correct StarTransformResponse object', () => {
114
+ const mockResponseData = {
115
+ transformationJobId: 'testJobId',
116
+ };
117
+ const mockHttpResponse = {
118
+ createUnbufferedStream: () => new XMLHttpRequest(),
119
+ statusCode: 200,
120
+ headers: { 'Content-Type': 'application/json' },
121
+ body: JSON.stringify(mockResponseData),
122
+ statusMessage: '',
123
+ streaming: false,
124
+ };
125
+ let mockResponse = {
126
+ hasNextPage: () => false,
127
+ nextPage: () => null,
128
+ data: mockResponseData,
129
+ error: undefined,
130
+ requestId: 'request-id-123',
131
+ redirectCount: 0,
132
+ retryCount: 0,
133
+ httpResponse: mockHttpResponse,
134
+ };
135
+ const mockPromiseResult = {
136
+ ...mockResponseData,
137
+ $response: mockResponse,
138
+ };
139
+ const uploadId = 'upload-id-456';
140
+ const artifactPath = '/path/to/artifact';
141
+ const unsupportedProjects = ['project1', 'project2'];
142
+ const containsUnsupportedViews = true;
143
+ const result = (0, converter_1.getCWStartTransformResponse)(mockPromiseResult, uploadId, artifactPath, unsupportedProjects, containsUnsupportedViews);
144
+ (0, chai_1.expect)(result).to.deep.equal({
145
+ UploadId: uploadId,
146
+ TransformationJobId: mockResponseData.transformationJobId,
147
+ ArtifactPath: artifactPath,
148
+ UnSupportedProjects: unsupportedProjects,
149
+ ContainsUnsupportedViews: containsUnsupportedViews,
150
+ });
151
+ });
152
+ });
153
+ describe('findMinimumSourceVersion', () => {
154
+ it('should find the minimum .NET version from project metadata', () => {
155
+ const loggingMock = { log: sinon.spy() }; // Using Sinon for creating spies
156
+ const projectMetadata = [
157
+ {
158
+ ProjectTargetFramework: 'net6.0',
159
+ Name: '',
160
+ ProjectPath: '',
161
+ SourceCodeFilePaths: [],
162
+ ProjectLanguage: '',
163
+ ProjectType: '',
164
+ ExternalReferences: [],
165
+ },
166
+ {
167
+ ProjectTargetFramework: 'netcoreapp3.1',
168
+ Name: '',
169
+ ProjectPath: '',
170
+ SourceCodeFilePaths: [],
171
+ ProjectLanguage: '',
172
+ ProjectType: '',
173
+ ExternalReferences: [],
174
+ },
175
+ {
176
+ ProjectTargetFramework: '',
177
+ Name: '',
178
+ ProjectPath: '',
179
+ SourceCodeFilePaths: [],
180
+ ProjectLanguage: '',
181
+ ProjectType: '',
182
+ ExternalReferences: [],
183
+ },
184
+ {
185
+ ProjectTargetFramework: 'unknownFramework',
186
+ Name: '',
187
+ ProjectPath: '',
188
+ SourceCodeFilePaths: [],
189
+ ProjectLanguage: '',
190
+ ProjectType: '',
191
+ ExternalReferences: [],
192
+ },
193
+ ];
194
+ const result = (0, converter_1.findMinimumSourceVersion)(projectMetadata, loggingMock);
195
+ (0, chai_1.expect)(result).to.equal('NET_CORE_APP_3_1');
196
+ (0, chai_1.expect)(loggingMock.log.calledWith('Project version to compare net6.0')).to.be.true;
197
+ (0, chai_1.expect)(loggingMock.log.calledWith('Project version to compare netcoreapp3.1')).to.be.true;
198
+ (0, chai_1.expect)(loggingMock.log.calledWith('Selected lowest version is NET_CORE_APP_3_1')).to.be.true;
199
+ });
200
+ it('should return an empty string when no valid target frameworks are found', () => {
201
+ const loggingMock = { log: sinon.spy() };
202
+ const projectMetadata = [
203
+ {
204
+ ProjectTargetFramework: '',
205
+ Name: '',
206
+ ProjectPath: '',
207
+ SourceCodeFilePaths: [],
208
+ ProjectLanguage: '',
209
+ ProjectType: '',
210
+ ExternalReferences: [],
211
+ },
212
+ {
213
+ ProjectTargetFramework: 'unknownFramework',
214
+ Name: '',
215
+ ProjectPath: '',
216
+ SourceCodeFilePaths: [],
217
+ ProjectLanguage: '',
218
+ ProjectType: '',
219
+ ExternalReferences: [],
220
+ },
221
+ ];
222
+ const result = (0, converter_1.findMinimumSourceVersion)(projectMetadata, loggingMock);
223
+ (0, chai_1.expect)(result).to.equal('');
224
+ (0, chai_1.expect)(loggingMock.log.calledWith('Selected lowest version is ')).to.be.true;
225
+ });
226
+ it('should handle multiple projects with the same minimum version', () => {
227
+ const loggingMock = { log: sinon.spy() };
228
+ const projectMetadata = [
229
+ {
230
+ ProjectTargetFramework: 'netcoreapp3.1',
231
+ Name: '',
232
+ ProjectPath: '',
233
+ SourceCodeFilePaths: [],
234
+ ProjectLanguage: '',
235
+ ProjectType: '',
236
+ ExternalReferences: [],
237
+ },
238
+ {
239
+ ProjectTargetFramework: 'net461',
240
+ Name: '',
241
+ ProjectPath: '',
242
+ SourceCodeFilePaths: [],
243
+ ProjectLanguage: '',
244
+ ProjectType: '',
245
+ ExternalReferences: [],
246
+ },
247
+ {
248
+ ProjectTargetFramework: 'netcoreapp3.1',
249
+ Name: '',
250
+ ProjectPath: '',
251
+ SourceCodeFilePaths: [],
252
+ ProjectLanguage: '',
253
+ ProjectType: '',
254
+ ExternalReferences: [],
255
+ },
256
+ ];
257
+ const result = (0, converter_1.findMinimumSourceVersion)(projectMetadata, loggingMock);
258
+ (0, chai_1.expect)(result).to.equal('NET_FRAMEWORK_V_4_6_1');
259
+ (0, chai_1.expect)(loggingMock.log.calledWith('Project version to compare netcoreapp3.1')).to.be.true;
260
+ (0, chai_1.expect)(loggingMock.log.calledWith('Project version to compare net461')).to.be.true;
261
+ (0, chai_1.expect)(loggingMock.log.calledWith('Selected lowest version is NET_FRAMEWORK_V_4_6_1')).to.be.true;
262
+ });
263
+ });
264
+ });
265
+ //# sourceMappingURL=converter.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"converter.test.js","sourceRoot":"","sources":["../../../../src/language-server/netTransform/tests/converter.test.ts"],"names":[],"mappings":";;AAAA,+BAA6B;AAK7B,4CAKqB;AAGrB,uCAAwC;AACxC,+BAA+B;AAE/B,MAAM,aAAa,GAAG,IAAA,wBAAa,GAAW,CAAA;AAC9C,MAAM,gCAAgC,GAA4D;IAC9F,cAAc,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,mBAAmB,EAAE;YACjB,YAAY,EAAE,EAAE;SACnB;QACD,uBAAuB,EAAE,UAAU;KACtC;IACD,kBAAkB,EAAE;QAChB,kBAAkB,EAAE,kBAAkB;QACtC,MAAM,EAAE;YACJ,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE;gBACR,MAAM,EAAE,EAAE;aACb;YACD,cAAc,EAAE;gBACZ,qBAAqB,EAAE,SAAS;aACnC;SACJ;QACD,MAAM,EAAE;YACJ,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE;gBACR,MAAM,EAAE,EAAE;aACb;YACD,cAAc,EAAE;gBACZ,qBAAqB,EAAE,OAAO;aACjC;SACJ;KACJ;CACJ,CAAA;AAED,MAAM,sBAAsB,GAA0B;IAClD,gBAAgB,EAAE,EAAE;IACpB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,EAAE;IACnB,mBAAmB,EAAE,EAAE;IACvB,mBAAmB,EAAE,EAAE;IACvB,eAAe,EAAE;QACb;YACI,IAAI,EAAE,EAAE;YACR,WA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