@vltpkg/cli-js 1.6.0 → 1.6.1

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 (76) hide show
  1. package/{access-AJ654YKY.js → access-YSLEWR2C.js} +2 -2
  2. package/{bugs-N73DVYHD.js → bugs-S6CRUEA2.js} +9 -9
  3. package/{build-VZ3EZKMM.js → build-SG3KPX3W.js} +5 -5
  4. package/{cache-VROEWG2C.js → cache-HA77ROM7.js} +3 -3
  5. package/{chunk-PC2HOBAQ.js → chunk-3E3ISOYM.js} +9 -4
  6. package/{chunk-75HGJVNG.js → chunk-4UAIPIAV.js} +5 -5
  7. package/{chunk-22LZBDEC.js → chunk-5Q2HSLVV.js} +1 -1
  8. package/{chunk-IXAMCWIT.js → chunk-6XVW7CWJ.js} +3 -3
  9. package/{chunk-LP3ORD3D.js → chunk-AEVT3CHK.js} +2 -2
  10. package/{chunk-YTDABXPD.js → chunk-AHLBPSGQ.js} +1 -1
  11. package/{chunk-GZVI75KX.js → chunk-BQMHDAYL.js} +1 -1
  12. package/{chunk-F5LZMLAQ.js → chunk-C4RJ4NNS.js} +18 -11
  13. package/{chunk-DBANBIL2.js → chunk-FZCPQWCJ.js} +1 -0
  14. package/{chunk-LCLRP64K.js → chunk-IHERL3TA.js} +12 -11
  15. package/{chunk-VLVMLSIF.js → chunk-JZXNHIQE.js} +27 -27
  16. package/{chunk-TQQO2F56.js → chunk-KURQHX54.js} +1 -0
  17. package/{chunk-RBQO54TG.js → chunk-L3ZF7OYM.js} +2 -2
  18. package/{chunk-GEQFMH5M.js → chunk-M242QVJS.js} +1 -1
  19. package/{chunk-KVWGMSPW.js → chunk-MSWOR3FV.js} +9 -1
  20. package/chunk-N3V6EK5I.js +77 -0
  21. package/{chunk-CYK6I4M6.js → chunk-NO53Y3QO.js} +1 -1
  22. package/{chunk-ANW36H4T.js → chunk-OWL5G4K4.js} +1 -1
  23. package/{chunk-44AWMA4F.js → chunk-Q2UEILN6.js} +1 -1
  24. package/{chunk-FXD3IV2S.js → chunk-VGPLFOJO.js} +1 -1
  25. package/{chunk-JCNI6ZHH.js → chunk-W24SBFY5.js} +4 -4
  26. package/{chunk-TWDSXQPN.js → chunk-WMMKUVAT.js} +3 -3
  27. package/{chunk-36UIE654.js → chunk-ZJE3OTP3.js} +13 -10
  28. package/{ci-3BVMVQIT.js → ci-GVLL72SS.js} +8 -8
  29. package/cli-package.json +1 -1
  30. package/{config-2KQV7N5A.js → config-KH6AEMHI.js} +4 -4
  31. package/{config-EKHBW6I5.js → config-TIPKOPYS.js} +3 -3
  32. package/{create-QVHNOIV3.js → create-SKNEZEZY.js} +10 -10
  33. package/{deprecate-E254QBH6.js → deprecate-RFRLJZVL.js} +4 -4
  34. package/{dist-tag-SITRFD7O.js → dist-tag-LVYOTJHJ.js} +2 -2
  35. package/{docs-IDL2P7CA.js → docs-INXRFEGY.js} +9 -9
  36. package/{exec-7BK2W2WL.js → exec-5MA5XRPZ.js} +10 -10
  37. package/{exec-cache-VY46L7DR.js → exec-cache-7GS4KLWJ.js} +8 -8
  38. package/{exec-local-D7R5T3DF.js → exec-local-RE4KVTMN.js} +8 -8
  39. package/{help-RMRIEJQL.js → help-JHLP565L.js} +1 -1
  40. package/{init-BGW4HJ6V.js → init-4UFHO67B.js} +6 -6
  41. package/{install-U5GATZ2N.js → install-Z33YVCDK.js} +12 -12
  42. package/{list-3VG4M2XL.js → list-XAMKR6TL.js} +11 -11
  43. package/{login-PHQWI6S6.js → login-6NXUO5FF.js} +5 -5
  44. package/{logout-DJCOGRFF.js → logout-6P7LWTAY.js} +2 -2
  45. package/{outdated-JH3O6R3Y.js → outdated-YNUSWZJD.js} +9 -9
  46. package/{pack-U5W5YWHK.js → pack-LMQYH75V.js} +7 -7
  47. package/package.json +1 -1
  48. package/{ping-EKX43AOW.js → ping-VLFZ3WCY.js} +2 -2
  49. package/{pkg-SW5GMERT.js → pkg-JMPBHKSW.js} +8 -8
  50. package/{profile-UGDRDMQ6.js → profile-PJJAA2YM.js} +2 -2
  51. package/{publish-HTWKK3NN.js → publish-33RFJ2HJ.js} +9 -9
  52. package/{query-YE3FUVGG.js → query-LUUOK57K.js} +11 -11
  53. package/registry-client-src-revalidate.js +1 -1
  54. package/{repo-WDOCU6SE.js → repo-VLHLQP2S.js} +9 -9
  55. package/{reporter-N5PAXB26.js → reporter-SNSM2TDC.js} +4 -4
  56. package/{run-IPARVIIQ.js → run-USWK7R3N.js} +8 -8
  57. package/{run-exec-C4RTREEW.js → run-exec-PHE44AWW.js} +8 -8
  58. package/security-archive-src-update-expired.js +1 -1
  59. package/{setup-SYYUEHZL.js → setup-JMY47ERY.js} +6 -6
  60. package/{skills-KA2VR5Q5.js → skills-7PYMTDER.js} +4 -4
  61. package/{skills-UBBMSBDQ.js → skills-YMMV6TMN.js} +8 -8
  62. package/{src-FUSTSM4J.js → src-2ZS4VHJP.js} +5 -5
  63. package/{src-QO5G2S4O.js → src-A5ZJNOHN.js} +2 -2
  64. package/{token-UQNABECH.js → token-YKHELNVQ.js} +2 -2
  65. package/{uninstall-FHBJ3OUV.js → uninstall-Q46HWR5S.js} +7 -7
  66. package/{unpublish-APJTEUBA.js → unpublish-LBANPSJ5.js} +2 -2
  67. package/{update-NWZTL4S7.js → update-B2EGLZHI.js} +9 -9
  68. package/{version-EMKKTL77.js → version-IEOBL3NN.js} +6 -6
  69. package/{view-BUUI33RV.js → view-JCA5VT6F.js} +5 -5
  70. package/vlr.js +1 -1
  71. package/vlrx.js +1 -1
  72. package/vlt.js +1 -1
  73. package/vlx.js +1 -1
  74. package/vlxl.js +1 -1
  75. package/{whoami-F6BSXGQ2.js → whoami-OWJUPO3X.js} +2 -2
  76. package/chunk-4E65BBTM.js +0 -77
