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,743 +0,0 @@
1
- // parse a single path portion
2
- var _a;
3
- import { parseClass } from './brace-expressions.js';
4
- import { unescape } from './unescape.js';
5
- const types = new Set(['!', '?', '+', '*', '@']);
6
- const isExtglobType = (c) => types.has(c);
7
- const isExtglobAST = (c) => isExtglobType(c.type);
8
- const adoptionMap = new Map([
9
- ['!', ['@']],
10
- ['?', ['?', '@']],
11
- ['@', ['@']],
12
- ['*', ['*', '+', '?', '@']],
13
- ['+', ['+', '@']],
14
- ]);
15
- const adoptionWithSpaceMap = new Map([
16
- ['!', ['?']],
17
- ['@', ['?']],
18
- ['+', ['?', '*']],
19
- ]);
20
- const adoptionAnyMap = new Map([
21
- ['!', ['?', '@']],
22
- ['?', ['?', '@']],
23
- ['@', ['?', '@']],
24
- ['*', ['*', '+', '?', '@']],
25
- ['+', ['+', '@', '?', '*']],
26
- ]);
27
- const usurpMap = new Map([
28
- ['!', new Map([['!', '@']])],
29
- ['?', new Map([['*', '*'], ['+', '*']])],
30
- ['@', new Map([['!', '!'], ['?', '?'], ['@', '@'], ['*', '*'], ['+', '+']])],
31
- ['+', new Map([['?', '*'], ['*', '*']])],
32
- ]);
33
- // Patterns that get prepended to bind to the start of either the
34
- // entire string, or just a single path portion, to prevent dots
35
- // and/or traversal patterns, when needed.
36
- // Exts don't need the ^ or / bit, because the root binds that already.
37
- const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
38
- const startNoDot = '(?!\\.)';
39
- // characters that indicate a start of pattern needs the "no dots" bit,
40
- // because a dot *might* be matched. ( is not in the list, because in
41
- // the case of a child extglob, it will handle the prevention itself.
42
- const addPatternStart = new Set(['[', '.']);
43
- // cases where traversal is A-OK, no dot prevention needed
44
- const justDots = new Set(['..', '.']);
45
- const reSpecials = new Set('().*{}+?[]^$\\!');
46
- const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
47
- // any single thing other than /
48
- const qmark = '[^/]';
49
- // * => any number of characters
50
- const star = qmark + '*?';
51
- // use + when we need to ensure that *something* matches, because the * is
52
- // the only thing in the path portion.
53
- const starNoEmpty = qmark + '+?';
54
- // remove the \ chars that we added if we end up doing a nonmagic compare
55
- // const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
56
- export class AST {
57
- type;
58
- #root;
59
- #hasMagic;
60
- #uflag = false;
61
- #parts = [];
62
- #parent;
63
- #parentIndex;
64
- #negs;
65
- #filledNegs = false;
66
- #options;
67
- #toString;
68
- // set to true if it's an extglob with no children
69
- // (which really means one child of '')
70
- #emptyExt = false;
71
- constructor(type, parent, options = {}) {
72
- this.type = type;
73
- // extglobs are inherently magical
74
- if (type)
75
- this.#hasMagic = true;
76
- this.#parent = parent;
77
- this.#root = this.#parent ? this.#parent.#root : this;
78
- this.#options = this.#root === this ? options : this.#root.#options;
79
- this.#negs = this.#root === this ? [] : this.#root.#negs;
80
- if (type === '!' && !this.#root.#filledNegs)
81
- this.#negs.push(this);
82
- this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
83
- }
84
- get hasMagic() {
85
- /* c8 ignore start */
86
- if (this.#hasMagic !== undefined)
87
- return this.#hasMagic;
88
- /* c8 ignore stop */
89
- for (const p of this.#parts) {
90
- if (typeof p === 'string')
91
- continue;
92
- if (p.type || p.hasMagic)
93
- return (this.#hasMagic = true);
94
- }
95
- // note: will be undefined until we generate the regexp src and find out
96
- return this.#hasMagic;
97
- }
98
- // reconstructs the pattern
99
- toString() {
100
- if (this.#toString !== undefined)
101
- return this.#toString;
102
- if (!this.type) {
103
- return (this.#toString = this.#parts.map(p => String(p)).join(''));
104
- }
105
- else {
106
- return (this.#toString =
107
- this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
108
- }
109
- }
110
- #fillNegs() {
111
- /* c8 ignore start */
112
- if (this !== this.#root)
113
- throw new Error('should only call on root');
114
- if (this.#filledNegs)
115
- return this;
116
- /* c8 ignore stop */
117
- // call toString() once to fill this out
118
- this.toString();
119
- this.#filledNegs = true;
120
- let n;
121
- while ((n = this.#negs.pop())) {
122
- if (n.type !== '!')
123
- continue;
124
- // walk up the tree, appending everthing that comes AFTER parentIndex
125
- let p = n;
126
- let pp = p.#parent;
127
- while (pp) {
128
- for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
129
- for (const part of n.#parts) {
130
- /* c8 ignore start */
131
- if (typeof part === 'string') {
132
- throw new Error('string part in extglob AST??');
133
- }
134
- /* c8 ignore stop */
135
- part.copyIn(pp.#parts[i]);
136
- }
137
- }
138
- p = pp;
139
- pp = p.#parent;
140
- }
141
- }
142
- return this;
143
- }
144
- push(...parts) {
145
- for (const p of parts) {
146
- if (p === '')
147
- continue;
148
- /* c8 ignore start */
149
- if (typeof p !== 'string' && !(p instanceof _a && p.#parent === this)) {
150
- throw new Error('invalid part: ' + p);
151
- }
152
- /* c8 ignore stop */
153
- this.#parts.push(p);
154
- }
155
- }
156
- toJSON() {
157
- const ret = this.type === null
158
- ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
159
- : [this.type, ...this.#parts.map(p => p.toJSON())];
160
- if (this.isStart() && !this.type)
161
- ret.unshift([]);
162
- if (this.isEnd() &&
163
- (this === this.#root ||
164
- (this.#root.#filledNegs && this.#parent?.type === '!'))) {
165
- ret.push({});
166
- }
167
- return ret;
168
- }
169
- isStart() {
170
- if (this.#root === this)
171
- return true;
172
- // if (this.type) return !!this.#parent?.isStart()
173
- if (!this.#parent?.isStart())
174
- return false;
175
- if (this.#parentIndex === 0)
176
- return true;
177
- // if everything AHEAD of this is a negation, then it's still the "start"
178
- const p = this.#parent;
179
- for (let i = 0; i < this.#parentIndex; i++) {
180
- const pp = p.#parts[i];
181
- if (!(pp instanceof _a && pp.type === '!')) {
182
- return false;
183
- }
184
- }
185
- return true;
186
- }
187
- isEnd() {
188
- if (this.#root === this)
189
- return true;
190
- if (this.#parent?.type === '!')
191
- return true;
192
- if (!this.#parent?.isEnd())
193
- return false;
194
- if (!this.type)
195
- return this.#parent?.isEnd();
196
- // if not root, it'll always have a parent
197
- /* c8 ignore start */
198
- const pl = this.#parent ? this.#parent.#parts.length : 0;
199
- /* c8 ignore stop */
200
- return this.#parentIndex === pl - 1;
201
- }
202
- copyIn(part) {
203
- if (typeof part === 'string')
204
- this.push(part);
205
- else
206
- this.push(part.clone(this));
207
- }
208
- clone(parent) {
209
- const c = new _a(this.type, parent);
210
- for (const p of this.#parts) {
211
- c.copyIn(p);
212
- }
213
- return c;
214
- }
215
- static #parseAST(str, ast, pos, opt, extDepth) {
216
- const maxDepth = opt.maxExtglobRecursion ?? 2;
217
- let escaping = false;
218
- let inBrace = false;
219
- let braceStart = -1;
220
- let braceNeg = false;
221
- if (ast.type === null) {
222
- // outside of a extglob, append until we find a start
223
- let i = pos;
224
- let acc = '';
225
- while (i < str.length) {
226
- const c = str.charAt(i++);
227
- // still accumulate escapes at this point, but we do ignore
228
- // starts that are escaped
229
- if (escaping || c === '\\') {
230
- escaping = !escaping;
231
- acc += c;
232
- continue;
233
- }
234
- if (inBrace) {
235
- if (i === braceStart + 1) {
236
- if (c === '^' || c === '!') {
237
- braceNeg = true;
238
- }
239
- }
240
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
241
- inBrace = false;
242
- }
243
- acc += c;
244
- continue;
245
- }
246
- else if (c === '[') {
247
- inBrace = true;
248
- braceStart = i;
249
- braceNeg = false;
250
- acc += c;
251
- continue;
252
- }
253
- const doRecurse = !opt.noext &&
254
- isExtglobType(c) &&
255
- str.charAt(i) === '(' &&
256
- extDepth <= maxDepth;
257
- if (doRecurse) {
258
- ast.push(acc);
259
- acc = '';
260
- const ext = new _a(c, ast);
261
- i = _a.#parseAST(str, ext, i, opt, extDepth + 1);
262
- ast.push(ext);
263
- continue;
264
- }
265
- acc += c;
266
- }
267
- ast.push(acc);
268
- return i;
269
- }
270
- // some kind of extglob, pos is at the (
271
- // find the next | or )
272
- let i = pos + 1;
273
- let part = new _a(null, ast);
274
- const parts = [];
275
- let acc = '';
276
- while (i < str.length) {
277
- const c = str.charAt(i++);
278
- // still accumulate escapes at this point, but we do ignore
279
- // starts that are escaped
280
- if (escaping || c === '\\') {
281
- escaping = !escaping;
282
- acc += c;
283
- continue;
284
- }
285
- if (inBrace) {
286
- if (i === braceStart + 1) {
287
- if (c === '^' || c === '!') {
288
- braceNeg = true;
289
- }
290
- }
291
- else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
292
- inBrace = false;
293
- }
294
- acc += c;
295
- continue;
296
- }
297
- else if (c === '[') {
298
- inBrace = true;
299
- braceStart = i;
300
- braceNeg = false;
301
- acc += c;
302
- continue;
303
- }
304
- const doRecurse = isExtglobType(c) &&
305
- str.charAt(i) === '(' &&
306
- /* c8 ignore start - the maxDepth is sufficient here */
307
- (extDepth <= maxDepth || (ast && ast.#canAdoptType(c)));
308
- /* c8 ignore stop */
309
- if (doRecurse) {
310
- const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
311
- part.push(acc);
312
- acc = '';
313
- const ext = new _a(c, part);
314
- part.push(ext);
315
- i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
316
- continue;
317
- }
318
- if (c === '|') {
319
- part.push(acc);
320
- acc = '';
321
- parts.push(part);
322
- part = new _a(null, ast);
323
- continue;
324
- }
325
- if (c === ')') {
326
- if (acc === '' && ast.#parts.length === 0) {
327
- ast.#emptyExt = true;
328
- }
329
- part.push(acc);
330
- acc = '';
331
- ast.push(...parts, part);
332
- return i;
333
- }
334
- acc += c;
335
- }
336
- // unfinished extglob
337
- // if we got here, it was a malformed extglob! not an extglob, but
338
- // maybe something else in there.
339
- ast.type = null;
340
- ast.#hasMagic = undefined;
341
- ast.#parts = [str.substring(pos - 1)];
342
- return i;
343
- }
344
- #canAdoptWithSpace(child) {
345
- return this.#canAdopt(child, adoptionWithSpaceMap);
346
- }
347
- #canAdopt(child, map = adoptionMap) {
348
- if (!child ||
349
- typeof child !== 'object' ||
350
- child.type !== null ||
351
- child.#parts.length !== 1 ||
352
- this.type === null) {
353
- return false;
354
- }
355
- const gc = child.#parts[0];
356
- if (!gc || typeof gc !== 'object' || gc.type === null) {
357
- return false;
358
- }
359
- return this.#canAdoptType(gc.type, map);
360
- }
361
- #canAdoptType(c, map = adoptionAnyMap) {
362
- return !!map.get(this.type)?.includes(c);
363
- }
364
- #adoptWithSpace(child, index) {
365
- const gc = child.#parts[0];
366
- const blank = new _a(null, gc, this.options);
367
- blank.#parts.push('');
368
- gc.push(blank);
369
- this.#adopt(child, index);
370
- }
371
- #adopt(child, index) {
372
- const gc = child.#parts[0];
373
- this.#parts.splice(index, 1, ...gc.#parts);
374
- for (const p of gc.#parts) {
375
- if (typeof p === 'object')
376
- p.#parent = this;
377
- }
378
- this.#toString = undefined;
379
- }
380
- #canUsurpType(c) {
381
- const m = usurpMap.get(this.type);
382
- return !!(m?.has(c));
383
- }
384
- #canUsurp(child) {
385
- if (!child ||
386
- typeof child !== 'object' ||
387
- child.type !== null ||
388
- child.#parts.length !== 1 ||
389
- this.type === null ||
390
- this.#parts.length !== 1) {
391
- return false;
392
- }
393
- const gc = child.#parts[0];
394
- if (!gc || typeof gc !== 'object' || gc.type === null) {
395
- return false;
396
- }
397
- return this.#canUsurpType(gc.type);
398
- }
399
- #usurp(child) {
400
- const m = usurpMap.get(this.type);
401
- const gc = child.#parts[0];
402
- const nt = m?.get(gc.type);
403
- /* c8 ignore start - impossible */
404
- if (!nt)
405
- return false;
406
- /* c8 ignore stop */
407
- this.#parts = gc.#parts;
408
- for (const p of this.#parts) {
409
- if (typeof p === 'object')
410
- p.#parent = this;
411
- }
412
- this.type = nt;
413
- this.#toString = undefined;
414
- this.#emptyExt = false;
415
- }
416
- #flatten() {
417
- if (!isExtglobAST(this)) {
418
- for (const p of this.#parts) {
419
- if (typeof p === 'object')
420
- p.#flatten();
421
- }
422
- }
423
- else {
424
- let iterations = 0;
425
- let done = false;
426
- do {
427
- done = true;
428
- for (let i = 0; i < this.#parts.length; i++) {
429
- const c = this.#parts[i];
430
- if (typeof c === 'object') {
431
- c.#flatten();
432
- if (this.#canAdopt(c)) {
433
- done = false;
434
- this.#adopt(c, i);
435
- }
436
- else if (this.#canAdoptWithSpace(c)) {
437
- done = false;
438
- this.#adoptWithSpace(c, i);
439
- }
440
- else if (this.#canUsurp(c)) {
441
- done = false;
442
- this.#usurp(c);
443
- }
444
- }
445
- }
446
- } while (!done && ++iterations < 10);
447
- }
448
- this.#toString = undefined;
449
- }
450
- static fromGlob(pattern, options = {}) {
451
- const ast = new _a(null, undefined, options);
452
- _a.#parseAST(pattern, ast, 0, options, 0);
453
- return ast;
454
- }
455
- // returns the regular expression if there's magic, or the unescaped
456
- // string if not.
457
- toMMPattern() {
458
- // should only be called on root
459
- /* c8 ignore start */
460
- if (this !== this.#root)
461
- return this.#root.toMMPattern();
462
- /* c8 ignore stop */
463
- const glob = this.toString();
464
- const [re, body, hasMagic, uflag] = this.toRegExpSource();
465
- // if we're in nocase mode, and not nocaseMagicOnly, then we do
466
- // still need a regular expression if we have to case-insensitively
467
- // match capital/lowercase characters.
468
- const anyMagic = hasMagic ||
469
- this.#hasMagic ||
470
- (this.#options.nocase &&
471
- !this.#options.nocaseMagicOnly &&
472
- glob.toUpperCase() !== glob.toLowerCase());
473
- if (!anyMagic) {
474
- return body;
475
- }
476
- const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
477
- return Object.assign(new RegExp(`^${re}$`, flags), {
478
- _src: re,
479
- _glob: glob,
480
- });
481
- }
482
- get options() {
483
- return this.#options;
484
- }
485
- // returns the string match, the regexp source, whether there's magic
486
- // in the regexp (so a regular expression is required) and whether or
487
- // not the uflag is needed for the regular expression (for posix classes)
488
- // TODO: instead of injecting the start/end at this point, just return
489
- // the BODY of the regexp, along with the start/end portions suitable
490
- // for binding the start/end in either a joined full-path makeRe context
491
- // (where we bind to (^|/), or a standalone matchPart context (where
492
- // we bind to ^, and not /). Otherwise slashes get duped!
493
- //
494
- // In part-matching mode, the start is:
495
- // - if not isStart: nothing
496
- // - if traversal possible, but not allowed: ^(?!\.\.?$)
497
- // - if dots allowed or not possible: ^
498
- // - if dots possible and not allowed: ^(?!\.)
499
- // end is:
500
- // - if not isEnd(): nothing
501
- // - else: $
502
- //
503
- // In full-path matching mode, we put the slash at the START of the
504
- // pattern, so start is:
505
- // - if first pattern: same as part-matching mode
506
- // - if not isStart(): nothing
507
- // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
508
- // - if dots allowed or not possible: /
509
- // - if dots possible and not allowed: /(?!\.)
510
- // end is:
511
- // - if last pattern, same as part-matching mode
512
- // - else nothing
513
- //
514
- // Always put the (?:$|/) on negated tails, though, because that has to be
515
- // there to bind the end of the negated pattern portion, and it's easier to
516
- // just stick it in now rather than try to inject it later in the middle of
517
- // the pattern.
518
- //
519
- // We can just always return the same end, and leave it up to the caller
520
- // to know whether it's going to be used joined or in parts.
521
- // And, if the start is adjusted slightly, can do the same there:
522
- // - if not isStart: nothing
523
- // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
524
- // - if dots allowed or not possible: (?:/|^)
525
- // - if dots possible and not allowed: (?:/|^)(?!\.)
526
- //
527
- // But it's better to have a simpler binding without a conditional, for
528
- // performance, so probably better to return both start options.
529
- //
530
- // Then the caller just ignores the end if it's not the first pattern,
531
- // and the start always gets applied.
532
- //
533
- // But that's always going to be $ if it's the ending pattern, or nothing,
534
- // so the caller can just attach $ at the end of the pattern when building.
535
- //
536
- // So the todo is:
537
- // - better detect what kind of start is needed
538
- // - return both flavors of starting pattern
539
- // - attach $ at the end of the pattern when creating the actual RegExp
540
- //
541
- // Ah, but wait, no, that all only applies to the root when the first pattern
542
- // is not an extglob. If the first pattern IS an extglob, then we need all
543
- // that dot prevention biz to live in the extglob portions, because eg
544
- // +(*|.x*) can match .xy but not .yx.
545
- //
546
- // So, return the two flavors if it's #root and the first child is not an
547
- // AST, otherwise leave it to the child AST to handle it, and there,
548
- // use the (?:^|/) style of start binding.
549
- //
550
- // Even simplified further:
551
- // - Since the start for a join is eg /(?!\.) and the start for a part
552
- // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
553
- // or start or whatever) and prepend ^ or / at the Regexp construction.
554
- toRegExpSource(allowDot) {
555
- const dot = allowDot ?? !!this.#options.dot;
556
- if (this.#root === this) {
557
- this.#flatten();
558
- this.#fillNegs();
559
- }
560
- if (!isExtglobAST(this)) {
561
- const noEmpty = this.isStart() && this.isEnd();
562
- const src = this.#parts
563
- .map(p => {
564
- const [re, _, hasMagic, uflag] = typeof p === 'string'
565
- ? _a.#parseGlob(p, this.#hasMagic, noEmpty)
566
- : p.toRegExpSource(allowDot);
567
- this.#hasMagic = this.#hasMagic || hasMagic;
568
- this.#uflag = this.#uflag || uflag;
569
- return re;
570
- })
571
- .join('');
572
- let start = '';
573
- if (this.isStart()) {
574
- if (typeof this.#parts[0] === 'string') {
575
- // this is the string that will match the start of the pattern,
576
- // so we need to protect against dots and such.
577
- // '.' and '..' cannot match unless the pattern is that exactly,
578
- // even if it starts with . or dot:true is set.
579
- const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
580
- if (!dotTravAllowed) {
581
- const aps = addPatternStart;
582
- // check if we have a possibility of matching . or ..,
583
- // and prevent that.
584
- const needNoTrav =
585
- // dots are allowed, and the pattern starts with [ or .
586
- (dot && aps.has(src.charAt(0))) ||
587
- // the pattern starts with \., and then [ or .
588
- (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
589
- // the pattern starts with \.\., and then [ or .
590
- (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
591
- // no need to prevent dots if it can't match a dot, or if a
592
- // sub-pattern will be preventing it anyway.
593
- const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
594
- start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
595
- }
596
- }
597
- }
598
- // append the "end of path portion" pattern to negation tails
599
- let end = '';
600
- if (this.isEnd() &&
601
- this.#root.#filledNegs &&
602
- this.#parent?.type === '!') {
603
- end = '(?:$|\\/)';
604
- }
605
- const final = start + src + end;
606
- return [
607
- final,
608
- unescape(src),
609
- (this.#hasMagic = !!this.#hasMagic),
610
- this.#uflag,
611
- ];
612
- }
613
- // We need to calculate the body *twice* if it's a repeat pattern
614
- // at the start, once in nodot mode, then again in dot mode, so a
615
- // pattern like *(?) can match 'x.y'
616
- const repeated = this.type === '*' || this.type === '+';
617
- // some kind of extglob
618
- const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
619
- let body = this.#partsToRegExp(dot);
620
- if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
621
- // invalid extglob, has to at least be *something* present, if it's
622
- // the entire path portion.
623
- const s = this.toString();
624
- const me = this;
625
- me.#parts = [s];
626
- me.type = null;
627
- me.#hasMagic = undefined;
628
- return [s, unescape(this.toString()), false, false];
629
- }
630
- // XXX abstract out this map method
631
- let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
632
- ? ''
633
- : this.#partsToRegExp(true);
634
- if (bodyDotAllowed === body) {
635
- bodyDotAllowed = '';
636
- }
637
- if (bodyDotAllowed) {
638
- body = `(?:${body})(?:${bodyDotAllowed})*?`;
639
- }
640
- // an empty !() is exactly equivalent to a starNoEmpty
641
- let final = '';
642
- if (this.type === '!' && this.#emptyExt) {
643
- final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
644
- }
645
- else {
646
- const close = this.type === '!'
647
- ? // !() must match something,but !(x) can match ''
648
- '))' +
649
- (this.isStart() && !dot && !allowDot ? startNoDot : '') +
650
- star +
651
- ')'
652
- : this.type === '@'
653
- ? ')'
654
- : this.type === '?'
655
- ? ')?'
656
- : this.type === '+' && bodyDotAllowed
657
- ? ')'
658
- : this.type === '*' && bodyDotAllowed
659
- ? `)?`
660
- : `)${this.type}`;
661
- final = start + body + close;
662
- }
663
- return [
664
- final,
665
- unescape(body),
666
- (this.#hasMagic = !!this.#hasMagic),
667
- this.#uflag,
668
- ];
669
- }
670
- #partsToRegExp(dot) {
671
- return this.#parts
672
- .map(p => {
673
- // extglob ASTs should only contain parent ASTs
674
- /* c8 ignore start */
675
- if (typeof p === 'string') {
676
- throw new Error('string type in extglob ast??');
677
- }
678
- /* c8 ignore stop */
679
- // can ignore hasMagic, because extglobs are already always magic
680
- const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
681
- this.#uflag = this.#uflag || uflag;
682
- return re;
683
- })
684
- .filter(p => !(this.isStart() && this.isEnd()) || !!p)
685
- .join('|');
686
- }
687
- static #parseGlob(glob, hasMagic, noEmpty = false) {
688
- let escaping = false;
689
- let re = '';
690
- let uflag = false;
691
- // multiple stars that aren't globstars coalesce into one *
692
- let inStar = false;
693
- for (let i = 0; i < glob.length; i++) {
694
- const c = glob.charAt(i);
695
- if (escaping) {
696
- escaping = false;
697
- re += (reSpecials.has(c) ? '\\' : '') + c;
698
- inStar = false;
699
- continue;
700
- }
701
- if (c === '\\') {
702
- if (i === glob.length - 1) {
703
- re += '\\\\';
704
- }
705
- else {
706
- escaping = true;
707
- }
708
- continue;
709
- }
710
- if (c === '[') {
711
- const [src, needUflag, consumed, magic] = parseClass(glob, i);
712
- if (consumed) {
713
- re += src;
714
- uflag = uflag || needUflag;
715
- i += consumed - 1;
716
- hasMagic = hasMagic || magic;
717
- inStar = false;
718
- continue;
719
- }
720
- }
721
- if (c === '*') {
722
- if (inStar)
723
- continue;
724
- inStar = true;
725
- re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
726
- hasMagic = true;
727
- continue;
728
- }
729
- else {
730
- inStar = false;
731
- }
732
- if (c === '?') {
733
- re += qmark;
734
- hasMagic = true;
735
- continue;
736
- }
737
- re += regExpEscape(c);
738
- }
739
- return [re, unescape(glob), !!hasMagic, uflag];
740
- }
741
- }
742
- _a = AST;
743
- //# sourceMappingURL=ast.js.map