@vltpkg/cli-js 1.3.8 → 1.4.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 (87) hide show
  1. package/{access-WLKANIOE.js → access-422UGEWN.js} +8 -8
  2. package/{bugs-5Q3QSTWP.js → bugs-RED7Y33Q.js} +17 -17
  3. package/{build-XSFR63AW.js → build-IHMPBWRO.js} +9 -9
  4. package/{cache-UVPK5J5A.js → cache-FJP2RZJX.js} +31 -19
  5. package/cache-unzip-src-unzip.js +21 -1
  6. package/{chunk-IUL6MPP6.js → chunk-2AMOC4DN.js} +4 -4
  7. package/{chunk-BGA3WB7H.js → chunk-4UCADW6S.js} +5 -5
  8. package/{chunk-GZ5MYMBT.js → chunk-5IJTPZXP.js} +1 -1
  9. package/{chunk-43HNQWPQ.js → chunk-5RHABCYI.js} +76 -11
  10. package/{chunk-XCDLOQZZ.js → chunk-5TNXLRW2.js} +33 -20
  11. package/{chunk-IHXJVKAE.js → chunk-5Y4SYLJ2.js} +2 -1
  12. package/chunk-6IF3RJND.js +81 -0
  13. package/{chunk-3U6QWN62.js → chunk-7T3XAYP4.js} +1 -1
  14. package/{chunk-WHLYMMI2.js → chunk-ASLX43R3.js} +3 -3
  15. package/{chunk-OAP2ROTL.js → chunk-C23TDXRG.js} +1 -1
  16. package/{chunk-H77JYU7F.js → chunk-DNRR3XMG.js} +12 -3
  17. package/{chunk-IBGFQR23.js → chunk-FLH4YC6W.js} +21 -0
  18. package/{chunk-XDSZO74H.js → chunk-FZUYGJZU.js} +7 -7
  19. package/{chunk-PJJCFMLW.js → chunk-GIIAODRI.js} +4 -4
  20. package/{chunk-QNDM4DVO.js → chunk-HZXJ423P.js} +1 -1
  21. package/{chunk-CB65DPZ2.js → chunk-I7UMHYZX.js} +151 -27
  22. package/{chunk-6P5CFJR7.js → chunk-ISE4IRHF.js} +4 -4
  23. package/{chunk-TLY4VGMH.js → chunk-LHPEBLOU.js} +1 -1
  24. package/{chunk-EL4GVZK5.js → chunk-MKWPTN3C.js} +2 -2
  25. package/{chunk-5KOLUYXH.js → chunk-OAJ3PO3Z.js} +57 -11
  26. package/{chunk-NWHKSRO3.js → chunk-OVPHE4O7.js} +93 -10
  27. package/{chunk-WKA5UYNA.js → chunk-PHJJPY5G.js} +3 -3
  28. package/{chunk-SV4WK3KX.js → chunk-PLG3OYCX.js} +2 -2
  29. package/{chunk-KMOOTBHM.js → chunk-QCSUWACA.js} +1 -1
  30. package/{chunk-6D54UN4T.js → chunk-SR2VOY5J.js} +1 -1
  31. package/chunk-T6FBP4OU.js +76 -0
  32. package/{chunk-A2TSRXZD.js → chunk-THSYN5EK.js} +1 -1
  33. package/{chunk-DL3H4EMY.js → chunk-TO23PR7J.js} +22 -15
  34. package/{chunk-OWMR2EDW.js → chunk-TPRK6IDA.js} +1 -1
  35. package/chunk-UGCKF5ZE.js +57 -0
  36. package/{chunk-SE2FSMBR.js → chunk-WF6KLKRN.js} +26 -10
  37. package/{chunk-FIUUAQGC.js → chunk-X4FVR4R5.js} +23 -18
  38. package/{chunk-6BQKR2FM.js → chunk-ZJMJ7MCT.js} +1 -1
  39. package/{ci-EDRETPUF.js → ci-YSKNNO5M.js} +10 -10
  40. package/cli-package.json +1 -1
  41. package/{config-MVNXGEOQ.js → config-CSPCDMR3.js} +9 -8
  42. package/{config-OKBXU7TU.js → config-HO7GY3QT.js} +11 -10
  43. package/{create-R7BXYJSU.js → create-2TJT3AHJ.js} +19 -18
  44. package/{deprecate-YSUKBKQM.js → deprecate-7FRJI2RL.js} +11 -11
  45. package/{dist-tag-MIGYSR4F.js → dist-tag-WCFF5OEG.js} +8 -8
  46. package/{docs-4WVIN75H.js → docs-JMBPTU23.js} +17 -17
  47. package/{exec-IXHDQLAM.js → exec-FBOUKZZ2.js} +19 -18
  48. package/{exec-cache-EA7GHIK7.js → exec-cache-X3ZWM5S3.js} +16 -16
  49. package/{exec-local-GM4LH56M.js → exec-local-Y3KQC22N.js} +16 -15
  50. package/{help-TCXGBICU.js → help-PUKVH5X7.js} +4 -4
  51. package/{init-MWZDWQHM.js → init-GOKAQXXZ.js} +10 -10
  52. package/{install-HPI5HU3C.js → install-XFN4UFOC.js} +116 -16
  53. package/{list-2CX6REPJ.js → list-43JFFG5D.js} +19 -19
  54. package/{login-RAY23CVG.js → login-RSTZKNKN.js} +13 -12
  55. package/{logout-ICB5OMGY.js → logout-4576FFXZ.js} +8 -8
  56. package/{outdated-FYHPXRMT.js → outdated-ACQ5A2Y7.js} +15 -15
  57. package/{pack-E5MNPQXK.js → pack-QQVJ3G25.js} +15 -12
  58. package/package.json +1 -1
  59. package/{ping-REQ2KSAR.js → ping-QCDQQRO5.js} +8 -8
  60. package/{pkg-YB4GSRII.js → pkg-CSOJV7UC.js} +17 -12
  61. package/{profile-GKBW6GRI.js → profile-VL4HPW3N.js} +8 -8
  62. package/{publish-4ZQJYYLF.js → publish-2YBO6ZXE.js} +23 -18
  63. package/{query-SKXBF3MJ.js → query-IHHFMJRT.js} +19 -19
  64. package/{registry-MQJJCWJY.js → registry-W7BRZZZ2.js} +5 -5
  65. package/registry-client-src-revalidate.js +75 -9
  66. package/{repo-ACPTZI2C.js → repo-L3BXAAWS.js} +17 -17
  67. package/{reporter-4KK2JNGO.js → reporter-5NYOHBO7.js} +11 -10
  68. package/{run-YW3ITX2A.js → run-AMUUVLTI.js} +16 -15
  69. package/{run-exec-7VQX3OFG.js → run-exec-5W3XWQZA.js} +16 -15
  70. package/security-archive-src-update-expired.js +46 -12
  71. package/{setup-PLEKCMXN.js → setup-TFM4GJF7.js} +16 -15
  72. package/{src-XQ7KVUVN.js → src-4CYCUWZL.js} +29 -24
  73. package/{src-PXDFMQ6W.js → src-I3GMULFP.js} +4 -4
  74. package/{src-GP7VLT7P.js → src-LUTN2ODD.js} +58 -9
  75. package/{token-GB7RPE5J.js → token-OANOBE3G.js} +8 -8
  76. package/{uninstall-RLCECX37.js → uninstall-YXTQ4AIZ.js} +12 -12
  77. package/{unpublish-3ZXEAVHF.js → unpublish-SZXYMYIU.js} +8 -8
  78. package/{update-VDZP6EZN.js → update-FHLMWGIM.js} +16 -15
  79. package/{version-MRELJPOK.js → version-ZWFCTU5V.js} +16 -11
  80. package/{view-LCXMTGCJ.js → view-NFNJXMLV.js} +11 -11
  81. package/vlr.js +1 -1
  82. package/vlrx.js +1 -1
  83. package/vlt.js +1 -1
  84. package/vlx.js +1 -1
  85. package/vlxl.js +1 -1
  86. package/{whoami-PNRDBS45.js → whoami-O7GOSGCI.js} +8 -8
  87. package/chunk-4JAZZRKR.js +0 -76