@@ -19,9 +19,9 @@ import "./chunk-EFHOWRKU.js";
19
19
  import "./chunk-6D3QAFNZ.js";
20
20
  import {
21
21
  RegistryClient
22
- } from "./chunk-44AWMA4F.js";
22
+ } from "./chunk-Q2UEILN6.js";
23
23
  import "./chunk-QNHBAGXQ.js";
24
- import "./chunk-GEQFMH5M.js";
24
+ import "./chunk-M242QVJS.js";
25
25
  import {
26
26
  assertOk
27
27
  } from "./chunk-4GMNWW4C.js";
@@ -14,20 +14,20 @@ import {
14
14
  } from "./chunk-CLVRCGOZ.js";
15
15
  import {
16
16
  openUrl
17
- } from "./chunk-22LZBDEC.js";
17
+ } from "./chunk-5Q2HSLVV.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-JCNI6ZHH.js";
20
+ } from "./chunk-W24SBFY5.js";
21
21
  import {
22
22
  actual
23
- } from "./chunk-36UIE654.js";
23
+ } from "./chunk-ZJE3OTP3.js";
24
24
  import {
25
25
  Query
26
- } from "./chunk-F5LZMLAQ.js";
26
+ } from "./chunk-C4RJ4NNS.js";
27
27
  import {
28
28
  SecurityArchive
29
- } from "./chunk-YTDABXPD.js";
30
- import "./chunk-KVWGMSPW.js";
29
+ } from "./chunk-AHLBPSGQ.js";
30
+ import "./chunk-MSWOR3FV.js";
31
31
  import "./chunk-LGQVZTYR.js";
32
32
  import "./chunk-EYGOEAJM.js";
33
33
  import {
@@ -35,11 +35,11 @@ import {
35
35
  } from "./chunk-HT6FS4VB.js";
36
36
  import {
37
37
  PackageInfoClient
38
- } from "./chunk-LCLRP64K.js";
38
+ } from "./chunk-IHERL3TA.js";
39
39
  import "./chunk-SRWDPPLX.js";
40
40
  import "./chunk-JV5XR5JQ.js";
41
41
  import "./chunk-EMTGRCSE.js";
