omegon 0.6.32 → 0.7.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 (591) hide show
  1. package/bin/omegon.mjs +74 -1
  2. package/extensions/00-secrets/index.ts +6 -0
  3. package/extensions/00-splash/index.ts +338 -0
  4. package/extensions/00-splash/logo.ts +194 -0
  5. package/extensions/bootstrap/index.ts +19 -2
  6. package/extensions/effort/index.ts +10 -0
  7. package/extensions/lib/splash-state.ts +25 -0
  8. package/extensions/mcp-bridge/index.ts +5 -0
  9. package/extensions/project-memory/index.ts +10 -0
  10. package/extensions/tool-profile/index.ts +7 -2
  11. package/node_modules/@smithy/core/package.json +2 -2
  12. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  13. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  14. package/node_modules/@smithy/middleware-serde/package.json +2 -2
  15. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +44 -37
  16. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +38 -31
  17. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  18. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +1 -1
  19. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
  20. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
  21. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
  22. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
  23. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  24. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
  25. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
  26. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
  27. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
  28. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
  29. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
  30. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  31. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
  32. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  33. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  34. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
  35. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
  36. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
  37. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
  38. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
  39. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
  40. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
  41. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
  42. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
  43. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
  44. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
  45. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
  46. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
  47. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
  48. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
  49. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
  50. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  51. package/node_modules/@smithy/smithy-client/package.json +4 -4
  52. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  53. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  54. package/node_modules/@smithy/util-stream/package.json +2 -2
  55. package/node_modules/file-type/core.js +86 -9
  56. package/node_modules/file-type/index.js +17 -1
  57. package/node_modules/file-type/package.json +1 -1
  58. package/node_modules/file-type/readme.md +3 -0
  59. package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  60. package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
  61. package/node_modules/gaxios/package.json +13 -14
  62. package/node_modules/google-auth-library/package.json +2 -2
  63. package/package.json +5 -5
  64. package/node_modules/@isaacs/cliui/LICENSE.txt +0 -14
  65. package/node_modules/@isaacs/cliui/README.md +0 -143
  66. package/node_modules/@isaacs/cliui/build/index.cjs +0 -317
  67. package/node_modules/@isaacs/cliui/build/index.d.cts +0 -43
  68. package/node_modules/@isaacs/cliui/build/lib/index.js +0 -302
  69. package/node_modules/@isaacs/cliui/index.mjs +0 -14
  70. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.d.ts +0 -236
  71. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js +0 -223
  72. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/license +0 -9
  73. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/package.json +0 -54
  74. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/readme.md +0 -173
  75. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  76. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md +0 -137
  77. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts +0 -5
  78. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js +0 -6
  79. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +0 -5
  80. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js +0 -6
  81. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts +0 -5
  82. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js +0 -6
  83. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts +0 -5
  84. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js +0 -6
  85. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts +0 -5
  86. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js +0 -6
  87. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json +0 -52
  88. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts +0 -5
  89. package/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js +0 -6
  90. package/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts +0 -29
  91. package/node_modules/@isaacs/cliui/node_modules/string-width/index.js +0 -54
  92. package/node_modules/@isaacs/cliui/node_modules/string-width/license +0 -9
  93. package/node_modules/@isaacs/cliui/node_modules/string-width/package.json +0 -59
  94. package/node_modules/@isaacs/cliui/node_modules/string-width/readme.md +0 -67
  95. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts +0 -41
  96. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js +0 -214
  97. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license +0 -9
  98. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json +0 -69
  99. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md +0 -91
  100. package/node_modules/@isaacs/cliui/package.json +0 -86
  101. package/node_modules/@pkgjs/parseargs/.editorconfig +0 -14
  102. package/node_modules/@pkgjs/parseargs/CHANGELOG.md +0 -147
  103. package/node_modules/@pkgjs/parseargs/LICENSE +0 -201
  104. package/node_modules/@pkgjs/parseargs/README.md +0 -413
  105. package/node_modules/@pkgjs/parseargs/examples/is-default-value.js +0 -25
  106. package/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +0 -35
  107. package/node_modules/@pkgjs/parseargs/examples/negate.js +0 -43
  108. package/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +0 -31
  109. package/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +0 -41
  110. package/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +0 -26
  111. package/node_modules/@pkgjs/parseargs/index.js +0 -396
  112. package/node_modules/@pkgjs/parseargs/internal/errors.js +0 -47
  113. package/node_modules/@pkgjs/parseargs/internal/primordials.js +0 -393
  114. package/node_modules/@pkgjs/parseargs/internal/util.js +0 -14
  115. package/node_modules/@pkgjs/parseargs/internal/validators.js +0 -89
  116. package/node_modules/@pkgjs/parseargs/package.json +0 -36
  117. package/node_modules/@pkgjs/parseargs/utils.js +0 -198
  118. package/node_modules/cross-spawn/LICENSE +0 -21
  119. package/node_modules/cross-spawn/README.md +0 -89
  120. package/node_modules/cross-spawn/index.js +0 -39
  121. package/node_modules/cross-spawn/lib/enoent.js +0 -59
  122. package/node_modules/cross-spawn/lib/parse.js +0 -91
  123. package/node_modules/cross-spawn/lib/util/escape.js +0 -47
  124. package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  125. package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  126. package/node_modules/cross-spawn/package.json +0 -73
  127. package/node_modules/eastasianwidth/README.md +0 -32
  128. package/node_modules/eastasianwidth/eastasianwidth.js +0 -311
  129. package/node_modules/eastasianwidth/package.json +0 -18
  130. package/node_modules/foreground-child/LICENSE +0 -15
  131. package/node_modules/foreground-child/README.md +0 -128
  132. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
  133. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
  134. package/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
  135. package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
  136. package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
  137. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
  138. package/node_modules/foreground-child/dist/commonjs/index.js +0 -123
  139. package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
  140. package/node_modules/foreground-child/dist/commonjs/package.json +0 -3
  141. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
  142. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
  143. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
  144. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
  145. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
  146. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
  147. package/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
  148. package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
  149. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
  150. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
  151. package/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
  152. package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
  153. package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
  154. package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
  155. package/node_modules/foreground-child/dist/esm/index.js +0 -115
  156. package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
  157. package/node_modules/foreground-child/dist/esm/package.json +0 -3
  158. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
  159. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
  160. package/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
  161. package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
  162. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
  163. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
  164. package/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
  165. package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
  166. package/node_modules/foreground-child/node_modules/signal-exit/LICENSE.txt +0 -16
  167. package/node_modules/foreground-child/node_modules/signal-exit/README.md +0 -74
  168. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  169. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  170. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  171. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  172. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  173. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  174. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js +0 -279
  175. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  176. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/package.json +0 -3
  177. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  178. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  179. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  180. package/node_modules/foreground-child/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  181. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  182. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  183. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  184. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  185. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  186. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  187. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js +0 -275
  188. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  189. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/package.json +0 -3
  190. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  191. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  192. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  193. package/node_modules/foreground-child/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  194. package/node_modules/foreground-child/node_modules/signal-exit/package.json +0 -106
  195. package/node_modules/foreground-child/package.json +0 -106
  196. package/node_modules/isexe/.npmignore +0 -2
  197. package/node_modules/isexe/LICENSE +0 -15
  198. package/node_modules/isexe/README.md +0 -51
  199. package/node_modules/isexe/index.js +0 -57
  200. package/node_modules/isexe/mode.js +0 -41
  201. package/node_modules/isexe/package.json +0 -31
  202. package/node_modules/isexe/test/basic.js +0 -221
  203. package/node_modules/isexe/windows.js +0 -42
  204. package/node_modules/jackspeak/LICENSE.md +0 -55
  205. package/node_modules/jackspeak/README.md +0 -357
  206. package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -315
  207. package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
  208. package/node_modules/jackspeak/dist/commonjs/index.js +0 -1010
  209. package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
  210. package/node_modules/jackspeak/dist/commonjs/package.json +0 -3
  211. package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +0 -1
  212. package/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +0 -1
  213. package/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +0 -4
  214. package/node_modules/jackspeak/dist/commonjs/parse-args.js +0 -50
  215. package/node_modules/jackspeak/dist/esm/index.d.ts +0 -315
  216. package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
  217. package/node_modules/jackspeak/dist/esm/index.js +0 -1000
  218. package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
  219. package/node_modules/jackspeak/dist/esm/package.json +0 -3
  220. package/node_modules/jackspeak/dist/esm/parse-args.d.ts +0 -4
  221. package/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +0 -1
  222. package/node_modules/jackspeak/dist/esm/parse-args.js +0 -26
  223. package/node_modules/jackspeak/dist/esm/parse-args.js.map +0 -1
  224. package/node_modules/jackspeak/package.json +0 -95
  225. package/node_modules/package-json-from-dist/LICENSE.md +0 -63
  226. package/node_modules/package-json-from-dist/README.md +0 -110
  227. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
  228. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
  229. package/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
  230. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
  231. package/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
  232. package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
  233. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
  234. package/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
  235. package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
  236. package/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
  237. package/node_modules/package-json-from-dist/package.json +0 -68
  238. package/node_modules/path-key/index.d.ts +0 -40
  239. package/node_modules/path-key/index.js +0 -16
  240. package/node_modules/path-key/license +0 -9
  241. package/node_modules/path-key/package.json +0 -39
  242. package/node_modules/path-key/readme.md +0 -61
  243. package/node_modules/rimraf/LICENSE +0 -15
  244. package/node_modules/rimraf/README.md +0 -220
  245. package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
  246. package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
  247. package/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
  248. package/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
  249. package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
  250. package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
  251. package/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
  252. package/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
  253. package/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
  254. package/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
  255. package/node_modules/rimraf/dist/commonjs/fs.js +0 -46
  256. package/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
  257. package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
  258. package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
  259. package/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
  260. package/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
  261. package/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
  262. package/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
  263. package/node_modules/rimraf/dist/commonjs/index.js +0 -78
  264. package/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
  265. package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -34
  266. package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
  267. package/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
  268. package/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
  269. package/node_modules/rimraf/dist/commonjs/package.json +0 -3
  270. package/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
  271. package/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
  272. package/node_modules/rimraf/dist/commonjs/path-arg.js +0 -52
  273. package/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
  274. package/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
  275. package/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
  276. package/node_modules/rimraf/dist/commonjs/platform.js +0 -4
  277. package/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
  278. package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -3
  279. package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
  280. package/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
  281. package/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
  282. package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
  283. package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
  284. package/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
  285. package/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
  286. package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
  287. package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
  288. package/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
  289. package/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
  290. package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
  291. package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
  292. package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
  293. package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
  294. package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
  295. package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
  296. package/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
  297. package/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
  298. package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
  299. package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
  300. package/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
  301. package/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
  302. package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
  303. package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
  304. package/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
  305. package/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
  306. package/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
  307. package/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
  308. package/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
  309. package/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
  310. package/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
  311. package/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
  312. package/node_modules/rimraf/dist/esm/bin.mjs +0 -256
  313. package/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
  314. package/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
  315. package/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
  316. package/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
  317. package/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
  318. package/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
  319. package/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
  320. package/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
  321. package/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
  322. package/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
  323. package/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
  324. package/node_modules/rimraf/dist/esm/fs.js +0 -31
  325. package/node_modules/rimraf/dist/esm/fs.js.map +0 -1
  326. package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
  327. package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
  328. package/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
  329. package/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
  330. package/node_modules/rimraf/dist/esm/index.d.ts +0 -50
  331. package/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
  332. package/node_modules/rimraf/dist/esm/index.js +0 -70
  333. package/node_modules/rimraf/dist/esm/index.js.map +0 -1
  334. package/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -34
  335. package/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
  336. package/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
  337. package/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
  338. package/node_modules/rimraf/dist/esm/package.json +0 -3
  339. package/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
  340. package/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
  341. package/node_modules/rimraf/dist/esm/path-arg.js +0 -47
  342. package/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
  343. package/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
  344. package/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
  345. package/node_modules/rimraf/dist/esm/platform.js +0 -2
  346. package/node_modules/rimraf/dist/esm/platform.js.map +0 -1
  347. package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -3
  348. package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
  349. package/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
  350. package/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
  351. package/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
  352. package/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
  353. package/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
  354. package/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
  355. package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
  356. package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
  357. package/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
  358. package/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
  359. package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
  360. package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
  361. package/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
  362. package/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
  363. package/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
  364. package/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
  365. package/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
  366. package/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
  367. package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
  368. package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
  369. package/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
  370. package/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
  371. package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
  372. package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
  373. package/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
  374. package/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
  375. package/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
  376. package/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
  377. package/node_modules/rimraf/dist/esm/use-native.js +0 -16
  378. package/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
  379. package/node_modules/rimraf/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  380. package/node_modules/rimraf/node_modules/balanced-match/LICENSE.md +0 -21
  381. package/node_modules/rimraf/node_modules/balanced-match/README.md +0 -97
  382. package/node_modules/rimraf/node_modules/balanced-match/index.js +0 -62
  383. package/node_modules/rimraf/node_modules/balanced-match/package.json +0 -48
  384. package/node_modules/rimraf/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  385. package/node_modules/rimraf/node_modules/brace-expansion/LICENSE +0 -21
  386. package/node_modules/rimraf/node_modules/brace-expansion/README.md +0 -135
  387. package/node_modules/rimraf/node_modules/brace-expansion/index.js +0 -203
  388. package/node_modules/rimraf/node_modules/brace-expansion/package.json +0 -49
  389. package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
  390. package/node_modules/rimraf/node_modules/glob/README.md +0 -1265
  391. package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
  392. package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  393. package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js +0 -247
  394. package/node_modules/rimraf/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  395. package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  396. package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  397. package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  398. package/node_modules/rimraf/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  399. package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
  400. package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  401. package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js +0 -119
  402. package/node_modules/rimraf/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  403. package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts +0 -97
  404. package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  405. package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js +0 -68
  406. package/node_modules/rimraf/node_modules/glob/dist/commonjs/index.js.map +0 -1
  407. package/node_modules/rimraf/node_modules/glob/dist/commonjs/package.json +0 -3
  408. package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
  409. package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  410. package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js +0 -219
  411. package/node_modules/rimraf/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  412. package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  413. package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  414. package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js +0 -301
  415. package/node_modules/rimraf/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  416. package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
  417. package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  418. package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js +0 -387
  419. package/node_modules/rimraf/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  420. package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts +0 -3
  421. package/node_modules/rimraf/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  422. package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs +0 -346
  423. package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  424. package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts +0 -388
  425. package/node_modules/rimraf/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  426. package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js +0 -243
  427. package/node_modules/rimraf/node_modules/glob/dist/esm/glob.js.map +0 -1
  428. package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  429. package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  430. package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js +0 -23
  431. package/node_modules/rimraf/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  432. package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts +0 -24
  433. package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  434. package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js +0 -115
  435. package/node_modules/rimraf/node_modules/glob/dist/esm/ignore.js.map +0 -1
  436. package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts +0 -97
  437. package/node_modules/rimraf/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  438. package/node_modules/rimraf/node_modules/glob/dist/esm/index.js +0 -55
  439. package/node_modules/rimraf/node_modules/glob/dist/esm/index.js.map +0 -1
  440. package/node_modules/rimraf/node_modules/glob/dist/esm/package.json +0 -3
  441. package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts +0 -76
  442. package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  443. package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js +0 -215
  444. package/node_modules/rimraf/node_modules/glob/dist/esm/pattern.js.map +0 -1
  445. package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts +0 -59
  446. package/node_modules/rimraf/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  447. package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js +0 -294
  448. package/node_modules/rimraf/node_modules/glob/dist/esm/processor.js.map +0 -1
  449. package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts +0 -97
  450. package/node_modules/rimraf/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  451. package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js +0 -381
  452. package/node_modules/rimraf/node_modules/glob/dist/esm/walker.js.map +0 -1
  453. package/node_modules/rimraf/node_modules/glob/package.json +0 -99
  454. package/node_modules/rimraf/node_modules/lru-cache/LICENSE +0 -15
  455. package/node_modules/rimraf/node_modules/lru-cache/README.md +0 -331
  456. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1277
  457. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  458. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +0 -1546
  459. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  460. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  461. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  462. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  463. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +0 -1277
  464. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  465. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +0 -1542
  466. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  467. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  468. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  469. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/package.json +0 -3
  470. package/node_modules/rimraf/node_modules/lru-cache/package.json +0 -116
  471. package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
  472. package/node_modules/rimraf/node_modules/minimatch/README.md +0 -491
  473. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  474. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  475. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  476. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  477. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -20
  478. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  479. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js +0 -747
  480. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  481. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  482. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  483. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -152
  484. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  485. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -12
  486. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  487. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js +0 -22
  488. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  489. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts +0 -98
  490. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  491. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js +0 -1023
  492. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  493. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/package.json +0 -3
  494. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -17
  495. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  496. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js +0 -24
  497. package/node_modules/rimraf/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  498. package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  499. package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  500. package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  501. package/node_modules/rimraf/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  502. package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts +0 -20
  503. package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  504. package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js +0 -743
  505. package/node_modules/rimraf/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  506. package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  507. package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  508. package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js +0 -148
  509. package/node_modules/rimraf/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  510. package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts +0 -12
  511. package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  512. package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js +0 -18
  513. package/node_modules/rimraf/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  514. package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts +0 -98
  515. package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  516. package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js +0 -1007
  517. package/node_modules/rimraf/node_modules/minimatch/dist/esm/index.js.map +0 -1
  518. package/node_modules/rimraf/node_modules/minimatch/dist/esm/package.json +0 -3
  519. package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts +0 -17
  520. package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  521. package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js +0 -20
  522. package/node_modules/rimraf/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  523. package/node_modules/rimraf/node_modules/minimatch/package.json +0 -82
  524. package/node_modules/rimraf/node_modules/path-scurry/LICENSE.md +0 -55
  525. package/node_modules/rimraf/node_modules/path-scurry/README.md +0 -636
  526. package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1116
  527. package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
  528. package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js +0 -2014
  529. package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
  530. package/node_modules/rimraf/node_modules/path-scurry/dist/commonjs/package.json +0 -3
  531. package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts +0 -1116
  532. package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
  533. package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js +0 -1979
  534. package/node_modules/rimraf/node_modules/path-scurry/dist/esm/index.js.map +0 -1
  535. package/node_modules/rimraf/node_modules/path-scurry/dist/esm/package.json +0 -3
  536. package/node_modules/rimraf/node_modules/path-scurry/package.json +0 -89
  537. package/node_modules/rimraf/package.json +0 -89
  538. package/node_modules/shebang-command/index.js +0 -19
  539. package/node_modules/shebang-command/license +0 -9
  540. package/node_modules/shebang-command/package.json +0 -34
  541. package/node_modules/shebang-command/readme.md +0 -34
  542. package/node_modules/shebang-regex/index.d.ts +0 -22
  543. package/node_modules/shebang-regex/index.js +0 -2
  544. package/node_modules/shebang-regex/license +0 -9
  545. package/node_modules/shebang-regex/package.json +0 -35
  546. package/node_modules/shebang-regex/readme.md +0 -33
  547. package/node_modules/string-width-cjs/index.d.ts +0 -29
  548. package/node_modules/string-width-cjs/index.js +0 -47
  549. package/node_modules/string-width-cjs/license +0 -9
  550. package/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  551. package/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +0 -10
  552. package/node_modules/string-width-cjs/node_modules/ansi-regex/license +0 -9
  553. package/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +0 -55
  554. package/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +0 -78
  555. package/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +0 -17
  556. package/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +0 -4
  557. package/node_modules/string-width-cjs/node_modules/strip-ansi/license +0 -9
  558. package/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +0 -54
  559. package/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +0 -46
  560. package/node_modules/string-width-cjs/package.json +0 -56
  561. package/node_modules/string-width-cjs/readme.md +0 -50
  562. package/node_modules/strip-ansi-cjs/index.d.ts +0 -17
  563. package/node_modules/strip-ansi-cjs/index.js +0 -4
  564. package/node_modules/strip-ansi-cjs/license +0 -9
  565. package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  566. package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
  567. package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +0 -9
  568. package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
  569. package/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
  570. package/node_modules/strip-ansi-cjs/package.json +0 -54
  571. package/node_modules/strip-ansi-cjs/readme.md +0 -46
  572. package/node_modules/which/CHANGELOG.md +0 -166
  573. package/node_modules/which/LICENSE +0 -15
  574. package/node_modules/which/README.md +0 -54
  575. package/node_modules/which/bin/node-which +0 -52
  576. package/node_modules/which/package.json +0 -43
  577. package/node_modules/which/which.js +0 -125
  578. package/node_modules/wrap-ansi-cjs/index.js +0 -216
  579. package/node_modules/wrap-ansi-cjs/license +0 -9
  580. package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +0 -37
  581. package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +0 -10
  582. package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +0 -9
  583. package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +0 -55
  584. package/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +0 -78
  585. package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +0 -17
  586. package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +0 -4
  587. package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +0 -9
  588. package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +0 -54
  589. package/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +0 -46
  590. package/node_modules/wrap-ansi-cjs/package.json +0 -62
  591. package/node_modules/wrap-ansi-cjs/readme.md +0 -91
