ima2-gen 3.15.1 → 3.16.0

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 (764) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +7 -6
  3. package/bin/commands/grok.js +150 -64
  4. package/bin/commands/service.js +5 -4
  5. package/bin/ima2.js +3 -3
  6. package/bin/lib/doctor-providers.js +6 -1
  7. package/bin/lib/doctor-runtime.js +1 -1
  8. package/config.js +0 -9
  9. package/docs/API.md +7 -7
  10. package/docs/API.zh-CN.md +7 -7
  11. package/docs/API.zh-TW.md +7 -7
  12. package/docs/CLI.md +9 -8
  13. package/docs/CLI.zh-CN.md +8 -8
  14. package/docs/CLI.zh-TW.md +8 -8
  15. package/docs/README.ko.md +5 -6
  16. package/docs/README.zh-CN.md +6 -5
  17. package/docs/README.zh-TW.md +6 -5
  18. package/docs/migration/runtime-test-inventory.md +4 -6
  19. package/lib/agentPlannerModel.js +17 -16
  20. package/lib/capabilities.js +3 -2
  21. package/lib/errors/providerMap.js +13 -0
  22. package/lib/grokImageCore.js +9 -16
  23. package/lib/grokImagePlanner.js +15 -3
  24. package/lib/grokRuntime.js +47 -16
  25. package/lib/grokVideoAdapter.js +23 -7
  26. package/lib/grokVideoPoll.js +3 -3
  27. package/lib/grokVideoShared.js +6 -13
  28. package/lib/promptBuilder/router.js +22 -6
  29. package/lib/providers/adapters/grokExecution.js +15 -14
  30. package/lib/providers/adapters/grokMultimodeOperations.js +9 -7
  31. package/lib/providers/adapters/grokOperations.js +19 -12
  32. package/lib/providers/execution/admission.js +20 -4
  33. package/lib/providers/registry.js +1 -1
  34. package/lib/runtimeContext.js +0 -12
  35. package/lib/videoExtendI2vOperation.js +5 -1
  36. package/lib/xaiAuth.js +369 -0
  37. package/lib/xaiDeviceLogin.js +157 -0
  38. package/package.json +2 -4
  39. package/routes/auth.js +18 -26
  40. package/routes/grok.js +25 -19
  41. package/routes/health.js +4 -5
  42. package/routes/models.js +12 -26
  43. package/routes/quota.js +2 -1
  44. package/routes/video.js +7 -2
  45. package/routes/videoExtended.js +37 -24
  46. package/server.js +7 -58
  47. package/skills/ima2/SKILL.md +2 -2
  48. package/ui/dist/.vite/manifest.json +56 -56
  49. package/ui/dist/assets/{AgentWorkspace-CLJDCRMQ.js → AgentWorkspace-DlLaTsPK.js} +1 -1
  50. package/ui/dist/assets/{App-DkvU6Sex.js → App-BfpvLzSs.js} +4 -4
  51. package/ui/dist/assets/{AssetGenWorkspace-BepUrz23.js → AssetGenWorkspace-C8eIs-bS.js} +2 -2
  52. package/ui/dist/assets/{AssetsWorkspace-IipC1FdD.js → AssetsWorkspace-BcbAM8uC.js} +1 -1
  53. package/ui/dist/assets/{CardNewsWorkspace-ZXDwYz4l.js → CardNewsWorkspace-CM5hwbRV.js} +1 -1
  54. package/ui/dist/assets/{GenerationRequestLogPanel-BL2C0DcW.js → GenerationRequestLogPanel-CTs8OymS.js} +1 -1
  55. package/ui/dist/assets/{HomeWorkspace-DFfrwS9a.js → HomeWorkspace-KGUtIZyG.js} +1 -1
  56. package/ui/dist/assets/{KeyingPanel-BQkEMTe9.js → KeyingPanel-D8ZHmWcC.js} +1 -1
  57. package/ui/dist/assets/{NodeCanvas-5u8IO1MA.js → NodeCanvas-D2N3m-1s.js} +1 -1
  58. package/ui/dist/assets/{PromptBuilderPanel-DNt7LHMi.js → PromptBuilderPanel-BolZnOa7.js} +1 -1
  59. package/ui/dist/assets/{PromptImportDialog-Bl-SB4mK.js → PromptImportDialog-DBpe7Vkj.js} +2 -2
  60. package/ui/dist/assets/{PromptImportDiscoverySection-DdZAdRMW.js → PromptImportDiscoverySection-Dk6v6lUZ.js} +1 -1
  61. package/ui/dist/assets/{PromptImportFolderSection-DLHQKl9T.js → PromptImportFolderSection-BE7Nfq9Y.js} +1 -1
  62. package/ui/dist/assets/{PromptLibraryPanel-PLWyvEz1.js → PromptLibraryPanel-Qdujpb4L.js} +2 -2
  63. package/ui/dist/assets/{SettingsWorkspace-Etfeu2IF.js → SettingsWorkspace-Dm4wezu_.js} +1 -1
  64. package/ui/dist/assets/{SpriteRecipeWorkspace-D7H5seOM.js → SpriteRecipeWorkspace-D9do9V7F.js} +1 -1
  65. package/ui/dist/assets/index-CfGRmfFv.js +22 -0
  66. package/ui/dist/assets/{index-BAkbTbUC.js → index-CfrOcJIe.js} +3 -3
  67. package/ui/dist/assets/{pptxgen.es-Apxh5DQ9.js → pptxgen.es-BLI_YKez.js} +1 -1
  68. package/ui/dist/assets/{promptBuilderStore-prvdLIUP.js → promptBuilderStore-BMiudG9n.js} +1 -1
  69. package/ui/dist/assets/useAgentDialogFocus-CCj5EYE9.js +1 -0
  70. package/ui/dist/index.html +1 -1
  71. package/lib/grokProxyLauncher.js +0 -279
  72. package/node_modules/array-flatten/LICENSE +0 -21
  73. package/node_modules/array-flatten/README.md +0 -43
  74. package/node_modules/array-flatten/array-flatten.js +0 -64
  75. package/node_modules/array-flatten/package.json +0 -39
  76. package/node_modules/bundle-name/index.js +0 -5
  77. package/node_modules/bundle-name/license +0 -9
  78. package/node_modules/bundle-name/package.json +0 -45
  79. package/node_modules/bundle-name/readme.md +0 -23
  80. package/node_modules/bytes/History.md +0 -97
  81. package/node_modules/bytes/LICENSE +0 -23
  82. package/node_modules/bytes/Readme.md +0 -152
  83. package/node_modules/bytes/index.js +0 -170
  84. package/node_modules/bytes/package.json +0 -42
  85. package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  86. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  87. package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  88. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  89. package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
  90. package/node_modules/call-bind-apply-helpers/README.md +0 -62
  91. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  92. package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
  93. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  94. package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
  95. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  96. package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
  97. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  98. package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
  99. package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  100. package/node_modules/call-bind-apply-helpers/index.js +0 -15
  101. package/node_modules/call-bind-apply-helpers/package.json +0 -85
  102. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  103. package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
  104. package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  105. package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  106. package/node_modules/call-bound/.eslintrc +0 -13
  107. package/node_modules/call-bound/.github/FUNDING.yml +0 -12
  108. package/node_modules/call-bound/.nycrc +0 -9
  109. package/node_modules/call-bound/CHANGELOG.md +0 -42
  110. package/node_modules/call-bound/LICENSE +0 -21
  111. package/node_modules/call-bound/README.md +0 -53
  112. package/node_modules/call-bound/index.d.ts +0 -94
  113. package/node_modules/call-bound/index.js +0 -19
  114. package/node_modules/call-bound/package.json +0 -99
  115. package/node_modules/call-bound/test/index.js +0 -61
  116. package/node_modules/call-bound/tsconfig.json +0 -10
  117. package/node_modules/commander/LICENSE +0 -22
  118. package/node_modules/commander/Readme.md +0 -1149
  119. package/node_modules/commander/esm.mjs +0 -16
  120. package/node_modules/commander/index.js +0 -24
  121. package/node_modules/commander/lib/argument.js +0 -149
  122. package/node_modules/commander/lib/command.js +0 -2662
  123. package/node_modules/commander/lib/error.js +0 -39
  124. package/node_modules/commander/lib/help.js +0 -709
  125. package/node_modules/commander/lib/option.js +0 -367
  126. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  127. package/node_modules/commander/package-support.json +0 -16
  128. package/node_modules/commander/package.json +0 -82
  129. package/node_modules/commander/typings/esm.d.mts +0 -3
  130. package/node_modules/commander/typings/index.d.ts +0 -1045
  131. package/node_modules/content-type/HISTORY.md +0 -29
  132. package/node_modules/content-type/LICENSE +0 -22
  133. package/node_modules/content-type/README.md +0 -94
  134. package/node_modules/content-type/index.js +0 -225
  135. package/node_modules/content-type/package.json +0 -42
  136. package/node_modules/cookie/LICENSE +0 -24
  137. package/node_modules/cookie/README.md +0 -317
  138. package/node_modules/cookie/SECURITY.md +0 -25
  139. package/node_modules/cookie/index.js +0 -335
  140. package/node_modules/cookie/package.json +0 -44
  141. package/node_modules/default-browser/index.d.ts +0 -29
  142. package/node_modules/default-browser/index.js +0 -34
  143. package/node_modules/default-browser/license +0 -9
  144. package/node_modules/default-browser/package.json +0 -54
  145. package/node_modules/default-browser/readme.md +0 -24
  146. package/node_modules/default-browser/windows.js +0 -57
  147. package/node_modules/default-browser-id/index.js +0 -25
  148. package/node_modules/default-browser-id/license +0 -9
  149. package/node_modules/default-browser-id/package.json +0 -41
  150. package/node_modules/default-browser-id/readme.md +0 -19
  151. package/node_modules/define-lazy-prop/index.d.ts +0 -31
  152. package/node_modules/define-lazy-prop/index.js +0 -18
  153. package/node_modules/define-lazy-prop/license +0 -9
  154. package/node_modules/define-lazy-prop/package.json +0 -51
  155. package/node_modules/define-lazy-prop/readme.md +0 -55
  156. package/node_modules/depd/History.md +0 -103
  157. package/node_modules/depd/LICENSE +0 -22
  158. package/node_modules/depd/Readme.md +0 -280
  159. package/node_modules/depd/index.js +0 -538
  160. package/node_modules/depd/lib/browser/index.js +0 -77
  161. package/node_modules/depd/package.json +0 -45
  162. package/node_modules/destroy/LICENSE +0 -23
  163. package/node_modules/destroy/README.md +0 -63
  164. package/node_modules/destroy/index.js +0 -209
  165. package/node_modules/destroy/package.json +0 -48
  166. package/node_modules/dunder-proto/.eslintrc +0 -5
  167. package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  168. package/node_modules/dunder-proto/.nycrc +0 -13
  169. package/node_modules/dunder-proto/CHANGELOG.md +0 -24
  170. package/node_modules/dunder-proto/LICENSE +0 -21
  171. package/node_modules/dunder-proto/README.md +0 -54
  172. package/node_modules/dunder-proto/get.d.ts +0 -5
  173. package/node_modules/dunder-proto/get.js +0 -30
  174. package/node_modules/dunder-proto/package.json +0 -76
  175. package/node_modules/dunder-proto/set.d.ts +0 -5
  176. package/node_modules/dunder-proto/set.js +0 -35
  177. package/node_modules/dunder-proto/test/get.js +0 -34
  178. package/node_modules/dunder-proto/test/index.js +0 -4
  179. package/node_modules/dunder-proto/test/set.js +0 -50
  180. package/node_modules/dunder-proto/tsconfig.json +0 -9
  181. package/node_modules/ee-first/LICENSE +0 -22
  182. package/node_modules/ee-first/README.md +0 -80
  183. package/node_modules/ee-first/index.js +0 -95
  184. package/node_modules/ee-first/package.json +0 -29
  185. package/node_modules/encodeurl/LICENSE +0 -22
  186. package/node_modules/encodeurl/README.md +0 -109
  187. package/node_modules/encodeurl/index.js +0 -60
  188. package/node_modules/encodeurl/package.json +0 -40
  189. package/node_modules/es-define-property/.eslintrc +0 -13
  190. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  191. package/node_modules/es-define-property/.nycrc +0 -9
  192. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  193. package/node_modules/es-define-property/LICENSE +0 -21
  194. package/node_modules/es-define-property/README.md +0 -49
  195. package/node_modules/es-define-property/index.d.ts +0 -3
  196. package/node_modules/es-define-property/index.js +0 -14
  197. package/node_modules/es-define-property/package.json +0 -81
  198. package/node_modules/es-define-property/test/index.js +0 -56
  199. package/node_modules/es-define-property/tsconfig.json +0 -10
  200. package/node_modules/es-errors/.eslintrc +0 -5
  201. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  202. package/node_modules/es-errors/CHANGELOG.md +0 -40
  203. package/node_modules/es-errors/LICENSE +0 -21
  204. package/node_modules/es-errors/README.md +0 -55
  205. package/node_modules/es-errors/eval.d.ts +0 -3
  206. package/node_modules/es-errors/eval.js +0 -4
  207. package/node_modules/es-errors/index.d.ts +0 -3
  208. package/node_modules/es-errors/index.js +0 -4
  209. package/node_modules/es-errors/package.json +0 -80
  210. package/node_modules/es-errors/range.d.ts +0 -3
  211. package/node_modules/es-errors/range.js +0 -4
  212. package/node_modules/es-errors/ref.d.ts +0 -3
  213. package/node_modules/es-errors/ref.js +0 -4
  214. package/node_modules/es-errors/syntax.d.ts +0 -3
  215. package/node_modules/es-errors/syntax.js +0 -4
  216. package/node_modules/es-errors/test/index.js +0 -19
  217. package/node_modules/es-errors/tsconfig.json +0 -49
  218. package/node_modules/es-errors/type.d.ts +0 -3
  219. package/node_modules/es-errors/type.js +0 -4
  220. package/node_modules/es-errors/uri.d.ts +0 -3
  221. package/node_modules/es-errors/uri.js +0 -4
  222. package/node_modules/es-object-atoms/.eslintrc +0 -16
  223. package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  224. package/node_modules/es-object-atoms/CHANGELOG.md +0 -37
  225. package/node_modules/es-object-atoms/LICENSE +0 -21
  226. package/node_modules/es-object-atoms/README.md +0 -63
  227. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  228. package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
  229. package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  230. package/node_modules/es-object-atoms/ToObject.js +0 -10
  231. package/node_modules/es-object-atoms/index.d.ts +0 -3
  232. package/node_modules/es-object-atoms/index.js +0 -4
  233. package/node_modules/es-object-atoms/isObject.d.ts +0 -3
  234. package/node_modules/es-object-atoms/isObject.js +0 -6
  235. package/node_modules/es-object-atoms/package.json +0 -80
  236. package/node_modules/es-object-atoms/test/index.js +0 -38
  237. package/node_modules/es-object-atoms/tsconfig.json +0 -6
  238. package/node_modules/escape-html/LICENSE +0 -24
  239. package/node_modules/escape-html/Readme.md +0 -43
  240. package/node_modules/escape-html/index.js +0 -78
  241. package/node_modules/escape-html/package.json +0 -24
  242. package/node_modules/etag/HISTORY.md +0 -83
  243. package/node_modules/etag/LICENSE +0 -22
  244. package/node_modules/etag/README.md +0 -159
  245. package/node_modules/etag/index.js +0 -131
  246. package/node_modules/etag/package.json +0 -47
  247. package/node_modules/forwarded/HISTORY.md +0 -21
  248. package/node_modules/forwarded/LICENSE +0 -22
  249. package/node_modules/forwarded/README.md +0 -57
  250. package/node_modules/forwarded/index.js +0 -90
  251. package/node_modules/forwarded/package.json +0 -45
  252. package/node_modules/function-bind/.eslintrc +0 -21
  253. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  254. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  255. package/node_modules/function-bind/.nycrc +0 -13
  256. package/node_modules/function-bind/CHANGELOG.md +0 -136
  257. package/node_modules/function-bind/LICENSE +0 -20
  258. package/node_modules/function-bind/README.md +0 -46
  259. package/node_modules/function-bind/implementation.js +0 -84
  260. package/node_modules/function-bind/index.js +0 -5
  261. package/node_modules/function-bind/package.json +0 -87
  262. package/node_modules/function-bind/test/.eslintrc +0 -9
  263. package/node_modules/function-bind/test/index.js +0 -252
  264. package/node_modules/get-intrinsic/.eslintrc +0 -42
  265. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  266. package/node_modules/get-intrinsic/.nycrc +0 -9
  267. package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  268. package/node_modules/get-intrinsic/LICENSE +0 -21
  269. package/node_modules/get-intrinsic/README.md +0 -71
  270. package/node_modules/get-intrinsic/index.js +0 -378
  271. package/node_modules/get-intrinsic/package.json +0 -97
  272. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  273. package/node_modules/get-proto/.eslintrc +0 -10
  274. package/node_modules/get-proto/.github/FUNDING.yml +0 -12
  275. package/node_modules/get-proto/.nycrc +0 -9
  276. package/node_modules/get-proto/CHANGELOG.md +0 -21
  277. package/node_modules/get-proto/LICENSE +0 -21
  278. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  279. package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
  280. package/node_modules/get-proto/README.md +0 -50
  281. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  282. package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
  283. package/node_modules/get-proto/index.d.ts +0 -5
  284. package/node_modules/get-proto/index.js +0 -27
  285. package/node_modules/get-proto/package.json +0 -81
  286. package/node_modules/get-proto/test/index.js +0 -68
  287. package/node_modules/get-proto/tsconfig.json +0 -9
  288. package/node_modules/gopd/.eslintrc +0 -16
  289. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  290. package/node_modules/gopd/CHANGELOG.md +0 -45
  291. package/node_modules/gopd/LICENSE +0 -21
  292. package/node_modules/gopd/README.md +0 -40
  293. package/node_modules/gopd/gOPD.d.ts +0 -1
  294. package/node_modules/gopd/gOPD.js +0 -4
  295. package/node_modules/gopd/index.d.ts +0 -5
  296. package/node_modules/gopd/index.js +0 -15
  297. package/node_modules/gopd/package.json +0 -77
  298. package/node_modules/gopd/test/index.js +0 -36
  299. package/node_modules/gopd/tsconfig.json +0 -9
  300. package/node_modules/has-symbols/.eslintrc +0 -11
  301. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  302. package/node_modules/has-symbols/.nycrc +0 -9
  303. package/node_modules/has-symbols/CHANGELOG.md +0 -91
  304. package/node_modules/has-symbols/LICENSE +0 -21
  305. package/node_modules/has-symbols/README.md +0 -46
  306. package/node_modules/has-symbols/index.d.ts +0 -3
  307. package/node_modules/has-symbols/index.js +0 -14
  308. package/node_modules/has-symbols/package.json +0 -111
  309. package/node_modules/has-symbols/shams.d.ts +0 -3
  310. package/node_modules/has-symbols/shams.js +0 -45
  311. package/node_modules/has-symbols/test/index.js +0 -22
  312. package/node_modules/has-symbols/test/shams/core-js.js +0 -29
  313. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  314. package/node_modules/has-symbols/test/tests.js +0 -58
  315. package/node_modules/has-symbols/tsconfig.json +0 -10
  316. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  317. package/node_modules/hasown/.nycrc +0 -13
  318. package/node_modules/hasown/CHANGELOG.md +0 -51
  319. package/node_modules/hasown/LICENSE +0 -21
  320. package/node_modules/hasown/README.md +0 -40
  321. package/node_modules/hasown/eslint.config.mjs +0 -6
  322. package/node_modules/hasown/index.d.ts +0 -4
  323. package/node_modules/hasown/index.js +0 -8
  324. package/node_modules/hasown/package.json +0 -92
  325. package/node_modules/hasown/tsconfig.json +0 -6
  326. package/node_modules/http-errors/HISTORY.md +0 -186
  327. package/node_modules/http-errors/LICENSE +0 -23
  328. package/node_modules/http-errors/README.md +0 -169
  329. package/node_modules/http-errors/index.js +0 -290
  330. package/node_modules/http-errors/package.json +0 -54
  331. package/node_modules/inherits/LICENSE +0 -16
  332. package/node_modules/inherits/README.md +0 -42
  333. package/node_modules/inherits/inherits.js +0 -9
  334. package/node_modules/inherits/inherits_browser.js +0 -27
  335. package/node_modules/inherits/package.json +0 -29
  336. package/node_modules/ipaddr.js/LICENSE +0 -19
  337. package/node_modules/ipaddr.js/README.md +0 -233
  338. package/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  339. package/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  340. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  341. package/node_modules/ipaddr.js/package.json +0 -35
  342. package/node_modules/is-docker/cli.js +0 -5
  343. package/node_modules/is-docker/index.d.ts +0 -13
  344. package/node_modules/is-docker/index.js +0 -29
  345. package/node_modules/is-docker/license +0 -9
  346. package/node_modules/is-docker/package.json +0 -44
  347. package/node_modules/is-docker/readme.md +0 -27
  348. package/node_modules/is-inside-container/cli.js +0 -5
  349. package/node_modules/is-inside-container/index.d.ts +0 -13
  350. package/node_modules/is-inside-container/index.js +0 -23
  351. package/node_modules/is-inside-container/license +0 -9
  352. package/node_modules/is-inside-container/package.json +0 -51
  353. package/node_modules/is-inside-container/readme.md +0 -36
  354. package/node_modules/is-wsl/index.d.ts +0 -15
  355. package/node_modules/is-wsl/index.js +0 -36
  356. package/node_modules/is-wsl/license +0 -9
  357. package/node_modules/is-wsl/package.json +0 -58
  358. package/node_modules/is-wsl/readme.md +0 -21
  359. package/node_modules/math-intrinsics/.eslintrc +0 -16
  360. package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  361. package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  362. package/node_modules/math-intrinsics/LICENSE +0 -21
  363. package/node_modules/math-intrinsics/README.md +0 -50
  364. package/node_modules/math-intrinsics/abs.d.ts +0 -1
  365. package/node_modules/math-intrinsics/abs.js +0 -4
  366. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  367. package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
  368. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  369. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
  370. package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  371. package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
  372. package/node_modules/math-intrinsics/floor.d.ts +0 -1
  373. package/node_modules/math-intrinsics/floor.js +0 -4
  374. package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  375. package/node_modules/math-intrinsics/isFinite.js +0 -12
  376. package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  377. package/node_modules/math-intrinsics/isInteger.js +0 -16
  378. package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  379. package/node_modules/math-intrinsics/isNaN.js +0 -6
  380. package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  381. package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
  382. package/node_modules/math-intrinsics/max.d.ts +0 -1
  383. package/node_modules/math-intrinsics/max.js +0 -4
  384. package/node_modules/math-intrinsics/min.d.ts +0 -1
  385. package/node_modules/math-intrinsics/min.js +0 -4
  386. package/node_modules/math-intrinsics/mod.d.ts +0 -3
  387. package/node_modules/math-intrinsics/mod.js +0 -9
  388. package/node_modules/math-intrinsics/package.json +0 -86
  389. package/node_modules/math-intrinsics/pow.d.ts +0 -1
  390. package/node_modules/math-intrinsics/pow.js +0 -4
  391. package/node_modules/math-intrinsics/round.d.ts +0 -1
  392. package/node_modules/math-intrinsics/round.js +0 -4
  393. package/node_modules/math-intrinsics/sign.d.ts +0 -3
  394. package/node_modules/math-intrinsics/sign.js +0 -11
  395. package/node_modules/math-intrinsics/test/index.js +0 -192
  396. package/node_modules/math-intrinsics/tsconfig.json +0 -3
  397. package/node_modules/methods/HISTORY.md +0 -29
  398. package/node_modules/methods/LICENSE +0 -24
  399. package/node_modules/methods/README.md +0 -51
  400. package/node_modules/methods/index.js +0 -69
  401. package/node_modules/methods/package.json +0 -36
  402. package/node_modules/mime/.npmignore +0 -0
  403. package/node_modules/mime/CHANGELOG.md +0 -164
  404. package/node_modules/mime/LICENSE +0 -21
  405. package/node_modules/mime/README.md +0 -90
  406. package/node_modules/mime/cli.js +0 -8
  407. package/node_modules/mime/mime.js +0 -108
  408. package/node_modules/mime/package.json +0 -44
  409. package/node_modules/mime/src/build.js +0 -53
  410. package/node_modules/mime/src/test.js +0 -60
  411. package/node_modules/mime/types.json +0 -1
  412. package/node_modules/ms/index.js +0 -162
  413. package/node_modules/ms/license.md +0 -21
  414. package/node_modules/ms/package.json +0 -38
  415. package/node_modules/ms/readme.md +0 -59
  416. package/node_modules/object-inspect/.eslintrc +0 -53
  417. package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  418. package/node_modules/object-inspect/.nycrc +0 -13
  419. package/node_modules/object-inspect/CHANGELOG.md +0 -424
  420. package/node_modules/object-inspect/LICENSE +0 -21
  421. package/node_modules/object-inspect/example/all.js +0 -23
  422. package/node_modules/object-inspect/example/circular.js +0 -6
  423. package/node_modules/object-inspect/example/fn.js +0 -5
  424. package/node_modules/object-inspect/example/inspect.js +0 -10
  425. package/node_modules/object-inspect/index.js +0 -544
  426. package/node_modules/object-inspect/package-support.json +0 -20
  427. package/node_modules/object-inspect/package.json +0 -105
  428. package/node_modules/object-inspect/readme.markdown +0 -84
  429. package/node_modules/object-inspect/test/bigint.js +0 -58
  430. package/node_modules/object-inspect/test/browser/dom.js +0 -15
  431. package/node_modules/object-inspect/test/circular.js +0 -16
  432. package/node_modules/object-inspect/test/deep.js +0 -12
  433. package/node_modules/object-inspect/test/element.js +0 -53
  434. package/node_modules/object-inspect/test/err.js +0 -48
  435. package/node_modules/object-inspect/test/fakes.js +0 -29
  436. package/node_modules/object-inspect/test/fn.js +0 -76
  437. package/node_modules/object-inspect/test/global.js +0 -17
  438. package/node_modules/object-inspect/test/has.js +0 -15
  439. package/node_modules/object-inspect/test/holes.js +0 -15
  440. package/node_modules/object-inspect/test/indent-option.js +0 -271
  441. package/node_modules/object-inspect/test/inspect.js +0 -139
  442. package/node_modules/object-inspect/test/lowbyte.js +0 -12
  443. package/node_modules/object-inspect/test/number.js +0 -58
  444. package/node_modules/object-inspect/test/quoteStyle.js +0 -26
  445. package/node_modules/object-inspect/test/toStringTag.js +0 -40
  446. package/node_modules/object-inspect/test/undef.js +0 -12
  447. package/node_modules/object-inspect/test/values.js +0 -261
  448. package/node_modules/object-inspect/test-core-js.js +0 -26
  449. package/node_modules/object-inspect/util.inspect.js +0 -1
  450. package/node_modules/on-finished/HISTORY.md +0 -98
  451. package/node_modules/on-finished/LICENSE +0 -23
  452. package/node_modules/on-finished/README.md +0 -162
  453. package/node_modules/on-finished/index.js +0 -234
  454. package/node_modules/on-finished/package.json +0 -39
  455. package/node_modules/open/index.d.ts +0 -158
  456. package/node_modules/open/index.js +0 -366
  457. package/node_modules/open/license +0 -9
  458. package/node_modules/open/node_modules/wsl-utils/index.d.ts +0 -21
  459. package/node_modules/open/node_modules/wsl-utils/index.js +0 -57
  460. package/node_modules/open/node_modules/wsl-utils/license +0 -9
  461. package/node_modules/open/node_modules/wsl-utils/package.json +0 -46
  462. package/node_modules/open/node_modules/wsl-utils/readme.md +0 -50
  463. package/node_modules/open/package.json +0 -68
  464. package/node_modules/open/readme.md +0 -183
  465. package/node_modules/open/xdg-open +0 -1267
  466. package/node_modules/parseurl/HISTORY.md +0 -58
  467. package/node_modules/parseurl/LICENSE +0 -24
  468. package/node_modules/parseurl/README.md +0 -133
  469. package/node_modules/parseurl/index.js +0 -158
  470. package/node_modules/parseurl/package.json +0 -40
  471. package/node_modules/progrok/LICENSE +0 -21
  472. package/node_modules/progrok/README.md +0 -331
  473. package/node_modules/progrok/THIRD_PARTY_NOTICES.md +0 -13
  474. package/node_modules/progrok/dist/index.js +0 -1626
  475. package/node_modules/progrok/dist/index.js.map +0 -1
  476. package/node_modules/progrok/dist/public/app.js +0 -529
  477. package/node_modules/progrok/dist/public/index.html +0 -47
  478. package/node_modules/progrok/dist/public/style.css +0 -392
  479. package/node_modules/progrok/node_modules/accepts/HISTORY.md +0 -243
  480. package/node_modules/progrok/node_modules/accepts/LICENSE +0 -23
  481. package/node_modules/progrok/node_modules/accepts/README.md +0 -140
  482. package/node_modules/progrok/node_modules/accepts/index.js +0 -238
  483. package/node_modules/progrok/node_modules/accepts/package.json +0 -47
  484. package/node_modules/progrok/node_modules/body-parser/HISTORY.md +0 -686
  485. package/node_modules/progrok/node_modules/body-parser/LICENSE +0 -23
  486. package/node_modules/progrok/node_modules/body-parser/README.md +0 -476
  487. package/node_modules/progrok/node_modules/body-parser/index.js +0 -156
  488. package/node_modules/progrok/node_modules/body-parser/lib/read.js +0 -205
  489. package/node_modules/progrok/node_modules/body-parser/lib/types/json.js +0 -243
  490. package/node_modules/progrok/node_modules/body-parser/lib/types/raw.js +0 -101
  491. package/node_modules/progrok/node_modules/body-parser/lib/types/text.js +0 -121
  492. package/node_modules/progrok/node_modules/body-parser/lib/types/urlencoded.js +0 -299
  493. package/node_modules/progrok/node_modules/body-parser/package.json +0 -55
  494. package/node_modules/progrok/node_modules/content-disposition/HISTORY.md +0 -60
  495. package/node_modules/progrok/node_modules/content-disposition/LICENSE +0 -22
  496. package/node_modules/progrok/node_modules/content-disposition/README.md +0 -142
  497. package/node_modules/progrok/node_modules/content-disposition/index.js +0 -458
  498. package/node_modules/progrok/node_modules/content-disposition/package.json +0 -44
  499. package/node_modules/progrok/node_modules/cookie-signature/History.md +0 -42
  500. package/node_modules/progrok/node_modules/cookie-signature/Readme.md +0 -42
  501. package/node_modules/progrok/node_modules/cookie-signature/index.js +0 -51
  502. package/node_modules/progrok/node_modules/cookie-signature/package.json +0 -18
  503. package/node_modules/progrok/node_modules/debug/.coveralls.yml +0 -1
  504. package/node_modules/progrok/node_modules/debug/.eslintrc +0 -11
  505. package/node_modules/progrok/node_modules/debug/.npmignore +0 -9
  506. package/node_modules/progrok/node_modules/debug/.travis.yml +0 -14
  507. package/node_modules/progrok/node_modules/debug/CHANGELOG.md +0 -362
  508. package/node_modules/progrok/node_modules/debug/LICENSE +0 -19
  509. package/node_modules/progrok/node_modules/debug/Makefile +0 -50
  510. package/node_modules/progrok/node_modules/debug/README.md +0 -312
  511. package/node_modules/progrok/node_modules/debug/component.json +0 -19
  512. package/node_modules/progrok/node_modules/debug/karma.conf.js +0 -70
  513. package/node_modules/progrok/node_modules/debug/node.js +0 -1
  514. package/node_modules/progrok/node_modules/debug/node_modules/ms/index.js +0 -152
  515. package/node_modules/progrok/node_modules/debug/node_modules/ms/license.md +0 -21
  516. package/node_modules/progrok/node_modules/debug/node_modules/ms/package.json +0 -37
  517. package/node_modules/progrok/node_modules/debug/node_modules/ms/readme.md +0 -51
  518. package/node_modules/progrok/node_modules/debug/package.json +0 -49
  519. package/node_modules/progrok/node_modules/debug/src/browser.js +0 -185
  520. package/node_modules/progrok/node_modules/debug/src/debug.js +0 -202
  521. package/node_modules/progrok/node_modules/debug/src/index.js +0 -10
  522. package/node_modules/progrok/node_modules/debug/src/inspector-log.js +0 -15
  523. package/node_modules/progrok/node_modules/debug/src/node.js +0 -248
  524. package/node_modules/progrok/node_modules/express/History.md +0 -3676
  525. package/node_modules/progrok/node_modules/express/LICENSE +0 -24
  526. package/node_modules/progrok/node_modules/express/Readme.md +0 -260
  527. package/node_modules/progrok/node_modules/express/index.js +0 -11
  528. package/node_modules/progrok/node_modules/express/lib/application.js +0 -661
  529. package/node_modules/progrok/node_modules/express/lib/express.js +0 -116
  530. package/node_modules/progrok/node_modules/express/lib/middleware/init.js +0 -43
  531. package/node_modules/progrok/node_modules/express/lib/middleware/query.js +0 -47
  532. package/node_modules/progrok/node_modules/express/lib/request.js +0 -525
  533. package/node_modules/progrok/node_modules/express/lib/response.js +0 -1179
  534. package/node_modules/progrok/node_modules/express/lib/router/index.js +0 -673
  535. package/node_modules/progrok/node_modules/express/lib/router/layer.js +0 -181
  536. package/node_modules/progrok/node_modules/express/lib/router/route.js +0 -230
  537. package/node_modules/progrok/node_modules/express/lib/utils.js +0 -304
  538. package/node_modules/progrok/node_modules/express/lib/view.js +0 -182
  539. package/node_modules/progrok/node_modules/express/package.json +0 -102
  540. package/node_modules/progrok/node_modules/finalhandler/HISTORY.md +0 -216
  541. package/node_modules/progrok/node_modules/finalhandler/LICENSE +0 -22
  542. package/node_modules/progrok/node_modules/finalhandler/README.md +0 -147
  543. package/node_modules/progrok/node_modules/finalhandler/SECURITY.md +0 -25
  544. package/node_modules/progrok/node_modules/finalhandler/index.js +0 -341
  545. package/node_modules/progrok/node_modules/finalhandler/package.json +0 -47
  546. package/node_modules/progrok/node_modules/fresh/HISTORY.md +0 -70
  547. package/node_modules/progrok/node_modules/fresh/LICENSE +0 -23
  548. package/node_modules/progrok/node_modules/fresh/README.md +0 -119
  549. package/node_modules/progrok/node_modules/fresh/index.js +0 -137
  550. package/node_modules/progrok/node_modules/fresh/package.json +0 -46
  551. package/node_modules/progrok/node_modules/iconv-lite/Changelog.md +0 -162
  552. package/node_modules/progrok/node_modules/iconv-lite/LICENSE +0 -21
  553. package/node_modules/progrok/node_modules/iconv-lite/README.md +0 -156
  554. package/node_modules/progrok/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  555. package/node_modules/progrok/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  556. package/node_modules/progrok/node_modules/iconv-lite/encodings/index.js +0 -22
  557. package/node_modules/progrok/node_modules/iconv-lite/encodings/internal.js +0 -188
  558. package/node_modules/progrok/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  559. package/node_modules/progrok/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  560. package/node_modules/progrok/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  561. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  562. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  563. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  564. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  565. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  566. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  567. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  568. package/node_modules/progrok/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  569. package/node_modules/progrok/node_modules/iconv-lite/encodings/utf16.js +0 -177
  570. package/node_modules/progrok/node_modules/iconv-lite/encodings/utf7.js +0 -290
  571. package/node_modules/progrok/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  572. package/node_modules/progrok/node_modules/iconv-lite/lib/extend-node.js +0 -217
  573. package/node_modules/progrok/node_modules/iconv-lite/lib/index.d.ts +0 -24
  574. package/node_modules/progrok/node_modules/iconv-lite/lib/index.js +0 -153
  575. package/node_modules/progrok/node_modules/iconv-lite/lib/streams.js +0 -121
  576. package/node_modules/progrok/node_modules/iconv-lite/package.json +0 -46
  577. package/node_modules/progrok/node_modules/media-typer/HISTORY.md +0 -22
  578. package/node_modules/progrok/node_modules/media-typer/LICENSE +0 -22
  579. package/node_modules/progrok/node_modules/media-typer/README.md +0 -81
  580. package/node_modules/progrok/node_modules/media-typer/index.js +0 -270
  581. package/node_modules/progrok/node_modules/media-typer/package.json +0 -26
  582. package/node_modules/progrok/node_modules/merge-descriptors/HISTORY.md +0 -21
  583. package/node_modules/progrok/node_modules/merge-descriptors/LICENSE +0 -23
  584. package/node_modules/progrok/node_modules/merge-descriptors/README.md +0 -49
  585. package/node_modules/progrok/node_modules/merge-descriptors/index.js +0 -60
  586. package/node_modules/progrok/node_modules/merge-descriptors/package.json +0 -39
  587. package/node_modules/progrok/node_modules/mime-db/HISTORY.md +0 -507
  588. package/node_modules/progrok/node_modules/mime-db/LICENSE +0 -23
  589. package/node_modules/progrok/node_modules/mime-db/README.md +0 -100
  590. package/node_modules/progrok/node_modules/mime-db/db.json +0 -8519
  591. package/node_modules/progrok/node_modules/mime-db/index.js +0 -12
  592. package/node_modules/progrok/node_modules/mime-db/package.json +0 -60
  593. package/node_modules/progrok/node_modules/mime-types/HISTORY.md +0 -397
  594. package/node_modules/progrok/node_modules/mime-types/LICENSE +0 -23
  595. package/node_modules/progrok/node_modules/mime-types/README.md +0 -113
  596. package/node_modules/progrok/node_modules/mime-types/index.js +0 -188
  597. package/node_modules/progrok/node_modules/mime-types/package.json +0 -44
  598. package/node_modules/progrok/node_modules/negotiator/HISTORY.md +0 -108
  599. package/node_modules/progrok/node_modules/negotiator/LICENSE +0 -24
  600. package/node_modules/progrok/node_modules/negotiator/README.md +0 -203
  601. package/node_modules/progrok/node_modules/negotiator/index.js +0 -82
  602. package/node_modules/progrok/node_modules/negotiator/lib/charset.js +0 -169
  603. package/node_modules/progrok/node_modules/negotiator/lib/encoding.js +0 -184
  604. package/node_modules/progrok/node_modules/negotiator/lib/language.js +0 -179
  605. package/node_modules/progrok/node_modules/negotiator/lib/mediaType.js +0 -294
  606. package/node_modules/progrok/node_modules/negotiator/package.json +0 -42
  607. package/node_modules/progrok/node_modules/path-to-regexp/LICENSE +0 -21
  608. package/node_modules/progrok/node_modules/path-to-regexp/Readme.md +0 -35
  609. package/node_modules/progrok/node_modules/path-to-regexp/index.js +0 -158
  610. package/node_modules/progrok/node_modules/path-to-regexp/package.json +0 -30
  611. package/node_modules/progrok/node_modules/raw-body/LICENSE +0 -22
  612. package/node_modules/progrok/node_modules/raw-body/README.md +0 -223
  613. package/node_modules/progrok/node_modules/raw-body/index.d.ts +0 -87
  614. package/node_modules/progrok/node_modules/raw-body/index.js +0 -336
  615. package/node_modules/progrok/node_modules/raw-body/package.json +0 -47
  616. package/node_modules/progrok/node_modules/send/HISTORY.md +0 -538
  617. package/node_modules/progrok/node_modules/send/LICENSE +0 -23
  618. package/node_modules/progrok/node_modules/send/README.md +0 -327
  619. package/node_modules/progrok/node_modules/send/SECURITY.md +0 -24
  620. package/node_modules/progrok/node_modules/send/index.js +0 -1142
  621. package/node_modules/progrok/node_modules/send/package.json +0 -62
  622. package/node_modules/progrok/node_modules/serve-static/HISTORY.md +0 -493
  623. package/node_modules/progrok/node_modules/serve-static/LICENSE +0 -25
  624. package/node_modules/progrok/node_modules/serve-static/README.md +0 -257
  625. package/node_modules/progrok/node_modules/serve-static/index.js +0 -209
  626. package/node_modules/progrok/node_modules/serve-static/package.json +0 -42
  627. package/node_modules/progrok/node_modules/type-is/HISTORY.md +0 -259
  628. package/node_modules/progrok/node_modules/type-is/LICENSE +0 -23
  629. package/node_modules/progrok/node_modules/type-is/README.md +0 -170
  630. package/node_modules/progrok/node_modules/type-is/index.js +0 -266
  631. package/node_modules/progrok/node_modules/type-is/package.json +0 -45
  632. package/node_modules/progrok/package.json +0 -52
  633. package/node_modules/progrok/skills/progrok/SKILL.md +0 -293
  634. package/node_modules/proxy-addr/HISTORY.md +0 -161
  635. package/node_modules/proxy-addr/LICENSE +0 -22
  636. package/node_modules/proxy-addr/README.md +0 -139
  637. package/node_modules/proxy-addr/index.js +0 -327
  638. package/node_modules/proxy-addr/package.json +0 -47
  639. package/node_modules/qs/.editorconfig +0 -46
  640. package/node_modules/qs/.github/FUNDING.yml +0 -12
  641. package/node_modules/qs/.github/SECURITY.md +0 -11
  642. package/node_modules/qs/.github/THREAT_MODEL.md +0 -78
  643. package/node_modules/qs/.nycrc +0 -13
  644. package/node_modules/qs/CHANGELOG.md +0 -822
  645. package/node_modules/qs/LICENSE.md +0 -29
  646. package/node_modules/qs/README.md +0 -758
  647. package/node_modules/qs/dist/qs.js +0 -141
  648. package/node_modules/qs/eslint.config.mjs +0 -57
  649. package/node_modules/qs/lib/formats.js +0 -23
  650. package/node_modules/qs/lib/index.js +0 -11
  651. package/node_modules/qs/lib/parse.js +0 -403
  652. package/node_modules/qs/lib/stringify.js +0 -363
  653. package/node_modules/qs/lib/utils.js +0 -342
  654. package/node_modules/qs/package.json +0 -94
  655. package/node_modules/qs/test/empty-keys-cases.js +0 -267
  656. package/node_modules/qs/test/parse.js +0 -1703
  657. package/node_modules/qs/test/stringify.js +0 -1448
  658. package/node_modules/qs/test/utils.js +0 -432
  659. package/node_modules/range-parser/HISTORY.md +0 -56
  660. package/node_modules/range-parser/LICENSE +0 -23
  661. package/node_modules/range-parser/README.md +0 -84
  662. package/node_modules/range-parser/index.js +0 -162
  663. package/node_modules/range-parser/package.json +0 -44
  664. package/node_modules/run-applescript/index.d.ts +0 -66
  665. package/node_modules/run-applescript/index.js +0 -37
  666. package/node_modules/run-applescript/license +0 -9
  667. package/node_modules/run-applescript/package.json +0 -42
  668. package/node_modules/run-applescript/readme.md +0 -78
  669. package/node_modules/safe-buffer/LICENSE +0 -21
  670. package/node_modules/safe-buffer/README.md +0 -584
  671. package/node_modules/safe-buffer/index.d.ts +0 -187
  672. package/node_modules/safe-buffer/index.js +0 -65
  673. package/node_modules/safe-buffer/package.json +0 -51
  674. package/node_modules/safer-buffer/LICENSE +0 -21
  675. package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  676. package/node_modules/safer-buffer/Readme.md +0 -156
  677. package/node_modules/safer-buffer/dangerous.js +0 -58
  678. package/node_modules/safer-buffer/package.json +0 -34
  679. package/node_modules/safer-buffer/safer.js +0 -77
  680. package/node_modules/safer-buffer/tests.js +0 -406
  681. package/node_modules/setprototypeof/LICENSE +0 -13
  682. package/node_modules/setprototypeof/README.md +0 -31
  683. package/node_modules/setprototypeof/index.d.ts +0 -2
  684. package/node_modules/setprototypeof/index.js +0 -17
  685. package/node_modules/setprototypeof/package.json +0 -38
  686. package/node_modules/setprototypeof/test/index.js +0 -24
  687. package/node_modules/side-channel/.editorconfig +0 -9
  688. package/node_modules/side-channel/.eslintrc +0 -12
  689. package/node_modules/side-channel/.github/FUNDING.yml +0 -12
  690. package/node_modules/side-channel/.nycrc +0 -13
  691. package/node_modules/side-channel/CHANGELOG.md +0 -110
  692. package/node_modules/side-channel/LICENSE +0 -21
  693. package/node_modules/side-channel/README.md +0 -61
  694. package/node_modules/side-channel/index.d.ts +0 -14
  695. package/node_modules/side-channel/index.js +0 -43
  696. package/node_modules/side-channel/package.json +0 -85
  697. package/node_modules/side-channel/test/index.js +0 -104
  698. package/node_modules/side-channel/tsconfig.json +0 -9
  699. package/node_modules/side-channel-list/.editorconfig +0 -9
  700. package/node_modules/side-channel-list/.eslintrc +0 -11
  701. package/node_modules/side-channel-list/.github/FUNDING.yml +0 -12
  702. package/node_modules/side-channel-list/.nycrc +0 -13
  703. package/node_modules/side-channel-list/CHANGELOG.md +0 -36
  704. package/node_modules/side-channel-list/LICENSE +0 -21
  705. package/node_modules/side-channel-list/README.md +0 -62
  706. package/node_modules/side-channel-list/index.d.ts +0 -13
  707. package/node_modules/side-channel-list/index.js +0 -111
  708. package/node_modules/side-channel-list/list.d.ts +0 -14
  709. package/node_modules/side-channel-list/package.json +0 -77
  710. package/node_modules/side-channel-list/test/index.js +0 -154
  711. package/node_modules/side-channel-list/tsconfig.json +0 -9
  712. package/node_modules/side-channel-map/.editorconfig +0 -9
  713. package/node_modules/side-channel-map/.eslintrc +0 -11
  714. package/node_modules/side-channel-map/.github/FUNDING.yml +0 -12
  715. package/node_modules/side-channel-map/.nycrc +0 -13
  716. package/node_modules/side-channel-map/CHANGELOG.md +0 -22
  717. package/node_modules/side-channel-map/LICENSE +0 -21
  718. package/node_modules/side-channel-map/README.md +0 -62
  719. package/node_modules/side-channel-map/index.d.ts +0 -15
  720. package/node_modules/side-channel-map/index.js +0 -68
  721. package/node_modules/side-channel-map/package.json +0 -80
  722. package/node_modules/side-channel-map/test/index.js +0 -114
  723. package/node_modules/side-channel-map/tsconfig.json +0 -9
  724. package/node_modules/side-channel-weakmap/.editorconfig +0 -9
  725. package/node_modules/side-channel-weakmap/.eslintrc +0 -12
  726. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +0 -12
  727. package/node_modules/side-channel-weakmap/.nycrc +0 -13
  728. package/node_modules/side-channel-weakmap/CHANGELOG.md +0 -28
  729. package/node_modules/side-channel-weakmap/LICENSE +0 -21
  730. package/node_modules/side-channel-weakmap/README.md +0 -62
  731. package/node_modules/side-channel-weakmap/index.d.ts +0 -15
  732. package/node_modules/side-channel-weakmap/index.js +0 -84
  733. package/node_modules/side-channel-weakmap/package.json +0 -87
  734. package/node_modules/side-channel-weakmap/test/index.js +0 -114
  735. package/node_modules/side-channel-weakmap/tsconfig.json +0 -9
  736. package/node_modules/statuses/HISTORY.md +0 -87
  737. package/node_modules/statuses/LICENSE +0 -23
  738. package/node_modules/statuses/README.md +0 -139
  739. package/node_modules/statuses/codes.json +0 -65
  740. package/node_modules/statuses/index.js +0 -146
  741. package/node_modules/statuses/package.json +0 -49
  742. package/node_modules/toidentifier/HISTORY.md +0 -9
  743. package/node_modules/toidentifier/LICENSE +0 -21
  744. package/node_modules/toidentifier/README.md +0 -61
  745. package/node_modules/toidentifier/index.js +0 -32
  746. package/node_modules/toidentifier/package.json +0 -38
  747. package/node_modules/unpipe/HISTORY.md +0 -4
  748. package/node_modules/unpipe/LICENSE +0 -22
  749. package/node_modules/unpipe/README.md +0 -43
  750. package/node_modules/unpipe/index.js +0 -69
  751. package/node_modules/unpipe/package.json +0 -27
  752. package/node_modules/utils-merge/.npmignore +0 -9
  753. package/node_modules/utils-merge/LICENSE +0 -20
  754. package/node_modules/utils-merge/README.md +0 -34
  755. package/node_modules/utils-merge/index.js +0 -23
  756. package/node_modules/utils-merge/package.json +0 -40
  757. package/node_modules/vary/HISTORY.md +0 -39
  758. package/node_modules/vary/LICENSE +0 -22
  759. package/node_modules/vary/README.md +0 -101
  760. package/node_modules/vary/index.js +0 -149
  761. package/node_modules/vary/package.json +0 -43
  762. package/ui/dist/assets/index-DYtUJ4t0.js +0 -22
  763. package/ui/dist/assets/useAgentDialogFocus-B2snKbzK.js +0 -1
  764. package/vendor/progrok-0.2.0.tgz +0 -0