@@ -19,15 +19,15 @@ import {
19
19
  pickManifest,
20
20
  resolve,
21
21
  revs
22
- } from "./chunk-CB65DPZ2.js";
22
+ } from "./chunk-I7UMHYZX.js";
23
23
  import {
24
24
  Spec
25
- } from "./chunk-GZ5MYMBT.js";
25
+ } from "./chunk-5IJTPZXP.js";
26
26
  import {
27
27
  registryErrorMessage,
28
28
  storeRoot,
29
29
  tokenRefusalAdvice
30
- } from "./chunk-6D54UN4T.js";
30
+ } from "./chunk-SR2VOY5J.js";
31
31
  import {
32
32
  logRequest
33
33
  } from "./chunk-U7TEQCBN.js";
@@ -39,7 +39,7 @@ import {
39
39
  brotliTarballUrl,
40
40
  integrityHex,
41
41
  tarballFormat
42
- } from "./chunk-IBGFQR23.js";
42
+ } from "./chunk-FLH4YC6W.js";
43
43
  import {
44
44
  error
45
45
  } from "./chunk-WZWDS3W4.js";
@@ -226,7 +226,12 @@ var isStableSelector = (f) => {
226
226
  if (!range) return false;
227
227
  return !range.isAny && !range.raw.includes("-");
228
228
  };