42
- import "./chunk-TQQO2F56.js";
42
+ import "./chunk-KURQHX54.js";
43
43
  import "./chunk-4KCU2KZL.js";
44
44
  import "./chunk-WGDTG44V.js";
45
45
  import "./chunk-E74WGW5C.js";
@@ -53,7 +53,7 @@ import {
53
53
  } from "./chunk-6D3QAFNZ.js";
54
54
  import "./chunk-HTOTG4TS.js";
55
55
  import "./chunk-QNHBAGXQ.js";
56
- import "./chunk-GEQFMH5M.js";
56
+ import "./chunk-M242QVJS.js";
57
57
  import "./chunk-4GMNWW4C.js";
58
58
  import "./chunk-SUU2WETN.js";
59
59
  import "./chunk-B6RIGNEO.js";
@@ -12,9 +12,9 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  actual,
14
14
  build
15
- } from "./chunk-36UIE654.js";
16
- import "./chunk-F5LZMLAQ.js";
17
- import "./chunk-YTDABXPD.js";
15
+ } from "./chunk-ZJE3OTP3.js";
16
+ import "./chunk-C4RJ4NNS.js";
17
+ import "./chunk-AHLBPSGQ.js";
18
18
  import {
19
19
  commandUsage
20
20
  } from "./chunk-HT6FS4VB.js";
@@ -26,7 +26,7 @@ import {
26
26
  import "./chunk-BH5CVXNY.js";
27
27
  import "./chunk-JV5XR5JQ.js";
28
28
  import "./chunk-EMTGRCSE.js";
29
- import "./chunk-TQQO2F56.js";
29
+ import "./chunk-KURQHX54.js";
30
30
  import "./chunk-GCTREKA4.js";
31
31
  import "./chunk-MCDLJZXT.js";
32
32
  import "./chunk-7M2VTFLP.js";
@@ -34,7 +34,7 @@ import "./chunk-EFHOWRKU.js";
34
34
  import "./chunk-CAV7FKWQ.js";
35
35
  import "./chunk-6D3QAFNZ.js";
36
36
  import "./chunk-HTOTG4TS.js";
37
- import "./chunk-GEQFMH5M.js";
37
+ import "./chunk-M242QVJS.js";
38
38
  import "./chunk-SUU2WETN.js";
39
39
  import "./chunk-B6RIGNEO.js";
40
40
  import "./chunk-XNLSTHDK.js";
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  stderr,
17
17
  stdout
18
- } from "./chunk-KVWGMSPW.js";
18
+ } from "./chunk-MSWOR3FV.js";
19
19
  import "./chunk-LGQVZTYR.js";
20
20
  import "./chunk-EYGOEAJM.js";
21
21
  import {
@@ -36,9 +36,9 @@ import {
36
36
  } from "./chunk-6D3QAFNZ.js";
37
37
  import {
38
38
  CacheEntry
39
- } from "./chunk-44AWMA4F.js";
39
+ } from "./chunk-Q2UEILN6.js";
40
40
  import "./chunk-QNHBAGXQ.js";
41
- import "./chunk-GEQFMH5M.js";
41
+ import "./chunk-M242QVJS.js";
42
42
  import {
43
43
  assertOk
44
44
  } from "./chunk-4GMNWW4C.js";
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  init,
14
14
  install
15
- } from "./chunk-36UIE654.js";
15
+ } from "./chunk-ZJE3OTP3.js";
16
16
  import {
17
17
  commandUsage
18
18
  } from "./chunk-HT6FS4VB.js";
@@ -22,7 +22,7 @@ import {
22
22
  minimatch,
23
23
  resolveWSConfig,
24
24
  splitNegatedPatterns
25
- } from "./chunk-TQQO2F56.js";
25
+ } from "./chunk-KURQHX54.js";
26
26
  import {
27
27
  load,
28
28
  save
@@ -87,7 +87,9 @@ var command = async (conf) => {
87
87
  for (const workspace of conf.values.workspace) {
88
88
  const cwd = resolve(conf.options.projectRoot, workspace);
89
89
  mkdirSync(cwd, { recursive: true });
90
- results.push(await init({ cwd }));
90
+ results.push(
91
+ await init({ cwd, packageJson: conf.options.packageJson })
92
+ );
91
93
  const isMatched = Object.values(parsedWSConfig).some(
92
94
  (group) => {
93
95
  const { patterns, ignore } = splitNegatedPatterns(group);
@@ -129,7 +131,10 @@ var command = async (conf) => {
129
131
  await install({ ...conf.options, allowScripts });
130
132
  return results;
131
133
  }
132
- const result = await init({ cwd: process.cwd() });
134
+ const result = await init({
135
+ cwd: process.cwd(),
136
+ packageJson: conf.options.packageJson
137
+ });
133
138
  await install({ ...conf.options, allowScripts });
134
139
  return result;
135
140
  };
@@ -17,25 +17,25 @@ import {
17
17
  } from "./chunk-RIYFGX27.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-JCNI6ZHH.js";
20
+ } from "./chunk-W24SBFY5.js";
21
21
  import {
22
22
  actual,
23
23
  isRunResult
24
- } from "./chunk-36UIE654.js";
24
+ } from "./chunk-ZJE3OTP3.js";
25
25
  import {
26
26
  Query
27
- } from "./chunk-F5LZMLAQ.js";
27
+ } from "./chunk-C4RJ4NNS.js";
28
28
  import {
29
29
  stderr,
30
30
  stdout,
31
31
  styleTextStdout
32
- } from "./chunk-KVWGMSPW.js";
32
+ } from "./chunk-MSWOR3FV.js";
33
33
  import {
34
34
  require_emoji_regex
35
35
  } from "./chunk-VTEFO2FT.js";
