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,1007 +0,0 @@
1
- import expand from 'brace-expansion';
2
- import { assertValidPattern } from './assert-valid-pattern.js';
3
- import { AST } from './ast.js';
4
- import { escape } from './escape.js';
5
- import { unescape } from './unescape.js';
6
- export const minimatch = (p, pattern, options = {}) => {
7
- assertValidPattern(pattern);
8
- // shortcut: comments match nothing.
9
- if (!options.nocomment && pattern.charAt(0) === '#') {
10
- return false;
11
- }
12
- return new Minimatch(pattern, options).match(p);
13
- };
14
- // Optimized checking for the most common glob patterns.
15
- const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
16
- const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
17
- const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
18
- const starDotExtTestNocase = (ext) => {
19
- ext = ext.toLowerCase();
20
- return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
21
- };
22
- const starDotExtTestNocaseDot = (ext) => {
23
- ext = ext.toLowerCase();
24
- return (f) => f.toLowerCase().endsWith(ext);
25
- };
26
- const starDotStarRE = /^\*+\.\*+$/;
27
- const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
28
- const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
29
- const dotStarRE = /^\.\*+$/;
30
- const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
31
- const starRE = /^\*+$/;
32
- const starTest = (f) => f.length !== 0 && !f.startsWith('.');
33
- const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
34
- const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
35
- const qmarksTestNocase = ([$0, ext = '']) => {
36
- const noext = qmarksTestNoExt([$0]);
37
- if (!ext)
38
- return noext;
39
- ext = ext.toLowerCase();
40
- return (f) => noext(f) && f.toLowerCase().endsWith(ext);
41
- };
42
- const qmarksTestNocaseDot = ([$0, ext = '']) => {
43
- const noext = qmarksTestNoExtDot([$0]);
44
- if (!ext)
45
- return noext;
46
- ext = ext.toLowerCase();
47
- return (f) => noext(f) && f.toLowerCase().endsWith(ext);
48
- };
49
- const qmarksTestDot = ([$0, ext = '']) => {
50
- const noext = qmarksTestNoExtDot([$0]);
51
- return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
52
- };
53
- const qmarksTest = ([$0, ext = '']) => {
54
- const noext = qmarksTestNoExt([$0]);
55
- return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
56
- };
57
- const qmarksTestNoExt = ([$0]) => {
58
- const len = $0.length;
59
- return (f) => f.length === len && !f.startsWith('.');
60
- };
61
- const qmarksTestNoExtDot = ([$0]) => {
62
- const len = $0.length;
63
- return (f) => f.length === len && f !== '.' && f !== '..';
64
- };
65
- /* c8 ignore start */
66
- const defaultPlatform = (typeof process === 'object' && process
67
- ? (typeof process.env === 'object' &&
68
- process.env &&
69
- process.env.__MINIMATCH_TESTING_PLATFORM__) ||
70
- process.platform
71
- : 'posix');
72
- const path = {
73
- win32: { sep: '\\' },
74
- posix: { sep: '/' },
75
- };
76
- /* c8 ignore stop */
77
- export const sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
78
- minimatch.sep = sep;
79
- export const GLOBSTAR = Symbol('globstar **');
80
- minimatch.GLOBSTAR = GLOBSTAR;
81
- // any single thing other than /
82
- // don't need to escape / when using new RegExp()
83
- const qmark = '[^/]';
84
- // * => any number of characters
85
- const star = qmark + '*?';
86
- // ** when dots are allowed. Anything goes, except .. and .
87
- // not (^ or / followed by one or two dots followed by $ or /),
88
- // followed by anything, any number of times.
89
- const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
90
- // not a ^ or / followed by a dot,
91
- // followed by anything, any number of times.
92
- const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
93
- export const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
94
- minimatch.filter = filter;
95
- const ext = (a, b = {}) => Object.assign({}, a, b);
96
- export const defaults = (def) => {
97
- if (!def || typeof def !== 'object' || !Object.keys(def).length) {
98
- return minimatch;
99
- }
100
- const orig = minimatch;
101
- const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
102
- return Object.assign(m, {
103
- Minimatch: class Minimatch extends orig.Minimatch {
104
- constructor(pattern, options = {}) {
105
- super(pattern, ext(def, options));
106
- }
107
- static defaults(options) {
108
- return orig.defaults(ext(def, options)).Minimatch;
109
- }
110
- },
111
- AST: class AST extends orig.AST {
112
- /* c8 ignore start */
113
- constructor(type, parent, options = {}) {
114
- super(type, parent, ext(def, options));
115
- }
116
- /* c8 ignore stop */
117
- static fromGlob(pattern, options = {}) {
118
- return orig.AST.fromGlob(pattern, ext(def, options));
119
- }
120
- },
121
- unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
122
- escape: (s, options = {}) => orig.escape(s, ext(def, options)),
123
- filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
124
- defaults: (options) => orig.defaults(ext(def, options)),
125
- makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
126
- braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
127
- match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
128
- sep: orig.sep,
129
- GLOBSTAR: GLOBSTAR,
130
- });
131
- };
132
- minimatch.defaults = defaults;
133
- // Brace expansion:
134
- // a{b,c}d -> abd acd
135
- // a{b,}c -> abc ac
136
- // a{0..3}d -> a0d a1d a2d a3d
137
- // a{b,c{d,e}f}g -> abg acdfg acefg
138
- // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
139
- //
140
- // Invalid sets are not expanded.
141
- // a{2..}b -> a{2..}b
142
- // a{b}c -> a{b}c
143
- export const braceExpand = (pattern, options = {}) => {
144
- assertValidPattern(pattern);
145
- // Thanks to Yeting Li <https://github.com/yetingli> for
146
- // improving this regexp to avoid a ReDOS vulnerability.
147
- if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
148
- // shortcut. no need to expand.
149
- return [pattern];
150
- }
151
- return expand(pattern);
152
- };
153
- minimatch.braceExpand = braceExpand;
154
- // parse a component of the expanded set.
155
- // At this point, no pattern may contain "/" in it
156
- // so we're going to return a 2d array, where each entry is the full
157
- // pattern, split on '/', and then turned into a regular expression.
158
- // A regexp is made at the end which joins each array with an
159
- // escaped /, and another full one which joins each regexp with |.
160
- //
161
- // Following the lead of Bash 4.1, note that "**" only has special meaning
162
- // when it is the *only* thing in a path portion. Otherwise, any series
163
- // of * is equivalent to a single *. Globstar behavior is enabled by
164
- // default, and can be disabled by setting options.noglobstar.
165
- export const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
166
- minimatch.makeRe = makeRe;
167
- export const match = (list, pattern, options = {}) => {
168
- const mm = new Minimatch(pattern, options);
169
- list = list.filter(f => mm.match(f));
170
- if (mm.options.nonull && !list.length) {
171
- list.push(pattern);
172
- }
173
- return list;
174
- };
175
- minimatch.match = match;
176
- // replace stuff like \* with *
177
- const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
178
- const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
179
- export class Minimatch {
180
- options;
181
- set;
182
- pattern;
183
- windowsPathsNoEscape;
184
- nonegate;
185
- negate;
186
- comment;
187
- empty;
188
- preserveMultipleSlashes;
189
- partial;
190
- globSet;
191
- globParts;
192
- nocase;
193
- isWindows;
194
- platform;
195
- windowsNoMagicRoot;
196
- maxGlobstarRecursion;
197
- regexp;
198
- constructor(pattern, options = {}) {
199
- assertValidPattern(pattern);
200
- options = options || {};
201
- this.options = options;
202
- this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
203
- this.pattern = pattern;
204
- this.platform = options.platform || defaultPlatform;
205
- this.isWindows = this.platform === 'win32';
206
- this.windowsPathsNoEscape =
207
- !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
208
- if (this.windowsPathsNoEscape) {
209
- this.pattern = this.pattern.replace(/\\/g, '/');
210
- }
211
- this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
212
- this.regexp = null;
213
- this.negate = false;
214
- this.nonegate = !!options.nonegate;
215
- this.comment = false;
216
- this.empty = false;
217
- this.partial = !!options.partial;
218
- this.nocase = !!this.options.nocase;
219
- this.windowsNoMagicRoot =
220
- options.windowsNoMagicRoot !== undefined
221
- ? options.windowsNoMagicRoot
222
- : !!(this.isWindows && this.nocase);
223
- this.globSet = [];
224
- this.globParts = [];
225
- this.set = [];
226
- // make the set of regexps etc.
227
- this.make();
228
- }
229
- hasMagic() {
230
- if (this.options.magicalBraces && this.set.length > 1) {
231
- return true;
232
- }
233
- for (const pattern of this.set) {
234
- for (const part of pattern) {
235
- if (typeof part !== 'string')
236
- return true;
237
- }
238
- }
239
- return false;
240
- }
241
- debug(..._) { }
242
- make() {
243
- const pattern = this.pattern;
244
- const options = this.options;
245
- // empty patterns and comments match nothing.
246
- if (!options.nocomment && pattern.charAt(0) === '#') {
247
- this.comment = true;
248
- return;
249
- }
250
- if (!pattern) {
251
- this.empty = true;
252
- return;
253
- }
254
- // step 1: figure out negation, etc.
255
- this.parseNegate();
256
- // step 2: expand braces
257
- this.globSet = [...new Set(this.braceExpand())];
258
- if (options.debug) {
259
- this.debug = (...args) => console.error(...args);
260
- }
261
- this.debug(this.pattern, this.globSet);
262
- // step 3: now we have a set, so turn each one into a series of
263
- // path-portion matching patterns.
264
- // These will be regexps, except in the case of "**", which is
265
- // set to the GLOBSTAR object for globstar behavior,
266
- // and will not contain any / characters
267
- //
268
- // First, we preprocess to make the glob pattern sets a bit simpler
269
- // and deduped. There are some perf-killing patterns that can cause
270
- // problems with a glob walk, but we can simplify them down a bit.
271
- const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
272
- this.globParts = this.preprocess(rawGlobParts);
273
- this.debug(this.pattern, this.globParts);
274
- // glob --> regexps
275
- let set = this.globParts.map((s, _, __) => {
276
- if (this.isWindows && this.windowsNoMagicRoot) {
277
- // check if it's a drive or unc path.
278
- const isUNC = s[0] === '' &&
279
- s[1] === '' &&
280
- (s[2] === '?' || !globMagic.test(s[2])) &&
281
- !globMagic.test(s[3]);
282
- const isDrive = /^[a-z]:/i.test(s[0]);
283
- if (isUNC) {
284
- return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
285
- }
286
- else if (isDrive) {
287
- return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
288
- }
289
- }
290
- return s.map(ss => this.parse(ss));
291
- });
292
- this.debug(this.pattern, set);
293
- // filter out everything that didn't compile properly.
294
- this.set = set.filter(s => s.indexOf(false) === -1);
295
- // do not treat the ? in UNC paths as magic
296
- if (this.isWindows) {
297
- for (let i = 0; i < this.set.length; i++) {
298
- const p = this.set[i];
299
- if (p[0] === '' &&
300
- p[1] === '' &&
301
- this.globParts[i][2] === '?' &&
302
- typeof p[3] === 'string' &&
303
- /^[a-z]:$/i.test(p[3])) {
304
- p[2] = '?';
305
- }
306
- }
307
- }
308
- this.debug(this.pattern, this.set);
309
- }
310
- // various transforms to equivalent pattern sets that are
311
- // faster to process in a filesystem walk. The goal is to
312
- // eliminate what we can, and push all ** patterns as far
313
- // to the right as possible, even if it increases the number
314
- // of patterns that we have to process.
315
- preprocess(globParts) {
316
- // if we're not in globstar mode, then turn all ** into *
317
- if (this.options.noglobstar) {
318
- for (let i = 0; i < globParts.length; i++) {
319
- for (let j = 0; j < globParts[i].length; j++) {
320
- if (globParts[i][j] === '**') {
321
- globParts[i][j] = '*';
322
- }
323
- }
324
- }
325
- }
326
- const { optimizationLevel = 1 } = this.options;
327
- if (optimizationLevel >= 2) {
328
- // aggressive optimization for the purpose of fs walking
329
- globParts = this.firstPhasePreProcess(globParts);
330
- globParts = this.secondPhasePreProcess(globParts);
331
- }
332
- else if (optimizationLevel >= 1) {
333
- // just basic optimizations to remove some .. parts
334
- globParts = this.levelOneOptimize(globParts);
335
- }
336
- else {
337
- // just collapse multiple ** portions into one
338
- globParts = this.adjascentGlobstarOptimize(globParts);
339
- }
340
- return globParts;
341
- }
342
- // just get rid of adjascent ** portions
343
- adjascentGlobstarOptimize(globParts) {
344
- return globParts.map(parts => {
345
- let gs = -1;
346
- while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
347
- let i = gs;
348
- while (parts[i + 1] === '**') {
349
- i++;
350
- }
351
- if (i !== gs) {
352
- parts.splice(gs, i - gs);
353
- }
354
- }
355
- return parts;
356
- });
357
- }
358
- // get rid of adjascent ** and resolve .. portions
359
- levelOneOptimize(globParts) {
360
- return globParts.map(parts => {
361
- parts = parts.reduce((set, part) => {
362
- const prev = set[set.length - 1];
363
- if (part === '**' && prev === '**') {
364
- return set;
365
- }
366
- if (part === '..') {
367
- if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
368
- set.pop();
369
- return set;
370
- }
371
- }
372
- set.push(part);
373
- return set;
374
- }, []);
375
- return parts.length === 0 ? [''] : parts;
376
- });
377
- }
378
- levelTwoFileOptimize(parts) {
379
- if (!Array.isArray(parts)) {
380
- parts = this.slashSplit(parts);
381
- }
382
- let didSomething = false;
383
- do {
384
- didSomething = false;
385
- // <pre>/<e>/<rest> -> <pre>/<rest>
386
- if (!this.preserveMultipleSlashes) {
387
- for (let i = 1; i < parts.length - 1; i++) {
388
- const p = parts[i];
389
- // don't squeeze out UNC patterns
390
- if (i === 1 && p === '' && parts[0] === '')
391
- continue;
392
- if (p === '.' || p === '') {
393
- didSomething = true;
394
- parts.splice(i, 1);
395
- i--;
396
- }
397
- }
398
- if (parts[0] === '.' &&
399
- parts.length === 2 &&
400
- (parts[1] === '.' || parts[1] === '')) {
401
- didSomething = true;
402
- parts.pop();
403
- }
404
- }
405
- // <pre>/<p>/../<rest> -> <pre>/<rest>
406
- let dd = 0;
407
- while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
408
- const p = parts[dd - 1];
409
- if (p && p !== '.' && p !== '..' && p !== '**') {
410
- didSomething = true;
411
- parts.splice(dd - 1, 2);
412
- dd -= 2;
413
- }
414
- }
415
- } while (didSomething);
416
- return parts.length === 0 ? [''] : parts;
417
- }
418
- // First phase: single-pattern processing
419
- // <pre> is 1 or more portions
420
- // <rest> is 1 or more portions
421
- // <p> is any portion other than ., .., '', or **
422
- // <e> is . or ''
423
- //
424
- // **/.. is *brutal* for filesystem walking performance, because
425
- // it effectively resets the recursive walk each time it occurs,
426
- // and ** cannot be reduced out by a .. pattern part like a regexp
427
- // or most strings (other than .., ., and '') can be.
428
- //
429
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
430
- // <pre>/<e>/<rest> -> <pre>/<rest>
431
- // <pre>/<p>/../<rest> -> <pre>/<rest>
432
- // **/**/<rest> -> **/<rest>
433
- //
434
- // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
435
- // this WOULD be allowed if ** did follow symlinks, or * didn't
436
- firstPhasePreProcess(globParts) {
437
- let didSomething = false;
438
- do {
439
- didSomething = false;
440
- // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
441
- for (let parts of globParts) {
442
- let gs = -1;
443
- while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
444
- let gss = gs;
445
- while (parts[gss + 1] === '**') {
446
- // <pre>/**/**/<rest> -> <pre>/**/<rest>
447
- gss++;
448
- }
449
- // eg, if gs is 2 and gss is 4, that means we have 3 **
450
- // parts, and can remove 2 of them.
451
- if (gss > gs) {
452
- parts.splice(gs + 1, gss - gs);
453
- }
454
- let next = parts[gs + 1];
455
- const p = parts[gs + 2];
456
- const p2 = parts[gs + 3];
457
- if (next !== '..')
458
- continue;
459
- if (!p ||
460
- p === '.' ||
461
- p === '..' ||
462
- !p2 ||
463
- p2 === '.' ||
464
- p2 === '..') {
465
- continue;
466
- }
467
- didSomething = true;
468
- // edit parts in place, and push the new one
469
- parts.splice(gs, 1);
470
- const other = parts.slice(0);
471
- other[gs] = '**';
472
- globParts.push(other);
473
- gs--;
474
- }
475
- // <pre>/<e>/<rest> -> <pre>/<rest>
476
- if (!this.preserveMultipleSlashes) {
477
- for (let i = 1; i < parts.length - 1; i++) {
478
- const p = parts[i];
479
- // don't squeeze out UNC patterns
480
- if (i === 1 && p === '' && parts[0] === '')
481
- continue;
482
- if (p === '.' || p === '') {
483
- didSomething = true;
484
- parts.splice(i, 1);
485
- i--;
486
- }
487
- }
488
- if (parts[0] === '.' &&
489
- parts.length === 2 &&
490
- (parts[1] === '.' || parts[1] === '')) {
491
- didSomething = true;
492
- parts.pop();
493
- }
494
- }
495
- // <pre>/<p>/../<rest> -> <pre>/<rest>
496
- let dd = 0;
497
- while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
498
- const p = parts[dd - 1];
499
- if (p && p !== '.' && p !== '..' && p !== '**') {
500
- didSomething = true;
501
- const needDot = dd === 1 && parts[dd + 1] === '**';
502
- const splin = needDot ? ['.'] : [];
503
- parts.splice(dd - 1, 2, ...splin);
504
- if (parts.length === 0)
505
- parts.push('');
506
- dd -= 2;
507
- }
508
- }
509
- }
510
- } while (didSomething);
511
- return globParts;
512
- }
513
- // second phase: multi-pattern dedupes
514
- // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
515
- // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
516
- // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
517
- //
518
- // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
519
- // ^-- not valid because ** doens't follow symlinks
520
- secondPhasePreProcess(globParts) {
521
- for (let i = 0; i < globParts.length - 1; i++) {
522
- for (let j = i + 1; j < globParts.length; j++) {
523
- const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
524
- if (matched) {
525
- globParts[i] = [];
526
- globParts[j] = matched;
527
- break;
528
- }
529
- }
530
- }
531
- return globParts.filter(gs => gs.length);
532
- }
533
- partsMatch(a, b, emptyGSMatch = false) {
534
- let ai = 0;
535
- let bi = 0;
536
- let result = [];
537
- let which = '';
538
- while (ai < a.length && bi < b.length) {
539
- if (a[ai] === b[bi]) {
540
- result.push(which === 'b' ? b[bi] : a[ai]);
541
- ai++;
542
- bi++;
543
- }
544
- else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
545
- result.push(a[ai]);
546
- ai++;
547
- }
548
- else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
549
- result.push(b[bi]);
550
- bi++;
551
- }
552
- else if (a[ai] === '*' &&
553
- b[bi] &&
554
- (this.options.dot || !b[bi].startsWith('.')) &&
555
- b[bi] !== '**') {
556
- if (which === 'b')
557
- return false;
558
- which = 'a';
559
- result.push(a[ai]);
560
- ai++;
561
- bi++;
562
- }
563
- else if (b[bi] === '*' &&
564
- a[ai] &&
565
- (this.options.dot || !a[ai].startsWith('.')) &&
566
- a[ai] !== '**') {
567
- if (which === 'a')
568
- return false;
569
- which = 'b';
570
- result.push(b[bi]);
571
- ai++;
572
- bi++;
573
- }
574
- else {
575
- return false;
576
- }
577
- }
578
- // if we fall out of the loop, it means they two are identical
579
- // as long as their lengths match
580
- return a.length === b.length && result;
581
- }
582
- parseNegate() {
583
- if (this.nonegate)
584
- return;
585
- const pattern = this.pattern;
586
- let negate = false;
587
- let negateOffset = 0;
588
- for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
589
- negate = !negate;
590
- negateOffset++;
591
- }
592
- if (negateOffset)
593
- this.pattern = pattern.slice(negateOffset);
594
- this.negate = negate;
595
- }
596
- // set partial to true to test if, for example,
597
- // "/a/b" matches the start of "/*/b/*/d"
598
- // Partial means, if you run out of file before you run
599
- // out of pattern, then that's fine, as long as all
600
- // the parts match.
601
- matchOne(file, pattern, partial = false) {
602
- let fileStartIndex = 0;
603
- let patternStartIndex = 0;
604
- // UNC paths like //?/X:/... can match X:/... and vice versa
605
- // Drive letters in absolute drive or unc paths are always compared
606
- // case-insensitively.
607
- if (this.isWindows) {
608
- const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
609
- const fileUNC = !fileDrive &&
610
- file[0] === '' &&
611
- file[1] === '' &&
612
- file[2] === '?' &&
613
- /^[a-z]:$/i.test(file[3]);
614
- const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
615
- const patternUNC = !patternDrive &&
616
- pattern[0] === '' &&
617
- pattern[1] === '' &&
618
- pattern[2] === '?' &&
619
- typeof pattern[3] === 'string' &&
620
- /^[a-z]:$/i.test(pattern[3]);
621
- const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
622
- const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
623
- if (typeof fdi === 'number' && typeof pdi === 'number') {
624
- const [fd, pd] = [
625
- file[fdi],
626
- pattern[pdi],
627
- ];
628
- if (fd.toLowerCase() === pd.toLowerCase()) {
629
- pattern[pdi] = fd;
630
- patternStartIndex = pdi;
631
- fileStartIndex = fdi;
632
- }
633
- }
634
- }
635
- // resolve and reduce . and .. portions in the file as well.
636
- // dont' need to do the second phase, because it's only one string[]
637
- const { optimizationLevel = 1 } = this.options;
638
- if (optimizationLevel >= 2) {
639
- file = this.levelTwoFileOptimize(file);
640
- }
641
- if (pattern.includes(GLOBSTAR)) {
642
- return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
643
- }
644
- return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
645
- }
646
- #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
647
- const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
648
- const lastgs = pattern.lastIndexOf(GLOBSTAR);
649
- const [head, body, tail] = partial ? [
650
- pattern.slice(patternIndex, firstgs),
651
- pattern.slice(firstgs + 1),
652
- [],
653
- ] : [
654
- pattern.slice(patternIndex, firstgs),
655
- pattern.slice(firstgs + 1, lastgs),
656
- pattern.slice(lastgs + 1),
657
- ];
658
- if (head.length) {
659
- const fileHead = file.slice(fileIndex, fileIndex + head.length);
660
- if (!this.#matchOne(fileHead, head, partial, 0, 0))
661
- return false;
662
- fileIndex += head.length;
663
- }
664
- let fileTailMatch = 0;
665
- if (tail.length) {
666
- if (tail.length + fileIndex > file.length)
667
- return false;
668
- let tailStart = file.length - tail.length;
669
- if (this.#matchOne(file, tail, partial, tailStart, 0)) {
670
- fileTailMatch = tail.length;
671
- }
672
- else {
673
- if (file[file.length - 1] !== '' ||
674
- fileIndex + tail.length === file.length) {
675
- return false;
676
- }
677
- tailStart--;
678
- if (!this.#matchOne(file, tail, partial, tailStart, 0))
679
- return false;
680
- fileTailMatch = tail.length + 1;
681
- }
682
- }
683
- if (!body.length) {
684
- let sawSome = !!fileTailMatch;
685
- for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
686
- const f = String(file[i]);
687
- sawSome = true;
688
- if (f === '.' || f === '..' ||
689
- (!this.options.dot && f.startsWith('.'))) {
690
- return false;
691
- }
692
- }
693
- return partial || sawSome;
694
- }
695
- const bodySegments = [[[], 0]];
696
- let currentBody = bodySegments[0];
697
- let nonGsParts = 0;
698
- const nonGsPartsSums = [0];
699
- for (const b of body) {
700
- if (b === GLOBSTAR) {
701
- nonGsPartsSums.push(nonGsParts);
702
- currentBody = [[], 0];
703
- bodySegments.push(currentBody);
704
- }
705
- else {
706
- currentBody[0].push(b);
707
- nonGsParts++;
708
- }
709
- }
710
- let i = bodySegments.length - 1;
711
- const fileLength = file.length - fileTailMatch;
712
- for (const b of bodySegments) {
713
- b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
714
- }
715
- return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
716
- }
717
- #matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
718
- const bs = bodySegments[bodyIndex];
719
- if (!bs) {
720
- for (let i = fileIndex; i < file.length; i++) {
721
- sawTail = true;
722
- const f = file[i];
723
- if (f === '.' || f === '..' ||
724
- (!this.options.dot && f.startsWith('.'))) {
725
- return false;
726
- }
727
- }
728
- return sawTail;
729
- }
730
- const [body, after] = bs;
731
- while (fileIndex <= after) {
732
- const m = this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
733
- if (m && globStarDepth < this.maxGlobstarRecursion) {
734
- const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
735
- if (sub !== false)
736
- return sub;
737
- }
738
- const f = file[fileIndex];
739
- if (f === '.' || f === '..' ||
740
- (!this.options.dot && f.startsWith('.'))) {
741
- return false;
742
- }
743
- fileIndex++;
744
- }
745
- return partial || null;
746
- }
747
- #matchOne(file, pattern, partial, fileIndex, patternIndex) {
748
- let fi;
749
- let pi;
750
- let pl;
751
- let fl;
752
- for (fi = fileIndex, pi = patternIndex,
753
- fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
754
- this.debug('matchOne loop');
755
- let p = pattern[pi];
756
- let f = file[fi];
757
- this.debug(pattern, p, f);
758
- /* c8 ignore start */
759
- if (p === false || p === GLOBSTAR)
760
- return false;
761
- /* c8 ignore stop */
762
- let hit;
763
- if (typeof p === 'string') {
764
- hit = f === p;
765
- this.debug('string match', p, f, hit);
766
- }
767
- else {
768
- hit = p.test(f);
769
- this.debug('pattern match', p, f, hit);
770
- }
771
- if (!hit)
772
- return false;
773
- }
774
- if (fi === fl && pi === pl) {
775
- return true;
776
- }
777
- else if (fi === fl) {
778
- return partial;
779
- }
780
- else if (pi === pl) {
781
- return fi === fl - 1 && file[fi] === '';
782
- /* c8 ignore start */
783
- }
784
- else {
785
- throw new Error('wtf?');
786
- }
787
- /* c8 ignore stop */
788
- }
789
- braceExpand() {
790
- return braceExpand(this.pattern, this.options);
791
- }
792
- parse(pattern) {
793
- assertValidPattern(pattern);
794
- const options = this.options;
795
- // shortcuts
796
- if (pattern === '**')
797
- return GLOBSTAR;
798
- if (pattern === '')
799
- return '';
800
- // far and away, the most common glob pattern parts are
801
- // *, *.*, and *.<ext> Add a fast check method for those.
802
- let m;
803
- let fastTest = null;
804
- if ((m = pattern.match(starRE))) {
805
- fastTest = options.dot ? starTestDot : starTest;
806
- }
807
- else if ((m = pattern.match(starDotExtRE))) {
808
- fastTest = (options.nocase
809
- ? options.dot
810
- ? starDotExtTestNocaseDot
811
- : starDotExtTestNocase
812
- : options.dot
813
- ? starDotExtTestDot
814
- : starDotExtTest)(m[1]);
815
- }
816
- else if ((m = pattern.match(qmarksRE))) {
817
- fastTest = (options.nocase
818
- ? options.dot
819
- ? qmarksTestNocaseDot
820
- : qmarksTestNocase
821
- : options.dot
822
- ? qmarksTestDot
823
- : qmarksTest)(m);
824
- }
825
- else if ((m = pattern.match(starDotStarRE))) {
826
- fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
827
- }
828
- else if ((m = pattern.match(dotStarRE))) {
829
- fastTest = dotStarTest;
830
- }
831
- const re = AST.fromGlob(pattern, this.options).toMMPattern();
832
- if (fastTest && typeof re === 'object') {
833
- // Avoids overriding in frozen environments
834
- Reflect.defineProperty(re, 'test', { value: fastTest });
835
- }
836
- return re;
837
- }
838
- makeRe() {
839
- if (this.regexp || this.regexp === false)
840
- return this.regexp;
841
- // at this point, this.set is a 2d array of partial
842
- // pattern strings, or "**".
843
- //
844
- // It's better to use .match(). This function shouldn't
845
- // be used, really, but it's pretty convenient sometimes,
846
- // when you just want to work with a regex.
847
- const set = this.set;
848
- if (!set.length) {
849
- this.regexp = false;
850
- return this.regexp;
851
- }
852
- const options = this.options;
853
- const twoStar = options.noglobstar
854
- ? star
855
- : options.dot
856
- ? twoStarDot
857
- : twoStarNoDot;
858
- const flags = new Set(options.nocase ? ['i'] : []);
859
- // regexpify non-globstar patterns
860
- // if ** is only item, then we just do one twoStar
861
- // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
862
- // if ** is last, append (\/twoStar|) to previous
863
- // if ** is in the middle, append (\/|\/twoStar\/) to previous
864
- // then filter out GLOBSTAR symbols
865
- let re = set
866
- .map(pattern => {
867
- const pp = pattern.map(p => {
868
- if (p instanceof RegExp) {
869
- for (const f of p.flags.split(''))
870
- flags.add(f);
871
- }
872
- return typeof p === 'string'
873
- ? regExpEscape(p)
874
- : p === GLOBSTAR
875
- ? GLOBSTAR
876
- : p._src;
877
- });
878
- pp.forEach((p, i) => {
879
- const next = pp[i + 1];
880
- const prev = pp[i - 1];
881
- if (p !== GLOBSTAR || prev === GLOBSTAR) {
882
- return;
883
- }
884
- if (prev === undefined) {
885
- if (next !== undefined && next !== GLOBSTAR) {
886
- pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
887
- }
888
- else {
889
- pp[i] = twoStar;
890
- }
891
- }
892
- else if (next === undefined) {
893
- pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
894
- }
895
- else if (next !== GLOBSTAR) {
896
- pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
897
- pp[i + 1] = GLOBSTAR;
898
- }
899
- });
900
- return pp.filter(p => p !== GLOBSTAR).join('/');
901
- })
902
- .join('|');
903
- // need to wrap in parens if we had more than one thing with |,
904
- // otherwise only the first will be anchored to ^ and the last to $
905
- const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
906
- // must match entire pattern
907
- // ending in a * or ** will make it less strict.
908
- re = '^' + open + re + close + '$';
909
- // can match anything, as long as it's not this.
910
- if (this.negate)
911
- re = '^(?!' + re + ').+$';
912
- try {
913
- this.regexp = new RegExp(re, [...flags].join(''));
914
- /* c8 ignore start */
915
- }
916
- catch (ex) {
917
- // should be impossible
918
- this.regexp = false;
919
- }
920
- /* c8 ignore stop */
921
- return this.regexp;
922
- }
923
- slashSplit(p) {
924
- // if p starts with // on windows, we preserve that
925
- // so that UNC paths aren't broken. Otherwise, any number of
926
- // / characters are coalesced into one, unless
927
- // preserveMultipleSlashes is set to true.
928
- if (this.preserveMultipleSlashes) {
929
- return p.split('/');
930
- }
931
- else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
932
- // add an extra '' for the one we lose
933
- return ['', ...p.split(/\/+/)];
934
- }
935
- else {
936
- return p.split(/\/+/);
937
- }
938
- }
939
- match(f, partial = this.partial) {
940
- this.debug('match', f, this.pattern);
941
- // short-circuit in the case of busted things.
942
- // comments, etc.
943
- if (this.comment) {
944
- return false;
945
- }
946
- if (this.empty) {
947
- return f === '';
948
- }
949
- if (f === '/' && partial) {
950
- return true;
951
- }
952
- const options = this.options;
953
- // windows: need to use /, not \
954
- if (this.isWindows) {
955
- f = f.split('\\').join('/');
956
- }
957
- // treat the test path as a set of pathparts.
958
- const ff = this.slashSplit(f);
959
- this.debug(this.pattern, 'split', ff);
960
- // just ONE of the pattern sets in this.set needs to match
961
- // in order for it to be valid. If negating, then just one
962
- // match means that we have failed.
963
- // Either way, return on the first hit.
964
- const set = this.set;
965
- this.debug(this.pattern, 'set', set);
966
- // Find the basename of the path by looking for the last non-empty segment
967
- let filename = ff[ff.length - 1];
968
- if (!filename) {
969
- for (let i = ff.length - 2; !filename && i >= 0; i--) {
970
- filename = ff[i];
971
- }
972
- }
973
- for (let i = 0; i < set.length; i++) {
974
- const pattern = set[i];
975
- let file = ff;
976
- if (options.matchBase && pattern.length === 1) {
977
- file = [filename];
978
- }
979
- const hit = this.matchOne(file, pattern, partial);
980
- if (hit) {
981
- if (options.flipNegate) {
982
- return true;
983
- }
984
- return !this.negate;
985
- }
986
- }
987
- // didn't get any hits. this is success if it's a negative
988
- // pattern, failure otherwise.
989
- if (options.flipNegate) {
990
- return false;
991
- }
992
- return this.negate;
993
- }
994
- static defaults(def) {
995
- return minimatch.defaults(def).Minimatch;
996
- }
997
- }
998
- /* c8 ignore start */
999
- export { AST } from './ast.js';
1000
- export { escape } from './escape.js';
1001
- export { unescape } from './unescape.js';
1002
- /* c8 ignore stop */
1003
- minimatch.AST = AST;
1004
- minimatch.Minimatch = Minimatch;
1005
- minimatch.escape = escape;
1006
- minimatch.unescape = unescape;
1007
- //# sourceMappingURL=index.js.map