trimprompt 1.0.3 → 1.0.5

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 (1024) hide show
  1. package/cli.js +2 -0
  2. package/dashboard.js +1 -0
  3. package/executor.js +1 -0
  4. package/filters/devops.js +1 -0
  5. package/filters/generic.js +1 -0
  6. package/filters/git.js +1 -0
  7. package/filters/go.js +1 -0
  8. package/filters/index.js +1 -0
  9. package/filters/js.js +1 -0
  10. package/filters/python.js +1 -0
  11. package/filters/rust.js +1 -0
  12. package/filters/shell.js +1 -0
  13. package/mcp.js +1 -0
  14. package/package.json +21 -29
  15. package/redactor.js +1 -0
  16. package/seed.js +1 -0
  17. package/shims.js +1 -0
  18. package/simulate.js +1 -0
  19. package/sync.js +1 -0
  20. package/tracker.js +1 -0
  21. package/.claude/settings.local.json +0 -7
  22. package/aicg-spec/README.md +0 -55
  23. package/aicg-spec/architecture.md +0 -263
  24. package/aicg-spec/dsl-spec.md +0 -109
  25. package/aicg-spec/insights/cargo.md +0 -46
  26. package/aicg-spec/insights/cloud_cli.md +0 -38
  27. package/aicg-spec/insights/docker_k8s.md +0 -45
  28. package/aicg-spec/insights/generic.md +0 -62
  29. package/aicg-spec/insights/git.md +0 -85
  30. package/aicg-spec/insights/js.md +0 -74
  31. package/aicg-spec/insights/python.md +0 -86
  32. package/aicg-spec/integrations/claude.md +0 -57
  33. package/aicg-spec/integrations/copilot.md +0 -69
  34. package/aicg-spec/integrations/cursor.md +0 -59
  35. package/aicg-spec/rules.yaml +0 -555
  36. package/aicg-spec/schema.md +0 -93
  37. package/aicg-spec/ui-spec.md +0 -135
  38. package/client/dist/cli.js +0 -256
  39. package/client/dist/dashboard.js +0 -102
  40. package/client/dist/executor.js +0 -80
  41. package/client/dist/filters/generic.js +0 -58
  42. package/client/dist/filters/git.js +0 -157
  43. package/client/dist/filters/index.js +0 -83
  44. package/client/dist/filters/js.js +0 -78
  45. package/client/dist/filters/python.js +0 -130
  46. package/client/dist/mcp.js +0 -90
  47. package/client/dist/redactor.js +0 -42
  48. package/client/dist/seed.js +0 -11
  49. package/client/dist/shims.js +0 -169
  50. package/client/dist/simulate.js +0 -76
  51. package/client/dist/sync.js +0 -237
  52. package/client/dist/tracker.js +0 -247
  53. package/client/node_modules/.bin/is-docker +0 -16
  54. package/client/node_modules/.bin/is-docker.cmd +0 -17
  55. package/client/node_modules/.bin/is-docker.ps1 +0 -28
  56. package/client/node_modules/.bin/mime +0 -16
  57. package/client/node_modules/.bin/mime.cmd +0 -17
  58. package/client/node_modules/.bin/mime.ps1 +0 -28
  59. package/client/node_modules/.bin/tsc +0 -16
  60. package/client/node_modules/.bin/tsc.cmd +0 -17
  61. package/client/node_modules/.bin/tsc.ps1 +0 -28
  62. package/client/node_modules/.bin/tsserver +0 -16
  63. package/client/node_modules/.bin/tsserver.cmd +0 -17
  64. package/client/node_modules/.bin/tsserver.ps1 +0 -28
  65. package/client/node_modules/.package-lock.json +0 -934
  66. package/client/node_modules/@types/body-parser/LICENSE +0 -21
  67. package/client/node_modules/@types/body-parser/README.md +0 -15
  68. package/client/node_modules/@types/body-parser/index.d.ts +0 -95
  69. package/client/node_modules/@types/body-parser/package.json +0 -64
  70. package/client/node_modules/@types/connect/LICENSE +0 -21
  71. package/client/node_modules/@types/connect/README.md +0 -15
  72. package/client/node_modules/@types/connect/index.d.ts +0 -91
  73. package/client/node_modules/@types/connect/package.json +0 -32
  74. package/client/node_modules/@types/express/LICENSE +0 -21
  75. package/client/node_modules/@types/express/README.md +0 -15
  76. package/client/node_modules/@types/express/index.d.ts +0 -128
  77. package/client/node_modules/@types/express/package.json +0 -46
  78. package/client/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  79. package/client/node_modules/@types/express-serve-static-core/README.md +0 -15
  80. package/client/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  81. package/client/node_modules/@types/express-serve-static-core/package.json +0 -51
  82. package/client/node_modules/@types/http-errors/LICENSE +0 -21
  83. package/client/node_modules/@types/http-errors/README.md +0 -15
  84. package/client/node_modules/@types/http-errors/index.d.ts +0 -77
  85. package/client/node_modules/@types/http-errors/package.json +0 -36
  86. package/client/node_modules/@types/mime/LICENSE +0 -21
  87. package/client/node_modules/@types/mime/Mime.d.ts +0 -10
  88. package/client/node_modules/@types/mime/README.md +0 -15
  89. package/client/node_modules/@types/mime/index.d.ts +0 -31
  90. package/client/node_modules/@types/mime/lite.d.ts +0 -7
  91. package/client/node_modules/@types/mime/package.json +0 -30
  92. package/client/node_modules/@types/node/LICENSE +0 -21
  93. package/client/node_modules/@types/node/README.md +0 -15
  94. package/client/node_modules/@types/node/assert/strict.d.ts +0 -8
  95. package/client/node_modules/@types/node/assert.d.ts +0 -1062
  96. package/client/node_modules/@types/node/async_hooks.d.ts +0 -605
  97. package/client/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  98. package/client/node_modules/@types/node/buffer.d.ts +0 -1936
  99. package/client/node_modules/@types/node/child_process.d.ts +0 -1475
  100. package/client/node_modules/@types/node/cluster.d.ts +0 -577
  101. package/client/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  102. package/client/node_modules/@types/node/compatibility/index.d.ts +0 -9
  103. package/client/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  104. package/client/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  105. package/client/node_modules/@types/node/console.d.ts +0 -452
  106. package/client/node_modules/@types/node/constants.d.ts +0 -21
  107. package/client/node_modules/@types/node/crypto.d.ts +0 -4590
  108. package/client/node_modules/@types/node/dgram.d.ts +0 -597
  109. package/client/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  110. package/client/node_modules/@types/node/dns/promises.d.ts +0 -479
  111. package/client/node_modules/@types/node/dns.d.ts +0 -871
  112. package/client/node_modules/@types/node/domain.d.ts +0 -170
  113. package/client/node_modules/@types/node/events.d.ts +0 -977
  114. package/client/node_modules/@types/node/fs/promises.d.ts +0 -1270
  115. package/client/node_modules/@types/node/fs.d.ts +0 -4375
  116. package/client/node_modules/@types/node/globals.d.ts +0 -172
  117. package/client/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  118. package/client/node_modules/@types/node/http.d.ts +0 -2049
  119. package/client/node_modules/@types/node/http2.d.ts +0 -2712
  120. package/client/node_modules/@types/node/https.d.ts +0 -578
  121. package/client/node_modules/@types/node/index.d.ts +0 -93
  122. package/client/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  123. package/client/node_modules/@types/node/module.d.ts +0 -539
  124. package/client/node_modules/@types/node/net.d.ts +0 -1031
  125. package/client/node_modules/@types/node/os.d.ts +0 -506
  126. package/client/node_modules/@types/node/package.json +0 -140
  127. package/client/node_modules/@types/node/path.d.ts +0 -200
  128. package/client/node_modules/@types/node/perf_hooks.d.ts +0 -961
  129. package/client/node_modules/@types/node/process.d.ts +0 -1961
  130. package/client/node_modules/@types/node/punycode.d.ts +0 -117
  131. package/client/node_modules/@types/node/querystring.d.ts +0 -152
  132. package/client/node_modules/@types/node/readline/promises.d.ts +0 -162
  133. package/client/node_modules/@types/node/readline.d.ts +0 -589
  134. package/client/node_modules/@types/node/repl.d.ts +0 -430
  135. package/client/node_modules/@types/node/sea.d.ts +0 -153
  136. package/client/node_modules/@types/node/stream/consumers.d.ts +0 -38
  137. package/client/node_modules/@types/node/stream/promises.d.ts +0 -90
  138. package/client/node_modules/@types/node/stream/web.d.ts +0 -533
  139. package/client/node_modules/@types/node/stream.d.ts +0 -1698
  140. package/client/node_modules/@types/node/string_decoder.d.ts +0 -67
  141. package/client/node_modules/@types/node/test.d.ts +0 -1787
  142. package/client/node_modules/@types/node/timers/promises.d.ts +0 -108
  143. package/client/node_modules/@types/node/timers.d.ts +0 -286
  144. package/client/node_modules/@types/node/tls.d.ts +0 -1259
  145. package/client/node_modules/@types/node/trace_events.d.ts +0 -197
  146. package/client/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  147. package/client/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  148. package/client/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  149. package/client/node_modules/@types/node/tty.d.ts +0 -208
  150. package/client/node_modules/@types/node/url.d.ts +0 -964
  151. package/client/node_modules/@types/node/util.d.ts +0 -2331
  152. package/client/node_modules/@types/node/v8.d.ts +0 -809
  153. package/client/node_modules/@types/node/vm.d.ts +0 -1001
  154. package/client/node_modules/@types/node/wasi.d.ts +0 -181
  155. package/client/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  156. package/client/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  157. package/client/node_modules/@types/node/web-globals/events.d.ts +0 -97
  158. package/client/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  159. package/client/node_modules/@types/node/worker_threads.d.ts +0 -715
  160. package/client/node_modules/@types/node/zlib.d.ts +0 -598
  161. package/client/node_modules/@types/qs/LICENSE +0 -21
  162. package/client/node_modules/@types/qs/README.md +0 -15
  163. package/client/node_modules/@types/qs/index.d.ts +0 -83
  164. package/client/node_modules/@types/qs/package.json +0 -66
  165. package/client/node_modules/@types/range-parser/LICENSE +0 -21
  166. package/client/node_modules/@types/range-parser/README.md +0 -53
  167. package/client/node_modules/@types/range-parser/index.d.ts +0 -34
  168. package/client/node_modules/@types/range-parser/package.json +0 -25
  169. package/client/node_modules/@types/send/LICENSE +0 -21
  170. package/client/node_modules/@types/send/README.md +0 -15
  171. package/client/node_modules/@types/send/index.d.ts +0 -187
  172. package/client/node_modules/@types/send/package.json +0 -38
  173. package/client/node_modules/@types/serve-static/LICENSE +0 -21
  174. package/client/node_modules/@types/serve-static/README.md +0 -15
  175. package/client/node_modules/@types/serve-static/index.d.ts +0 -107
  176. package/client/node_modules/@types/serve-static/node_modules/@types/send/LICENSE +0 -21
  177. package/client/node_modules/@types/serve-static/node_modules/@types/send/README.md +0 -15
  178. package/client/node_modules/@types/serve-static/node_modules/@types/send/index.d.ts +0 -225
  179. package/client/node_modules/@types/serve-static/node_modules/@types/send/package.json +0 -39
  180. package/client/node_modules/@types/serve-static/package.json +0 -45
  181. package/client/node_modules/accepts/HISTORY.md +0 -243
  182. package/client/node_modules/accepts/LICENSE +0 -23
  183. package/client/node_modules/accepts/README.md +0 -140
  184. package/client/node_modules/accepts/index.js +0 -238
  185. package/client/node_modules/accepts/package.json +0 -47
  186. package/client/node_modules/array-flatten/LICENSE +0 -21
  187. package/client/node_modules/array-flatten/README.md +0 -43
  188. package/client/node_modules/array-flatten/array-flatten.js +0 -64
  189. package/client/node_modules/array-flatten/package.json +0 -39
  190. package/client/node_modules/body-parser/HISTORY.md +0 -686
  191. package/client/node_modules/body-parser/LICENSE +0 -23
  192. package/client/node_modules/body-parser/README.md +0 -476
  193. package/client/node_modules/body-parser/index.js +0 -156
  194. package/client/node_modules/body-parser/lib/read.js +0 -205
  195. package/client/node_modules/body-parser/lib/types/json.js +0 -243
  196. package/client/node_modules/body-parser/lib/types/raw.js +0 -101
  197. package/client/node_modules/body-parser/lib/types/text.js +0 -121
  198. package/client/node_modules/body-parser/lib/types/urlencoded.js +0 -299
  199. package/client/node_modules/body-parser/package.json +0 -55
  200. package/client/node_modules/bytes/History.md +0 -97
  201. package/client/node_modules/bytes/LICENSE +0 -23
  202. package/client/node_modules/bytes/Readme.md +0 -152
  203. package/client/node_modules/bytes/index.js +0 -170
  204. package/client/node_modules/bytes/package.json +0 -42
  205. package/client/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  206. package/client/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  207. package/client/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  208. package/client/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  209. package/client/node_modules/call-bind-apply-helpers/LICENSE +0 -21
  210. package/client/node_modules/call-bind-apply-helpers/README.md +0 -62
  211. package/client/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  212. package/client/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
  213. package/client/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  214. package/client/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
  215. package/client/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  216. package/client/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
  217. package/client/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  218. package/client/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
  219. package/client/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  220. package/client/node_modules/call-bind-apply-helpers/index.js +0 -15
  221. package/client/node_modules/call-bind-apply-helpers/package.json +0 -85
  222. package/client/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  223. package/client/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
  224. package/client/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  225. package/client/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  226. package/client/node_modules/call-bound/.eslintrc +0 -13
  227. package/client/node_modules/call-bound/.github/FUNDING.yml +0 -12
  228. package/client/node_modules/call-bound/.nycrc +0 -9
  229. package/client/node_modules/call-bound/CHANGELOG.md +0 -42
  230. package/client/node_modules/call-bound/LICENSE +0 -21
  231. package/client/node_modules/call-bound/README.md +0 -53
  232. package/client/node_modules/call-bound/index.d.ts +0 -94
  233. package/client/node_modules/call-bound/index.js +0 -19
  234. package/client/node_modules/call-bound/package.json +0 -99
  235. package/client/node_modules/call-bound/test/index.js +0 -61
  236. package/client/node_modules/call-bound/tsconfig.json +0 -10
  237. package/client/node_modules/commander/LICENSE +0 -22
  238. package/client/node_modules/commander/Readme.md +0 -1148
  239. package/client/node_modules/commander/esm.mjs +0 -16
  240. package/client/node_modules/commander/index.js +0 -26
  241. package/client/node_modules/commander/lib/argument.js +0 -145
  242. package/client/node_modules/commander/lib/command.js +0 -2179
  243. package/client/node_modules/commander/lib/error.js +0 -43
  244. package/client/node_modules/commander/lib/help.js +0 -462
  245. package/client/node_modules/commander/lib/option.js +0 -329
  246. package/client/node_modules/commander/lib/suggestSimilar.js +0 -100
  247. package/client/node_modules/commander/package-support.json +0 -16
  248. package/client/node_modules/commander/package.json +0 -80
  249. package/client/node_modules/commander/typings/esm.d.mts +0 -3
  250. package/client/node_modules/commander/typings/index.d.ts +0 -884
  251. package/client/node_modules/content-disposition/HISTORY.md +0 -60
  252. package/client/node_modules/content-disposition/LICENSE +0 -22
  253. package/client/node_modules/content-disposition/README.md +0 -142
  254. package/client/node_modules/content-disposition/index.js +0 -458
  255. package/client/node_modules/content-disposition/package.json +0 -44
  256. package/client/node_modules/content-type/HISTORY.md +0 -29
  257. package/client/node_modules/content-type/LICENSE +0 -22
  258. package/client/node_modules/content-type/README.md +0 -94
  259. package/client/node_modules/content-type/index.js +0 -225
  260. package/client/node_modules/content-type/package.json +0 -42
  261. package/client/node_modules/cookie/LICENSE +0 -24
  262. package/client/node_modules/cookie/README.md +0 -317
  263. package/client/node_modules/cookie/SECURITY.md +0 -25
  264. package/client/node_modules/cookie/index.js +0 -335
  265. package/client/node_modules/cookie/package.json +0 -44
  266. package/client/node_modules/cookie-signature/History.md +0 -42
  267. package/client/node_modules/cookie-signature/Readme.md +0 -42
  268. package/client/node_modules/cookie-signature/index.js +0 -51
  269. package/client/node_modules/cookie-signature/package.json +0 -18
  270. package/client/node_modules/debug/.coveralls.yml +0 -1
  271. package/client/node_modules/debug/.eslintrc +0 -11
  272. package/client/node_modules/debug/.travis.yml +0 -14
  273. package/client/node_modules/debug/CHANGELOG.md +0 -362
  274. package/client/node_modules/debug/LICENSE +0 -19
  275. package/client/node_modules/debug/Makefile +0 -50
  276. package/client/node_modules/debug/README.md +0 -312
  277. package/client/node_modules/debug/component.json +0 -19
  278. package/client/node_modules/debug/karma.conf.js +0 -70
  279. package/client/node_modules/debug/node.js +0 -1
  280. package/client/node_modules/debug/package.json +0 -49
  281. package/client/node_modules/debug/src/browser.js +0 -185
  282. package/client/node_modules/debug/src/debug.js +0 -202
  283. package/client/node_modules/debug/src/index.js +0 -10
  284. package/client/node_modules/debug/src/inspector-log.js +0 -15
  285. package/client/node_modules/debug/src/node.js +0 -248
  286. package/client/node_modules/define-lazy-prop/index.d.ts +0 -33
  287. package/client/node_modules/define-lazy-prop/index.js +0 -19
  288. package/client/node_modules/define-lazy-prop/license +0 -9
  289. package/client/node_modules/define-lazy-prop/package.json +0 -48
  290. package/client/node_modules/define-lazy-prop/readme.md +0 -64
  291. package/client/node_modules/depd/History.md +0 -103
  292. package/client/node_modules/depd/LICENSE +0 -22
  293. package/client/node_modules/depd/Readme.md +0 -280
  294. package/client/node_modules/depd/index.js +0 -538
  295. package/client/node_modules/depd/lib/browser/index.js +0 -77
  296. package/client/node_modules/depd/package.json +0 -45
  297. package/client/node_modules/destroy/LICENSE +0 -23
  298. package/client/node_modules/destroy/README.md +0 -63
  299. package/client/node_modules/destroy/index.js +0 -209
  300. package/client/node_modules/destroy/package.json +0 -48
  301. package/client/node_modules/dunder-proto/.eslintrc +0 -5
  302. package/client/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  303. package/client/node_modules/dunder-proto/.nycrc +0 -13
  304. package/client/node_modules/dunder-proto/CHANGELOG.md +0 -24
  305. package/client/node_modules/dunder-proto/LICENSE +0 -21
  306. package/client/node_modules/dunder-proto/README.md +0 -54
  307. package/client/node_modules/dunder-proto/get.d.ts +0 -5
  308. package/client/node_modules/dunder-proto/get.js +0 -30
  309. package/client/node_modules/dunder-proto/package.json +0 -76
  310. package/client/node_modules/dunder-proto/set.d.ts +0 -5
  311. package/client/node_modules/dunder-proto/set.js +0 -35
  312. package/client/node_modules/dunder-proto/test/get.js +0 -34
  313. package/client/node_modules/dunder-proto/test/index.js +0 -4
  314. package/client/node_modules/dunder-proto/test/set.js +0 -50
  315. package/client/node_modules/dunder-proto/tsconfig.json +0 -9
  316. package/client/node_modules/ee-first/LICENSE +0 -22
  317. package/client/node_modules/ee-first/README.md +0 -80
  318. package/client/node_modules/ee-first/index.js +0 -95
  319. package/client/node_modules/ee-first/package.json +0 -29
  320. package/client/node_modules/encodeurl/LICENSE +0 -22
  321. package/client/node_modules/encodeurl/README.md +0 -109
  322. package/client/node_modules/encodeurl/index.js +0 -60
  323. package/client/node_modules/encodeurl/package.json +0 -40
  324. package/client/node_modules/es-define-property/.eslintrc +0 -13
  325. package/client/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  326. package/client/node_modules/es-define-property/.nycrc +0 -9
  327. package/client/node_modules/es-define-property/CHANGELOG.md +0 -29
  328. package/client/node_modules/es-define-property/LICENSE +0 -21
  329. package/client/node_modules/es-define-property/README.md +0 -49
  330. package/client/node_modules/es-define-property/index.d.ts +0 -3
  331. package/client/node_modules/es-define-property/index.js +0 -14
  332. package/client/node_modules/es-define-property/package.json +0 -81
  333. package/client/node_modules/es-define-property/test/index.js +0 -56
  334. package/client/node_modules/es-define-property/tsconfig.json +0 -10
  335. package/client/node_modules/es-errors/.eslintrc +0 -5
  336. package/client/node_modules/es-errors/.github/FUNDING.yml +0 -12
  337. package/client/node_modules/es-errors/CHANGELOG.md +0 -40
  338. package/client/node_modules/es-errors/LICENSE +0 -21
  339. package/client/node_modules/es-errors/README.md +0 -55
  340. package/client/node_modules/es-errors/eval.d.ts +0 -3
  341. package/client/node_modules/es-errors/eval.js +0 -4
  342. package/client/node_modules/es-errors/index.d.ts +0 -3
  343. package/client/node_modules/es-errors/index.js +0 -4
  344. package/client/node_modules/es-errors/package.json +0 -80
  345. package/client/node_modules/es-errors/range.d.ts +0 -3
  346. package/client/node_modules/es-errors/range.js +0 -4
  347. package/client/node_modules/es-errors/ref.d.ts +0 -3
  348. package/client/node_modules/es-errors/ref.js +0 -4
  349. package/client/node_modules/es-errors/syntax.d.ts +0 -3
  350. package/client/node_modules/es-errors/syntax.js +0 -4
  351. package/client/node_modules/es-errors/test/index.js +0 -19
  352. package/client/node_modules/es-errors/tsconfig.json +0 -49
  353. package/client/node_modules/es-errors/type.d.ts +0 -3
  354. package/client/node_modules/es-errors/type.js +0 -4
  355. package/client/node_modules/es-errors/uri.d.ts +0 -3
  356. package/client/node_modules/es-errors/uri.js +0 -4
  357. package/client/node_modules/es-object-atoms/.eslintrc +0 -16
  358. package/client/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  359. package/client/node_modules/es-object-atoms/CHANGELOG.md +0 -44
  360. package/client/node_modules/es-object-atoms/LICENSE +0 -21
  361. package/client/node_modules/es-object-atoms/README.md +0 -63
  362. package/client/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  363. package/client/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
  364. package/client/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  365. package/client/node_modules/es-object-atoms/ToObject.js +0 -10
  366. package/client/node_modules/es-object-atoms/index.d.ts +0 -3
  367. package/client/node_modules/es-object-atoms/index.js +0 -4
  368. package/client/node_modules/es-object-atoms/isObject.d.ts +0 -3
  369. package/client/node_modules/es-object-atoms/isObject.js +0 -6
  370. package/client/node_modules/es-object-atoms/package.json +0 -79
  371. package/client/node_modules/es-object-atoms/test/index.js +0 -38
  372. package/client/node_modules/es-object-atoms/tsconfig.json +0 -7
  373. package/client/node_modules/escape-html/LICENSE +0 -24
  374. package/client/node_modules/escape-html/Readme.md +0 -43
  375. package/client/node_modules/escape-html/index.js +0 -78
  376. package/client/node_modules/escape-html/package.json +0 -24
  377. package/client/node_modules/etag/HISTORY.md +0 -83
  378. package/client/node_modules/etag/LICENSE +0 -22
  379. package/client/node_modules/etag/README.md +0 -159
  380. package/client/node_modules/etag/index.js +0 -131
  381. package/client/node_modules/etag/package.json +0 -47
  382. package/client/node_modules/express/History.md +0 -3676
  383. package/client/node_modules/express/LICENSE +0 -24
  384. package/client/node_modules/express/Readme.md +0 -260
  385. package/client/node_modules/express/index.js +0 -11
  386. package/client/node_modules/express/lib/application.js +0 -661
  387. package/client/node_modules/express/lib/express.js +0 -116
  388. package/client/node_modules/express/lib/middleware/init.js +0 -43
  389. package/client/node_modules/express/lib/middleware/query.js +0 -47
  390. package/client/node_modules/express/lib/request.js +0 -525
  391. package/client/node_modules/express/lib/response.js +0 -1179
  392. package/client/node_modules/express/lib/router/index.js +0 -673
  393. package/client/node_modules/express/lib/router/layer.js +0 -181
  394. package/client/node_modules/express/lib/router/route.js +0 -230
  395. package/client/node_modules/express/lib/utils.js +0 -304
  396. package/client/node_modules/express/lib/view.js +0 -182
  397. package/client/node_modules/express/package.json +0 -102
  398. package/client/node_modules/finalhandler/HISTORY.md +0 -216
  399. package/client/node_modules/finalhandler/LICENSE +0 -22
  400. package/client/node_modules/finalhandler/README.md +0 -147
  401. package/client/node_modules/finalhandler/SECURITY.md +0 -25
  402. package/client/node_modules/finalhandler/index.js +0 -341
  403. package/client/node_modules/finalhandler/package.json +0 -47
  404. package/client/node_modules/forwarded/HISTORY.md +0 -21
  405. package/client/node_modules/forwarded/LICENSE +0 -22
  406. package/client/node_modules/forwarded/README.md +0 -57
  407. package/client/node_modules/forwarded/index.js +0 -90
  408. package/client/node_modules/forwarded/package.json +0 -45
  409. package/client/node_modules/fresh/HISTORY.md +0 -70
  410. package/client/node_modules/fresh/LICENSE +0 -23
  411. package/client/node_modules/fresh/README.md +0 -119
  412. package/client/node_modules/fresh/index.js +0 -137
  413. package/client/node_modules/fresh/package.json +0 -46
  414. package/client/node_modules/function-bind/.eslintrc +0 -21
  415. package/client/node_modules/function-bind/.github/FUNDING.yml +0 -12
  416. package/client/node_modules/function-bind/.github/SECURITY.md +0 -3
  417. package/client/node_modules/function-bind/.nycrc +0 -13
  418. package/client/node_modules/function-bind/CHANGELOG.md +0 -136
  419. package/client/node_modules/function-bind/LICENSE +0 -20
  420. package/client/node_modules/function-bind/README.md +0 -46
  421. package/client/node_modules/function-bind/implementation.js +0 -84
  422. package/client/node_modules/function-bind/index.js +0 -5
  423. package/client/node_modules/function-bind/package.json +0 -87
  424. package/client/node_modules/function-bind/test/.eslintrc +0 -9
  425. package/client/node_modules/function-bind/test/index.js +0 -252
  426. package/client/node_modules/get-intrinsic/.eslintrc +0 -42
  427. package/client/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  428. package/client/node_modules/get-intrinsic/.nycrc +0 -9
  429. package/client/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  430. package/client/node_modules/get-intrinsic/LICENSE +0 -21
  431. package/client/node_modules/get-intrinsic/README.md +0 -71
  432. package/client/node_modules/get-intrinsic/index.js +0 -378
  433. package/client/node_modules/get-intrinsic/package.json +0 -97
  434. package/client/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  435. package/client/node_modules/get-proto/.eslintrc +0 -10
  436. package/client/node_modules/get-proto/.github/FUNDING.yml +0 -12
  437. package/client/node_modules/get-proto/.nycrc +0 -9
  438. package/client/node_modules/get-proto/CHANGELOG.md +0 -21
  439. package/client/node_modules/get-proto/LICENSE +0 -21
  440. package/client/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  441. package/client/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
  442. package/client/node_modules/get-proto/README.md +0 -50
  443. package/client/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  444. package/client/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
  445. package/client/node_modules/get-proto/index.d.ts +0 -5
  446. package/client/node_modules/get-proto/index.js +0 -27
  447. package/client/node_modules/get-proto/package.json +0 -81
  448. package/client/node_modules/get-proto/test/index.js +0 -68
  449. package/client/node_modules/get-proto/tsconfig.json +0 -9
  450. package/client/node_modules/gopd/.eslintrc +0 -16
  451. package/client/node_modules/gopd/.github/FUNDING.yml +0 -12
  452. package/client/node_modules/gopd/CHANGELOG.md +0 -45
  453. package/client/node_modules/gopd/LICENSE +0 -21
  454. package/client/node_modules/gopd/README.md +0 -40
  455. package/client/node_modules/gopd/gOPD.d.ts +0 -1
  456. package/client/node_modules/gopd/gOPD.js +0 -4
  457. package/client/node_modules/gopd/index.d.ts +0 -5
  458. package/client/node_modules/gopd/index.js +0 -15
  459. package/client/node_modules/gopd/package.json +0 -77
  460. package/client/node_modules/gopd/test/index.js +0 -36
  461. package/client/node_modules/gopd/tsconfig.json +0 -9
  462. package/client/node_modules/has-symbols/.eslintrc +0 -11
  463. package/client/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  464. package/client/node_modules/has-symbols/.nycrc +0 -9
  465. package/client/node_modules/has-symbols/CHANGELOG.md +0 -91
  466. package/client/node_modules/has-symbols/LICENSE +0 -21
  467. package/client/node_modules/has-symbols/README.md +0 -46
  468. package/client/node_modules/has-symbols/index.d.ts +0 -3
  469. package/client/node_modules/has-symbols/index.js +0 -14
  470. package/client/node_modules/has-symbols/package.json +0 -111
  471. package/client/node_modules/has-symbols/shams.d.ts +0 -3
  472. package/client/node_modules/has-symbols/shams.js +0 -45
  473. package/client/node_modules/has-symbols/test/index.js +0 -22
  474. package/client/node_modules/has-symbols/test/shams/core-js.js +0 -29
  475. package/client/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  476. package/client/node_modules/has-symbols/test/tests.js +0 -58
  477. package/client/node_modules/has-symbols/tsconfig.json +0 -10
  478. package/client/node_modules/hasown/.github/FUNDING.yml +0 -12
  479. package/client/node_modules/hasown/.nycrc +0 -13
  480. package/client/node_modules/hasown/CHANGELOG.md +0 -58
  481. package/client/node_modules/hasown/LICENSE +0 -21
  482. package/client/node_modules/hasown/README.md +0 -40
  483. package/client/node_modules/hasown/eslint.config.mjs +0 -6
  484. package/client/node_modules/hasown/index.d.ts +0 -3
  485. package/client/node_modules/hasown/index.js +0 -8
  486. package/client/node_modules/hasown/package.json +0 -91
  487. package/client/node_modules/hasown/tsconfig.json +0 -6
  488. package/client/node_modules/http-errors/HISTORY.md +0 -186
  489. package/client/node_modules/http-errors/LICENSE +0 -23
  490. package/client/node_modules/http-errors/README.md +0 -169
  491. package/client/node_modules/http-errors/index.js +0 -290
  492. package/client/node_modules/http-errors/package.json +0 -54
  493. package/client/node_modules/iconv-lite/Changelog.md +0 -162
  494. package/client/node_modules/iconv-lite/LICENSE +0 -21
  495. package/client/node_modules/iconv-lite/README.md +0 -156
  496. package/client/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  497. package/client/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  498. package/client/node_modules/iconv-lite/encodings/index.js +0 -22
  499. package/client/node_modules/iconv-lite/encodings/internal.js +0 -188
  500. package/client/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  501. package/client/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  502. package/client/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  503. package/client/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  504. package/client/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  505. package/client/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  506. package/client/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  507. package/client/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  508. package/client/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  509. package/client/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  510. package/client/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  511. package/client/node_modules/iconv-lite/encodings/utf16.js +0 -177
  512. package/client/node_modules/iconv-lite/encodings/utf7.js +0 -290
  513. package/client/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  514. package/client/node_modules/iconv-lite/lib/extend-node.js +0 -217
  515. package/client/node_modules/iconv-lite/lib/index.d.ts +0 -24
  516. package/client/node_modules/iconv-lite/lib/index.js +0 -153
  517. package/client/node_modules/iconv-lite/lib/streams.js +0 -121
  518. package/client/node_modules/iconv-lite/package.json +0 -46
  519. package/client/node_modules/inherits/LICENSE +0 -16
  520. package/client/node_modules/inherits/README.md +0 -42
  521. package/client/node_modules/inherits/inherits.js +0 -9
  522. package/client/node_modules/inherits/inherits_browser.js +0 -27
  523. package/client/node_modules/inherits/package.json +0 -29
  524. package/client/node_modules/ipaddr.js/LICENSE +0 -19
  525. package/client/node_modules/ipaddr.js/README.md +0 -233
  526. package/client/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  527. package/client/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  528. package/client/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  529. package/client/node_modules/ipaddr.js/package.json +0 -35
  530. package/client/node_modules/is-docker/cli.js +0 -5
  531. package/client/node_modules/is-docker/index.d.ts +0 -15
  532. package/client/node_modules/is-docker/index.js +0 -29
  533. package/client/node_modules/is-docker/license +0 -9
  534. package/client/node_modules/is-docker/package.json +0 -42
  535. package/client/node_modules/is-docker/readme.md +0 -27
  536. package/client/node_modules/is-wsl/index.d.ts +0 -15
  537. package/client/node_modules/is-wsl/index.js +0 -31
  538. package/client/node_modules/is-wsl/license +0 -9
  539. package/client/node_modules/is-wsl/package.json +0 -45
  540. package/client/node_modules/is-wsl/readme.md +0 -36
  541. package/client/node_modules/math-intrinsics/.eslintrc +0 -16
  542. package/client/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  543. package/client/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  544. package/client/node_modules/math-intrinsics/LICENSE +0 -21
  545. package/client/node_modules/math-intrinsics/README.md +0 -50
  546. package/client/node_modules/math-intrinsics/abs.d.ts +0 -1
  547. package/client/node_modules/math-intrinsics/abs.js +0 -4
  548. package/client/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  549. package/client/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
  550. package/client/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  551. package/client/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
  552. package/client/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  553. package/client/node_modules/math-intrinsics/constants/maxValue.js +0 -5
  554. package/client/node_modules/math-intrinsics/floor.d.ts +0 -1
  555. package/client/node_modules/math-intrinsics/floor.js +0 -4
  556. package/client/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  557. package/client/node_modules/math-intrinsics/isFinite.js +0 -12
  558. package/client/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  559. package/client/node_modules/math-intrinsics/isInteger.js +0 -16
  560. package/client/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  561. package/client/node_modules/math-intrinsics/isNaN.js +0 -6
  562. package/client/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  563. package/client/node_modules/math-intrinsics/isNegativeZero.js +0 -6
  564. package/client/node_modules/math-intrinsics/max.d.ts +0 -1
  565. package/client/node_modules/math-intrinsics/max.js +0 -4
  566. package/client/node_modules/math-intrinsics/min.d.ts +0 -1
  567. package/client/node_modules/math-intrinsics/min.js +0 -4
  568. package/client/node_modules/math-intrinsics/mod.d.ts +0 -3
  569. package/client/node_modules/math-intrinsics/mod.js +0 -9
  570. package/client/node_modules/math-intrinsics/package.json +0 -86
  571. package/client/node_modules/math-intrinsics/pow.d.ts +0 -1
  572. package/client/node_modules/math-intrinsics/pow.js +0 -4
  573. package/client/node_modules/math-intrinsics/round.d.ts +0 -1
  574. package/client/node_modules/math-intrinsics/round.js +0 -4
  575. package/client/node_modules/math-intrinsics/sign.d.ts +0 -3
  576. package/client/node_modules/math-intrinsics/sign.js +0 -11
  577. package/client/node_modules/math-intrinsics/test/index.js +0 -192
  578. package/client/node_modules/math-intrinsics/tsconfig.json +0 -3
  579. package/client/node_modules/media-typer/HISTORY.md +0 -22
  580. package/client/node_modules/media-typer/LICENSE +0 -22
  581. package/client/node_modules/media-typer/README.md +0 -81
  582. package/client/node_modules/media-typer/index.js +0 -270
  583. package/client/node_modules/media-typer/package.json +0 -26
  584. package/client/node_modules/merge-descriptors/HISTORY.md +0 -21
  585. package/client/node_modules/merge-descriptors/LICENSE +0 -23
  586. package/client/node_modules/merge-descriptors/README.md +0 -49
  587. package/client/node_modules/merge-descriptors/index.js +0 -60
  588. package/client/node_modules/merge-descriptors/package.json +0 -39
  589. package/client/node_modules/methods/HISTORY.md +0 -29
  590. package/client/node_modules/methods/LICENSE +0 -24
  591. package/client/node_modules/methods/README.md +0 -51
  592. package/client/node_modules/methods/index.js +0 -69
  593. package/client/node_modules/methods/package.json +0 -36
  594. package/client/node_modules/mime/CHANGELOG.md +0 -164
  595. package/client/node_modules/mime/LICENSE +0 -21
  596. package/client/node_modules/mime/README.md +0 -90
  597. package/client/node_modules/mime/cli.js +0 -8
  598. package/client/node_modules/mime/mime.js +0 -108
  599. package/client/node_modules/mime/package.json +0 -44
  600. package/client/node_modules/mime/src/build.js +0 -53
  601. package/client/node_modules/mime/src/test.js +0 -60
  602. package/client/node_modules/mime/types.json +0 -1
  603. package/client/node_modules/mime-db/HISTORY.md +0 -507
  604. package/client/node_modules/mime-db/LICENSE +0 -23
  605. package/client/node_modules/mime-db/README.md +0 -100
  606. package/client/node_modules/mime-db/db.json +0 -8519
  607. package/client/node_modules/mime-db/index.js +0 -12
  608. package/client/node_modules/mime-db/package.json +0 -60
  609. package/client/node_modules/mime-types/HISTORY.md +0 -397
  610. package/client/node_modules/mime-types/LICENSE +0 -23
  611. package/client/node_modules/mime-types/README.md +0 -113
  612. package/client/node_modules/mime-types/index.js +0 -188
  613. package/client/node_modules/mime-types/package.json +0 -44
  614. package/client/node_modules/ms/index.js +0 -152
  615. package/client/node_modules/ms/license.md +0 -21
  616. package/client/node_modules/ms/package.json +0 -37
  617. package/client/node_modules/ms/readme.md +0 -51
  618. package/client/node_modules/negotiator/HISTORY.md +0 -108
  619. package/client/node_modules/negotiator/LICENSE +0 -24
  620. package/client/node_modules/negotiator/README.md +0 -203
  621. package/client/node_modules/negotiator/index.js +0 -82
  622. package/client/node_modules/negotiator/lib/charset.js +0 -169
  623. package/client/node_modules/negotiator/lib/encoding.js +0 -184
  624. package/client/node_modules/negotiator/lib/language.js +0 -179
  625. package/client/node_modules/negotiator/lib/mediaType.js +0 -294
  626. package/client/node_modules/negotiator/package.json +0 -42
  627. package/client/node_modules/object-inspect/.eslintrc +0 -53
  628. package/client/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  629. package/client/node_modules/object-inspect/.nycrc +0 -13
  630. package/client/node_modules/object-inspect/CHANGELOG.md +0 -424
  631. package/client/node_modules/object-inspect/LICENSE +0 -21
  632. package/client/node_modules/object-inspect/example/all.js +0 -23
  633. package/client/node_modules/object-inspect/example/circular.js +0 -6
  634. package/client/node_modules/object-inspect/example/fn.js +0 -5
  635. package/client/node_modules/object-inspect/example/inspect.js +0 -10
  636. package/client/node_modules/object-inspect/index.js +0 -544
  637. package/client/node_modules/object-inspect/package-support.json +0 -20
  638. package/client/node_modules/object-inspect/package.json +0 -105
  639. package/client/node_modules/object-inspect/readme.markdown +0 -84
  640. package/client/node_modules/object-inspect/test/bigint.js +0 -58
  641. package/client/node_modules/object-inspect/test/browser/dom.js +0 -15
  642. package/client/node_modules/object-inspect/test/circular.js +0 -16
  643. package/client/node_modules/object-inspect/test/deep.js +0 -12
  644. package/client/node_modules/object-inspect/test/element.js +0 -53
  645. package/client/node_modules/object-inspect/test/err.js +0 -48
  646. package/client/node_modules/object-inspect/test/fakes.js +0 -29
  647. package/client/node_modules/object-inspect/test/fn.js +0 -76
  648. package/client/node_modules/object-inspect/test/global.js +0 -17
  649. package/client/node_modules/object-inspect/test/has.js +0 -15
  650. package/client/node_modules/object-inspect/test/holes.js +0 -15
  651. package/client/node_modules/object-inspect/test/indent-option.js +0 -271
  652. package/client/node_modules/object-inspect/test/inspect.js +0 -139
  653. package/client/node_modules/object-inspect/test/lowbyte.js +0 -12
  654. package/client/node_modules/object-inspect/test/number.js +0 -58
  655. package/client/node_modules/object-inspect/test/quoteStyle.js +0 -26
  656. package/client/node_modules/object-inspect/test/toStringTag.js +0 -40
  657. package/client/node_modules/object-inspect/test/undef.js +0 -12
  658. package/client/node_modules/object-inspect/test/values.js +0 -261
  659. package/client/node_modules/object-inspect/test-core-js.js +0 -26
  660. package/client/node_modules/object-inspect/util.inspect.js +0 -1
  661. package/client/node_modules/on-finished/HISTORY.md +0 -98
  662. package/client/node_modules/on-finished/LICENSE +0 -23
  663. package/client/node_modules/on-finished/README.md +0 -162
  664. package/client/node_modules/on-finished/index.js +0 -234
  665. package/client/node_modules/on-finished/package.json +0 -39
  666. package/client/node_modules/open/index.d.ts +0 -153
  667. package/client/node_modules/open/index.js +0 -334
  668. package/client/node_modules/open/license +0 -9
  669. package/client/node_modules/open/package.json +0 -61
  670. package/client/node_modules/open/readme.md +0 -171
  671. package/client/node_modules/open/xdg-open +0 -1066
  672. package/client/node_modules/parseurl/HISTORY.md +0 -58
  673. package/client/node_modules/parseurl/LICENSE +0 -24
  674. package/client/node_modules/parseurl/README.md +0 -133
  675. package/client/node_modules/parseurl/index.js +0 -158
  676. package/client/node_modules/parseurl/package.json +0 -40
  677. package/client/node_modules/path-to-regexp/LICENSE +0 -21
  678. package/client/node_modules/path-to-regexp/Readme.md +0 -35
  679. package/client/node_modules/path-to-regexp/index.js +0 -158
  680. package/client/node_modules/path-to-regexp/package.json +0 -30
  681. package/client/node_modules/proxy-addr/HISTORY.md +0 -161
  682. package/client/node_modules/proxy-addr/LICENSE +0 -22
  683. package/client/node_modules/proxy-addr/README.md +0 -139
  684. package/client/node_modules/proxy-addr/index.js +0 -327
  685. package/client/node_modules/proxy-addr/package.json +0 -47
  686. package/client/node_modules/qs/.editorconfig +0 -46
  687. package/client/node_modules/qs/.github/FUNDING.yml +0 -12
  688. package/client/node_modules/qs/.github/SECURITY.md +0 -11
  689. package/client/node_modules/qs/.github/THREAT_MODEL.md +0 -78
  690. package/client/node_modules/qs/.nycrc +0 -13
  691. package/client/node_modules/qs/CHANGELOG.md +0 -822
  692. package/client/node_modules/qs/LICENSE.md +0 -29
  693. package/client/node_modules/qs/README.md +0 -758
  694. package/client/node_modules/qs/dist/qs.js +0 -141
  695. package/client/node_modules/qs/eslint.config.mjs +0 -57
  696. package/client/node_modules/qs/lib/formats.js +0 -23
  697. package/client/node_modules/qs/lib/index.js +0 -11
  698. package/client/node_modules/qs/lib/parse.js +0 -403
  699. package/client/node_modules/qs/lib/stringify.js +0 -363
  700. package/client/node_modules/qs/lib/utils.js +0 -342
  701. package/client/node_modules/qs/package.json +0 -94
  702. package/client/node_modules/qs/test/empty-keys-cases.js +0 -267
  703. package/client/node_modules/qs/test/parse.js +0 -1703
  704. package/client/node_modules/qs/test/stringify.js +0 -1448
  705. package/client/node_modules/qs/test/utils.js +0 -432
  706. package/client/node_modules/range-parser/HISTORY.md +0 -56
  707. package/client/node_modules/range-parser/LICENSE +0 -23
  708. package/client/node_modules/range-parser/README.md +0 -84
  709. package/client/node_modules/range-parser/index.js +0 -162
  710. package/client/node_modules/range-parser/package.json +0 -44
  711. package/client/node_modules/raw-body/LICENSE +0 -22
  712. package/client/node_modules/raw-body/README.md +0 -223
  713. package/client/node_modules/raw-body/index.d.ts +0 -87
  714. package/client/node_modules/raw-body/index.js +0 -336
  715. package/client/node_modules/raw-body/package.json +0 -47
  716. package/client/node_modules/safe-buffer/LICENSE +0 -21
  717. package/client/node_modules/safe-buffer/README.md +0 -584
  718. package/client/node_modules/safe-buffer/index.d.ts +0 -187
  719. package/client/node_modules/safe-buffer/index.js +0 -65
  720. package/client/node_modules/safe-buffer/package.json +0 -51
  721. package/client/node_modules/safer-buffer/LICENSE +0 -21
  722. package/client/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  723. package/client/node_modules/safer-buffer/Readme.md +0 -156
  724. package/client/node_modules/safer-buffer/dangerous.js +0 -58
  725. package/client/node_modules/safer-buffer/package.json +0 -34
  726. package/client/node_modules/safer-buffer/safer.js +0 -77
  727. package/client/node_modules/safer-buffer/tests.js +0 -406
  728. package/client/node_modules/send/HISTORY.md +0 -538
  729. package/client/node_modules/send/LICENSE +0 -23
  730. package/client/node_modules/send/README.md +0 -327
  731. package/client/node_modules/send/SECURITY.md +0 -24
  732. package/client/node_modules/send/index.js +0 -1142
  733. package/client/node_modules/send/node_modules/ms/index.js +0 -162
  734. package/client/node_modules/send/node_modules/ms/license.md +0 -21
  735. package/client/node_modules/send/node_modules/ms/package.json +0 -38
  736. package/client/node_modules/send/node_modules/ms/readme.md +0 -59
  737. package/client/node_modules/send/package.json +0 -62
  738. package/client/node_modules/serve-static/HISTORY.md +0 -493
  739. package/client/node_modules/serve-static/LICENSE +0 -25
  740. package/client/node_modules/serve-static/README.md +0 -257
  741. package/client/node_modules/serve-static/index.js +0 -209
  742. package/client/node_modules/serve-static/package.json +0 -42
  743. package/client/node_modules/setprototypeof/LICENSE +0 -13
  744. package/client/node_modules/setprototypeof/README.md +0 -31
  745. package/client/node_modules/setprototypeof/index.d.ts +0 -2
  746. package/client/node_modules/setprototypeof/index.js +0 -17
  747. package/client/node_modules/setprototypeof/package.json +0 -38
  748. package/client/node_modules/setprototypeof/test/index.js +0 -24
  749. package/client/node_modules/side-channel/.editorconfig +0 -9
  750. package/client/node_modules/side-channel/.eslintrc +0 -12
  751. package/client/node_modules/side-channel/.github/FUNDING.yml +0 -12
  752. package/client/node_modules/side-channel/.nycrc +0 -13
  753. package/client/node_modules/side-channel/CHANGELOG.md +0 -120
  754. package/client/node_modules/side-channel/LICENSE +0 -21
  755. package/client/node_modules/side-channel/README.md +0 -61
  756. package/client/node_modules/side-channel/index.d.ts +0 -14
  757. package/client/node_modules/side-channel/index.js +0 -46
  758. package/client/node_modules/side-channel/package.json +0 -85
  759. package/client/node_modules/side-channel/test/index.js +0 -120
  760. package/client/node_modules/side-channel/tsconfig.json +0 -9
  761. package/client/node_modules/side-channel-list/.editorconfig +0 -9
  762. package/client/node_modules/side-channel-list/.eslintrc +0 -11
  763. package/client/node_modules/side-channel-list/.github/FUNDING.yml +0 -12
  764. package/client/node_modules/side-channel-list/.nycrc +0 -13
  765. package/client/node_modules/side-channel-list/CHANGELOG.md +0 -36
  766. package/client/node_modules/side-channel-list/LICENSE +0 -21
  767. package/client/node_modules/side-channel-list/README.md +0 -62
  768. package/client/node_modules/side-channel-list/index.d.ts +0 -13
  769. package/client/node_modules/side-channel-list/index.js +0 -111
  770. package/client/node_modules/side-channel-list/list.d.ts +0 -14
  771. package/client/node_modules/side-channel-list/package.json +0 -77
  772. package/client/node_modules/side-channel-list/test/index.js +0 -154
  773. package/client/node_modules/side-channel-list/tsconfig.json +0 -9
  774. package/client/node_modules/side-channel-map/.editorconfig +0 -9
  775. package/client/node_modules/side-channel-map/.eslintrc +0 -11
  776. package/client/node_modules/side-channel-map/.github/FUNDING.yml +0 -12
  777. package/client/node_modules/side-channel-map/.nycrc +0 -13
  778. package/client/node_modules/side-channel-map/CHANGELOG.md +0 -22
  779. package/client/node_modules/side-channel-map/LICENSE +0 -21
  780. package/client/node_modules/side-channel-map/README.md +0 -62
  781. package/client/node_modules/side-channel-map/index.d.ts +0 -15
  782. package/client/node_modules/side-channel-map/index.js +0 -68
  783. package/client/node_modules/side-channel-map/package.json +0 -80
  784. package/client/node_modules/side-channel-map/test/index.js +0 -114
  785. package/client/node_modules/side-channel-map/tsconfig.json +0 -9
  786. package/client/node_modules/side-channel-weakmap/.editorconfig +0 -9
  787. package/client/node_modules/side-channel-weakmap/.eslintrc +0 -12
  788. package/client/node_modules/side-channel-weakmap/.github/FUNDING.yml +0 -12
  789. package/client/node_modules/side-channel-weakmap/.nycrc +0 -13
  790. package/client/node_modules/side-channel-weakmap/CHANGELOG.md +0 -28
  791. package/client/node_modules/side-channel-weakmap/LICENSE +0 -21
  792. package/client/node_modules/side-channel-weakmap/README.md +0 -62
  793. package/client/node_modules/side-channel-weakmap/index.d.ts +0 -15
  794. package/client/node_modules/side-channel-weakmap/index.js +0 -84
  795. package/client/node_modules/side-channel-weakmap/package.json +0 -87
  796. package/client/node_modules/side-channel-weakmap/test/index.js +0 -114
  797. package/client/node_modules/side-channel-weakmap/tsconfig.json +0 -9
  798. package/client/node_modules/statuses/HISTORY.md +0 -87
  799. package/client/node_modules/statuses/LICENSE +0 -23
  800. package/client/node_modules/statuses/README.md +0 -139
  801. package/client/node_modules/statuses/codes.json +0 -65
  802. package/client/node_modules/statuses/index.js +0 -146
  803. package/client/node_modules/statuses/package.json +0 -49
  804. package/client/node_modules/toidentifier/HISTORY.md +0 -9
  805. package/client/node_modules/toidentifier/LICENSE +0 -21
  806. package/client/node_modules/toidentifier/README.md +0 -61
  807. package/client/node_modules/toidentifier/index.js +0 -32
  808. package/client/node_modules/toidentifier/package.json +0 -38
  809. package/client/node_modules/type-is/HISTORY.md +0 -259
  810. package/client/node_modules/type-is/LICENSE +0 -23
  811. package/client/node_modules/type-is/README.md +0 -170
  812. package/client/node_modules/type-is/index.js +0 -266
  813. package/client/node_modules/type-is/package.json +0 -45
  814. package/client/node_modules/typescript/LICENSE.txt +0 -55
  815. package/client/node_modules/typescript/README.md +0 -50
  816. package/client/node_modules/typescript/SECURITY.md +0 -41
  817. package/client/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  818. package/client/node_modules/typescript/bin/tsc +0 -2
  819. package/client/node_modules/typescript/bin/tsserver +0 -2
  820. package/client/node_modules/typescript/lib/_tsc.js +0 -133818
  821. package/client/node_modules/typescript/lib/_tsserver.js +0 -659
  822. package/client/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  823. package/client/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  824. package/client/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  825. package/client/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  826. package/client/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  827. package/client/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  828. package/client/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  829. package/client/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  830. package/client/node_modules/typescript/lib/lib.d.ts +0 -22
  831. package/client/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  832. package/client/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  833. package/client/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  834. package/client/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  835. package/client/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  836. package/client/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  837. package/client/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  838. package/client/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  839. package/client/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  840. package/client/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  841. package/client/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  842. package/client/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  843. package/client/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  844. package/client/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  845. package/client/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  846. package/client/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  847. package/client/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  848. package/client/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  849. package/client/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  850. package/client/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  851. package/client/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  852. package/client/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  853. package/client/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  854. package/client/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  855. package/client/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  856. package/client/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  857. package/client/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  858. package/client/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  859. package/client/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  860. package/client/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  861. package/client/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  862. package/client/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  863. package/client/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  864. package/client/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  865. package/client/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  866. package/client/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  867. package/client/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  868. package/client/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  869. package/client/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  870. package/client/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  871. package/client/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  872. package/client/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  873. package/client/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  874. package/client/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  875. package/client/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  876. package/client/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  877. package/client/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  878. package/client/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  879. package/client/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  880. package/client/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  881. package/client/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  882. package/client/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  883. package/client/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  884. package/client/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  885. package/client/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  886. package/client/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  887. package/client/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  888. package/client/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  889. package/client/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  890. package/client/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  891. package/client/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  892. package/client/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  893. package/client/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  894. package/client/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  895. package/client/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  896. package/client/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  897. package/client/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  898. package/client/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  899. package/client/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  900. package/client/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  901. package/client/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  902. package/client/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  903. package/client/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  904. package/client/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  905. package/client/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  906. package/client/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  907. package/client/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  908. package/client/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  909. package/client/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  910. package/client/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  911. package/client/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  912. package/client/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  913. package/client/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  914. package/client/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  915. package/client/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  916. package/client/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  917. package/client/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  918. package/client/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  919. package/client/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  920. package/client/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  921. package/client/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  922. package/client/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  923. package/client/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  924. package/client/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  925. package/client/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  926. package/client/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  927. package/client/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  928. package/client/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  929. package/client/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  930. package/client/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  931. package/client/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  932. package/client/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  933. package/client/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  934. package/client/node_modules/typescript/lib/tsc.js +0 -8
  935. package/client/node_modules/typescript/lib/tsserver.js +0 -8
  936. package/client/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  937. package/client/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  938. package/client/node_modules/typescript/lib/typesMap.json +0 -497
  939. package/client/node_modules/typescript/lib/typescript.d.ts +0 -11437
  940. package/client/node_modules/typescript/lib/typescript.js +0 -200276
  941. package/client/node_modules/typescript/lib/typingsInstaller.js +0 -8
  942. package/client/node_modules/typescript/lib/watchGuard.js +0 -53
  943. package/client/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  944. package/client/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  945. package/client/node_modules/typescript/package.json +0 -120
  946. package/client/node_modules/undici-types/LICENSE +0 -21
  947. package/client/node_modules/undici-types/README.md +0 -6
  948. package/client/node_modules/undici-types/agent.d.ts +0 -31
  949. package/client/node_modules/undici-types/api.d.ts +0 -43
  950. package/client/node_modules/undici-types/balanced-pool.d.ts +0 -29
  951. package/client/node_modules/undici-types/cache.d.ts +0 -36
  952. package/client/node_modules/undici-types/client.d.ts +0 -108
  953. package/client/node_modules/undici-types/connector.d.ts +0 -34
  954. package/client/node_modules/undici-types/content-type.d.ts +0 -21
  955. package/client/node_modules/undici-types/cookies.d.ts +0 -28
  956. package/client/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  957. package/client/node_modules/undici-types/dispatcher.d.ts +0 -256
  958. package/client/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  959. package/client/node_modules/undici-types/errors.d.ts +0 -149
  960. package/client/node_modules/undici-types/eventsource.d.ts +0 -61
  961. package/client/node_modules/undici-types/fetch.d.ts +0 -209
  962. package/client/node_modules/undici-types/file.d.ts +0 -39
  963. package/client/node_modules/undici-types/filereader.d.ts +0 -54
  964. package/client/node_modules/undici-types/formdata.d.ts +0 -108
  965. package/client/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  966. package/client/node_modules/undici-types/global-origin.d.ts +0 -7
  967. package/client/node_modules/undici-types/handlers.d.ts +0 -15
  968. package/client/node_modules/undici-types/header.d.ts +0 -4
  969. package/client/node_modules/undici-types/index.d.ts +0 -71
  970. package/client/node_modules/undici-types/interceptors.d.ts +0 -17
  971. package/client/node_modules/undici-types/mock-agent.d.ts +0 -50
  972. package/client/node_modules/undici-types/mock-client.d.ts +0 -25
  973. package/client/node_modules/undici-types/mock-errors.d.ts +0 -12
  974. package/client/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  975. package/client/node_modules/undici-types/mock-pool.d.ts +0 -25
  976. package/client/node_modules/undici-types/package.json +0 -55
  977. package/client/node_modules/undici-types/patch.d.ts +0 -33
  978. package/client/node_modules/undici-types/pool-stats.d.ts +0 -19
  979. package/client/node_modules/undici-types/pool.d.ts +0 -39
  980. package/client/node_modules/undici-types/proxy-agent.d.ts +0 -28
  981. package/client/node_modules/undici-types/readable.d.ts +0 -65
  982. package/client/node_modules/undici-types/retry-agent.d.ts +0 -8
  983. package/client/node_modules/undici-types/retry-handler.d.ts +0 -116
  984. package/client/node_modules/undici-types/util.d.ts +0 -18
  985. package/client/node_modules/undici-types/webidl.d.ts +0 -228
  986. package/client/node_modules/undici-types/websocket.d.ts +0 -150
  987. package/client/node_modules/unpipe/HISTORY.md +0 -4
  988. package/client/node_modules/unpipe/LICENSE +0 -22
  989. package/client/node_modules/unpipe/README.md +0 -43
  990. package/client/node_modules/unpipe/index.js +0 -69
  991. package/client/node_modules/unpipe/package.json +0 -27
  992. package/client/node_modules/utils-merge/LICENSE +0 -20
  993. package/client/node_modules/utils-merge/README.md +0 -34
  994. package/client/node_modules/utils-merge/index.js +0 -23
  995. package/client/node_modules/utils-merge/package.json +0 -40
  996. package/client/node_modules/vary/HISTORY.md +0 -39
  997. package/client/node_modules/vary/LICENSE +0 -22
  998. package/client/node_modules/vary/README.md +0 -101
  999. package/client/node_modules/vary/index.js +0 -149
  1000. package/client/node_modules/vary/package.json +0 -43
  1001. package/client/obfuscate.js +0 -132
  1002. package/client/package-lock.json +0 -956
  1003. package/client/package.json +0 -32
  1004. package/client/src/cli.ts +0 -273
  1005. package/client/src/dashboard.ts +0 -85
  1006. package/client/src/executor.ts +0 -65
  1007. package/client/src/filters/generic.ts +0 -60
  1008. package/client/src/filters/git.ts +0 -150
  1009. package/client/src/filters/index.ts +0 -113
  1010. package/client/src/filters/js.ts +0 -102
  1011. package/client/src/filters/python.ts +0 -152
  1012. package/client/src/index.html +0 -779
  1013. package/client/src/mcp.ts +0 -88
  1014. package/client/src/redactor.ts +0 -54
  1015. package/client/src/seed.ts +0 -35
  1016. package/client/src/shims.ts +0 -142
  1017. package/client/src/simulate.ts +0 -98
  1018. package/client/src/sync.ts +0 -252
  1019. package/client/src/tracker.ts +0 -269
  1020. package/client/tsconfig.json +0 -14
  1021. package/install.bat +0 -48
  1022. package/test_e2e.js +0 -156
  1023. package/tsconfig.json +0 -15
  1024. /package/{client/dist/index.html → index.html} +0 -0