36
36
  import {
37
37
  Monorepo
38
- } from "./chunk-TQQO2F56.js";
38
+ } from "./chunk-KURQHX54.js";
39
39
  import {
40
40
  isErrorWithCause
41
41
  } from "./chunk-BF5DRGRZ.js";
@@ -11,7 +11,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  stderr
14
- } from "./chunk-KVWGMSPW.js";
14
+ } from "./chunk-MSWOR3FV.js";
15
15
  import {
16
16
  urlOpen
17
17
  } from "./chunk-QNHBAGXQ.js";
@@ -11,13 +11,13 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  openUrl
14
- } from "./chunk-22LZBDEC.js";
14
+ } from "./chunk-5Q2HSLVV.js";
15
15
  import {
16
16
  mermaidOutput
17
- } from "./chunk-36UIE654.js";
17
+ } from "./chunk-ZJE3OTP3.js";
18
18
  import {
19
19
  stderr
20
- } from "./chunk-KVWGMSPW.js";
20
+ } from "./chunk-MSWOR3FV.js";
21
21
  import {
22
22
  ViewClass
23
23
  } from "./chunk-4KCU2KZL.js";
@@ -11,13 +11,13 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  PackageInfoClient
14
- } from "./chunk-LCLRP64K.js";
14
+ } from "./chunk-IHERL3TA.js";
15
15
  import {
16
16
  Monorepo,
17
17
  PackageJson,
18
18
  PathScurry,
19
19
  workspaceCache
20
- } from "./chunk-TQQO2F56.js";
20
+ } from "./chunk-KURQHX54.js";
21
21
  import {
22
22
  ensureGlobalProject,
23
23
  globalCommands
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-CAV7FKWQ.js";
17
17
  import {
18
18
  userAgent
19
- } from "./chunk-GEQFMH5M.js";
19
+ } from "./chunk-M242QVJS.js";
20
20
  import {
21
21
  I
22
22
  } from "./chunk-B6RIGNEO.js";
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  addKey,
14
14
  asDependency
15
- } from "./chunk-F5LZMLAQ.js";
15
+ } from "./chunk-C4RJ4NNS.js";
16
16
  import {
17
17
  parseSpecArg
18
18
  } from "./chunk-7M2VTFLP.js";
@@ -14,12 +14,12 @@ import {
14
14
  SecurityArchive,
15
15
  pRetry,
16
16
  usesNpmRegistry
17
- } from "./chunk-YTDABXPD.js";
17
+ } from "./chunk-AHLBPSGQ.js";
18
18
  import {
19
19
  Monorepo,
20
20
  PackageJson,
21
21
  minimatch
22
- } from "./chunk-TQQO2F56.js";
22
+ } from "./chunk-KURQHX54.js";
23
23
  import {
24
24
  asDepID,
25
25
  baseDepID,
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-6D3QAFNZ.js";
40
40
  import {
41
41
  userAgentHeaders
42
- } from "./chunk-GEQFMH5M.js";
42
+ } from "./chunk-M242QVJS.js";
43
43
  import {
44
44
  graphStep
45
45
  } from "./chunk-B6RIGNEO.js";