@@ -1,1045 +0,0 @@
1
- // Type definitions for commander
2
- // Original definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>
3
-
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
-
6
- // This is a trick to encourage editor to suggest the known literals while still
7
- // allowing any BaseType value.
8
- // References:
9
- // - https://github.com/microsoft/TypeScript/issues/29729
10
- // - https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts
11
- // - https://github.com/sindresorhus/type-fest/blob/main/source/primitive.d.ts
12
- type LiteralUnion<LiteralType, BaseType extends string | number> =
13
- | LiteralType
14
- | (BaseType & Record<never, never>);
15
-
16
- export class CommanderError extends Error {
17
- code: string;
18
- exitCode: number;
19
- message: string;
20
- nestedError?: string;
21
-
22
- /**
23
- * Constructs the CommanderError class
24
- * @param exitCode - suggested exit code which could be used with process.exit
25
- * @param code - an id string representing the error
26
- * @param message - human-readable description of the error
27
- */
28
- constructor(exitCode: number, code: string, message: string);
29
- }
30
-
31
- export class InvalidArgumentError extends CommanderError {
32
- /**
33
- * Constructs the InvalidArgumentError class
34
- * @param message - explanation of why argument is invalid
35
- */
36
- constructor(message: string);
37
- }
38
- export { InvalidArgumentError as InvalidOptionArgumentError }; // deprecated old name
39
-
40
- export interface ErrorOptions {
41
- // optional parameter for error()
42
- /** an id string representing the error */
43
- code?: string;
44
- /** suggested exit code which could be used with process.exit */
45
- exitCode?: number;
46
- }
47
-
48
- export class Argument {
49
- description: string;
50
- required: boolean;
51
- variadic: boolean;
52
- defaultValue?: any;
53
- defaultValueDescription?: string;
54
- argChoices?: string[];
55
-
56
- /**
57
- * Initialize a new command argument with the given name and description.
58
- * The default is that the argument is required, and you can explicitly
59
- * indicate this with <> around the name. Put [] around the name for an optional argument.
60
- */
61
- constructor(arg: string, description?: string);
62
-
63
- /**
64
- * Return argument name.
65
- */
66
- name(): string;
67
-
68
- /**
69
- * Set the default value, and optionally supply the description to be displayed in the help.
70
- */
71
- default(value: unknown, description?: string): this;
72
-
73
- /**
74
- * Set the custom handler for processing CLI command arguments into argument values.
75
- */
76
- argParser<T>(fn: (value: string, previous: T) => T): this;
77
-
78
- /**
79
- * Only allow argument value to be one of choices.
80
- */
81
- choices(values: readonly string[]): this;
82
-
83
- /**
84
- * Make argument required.
85
- */
86
- argRequired(): this;
87
-
88
- /**
89
- * Make argument optional.
90
- */
91
- argOptional(): this;
92
- }
93
-
94
- export class Option {
95
- flags: string;
96
- description: string;
97
-
98
- required: boolean; // A value must be supplied when the option is specified.
99
- optional: boolean; // A value is optional when the option is specified.
100
- variadic: boolean;
101
- mandatory: boolean; // The option must have a value after parsing, which usually means it must be specified on command line.
102
- short?: string;
103
- long?: string;
104
- negate: boolean;
105
- defaultValue?: any;
106
- defaultValueDescription?: string;
107
- presetArg?: unknown;
108
- envVar?: string;
109
- parseArg?: <T>(value: string, previous: T) => T;
110
- hidden: boolean;
111
- argChoices?: string[];
112
-
113
- constructor(flags: string, description?: string);
114
-
115
- /**
116
- * Set the default value, and optionally supply the description to be displayed in the help.
117
- */
118
- default(value: unknown, description?: string): this;
119
-
120
- /**
121
- * Preset to use when option used without option-argument, especially optional but also boolean and negated.
122
- * The custom processing (parseArg) is called.
123
- *
124
- * @example
125
- * ```ts
126
- * new Option('--color').default('GREYSCALE').preset('RGB');
127
- * new Option('--donate [amount]').preset('20').argParser(parseFloat);
128
- * ```
129
- */
130
- preset(arg: unknown): this;
131
-
132
- /**
133
- * Add option name(s) that conflict with this option.
134
- * An error will be displayed if conflicting options are found during parsing.
135
- *
136
- * @example
137
- * ```ts
138
- * new Option('--rgb').conflicts('cmyk');
139
- * new Option('--js').conflicts(['ts', 'jsx']);
140
- * ```
141
- */
142
- conflicts(names: string | string[]): this;
143
-
144
- /**
145
- * Specify implied option values for when this option is set and the implied options are not.
146
- *
147
- * The custom processing (parseArg) is not called on the implied values.
148
- *
149
- * @example
150
- * program
151
- * .addOption(new Option('--log', 'write logging information to file'))
152
- * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' }));
153
- */
154
- implies(optionValues: OptionValues): this;
155
-
156
- /**
157
- * Set environment variable to check for option value.
158
- *
159
- * An environment variables is only used if when processed the current option value is
160
- * undefined, or the source of the current value is 'default' or 'config' or 'env'.
161
- */
162
- env(name: string): this;
163
-
164
- /**
165
- * Set the custom handler for processing CLI option arguments into option values.
166
- */
167
- argParser<T>(fn: (value: string, previous: T) => T): this;
168
-
169
- /**
170
- * Whether the option is mandatory and must have a value after parsing.
171
- */
172
- makeOptionMandatory(mandatory?: boolean): this;
173
-
174
- /**
175
- * Hide option in help.
176
- */
177
- hideHelp(hide?: boolean): this;
178
-
179
- /**
180
- * Only allow option value to be one of choices.
181
- */
182
- choices(values: readonly string[]): this;
183
-
184
- /**
185
- * Return option name.
186
- */
187
- name(): string;
188
-
189
- /**
190
- * Return option name, in a camelcase format that can be used
191
- * as an object attribute key.
192
- */
193
- attributeName(): string;
194
-
195
- /**
196
- * Return whether a boolean option.
197
- *
198
- * Options are one of boolean, negated, required argument, or optional argument.
199
- */
200
- isBoolean(): boolean;
201
- }
202
-
203
- export class Help {
204
- /** output helpWidth, long lines are wrapped to fit */
205
- helpWidth?: number;
206
- minWidthToWrap: number;
207
- sortSubcommands: boolean;
208
- sortOptions: boolean;
209
- showGlobalOptions: boolean;
210
-
211
- constructor();
212
-
213
- /*
214
- * prepareContext is called by Commander after applying overrides from `Command.configureHelp()`
215
- * and just before calling `formatHelp()`.
216
- *
217
- * Commander just uses the helpWidth and the others are provided for subclasses.
218
- */
219
- prepareContext(contextOptions: {
220
- error?: boolean;
221
- helpWidth?: number;
222
- outputHasColors?: boolean;
223
- }): void;
224
-
225
- /** Get the command term to show in the list of subcommands. */
226
- subcommandTerm(cmd: Command): string;
227
- /** Get the command summary to show in the list of subcommands. */
228
- subcommandDescription(cmd: Command): string;
229
- /** Get the option term to show in the list of options. */
230
- optionTerm(option: Option): string;
231
- /** Get the option description to show in the list of options. */
232
- optionDescription(option: Option): string;
233
- /** Get the argument term to show in the list of arguments. */
234
- argumentTerm(argument: Argument): string;
235
- /** Get the argument description to show in the list of arguments. */
236
- argumentDescription(argument: Argument): string;
237
-
238
- /** Get the command usage to be displayed at the top of the built-in help. */
239
- commandUsage(cmd: Command): string;
240
- /** Get the description for the command. */
241
- commandDescription(cmd: Command): string;
242
-
243
- /** Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. */
244
- visibleCommands(cmd: Command): Command[];
245
- /** Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. */
246
- visibleOptions(cmd: Command): Option[];
247
- /** Get an array of the visible global options. (Not including help.) */
248
- visibleGlobalOptions(cmd: Command): Option[];
249
- /** Get an array of the arguments which have descriptions. */
250
- visibleArguments(cmd: Command): Argument[];
251
-
252
- /** Get the longest command term length. */
253
- longestSubcommandTermLength(cmd: Command, helper: Help): number;
254
- /** Get the longest option term length. */
255
- longestOptionTermLength(cmd: Command, helper: Help): number;
256
- /** Get the longest global option term length. */
257
- longestGlobalOptionTermLength(cmd: Command, helper: Help): number;
258
- /** Get the longest argument term length. */
259
- longestArgumentTermLength(cmd: Command, helper: Help): number;
260
-
261
- /** Return display width of string, ignoring ANSI escape sequences. Used in padding and wrapping calculations. */
262
- displayWidth(str: string): number;
263
-
264
- /** Style the titles. Called with 'Usage:', 'Options:', etc. */
265
- styleTitle(title: string): string;
266
-
267
- /** Usage: <str> */
268
- styleUsage(str: string): string;
269
- /** Style for command name in usage string. */
270
- styleCommandText(str: string): string;
271
-
272
- styleCommandDescription(str: string): string;
273
- styleOptionDescription(str: string): string;
274
- styleSubcommandDescription(str: string): string;
275
- styleArgumentDescription(str: string): string;
276
- /** Base style used by descriptions. */
277
- styleDescriptionText(str: string): string;
278
-
279
- styleOptionTerm(str: string): string;
280
- styleSubcommandTerm(str: string): string;
281
- styleArgumentTerm(str: string): string;
282
-
283
- /** Base style used in terms and usage for options. */
284
- styleOptionText(str: string): string;
285
- /** Base style used in terms and usage for subcommands. */
286
- styleSubcommandText(str: string): string;
287
- /** Base style used in terms and usage for arguments. */
288
- styleArgumentText(str: string): string;
289
-
290
- /** Calculate the pad width from the maximum term length. */
291
- padWidth(cmd: Command, helper: Help): number;
292
-
293
- /**
294
- * Wrap a string at whitespace, preserving existing line breaks.
295
- * Wrapping is skipped if the width is less than `minWidthToWrap`.
296
- */
297
- boxWrap(str: string, width: number): string;
298
-
299
- /** Detect manually wrapped and indented strings by checking for line break followed by whitespace. */
300
- preformatted(str: string): boolean;
301
-
302
- /**
303
- * Format the "item", which consists of a term and description. Pad the term and wrap the description, indenting the following lines.
304
- *
305
- * So "TTT", 5, "DDD DDDD DD DDD" might be formatted for this.helpWidth=17 like so:
306
- * TTT DDD DDDD
307
- * DD DDD
308
- */
309
- formatItem(
310
- term: string,
311
- termWidth: number,
312
- description: string,
313
- helper: Help,
314
- ): string;
315
-
316
- /** Generate the built-in help text. */
317
- formatHelp(cmd: Command, helper: Help): string;
318
- }
319
- export type HelpConfiguration = Partial<Help>;
320
-
321
- export interface ParseOptions {
322
- from: 'node' | 'electron' | 'user';
323
- }
324
- export interface HelpContext {
325
- // optional parameter for .help() and .outputHelp()
326
- error: boolean;
327
- }
328
- export interface AddHelpTextContext {
329
- // passed to text function used with .addHelpText()
330
- error: boolean;
331
- command: Command;
332
- }
333
- export interface OutputConfiguration {
334
- writeOut?(str: string): void;
335
- writeErr?(str: string): void;
336
- outputError?(str: string, write: (str: string) => void): void;
337
-
338
- getOutHelpWidth?(): number;
339
- getErrHelpWidth?(): number;
340
-
341
- getOutHasColors?(): boolean;
342
- getErrHasColors?(): boolean;
343
- stripColor?(str: string): string;
344
- }
345
-
346
- export type AddHelpTextPosition = 'beforeAll' | 'before' | 'after' | 'afterAll';
347
- export type HookEvent = 'preSubcommand' | 'preAction' | 'postAction';
348
- // The source is a string so author can define their own too.
349
- export type OptionValueSource =
350
- | LiteralUnion<'default' | 'config' | 'env' | 'cli' | 'implied', string>
351
- | undefined;
352
-
353
- export type OptionValues = Record<string, any>;
354
-
355
- export class Command {
356
- args: string[];
357
- processedArgs: any[];
358
- readonly commands: readonly Command[];
359
- readonly options: readonly Option[];
360
- readonly registeredArguments: readonly Argument[];
361
- parent: Command | null;
362
-
363
- constructor(name?: string);
364
-
365
- /**
366
- * Set the program version to `str`.
367
- *
368
- * This method auto-registers the "-V, --version" flag
369
- * which will print the version number when passed.
370
- *
371
- * You can optionally supply the flags and description to override the defaults.
372
- */
373
- version(str: string, flags?: string, description?: string): this;
374
- /**
375
- * Get the program version.
376
- */
377
- version(): string | undefined;
378
-
379
- /**
380
- * Define a command, implemented using an action handler.
381
- *
382
- * @remarks
383
- * The command description is supplied using `.description`, not as a parameter to `.command`.
384
- *
385
- * @example
386
- * ```ts
387
- * program
388
- * .command('clone <source> [destination]')
389
- * .description('clone a repository into a newly created directory')
390
- * .action((source, destination) => {
391
- * console.log('clone command called');
392
- * });
393
- * ```
394
- *
395
- * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
396
- * @param opts - configuration options
397
- * @returns new command
398
- */
399
- command(
400
- nameAndArgs: string,
401
- opts?: CommandOptions,
402
- ): ReturnType<this['createCommand']>;
403
- /**
404
- * Define a command, implemented in a separate executable file.
405
- *
406
- * @remarks
407
- * The command description is supplied as the second parameter to `.command`.
408
- *
409
- * @example
410
- * ```ts
411
- * program
412
- * .command('start <service>', 'start named service')
413
- * .command('stop [service]', 'stop named service, or all if no name supplied');
414
- * ```
415
- *
416
- * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
417
- * @param description - description of executable command
418
- * @param opts - configuration options
419
- * @returns `this` command for chaining
420
- */
421
- command(
422
- nameAndArgs: string,
423
- description: string,
424
- opts?: ExecutableCommandOptions,
425
- ): this;
426
-
427
- /**
428
- * Factory routine to create a new unattached command.
429
- *
430
- * See .command() for creating an attached subcommand, which uses this routine to
431
- * create the command. You can override createCommand to customise subcommands.
432
- */
433
- createCommand(name?: string): Command;
434
-
435
- /**
436
- * Add a prepared subcommand.
437
- *
438
- * See .command() for creating an attached subcommand which inherits settings from its parent.
439
- *
440
- * @returns `this` command for chaining
441
- */
442
- addCommand(cmd: Command, opts?: CommandOptions): this;
443
-
444
- /**
445
- * Factory routine to create a new unattached argument.
446
- *
447
- * See .argument() for creating an attached argument, which uses this routine to
448
- * create the argument. You can override createArgument to return a custom argument.
449
- */
450
- createArgument(name: string, description?: string): Argument;
451
-
452
- /**
453
- * Define argument syntax for command.
454
- *
455
- * The default is that the argument is required, and you can explicitly
456
- * indicate this with <> around the name. Put [] around the name for an optional argument.
457
- *
458
- * @example
459
- * ```
460
- * program.argument('<input-file>');
461
- * program.argument('[output-file]');
462
- * ```
463
- *
464
- * @returns `this` command for chaining
465
- */
466
- argument<T>(
467
- flags: string,
468
- description: string,
469
- fn: (value: string, previous: T) => T,
470
- defaultValue?: T,
471
- ): this;
472
- argument(name: string, description?: string, defaultValue?: unknown): this;
473
-
474
- /**
475
- * Define argument syntax for command, adding a prepared argument.
476
- *
477
- * @returns `this` command for chaining
478
- */
479
- addArgument(arg: Argument): this;
480
-
481
- /**
482
- * Define argument syntax for command, adding multiple at once (without descriptions).
483
- *
484
- * See also .argument().
485
- *
486
- * @example
487
- * ```
488
- * program.arguments('<cmd> [env]');
489
- * ```
490
- *
491
- * @returns `this` command for chaining
492
- */
493
- arguments(names: string): this;
494
-
495
- /**
496
- * Customise or override default help command. By default a help command is automatically added if your command has subcommands.
497
- *
498
- * @example
499
- * ```ts
500
- * program.helpCommand('help [cmd]');
501
- * program.helpCommand('help [cmd]', 'show help');
502
- * program.helpCommand(false); // suppress default help command
503
- * program.helpCommand(true); // add help command even if no subcommands
504
- * ```
505
- */
506
- helpCommand(nameAndArgs: string, description?: string): this;
507
- helpCommand(enable: boolean): this;
508
-
509
- /**
510
- * Add prepared custom help command.
511
- */
512
- addHelpCommand(cmd: Command): this;
513
- /** @deprecated since v12, instead use helpCommand */
514
- addHelpCommand(nameAndArgs: string, description?: string): this;
515
- /** @deprecated since v12, instead use helpCommand */
516
- addHelpCommand(enable?: boolean): this;
517
-
518
- /**
519
- * Add hook for life cycle event.
520
- */
521
- hook(
522
- event: HookEvent,
523
- listener: (
524
- thisCommand: Command,
525
- actionCommand: Command,
526
- ) => void | Promise<void>,
527
- ): this;
528
-
529
- /**
530
- * Register callback to use as replacement for calling process.exit.
531
- */
532
- exitOverride(callback?: (err: CommanderError) => never | void): this;
533
-
534
- /**
535
- * Display error message and exit (or call exitOverride).
536
- */
537
- error(message: string, errorOptions?: ErrorOptions): never;
538
-
539
- /**
540
- * You can customise the help with a subclass of Help by overriding createHelp,
541
- * or by overriding Help properties using configureHelp().
542
- */
543
- createHelp(): Help;
544
-
545
- /**
546
- * You can customise the help by overriding Help properties using configureHelp(),
547
- * or with a subclass of Help by overriding createHelp().
548
- */
549
- configureHelp(configuration: HelpConfiguration): this;
550
- /** Get configuration */
551
- configureHelp(): HelpConfiguration;
552
-
553
- /**
554
- * The default output goes to stdout and stderr. You can customise this for special
555
- * applications. You can also customise the display of errors by overriding outputError.
556
- *
557
- * The configuration properties are all functions:
558
- * ```
559
- * // functions to change where being written, stdout and stderr
560
- * writeOut(str)
561
- * writeErr(str)
562
- * // matching functions to specify width for wrapping help
563
- * getOutHelpWidth()
564
- * getErrHelpWidth()
565
- * // functions based on what is being written out
566
- * outputError(str, write) // used for displaying errors, and not used for displaying help
567
- * ```
568
- */
569
- configureOutput(configuration: OutputConfiguration): this;
570
- /** Get configuration */
571
- configureOutput(): OutputConfiguration;
572
-
573
- /**
574
- * Copy settings that are useful to have in common across root command and subcommands.
575
- *
576
- * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
577
- */
578
- copyInheritedSettings(sourceCommand: Command): this;
579
-
580
- /**
581
- * Display the help or a custom message after an error occurs.
582
- */
583
- showHelpAfterError(displayHelp?: boolean | string): this;
584
-
585
- /**
586
- * Display suggestion of similar commands for unknown commands, or options for unknown options.
587
- */
588
- showSuggestionAfterError(displaySuggestion?: boolean): this;
589
-
590
- /**
591
- * Register callback `fn` for the command.
592
- *
593
- * @example
594
- * ```
595
- * program
596
- * .command('serve')
597
- * .description('start service')
598
- * .action(function() {
599
- * // do work here
600
- * });
601
- * ```
602
- *
603
- * @returns `this` command for chaining
604
- */
605
- action(fn: (this: this, ...args: any[]) => void | Promise<void>): this;
606
-
607
- /**
608
- * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
609
- *
610
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
611
- * option-argument is indicated by `<>` and an optional option-argument by `[]`.
612
- *
613
- * See the README for more details, and see also addOption() and requiredOption().
614
- *
615
- * @example
616
- *
617
- * ```js
618
- * program
619
- * .option('-p, --pepper', 'add pepper')
620
- * .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument
621
- * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
622
- * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
623
- * ```
624
- *
625
- * @returns `this` command for chaining
626
- */
627
- option(
628
- flags: string,
629
- description?: string,
630
- defaultValue?: string | boolean | string[],
631
- ): this;
632
- option<T>(
633
- flags: string,
634
- description: string,
635
- parseArg: (value: string, previous: T) => T,
636
- defaultValue?: T,
637
- ): this;
638
- /** @deprecated since v7, instead use choices or a custom function */
639
- option(
640
- flags: string,
641
- description: string,
642
- regexp: RegExp,
643
- defaultValue?: string | boolean | string[],
644
- ): this;
645
-
646
- /**
647
- * Define a required option, which must have a value after parsing. This usually means
648
- * the option must be specified on the command line. (Otherwise the same as .option().)
649
- *
650
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
651
- */
652
- requiredOption(
653
- flags: string,
654
- description?: string,
655
- defaultValue?: string | boolean | string[],
656
- ): this;
657
- requiredOption<T>(
658
- flags: string,
659
- description: string,
660
- parseArg: (value: string, previous: T) => T,
661
- defaultValue?: T,
662
- ): this;
663
- /** @deprecated since v7, instead use choices or a custom function */
664
- requiredOption(
665
- flags: string,
666
- description: string,
667
- regexp: RegExp,
668
- defaultValue?: string | boolean | string[],
669
- ): this;
670
-
671
- /**
672
- * Factory routine to create a new unattached option.
673
- *
674
- * See .option() for creating an attached option, which uses this routine to
675
- * create the option. You can override createOption to return a custom option.
676
- */
677
-
678
- createOption(flags: string, description?: string): Option;
679
-
680
- /**
681
- * Add a prepared Option.
682
- *
683
- * See .option() and .requiredOption() for creating and attaching an option in a single call.
684
- */
685
- addOption(option: Option): this;
686
-
687
- /**
688
- * Whether to store option values as properties on command object,
689
- * or store separately (specify false). In both cases the option values can be accessed using .opts().
690
- *
691
- * @returns `this` command for chaining
692
- */
693
- storeOptionsAsProperties<T extends OptionValues>(): this & T;
694
- storeOptionsAsProperties<T extends OptionValues>(
695
- storeAsProperties: true,
696
- ): this & T;
697
- storeOptionsAsProperties(storeAsProperties?: boolean): this;
698
-
699
- /**
700
- * Retrieve option value.
701
- */
702
- getOptionValue(key: string): any;
703
-
704
- /**
705
- * Store option value.
706
- */
707
- setOptionValue(key: string, value: unknown): this;
708
-
709
- /**
710
- * Store option value and where the value came from.
711
- */
712
- setOptionValueWithSource(
713
- key: string,
714
- value: unknown,
715
- source: OptionValueSource,
716
- ): this;
717
-
718
- /**
719
- * Get source of option value.
720
- */
721
- getOptionValueSource(key: string): OptionValueSource | undefined;
722
-
723
- /**
724
- * Get source of option value. See also .optsWithGlobals().
725
- */
726
- getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined;
727
-
728
- /**
729
- * Alter parsing of short flags with optional values.
730
- *
731
- * @example
732
- * ```
733
- * // for `.option('-f,--flag [value]'):
734
- * .combineFlagAndOptionalValue(true) // `-f80` is treated like `--flag=80`, this is the default behaviour
735
- * .combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
736
- * ```
737
- *
738
- * @returns `this` command for chaining
739
- */
740
- combineFlagAndOptionalValue(combine?: boolean): this;
741
-
742
- /**
743
- * Allow unknown options on the command line.
744
- *
745
- * @returns `this` command for chaining
746
- */
747
- allowUnknownOption(allowUnknown?: boolean): this;
748
-
749
- /**
750
- * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
751
- *
752
- * @returns `this` command for chaining
753
- */
754
- allowExcessArguments(allowExcess?: boolean): this;
755
-
756
- /**
757
- * Enable positional options. Positional means global options are specified before subcommands which lets
758
- * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
759
- *
760
- * The default behaviour is non-positional and global options may appear anywhere on the command line.
761
- *
762
- * @returns `this` command for chaining
763
- */
764
- enablePositionalOptions(positional?: boolean): this;
765
-
766
- /**
767
- * Pass through options that come after command-arguments rather than treat them as command-options,
768
- * so actual command-options come before command-arguments. Turning this on for a subcommand requires
769
- * positional options to have been enabled on the program (parent commands).
770
- *
771
- * The default behaviour is non-positional and options may appear before or after command-arguments.
772
- *
773
- * @returns `this` command for chaining
774
- */
775
- passThroughOptions(passThrough?: boolean): this;
776
-
777
- /**
778
- * Parse `argv`, setting options and invoking commands when defined.
779
- *
780
- * Use parseAsync instead of parse if any of your action handlers are async.
781
- *
782
- * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
783
- *
784
- * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
785
- * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
786
- * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
787
- * - `'user'`: just user arguments
788
- *
789
- * @example
790
- * ```
791
- * program.parse(); // parse process.argv and auto-detect electron and special node flags
792
- * program.parse(process.argv); // assume argv[0] is app and argv[1] is script
793
- * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
794
- * ```
795
- *
796
- * @returns `this` command for chaining
797
- */
798
- parse(argv?: readonly string[], parseOptions?: ParseOptions): this;
799
-
800
- /**
801
- * Parse `argv`, setting options and invoking commands when defined.
802
- *
803
- * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
804
- *
805
- * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
806
- * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
807
- * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
808
- * - `'user'`: just user arguments
809
- *
810
- * @example
811
- * ```
812
- * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags
813
- * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script
814
- * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
815
- * ```
816
- *
817
- * @returns Promise
818
- */
819
- parseAsync(
820
- argv?: readonly string[],
821
- parseOptions?: ParseOptions,
822
- ): Promise<this>;
823
-
824
- /**
825
- * Called the first time parse is called to save state and allow a restore before subsequent calls to parse.
826
- * Not usually called directly, but available for subclasses to save their custom state.
827
- *
828
- * This is called in a lazy way. Only commands used in parsing chain will have state saved.
829
- */
830
- saveStateBeforeParse(): void;
831
-
832
- /**
833
- * Restore state before parse for calls after the first.
834
- * Not usually called directly, but available for subclasses to save their custom state.
835
- *
836
- * This is called in a lazy way. Only commands used in parsing chain will have state restored.
837
- */
838
- restoreStateBeforeParse(): void;
839
-
840
- /**
841
- * Parse options from `argv` removing known options,
842
- * and return argv split into operands and unknown arguments.
843
- *
844
- * Side effects: modifies command by storing options. Does not reset state if called again.
845
- *
846
- * argv => operands, unknown
847
- * --known kkk op => [op], []
848
- * op --known kkk => [op], []
849
- * sub --unknown uuu op => [sub], [--unknown uuu op]
850
- * sub -- --unknown uuu op => [sub --unknown uuu op], []
851
- */
852
- parseOptions(argv: string[]): ParseOptionsResult;
853
-
854
- /**
855
- * Return an object containing local option values as key-value pairs
856
- */
857
- opts<T extends OptionValues>(): T;
858
-
859
- /**
860
- * Return an object containing merged local and global option values as key-value pairs.
861
- */
862
- optsWithGlobals<T extends OptionValues>(): T;
863
-
864
- /**
865
- * Set the description.
866
- *
867
- * @returns `this` command for chaining
868
- */
869
-
870
- description(str: string): this;
871
- /** @deprecated since v8, instead use .argument to add command argument with description */
872
- description(str: string, argsDescription: Record<string, string>): this;
873
- /**
874
- * Get the description.
875
- */
876
- description(): string;
877
-
878
- /**
879
- * Set the summary. Used when listed as subcommand of parent.
880
- *
881
- * @returns `this` command for chaining
882
- */
883
-
884
- summary(str: string): this;
885
- /**
886
- * Get the summary.
887
- */
888
- summary(): string;
889
-
890
- /**
891
- * Set an alias for the command.
892
- *
893
- * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
894
- *
895
- * @returns `this` command for chaining
896
- */
897
- alias(alias: string): this;
898
- /**
899
- * Get alias for the command.
900
- */
901
- alias(): string;
902
-
903
- /**
904
- * Set aliases for the command.
905
- *
906
- * Only the first alias is shown in the auto-generated help.
907
- *
908
- * @returns `this` command for chaining
909
- */
910
- aliases(aliases: readonly string[]): this;
911
- /**
912
- * Get aliases for the command.
913
- */
914
- aliases(): string[];
915
-
916
- /**
917
- * Set the command usage.
918
- *
919
- * @returns `this` command for chaining
920
- */
921
- usage(str: string): this;
922
- /**
923
- * Get the command usage.
924
- */
925
- usage(): string;
926
-
927
- /**
928
- * Set the name of the command.
929
- *
930
- * @returns `this` command for chaining
931
- */
932
- name(str: string): this;
933
- /**
934
- * Get the name of the command.
935
- */
936
- name(): string;
937
-
938
- /**
939
- * Set the name of the command from script filename, such as process.argv[1],
940
- * or require.main.filename, or __filename.
941
- *
942
- * (Used internally and public although not documented in README.)
943
- *
944
- * @example
945
- * ```ts
946
- * program.nameFromFilename(require.main.filename);
947
- * ```
948
- *
949
- * @returns `this` command for chaining
950
- */
951
- nameFromFilename(filename: string): this;
952
-
953
- /**
954
- * Set the directory for searching for executable subcommands of this command.
955
- *
956
- * @example
957
- * ```ts
958
- * program.executableDir(__dirname);
959
- * // or
960
- * program.executableDir('subcommands');
961
- * ```
962
- *
963
- * @returns `this` command for chaining
964
- */
965
- executableDir(path: string): this;
966
- /**
967
- * Get the executable search directory.
968
- */
969
- executableDir(): string | null;
970
-
971
- /**
972
- * Output help information for this command.
973
- *
974
- * Outputs built-in help, and custom text added using `.addHelpText()`.
975
- *
976
- */
977
- outputHelp(context?: HelpContext): void;
978
- /** @deprecated since v7 */
979
- outputHelp(cb?: (str: string) => string): void;
980
-
981
- /**
982
- * Return command help documentation.
983
- */
984
- helpInformation(context?: HelpContext): string;
985
-
986
- /**
987
- * You can pass in flags and a description to override the help
988
- * flags and help description for your command. Pass in false
989
- * to disable the built-in help option.
990
- */
991
- helpOption(flags?: string | boolean, description?: string): this;
992
-
993
- /**
994
- * Supply your own option to use for the built-in help option.
995
- * This is an alternative to using helpOption() to customise the flags and description etc.
996
- */
997
- addHelpOption(option: Option): this;
998
-
999
- /**
1000
- * Output help information and exit.
1001
- *
1002
- * Outputs built-in help, and custom text added using `.addHelpText()`.
1003
- */
1004
- help(context?: HelpContext): never;
1005
- /** @deprecated since v7 */
1006
- help(cb?: (str: string) => string): never;
1007
-
1008
- /**
1009
- * Add additional text to be displayed with the built-in help.
1010
- *
1011
- * Position is 'before' or 'after' to affect just this command,
1012
- * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
1013
- */
1014
- addHelpText(position: AddHelpTextPosition, text: string): this;
1015
- addHelpText(
1016
- position: AddHelpTextPosition,
1017
- text: (context: AddHelpTextContext) => string,
1018
- ): this;
1019
-
1020
- /**
1021
- * Add a listener (callback) for when events occur. (Implemented using EventEmitter.)
1022
- */
1023
- on(event: string | symbol, listener: (...args: any[]) => void): this;
1024
- }
1025
-
1026
- export interface CommandOptions {
1027
- hidden?: boolean;
1028
- isDefault?: boolean;
1029
- /** @deprecated since v7, replaced by hidden */
1030
- noHelp?: boolean;
1031
- }
1032
- export interface ExecutableCommandOptions extends CommandOptions {
1033
- executableFile?: string;
1034
- }
1035
-
1036
- export interface ParseOptionsResult {
1037
- operands: string[];
1038
- unknown: string[];
1039
- }
1040
-
1041
- export function createCommand(name?: string): Command;
1042
- export function createOption(flags: string, description?: string): Option;
1043
- export function createArgument(name: string, description?: string): Argument;
1044
-
1045
- export const program: Command;