@@ -1,1010 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.jack = exports.Jack = exports.isConfigOption = exports.isConfigType = void 0;
7
- const node_util_1 = require("node:util");
8
- const parse_args_js_1 = require("./parse-args.js");
9
- // it's a tiny API, just cast it inline, it's fine
10
- //@ts-ignore
11
- const cliui_1 = __importDefault(require("@isaacs/cliui"));
12
- const node_path_1 = require("node:path");
13
- const width = Math.min((process && process.stdout && process.stdout.columns) || 80, 80);
14
- // indentation spaces from heading level
15
- const indent = (n) => (n - 1) * 2;
16
- const toEnvKey = (pref, key) => {
17
- return [pref, key.replace(/[^a-zA-Z0-9]+/g, ' ')]
18
- .join(' ')
19
- .trim()
20
- .toUpperCase()
21
- .replace(/ /g, '_');
22
- };
23
- const toEnvVal = (value, delim = '\n') => {
24
- const str = typeof value === 'string' ? value
25
- : typeof value === 'boolean' ?
26
- value ? '1'
27
- : '0'
28
- : typeof value === 'number' ? String(value)
29
- : Array.isArray(value) ?
30
- value.map((v) => toEnvVal(v)).join(delim)
31
- : /* c8 ignore start */ undefined;
32
- if (typeof str !== 'string') {
33
- throw new Error(`could not serialize value to environment: ${JSON.stringify(value)}`);
34
- }
35
- /* c8 ignore stop */
36
- return str;
37
- };
38
- const fromEnvVal = (env, type, multiple, delim = '\n') => (multiple ?
39
- env ? env.split(delim).map(v => fromEnvVal(v, type, false))
40
- : []
41
- : type === 'string' ? env
42
- : type === 'boolean' ? env === '1'
43
- : +env.trim());
44
- const isConfigType = (t) => typeof t === 'string' &&
45
- (t === 'string' || t === 'number' || t === 'boolean');
46
- exports.isConfigType = isConfigType;
47
- const undefOrType = (v, t) => v === undefined || typeof v === t;
48
- const undefOrTypeArray = (v, t) => v === undefined || (Array.isArray(v) && v.every(x => typeof x === t));
49
- const isValidOption = (v, vo) => Array.isArray(v) ? v.every(x => isValidOption(x, vo)) : vo.includes(v);
50
- // print the value type, for error message reporting
51
- const valueType = (v) => typeof v === 'string' ? 'string'
52
- : typeof v === 'boolean' ? 'boolean'
53
- : typeof v === 'number' ? 'number'
54
- : Array.isArray(v) ?
55
- joinTypes([...new Set(v.map(v => valueType(v)))]) + '[]'
56
- : `${v.type}${v.multiple ? '[]' : ''}`;
57
- const joinTypes = (types) => types.length === 1 && typeof types[0] === 'string' ?
58
- types[0]
59
- : `(${types.join('|')})`;
60
- const isValidValue = (v, type, multi) => {
61
- if (multi) {
62
- if (!Array.isArray(v))
63
- return false;
64
- return !v.some((v) => !isValidValue(v, type, false));
65
- }
66
- if (Array.isArray(v))
67
- return false;
68
- return typeof v === type;
69
- };
70
- const isConfigOption = (o, type, multi) => !!o &&
71
- typeof o === 'object' &&
72
- (0, exports.isConfigType)(o.type) &&
73
- o.type === type &&
74
- undefOrType(o.short, 'string') &&
75
- undefOrType(o.description, 'string') &&
76
- undefOrType(o.hint, 'string') &&
77
- undefOrType(o.validate, 'function') &&
78
- (o.type === 'boolean' ?
79
- o.validOptions === undefined
80
- : undefOrTypeArray(o.validOptions, o.type)) &&
81
- (o.default === undefined || isValidValue(o.default, type, multi)) &&
82
- !!o.multiple === multi;
83
- exports.isConfigOption = isConfigOption;
84
- function num(o = {}) {
85
- const { default: def, validate: val, validOptions, ...rest } = o;
86
- if (def !== undefined && !isValidValue(def, 'number', false)) {
87
- throw new TypeError('invalid default value', {
88
- cause: {
89
- found: def,
90
- wanted: 'number',
91
- },
92
- });
93
- }
94
- if (!undefOrTypeArray(validOptions, 'number')) {
95
- throw new TypeError('invalid validOptions', {
96
- cause: {
97
- found: validOptions,
98
- wanted: 'number[]',
99
- },
100
- });
101
- }
102
- const validate = val ?
103
- val
104
- : undefined;
105
- return {
106
- ...rest,
107
- default: def,
108
- validate,
109
- validOptions,
110
- type: 'number',
111
- multiple: false,
112
- };
113
- }
114
- function numList(o = {}) {
115
- const { default: def, validate: val, validOptions, ...rest } = o;
116
- if (def !== undefined && !isValidValue(def, 'number', true)) {
117
- throw new TypeError('invalid default value', {
118
- cause: {
119
- found: def,
120
- wanted: 'number[]',
121
- },
122
- });
123
- }
124
- if (!undefOrTypeArray(validOptions, 'number')) {
125
- throw new TypeError('invalid validOptions', {
126
- cause: {
127
- found: validOptions,
128
- wanted: 'number[]',
129
- },
130
- });
131
- }
132
- const validate = val ?
133
- val
134
- : undefined;
135
- return {
136
- ...rest,
137
- default: def,
138
- validate,
139
- validOptions,
140
- type: 'number',
141
- multiple: true,
142
- };
143
- }
144
- function opt(o = {}) {
145
- const { default: def, validate: val, validOptions, ...rest } = o;
146
- if (def !== undefined && !isValidValue(def, 'string', false)) {
147
- throw new TypeError('invalid default value', {
148
- cause: {
149
- found: def,
150
- wanted: 'string',
151
- },
152
- });
153
- }
154
- if (!undefOrTypeArray(validOptions, 'string')) {
155
- throw new TypeError('invalid validOptions', {
156
- cause: {
157
- found: validOptions,
158
- wanted: 'string[]',
159
- },
160
- });
161
- }
162
- const validate = val ?
163
- val
164
- : undefined;
165
- return {
166
- ...rest,
167
- default: def,
168
- validate,
169
- validOptions,
170
- type: 'string',
171
- multiple: false,
172
- };
173
- }
174
- function optList(o = {}) {
175
- const { default: def, validate: val, validOptions, ...rest } = o;
176
- if (def !== undefined && !isValidValue(def, 'string', true)) {
177
- throw new TypeError('invalid default value', {
178
- cause: {
179
- found: def,
180
- wanted: 'string[]',
181
- },
182
- });
183
- }
184
- if (!undefOrTypeArray(validOptions, 'string')) {
185
- throw new TypeError('invalid validOptions', {
186
- cause: {
187
- found: validOptions,
188
- wanted: 'string[]',
189
- },
190
- });
191
- }
192
- const validate = val ?
193
- val
194
- : undefined;
195
- return {
196
- ...rest,
197
- default: def,
198
- validate,
199
- validOptions,
200
- type: 'string',
201
- multiple: true,
202
- };
203
- }
204
- function flag(o = {}) {
205
- const { hint, default: def, validate: val, ...rest } = o;
206
- delete rest.validOptions;
207
- if (def !== undefined && !isValidValue(def, 'boolean', false)) {
208
- throw new TypeError('invalid default value');
209
- }
210
- const validate = val ?
211
- val
212
- : undefined;
213
- if (hint !== undefined) {
214
- throw new TypeError('cannot provide hint for flag');
215
- }
216
- return {
217
- ...rest,
218
- default: def,
219
- validate,
220
- type: 'boolean',
221
- multiple: false,
222
- };
223
- }
224
- function flagList(o = {}) {
225
- const { hint, default: def, validate: val, ...rest } = o;
226
- delete rest.validOptions;
227
- if (def !== undefined && !isValidValue(def, 'boolean', true)) {
228
- throw new TypeError('invalid default value');
229
- }
230
- const validate = val ?
231
- val
232
- : undefined;
233
- if (hint !== undefined) {
234
- throw new TypeError('cannot provide hint for flag list');
235
- }
236
- return {
237
- ...rest,
238
- default: def,
239
- validate,
240
- type: 'boolean',
241
- multiple: true,
242
- };
243
- }
244
- const toParseArgsOptionsConfig = (options) => {
245
- const c = {};
246
- for (const longOption in options) {
247
- const config = options[longOption];
248
- /* c8 ignore start */
249
- if (!config) {
250
- throw new Error('config must be an object: ' + longOption);
251
- }
252
- /* c8 ignore start */
253
- if ((0, exports.isConfigOption)(config, 'number', true)) {
254
- c[longOption] = {
255
- type: 'string',
256
- multiple: true,
257
- default: config.default?.map(c => String(c)),
258
- };
259
- }
260
- else if ((0, exports.isConfigOption)(config, 'number', false)) {
261
- c[longOption] = {
262
- type: 'string',
263
- multiple: false,
264
- default: config.default === undefined ?
265
- undefined
266
- : String(config.default),
267
- };
268
- }
269
- else {
270
- const conf = config;
271
- c[longOption] = {
272
- type: conf.type,
273
- multiple: !!conf.multiple,
274
- default: conf.default,
275
- };
276
- }
277
- const clo = c[longOption];
278
- if (typeof config.short === 'string') {
279
- clo.short = config.short;
280
- }
281
- if (config.type === 'boolean' &&
282
- !longOption.startsWith('no-') &&
283
- !options[`no-${longOption}`]) {
284
- c[`no-${longOption}`] = {
285
- type: 'boolean',
286
- multiple: config.multiple,
287
- };
288
- }
289
- }
290
- return c;
291
- };
292
- const isHeading = (r) => r.type === 'heading';
293
- const isDescription = (r) => r.type === 'description';
294
- /**
295
- * Class returned by the {@link jack} function and all configuration
296
- * definition methods. This is what gets chained together.
297
- */
298
- class Jack {
299
- #configSet;
300
- #shorts;
301
- #options;
302
- #fields = [];
303
- #env;
304
- #envPrefix;
305
- #allowPositionals;
306
- #usage;
307
- #usageMarkdown;
308
- constructor(options = {}) {
309
- this.#options = options;
310
- this.#allowPositionals = options.allowPositionals !== false;
311
- this.#env =
312
- this.#options.env === undefined ? process.env : this.#options.env;
313
- this.#envPrefix = options.envPrefix;
314
- // We need to fib a little, because it's always the same object, but it
315
- // starts out as having an empty config set. Then each method that adds
316
- // fields returns `this as Jack<C & { ...newConfigs }>`
317
- this.#configSet = Object.create(null);
318
- this.#shorts = Object.create(null);
319
- }
320
- /**
321
- * Set the default value (which will still be overridden by env or cli)
322
- * as if from a parsed config file. The optional `source` param, if
323
- * provided, will be included in error messages if a value is invalid or
324
- * unknown.
325
- */
326
- setConfigValues(values, source = '') {
327
- try {
328
- this.validate(values);
329
- }
330
- catch (er) {
331
- const e = er;
332
- if (source && e && typeof e === 'object') {
333
- if (e.cause && typeof e.cause === 'object') {
334
- Object.assign(e.cause, { path: source });
335
- }
336
- else {
337
- e.cause = { path: source };
338
- }
339
- }
340
- throw e;
341
- }
342
- for (const [field, value] of Object.entries(values)) {
343
- const my = this.#configSet[field];
344
- // already validated, just for TS's benefit
345
- /* c8 ignore start */
346
- if (!my) {
347
- throw new Error('unexpected field in config set: ' + field, {
348
- cause: { found: field },
349
- });
350
- }
351
- /* c8 ignore stop */
352
- my.default = value;
353
- }
354
- return this;
355
- }
356
- /**
357
- * Parse a string of arguments, and return the resulting
358
- * `{ values, positionals }` object.
359
- *
360
- * If an {@link JackOptions#envPrefix} is set, then it will read default
361
- * values from the environment, and write the resulting values back
362
- * to the environment as well.
363
- *
364
- * Environment values always take precedence over any other value, except
365
- * an explicit CLI setting.
366
- */
367
- parse(args = process.argv) {
368
- this.loadEnvDefaults();
369
- const p = this.parseRaw(args);
370
- this.applyDefaults(p);
371
- this.writeEnv(p);
372
- return p;
373
- }
374
- loadEnvDefaults() {
375
- if (this.#envPrefix) {
376
- for (const [field, my] of Object.entries(this.#configSet)) {
377
- const ek = toEnvKey(this.#envPrefix, field);
378
- const env = this.#env[ek];
379
- if (env !== undefined) {
380
- my.default = fromEnvVal(env, my.type, !!my.multiple, my.delim);
381
- }
382
- }
383
- }
384
- }
385
- applyDefaults(p) {
386
- for (const [field, c] of Object.entries(this.#configSet)) {
387
- if (c.default !== undefined && !(field in p.values)) {
388
- //@ts-ignore
389
- p.values[field] = c.default;
390
- }
391
- }
392
- }
393
- /**
394
- * Only parse the command line arguments passed in.
395
- * Does not strip off the `node script.js` bits, so it must be just the
396
- * arguments you wish to have parsed.
397
- * Does not read from or write to the environment, or set defaults.
398
- */
399
- parseRaw(args) {
400
- if (args === process.argv) {
401
- args = args.slice(process._eval !== undefined ? 1 : 2);
402
- }
403
- const options = toParseArgsOptionsConfig(this.#configSet);
404
- const result = (0, parse_args_js_1.parseArgs)({
405
- args,
406
- options,
407
- // always strict, but using our own logic
408
- strict: false,
409
- allowPositionals: this.#allowPositionals,
410
- tokens: true,
411
- });
412
- const p = {
413
- values: {},
414
- positionals: [],
415
- };
416
- for (const token of result.tokens) {
417
- if (token.kind === 'positional') {
418
- p.positionals.push(token.value);
419
- if (this.#options.stopAtPositional ||
420
- this.#options.stopAtPositionalTest?.(token.value)) {
421
- p.positionals.push(...args.slice(token.index + 1));
422
- break;
423
- }
424
- }
425
- else if (token.kind === 'option') {
426
- let value = undefined;
427
- if (token.name.startsWith('no-')) {
428
- const my = this.#configSet[token.name];
429
- const pname = token.name.substring('no-'.length);
430
- const pos = this.#configSet[pname];
431
- if (pos &&
432
- pos.type === 'boolean' &&
433
- (!my ||
434
- (my.type === 'boolean' && !!my.multiple === !!pos.multiple))) {
435
- value = false;
436
- token.name = pname;
437
- }
438
- }
439
- const my = this.#configSet[token.name];
440
- if (!my) {
441
- throw new Error(`Unknown option '${token.rawName}'. ` +
442
- `To specify a positional argument starting with a '-', ` +
443
- `place it at the end of the command after '--', as in ` +
444
- `'-- ${token.rawName}'`, {
445
- cause: {
446
- found: token.rawName + (token.value ? `=${token.value}` : ''),
447
- },
448
- });
449
- }
450
- if (value === undefined) {
451
- if (token.value === undefined) {
452
- if (my.type !== 'boolean') {
453
- throw new Error(`No value provided for ${token.rawName}, expected ${my.type}`, {
454
- cause: {
455
- name: token.rawName,
456
- wanted: valueType(my),
457
- },
458
- });
459
- }
460
- value = true;
461
- }
462
- else {
463
- if (my.type === 'boolean') {
464
- throw new Error(`Flag ${token.rawName} does not take a value, received '${token.value}'`, { cause: { found: token } });
465
- }
466
- if (my.type === 'string') {
467
- value = token.value;
468
- }
469
- else {
470
- value = +token.value;
471
- if (value !== value) {
472
- throw new Error(`Invalid value '${token.value}' provided for ` +
473
- `'${token.rawName}' option, expected number`, {
474
- cause: {
475
- name: token.rawName,
476
- found: token.value,
477
- wanted: 'number',
478
- },
479
- });
480
- }
481
- }
482
- }
483
- }
484
- if (my.multiple) {
485
- const pv = p.values;
486
- const tn = pv[token.name] ?? [];
487
- pv[token.name] = tn;
488
- tn.push(value);
489
- }
490
- else {
491
- const pv = p.values;
492
- pv[token.name] = value;
493
- }
494
- }
495
- }
496
- for (const [field, value] of Object.entries(p.values)) {
497
- const valid = this.#configSet[field]?.validate;
498
- const validOptions = this.#configSet[field]?.validOptions;
499
- let cause;
500
- if (validOptions && !isValidOption(value, validOptions)) {
501
- cause = { name: field, found: value, validOptions: validOptions };
502
- }
503
- if (valid && !valid(value)) {
504
- cause = cause || { name: field, found: value };
505
- }
506
- if (cause) {
507
- throw new Error(`Invalid value provided for --${field}: ${JSON.stringify(value)}`, { cause });
508
- }
509
- }
510
- return p;
511
- }
512
- /**
513
- * do not set fields as 'no-foo' if 'foo' exists and both are bools
514
- * just set foo.
515
- */
516
- #noNoFields(f, val, s = f) {
517
- if (!f.startsWith('no-') || typeof val !== 'boolean')
518
- return;
519
- const yes = f.substring('no-'.length);
520
- // recurse so we get the core config key we care about.
521
- this.#noNoFields(yes, val, s);
522
- if (this.#configSet[yes]?.type === 'boolean') {
523
- throw new Error(`do not set '${s}', instead set '${yes}' as desired.`, { cause: { found: s, wanted: yes } });
524
- }
525
- }
526
- /**
527
- * Validate that any arbitrary object is a valid configuration `values`
528
- * object. Useful when loading config files or other sources.
529
- */
530
- validate(o) {
531
- if (!o || typeof o !== 'object') {
532
- throw new Error('Invalid config: not an object', {
533
- cause: { found: o },
534
- });
535
- }
536
- const opts = o;
537
- for (const field in o) {
538
- const value = opts[field];
539
- /* c8 ignore next - for TS */
540
- if (value === undefined)
541
- continue;
542
- this.#noNoFields(field, value);
543
- const config = this.#configSet[field];
544
- if (!config) {
545
- throw new Error(`Unknown config option: ${field}`, {
546
- cause: { found: field },
547
- });
548
- }
549
- if (!isValidValue(value, config.type, !!config.multiple)) {
550
- throw new Error(`Invalid value ${valueType(value)} for ${field}, expected ${valueType(config)}`, {
551
- cause: {
552
- name: field,
553
- found: value,
554
- wanted: valueType(config),
555
- },
556
- });
557
- }
558
- let cause;
559
- if (config.validOptions &&
560
- !isValidOption(value, config.validOptions)) {
561
- cause = {
562
- name: field,
563
- found: value,
564
- validOptions: config.validOptions,
565
- };
566
- }
567
- if (config.validate && !config.validate(value)) {
568
- cause = cause || { name: field, found: value };
569
- }
570
- if (cause) {
571
- throw new Error(`Invalid config value for ${field}: ${value}`, {
572
- cause,
573
- });
574
- }
575
- }
576
- }
577
- writeEnv(p) {
578
- if (!this.#env || !this.#envPrefix)
579
- return;
580
- for (const [field, value] of Object.entries(p.values)) {
581
- const my = this.#configSet[field];
582
- this.#env[toEnvKey(this.#envPrefix, field)] = toEnvVal(value, my?.delim);
583
- }
584
- }
585
- /**
586
- * Add a heading to the usage output banner
587
- */
588
- heading(text, level, { pre = false } = {}) {
589
- if (level === undefined) {
590
- level = this.#fields.some(r => isHeading(r)) ? 2 : 1;
591
- }
592
- this.#fields.push({ type: 'heading', text, level, pre });
593
- return this;
594
- }
595
- /**
596
- * Add a long-form description to the usage output at this position.
597
- */
598
- description(text, { pre } = {}) {
599
- this.#fields.push({ type: 'description', text, pre });
600
- return this;
601
- }
602
- /**
603
- * Add one or more number fields.
604
- */
605
- num(fields) {
606
- return this.#addFields(fields, num);
607
- }
608
- /**
609
- * Add one or more multiple number fields.
610
- */
611
- numList(fields) {
612
- return this.#addFields(fields, numList);
613
- }
614
- /**
615
- * Add one or more string option fields.
616
- */
617
- opt(fields) {
618
- return this.#addFields(fields, opt);
619
- }
620
- /**
621
- * Add one or more multiple string option fields.
622
- */
623
- optList(fields) {
624
- return this.#addFields(fields, optList);
625
- }
626
- /**
627
- * Add one or more flag fields.
628
- */
629
- flag(fields) {
630
- return this.#addFields(fields, flag);
631
- }
632
- /**
633
- * Add one or more multiple flag fields.
634
- */
635
- flagList(fields) {
636
- return this.#addFields(fields, flagList);
637
- }
638
- /**
639
- * Generic field definition method. Similar to flag/flagList/number/etc,
640
- * but you must specify the `type` (and optionally `multiple` and `delim`)
641
- * fields on each one, or Jack won't know how to define them.
642
- */
643
- addFields(fields) {
644
- const next = this;
645
- for (const [name, field] of Object.entries(fields)) {
646
- this.#validateName(name, field);
647
- next.#fields.push({
648
- type: 'config',
649
- name,
650
- value: field,
651
- });
652
- }
653
- Object.assign(next.#configSet, fields);
654
- return next;
655
- }
656
- #addFields(fields, fn) {
657
- const next = this;
658
- Object.assign(next.#configSet, Object.fromEntries(Object.entries(fields).map(([name, field]) => {
659
- this.#validateName(name, field);
660
- const option = fn(field);
661
- next.#fields.push({
662
- type: 'config',
663
- name,
664
- value: option,
665
- });
666
- return [name, option];
667
- })));
668
- return next;
669
- }
670
- #validateName(name, field) {
671
- if (!/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$/.test(name)) {
672
- throw new TypeError(`Invalid option name: ${name}, ` +
673
- `must be '-' delimited ASCII alphanumeric`);
674
- }
675
- if (this.#configSet[name]) {
676
- throw new TypeError(`Cannot redefine option ${field}`);
677
- }
678
- if (this.#shorts[name]) {
679
- throw new TypeError(`Cannot redefine option ${name}, already ` +
680
- `in use for ${this.#shorts[name]}`);
681
- }
682
- if (field.short) {
683
- if (!/^[a-zA-Z0-9]$/.test(field.short)) {
684
- throw new TypeError(`Invalid ${name} short option: ${field.short}, ` +
685
- 'must be 1 ASCII alphanumeric character');
686
- }
687
- if (this.#shorts[field.short]) {
688
- throw new TypeError(`Invalid ${name} short option: ${field.short}, ` +
689
- `already in use for ${this.#shorts[field.short]}`);
690
- }
691
- this.#shorts[field.short] = name;
692
- this.#shorts[name] = name;
693
- }
694
- }
695
- /**
696
- * Return the usage banner for the given configuration
697
- */
698
- usage() {
699
- if (this.#usage)
700
- return this.#usage;
701
- let headingLevel = 1;
702
- const ui = (0, cliui_1.default)({ width });
703
- const first = this.#fields[0];
704
- let start = first?.type === 'heading' ? 1 : 0;
705
- if (first?.type === 'heading') {
706
- ui.div({
707
- padding: [0, 0, 0, 0],
708
- text: normalize(first.text),
709
- });
710
- }
711
- ui.div({ padding: [0, 0, 0, 0], text: 'Usage:' });
712
- if (this.#options.usage) {
713
- ui.div({
714
- text: this.#options.usage,
715
- padding: [0, 0, 0, 2],
716
- });
717
- }
718
- else {
719
- const cmd = (0, node_path_1.basename)(String(process.argv[1]));
720
- const shortFlags = [];
721
- const shorts = [];
722
- const flags = [];
723
- const opts = [];
724
- for (const [field, config] of Object.entries(this.#configSet)) {
725
- if (config.short) {
726
- if (config.type === 'boolean')
727
- shortFlags.push(config.short);
728
- else
729
- shorts.push([config.short, config.hint || field]);
730
- }
731
- else {
732
- if (config.type === 'boolean')
733
- flags.push(field);
734
- else
735
- opts.push([field, config.hint || field]);
736
- }
737
- }
738
- const sf = shortFlags.length ? ' -' + shortFlags.join('') : '';
739
- const so = shorts.map(([k, v]) => ` --${k}=<${v}>`).join('');
740
- const lf = flags.map(k => ` --${k}`).join('');
741
- const lo = opts.map(([k, v]) => ` --${k}=<${v}>`).join('');
742
- const usage = `${cmd}${sf}${so}${lf}${lo}`.trim();
743
- ui.div({
744
- text: usage,
745
- padding: [0, 0, 0, 2],
746
- });
747
- }
748
- ui.div({ padding: [0, 0, 0, 0], text: '' });
749
- const maybeDesc = this.#fields[start];
750
- if (maybeDesc && isDescription(maybeDesc)) {
751
- const print = normalize(maybeDesc.text, maybeDesc.pre);
752
- start++;
753
- ui.div({ padding: [0, 0, 0, 0], text: print });
754
- ui.div({ padding: [0, 0, 0, 0], text: '' });
755
- }
756
- const { rows, maxWidth } = this.#usageRows(start);
757
- // every heading/description after the first gets indented by 2
758
- // extra spaces.
759
- for (const row of rows) {
760
- if (row.left) {
761
- // If the row is too long, don't wrap it
762
- // Bump the right-hand side down a line to make room
763
- const configIndent = indent(Math.max(headingLevel, 2));
764
- if (row.left.length > maxWidth - 3) {
765
- ui.div({ text: row.left, padding: [0, 0, 0, configIndent] });
766
- ui.div({ text: row.text, padding: [0, 0, 0, maxWidth] });
767
- }
768
- else {
769
- ui.div({
770
- text: row.left,
771
- padding: [0, 1, 0, configIndent],
772
- width: maxWidth,
773
- }, { padding: [0, 0, 0, 0], text: row.text });
774
- }
775
- if (row.skipLine) {
776
- ui.div({ padding: [0, 0, 0, 0], text: '' });
777
- }
778
- }
779
- else {
780
- if (isHeading(row)) {
781
- const { level } = row;
782
- headingLevel = level;
783
- // only h1 and h2 have bottom padding
784
- // h3-h6 do not
785
- const b = level <= 2 ? 1 : 0;
786
- ui.div({ ...row, padding: [0, 0, b, indent(level)] });
787
- }
788
- else {
789
- ui.div({ ...row, padding: [0, 0, 1, indent(headingLevel + 1)] });
790
- }
791
- }
792
- }
793
- return (this.#usage = ui.toString());
794
- }
795
- /**
796
- * Return the usage banner markdown for the given configuration
797
- */
798
- usageMarkdown() {
799
- if (this.#usageMarkdown)
800
- return this.#usageMarkdown;
801
- const out = [];
802
- let headingLevel = 1;
803
- const first = this.#fields[0];
804
- let start = first?.type === 'heading' ? 1 : 0;
805
- if (first?.type === 'heading') {
806
- out.push(`# ${normalizeOneLine(first.text)}`);
807
- }
808
- out.push('Usage:');
809
- if (this.#options.usage) {
810
- out.push(normalizeMarkdown(this.#options.usage, true));
811
- }
812
- else {
813
- const cmd = (0, node_path_1.basename)(String(process.argv[1]));
814
- const shortFlags = [];
815
- const shorts = [];
816
- const flags = [];
817
- const opts = [];
818
- for (const [field, config] of Object.entries(this.#configSet)) {
819
- if (config.short) {
820
- if (config.type === 'boolean')
821
- shortFlags.push(config.short);
822
- else
823
- shorts.push([config.short, config.hint || field]);
824
- }
825
- else {
826
- if (config.type === 'boolean')
827
- flags.push(field);
828
- else
829
- opts.push([field, config.hint || field]);
830
- }
831
- }
832
- const sf = shortFlags.length ? ' -' + shortFlags.join('') : '';
833
- const so = shorts.map(([k, v]) => ` --${k}=<${v}>`).join('');
834
- const lf = flags.map(k => ` --${k}`).join('');
835
- const lo = opts.map(([k, v]) => ` --${k}=<${v}>`).join('');
836
- const usage = `${cmd}${sf}${so}${lf}${lo}`.trim();
837
- out.push(normalizeMarkdown(usage, true));
838
- }
839
- const maybeDesc = this.#fields[start];
840
- if (maybeDesc && isDescription(maybeDesc)) {
841
- out.push(normalizeMarkdown(maybeDesc.text, maybeDesc.pre));
842
- start++;
843
- }
844
- const { rows } = this.#usageRows(start);
845
- // heading level in markdown is number of # ahead of text
846
- for (const row of rows) {
847
- if (row.left) {
848
- out.push('#'.repeat(headingLevel + 1) +
849
- ' ' +
850
- normalizeOneLine(row.left, true));
851
- if (row.text)
852
- out.push(normalizeMarkdown(row.text));
853
- }
854
- else if (isHeading(row)) {
855
- const { level } = row;
856
- headingLevel = level;
857
- out.push(`${'#'.repeat(headingLevel)} ${normalizeOneLine(row.text, row.pre)}`);
858
- }
859
- else {
860
- out.push(normalizeMarkdown(row.text, !!row.pre));
861
- }
862
- }
863
- return (this.#usageMarkdown = out.join('\n\n') + '\n');
864
- }
865
- #usageRows(start) {
866
- // turn each config type into a row, and figure out the width of the
867
- // left hand indentation for the option descriptions.
868
- let maxMax = Math.max(12, Math.min(26, Math.floor(width / 3)));
869
- let maxWidth = 8;
870
- let prev = undefined;
871
- const rows = [];
872
- for (const field of this.#fields.slice(start)) {
873
- if (field.type !== 'config') {
874
- if (prev?.type === 'config')
875
- prev.skipLine = true;
876
- prev = undefined;
877
- field.text = normalize(field.text, !!field.pre);
878
- rows.push(field);
879
- continue;
880
- }
881
- const { value } = field;
882
- const desc = value.description || '';
883
- const mult = value.multiple ? 'Can be set multiple times' : '';
884
- const opts = value.validOptions?.length ?
885
- `Valid options:${value.validOptions.map(v => ` ${JSON.stringify(v)}`)}`
886
- : '';
887
- const dmDelim = desc.includes('\n') ? '\n\n' : '\n';
888
- const extra = [opts, mult].join(dmDelim).trim();
889
- const text = (normalize(desc) + dmDelim + extra).trim();
890
- const hint = value.hint ||
891
- (value.type === 'number' ? 'n'
892
- : value.type === 'string' ? field.name
893
- : undefined);
894
- const short = !value.short ? ''
895
- : value.type === 'boolean' ? `-${value.short} `
896
- : `-${value.short}<${hint}> `;
897
- const left = value.type === 'boolean' ?
898
- `${short}--${field.name}`
899
- : `${short}--${field.name}=<${hint}>`;
900
- const row = { text, left, type: 'config' };
901
- if (text.length > width - maxMax) {
902
- row.skipLine = true;
903
- }
904
- if (prev && left.length > maxMax)
905
- prev.skipLine = true;
906
- prev = row;
907
- const len = left.length + 4;
908
- if (len > maxWidth && len < maxMax) {
909
- maxWidth = len;
910
- }
911
- rows.push(row);
912
- }
913
- return { rows, maxWidth };
914
- }
915
- /**
916
- * Return the configuration options as a plain object
917
- */
918
- toJSON() {
919
- return Object.fromEntries(Object.entries(this.#configSet).map(([field, def]) => [
920
- field,
921
- {
922
- type: def.type,
923
- ...(def.multiple ? { multiple: true } : {}),
924
- ...(def.delim ? { delim: def.delim } : {}),
925
- ...(def.short ? { short: def.short } : {}),
926
- ...(def.description ?
927
- { description: normalize(def.description) }
928
- : {}),
929
- ...(def.validate ? { validate: def.validate } : {}),
930
- ...(def.validOptions ? { validOptions: def.validOptions } : {}),
931
- ...(def.default !== undefined ? { default: def.default } : {}),
932
- ...(def.hint ? { hint: def.hint } : {}),
933
- },
934
- ]));
935
- }
936
- /**
937
- * Custom printer for `util.inspect`
938
- */
939
- [node_util_1.inspect.custom](_, options) {
940
- return `Jack ${(0, node_util_1.inspect)(this.toJSON(), options)}`;
941
- }
942
- }
943
- exports.Jack = Jack;
944
- // Unwrap and un-indent, so we can wrap description
945
- // strings however makes them look nice in the code.
946
- const normalize = (s, pre = false) => {
947
- if (pre)
948
- // prepend a ZWSP to each line so cliui doesn't strip it.
949
- return s
950
- .split('\n')
951
- .map(l => `\u200b${l}`)
952
- .join('\n');
953
- return s
954
- .split(/^\s*```\s*$/gm)
955
- .map((s, i) => {
956
- if (i % 2 === 1) {
957
- if (!s.trim()) {
958
- return `\`\`\`\n\`\`\`\n`;
959
- }
960
- // outdent the ``` blocks, but preserve whitespace otherwise.
961
- const split = s.split('\n');
962
- // throw out the \n at the start and end
963
- split.pop();
964
- split.shift();
965
- const si = split.reduce((shortest, l) => {
966
- /* c8 ignore next */
967
- const ind = l.match(/^\s*/)?.[0] ?? '';
968
- if (ind.length)
969
- return Math.min(ind.length, shortest);
970
- else
971
- return shortest;
972
- }, Infinity);
973
- /* c8 ignore next */
974
- const i = isFinite(si) ? si : 0;
975
- return ('\n```\n' +
976
- split.map(s => `\u200b${s.substring(i)}`).join('\n') +
977
- '\n```\n');
978
- }
979
- return (s
980
- // remove single line breaks, except for lists
981
- .replace(/([^\n])\n[ \t]*([^\n])/g, (_, $1, $2) => !/^[-*]/.test($2) ? `${$1} ${$2}` : `${$1}\n${$2}`)
982
- // normalize mid-line whitespace
983
- .replace(/([^\n])[ \t]+([^\n])/g, '$1 $2')
984
- // two line breaks are enough
985
- .replace(/\n{3,}/g, '\n\n')
986
- // remove any spaces at the start of a line
987
- .replace(/\n[ \t]+/g, '\n')
988
- .trim());
989
- })
990
- .join('\n');
991
- };
992
- // normalize for markdown printing, remove leading spaces on lines
993
- const normalizeMarkdown = (s, pre = false) => {
994
- const n = normalize(s, pre).replace(/\\/g, '\\\\');
995
- return pre ?
996
- `\`\`\`\n${n.replace(/\u200b/g, '')}\n\`\`\``
997
- : n.replace(/\n +/g, '\n').trim();
998
- };
999
- const normalizeOneLine = (s, pre = false) => {
1000
- const n = normalize(s, pre)
1001
- .replace(/[\s\u200b]+/g, ' ')
1002
- .trim();
1003
- return pre ? `\`${n}\`` : n;
1004
- };
1005
- /**
1006
- * Main entry point. Create and return a {@link Jack} object.
1007
- */
1008
- const jack = (options = {}) => new Jack(options);
1009
- exports.jack = jack;
1010
- //# sourceMappingURL=index.js.map