229
- var storeLinkers = /* @__PURE__ */ new Set(["auto", "hardlink", "copy"]);
229
+ var storeLinkers = /* @__PURE__ */ new Set([
230
+ "auto",
231
+ "hardlink",
232
+ "clone",
233
+ "copy"
234
+ ]);
230
235
  var storedIntegrity = (response) => !response.fromCache ? response.integrityActual : !response.contentType ? void 0 : response.integrity ?? (response.isGzip ? response.integrityActual : void 0);
231
236
  var PackageInfoClient = class {
232
237
  #registryClient;
@@ -243,18 +248,19 @@ var PackageInfoClient = class {
243
248
  #cachePath;
244
249
  #storeRoot;
245
250
  #storeLinker;
246
- #storeHits = { link: 0, copy: 0 };
251
+ #storeHits = { link: 0, clone: 0, copy: 0 };
247
252
  #storeMisses = 0;
248
253
  #storeHitRateLogged = false;
249
254
  #logStoreHitRate = () => {
250
- const { link, copy } = this.#storeHits;
251
- const n = Math.max(1, link + copy + this.#storeMisses);
255
+ const { link, clone: clone2, copy } = this.#storeHits;
256
+ const n = Math.max(1, link + clone2 + copy + this.#storeMisses);
252
257
  debug(
253
- "global store: linked=%d copied=%d missed=%d hit rate=%s%%",
258
+ "global store: linked=%d cloned=%d copied=%d missed=%d hit rate=%s%%",
254
259
  link,
260
+ clone2,
255
261
  copy,
256
262
  this.#storeMisses,
257
- ((link + copy) / n * 100).toFixed(1)
263
+ ((link + clone2 + copy) / n * 100).toFixed(1)
258
264
  );
259
265
  };
260
266
  // In-flight coalescing key is `${registry}${name}` — no representation
@@ -330,7 +336,7 @@ var PackageInfoClient = class {
330
336
  }
331
337
  async getRegistryClient() {
332
338
  if (this.#registryClient) return this.#registryClient;
333
- this.#registryClientPromise ??= import("./src-PXDFMQ6W.js").then(({ RegistryClient }) => {
339
+ this.#registryClientPromise ??= import("./src-I3GMULFP.js").then(({ RegistryClient }) => {
334
340
  this.#registryClient = new RegistryClient(this.options);
335
341
  return this.#registryClient;
336
342
  });
@@ -369,7 +375,7 @@ var PackageInfoClient = class {
369
375
  }
370
376
  async getTarPool() {
371
377
  if (this.#tarPool) return this.#tarPool;
372
- this.#tarPoolPromise ??= import("./src-GP7VLT7P.js").then(
378
+ this.#tarPoolPromise ??= import("./src-LUTN2ODD.js").then(
373
379
  ({ Pool }) => {
374
380
  this.#tarPool = new Pool();
375
381
  return this.#tarPool;
@@ -462,6 +468,7 @@ var PackageInfoClient = class {
462
468
  const format = tarballFormat(r.resolved);
463
469
  const storeOn = f.type === "registry" && this.#storeLinker !== "unpack";
464
470
  const copy = this.#storeLinker === "copy";
471
+ const clone2 = this.#storeLinker === "clone";
465
472
  const hex = !storeOn ? void 0 : r.integrity ? integrityHex(r.integrity) : integrityHex(
466
473
  (await this.getRegistryClient()).cachedIntegrity(
467
474
  r.resolved
@@ -475,12 +482,12 @@ var PackageInfoClient = class {
475
482
  const linked = await pool.linkFromStore(
476
483
  pathResolve(this.#storeRoot, hex),
477
484
  target,
478
- { copy }
485
+ { copy, clone: clone2 }
479
486
  );
480
487
  if (linked) {
481
488
  const { how, index } = linked;
482
489
  this.#storeHits[how]++;
483
- logRequest(r.resolved, how === "link" ? "store" : "cache");
490
+ logRequest(r.resolved, how === "copy" ? "cache" : "store");
484
491
  return {
485
492
  ...r,
486
493
  manifest: index.manifest,
@@ -584,7 +591,7 @@ var PackageInfoClient = class {
584
591
  }
585
592
  case "remote": {
586
593
  const rc = await this.getRegistryClient();
587
- const { CacheEntry: Entry, cacheKey } = await import("./src-PXDFMQ6W.js");
594
+ const { CacheEntry: Entry, cacheKey } = await import("./src-I3GMULFP.js");
588
595
  const key = cacheKey("GET", new URL(r.resolved));
589
596
  const unzipped = (entry) => {
590
597
  try {
@@ -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-XDSZO74H.js";
14
+ } from "./chunk-FZUYGJZU.js";
15
15
  import {
16
16
  urlOpen
17
17
  } from "./chunk-APMYKJI2.js";
@@ -0,0 +1,57 @@
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
+ graphRunSync
14
+ } from "./chunk-PLG3OYCX.js";
15
+
16
+ // ../../src/cli-sdk/src/sort-scope-locations.ts
17
+ import { resolve } from "node:path";
18
+ var sortScopeLocations = (locations, monorepo) => {
19
+ if (!monorepo || locations.length < 2) return locations;
20
+ const wsAt = (loc) => monorepo.get(resolve(monorepo.projectRoot, loc));
21
+ const slots = locations.map((loc) => [loc, wsAt(loc)]);
22
+ const locOf = /* @__PURE__ */ new Map();
23
+ for (const [loc, ws] of slots) {
24
+ if (ws && !locOf.has(ws)) locOf.set(ws, loc);
25
+ }
26
+ const [first, ...rest] = locOf.keys();
27
+ if (!first || !rest.length) return locations;
28
+ const getDeps = (ws) => {
29
+ const found = [];
30
+ const seen = /* @__PURE__ */ new Set([ws]);
31
+ const queue = monorepo.getDeps(ws);
32
+ for (const dep of queue) {
33
+ if (seen.has(dep)) continue;
34
+ seen.add(dep);
35
+ if (locOf.has(dep)) found.push(dep);
36
+ else queue.push(...monorepo.getDeps(dep));
37
+ }
38
+ return found;
39
+ };
40
+ const sorted = graphRunSync({
41
+ graph: [first, ...rest],
42
+ getDeps,
43
+ visit: () => {
44
+ }
45
+ }).keys();
46
+ const placed = /* @__PURE__ */ new Set();
47
+ return slots.map(([loc, ws]) => {
48
+ if (!ws || placed.has(ws)) return loc;
49
+ placed.add(ws);
50
+ const next = sorted.next().value;
51
+ return (next && locOf.get(next)) ?? loc;
52
+ });
53
+ };
54
+
55
+ export {
56
+ sortScopeLocations
57
+ };
@@ -1168,6 +1168,7 @@ var isRecordField = (s) => recordFields.includes(s);
1168
1168
  var storeLinkers = [
1169
1169
  "auto",
1170
1170
  "hardlink",
1171
+ "clone",
1171
1172
  "copy",
1172
1173
  "unpack"
1173
1174
  ];
@@ -1275,8 +1276,11 @@ var definition = j2.heading("Configuration").description(
1275
1276
 
1276
1277
  There is **no** built-in \`npm\` registry URL; the \`npm\`
1277
1278
  alias must be configured (e.g. via \`vlt setup\`) before it
1278
- can be used. The \`gh\` and \`jsr\` aliases have built-in
1279
- defaults that can be overridden here.
1279
+ can be used. The \`gh\` alias has a built-in default
1280
+ that can be overridden here. A name used by
1281
+ \`--jsr-registries\` or \`--git-hosts\` (e.g. \`jsr\`,
1282
+ \`github\`), or a built-in protocol (e.g. \`file\`), is
1283
+ an error.
1280
1284
 
1281
1285
  Aliases given on the command line or in
1282
1286
  \`VLT_REGISTRIES\` (newline-delimited) merge with the
@@ -1365,28 +1369,35 @@ var definition = j2.heading("Configuration").description(
1365
1369
  default: cacheDir
1366
1370
  },
1367
1371
  "store-linker": {
1368
- hint: "auto | hardlink | copy | unpack",
1372
+ hint: "auto | hardlink | clone | copy | unpack",
1369
1373
  description: `How packages are placed in \`node_modules\`. Every
1370
1374
  linker but \`unpack\` fills a global store under
1371
1375
  \`cache\` in the background, then places packages
1372
1376
  from it.
1373
1377
 
1374
1378
  - auto: Default. On Linux, hardlink from the global
1375
- store, copying any file that cannot be linked.
1376
- Elsewhere, same as \`unpack\`: a hardlink is the
1377
- slowest way to place a file on APFS, so macOS and
1378
- Windows unpack by default.
1379
+ store, copying any file that cannot be linked. On
1380
+ macOS, clone from it, on a Node with \`node:ffi\`
1381
+ (26.1 and later, and \`--allow-ffi\` under
1382
+ \`--permission\`); a hardlink is the slowest way
1383
+ to place a file on APFS, so macOS without it, and
1384
+ Windows, unpack by default.
1379
1385
  - hardlink: Hardlink from the global store on every
1380
1386
  platform.
1387
+ - clone: Clone each package directory from the
1388
+ global store copy-on-write (\`clonefile\`, macOS
1389
+ on APFS). Files share storage with the store
1390
+ until edited, so editing in place is safe.
1391
+ Unpacks where cloning fails.
1381
1392
  - copy: Copy from the global store. Use this when
1382
1393
  editing files in \`node_modules\` in place, since
1383
1394
  a hardlink shares its content with every project.
1384
1395
  - unpack: Unpack each package tarball, skipping the
1385
1396
  global store.
1386
1397
 
1387
- A package is copied right before its install
1388
- scripts run, so they don't change its files in the
1389
- store.
1398
+ A hardlinked package is copied right before its
1399
+ install scripts run, so they don't change its files
1400
+ in the store; a cloned one needs no copy.
1390
1401
  An invalid \`VLT_STORE_LINKER\` warns and uses
1391
1402
  \`unpack\`.`,
1392
1403
  validOptions: storeLinkers,
@@ -1735,6 +1746,11 @@ var definition = j2.heading("Configuration").description(
1735
1746
  devDependencies or optionalDependencies, but you want to
1736
1747
  move it to be a non-optional production dependency.`
1737
1748
  },
1749
+ "save-types": {
1750
+ description: `Also save the matching \`@types/*\` package as a
1751
+ devDependency for each added registry package that
1752
+ ships no TypeScript types of its own.`
1753
+ },
1738
1754
  "save-config": {
1739
1755
  description: `Save the registry and git host options given on the
1740
1756
  command line or via \`VLT_*\` env (\`--registry\`,
@@ -9,17 +9,20 @@ globalThis.setInterval = _vlt_setInterval;
9
9
  globalThis.clearInterval = _vlt_clearInterval;
10
10
  import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
+ import {
13
+ sortScopeLocations
14
+ } from "./chunk-UGCKF5ZE.js";
12
15
  import {
13
16
  createDiffFilesProvider
14
17
  } from "./chunk-RIYFGX27.js";
15
18
  import {
16
19
  createHostContextsMap
17
- } from "./chunk-WHLYMMI2.js";
20
+ } from "./chunk-ASLX43R3.js";
18
21
  import {
19
22
  stderr,
20
23
  stdout,
21
24
  styleTextStdout
22
- } from "./chunk-XDSZO74H.js";
25
+ } from "./chunk-FZUYGJZU.js";
23
26
  import {
24
27
  require_emoji_regex
25
28
  } from "./chunk-VTEFO2FT.js";
@@ -27,13 +30,13 @@ import {
27
30
  Query,
28
31
  actual,
29
32
  isRunResult
30
- } from "./chunk-NWHKSRO3.js";
33
+ } from "./chunk-OVPHE4O7.js";
31
34
  import {
32
35
  Monorepo
33
- } from "./chunk-CB65DPZ2.js";
36
+ } from "./chunk-I7UMHYZX.js";
34
37
  import {
35
38
  isErrorWithCause
36
- } from "./chunk-IBGFQR23.js";
39
+ } from "./chunk-FLH4YC6W.js";
37
40
  import {
38
41
  error
39
42
  } from "./chunk-WZWDS3W4.js";
@@ -1046,11 +1049,13 @@ var ExecCommand = class {
1046
1049
  this.projectRoot
1047
1050
  );
1048
1051
  let graph;
1052
+ let monorepo;
1049
1053
  if (mainManifest) {
1054
+ monorepo = Monorepo.load(this.projectRoot);
1050
1055
  graph = actual.load({
1051
1056
  ...conf.options,
1052
1057
  mainManifest,
1053
- monorepo: Monorepo.load(this.projectRoot),
1058
+ monorepo,
1054
1059
  loadManifests: false
1055
1060
  });
1056
1061
  }
@@ -1068,7 +1073,7 @@ var ExecCommand = class {
1068
1073
  const { nodes } = await query.search(queryString, {
1069
1074
  signal: new AbortController().signal
1070
1075
  });
1071
- this.#nodes = [];
1076
+ const locations = [];
1072
1077
  for (const node of nodes) {
1073
1078
  const { location } = node.toJSON();
1074
1079
  assert(
@@ -1077,8 +1082,9 @@ var ExecCommand = class {
1077
1082
  found: node
1078
1083
  })
1079
1084
  );
1080
- this.#nodes.push(location);
1085
+ locations.push(location);
1081
1086
  }
1087
+ this.#nodes = sortScopeLocations(locations, monorepo);
1082
1088
  } else if (paths?.length || groups?.length || recursive) {
1083
1089
  this.#defaultIgnoreMissing = true;
1084
1090
  this.#monorepo = Monorepo.load(this.projectRoot, {
@@ -1110,16 +1116,15 @@ var ExecCommand = class {
1110
1116
  return this.noArgsMulti();
1111
1117
  }
1112
1118
  let failed = false;
1113
- const runInDir = async (cwd, label) => {
1114
- const result = await this.bg(this.bgArg(cwd)).catch(
1115
- (er) => {
1116
- if (isErrorWithCause(er) && isRunResult(er.cause)) {
1117
- this.printResult(label, er.cause);
1118
- }
1119
- failed = true;
1120
- throw er;
1119
+ const runInDir = async (cwd, label, signal) => {
1120
+ const arg = { ...this.bgArg(cwd), signal };
1121
+ const result = await this.bg(arg).catch((er) => {
1122
+ if (isErrorWithCause(er) && isRunResult(er.cause)) {
1123
+ this.printResult(label, er.cause);
1121
1124
  }
1122
- );
1125
+ failed = true;
1126
+ throw er;
1127
+ });
1123
1128
  if (!result.command) return null;
1124
1129
  if (!failed) this.printResult(label, result);
1125
1130
  return result;
@@ -1132,7 +1137,7 @@ var ExecCommand = class {
1132
1137
  }
1133
1138
  } else if (this.#monorepo) {
1134
1139
  const wsResultMap = await this.#monorepo.run(
1135
- (ws) => runInDir(ws.fullpath, ws.path)
1140
+ (ws, signal) => runInDir(ws.fullpath, ws.path, signal)
1136
1141
  );
1137
1142
  for (const [ws, result] of wsResultMap) {
1138
1143
  if (result) resultMap.set(ws.path, result);
@@ -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.3.8",
17
+ version: "1.4.0",
18
18
  repository: {
19
19
  type: "git",
20
20
  url: "git+https://github.com/vltpkg/vltpkg.git",
@@ -11,25 +11,25 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  install
14
- } from "./chunk-NWHKSRO3.js";
15
- import "./chunk-XCDLOQZZ.js";
14
+ } from "./chunk-OVPHE4O7.js";
15
+ import "./chunk-5TNXLRW2.js";
16
16
  import {
17
17
  commandUsage
18
- } from "./chunk-TLY4VGMH.js";
19
- import "./chunk-CB65DPZ2.js";
18
+ } from "./chunk-LHPEBLOU.js";
19
+ import "./chunk-I7UMHYZX.js";
20
20
  import {
21
21
  lazyView
22
22
  } from "./chunk-4KCU2KZL.js";
23
- import "./chunk-SV4WK3KX.js";
24
- import "./chunk-GZ5MYMBT.js";
25
- import "./chunk-SE2FSMBR.js";
23
+ import "./chunk-PLG3OYCX.js";
24
+ import "./chunk-5IJTPZXP.js";
25
+ import "./chunk-WF6KLKRN.js";
26
26
  import "./chunk-HTOTG4TS.js";
27
- import "./chunk-6BQKR2FM.js";
27
+ import "./chunk-ZJMJ7MCT.js";
28
28
  import "./chunk-U7TEQCBN.js";
29
29
  import "./chunk-XNLSTHDK.js";
30
30
  import "./chunk-PDWPFR5T.js";
31
31
  import "./chunk-Y5PA7DVK.js";
32
- import "./chunk-IBGFQR23.js";
32
+ import "./chunk-FLH4YC6W.js";
33
33
  import "./chunk-WZWDS3W4.js";
34
34
  import "./chunk-PZLD7RTK.js";
35
35
 
@@ -63,7 +63,7 @@ var usage = () => commandUsage({
63
63
  var views = {
64
64
  json: (i) => i.graph.toJSON(),
65
65
  human: lazyView(
66
- async () => (await import("./reporter-4KK2JNGO.js")).InstallReporter
66
+ async () => (await import("./reporter-5NYOHBO7.js")).InstallReporter
67
67
  )
68
68
  };
69
69
  var command = async (conf) => {
package/cli-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/cli-sdk",
3
3
  "description": "The source for the vlt CLI",
4
- "version": "1.3.8",
4
+ "version": "1.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -16,24 +16,25 @@ import {
16
16
  kCustomInspect,
17
17
  pairsToRecords,
18
18
  recordsToPairs
19
- } from "./chunk-43HNQWPQ.js";
20
- import "./chunk-DL3H4EMY.js";
19
+ } from "./chunk-5RHABCYI.js";
20
+ import "./chunk-TO23PR7J.js";
21
21
  import "./chunk-SRWDPPLX.js";
22
- import "./chunk-CB65DPZ2.js";
23
- import "./chunk-SV4WK3KX.js";
24
- import "./chunk-GZ5MYMBT.js";
22
+ import "./chunk-I7UMHYZX.js";
23
+ import "./chunk-PLG3OYCX.js";
24
+ import "./chunk-5IJTPZXP.js";
25
25
  import {
26
26
  commands,
27
27
  definition,
28
28
  isRecordField,
29
29
  recordFields
30
- } from "./chunk-SE2FSMBR.js";
30
+ } from "./chunk-WF6KLKRN.js";
31
31
  import "./chunk-HTOTG4TS.js";
32
- import "./chunk-6D54UN4T.js";
32
+ import "./chunk-SR2VOY5J.js";
33
33
  import "./chunk-U7TEQCBN.js";
34
34
  import "./chunk-XNLSTHDK.js";
35
+ import "./chunk-6IF3RJND.js";
35
36
  import "./chunk-Y5PA7DVK.js";
36
- import "./chunk-IBGFQR23.js";
37
+ import "./chunk-FLH4YC6W.js";
37
38
  import "./chunk-WZWDS3W4.js";
38
39
  import "./chunk-PZLD7RTK.js";
39
40
  export {
@@ -15,34 +15,35 @@ import {
15
15
  } from "./chunk-DBANBIL2.js";
16
16
  import {
17
17
  asRootError
18
- } from "./chunk-IHXJVKAE.js";
18
+ } from "./chunk-5Y4SYLJ2.js";
19
19
  import {
20
20
  pairsToRecords,
21
21
  recordsToPairs
22
- } from "./chunk-43HNQWPQ.js";
23
- import "./chunk-DL3H4EMY.js";
22
+ } from "./chunk-5RHABCYI.js";
23
+ import "./chunk-TO23PR7J.js";
24
24
  import "./chunk-SRWDPPLX.js";
25
25
  import {
26
26
  commandUsage
27
- } from "./chunk-TLY4VGMH.js";
28
- import "./chunk-CB65DPZ2.js";
29
- import "./chunk-SV4WK3KX.js";
30
- import "./chunk-GZ5MYMBT.js";
27
+ } from "./chunk-LHPEBLOU.js";
28
+ import "./chunk-I7UMHYZX.js";
29
+ import "./chunk-PLG3OYCX.js";
30
+ import "./chunk-5IJTPZXP.js";
31
31
  import {
32
32
  getSortedKeys,
33
33
  isRecordField
34
- } from "./chunk-SE2FSMBR.js";
34
+ } from "./chunk-WF6KLKRN.js";
35
35
  import {
36
36
  find,
37
37
  load
38
38
  } from "./chunk-HTOTG4TS.js";
39
- import "./chunk-6D54UN4T.js";
39
+ import "./chunk-SR2VOY5J.js";
40
40
  import "./chunk-U7TEQCBN.js";
41
41
  import "./chunk-XNLSTHDK.js";
42
+ import "./chunk-6IF3RJND.js";
42
43
  import "./chunk-Y5PA7DVK.js";
43
44
  import {
44
45
  isObject
45
- } from "./chunk-IBGFQR23.js";
46
+ } from "./chunk-FLH4YC6W.js";
46
47
  import {
47
48
  error
48
49
  } from "./chunk-WZWDS3W4.js";
@@ -11,45 +11,46 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  vlxResolve
14
- } from "./chunk-BGA3WB7H.js";
14
+ } from "./chunk-4UCADW6S.js";
15
15
  import {
16
16
  ExecCommand,
17
17
  views
18
- } from "./chunk-FIUUAQGC.js";
18
+ } from "./chunk-X4FVR4R5.js";
19
+ import "./chunk-UGCKF5ZE.js";
19
20
  import "./chunk-RIYFGX27.js";
20
- import "./chunk-WHLYMMI2.js";
21
+ import "./chunk-ASLX43R3.js";
21
22
  import {
22
23
  styleTextStdout
23
- } from "./chunk-XDSZO74H.js";
24
- import "./chunk-KMOOTBHM.js";
24
+ } from "./chunk-FZUYGJZU.js";
25
+ import "./chunk-QCSUWACA.js";
25
26
  import "./chunk-G2YT2GWF.js";
26
- import "./chunk-IHXJVKAE.js";
27
+ import "./chunk-5Y4SYLJ2.js";
27
28
  import "./chunk-VTEFO2FT.js";
28
- import "./chunk-DL3H4EMY.js";
29
+ import "./chunk-TO23PR7J.js";
29
30
  import "./chunk-SRWDPPLX.js";
30
31
  import "./chunk-WGDTG44V.js";
31
- import "./chunk-A2TSRXZD.js";
32
+ import "./chunk-THSYN5EK.js";
32
33
  import {
33
34
  exec,
34
35
  execFG
35
- } from "./chunk-NWHKSRO3.js";
36
- import "./chunk-XCDLOQZZ.js";
36
+ } from "./chunk-OVPHE4O7.js";
37
+ import "./chunk-5TNXLRW2.js";
37
38
  import {
38
39
  commandUsage
39
- } from "./chunk-TLY4VGMH.js";
40
- import "./chunk-CB65DPZ2.js";
40
+ } from "./chunk-LHPEBLOU.js";
41
+ import "./chunk-I7UMHYZX.js";
41
42
  import "./chunk-4KCU2KZL.js";
42
- import "./chunk-SV4WK3KX.js";
43
- import "./chunk-GZ5MYMBT.js";
44
- import "./chunk-SE2FSMBR.js";
43
+ import "./chunk-PLG3OYCX.js";
44
+ import "./chunk-5IJTPZXP.js";
45
+ import "./chunk-WF6KLKRN.js";
45
46
  import "./chunk-HTOTG4TS.js";
46
- import "./chunk-6D54UN4T.js";
47
- import "./chunk-6BQKR2FM.js";
47
+ import "./chunk-SR2VOY5J.js";
48
+ import "./chunk-ZJMJ7MCT.js";
48
49
  import "./chunk-U7TEQCBN.js";
49
50
  import "./chunk-XNLSTHDK.js";
50
51
  import "./chunk-PDWPFR5T.js";
51
52
  import "./chunk-Y5PA7DVK.js";
52
- import "./chunk-IBGFQR23.js";
53
+ import "./chunk-FLH4YC6W.js";
53
54
  import "./chunk-WZWDS3W4.js";
54
55
  import "./chunk-PZLD7RTK.js";
55
56
 
@@ -11,37 +11,37 @@ 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-DL3H4EMY.js";
14
+ } from "./chunk-TO23PR7J.js";
15
15
  import "./chunk-SRWDPPLX.js";
16
16
  import {
17
17
  resolveRegistry
18
- } from "./chunk-A2TSRXZD.js";
18
+ } from "./chunk-THSYN5EK.js";
19
19
  import {
20
20
  commandUsage
21
- } from "./chunk-TLY4VGMH.js";
22
- import "./chunk-CB65DPZ2.js";
23
- import "./chunk-SV4WK3KX.js";
21
+ } from "./chunk-LHPEBLOU.js";
22
+ import "./chunk-I7UMHYZX.js";
23
+ import "./chunk-PLG3OYCX.js";
24
24
  import {
25
25
  Spec
26
- } from "./chunk-GZ5MYMBT.js";
27
- import "./chunk-SE2FSMBR.js";
26
+ } from "./chunk-5IJTPZXP.js";
27
+ import "./chunk-WF6KLKRN.js";
28
28
  import "./chunk-HTOTG4TS.js";
29
29
  import {
30
30
  RegistryClient
31
- } from "./chunk-5KOLUYXH.js";
31
+ } from "./chunk-OAJ3PO3Z.js";
32
32
  import "./chunk-APMYKJI2.js";
33
33
  import {
34
34
  assertOk,
35
35
  requestError
36
- } from "./chunk-6D54UN4T.js";
37
- import "./chunk-6BQKR2FM.js";
36
+ } from "./chunk-SR2VOY5J.js";
37
+ import "./chunk-ZJMJ7MCT.js";
38
38
  import "./chunk-U7TEQCBN.js";
39
39
  import "./chunk-XNLSTHDK.js";
40
40
  import "./chunk-PDWPFR5T.js";
41
41
  import "./chunk-Y5PA7DVK.js";
42
42
  import {
43
43
  satisfies
44
- } from "./chunk-IBGFQR23.js";
44
+ } from "./chunk-FLH4YC6W.js";
45
45
  import {
46
46
  error
47
47
  } from "./chunk-WZWDS3W4.js";
@@ -11,27 +11,27 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  resolveRegistry
14
- } from "./chunk-A2TSRXZD.js";
14
+ } from "./chunk-THSYN5EK.js";
15
15
  import {
16
16
  commandUsage
17
- } from "./chunk-TLY4VGMH.js";
17
+ } from "./chunk-LHPEBLOU.js";
18
18
  import {
19
19
  Spec
20
- } from "./chunk-GZ5MYMBT.js";
21
- import "./chunk-SE2FSMBR.js";
20
+ } from "./chunk-5IJTPZXP.js";
21
+ import "./chunk-WF6KLKRN.js";
22
22
  import {
23
23
  RegistryClient
24
- } from "./chunk-5KOLUYXH.js";
24
+ } from "./chunk-OAJ3PO3Z.js";
25
25
  import "./chunk-APMYKJI2.js";
26
26
  import {
27
27
  assertOk
28
- } from "./chunk-6D54UN4T.js";
29
- import "./chunk-6BQKR2FM.js";
28
+ } from "./chunk-SR2VOY5J.js";
29
+ import "./chunk-ZJMJ7MCT.js";
30
30
  import "./chunk-U7TEQCBN.js";
31
31
  import "./chunk-XNLSTHDK.js";
32
32
  import "./chunk-PDWPFR5T.js";
33
33
  import "./chunk-Y5PA7DVK.js";
34
- import "./chunk-IBGFQR23.js";
34
+ import "./chunk-FLH4YC6W.js";
35
35
  import {
36
36
  error
37
37
  } from "./chunk-WZWDS3W4.js";