@socketsecurity/lib 6.0.9 → 6.0.10

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 (335) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +8 -9
  3. package/dist/abort/signal.d.ts +1 -1
  4. package/dist/abort/signal.js +1 -1
  5. package/dist/ai/agent-context.d.mts +1 -1
  6. package/dist/ai/agent-context.js +3 -2
  7. package/dist/ai/backends.d.mts +3 -3
  8. package/dist/ai/backends.js +2 -2
  9. package/dist/ai/billing-context.d.mts +74 -0
  10. package/dist/ai/billing-context.js +129 -0
  11. package/dist/ai/credentials.d.mts +39 -5
  12. package/dist/ai/credentials.js +61 -6
  13. package/dist/ai/discover.d.mts +4 -0
  14. package/dist/ai/discover.js +4 -0
  15. package/dist/ai/exec.d.mts +1 -1
  16. package/dist/ai/exec.js +1 -1
  17. package/dist/ai/http.d.mts +8 -8
  18. package/dist/ai/http.js +6 -6
  19. package/dist/ai/profiles.d.mts +9 -10
  20. package/dist/ai/profiles.js +0 -5
  21. package/dist/ai/role.d.mts +58 -0
  22. package/dist/ai/role.js +96 -0
  23. package/dist/ai/route-heuristic.d.mts +177 -0
  24. package/dist/ai/route-heuristic.js +194 -0
  25. package/dist/ai/route.d.mts +10 -9
  26. package/dist/ai/route.js +14 -13
  27. package/dist/ai/spawn.d.mts +2 -1
  28. package/dist/ai/spawn.js +25 -2
  29. package/dist/ai/subagent-status.d.mts +2 -0
  30. package/dist/ai/subagent-status.js +2 -0
  31. package/dist/ai/tier.d.mts +1 -1
  32. package/dist/ai/types.d.mts +9 -2
  33. package/dist/ai/worktree.d.mts +1 -1
  34. package/dist/ai/worktree.js +3 -2
  35. package/dist/argv/parse.d.ts +2 -0
  36. package/dist/argv/parse.js +2 -0
  37. package/dist/bin/_internal.d.ts +1 -1
  38. package/dist/bin/_internal.js +1 -1
  39. package/dist/bin/prim.cjs +446 -300
  40. package/dist/bin/shadow.js +2 -1
  41. package/dist/bin/which.d.ts +28 -3
  42. package/dist/bin/which.js +45 -3
  43. package/dist/cacache/_internal.d.ts +10 -2
  44. package/dist/cacache/_internal.js +6 -10
  45. package/dist/cache/ttl/_internal.d.ts +33 -0
  46. package/dist/cache/ttl/_internal.js +68 -0
  47. package/dist/cache/ttl/browser.d.ts +56 -0
  48. package/dist/cache/ttl/browser.js +257 -0
  49. package/dist/cache/ttl/store.js +10 -33
  50. package/dist/cache/ttl/types.d.ts +46 -3
  51. package/dist/checks/primordials-defaults.d.ts +5 -5
  52. package/dist/checks/primordials-defaults.js +5 -5
  53. package/dist/checks/primordials.d.ts +1 -1
  54. package/dist/checks/primordials.js +25 -17
  55. package/dist/cli/check-primordials.d.ts +6 -1
  56. package/dist/cli/check-primordials.js +14 -5
  57. package/dist/cli/check.js +1 -1
  58. package/dist/cli/socket-lib.d.ts +1 -1
  59. package/dist/cli/socket-lib.js +3 -3
  60. package/dist/colors/socket-palette.d.ts +1 -1
  61. package/dist/compression/brotli.d.ts +6 -2
  62. package/dist/compression/brotli.js +4 -0
  63. package/dist/compression/gzip.d.ts +6 -2
  64. package/dist/compression/gzip.js +6 -1
  65. package/dist/config/layers.d.ts +4 -4
  66. package/dist/config/layers.js +4 -4
  67. package/dist/constants/agents.d.ts +3 -0
  68. package/dist/constants/agents.js +3 -0
  69. package/dist/constants/node.d.ts +14 -0
  70. package/dist/constants/node.js +14 -0
  71. package/dist/constants/package-default-node-range.js +1 -5
  72. package/dist/constants/packages.d.ts +5 -0
  73. package/dist/constants/packages.js +5 -0
  74. package/dist/constants/platform.d.ts +1 -1
  75. package/dist/constants/platform.js +1 -1
  76. package/dist/constants/socket.js +1 -1
  77. package/dist/constants/typescript.d.ts +5 -0
  78. package/dist/constants/typescript.js +5 -0
  79. package/dist/debug/_internal.d.ts +22 -7
  80. package/dist/debug/_internal.js +33 -15
  81. package/dist/debug/namespace.js +11 -8
  82. package/dist/debug/output.d.ts +12 -1
  83. package/dist/debug/output.js +33 -16
  84. package/dist/dlx/binary-resolution.js +7 -4
  85. package/dist/eco/npm/npm/parse-lockfile.js +2 -1
  86. package/dist/eco/npm/vlt/exec.d.ts +1 -1
  87. package/dist/eco/npm/vlt/exec.js +1 -1
  88. package/dist/env/agents.d.ts +6 -0
  89. package/dist/env/agents.js +29 -0
  90. package/dist/env/flags.d.ts +12 -0
  91. package/dist/env/flags.js +23 -0
  92. package/dist/env/github-status.js +2 -2
  93. package/dist/env/providers.d.ts +6 -0
  94. package/dist/env/providers.js +23 -0
  95. package/dist/env/proxy.js +1 -1
  96. package/dist/env/rewire.d.ts +32 -0
  97. package/dist/env/rewire.js +55 -23
  98. package/dist/env/runtimes.d.ts +9 -0
  99. package/dist/env/runtimes.js +53 -0
  100. package/dist/env/socket-cli.d.ts +5 -2
  101. package/dist/env/socket-cli.js +6 -3
  102. package/dist/errors/predicates.d.ts +3 -2
  103. package/dist/errors/predicates.js +5 -3
  104. package/dist/errors/stack.js +2 -1
  105. package/dist/events/exit/_internal.d.ts +1 -23
  106. package/dist/external/@npmcli/package-json.js +179 -88
  107. package/dist/external/@npmcli/promise-spawn.js +2 -2
  108. package/dist/external/@sinclair/typebox/value.js +5 -4
  109. package/dist/external/@socketregistry/yocto-spinner.js +3 -3
  110. package/dist/external/adm-zip.d.ts +82 -0
  111. package/dist/external/adm-zip.js +2 -2
  112. package/dist/external/cacache.d.ts +87 -0
  113. package/dist/external/debug.d.ts +22 -0
  114. package/dist/external/debug.js +11 -4
  115. package/dist/external/del.d.ts +1 -0
  116. package/dist/external/external-pack.d.ts +12 -0
  117. package/dist/external/external-pack.js +41 -34
  118. package/dist/external/fast-glob.d.ts +8 -0
  119. package/dist/external/fast-sort.d.ts +1 -0
  120. package/dist/external/get-east-asian-width.d.ts +5 -0
  121. package/dist/external/get-east-asian-width.js +8 -1
  122. package/dist/external/has-flag.d.ts +1 -0
  123. package/dist/external/inquirer-pack.d.ts +18 -0
  124. package/dist/external/libnpmexec.d.ts +35 -0
  125. package/dist/external/libnpmpack.d.ts +1 -0
  126. package/dist/external/make-fetch-happen.d.ts +13 -0
  127. package/dist/external/normalize-package-data.d.ts +4 -0
  128. package/dist/external/npm-core.d.ts +14 -0
  129. package/dist/external/npm-pack.d.ts +24 -0
  130. package/dist/external/npm-pack.js +1551 -1867
  131. package/dist/external/npm-package-arg.d.ts +4 -0
  132. package/dist/external/p-map.js +8 -1
  133. package/dist/external/pacote.d.ts +15 -0
  134. package/dist/external/pico-pack.d.ts +16 -0
  135. package/dist/external/pico-pack.js +38 -23
  136. package/dist/external/picomatch.d.ts +96 -0
  137. package/dist/external/pony-cause.d.ts +14 -0
  138. package/dist/external/semver.d.ts +60 -0
  139. package/dist/external/semver.js +1459 -4
  140. package/dist/external/shell-quote.d.ts +51 -0
  141. package/dist/external/shell-quote.js +55 -15
  142. package/dist/external/signal-exit.d.ts +1 -0
  143. package/dist/external/spdx-correct.d.ts +4 -0
  144. package/dist/external/spdx-expression-parse.d.ts +4 -0
  145. package/dist/external/spdx-pack.d.ts +10 -0
  146. package/dist/external/std-env.d.ts +284 -0
  147. package/dist/external/std-env.js +323 -0
  148. package/dist/external/streaming-iterables.d.ts +11 -0
  149. package/dist/external/supports-color.d.ts +1 -0
  150. package/dist/external/tar-fs.d.ts +31 -0
  151. package/dist/external/validate-npm-package-name.d.ts +4 -0
  152. package/dist/external/which.d.ts +25 -0
  153. package/dist/external/which.js +2 -2
  154. package/dist/external/yargs-parser.d.ts +2 -0
  155. package/dist/external/yargs-parser.js +11 -3
  156. package/dist/external/yoctocolors-cjs.d.ts +51 -0
  157. package/dist/external-tools/bazel/asset-names.d.ts +1 -1
  158. package/dist/external-tools/bazel/from-download.d.ts +1 -1
  159. package/dist/external-tools/bazel/resolve.d.ts +3 -0
  160. package/dist/external-tools/bazel/resolve.js +3 -0
  161. package/dist/external-tools/cdxgen/asset-names.d.ts +5 -5
  162. package/dist/external-tools/cdxgen/asset-names.js +3 -3
  163. package/dist/external-tools/cdxgen/from-download.d.ts +2 -2
  164. package/dist/external-tools/cdxgen/from-download.js +1 -1
  165. package/dist/external-tools/cdxgen/resolve.d.ts +4 -1
  166. package/dist/external-tools/cdxgen/resolve.js +4 -1
  167. package/dist/external-tools/cdxgen/types.d.ts +1 -1
  168. package/dist/external-tools/from-download.d.ts +2 -2
  169. package/dist/external-tools/from-download.js +1 -1
  170. package/dist/external-tools/janus/asset-names.d.ts +4 -1
  171. package/dist/external-tools/janus/asset-names.js +3 -0
  172. package/dist/external-tools/janus/from-download.d.ts +3 -3
  173. package/dist/external-tools/janus/from-download.js +2 -2
  174. package/dist/external-tools/janus/resolve.d.ts +3 -0
  175. package/dist/external-tools/janus/resolve.js +3 -0
  176. package/dist/external-tools/jre/asset-names.d.ts +3 -1
  177. package/dist/external-tools/jre/asset-names.js +2 -0
  178. package/dist/external-tools/jre/from-download.d.ts +1 -1
  179. package/dist/external-tools/manifest.d.ts +5 -3
  180. package/dist/external-tools/manifest.js +4 -2
  181. package/dist/external-tools/opengrep/asset-names.d.ts +1 -1
  182. package/dist/external-tools/opengrep/resolve.d.ts +3 -0
  183. package/dist/external-tools/opengrep/resolve.js +3 -0
  184. package/dist/external-tools/python/asset-names.d.ts +3 -1
  185. package/dist/external-tools/python/asset-names.js +7 -3
  186. package/dist/external-tools/python/pin.js +3 -1
  187. package/dist/external-tools/python/resolve.d.ts +3 -0
  188. package/dist/external-tools/python/resolve.js +3 -0
  189. package/dist/external-tools/sbt/resolve.d.ts +3 -0
  190. package/dist/external-tools/sbt/resolve.js +3 -0
  191. package/dist/external-tools/skillspector/from-uv.d.ts +1 -1
  192. package/dist/external-tools/synp/resolve.d.ts +3 -0
  193. package/dist/external-tools/synp/resolve.js +3 -0
  194. package/dist/external-tools/trivy/asset-names.d.ts +1 -1
  195. package/dist/external-tools/trivy/resolve.d.ts +3 -0
  196. package/dist/external-tools/trivy/resolve.js +3 -0
  197. package/dist/external-tools/trufflehog/asset-names.d.ts +4 -1
  198. package/dist/external-tools/trufflehog/asset-names.js +3 -0
  199. package/dist/external-tools/trufflehog/from-download.d.ts +1 -1
  200. package/dist/external-tools/trufflehog/resolve.d.ts +3 -0
  201. package/dist/external-tools/trufflehog/resolve.js +3 -0
  202. package/dist/external-tools/uv/asset-names.d.ts +1 -1
  203. package/dist/external-tools/uv/resolve.d.ts +3 -0
  204. package/dist/external-tools/uv/resolve.js +3 -0
  205. package/dist/fleet/repo-config.d.ts +8 -6
  206. package/dist/fleet/repo-config.js +8 -6
  207. package/dist/fs/_internal.d.ts +1 -1
  208. package/dist/fs/_internal.js +1 -1
  209. package/dist/fs/access.d.ts +2 -0
  210. package/dist/fs/access.js +2 -0
  211. package/dist/fs/allowed-dirs-cache.js +5 -3
  212. package/dist/fs/find.js +1 -2
  213. package/dist/fs/inspect.d.ts +2 -2
  214. package/dist/fs/read-file.js +3 -4
  215. package/dist/fs/safe.js +1 -1
  216. package/dist/git/_internal.js +5 -1
  217. package/dist/github/commit.d.ts +92 -0
  218. package/dist/github/commit.js +113 -0
  219. package/dist/github/ghsa.js +1 -1
  220. package/dist/github/refs-graphql.js +1 -1
  221. package/dist/github/request.js +1 -1
  222. package/dist/github/token.d.ts +5 -2
  223. package/dist/github/token.js +6 -4
  224. package/dist/github/workflow-runs.d.ts +107 -0
  225. package/dist/github/workflow-runs.js +98 -0
  226. package/dist/http-request/_internal.d.ts +1 -1
  227. package/dist/http-request/browser.d.ts +6 -0
  228. package/dist/http-request/browser.js +3 -2
  229. package/dist/http-request/download.js +2 -0
  230. package/dist/http-request/headers.d.ts +1 -1
  231. package/dist/http-request/headers.js +1 -1
  232. package/dist/http-request/request-attempt.js +6 -3
  233. package/dist/http-request/request-types.d.ts +10 -1
  234. package/dist/http-request/request.js +2 -2
  235. package/dist/http-request/user-agent.d.ts +23 -2
  236. package/dist/http-request/user-agent.js +48 -6
  237. package/dist/integrity.d.ts +3 -1
  238. package/dist/integrity.js +3 -1
  239. package/dist/json/format.js +4 -1
  240. package/dist/logger/_internal.d.ts +13 -15
  241. package/dist/logger/_internal.js +21 -21
  242. package/dist/logger/colors.d.ts +9 -3
  243. package/dist/logger/colors.js +6 -13
  244. package/dist/logger/console-methods.js +2 -2
  245. package/dist/logger/console.d.ts +1 -0
  246. package/dist/logger/console.js +9 -9
  247. package/dist/logger/node.js +2 -1
  248. package/dist/native-messaging/install.js +1 -1
  249. package/dist/native-messaging/rate-limit.d.ts +4 -1
  250. package/dist/native-messaging/rate-limit.js +4 -1
  251. package/dist/node/events.d.ts +3 -0
  252. package/dist/node/events.js +3 -0
  253. package/dist/node/fs.d.ts +1 -1
  254. package/dist/node/timers-promises.d.ts +3 -0
  255. package/dist/node/timers-promises.js +3 -0
  256. package/dist/node/url.d.ts +3 -0
  257. package/dist/node/url.js +3 -0
  258. package/dist/npm/meta-cache.d.ts +183 -0
  259. package/dist/npm/meta-cache.js +318 -0
  260. package/dist/npm/meta-slice.d.ts +27 -0
  261. package/dist/npm/meta-slice.js +68 -0
  262. package/dist/npm/meta-types.d.ts +282 -0
  263. package/dist/npm/meta-types.js +2 -0
  264. package/dist/npm/meta.d.ts +125 -0
  265. package/dist/npm/meta.js +347 -0
  266. package/dist/npm/registry.d.ts +212 -0
  267. package/dist/npm/registry.js +284 -0
  268. package/dist/objects/getters.d.ts +1 -1
  269. package/dist/objects/getters.js +1 -1
  270. package/dist/packages/manifest.js +6 -7
  271. package/dist/packages/metadata-extensions.js +2 -4
  272. package/dist/packages/provenance.d.ts +8 -0
  273. package/dist/packages/provenance.js +8 -0
  274. package/dist/packages/tarball.js +1 -2
  275. package/dist/packages/validation.d.ts +0 -10
  276. package/dist/packages/validation.js +0 -14
  277. package/dist/paths/exts.d.ts +30 -0
  278. package/dist/paths/exts.js +30 -0
  279. package/dist/paths/filenames.d.ts +6 -0
  280. package/dist/paths/filenames.js +6 -0
  281. package/dist/paths/globs.d.ts +6 -0
  282. package/dist/paths/globs.js +6 -0
  283. package/dist/paths/resolve.js +19 -14
  284. package/dist/paths/socket.d.ts +8 -8
  285. package/dist/paths/socket.js +8 -8
  286. package/dist/perf/report.js +4 -2
  287. package/dist/pkg-ext/data.js +0 -2
  288. package/dist/primordials/globals.d.ts +1 -1
  289. package/dist/primordials/globals.js +1 -1
  290. package/dist/primordials/headers.d.ts +13 -1
  291. package/dist/primordials/headers.js +13 -1
  292. package/dist/primordials/process.d.ts +1 -1
  293. package/dist/primordials/process.js +1 -1
  294. package/dist/primordials/url.d.ts +18 -0
  295. package/dist/primordials/url.js +18 -0
  296. package/dist/process/spawn/child.js +3 -5
  297. package/dist/promises/_internal.d.ts +1 -1
  298. package/dist/promises/_internal.js +1 -2
  299. package/dist/promises/options.js +3 -3
  300. package/dist/releases/socket-btm-binary-naming.js +12 -1
  301. package/dist/secrets/_internal.d.ts +1 -1
  302. package/dist/secrets/_internal.js +1 -1
  303. package/dist/secrets/find.d.ts +2 -2
  304. package/dist/secrets/find.js +2 -2
  305. package/dist/secrets/keychain.d.ts +10 -1
  306. package/dist/secrets/keychain.js +10 -1
  307. package/dist/secrets/socket-api-token.d.ts +1 -1
  308. package/dist/secrets/socket-api-token.js +1 -1
  309. package/dist/secrets/types.d.ts +1 -1
  310. package/dist/smol/http.d.ts +2 -0
  311. package/dist/smol/http.js +2 -0
  312. package/dist/smol/https.d.ts +2 -0
  313. package/dist/smol/https.js +2 -0
  314. package/dist/sorts/_internal.d.ts +2 -3
  315. package/dist/sorts/_internal.js +1 -3
  316. package/dist/spinner/format.js +2 -4
  317. package/dist/stdio/footer.js +8 -7
  318. package/dist/stdio/prompts.d.ts +8 -15
  319. package/dist/stdio/prompts.js +18 -29
  320. package/dist/strings/predicates.d.ts +2 -2
  321. package/dist/strings/search.js +1 -1
  322. package/dist/strings/types.d.ts +4 -0
  323. package/dist/strings/width.d.ts +1 -0
  324. package/dist/strings/width.js +17 -8
  325. package/dist/themes/context.d.ts +13 -0
  326. package/dist/themes/context.js +23 -8
  327. package/dist/versions/_internal.d.ts +43 -13
  328. package/dist/versions/_internal.js +27 -15
  329. package/dist/versions/compare.d.ts +16 -10
  330. package/dist/versions/compare.js +36 -16
  331. package/dist/versions/parse.js +1 -1
  332. package/dist/versions/range.js +3 -2
  333. package/dist/words/pluralize.js +4 -1
  334. package/llms.txt +63 -750
  335. package/package.json +200 -35