@@ -1,1001 +0,0 @@
1
- /**
2
- * The `node:vm` module enables compiling and running code within V8 Virtual
3
- * Machine contexts.
4
- *
5
- * **The `node:vm` module is not a security**
6
- * **mechanism. Do not use it to run untrusted code.**
7
- *
8
- * JavaScript code can be compiled and run immediately or
9
- * compiled, saved, and run later.
10
- *
11
- * A common use case is to run the code in a different V8 Context. This means
12
- * invoked code has a different global object than the invoking code.
13
- *
14
- * One can provide the context by `contextifying` an
15
- * object. The invoked code treats any property in the context like a
16
- * global variable. Any changes to global variables caused by the invoked
17
- * code are reflected in the context object.
18
- *
19
- * ```js
20
- * import vm from 'node:vm';
21
- *
22
- * const x = 1;
23
- *
24
- * const context = { x: 2 };
25
- * vm.createContext(context); // Contextify the object.
26
- *
27
- * const code = 'x += 40; var y = 17;';
28
- * // `x` and `y` are global variables in the context.
29
- * // Initially, x has the value 2 because that is the value of context.x.
30
- * vm.runInContext(code, context);
31
- *
32
- * console.log(context.x); // 42
33
- * console.log(context.y); // 17
34
- *
35
- * console.log(x); // 1; y is not defined.
36
- * ```
37
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/vm.js)
38
- */
39
- declare module "vm" {
40
- import { NonSharedBuffer } from "node:buffer";
41
- import { ImportAttributes } from "node:module";
42
- interface Context extends NodeJS.Dict<any> {}
43
- interface BaseOptions {
44
- /**
45
- * Specifies the filename used in stack traces produced by this script.
46
- * @default ''
47
- */
48
- filename?: string | undefined;
49
- /**
50
- * Specifies the line number offset that is displayed in stack traces produced by this script.
51
- * @default 0
52
- */
53
- lineOffset?: number | undefined;
54
- /**
55
- * Specifies the column number offset that is displayed in stack traces produced by this script.
56
- * @default 0
57
- */
58
- columnOffset?: number | undefined;
59
- }
60
- type DynamicModuleLoader<T> = (
61
- specifier: string,
62
- referrer: T,
63
- importAttributes: ImportAttributes,
64
- ) => Module | Promise<Module>;
65
- interface ScriptOptions extends BaseOptions {
66
- /**
67
- * Provides an optional data with V8's code cache data for the supplied source.
68
- */
69
- cachedData?: NodeJS.ArrayBufferView | undefined;
70
- /** @deprecated in favor of `script.createCachedData()` */
71
- produceCachedData?: boolean | undefined;
72
- /**
73
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
74
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
75
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
76
- */
77
- importModuleDynamically?:
78
- | DynamicModuleLoader<Script>
79
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
80
- | undefined;
81
- }
82
- interface RunningScriptOptions extends BaseOptions {
83
- /**
84
- * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
85
- * @default true
86
- */
87
- displayErrors?: boolean | undefined;
88
- /**
89
- * Specifies the number of milliseconds to execute code before terminating execution.
90
- * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
91
- */
92
- timeout?: number | undefined;
93
- /**
94
- * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
95
- * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
96
- * If execution is terminated, an `Error` will be thrown.
97
- * @default false
98
- */
99
- breakOnSigint?: boolean | undefined;
100
- }
101
- interface RunningScriptInNewContextOptions
102
- extends RunningScriptOptions, Pick<CreateContextOptions, "microtaskMode">
103
- {
104
- /**
105
- * Human-readable name of the newly created context.
106
- */
107
- contextName?: CreateContextOptions["name"] | undefined;
108
- /**
109
- * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
110
- * but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
111
- * Most notably, this string should omit the trailing slash, as that denotes a path.
112
- */
113
- contextOrigin?: CreateContextOptions["origin"] | undefined;
114
- contextCodeGeneration?: CreateContextOptions["codeGeneration"] | undefined;
115
- }
116
- interface RunningCodeOptions extends RunningScriptOptions, Pick<ScriptOptions, "cachedData"> {
117
- /**
118
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
119
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
120
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
121
- */
122
- importModuleDynamically?:
123
- | DynamicModuleLoader<Script>
124
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
125
- | undefined;
126
- }
127
- interface RunningCodeInNewContextOptions
128
- extends RunningScriptInNewContextOptions, Pick<ScriptOptions, "cachedData">
129
- {
130
- /**
131
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
132
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
133
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
134
- */
135
- importModuleDynamically?:
136
- | DynamicModuleLoader<Script>
137
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
138
- | undefined;
139
- }
140
- interface CompileFunctionOptions extends BaseOptions, Pick<ScriptOptions, "cachedData" | "produceCachedData"> {
141
- /**
142
- * The sandbox/context in which the said function should be compiled in.
143
- */
144
- parsingContext?: Context | undefined;
145
- /**
146
- * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
147
- */
148
- contextExtensions?: Object[] | undefined;
149
- /**
150
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
151
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
152
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
153
- */
154
- importModuleDynamically?:
155
- | DynamicModuleLoader<ReturnType<typeof compileFunction>>
156
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
157
- | undefined;
158
- }
159
- interface CreateContextOptions {
160
- /**
161
- * Human-readable name of the newly created context.
162
- * @default 'VM Context i' Where i is an ascending numerical index of the created context.
163
- */
164
- name?: string | undefined;
165
- /**
166
- * Corresponds to the newly created context for display purposes.
167
- * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary),
168
- * like the value of the `url.origin` property of a URL object.
169
- * Most notably, this string should omit the trailing slash, as that denotes a path.
170
- * @default ''
171
- */
172
- origin?: string | undefined;
173
- codeGeneration?:
174
- | {
175
- /**
176
- * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc)
177
- * will throw an EvalError.
178
- * @default true
179
- */
180
- strings?: boolean | undefined;
181
- /**
182
- * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.
183
- * @default true
184
- */
185
- wasm?: boolean | undefined;
186
- }
187
- | undefined;
188
- /**
189
- * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
190
- */
191
- microtaskMode?: "afterEvaluate" | undefined;
192
- /**
193
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
194
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
195
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
196
- */
197
- importModuleDynamically?:
198
- | DynamicModuleLoader<Context>
199
- | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
200
- | undefined;
201
- }
202
- type MeasureMemoryMode = "summary" | "detailed";
203
- interface MeasureMemoryOptions {
204
- /**
205
- * @default 'summary'
206
- */
207
- mode?: MeasureMemoryMode | undefined;
208
- /**
209
- * @default 'default'
210
- */
211
- execution?: "default" | "eager" | undefined;
212
- }
213
- interface MemoryMeasurement {
214
- total: {
215
- jsMemoryEstimate: number;
216
- jsMemoryRange: [number, number];
217
- };
218
- }
219
- /**
220
- * Instances of the `vm.Script` class contain precompiled scripts that can be
221
- * executed in specific contexts.
222
- * @since v0.3.1
223
- */
224
- class Script {
225
- constructor(code: string, options?: ScriptOptions | string);
226
- /**
227
- * Runs the compiled code contained by the `vm.Script` object within the given `contextifiedObject` and returns the result. Running code does not have access
228
- * to local scope.
229
- *
230
- * The following example compiles code that increments a global variable, sets
231
- * the value of another global variable, then execute the code multiple times.
232
- * The globals are contained in the `context` object.
233
- *
234
- * ```js
235
- * import vm from 'node:vm';
236
- *
237
- * const context = {
238
- * animal: 'cat',
239
- * count: 2,
240
- * };
241
- *
242
- * const script = new vm.Script('count += 1; name = "kitty";');
243
- *
244
- * vm.createContext(context);
245
- * for (let i = 0; i < 10; ++i) {
246
- * script.runInContext(context);
247
- * }
248
- *
249
- * console.log(context);
250
- * // Prints: { animal: 'cat', count: 12, name: 'kitty' }
251
- * ```
252
- *
253
- * Using the `timeout` or `breakOnSigint` options will result in new event loops
254
- * and corresponding threads being started, which have a non-zero performance
255
- * overhead.
256
- * @since v0.3.1
257
- * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method.
258
- * @return the result of the very last statement executed in the script.
259
- */
260
- runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
261
- /**
262
- * This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
263
- * It does several things at once:
264
- *
265
- * 1. Creates a new context.
266
- * 2. If `contextObject` is an object, contextifies it with the new context.
267
- * If `contextObject` is undefined, creates a new object and contextifies it.
268
- * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
269
- * 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
270
- * does not have access to the scope in which this method is called.
271
- * 4. Returns the result.
272
- *
273
- * The following example compiles code that sets a global variable, then executes
274
- * the code multiple times in different contexts. The globals are set on and
275
- * contained within each individual `context`.
276
- *
277
- * ```js
278
- * const vm = require('node:vm');
279
- *
280
- * const script = new vm.Script('globalVar = "set"');
281
- *
282
- * const contexts = [{}, {}, {}];
283
- * contexts.forEach((context) => {
284
- * script.runInNewContext(context);
285
- * });
286
- *
287
- * console.log(contexts);
288
- * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
289
- *
290
- * // This would throw if the context is created from a contextified object.
291
- * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
292
- * // global objects that can be frozen.
293
- * const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
294
- * const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
295
- * ```
296
- * @since v0.3.1
297
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
298
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
299
- * @return the result of the very last statement executed in the script.
300
- */
301
- runInNewContext(
302
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
303
- options?: RunningScriptInNewContextOptions,
304
- ): any;
305
- /**
306
- * Runs the compiled code contained by the `vm.Script` within the context of the
307
- * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
308
- *
309
- * The following example compiles code that increments a `global` variable then
310
- * executes that code multiple times:
311
- *
312
- * ```js
313
- * import vm from 'node:vm';
314
- *
315
- * global.globalVar = 0;
316
- *
317
- * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' });
318
- *
319
- * for (let i = 0; i < 1000; ++i) {
320
- * script.runInThisContext();
321
- * }
322
- *
323
- * console.log(globalVar);
324
- *
325
- * // 1000
326
- * ```
327
- * @since v0.3.1
328
- * @return the result of the very last statement executed in the script.
329
- */
330
- runInThisContext(options?: RunningScriptOptions): any;
331
- /**
332
- * Creates a code cache that can be used with the `Script` constructor's `cachedData` option. Returns a `Buffer`. This method may be called at any
333
- * time and any number of times.
334
- *
335
- * The code cache of the `Script` doesn't contain any JavaScript observable
336
- * states. The code cache is safe to be saved along side the script source and
337
- * used to construct new `Script` instances multiple times.
338
- *
339
- * Functions in the `Script` source can be marked as lazily compiled and they are
340
- * not compiled at construction of the `Script`. These functions are going to be
341
- * compiled when they are invoked the first time. The code cache serializes the
342
- * metadata that V8 currently knows about the `Script` that it can use to speed up
343
- * future compilations.
344
- *
345
- * ```js
346
- * const script = new vm.Script(`
347
- * function add(a, b) {
348
- * return a + b;
349
- * }
350
- *
351
- * const x = add(1, 2);
352
- * `);
353
- *
354
- * const cacheWithoutAdd = script.createCachedData();
355
- * // In `cacheWithoutAdd` the function `add()` is marked for full compilation
356
- * // upon invocation.
357
- *
358
- * script.runInThisContext();
359
- *
360
- * const cacheWithAdd = script.createCachedData();
361
- * // `cacheWithAdd` contains fully compiled function `add()`.
362
- * ```
363
- * @since v10.6.0
364
- */
365
- createCachedData(): NonSharedBuffer;
366
- /** @deprecated in favor of `script.createCachedData()` */
367
- cachedDataProduced?: boolean;
368
- /**
369
- * When `cachedData` is supplied to create the `vm.Script`, this value will be set
370
- * to either `true` or `false` depending on acceptance of the data by V8.
371
- * Otherwise the value is `undefined`.
372
- * @since v5.7.0
373
- */
374
- cachedDataRejected?: boolean;
375
- cachedData?: NonSharedBuffer;
376
- /**
377
- * When the script is compiled from a source that contains a source map magic
378
- * comment, this property will be set to the URL of the source map.
379
- *
380
- * ```js
381
- * import vm from 'node:vm';
382
- *
383
- * const script = new vm.Script(`
384
- * function myFunc() {}
385
- * //# sourceMappingURL=sourcemap.json
386
- * `);
387
- *
388
- * console.log(script.sourceMapURL);
389
- * // Prints: sourcemap.json
390
- * ```
391
- * @since v19.1.0, v18.13.0
392
- */
393
- sourceMapURL: string | undefined;
394
- }
395
- /**
396
- * If the given `contextObject` is an object, the `vm.createContext()` method will
397
- * [prepare that object](https://nodejs.org/docs/latest-v20.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
398
- * and return a reference to it so that it can be used in calls to {@link runInContext} or
399
- * [`script.runInContext()`](https://nodejs.org/docs/latest-v20.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
400
- * Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
401
- * existing properties but also having the built-in objects and functions any standard
402
- * [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
403
- * variables will remain unchanged.
404
- *
405
- * ```js
406
- * const vm = require('node:vm');
407
- *
408
- * global.globalVar = 3;
409
- *
410
- * const context = { globalVar: 1 };
411
- * vm.createContext(context);
412
- *
413
- * vm.runInContext('globalVar *= 2;', context);
414
- *
415
- * console.log(context);
416
- * // Prints: { globalVar: 2 }
417
- *
418
- * console.log(global.globalVar);
419
- * // Prints: 3
420
- * ```
421
- *
422
- * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
423
- * empty contextified object will be returned.
424
- *
425
- * When the global object in the newly created context is contextified, it has some quirks
426
- * compared to ordinary global objects. For example, it cannot be frozen. To create a context
427
- * without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
428
- * argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
429
- *
430
- * The `vm.createContext()` method is primarily useful for creating a single
431
- * context that can be used to run multiple scripts. For instance, if emulating a
432
- * web browser, the method can be used to create a single context representing a
433
- * window's global object, then run all `<script>` tags together within that
434
- * context.
435
- *
436
- * The provided `name` and `origin` of the context are made visible through the
437
- * Inspector API.
438
- * @since v0.3.1
439
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
440
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
441
- * @return contextified object.
442
- */
443
- function createContext(
444
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
445
- options?: CreateContextOptions,
446
- ): Context;
447
- /**
448
- * Returns `true` if the given `object` object has been contextified using {@link createContext},
449
- * or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
450
- * @since v0.11.7
451
- */
452
- function isContext(sandbox: Context): boolean;
453
- /**
454
- * The `vm.runInContext()` method compiles `code`, runs it within the context of
455
- * the `contextifiedObject`, then returns the result. Running code does not have
456
- * access to the local scope. The `contextifiedObject` object _must_ have been
457
- * previously `contextified` using the {@link createContext} method.
458
- *
459
- * If `options` is a string, then it specifies the filename.
460
- *
461
- * The following example compiles and executes different scripts using a single `contextified` object:
462
- *
463
- * ```js
464
- * import vm from 'node:vm';
465
- *
466
- * const contextObject = { globalVar: 1 };
467
- * vm.createContext(contextObject);
468
- *
469
- * for (let i = 0; i < 10; ++i) {
470
- * vm.runInContext('globalVar *= 2;', contextObject);
471
- * }
472
- * console.log(contextObject);
473
- * // Prints: { globalVar: 1024 }
474
- * ```
475
- * @since v0.3.1
476
- * @param code The JavaScript code to compile and run.
477
- * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
478
- * @return the result of the very last statement executed in the script.
479
- */
480
- function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
481
- /**
482
- * This method is a shortcut to
483
- * `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
484
- * If `options` is a string, then it specifies the filename.
485
- *
486
- * It does several things at once:
487
- *
488
- * 1. Creates a new context.
489
- * 2. If `contextObject` is an object, contextifies it with the new context.
490
- * If `contextObject` is undefined, creates a new object and contextifies it.
491
- * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
492
- * 3. Compiles the code as a`vm.Script`
493
- * 4. Runs the compield code within the created context. The code does not have access to the scope in
494
- * which this method is called.
495
- * 5. Returns the result.
496
- *
497
- * The following example compiles and executes code that increments a global
498
- * variable and sets a new one. These globals are contained in the `contextObject`.
499
- *
500
- * ```js
501
- * const vm = require('node:vm');
502
- *
503
- * const contextObject = {
504
- * animal: 'cat',
505
- * count: 2,
506
- * };
507
- *
508
- * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
509
- * console.log(contextObject);
510
- * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
511
- *
512
- * // This would throw if the context is created from a contextified object.
513
- * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
514
- * // can be frozen.
515
- * const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
516
- * ```
517
- * @since v0.3.1
518
- * @param code The JavaScript code to compile and run.
519
- * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
520
- * If `undefined`, an empty contextified object will be created for backwards compatibility.
521
- * @return the result of the very last statement executed in the script.
522
- */
523
- function runInNewContext(
524
- code: string,
525
- contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
526
- options?: RunningCodeInNewContextOptions | string,
527
- ): any;
528
- /**
529
- * `vm.runInThisContext()` compiles `code`, runs it within the context of the
530
- * current `global` and returns the result. Running code does not have access to
531
- * local scope, but does have access to the current `global` object.
532
- *
533
- * If `options` is a string, then it specifies the filename.
534
- *
535
- * The following example illustrates using both `vm.runInThisContext()` and
536
- * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
537
- *
538
- * ```js
539
- * import vm from 'node:vm';
540
- * let localVar = 'initial value';
541
- *
542
- * const vmResult = vm.runInThisContext('localVar = "vm";');
543
- * console.log(`vmResult: '${vmResult}', localVar: '${localVar}'`);
544
- * // Prints: vmResult: 'vm', localVar: 'initial value'
545
- *
546
- * const evalResult = eval('localVar = "eval";');
547
- * console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
548
- * // Prints: evalResult: 'eval', localVar: 'eval'
549
- * ```
550
- *
551
- * Because `vm.runInThisContext()` does not have access to the local scope, `localVar` is unchanged. In contrast,
552
- * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
553
- * local scope, so the value `localVar` is changed. In this way `vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
554
- *
555
- * ## Example: Running an HTTP server within a VM
556
- *
557
- * When using either `script.runInThisContext()` or {@link runInThisContext}, the code is executed within the current V8 global
558
- * context. The code passed to this VM context will have its own isolated scope.
559
- *
560
- * In order to run a simple web server using the `node:http` module the code passed
561
- * to the context must either call `require('node:http')` on its own, or have a
562
- * reference to the `node:http` module passed to it. For instance:
563
- *
564
- * ```js
565
- * 'use strict';
566
- * import vm from 'node:vm';
567
- *
568
- * const code = `
569
- * ((require) => {
570
- * const http = require('node:http');
571
- * http.createServer((request, response) => {
572
- * response.writeHead(200, { 'Content-Type': 'text/plain' });
573
- * response.end('Hello World\\n');
574
- * }).listen(8124);
575
- *
576
- * console.log('Server running at http://127.0.0.1:8124/');
577
- * })`;
578
- *
579
- * vm.runInThisContext(code)(require);
580
- * ```
581
- *
582
- * The `require()` in the above case shares the state with the context it is
583
- * passed from. This may introduce risks when untrusted code is executed, e.g.
584
- * altering objects in the context in unwanted ways.
585
- * @since v0.3.1
586
- * @param code The JavaScript code to compile and run.
587
- * @return the result of the very last statement executed in the script.
588
- */
589
- function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
590
- /**
591
- * Compiles the given code into the provided context (if no context is
592
- * supplied, the current context is used), and returns it wrapped inside a
593
- * function with the given `params`.
594
- * @since v10.10.0
595
- * @param code The body of the function to compile.
596
- * @param params An array of strings containing all parameters for the function.
597
- */
598
- function compileFunction(
599
- code: string,
600
- params?: readonly string[],
601
- options?: CompileFunctionOptions,
602
- ): Function & Pick<Script, "cachedData" | "cachedDataProduced" | "cachedDataRejected">;
603
- /**
604
- * Measure the memory known to V8 and used by all contexts known to the
605
- * current V8 isolate, or the main context.
606
- *
607
- * The format of the object that the returned Promise may resolve with is
608
- * specific to the V8 engine and may change from one version of V8 to the next.
609
- *
610
- * The returned result is different from the statistics returned by `v8.getHeapSpaceStatistics()` in that `vm.measureMemory()` measure the
611
- * memory reachable by each V8 specific contexts in the current instance of
612
- * the V8 engine, while the result of `v8.getHeapSpaceStatistics()` measure
613
- * the memory occupied by each heap space in the current V8 instance.
614
- *
615
- * ```js
616
- * import vm from 'node:vm';
617
- * // Measure the memory used by the main context.
618
- * vm.measureMemory({ mode: 'summary' })
619
- * // This is the same as vm.measureMemory()
620
- * .then((result) => {
621
- * // The current format is:
622
- * // {
623
- * // total: {
624
- * // jsMemoryEstimate: 2418479, jsMemoryRange: [ 2418479, 2745799 ]
625
- * // }
626
- * // }
627
- * console.log(result);
628
- * });
629
- *
630
- * const context = vm.createContext({ a: 1 });
631
- * vm.measureMemory({ mode: 'detailed', execution: 'eager' })
632
- * .then((result) => {
633
- * // Reference the context here so that it won't be GC'ed
634
- * // until the measurement is complete.
635
- * console.log(context.a);
636
- * // {
637
- * // total: {
638
- * // jsMemoryEstimate: 2574732,
639
- * // jsMemoryRange: [ 2574732, 2904372 ]
640
- * // },
641
- * // current: {
642
- * // jsMemoryEstimate: 2438996,
643
- * // jsMemoryRange: [ 2438996, 2768636 ]
644
- * // },
645
- * // other: [
646
- * // {
647
- * // jsMemoryEstimate: 135736,
648
- * // jsMemoryRange: [ 135736, 465376 ]
649
- * // }
650
- * // ]
651
- * // }
652
- * console.log(result);
653
- * });
654
- * ```
655
- * @since v13.10.0
656
- * @experimental
657
- */
658
- function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
659
- interface ModuleEvaluateOptions extends Pick<RunningScriptOptions, "breakOnSigint" | "timeout"> {}
660
- type ModuleLinker = (
661
- specifier: string,
662
- referencingModule: Module,
663
- extra: {
664
- /** @deprecated Use `attributes` instead */
665
- assert: ImportAttributes;
666
- attributes: ImportAttributes;
667
- },
668
- ) => Module | Promise<Module>;
669
- type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
670
- /**
671
- * This feature is only available with the `--experimental-vm-modules` command
672
- * flag enabled.
673
- *
674
- * The `vm.Module` class provides a low-level interface for using
675
- * ECMAScript modules in VM contexts. It is the counterpart of the `vm.Script` class that closely mirrors [Module Record](https://262.ecma-international.org/14.0/#sec-abstract-module-records) s as
676
- * defined in the ECMAScript
677
- * specification.
678
- *
679
- * Unlike `vm.Script` however, every `vm.Module` object is bound to a context from
680
- * its creation. Operations on `vm.Module` objects are intrinsically asynchronous,
681
- * in contrast with the synchronous nature of `vm.Script` objects. The use of
682
- * 'async' functions can help with manipulating `vm.Module` objects.
683
- *
684
- * Using a `vm.Module` object requires three distinct steps: creation/parsing,
685
- * linking, and evaluation. These three steps are illustrated in the following
686
- * example.
687
- *
688
- * This implementation lies at a lower level than the `ECMAScript Module
689
- * loader`. There is also no way to interact with the Loader yet, though
690
- * support is planned.
691
- *
692
- * ```js
693
- * import vm from 'node:vm';
694
- *
695
- * const contextifiedObject = vm.createContext({
696
- * secret: 42,
697
- * print: console.log,
698
- * });
699
- *
700
- * // Step 1
701
- * //
702
- * // Create a Module by constructing a new `vm.SourceTextModule` object. This
703
- * // parses the provided source text, throwing a `SyntaxError` if anything goes
704
- * // wrong. By default, a Module is created in the top context. But here, we
705
- * // specify `contextifiedObject` as the context this Module belongs to.
706
- * //
707
- * // Here, we attempt to obtain the default export from the module "foo", and
708
- * // put it into local binding "secret".
709
- *
710
- * const bar = new vm.SourceTextModule(`
711
- * import s from 'foo';
712
- * s;
713
- * print(s);
714
- * `, { context: contextifiedObject });
715
- *
716
- * // Step 2
717
- * //
718
- * // "Link" the imported dependencies of this Module to it.
719
- * //
720
- * // The provided linking callback (the "linker") accepts two arguments: the
721
- * // parent module (`bar` in this case) and the string that is the specifier of
722
- * // the imported module. The callback is expected to return a Module that
723
- * // corresponds to the provided specifier, with certain requirements documented
724
- * // in `module.link()`.
725
- * //
726
- * // If linking has not started for the returned Module, the same linker
727
- * // callback will be called on the returned Module.
728
- * //
729
- * // Even top-level Modules without dependencies must be explicitly linked. The
730
- * // callback provided would never be called, however.
731
- * //
732
- * // The link() method returns a Promise that will be resolved when all the
733
- * // Promises returned by the linker resolve.
734
- * //
735
- * // Note: This is a contrived example in that the linker function creates a new
736
- * // "foo" module every time it is called. In a full-fledged module system, a
737
- * // cache would probably be used to avoid duplicated modules.
738
- *
739
- * async function linker(specifier, referencingModule) {
740
- * if (specifier === 'foo') {
741
- * return new vm.SourceTextModule(`
742
- * // The "secret" variable refers to the global variable we added to
743
- * // "contextifiedObject" when creating the context.
744
- * export default secret;
745
- * `, { context: referencingModule.context });
746
- *
747
- * // Using `contextifiedObject` instead of `referencingModule.context`
748
- * // here would work as well.
749
- * }
750
- * throw new Error(`Unable to resolve dependency: ${specifier}`);
751
- * }
752
- * await bar.link(linker);
753
- *
754
- * // Step 3
755
- * //
756
- * // Evaluate the Module. The evaluate() method returns a promise which will
757
- * // resolve after the module has finished evaluating.
758
- *
759
- * // Prints 42.
760
- * await bar.evaluate();
761
- * ```
762
- * @since v13.0.0, v12.16.0
763
- * @experimental
764
- */
765
- class Module {
766
- /**
767
- * The specifiers of all dependencies of this module. The returned array is frozen
768
- * to disallow any changes to it.
769
- *
770
- * Corresponds to the `[[RequestedModules]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
771
- * the ECMAScript specification.
772
- */
773
- dependencySpecifiers: readonly string[];
774
- /**
775
- * If the `module.status` is `'errored'`, this property contains the exception
776
- * thrown by the module during evaluation. If the status is anything else,
777
- * accessing this property will result in a thrown exception.
778
- *
779
- * The value `undefined` cannot be used for cases where there is not a thrown
780
- * exception due to possible ambiguity with `throw undefined;`.
781
- *
782
- * Corresponds to the `[[EvaluationError]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s
783
- * in the ECMAScript specification.
784
- */
785
- error: any;
786
- /**
787
- * The identifier of the current module, as set in the constructor.
788
- */
789
- identifier: string;
790
- context: Context;
791
- /**
792
- * The namespace object of the module. This is only available after linking
793
- * (`module.link()`) has completed.
794
- *
795
- * Corresponds to the [GetModuleNamespace](https://tc39.es/ecma262/#sec-getmodulenamespace) abstract operation in the ECMAScript
796
- * specification.
797
- */
798
- namespace: Object;
799
- /**
800
- * The current status of the module. Will be one of:
801
- *
802
- * * `'unlinked'`: `module.link()` has not yet been called.
803
- * * `'linking'`: `module.link()` has been called, but not all Promises returned
804
- * by the linker function have been resolved yet.
805
- * * `'linked'`: The module has been linked successfully, and all of its
806
- * dependencies are linked, but `module.evaluate()` has not yet been called.
807
- * * `'evaluating'`: The module is being evaluated through a `module.evaluate()` on
808
- * itself or a parent module.
809
- * * `'evaluated'`: The module has been successfully evaluated.
810
- * * `'errored'`: The module has been evaluated, but an exception was thrown.
811
- *
812
- * Other than `'errored'`, this status string corresponds to the specification's [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)'s `[[Status]]` field. `'errored'`
813
- * corresponds to `'evaluated'` in the specification, but with `[[EvaluationError]]` set to a
814
- * value that is not `undefined`.
815
- */
816
- status: ModuleStatus;
817
- /**
818
- * Evaluate the module.
819
- *
820
- * This must be called after the module has been linked; otherwise it will reject.
821
- * It could be called also when the module has already been evaluated, in which
822
- * case it will either do nothing if the initial evaluation ended in success
823
- * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
824
- * initial evaluation resulted in (`module.status` is `'errored'`).
825
- *
826
- * This method cannot be called while the module is being evaluated
827
- * (`module.status` is `'evaluating'`).
828
- *
829
- * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
830
- * ECMAScript specification.
831
- * @return Fulfills with `undefined` upon success.
832
- */
833
- evaluate(options?: ModuleEvaluateOptions): Promise<void>;
834
- /**
835
- * Link module dependencies. This method must be called before evaluation, and
836
- * can only be called once per module.
837
- *
838
- * The function is expected to return a `Module` object or a `Promise` that
839
- * eventually resolves to a `Module` object. The returned `Module` must satisfy the
840
- * following two invariants:
841
- *
842
- * * It must belong to the same context as the parent `Module`.
843
- * * Its `status` must not be `'errored'`.
844
- *
845
- * If the returned `Module`'s `status` is `'unlinked'`, this method will be
846
- * recursively called on the returned `Module` with the same provided `linker` function.
847
- *
848
- * `link()` returns a `Promise` that will either get resolved when all linking
849
- * instances resolve to a valid `Module`, or rejected if the linker function either
850
- * throws an exception or returns an invalid `Module`.
851
- *
852
- * The linker function roughly corresponds to the implementation-defined [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) abstract operation in the
853
- * ECMAScript
854
- * specification, with a few key differences:
855
- *
856
- * * The linker function is allowed to be asynchronous while [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) is synchronous.
857
- *
858
- * The actual [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation used during module
859
- * linking is one that returns the modules linked during linking. Since at
860
- * that point all modules would have been fully linked already, the [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation is fully synchronous per
861
- * specification.
862
- *
863
- * Corresponds to the [Link() concrete method](https://tc39.es/ecma262/#sec-moduledeclarationlinking) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
864
- * the ECMAScript specification.
865
- */
866
- link(linker: ModuleLinker): Promise<void>;
867
- }
868
- interface SourceTextModuleOptions extends Pick<ScriptOptions, "cachedData" | "columnOffset" | "lineOffset"> {
869
- /**
870
- * String used in stack traces.
871
- * @default 'vm:module(i)' where i is a context-specific ascending index.
872
- */
873
- identifier?: string | undefined;
874
- context?: Context | undefined;
875
- /**
876
- * Called during evaluation of this module to initialize the `import.meta`.
877
- */
878
- initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
879
- /**
880
- * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
881
- * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
882
- * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
883
- */
884
- importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
885
- }
886
- /**
887
- * This feature is only available with the `--experimental-vm-modules` command
888
- * flag enabled.
889
- *
890
- * The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as
891
- * defined in the ECMAScript specification.
892
- * @since v9.6.0
893
- * @experimental
894
- */
895
- class SourceTextModule extends Module {
896
- /**
897
- * Creates a new `SourceTextModule` instance.
898
- * @param code JavaScript Module code to parse
899
- */
900
- constructor(code: string, options?: SourceTextModuleOptions);
901
- }
902
- interface SyntheticModuleOptions {
903
- /**
904
- * String used in stack traces.
905
- * @default 'vm:module(i)' where i is a context-specific ascending index.
906
- */
907
- identifier?: string | undefined;
908
- /**
909
- * The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
910
- */
911
- context?: Context | undefined;
912
- }
913
- /**
914
- * This feature is only available with the `--experimental-vm-modules` command
915
- * flag enabled.
916
- *
917
- * The `vm.SyntheticModule` class provides the [Synthetic Module Record](https://heycam.github.io/webidl/#synthetic-module-records) as
918
- * defined in the WebIDL specification. The purpose of synthetic modules is to
919
- * provide a generic interface for exposing non-JavaScript sources to ECMAScript
920
- * module graphs.
921
- *
922
- * ```js
923
- * import vm from 'node:vm';
924
- *
925
- * const source = '{ "a": 1 }';
926
- * const module = new vm.SyntheticModule(['default'], function() {
927
- * const obj = JSON.parse(source);
928
- * this.setExport('default', obj);
929
- * });
930
- *
931
- * // Use `module` in linking...
932
- * ```
933
- * @since v13.0.0, v12.16.0
934
- * @experimental
935
- */
936
- class SyntheticModule extends Module {
937
- /**
938
- * Creates a new `SyntheticModule` instance.
939
- * @param exportNames Array of names that will be exported from the module.
940
- * @param evaluateCallback Called when the module is evaluated.
941
- */
942
- constructor(
943
- exportNames: string[],
944
- evaluateCallback: (this: SyntheticModule) => void,
945
- options?: SyntheticModuleOptions,
946
- );
947
- /**
948
- * This method is used after the module is linked to set the values of exports. If
949
- * it is called before the module is linked, an `ERR_VM_MODULE_STATUS` error
950
- * will be thrown.
951
- *
952
- * ```js
953
- * import vm from 'node:vm';
954
- *
955
- * const m = new vm.SyntheticModule(['x'], () => {
956
- * m.setExport('x', 1);
957
- * });
958
- *
959
- * await m.link(() => {});
960
- * await m.evaluate();
961
- *
962
- * assert.strictEqual(m.namespace.x, 1);
963
- * ```
964
- * @since v13.0.0, v12.16.0
965
- * @param name Name of the export to set.
966
- * @param value The value to set the export to.
967
- */
968
- setExport(name: string, value: any): void;
969
- }
970
- /**
971
- * Returns an object containing commonly used constants for VM operations.
972
- * @since v20.12.0
973
- */
974
- namespace constants {
975
- /**
976
- * A constant that can be used as the `importModuleDynamically` option to `vm.Script`
977
- * and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
978
- * context to load the requested module.
979
- *
980
- * For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
981
- * @since v20.12.0
982
- */
983
- const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
984
- /**
985
- * This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
986
- * a context without wrapping its global object with another object in a Node.js-specific manner.
987
- * As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
988
- * one.
989
- *
990
- * When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
991
- * the returned object is a proxy-like object to the global object in the newly created context with
992
- * fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
993
- * can be modified from outside the context, and can be used to access built-ins in the new context directly.
994
- * @since v20.18.0
995
- */
996
- const DONT_CONTEXTIFY: number;
997
- }
998
- }
999
- declare module "node:vm" {
1000
- export * from "vm";
1001
- }