@@ -4296,6 +4296,9 @@ var Node = class _Node {
4296
4296
  case "registry":
4297
4297
  this.#registryNodeResolved(tuple);
4298
4298
  break;
4299
+ case "git":
4300
+ this.resolved = hydrateTuple(tuple, this.#name, this.#options).final.remoteURL ?? resolved;
4301
+ break;
4299
4302
  default:
4300
4303
  this.resolved = resolved;
4301
4304
  break;
@@ -5506,10 +5509,9 @@ var loadNodes = (graph, nodes, options, actual, throwOnMissingManifest) => {
5506
5509
  node.dev = dev2;
5507
5510
  node.optional = optional2;
5508
5511
  node.brotli = brotli;
5509
- node.integrity = integrity ?? referenceNode?.integrity;
5510
- const refResolved = referenceNode?.resolved;
5511
- const refResolvedUsable = !integrity || !refResolved || tarballFormat(refResolved) === "brotli" === brotli;
5512
- node.resolved = type2 === "remote" ? filepath : resolved ?? (refResolvedUsable ? refResolved : void 0);
5512
+ const ref = !!referenceNode?.brotli === brotli ? referenceNode : void 0;
5513
+ node.integrity = integrity ?? ref?.integrity;
5514
+ node.resolved = type2 === "remote" ? filepath : resolved ?? ref?.resolved;
5513
5515
  node.resolvedFromLockfile = !!(node.integrity && node.resolved);
5514
5516
  node.projectRoot = graph.projectRoot;
5515
5517
  if (!node.resolved) node.setResolved();
@@ -6761,14 +6763,19 @@ var id = async (state) => {
6761
6763
  if (!value) {
6762
6764
  throw error("Missing identifier name");
6763
6765
  }
6766
+ const unlinked = /* @__PURE__ */ new Set();
6764
6767
  for (const edge of state.partial.edges) {
6765
6768
  if (edge.name !== value) {
6766
6769
  state.partial.edges.delete(edge);
6767
- if (edge.to) {
6768
- state.partial.nodes.delete(edge.to);
6769
- }
6770
+ if (edge.to) unlinked.add(edge.to);
6770
6771
  }
6771
6772
  }
6773
+ for (const edge of state.partial.edges) {
6774
+ if (edge.to) unlinked.delete(edge.to);
6775
+ }
6776
+ for (const node of unlinked) {
6777
+ state.partial.nodes.delete(node);
6778
+ }
6772
6779
  for (const node of state.partial.nodes) {
6773
6780
  if (node.edgesIn.size === 0 && node.name !== value && state.partial.nodes.has(node)) {
6774
6781
  state.partial.nodes.delete(node);
@@ -9806,7 +9813,7 @@ var Query = class {
9806
9813
  };
9807
9814
 
9808
9815
  // ../../src/graph/src/skills/lazy.ts
9809
- var load3 = () => import("./skills-KA2VR5Q5.js");
9816
+ var load3 = () => import("./skills-7PYMTDER.js");
9810
9817
  var listSkills = async (o) => (await load3()).listSkills(o);
9811
9818
  var linkSkills = async (o) => (await load3()).linkSkills(o);
9812
9819
  var hasSkills = async (node) => isNode(node) && (await load3()).shipsSkills(node);
@@ -203,6 +203,7 @@ var del = (object, path) => {
203
203
  assertNotStringIndex(object, key);
204
204
  if (isLast(pathArray, index)) {
205
205
  if (Array.isArray(object)) {
206
+ if (typeof key !== "number") return false;
206
207
  object.splice(key, 1);
207
208
  } else {
208
209
  delete object[key];
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  Monorepo,
23
23
  PackageJson
24
- } from "./chunk-TQQO2F56.js";
24
+ } from "./chunk-KURQHX54.js";
25
25
  import {
26
26
  Spec
27
27
  } from "./chunk-6D3QAFNZ.js";
@@ -338,7 +338,7 @@ var PackageInfoClient = class {
338
338
  }
339
339
  async getRegistryClient() {
340
340
  if (this.#registryClient) return this.#registryClient;
341
- this.#registryClientPromise ??= import("./src-QO5G2S4O.js").then(({ RegistryClient }) => {
341
+ this.#registryClientPromise ??= import("./src-A5ZJNOHN.js").then(({ RegistryClient }) => {
342
342
  this.#registryClient = new RegistryClient(this.options);
343
343
  return this.#registryClient;
344
344
  });
@@ -426,9 +426,10 @@ var PackageInfoClient = class {
426
426
  fromLockfile = false
427
427
  } = options;
428
428
  const f = spec.final;
429
- const brotli = !!resolved && tarballFormat(resolved) === "brotli";
430
- const r = resolved && (integrity || brotli) ? {
431
- resolved,
429
+ const url = f.type === "git" && f.remoteURL && resolved && !/^https?:\/\//.test(resolved) ? f.remoteURL : resolved;
430
+ const brotli = !!url && tarballFormat(url) === "brotli";
431
+ const r = url && (integrity || brotli) ? {
432
+ resolved: url,
432
433
  integrity,
433
434
  spec,
434
435
  ...brotli && !integrity ? { digestRequired: true } : {}
@@ -471,11 +472,10 @@ var PackageInfoClient = class {
471
472
  const storeOn = f.type === "registry" && this.#storeLinker !== "unpack";
472
473
  const copy = this.#storeLinker === "copy";
473
474
  const clone2 = this.#storeLinker === "clone";
474
- const hex = !storeOn ? void 0 : r.integrity ? integrityHex(r.integrity) : integrityHex(
475
- (await this.getRegistryClient()).cachedIntegrity(
476
- r.resolved
477
- )
478
- );
475
+ const cachedIntegrity = storeOn && !r.integrity ? (await this.getRegistryClient()).cachedIntegrity(
476
+ r.resolved
477
+ ) : void 0;
478
+ const hex = !storeOn ? void 0 : r.integrity ? integrityHex(r.integrity) : integrityHex(cachedIntegrity);
479
479
  if (hex) {
480
480
  if (debug.enabled && !this.#storeHitRateLogged) {
481
481
  this.#storeHitRateLogged = true;
@@ -490,6 +490,7 @@ var PackageInfoClient = class {
490
490
  const { how, index } = linked;
491
491
  this.#storeHits[how]++;
492
492
  logRequest(r.resolved, how === "copy" ? "cache" : "store");
493
+ r.integrity ??= cachedIntegrity;
493
494
  return {
494
495
  ...r,
495
496
  manifest: index.manifest,
@@ -593,7 +594,7 @@ var PackageInfoClient = class {
593
594
  }
594
595
  case "remote": {
595
596
  const rc = await this.getRegistryClient();
596
- const { CacheEntry: Entry, cacheKey } = await import("./src-QO5G2S4O.js");
597
+ const { CacheEntry: Entry, cacheKey } = await import("./src-A5ZJNOHN.js");
597
598
  const key = cacheKey("GET", new URL(r.resolved));
598
599
  const unzipped = (entry) => {
599
600
  try {
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-SRWDPPLX.js";
16
16
  import {
17
17
  minimatch
18
- } from "./chunk-TQQO2F56.js";
18
+ } from "./chunk-KURQHX54.js";
19
19
  import {
20
20
  Spec
21
21
  } from "./chunk-6D3QAFNZ.js";
@@ -1865,7 +1865,12 @@ var require_ignore = __commonJS({
1865
1865
  // ../../src/cli-sdk/src/pack-tarball.ts
1866
1866
  var ssri = __toESM(require_lib(), 1);
1867
1867
  import assert from "node:assert";
1868
- import { existsSync, readFileSync, statSync } from "node:fs";
1868
+ import {
1869
+ existsSync,
1870
+ readdirSync,
1871
+ readFileSync,
1872
+ statSync
1873
+ } from "node:fs";
1869
1874
  import { join } from "node:path";
1870
1875
  var import_ignore = __toESM(require_ignore(), 1);
1871
1876
  var replaceWorkspaceAndCatalogSpecs = (manifest_, config) => {
@@ -2004,7 +2009,16 @@ var buildPackFilter = (manifest, packDir) => {
2004
2009
  }
2005
2010
  }
2006
2011
  }
2007
- return (path) => {
2012
+ const files = (manifestWithFiles.files ?? []).map((pattern) => pattern.replace(/^\.?\//, "").replace(/\/+$/, "")).filter(Boolean);
2013
+ const isReadableDir = (dir) => {
2014
+ try {
2015
+ readdirSync(join(packDir, dir));
2016
+ return true;
2017
+ } catch {
2018
+ return false;
2019
+ }
2020
+ };
2021
+ return (path, entry) => {
2008
2022
  const normalizedPath = path.replace(/^\.\//, "");
2009
2023
  if (path === "." || normalizedPath === "") {
2010
2024
  return true;
@@ -2025,30 +2039,16 @@ var buildPackFilter = (manifest, packDir) => {
2025
2039
  if (hasEmptyFilesField) {
2026
2040
  return false;
2027
2041
  }
2028
- if (hasFilesField && manifestWithFiles.files) {
2029
- return manifestWithFiles.files.some((pattern) => {
2030
- if (pattern.endsWith("/")) {
2031
- const dirName = pattern.slice(0, -1);
2032
- const globPattern = pattern.replace(/\/$/, "/**");
2033
- const matchesDir = normalizedPath === dirName;
2034
- const matchesContents = minimatch(
2035
- normalizedPath,
2036
- globPattern,
2037
- { dot: true }
2038
- );
2039
- return matchesDir || matchesContents;
2040
- }
2041
- const directMatch = minimatch(normalizedPath, pattern, {
2042
- dot: true
2043
- });
2044
- const isParentDir = pattern.includes("/") && pattern.startsWith(normalizedPath + "/");
2045
- const isChildOfPattern = minimatch(
2046
- normalizedPath,
2047
- pattern + "/**",
2048
- { dot: true }
2049
- );
2050
- return directMatch || isParentDir || isChildOfPattern;
2051
- });
2042
+ if (hasFilesField) {
2043
+ const isDir = "isDirectory" in entry && entry.isDirectory();
2044
+ return files.some(
2045
+ (pattern) => minimatch(normalizedPath, pattern, { dot: true }) || minimatch(normalizedPath, `${pattern}/**`, { dot: true })
2046
+ ) || isDir && files.some(
2047
+ (pattern) => minimatch(normalizedPath, pattern, {
2048
+ dot: true,
2049
+ partial: true
2050
+ })
2051
+ ) && isReadableDir(normalizedPath);
2052
2052
  }
2053
2053
  if (ig?.ignores(normalizedPath)) {
2054
2054
  return false;
@@ -115,6 +115,7 @@ var PackageJson = class {
115
115
  writeFileSync(filename, stringify(manifest, void 0, indent));
116
116
  this.#cache.set(dir, manifest);
117
117
  this.#pathCache.set(manifest, dir);
118
+ this.#errCache.delete(dir);
118
119
  } catch (err) {
119
120
  this.#cache.delete(dir);
120
121
  this.#pathCache.delete(manifest);
@@ -11,11 +11,11 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  stderr
14
- } from "./chunk-KVWGMSPW.js";
14
+ } from "./chunk-MSWOR3FV.js";
15
15
  import {
16
16
  migratableWSConfig,
17
17
  resolveWSConfig
18
- } from "./chunk-TQQO2F56.js";
18
+ } from "./chunk-KURQHX54.js";
19
19
  import {
20
20
  save
21
21
  } from "./chunk-HTOTG4TS.js";
@@ -14,7 +14,7 @@ var require = _vlt_createRequire(import.meta.filename);
14
14
  var package_default = {
15
15
  name: "@vltpkg/user-agent",
16
16
  description: "The User-Agent string that vlt sends with every outbound request",
17
- version: "1.6.0",
17
+ version: "1.6.1",
18
18
  repository: {
19
19
  type: "git",
20
20
  url: "git+https://github.com/vltpkg/vltpkg.git",
@@ -326,7 +326,15 @@ var getClient = () => {
326
326
  // Buffer up to 20 events and flush every 10 s — but we always
327
327
  // call shutdown at the end so this is just a safety net.
328
328
  flushAt: 20,
329
- flushInterval: 1e4
329
+ flushInterval: 1e4,
330
+ // one attempt, capped like flush(); failed sends resolve as 204
331
+ // so offline or erroring runs neither wait nor log
332
+ fetchRetryCount: 0,
333
+ requestTimeout: SHUTDOWN_TIMEOUT_MS,
334
+ fetch: async (url, init) => {
335
+ const res = await fetch(url, init).catch(() => void 0);
336
+ return res?.ok ? res : new Response(null, { status: 204 });
337
+ }
330
338
  });
331
339
  return _posthog;
332
340
  } catch {
@@ -0,0 +1,77 @@
1
+ var global = globalThis;
2
+ import {Buffer} from "node:buffer";
3
+ import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
4
+ globalThis.setTimeout = _vlt_setTimeout;
5
+ globalThis.clearTimeout = _vlt_clearTimeout;
6
+ globalThis.setImmediate = _vlt_setImmediate;
7
+ globalThis.clearImmediate = _vlt_clearImmediate;
8
+ globalThis.setInterval = _vlt_setInterval;
9
+ globalThis.clearInterval = _vlt_clearInterval;
10
+ import {createRequire as _vlt_createRequire} from "node:module";
11
+ var require = _vlt_createRequire(import.meta.filename);
12
+ import {
13
+ error
14
+ } from "./chunk-WZWDS3W4.js";
15
+ import {
16
+ __glob
17
+ } from "./chunk-PZLD7RTK.js";
18
+
19
+ // import("./commands/**/*.ts") in ../../src/cli-sdk/src/load-command.ts
20
+ var globImport_commands_ts = __glob({
21
+ "./commands/access.ts": () => import("./access-YSLEWR2C.js"),
22
+ "./commands/bugs.ts": () => import("./bugs-S6CRUEA2.js"),
23
+ "./commands/build.ts": () => import("./build-SG3KPX3W.js"),
24
+ "./commands/cache.ts": () => import("./cache-HA77ROM7.js"),
25
+ "./commands/ci.ts": () => import("./ci-GVLL72SS.js"),
26
+ "./commands/config.ts": () => import("./config-KH6AEMHI.js"),
27
+ "./commands/create.ts": () => import("./create-SKNEZEZY.js"),
28
+ "./commands/deprecate.ts": () => import("./deprecate-RFRLJZVL.js"),
29
+ "./commands/dist-tag.ts": () => import("./dist-tag-LVYOTJHJ.js"),
30
+ "./commands/docs.ts": () => import("./docs-INXRFEGY.js"),
31
+ "./commands/exec-cache.ts": () => import("./exec-cache-7GS4KLWJ.js"),
32
+ "./commands/exec-local.ts": () => import("./exec-local-RE4KVTMN.js"),
33
+ "./commands/exec.ts": () => import("./exec-5MA5XRPZ.js"),
34
+ "./commands/help.ts": () => import("./help-JHLP565L.js"),
35
+ "./commands/init.ts": () => import("./init-4UFHO67B.js"),
36
+ "./commands/install.ts": () => import("./install-Z33YVCDK.js"),
37
+ "./commands/install/reporter.ts": () => import("./reporter-SNSM2TDC.js"),
38
+ "./commands/list.ts": () => import("./list-XAMKR6TL.js"),
39
+ "./commands/login.ts": () => import("./login-6NXUO5FF.js"),
40
+ "./commands/logout.ts": () => import("./logout-6P7LWTAY.js"),
41
+ "./commands/outdated.ts": () => import("./outdated-YNUSWZJD.js"),
42
+ "./commands/pack.ts": () => import("./pack-LMQYH75V.js"),
43
+ "./commands/ping.ts": () => import("./ping-VLFZ3WCY.js"),
44
+ "./commands/pkg.ts": () => import("./pkg-JMPBHKSW.js"),
45
+ "./commands/profile.ts": () => import("./profile-PJJAA2YM.js"),
46
+ "./commands/publish.ts": () => import("./publish-33RFJ2HJ.js"),
47
+ "./commands/query.ts": () => import("./query-LUUOK57K.js"),
48
+ "./commands/registry.ts": () => import("./registry-ZGGWVLBM.js"),
49
+ "./commands/repo.ts": () => import("./repo-VLHLQP2S.js"),
50
+ "./commands/run-exec.ts": () => import("./run-exec-PHE44AWW.js"),
51
+ "./commands/run.ts": () => import("./run-USWK7R3N.js"),
52
+ "./commands/setup.ts": () => import("./setup-JMY47ERY.js"),
53
+ "./commands/skills.ts": () => import("./skills-YMMV6TMN.js"),
54
+ "./commands/token.ts": () => import("./token-YKHELNVQ.js"),
55
+ "./commands/uninstall.ts": () => import("./uninstall-Q46HWR5S.js"),
56
+ "./commands/unpublish.ts": () => import("./unpublish-LBANPSJ5.js"),
57
+ "./commands/update.ts": () => import("./update-B2EGLZHI.js"),
58
+ "./commands/version.ts": () => import("./version-IEOBL3NN.js"),
59
+ "./commands/view.ts": () => import("./view-JCA5VT6F.js"),
60
+ "./commands/whoami.ts": () => import("./whoami-OWJUPO3X.js")
61
+ });
62
+
63
+ // ../../src/cli-sdk/src/load-command.ts
64
+ var loadCommand = async (command) => {
65
+ try {
66
+ return await globImport_commands_ts(`./commands/${command}.ts`);
67
+ } catch (e) {
68
+ throw error("Could not load command", {
69
+ found: command,
70
+ cause: e
71
+ });
72
+ }
73
+ };
74
+
75
+ export {
76
+ loadCommand
77
+ };
@@ -34,7 +34,7 @@ var run = async (command) => {
34
34
  if (command) {
35
35
  process.argv.splice(2, 0, command);
36
36
  }
37
- const vlt = await import("./src-FUSTSM4J.js");
37
+ const vlt = await import("./src-2ZS4VHJP.js");
38
38
  await vlt.default();
39
39
  };
40
40
 
@@ -15,7 +15,7 @@ import {
15
15
  pairsToRecords,
16
16
  registrySelectionFields,
17
17
  registrySelectors
18
- } from "./chunk-LP3ORD3D.js";
18
+ } from "./chunk-AEVT3CHK.js";
19
19
  import {
20
20
  normalizeRegistryURL
21
21
  } from "./chunk-7M2VTFLP.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-QNHBAGXQ.js";
15
15
  import {
16
16
  userAgent
17
- } from "./chunk-GEQFMH5M.js";
17
+ } from "./chunk-M242QVJS.js";
18
18
  import {
19
19
  assertOk,
20
20
  registryErrorMessage,
@@ -13,7 +13,7 @@ import {
13
13
  defaultRegistryKey,
14
14
  getTokenByURL,
15
15
  registryKeys
16
- } from "./chunk-44AWMA4F.js";
16
+ } from "./chunk-Q2UEILN6.js";
17
17
 
18
18
  // ../../src/cli-sdk/src/query-auth.ts
19
19
  var createGetAuthHeader = (conf) => {