@@ -106,7 +106,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106
106
  //#endregion
107
107
  //#region node_modules/.pnpm/@npmcli+package-json@7.0.0/node_modules/@npmcli/package-json/lib/update-dependencies.js
108
108
  var require_update_dependencies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
109
- const depTypes = new Set([
109
+ const depTypes = /* @__PURE__ */ new Set([
110
110
  "dependencies",
111
111
  "optionalDependencies",
112
112
  "devDependencies",
@@ -2106,7 +2106,8 @@ var require_from_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2106
2106
  };
2107
2107
  module.exports = (giturl, opts, { gitHosts, protocols }) => {
2108
2108
  if (!giturl) return;
2109
- const parsed = parseUrl(isGitHubShorthand(giturl) ? `github:${giturl}` : giturl, protocols);
2109
+ const correctedUrl = isGitHubShorthand(giturl) ? `github:${giturl}` : giturl;
2110
+ const parsed = parseUrl(correctedUrl, protocols);
2110
2111
  if (!parsed) return;
2111
2112
  const gitHostShortcut = gitHosts.byShortcut[parsed.protocol];
2112
2113
  const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname];
@@ -2354,7 +2355,14 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
2354
2355
  return e ? e[0] : null;
2355
2356
  };
2356
2357
  var zs = (n, t, e) => {
2357
- let s, i, r, h, o, a = e.indexOf(n), l = e.indexOf(t, a + 1), f = a;
2358
+ let s;
2359
+ let i;
2360
+ let r;
2361
+ let h;
2362
+ let o;
2363
+ let a = e.indexOf(n);
2364
+ let l = e.indexOf(t, a + 1);
2365
+ let f = a;
2358
2366
  if (a >= 0 && l > 0) {
2359
2367
  if (n === t) return [a, l];
2360
2368
  for (s = [], r = e.length; f >= 0 && !o;) {
@@ -2524,7 +2532,15 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
2524
2532
  var ci = (n, t) => {
2525
2533
  let e = t;
2526
2534
  if (n.charAt(e) !== "[") throw new Error("not in a brace expression");
2527
- let s = [], i = [], r = e + 1, h = !1, o = !1, a = !1, l = !1, f = e, c = "";
2535
+ let s = [];
2536
+ let i = [];
2537
+ let r = e + 1;
2538
+ let h = !1;
2539
+ let o = !1;
2540
+ let a = !1;
2541
+ let l = !1;
2542
+ let f = e;
2543
+ let c = "";
2528
2544
  t: for (; r < n.length;) {
2529
2545
  let p = n.charAt(r);
2530
2546
  if ((p === "!" || p === "^") && r === e + 1) {
@@ -2583,7 +2599,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
2583
2599
  f - e,
2584
2600
  !1
2585
2601
  ];
2586
- let d = "[" + (l ? "^" : "") + Ye(s) + "]", u = "[" + (l ? "" : "^") + Ye(i) + "]";
2602
+ let d = "[" + (l ? "^" : "") + Ye(s) + "]";
2603
+ let u = "[" + (l ? "" : "^") + Ye(i) + "]";
2587
2604
  return [
2588
2605
  s.length && i.length ? "(" + d + "|" + u + ")" : s.length ? d : u,
2589
2606
  o,
@@ -2606,7 +2623,7 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
2606
2623
  Dt.AST = void 0;
2607
2624
  var fi = Je();
2608
2625
  var Mt = kt();
2609
- var di = new Set([
2626
+ var di = /* @__PURE__ */ new Set([
2610
2627
  "!",
2611
2628
  "?",
2612
2629
  "+",
@@ -2616,8 +2633,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
2616
2633
  var Ze = (n) => di.has(n);
2617
2634
  var pi = "(?!(?:^|/)\\.\\.?(?:$|/))";
2618
2635
  var Pt = "(?!\\.)";
2619
- var mi = new Set(["[", "."]);
2620
- var gi = new Set(["..", "."]);
2636
+ var mi = /* @__PURE__ */ new Set(["[", "."]);
2637
+ var gi = /* @__PURE__ */ new Set(["..", "."]);
2621
2638
  var wi = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
2622
2639
  var bi = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
2623
2640
  var de = "[^/]";
@@ -3031,7 +3048,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3031
3048
  }
3032
3049
  debug(...t) {}
3033
3050
  make() {
3034
- let t = this.pattern, e = this.options;
3051
+ let t = this.pattern;
3052
+ let e = this.options;
3035
3053
  if (!e.nocomment && t.charAt(0) === "#") {
3036
3054
  this.comment = !0;
3037
3055
  return;
@@ -3045,7 +3063,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3045
3063
  this.globParts = this.preprocess(s), this.debug(this.pattern, this.globParts);
3046
3064
  let i = this.globParts.map((r, h, o) => {
3047
3065
  if (this.isWindows && this.windowsNoMagicRoot) {
3048
- let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ss.test(r[2])) && !ss.test(r[3]), l = /^[a-z]:/i.test(r[0]);
3066
+ let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ss.test(r[2])) && !ss.test(r[3]);
3067
+ let l = /^[a-z]:/i.test(r[0]);
3049
3068
  if (a) return [...r.slice(0, 4), ...r.slice(4).map((f) => this.parse(f))];
3050
3069
  if (l) return [r[0], ...r.slice(1).map((f) => this.parse(f))];
3051
3070
  }
@@ -3108,7 +3127,9 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3108
3127
  let h = i;
3109
3128
  for (; s[h + 1] === "**";) h++;
3110
3129
  h > i && s.splice(i + 1, h - i);
3111
- let o = s[i + 1], a = s[i + 2], l = s[i + 3];
3130
+ let o = s[i + 1];
3131
+ let a = s[i + 2];
3132
+ let l = s[i + 3];
3112
3133
  if (o !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
3113
3134
  e = !0, s.splice(i, 1);
3114
3135
  let f = s.slice(0);
@@ -3145,7 +3166,10 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3145
3166
  return t.filter((e) => e.length);
3146
3167
  }
3147
3168
  partsMatch(t, e, s = !1) {
3148
- let i = 0, r = 0, h = [], o = "";
3169
+ let i = 0;
3170
+ let r = 0;
3171
+ let h = [];
3172
+ let o = "";
3149
3173
  for (; i < t.length && r < e.length;) if (t[i] === e[r]) h.push(o === "b" ? e[r] : t[i]), i++, r++;
3150
3174
  else if (s && t[i] === "**" && e[r] === t[i + 1]) h.push(t[i]), i++;
3151
3175
  else if (s && e[r] === "**" && t[i] === e[r + 1]) h.push(e[r]), r++;
@@ -3160,14 +3184,21 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3160
3184
  }
3161
3185
  parseNegate() {
3162
3186
  if (this.nonegate) return;
3163
- let t = this.pattern, e = !1, s = 0;
3187
+ let t = this.pattern;
3188
+ let e = !1;
3189
+ let s = 0;
3164
3190
  for (let i = 0; i < t.length && t.charAt(i) === "!"; i++) e = !e, s++;
3165
3191
  s && (this.pattern = t.slice(s)), this.negate = e;
3166
3192
  }
3167
3193
  matchOne(t, e, s = !1) {
3168
3194
  let i = this.options;
3169
3195
  if (this.isWindows) {
3170
- let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), b = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), w = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), v = !w && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = b ? 3 : p ? 0 : void 0, y = v ? 3 : w ? 0 : void 0;
3196
+ let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]);
3197
+ let b = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]);
3198
+ let w = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]);
3199
+ let v = !w && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]);
3200
+ let E = b ? 3 : p ? 0 : void 0;
3201
+ let y = v ? 3 : w ? 0 : void 0;
3171
3202
  if (typeof E == "number" && typeof y == "number") {
3172
3203
  let [S, B] = [t[E], e[y]];
3173
3204
  S.toLowerCase() === B.toLowerCase() && (e[y] = S, y > E ? e = e.slice(y) : E > y && (t = t.slice(E)));
@@ -3180,7 +3211,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3180
3211
  }), this.debug("matchOne", t.length, e.length);
3181
3212
  for (var h = 0, o = 0, a = t.length, l = e.length; h < a && o < l; h++, o++) {
3182
3213
  this.debug("matchOne loop");
3183
- var f = e[o], c = t[h];
3214
+ var f = e[o];
3215
+ var c = t[h];
3184
3216
  if (this.debug(e, f, c), f === !1) return !1;
3185
3217
  if (f === g.GLOBSTAR) {
3186
3218
  this.debug("GLOBSTAR", [
@@ -3188,7 +3220,8 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
3188
3220
  f,
3189
3221
  c
3190
3222
  ]);
3191
- var d = h, u = o + 1;
3223
+ var d = h;
3224
+ var u = o + 1;
3192
3225
  if (u === l) {
3193
3226
  for (this.debug("** at the end"); h < a; h++) if (t[h] === "." || t[h] === ".." || !i.dot && t[h].charAt(0) === ".") return !1;
3194
3227
  return !0;
@@ -3222,7 +3255,8 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3222
3255
  let e = this.options;
3223
3256
  if (t === "**") return g.GLOBSTAR;
3224
3257
  if (t === "") return "";
3225
- let s, i = null;
3258
+ let s;
3259
+ let i = null;
3226
3260
  (s = t.match(Fi)) ? i = e.dot ? Ni : ji : (s = t.match(Oi)) ? i = (e.nocase ? e.dot ? Ri : Ci : e.dot ? Ti : xi)(s[1]) : (s = t.match(Li)) ? i = (e.nocase ? e.dot ? Bi : Wi : e.dot ? Ii : Gi)(s) : (s = t.match(Ai)) ? i = e.dot ? Mi : ki : (s = t.match(Pi)) && (i = Di);
3227
3261
  let r = is.AST.fromGlob(t, this.options).toMMPattern();
3228
3262
  return i && typeof r == "object" && Reflect.defineProperty(r, "test", { value: i }), r;
@@ -3231,13 +3265,17 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3231
3265
  if (this.regexp || this.regexp === !1) return this.regexp;
3232
3266
  let t = this.set;
3233
3267
  if (!t.length) return this.regexp = !1, this.regexp;
3234
- let e = this.options, s = e.noglobstar ? Ui : e.dot ? $i : qi, i = new Set(e.nocase ? ["i"] : []), r = t.map((a) => {
3268
+ let e = this.options;
3269
+ let s = e.noglobstar ? Ui : e.dot ? $i : qi;
3270
+ let i = new Set(e.nocase ? ["i"] : []);
3271
+ let r = t.map((a) => {
3235
3272
  let l = a.map((c) => {
3236
3273
  if (c instanceof RegExp) for (let d of c.flags.split("")) i.add(d);
3237
3274
  return typeof c == "string" ? Ji(c) : c === g.GLOBSTAR ? g.GLOBSTAR : c._src;
3238
3275
  });
3239
3276
  l.forEach((c, d) => {
3240
- let u = l[d + 1], m = l[d - 1];
3277
+ let u = l[d + 1];
3278
+ let m = l[d - 1];
3241
3279
  c !== g.GLOBSTAR || m === g.GLOBSTAR || (m === void 0 ? u !== void 0 && u !== g.GLOBSTAR ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + u : l[d] = s : u === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : u !== g.GLOBSTAR && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + u, l[d + 1] = g.GLOBSTAR));
3242
3280
  });
3243
3281
  let f = l.filter((c) => c !== g.GLOBSTAR);
@@ -3247,7 +3285,8 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3247
3285
  return "(?:" + c.join("|") + ")";
3248
3286
  }
3249
3287
  return f.join("/");
3250
- }).join("|"), [h, o] = t.length > 1 ? ["(?:", ")"] : ["", ""];
3288
+ }).join("|");
3289
+ let [h, o] = t.length > 1 ? ["(?:", ")"] : ["", ""];
3251
3290
  r = "^" + h + r + o + "$", this.partial && (r = "^(?:\\/|" + h + r.slice(1, -1) + o + ")$"), this.negate && (r = "^(?!" + r + ").+$");
3252
3291
  try {
3253
3292
  this.regexp = new RegExp(r, [...i].join(""));
@@ -3272,7 +3311,8 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3272
3311
  let h = i[i.length - 1];
3273
3312
  if (!h) for (let o = i.length - 2; !h && o >= 0; o--) h = i[o];
3274
3313
  for (let o = 0; o < r.length; o++) {
3275
- let a = r[o], l = i;
3314
+ let a = r[o];
3315
+ let l = i;
3276
3316
  if (s.matchBase && a.length === 1 && (l = [h]), this.matchOne(l, a, e)) return s.flipNegate ? !0 : !this.negate;
3277
3317
  }
3278
3318
  return s.flipNegate ? !1 : this.negate;
@@ -3781,14 +3821,21 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3781
3821
  context: i
3782
3822
  };
3783
3823
  let l = (p, b = !1) => {
3784
- let { aborted: w } = h.signal, v = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
3824
+ let { aborted: w } = h.signal;
3825
+ let v = s.ignoreFetchAbort && p !== void 0;
3826
+ let E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
3785
3827
  if (s.status && (w && !b ? (s.status.fetchAborted = !0, s.status.fetchError = h.signal.reason, v && (s.status.fetchAbortIgnored = !0)) : s.status.fetchResolved = !0), w && !v && !b) return c(h.signal.reason, E);
3786
- let y = u, S = this.#i[e];
3828
+ let y = u;
3829
+ let S = this.#i[e];
3787
3830
  return (S === u || v && b && S === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#A(t, "fetch") : (s.status && (s.status.fetchUpdated = !0), this.set(t, p, a.options))), p;
3788
3831
  };
3789
3832
  let f = (p) => (s.status && (s.status.fetchRejected = !0, s.status.fetchError = p), c(p, !1));
3790
3833
  let c = (p, b) => {
3791
- let { aborted: w } = h.signal, v = w && s.allowStaleOnFetchAbort, E = v || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, S = u;
3834
+ let { aborted: w } = h.signal;
3835
+ let v = w && s.allowStaleOnFetchAbort;
3836
+ let E = v || s.allowStaleOnFetchRejection;
3837
+ let y = E || s.noDeleteOnFetchRejection;
3838
+ let S = u;
3792
3839
  if (this.#i[e] === u && (!y || !b && S.__staleWhileFetching === void 0 ? this.#A(t, "fetch") : v || (this.#i[e] = S.__staleWhileFetching)), E) return s.status && S.__staleWhileFetching !== void 0 && (s.status.returnedStale = !0), S.__staleWhileFetching;
3793
3840
  if (S.__returned === S) throw p;
3794
3841
  };
@@ -3962,9 +4009,9 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
3962
4009
  stdout: null,
3963
4010
  stderr: null
3964
4011
  };
3965
- var _e = require("node:events");
3966
- var ws = nr(require("node:stream"));
3967
- var hr = require("node:string_decoder");
4012
+ var _e = require("events");
4013
+ var ws = nr(require("stream"));
4014
+ var hr = require("string_decoder");
3968
4015
  var or = (n) => !!n && typeof n == "object" && (n instanceof qt || n instanceof ws.default || (0, P.isReadable)(n) || (0, P.isWritable)(n));
3969
4016
  P.isStream = or;
3970
4017
  var ar = (n) => !!n && typeof n == "object" && n instanceof _e.EventEmitter && typeof n.pipe == "function" && n.pipe !== ws.default.Writable.prototype.pipe;
@@ -4260,7 +4307,8 @@ while (this[ms](this[zt]()) && this[T].length);
4260
4307
  }
4261
4308
  [Symbol.asyncIterator]() {
4262
4309
  this[D] = !1;
4263
- let t = !1, e = async () => (this.pause(), t = !0, {
4310
+ let t = !1;
4311
+ let e = async () => (this.pause(), t = !0, {
4264
4312
  value: void 0,
4265
4313
  done: !0
4266
4314
  });
@@ -4273,19 +4321,24 @@ while (this[ms](this[zt]()) && this[T].length);
4273
4321
  value: i
4274
4322
  });
4275
4323
  if (this[$]) return e();
4276
- let r, h, o = (c) => {
4324
+ let r;
4325
+ let h;
4326
+ let o = (c) => {
4277
4327
  this.off("data", a), this.off("end", l), this.off(O, f), e(), h(c);
4278
- }, a = (c) => {
4328
+ };
4329
+ let a = (c) => {
4279
4330
  this.off("error", o), this.off("end", l), this.off(O, f), this.pause(), r({
4280
4331
  value: c,
4281
4332
  done: !!this[$]
4282
4333
  });
4283
- }, l = () => {
4334
+ };
4335
+ let l = () => {
4284
4336
  this.off("error", o), this.off("data", a), this.off(O, f), e(), r({
4285
4337
  done: !0,
4286
4338
  value: void 0
4287
4339
  });
4288
- }, f = () => o(/* @__PURE__ */ new Error("stream destroyed"));
4340
+ };
4341
+ let f = () => o(/* @__PURE__ */ new Error("stream destroyed"));
4289
4342
  return new Promise((c, d) => {
4290
4343
  h = d, r = c, this.once(O, f), this.once("error", o), this.once("end", l), this.once("data", a);
4291
4344
  });
@@ -4300,10 +4353,12 @@ while (this[ms](this[zt]()) && this[T].length);
4300
4353
  }
4301
4354
  [Symbol.iterator]() {
4302
4355
  this[D] = !1;
4303
- let t = !1, e = () => (this.pause(), this.off(be, e), this.off(O, e), this.off("end", e), t = !0, {
4356
+ let t = !1;
4357
+ let e = () => (this.pause(), this.off(be, e), this.off(O, e), this.off("end", e), t = !0, {
4304
4358
  done: !0,
4305
4359
  value: void 0
4306
- }), s = () => {
4360
+ });
4361
+ let s = () => {
4307
4362
  if (t) return e();
4308
4363
  let i = this.read();
4309
4364
  return i === null ? e() : {
@@ -4364,12 +4419,12 @@ while (this[ms](this[zt]()) && this[T].length);
4364
4419
  Object.defineProperty(_, "__esModule", { value: !0 });
4365
4420
  _.PathScurry = _.Path = _.PathScurryDarwin = _.PathScurryPosix = _.PathScurryWin32 = _.PathScurryBase = _.PathPosix = _.PathWin32 = _.PathBase = _.ChildrenCache = _.ResolveCache = void 0;
4366
4421
  var Qt = fs();
4367
- var Yt = require("node:path");
4368
- var yr = require("node:url");
4422
+ var Yt = require("path");
4423
+ var yr = require("url");
4369
4424
  var pt = require("fs");
4370
- var Sr = br(require("node:fs"));
4425
+ var Sr = br(require("fs"));
4371
4426
  var vr = pt.realpathSync.native;
4372
- var Ht = require("node:fs/promises");
4427
+ var Ht = require("fs/promises");
4373
4428
  var bs = Oe();
4374
4429
  var mt = {
4375
4430
  lstatSync: pt.lstatSync,
@@ -4551,7 +4606,8 @@ while (this[ms](this[zt]()) && this[T].length);
4551
4606
  }
4552
4607
  resolve(t) {
4553
4608
  if (!t) return this;
4554
- let e = this.getRootString(t), i = t.substring(e.length).split(this.splitSep);
4609
+ let e = this.getRootString(t);
4610
+ let i = t.substring(e.length).split(this.splitSep);
4555
4611
  return e ? this.getRoot(e).#D(i) : this.#D(i);
4556
4612
  }
4557
4613
  #D(t) {
@@ -4568,9 +4624,12 @@ while (this[ms](this[zt]()) && this[T].length);
4568
4624
  child(t, e) {
4569
4625
  if (t === "" || t === ".") return this;
4570
4626
  if (t === "..") return this.parent || this;
4571
- let s = this.children(), i = this.nocase ? Kt(t) : wt(t);
4627
+ let s = this.children();
4628
+ let i = this.nocase ? Kt(t) : wt(t);
4572
4629
  for (let a of s) if (a.#O === i) return a;
4573
- let r = this.parent ? this.sep : "", h = this.#g ? this.#g + r + t : void 0, o = this.newChild(t, N, {
4630
+ let r = this.parent ? this.sep : "";
4631
+ let h = this.#g ? this.#g + r + t : void 0;
4632
+ let o = this.newChild(t, N, {
4574
4633
  ...e,
4575
4634
  parent: this,
4576
4635
  fullpath: h
@@ -4580,7 +4639,8 @@ while (this[ms](this[zt]()) && this[T].length);
4580
4639
  relative() {
4581
4640
  if (this.isCWD) return "";
4582
4641
  if (this.#E !== void 0) return this.#E;
4583
- let t = this.name, e = this.parent;
4642
+ let t = this.name;
4643
+ let e = this.parent;
4584
4644
  if (!e) return this.#E = this.name;
4585
4645
  let s = e.relative();
4586
4646
  return s + (!s || !e.parent ? "" : this.sep) + t;
@@ -4589,14 +4649,16 @@ while (this[ms](this[zt]()) && this[T].length);
4589
4649
  if (this.sep === "/") return this.relative();
4590
4650
  if (this.isCWD) return "";
4591
4651
  if (this.#T !== void 0) return this.#T;
4592
- let t = this.name, e = this.parent;
4652
+ let t = this.name;
4653
+ let e = this.parent;
4593
4654
  if (!e) return this.#T = this.fullpathPosix();
4594
4655
  let s = e.relativePosix();
4595
4656
  return s + (!s || !e.parent ? "" : "/") + t;
4596
4657
  }
4597
4658
  fullpath() {
4598
4659
  if (this.#g !== void 0) return this.#g;
4599
- let t = this.name, e = this.parent;
4660
+ let t = this.name;
4661
+ let e = this.parent;
4600
4662
  if (!e) return this.#g = this.name;
4601
4663
  let i = e.fullpath() + (e.parent ? this.sep : "") + t;
4602
4664
  return this.#g = i;
@@ -4608,7 +4670,9 @@ while (this[ms](this[zt]()) && this[T].length);
4608
4670
  let i = this.fullpath().replace(/\\/g, "/");
4609
4671
  return /^[a-z]:\//i.test(i) ? this.#b = `//?/${i}` : this.#b = i;
4610
4672
  }
4611
- let t = this.parent, e = t.fullpathPosix(), s = e + (!e || !t.parent ? "" : "/") + this.name;
4673
+ let t = this.parent;
4674
+ let e = t.fullpathPosix();
4675
+ let s = e + (!e || !t.parent ? "" : "/") + this.name;
4612
4676
  return this.#b = s;
4613
4677
  }
4614
4678
  isUnknown() {
@@ -4673,7 +4737,8 @@ while (this[ms](this[zt]()) && this[T].length);
4673
4737
  let t = this.#P;
4674
4738
  if (t) return t;
4675
4739
  if (this.canReadlink() && this.parent) try {
4676
- let e = await this.#t.promises.readlink(this.fullpath()), s = (await this.parent.realpath())?.resolve(e);
4740
+ let e = await this.#t.promises.readlink(this.fullpath());
4741
+ let s = (await this.parent.realpath())?.resolve(e);
4677
4742
  if (s) return this.#P = s;
4678
4743
  } catch (e) {
4679
4744
  this.#M(e.code);
@@ -4684,7 +4749,8 @@ while (this[ms](this[zt]()) && this[T].length);
4684
4749
  let t = this.#P;
4685
4750
  if (t) return t;
4686
4751
  if (this.canReadlink() && this.parent) try {
4687
- let e = this.#t.readlinkSync(this.fullpath()), s = this.parent.realpathSync()?.resolve(e);
4752
+ let e = this.#t.readlinkSync(this.fullpath());
4753
+ let s = this.parent.realpathSync()?.resolve(e);
4688
4754
  if (s) return this.#P = s;
4689
4755
  } catch (e) {
4690
4756
  this.#M(e.code);
@@ -4728,7 +4794,9 @@ while (this[ms](this[zt]()) && this[T].length);
4728
4794
  return this.#z(t, e) || this.#G(t, e);
4729
4795
  }
4730
4796
  #G(t, e) {
4731
- let s = Te(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & j;
4797
+ let s = Te(t);
4798
+ let i = this.newChild(t.name, s, { parent: this });
4799
+ let r = i.#e & j;
4732
4800
  return r !== G && r !== Q && r !== N && (i.#e |= gt), e.unshift(i), e.provisional++, i;
4733
4801
  }
4734
4802
  #z(t, e) {
@@ -4853,7 +4921,9 @@ while (this[ms](this[zt]()) && this[T].length);
4853
4921
  [ks](t) {
4854
4922
  if (t === this) return;
4855
4923
  t.isCWD = !1, this.isCWD = !0;
4856
- let e = /* @__PURE__ */ new Set([]), s = [], i = this;
4924
+ let e = /* @__PURE__ */ new Set([]);
4925
+ let s = [];
4926
+ let i = this;
4857
4927
  for (; i && i.parent;) e.add(i), i.#E = s.join(this.sep), i.#T = s.join("/"), i = i.parent, s.push("..");
4858
4928
  for (i = t; i && i.parent && !e.has(i);) i.#E = void 0, i.#T = void 0, i = i.parent;
4859
4929
  }
@@ -5039,7 +5109,7 @@ while (this[ms](this[zt]()) && this[T].length);
5039
5109
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e;
5040
5110
  let o = [];
5041
5111
  (!r || r(t)) && o.push(s ? t : t.fullpath());
5042
- let a = new Set([t]);
5112
+ let a = /* @__PURE__ */ new Set([t]);
5043
5113
  for (let l of a) {
5044
5114
  let f = l.readdirSync();
5045
5115
  for (let c of f) {
@@ -5067,7 +5137,7 @@ while (this[ms](this[zt]()) && this[T].length);
5067
5137
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof A || (e = t, t = this.cwd);
5068
5138
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: h } = e;
5069
5139
  (!r || r(t)) && (yield s ? t : t.fullpath());
5070
- let o = new Set([t]);
5140
+ let o = /* @__PURE__ */ new Set([t]);
5071
5141
  for (let a of o) {
5072
5142
  let l = a.readdirSync();
5073
5143
  for (let f of l) {
@@ -5115,7 +5185,8 @@ while (this[ms](this[zt]()) && this[T].length);
5115
5185
  y.shouldWalk(a, h) && l.push(y);
5116
5186
  }
5117
5187
  d && !o.flowing ? o.once("drain", c) : p || c();
5118
- }, p = !0;
5188
+ };
5189
+ let p = !0;
5119
5190
  u.readdirCB(m, !0), p = !1;
5120
5191
  }
5121
5192
  };
@@ -5348,21 +5419,29 @@ while (this[ms](this[zt]()) && this[T].length);
5348
5419
  add(t) {
5349
5420
  let e = new Ps.Minimatch(t, this.mmopts);
5350
5421
  for (let s = 0; s < e.set.length; s++) {
5351
- let i = e.set[s], r = e.globParts[s];
5422
+ let i = e.set[s];
5423
+ let r = e.globParts[s];
5352
5424
  if (!i || !r) throw new Error("invalid pattern object");
5353
5425
  for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
5354
- let h = new Ar.Pattern(i, r, 0, this.platform), o = new Ps.Minimatch(h.globString(), this.mmopts), a = r[r.length - 1] === "**", l = h.isAbsolute();
5426
+ let h = new Ar.Pattern(i, r, 0, this.platform);
5427
+ let o = new Ps.Minimatch(h.globString(), this.mmopts);
5428
+ let a = r[r.length - 1] === "**";
5429
+ let l = h.isAbsolute();
5355
5430
  l ? this.absolute.push(o) : this.relative.push(o), a && (l ? this.absoluteChildren.push(o) : this.relativeChildren.push(o));
5356
5431
  }
5357
5432
  }
5358
5433
  ignored(t) {
5359
- let e = t.fullpath(), s = `${e}/`, i = t.relative() || ".", r = `${i}/`;
5434
+ let e = t.fullpath();
5435
+ let s = `${e}/`;
5436
+ let i = t.relative() || ".";
5437
+ let r = `${i}/`;
5360
5438
  for (let h of this.relative) if (h.match(i) || h.match(r)) return !0;
5361
5439
  for (let h of this.absolute) if (h.match(e) || h.match(s)) return !0;
5362
5440
  return !1;
5363
5441
  }
5364
5442
  childrenIgnored(t) {
5365
- let e = t.fullpath() + "/", s = (t.relative() || ".") + "/";
5443
+ let e = t.fullpath() + "/";
5444
+ let s = (t.relative() || ".") + "/";
5366
5445
  for (let i of this.relativeChildren) if (i.match(s)) return !0;
5367
5446
  for (let i of this.absoluteChildren) if (i.match(e)) return !0;
5368
5447
  return !1;
@@ -5387,8 +5466,9 @@ while (this[ms](this[zt]()) && this[T].length);
5387
5466
  return this.store.get(t.fullpath())?.has(e.globString());
5388
5467
  }
5389
5468
  storeWalked(t, e) {
5390
- let s = t.fullpath(), i = this.store.get(s);
5391
- i ? i.add(e.globString()) : this.store.set(s, new Set([e.globString()]));
5469
+ let s = t.fullpath();
5470
+ let i = this.store.get(s);
5471
+ i ? i.add(e.globString()) : this.store.set(s, /* @__PURE__ */ new Set([e.globString()]));
5392
5472
  }
5393
5473
  };
5394
5474
  z.HasWalkedCache = se;
@@ -5606,7 +5686,8 @@ while (this[ms](this[zt]()) && this[T].length);
5606
5686
  let r = this.opts.posix ? t.fullpathPosix() : t.fullpath();
5607
5687
  this.matchEmit(r + i);
5608
5688
  } else {
5609
- let r = this.opts.posix ? t.relativePosix() : t.relative(), h = this.opts.dotRelative && !r.startsWith(".." + this.#n) ? "." + this.#n : "";
5689
+ let r = this.opts.posix ? t.relativePosix() : t.relative();
5690
+ let h = this.opts.dotRelative && !r.startsWith(".." + this.#n) ? "." + this.#n : "";
5610
5691
  this.matchEmit(r ? h + r + i : "." + i);
5611
5692
  }
5612
5693
  }
@@ -5628,7 +5709,8 @@ while (this[ms](this[zt]()) && this[T].length);
5628
5709
  return;
5629
5710
  }
5630
5711
  s.processPatterns(t, e);
5631
- let r = 1, h = () => {
5712
+ let r = 1;
5713
+ let h = () => {
5632
5714
  --r === 0 && i();
5633
5715
  };
5634
5716
  for (let [o, a, l] of s.matches.entries()) this.#r(o) || (r++, this.match(o, a, l).then(() => h()));
@@ -5642,7 +5724,8 @@ while (this[ms](this[zt]()) && this[T].length);
5642
5724
  }
5643
5725
  walkCB3(t, e, s, i) {
5644
5726
  s = s.filterEntries(t, e);
5645
- let r = 1, h = () => {
5727
+ let r = 1;
5728
+ let h = () => {
5646
5729
  --r === 0 && i();
5647
5730
  };
5648
5731
  for (let [o, a, l] of s.matches.entries()) this.#r(o) || (r++, this.match(o, a, l).then(() => h()));
@@ -5659,7 +5742,8 @@ while (this[ms](this[zt]()) && this[T].length);
5659
5742
  return;
5660
5743
  }
5661
5744
  s.processPatterns(t, e);
5662
- let r = 1, h = () => {
5745
+ let r = 1;
5746
+ let h = () => {
5663
5747
  --r === 0 && i();
5664
5748
  };
5665
5749
  for (let [o, a, l] of s.matches.entries()) this.#r(o) || this.matchSync(o, a, l);
@@ -5673,7 +5757,8 @@ while (this[ms](this[zt]()) && this[T].length);
5673
5757
  }
5674
5758
  walkCB3Sync(t, e, s, i) {
5675
5759
  s = s.filterEntries(t, e);
5676
- let r = 1, h = () => {
5760
+ let r = 1;
5761
+ let h = () => {
5677
5762
  --r === 0 && i();
5678
5763
  };
5679
5764
  for (let [o, a, l] of s.matches.entries()) this.#r(o) || this.matchSync(o, a, l);
@@ -5734,7 +5819,7 @@ while (this[ms](this[zt]()) && this[T].length);
5734
5819
  Object.defineProperty(oe, "__esModule", { value: !0 });
5735
5820
  oe.Glob = void 0;
5736
5821
  var Dr = H();
5737
- var Fr = require("node:url");
5822
+ var Fr = require("url");
5738
5823
  var ne = Ms();
5739
5824
  var jr = Re();
5740
5825
  var he = Ls();
@@ -5787,7 +5872,8 @@ while (this[ms](this[zt]()) && this[T].length);
5787
5872
  });
5788
5873
  }
5789
5874
  this.nocase = this.scurry.nocase;
5790
- let s = this.platform === "darwin" || this.platform === "win32", i = {
5875
+ let s = this.platform === "darwin" || this.platform === "win32";
5876
+ let i = {
5791
5877
  braceExpandMax: 1e4,
5792
5878
  ...e,
5793
5879
  dot: this.dot,
@@ -5802,7 +5888,8 @@ while (this[ms](this[zt]()) && this[T].length);
5802
5888
  platform: this.platform,
5803
5889
  windowsPathsNoEscape: this.windowsPathsNoEscape,
5804
5890
  debug: !!this.opts.debug
5805
- }, [h, o] = this.pattern.map((a) => new Dr.Minimatch(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
5891
+ };
5892
+ let [h, o] = this.pattern.map((a) => new Dr.Minimatch(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
5806
5893
  this.patterns = h.map((a, l) => {
5807
5894
  let f = o[l];
5808
5895
  if (!f) throw new Error("invalid pattern object");
@@ -7296,7 +7383,7 @@ var require_validate_npm_package_license = /* @__PURE__ */ __commonJSMin(((expor
7296
7383
  //#endregion
7297
7384
  //#region node_modules/.pnpm/@npmcli+package-json@7.0.0/node_modules/@npmcli/package-json/lib/normalize-data.js
7298
7385
  var require_normalize_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7299
- const { URL: URL$2 } = require("node:url");
7386
+ const { URL: URL$2 } = require("url");
7300
7387
  const hostedGitInfo = require_lib$8();
7301
7388
  const validateLicense = require_validate_npm_package_license();
7302
7389
  const typos = {
@@ -7503,7 +7590,7 @@ var require_posix = /* @__PURE__ */ __commonJSMin(((exports) => {
7503
7590
  const myGroups = options.groups ?? process.getgroups?.() ?? [];
7504
7591
  const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
7505
7592
  if (myUid === void 0 || myGid === void 0) throw new Error("cannot get uid or gid");
7506
- const groups = new Set([myGid, ...myGroups]);
7593
+ const groups = /* @__PURE__ */ new Set([myGid, ...myGroups]);
7507
7594
  const mod = stat.mode;
7508
7595
  const uid = stat.uid;
7509
7596
  const gid = stat.gid;
@@ -7633,7 +7720,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
7633
7720
  }));
7634
7721
 
7635
7722
  //#endregion
7636
- //#region node_modules/.pnpm/which@5.0.0/node_modules/which/lib/index.js
7723
+ //#region node_modules/.pnpm/which@7.0.0/node_modules/which/lib/index.js
7637
7724
  var require_lib$7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7638
7725
  const { isexe, sync: isexeSync } = require_cjs();
7639
7726
  const { join: join$1, delimiter, sep, posix } = require("path");
@@ -8364,9 +8451,9 @@ var require_ini = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8364
8451
  //#endregion
8365
8452
  //#region node_modules/.pnpm/@npmcli+git@6.0.3/node_modules/@npmcli/git/lib/opts.js
8366
8453
  var require_opts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8367
- const fs$3 = require("node:fs");
8368
- const os = require("node:os");
8369
- const path$3 = require("node:path");
8454
+ const fs$3 = require("fs");
8455
+ const os = require("os");
8456
+ const path$3 = require("path");
8370
8457
  const ini = require_ini();
8371
8458
  const gitConfigPath = path$3.join(os.homedir(), ".gitconfig");
8372
8459
  let cachedConfig = null;
@@ -8693,7 +8780,11 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8693
8780
  }
8694
8781
  if (match === null) return null;
8695
8782
  const major = match[2];
8696
- return parse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
8783
+ const minor = match[3] || "0";
8784
+ const patch = match[4] || "0";
8785
+ const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
8786
+ const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
8787
+ return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
8697
8788
  };
8698
8789
  module.exports = coerce;
8699
8790
  }));
@@ -9709,9 +9800,9 @@ var require_lib$5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9709
9800
  //#region node_modules/.pnpm/npm-package-arg@12.0.2/node_modules/npm-package-arg/lib/npa.js
9710
9801
  var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9711
9802
  const isWindows = process.platform === "win32";
9712
- const { URL: URL$1 } = require("node:url");
9713
- const path$2 = isWindows ? require("node:path/win32") : require("node:path");
9714
- const { homedir } = require("node:os");
9803
+ const { URL: URL$1 } = require("url");
9804
+ const path$2 = isWindows ? require("path/win32") : require("path");
9805
+ const { homedir } = require("os");
9715
9806
  const HostedGit = require_lib$8();
9716
9807
  const semver = require_semver();
9717
9808
  const validatePackageName = require_lib$5();
@@ -9864,7 +9955,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9864
9955
  log.warn("npm-package-arg", `ignoring unknown key "${name}"`);
9865
9956
  }
9866
9957
  }
9867
- const encodedPathChars = new Map([
9958
+ const encodedPathChars = /* @__PURE__ */ new Map([
9868
9959
  ["\0", "%00"],
9869
9960
  [" ", "%09"],
9870
9961
  ["\n", "%0A"],
@@ -10016,9 +10107,9 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10016
10107
  //#endregion
10017
10108
  //#region node_modules/.pnpm/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/current-env.js
10018
10109
  var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10019
- const process$1 = require("node:process");
10020
- const nodeOs = require("node:os");
10021
- const fs$2 = require("node:fs");
10110
+ const process$1 = require("process");
10111
+ const nodeOs = require("os");
10112
+ const fs$2 = require("fs");
10022
10113
  function isMusl(file) {
10023
10114
  return file.includes("libc.musl-") || file.includes("ld-musl-");
10024
10115
  }
@@ -10412,7 +10503,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10412
10503
  //#endregion
10413
10504
  //#region node_modules/.pnpm/@npmcli+git@6.0.3/node_modules/@npmcli/git/lib/clone.js
10414
10505
  var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10415
- const shallowHosts = new Set([
10506
+ const shallowHosts = /* @__PURE__ */ new Set([
10416
10507
  "github.com",
10417
10508
  "gist.github.com",
10418
10509
  "gitlab.com",
@@ -10583,10 +10674,10 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10583
10674
  var require_normalize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10584
10675
  const valid = require_valid$1();
10585
10676
  const clean = require_clean();
10586
- const fs = require("node:fs/promises");
10587
- const path = require("node:path");
10677
+ const fs = require("fs/promises");
10678
+ const path = require("path");
10588
10679
  const { log } = require_lib$9();
10589
- const moduleBuiltin = require("node:module");
10680
+ const moduleBuiltin = require("module");
10590
10681
  /**
10591
10682
  * @type {import('hosted-git-info')}
10592
10683
  */
@@ -11076,8 +11167,8 @@ var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11076
11167
  //#endregion
11077
11168
  //#region node_modules/.pnpm/@npmcli+package-json@7.0.0/node_modules/@npmcli/package-json/lib/index.js
11078
11169
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11079
- const { readFile, writeFile } = require("node:fs/promises");
11080
- const { resolve } = require("node:path");
11170
+ const { readFile, writeFile } = require("fs/promises");
11171
+ const { resolve } = require("path");
11081
11172
  const parseJSON = require_lib$10();
11082
11173
  const updateDeps = require_update_dependencies();
11083
11174
  const updateScripts = require_update_scripts();
@@ -11085,12 +11176,12 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11085
11176
  const { normalize, syncNormalize } = require_normalize();
11086
11177
  const { read, parse } = require_read_package();
11087
11178
  const { packageSort } = require_sort();
11088
- const knownSteps = new Set([
11179
+ const knownSteps = /* @__PURE__ */ new Set([
11089
11180
  updateDeps,
11090
11181
  updateScripts,
11091
11182
  updateWorkspaces
11092
11183
  ]);
11093
- const knownKeys = new Set([
11184
+ const knownKeys = /* @__PURE__ */ new Set([
11094
11185
  ...updateDeps.knownKeys,
11095
11186
  "scripts",
11096
11187
  "workspaces"