@vltpkg/cli-js 1.0.0-rc.32 → 1.0.0-rc.34

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 (85) hide show
  1. package/{access-SQZRJLJA.js → access-SXQICNAN.js} +23 -12
  2. package/{bugs-BMZ5UERM.js → bugs-OOPMFRCI.js} +19 -17
  3. package/{build-LGQI6OGM.js → build-HDXI5OA7.js} +13 -9
  4. package/{cache-JWHNATAX.js → cache-RW4Y4XNQ.js} +19 -14
  5. package/cache-unzip-src-unzip.js +434 -428
  6. package/{chunk-6YXVQ5HC.js → chunk-2PLIV3N3.js} +1 -27
  7. package/{chunk-G6PG3AGN.js → chunk-3SQ5Y324.js} +11 -8
  8. package/{chunk-ZUP6UTME.js → chunk-4RZDJQ5U.js} +42 -61
  9. package/{chunk-M2WD7IBO.js → chunk-4ZXA6RLP.js} +1 -1
  10. package/{chunk-R44FR7BY.js → chunk-7NHXV6AH.js} +439 -433
  11. package/{chunk-SIXXDCBI.js → chunk-CCQYIYTA.js} +7 -7
  12. package/{chunk-FXDRM4ZO.js → chunk-CLVRCGOZ.js} +247 -235
  13. package/{chunk-YCQTLBWF.js → chunk-CNSTFT7U.js} +1 -1
  14. package/{chunk-7XE7OES7.js → chunk-D5CP6O6G.js} +3 -3
  15. package/{chunk-YQXDHMHG.js → chunk-E5YE7UTZ.js} +3167 -2991
  16. package/chunk-E74WGW5C.js +49 -0
  17. package/{chunk-DFNHGGGV.js → chunk-EFWPI6IY.js} +1 -1
  18. package/{chunk-5UXEBLLT.js → chunk-EHEVBLDB.js} +68 -7
  19. package/{chunk-JBVLIV37.js → chunk-EQ633HIM.js} +14 -13
  20. package/{chunk-DM3WGEVB.js → chunk-F2FKLPZD.js} +7 -7
  21. package/chunk-FAG776ZD.js +137 -0
  22. package/{chunk-HQ4US6G3.js → chunk-FWKQ7YDF.js} +1049 -980
  23. package/chunk-HB7CKTYO.js +75 -0
  24. package/{chunk-KRGA5VLT.js → chunk-ICJRCXSG.js} +31 -27
  25. package/{chunk-FBTBHRPG.js → chunk-LCDBW6IT.js} +1 -1
  26. package/{chunk-IAKUGHGT.js → chunk-MT76WHSM.js} +1 -1
  27. package/{chunk-3TVABXAG.js → chunk-MU7Y4R5E.js} +3 -3
  28. package/{chunk-JKAZKVQU.js → chunk-PW6S6AIO.js} +15 -11
  29. package/{chunk-DI2CYYXF.js → chunk-U6DM3ROE.js} +706 -442
  30. package/chunk-UBLFPJHV.js +40 -0
  31. package/{chunk-SDBTQF2Y.js → chunk-UCD3RJYG.js} +5 -5
  32. package/{chunk-XFQ2EH5D.js → chunk-VM2RMMY4.js} +3 -3
  33. package/{chunk-DIKKTUBV.js → chunk-VZ7UNZHR.js} +3 -3
  34. package/{chunk-2V4AQPBR.js → chunk-WP6CYBPM.js} +81 -46
  35. package/{chunk-LEX7YPHR.js → chunk-WXMYKCQW.js} +118 -92
  36. package/{chunk-LRPTCGTW.js → chunk-XA47WS4N.js} +11 -15
  37. package/{chunk-NLFBANVO.js → chunk-Y7CQIZ7Y.js} +106 -150
  38. package/{ci-FQJANSQW.js → ci-MTYU2K2A.js} +14 -10
  39. package/cli-package.json +6 -2
  40. package/{config-4KQTTXJH.js → config-6NXV2BXW.js} +15 -13
  41. package/{config-LRL3N7TN.js → config-TVAXCTQO.js} +13 -11
  42. package/{create-KN6AXEA6.js → create-LXI5DCDW.js} +24 -19
  43. package/{deprecate-P26WHVFB.js → deprecate-2AQBL5XT.js} +22 -14
  44. package/{devtools-6NFQDW4L.js → devtools-HGLF4KAO.js} +82 -28
  45. package/{dist-tag-FA2BT7SA.js → dist-tag-BFSYLRIH.js} +16 -9
  46. package/{docs-OAPIY4SC.js → docs-ADPJ4B4C.js} +19 -17
  47. package/{exec-CVZGHJZS.js → exec-GMS54RAC.js} +24 -19
  48. package/{exec-cache-3AHODVRN.js → exec-cache-R5LVZL5Z.js} +22 -17
  49. package/{exec-local-I4OJX76E.js → exec-local-TVCLZGIM.js} +17 -14
  50. package/{help-QFIQSPNS.js → help-6CECUD6C.js} +5 -4
  51. package/{init-QLADIAP5.js → init-XXFLGYVP.js} +12 -10
  52. package/{install-B7CU2BLC.js → install-6KMXYSF5.js} +27 -12
  53. package/{list-OTFV3LOM.js → list-RUO3SUKY.js} +20 -15
  54. package/{login-LG2ZOIDQ.js → login-6I2CGO7I.js} +23 -9
  55. package/{logout-KUI773AM.js → logout-JTU4BJKH.js} +19 -8
  56. package/{pack-C55TTBIQ.js → pack-NCWH2TUA.js} +17 -13
  57. package/package.json +8 -1
  58. package/{ping-VNUOC26G.js → ping-4MEAC2WD.js} +17 -10
  59. package/{pkg-H4RJEBK5.js → pkg-ENSKG6G7.js} +13 -11
  60. package/{profile-DIJ5JUSE.js → profile-62YHNFSO.js} +16 -8
  61. package/{publish-XF2TRBPH.js → publish-PPY724N2.js} +58 -23
  62. package/{query-BGP5JMJ7.js → query-NLWXKOOT.js} +61 -15
  63. package/registry-QGI44LG4.js +117 -0
  64. package/registry-client-package.json +6 -2
  65. package/registry-client-src-revalidate.js +1245 -977
  66. package/{repo-NCEHK7KB.js → repo-BFRAXIVU.js} +19 -17
  67. package/{reporter-OB6SNHOZ.js → reporter-2XBYWAVU.js} +3 -2
  68. package/{run-ZNJJYEJF.js → run-7O65747G.js} +17 -14
  69. package/{run-exec-F5OV7MVN.js → run-exec-2OYWHL6K.js} +19 -14
  70. package/security-archive-src-update-expired.js +16 -11
  71. package/setup-MMIDAIJI.js +181 -0
  72. package/{src-M3WI7TSB.js → src-OK3KHDYR.js} +25 -17
  73. package/{token-KXCVRJGF.js → token-VLVXUW54.js} +20 -9
  74. package/{uninstall-33SUWR6K.js → uninstall-TAG6QIAG.js} +15 -11
  75. package/{unpublish-7AZPBZF2.js → unpublish-Y4L5J2IA.js} +17 -9
  76. package/{update-2EQF6IKZ.js → update-RYH4RKBS.js} +14 -10
  77. package/{version-HFYI3SEX.js → version-COHB32ON.js} +12 -10
  78. package/{view-C5OT36OB.js → view-P7U4MF43.js} +18 -14
  79. package/vlr.js +1 -1
  80. package/vlrx.js +1 -1
  81. package/vlt.js +1 -1
  82. package/vlx.js +1 -1
  83. package/vlxl.js +1 -1
  84. package/{whoami-KKFV3XR6.js → whoami-47MVFMZC.js} +19 -8
  85. package/chunk-FXIBCUIM.js +0 -73
@@ -9,16 +9,22 @@ 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
+ resolveRegistry
14
+ } from "./chunk-FAG776ZD.js";
12
15
  import {
13
16
  commandUsage
14
- } from "./chunk-FBTBHRPG.js";
17
+ } from "./chunk-LCDBW6IT.js";
15
18
  import {
16
19
  RegistryClient
17
- } from "./chunk-DI2CYYXF.js";
18
- import "./chunk-YCQTLBWF.js";
19
- import "./chunk-R44FR7BY.js";
20
- import "./chunk-2V4AQPBR.js";
21
- import "./chunk-6YXVQ5HC.js";
20
+ } from "./chunk-U6DM3ROE.js";
21
+ import "./chunk-CNSTFT7U.js";
22
+ import "./chunk-7NHXV6AH.js";
23
+ import "./chunk-PW6S6AIO.js";
24
+ import "./chunk-E74WGW5C.js";
25
+ import "./chunk-WP6CYBPM.js";
26
+ import "./chunk-UBLFPJHV.js";
27
+ import "./chunk-2PLIV3N3.js";
22
28
  import "./chunk-XNLSTHDK.js";
23
29
  import {
24
30
  error
@@ -26,11 +32,15 @@ import {
26
32
  import "./chunk-PZLD7RTK.js";
27
33
 
28
34
  // ../../src/cli-sdk/src/commands/access.ts
35
+ var needsRegistry = true;
29
36
  var usage = () => commandUsage({
30
37
  command: "access",
31
38
  usage: "<command> [<args>]",
32
39
  description: `Set or get access levels for published packages
33
- and manage team-based package permissions.`,
40
+ and manage team-based package permissions.
41
+
42
+ Target a specific configured registry by alias with
43
+ \`vlt registry <alias> access <subcommand>\`.`,
34
44
  subcommands: {
35
45
  "list packages": {
36
46
  usage: "[<scope|user|org>]",
@@ -113,7 +123,7 @@ var listPackages = async (conf, args) => {
113
123
  });
114
124
  }
115
125
  const rc = new RegistryClient(conf.options);
116
- const registryUrl = new URL(conf.options.registry);
126
+ const registryUrl = new URL(await resolveRegistry(conf));
117
127
  const scope = entity ?? getDefaultScope(conf);
118
128
  const url = new URL(
119
129
  `-/org/${encodeURIComponent(scope)}/package`,
@@ -137,7 +147,7 @@ var getStatus = async (conf, args) => {
137
147
  });
138
148
  }
139
149
  const rc = new RegistryClient(conf.options);
140
- const registryUrl = new URL(conf.options.registry);
150
+ const registryUrl = new URL(await resolveRegistry(conf));
141
151
  const url = new URL(
142
152
  `-/package/${encodePkgName(pkg)}/access`,
143
153
  registryUrl
@@ -168,7 +178,7 @@ var setStatus = async (conf, args) => {
168
178
  });
169
179
  }
170
180
  const rc = new RegistryClient(conf.options);
171
- const registryUrl = new URL(conf.options.registry);
181
+ const registryUrl = new URL(await resolveRegistry(conf));
172
182
  const url = new URL(
173
183
  `-/package/${encodePkgName(pkg)}/access`,
174
184
  registryUrl
@@ -206,7 +216,7 @@ var grant = async (conf, args) => {
206
216
  }
207
217
  const pkgName = pkg ?? getDefaultPkgName(conf);
208
218
  const rc = new RegistryClient(conf.options);
209
- const registryUrl = new URL(conf.options.registry);
219
+ const registryUrl = new URL(await resolveRegistry(conf));
210
220
  const url = new URL(
211
221
  `-/team/${encodeURIComponent(scope)}/${encodeURIComponent(team)}/package`,
212
222
  registryUrl
@@ -245,7 +255,7 @@ var revoke = async (conf, args) => {
245
255
  }
246
256
  const pkgName = pkg ?? getDefaultPkgName(conf);
247
257
  const rc = new RegistryClient(conf.options);
248
- const registryUrl = new URL(conf.options.registry);
258
+ const registryUrl = new URL(await resolveRegistry(conf));
249
259
  const url = new URL(
250
260
  `-/team/${encodeURIComponent(scope)}/${encodeURIComponent(team)}/package`,
251
261
  registryUrl
@@ -288,6 +298,7 @@ var getDefaultPkgName = (conf) => {
288
298
  };
289
299
  export {
290
300
  command,
301
+ needsRegistry,
291
302
  usage,
292
303
  views
293
304
  };
@@ -11,37 +11,39 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  require_lib
14
- } from "./chunk-FXDRM4ZO.js";
14
+ } from "./chunk-CLVRCGOZ.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-XFQ2EH5D.js";
17
+ } from "./chunk-VM2RMMY4.js";
18
18
  import {
19
19
  Query,
20
20
  actual
21
- } from "./chunk-YQXDHMHG.js";
21
+ } from "./chunk-E5YE7UTZ.js";
22
22
  import {
23
23
  SecurityArchive
24
- } from "./chunk-DM3WGEVB.js";
24
+ } from "./chunk-F2FKLPZD.js";
25
25
  import {
26
26
  PackageInfoClient
27
- } from "./chunk-LEX7YPHR.js";
28
- import "./chunk-HQ4US6G3.js";
29
- import "./chunk-KRGA5VLT.js";
30
- import "./chunk-IAKUGHGT.js";
31
- import {
32
- Spec2 as Spec
33
- } from "./chunk-JKAZKVQU.js";
27
+ } from "./chunk-WXMYKCQW.js";
28
+ import "./chunk-FWKQ7YDF.js";
29
+ import "./chunk-ICJRCXSG.js";
30
+ import "./chunk-MT76WHSM.js";
34
31
  import "./chunk-HTOTG4TS.js";
35
32
  import {
36
33
  commandUsage
37
- } from "./chunk-FBTBHRPG.js";
38
- import "./chunk-DI2CYYXF.js";
34
+ } from "./chunk-LCDBW6IT.js";
35
+ import "./chunk-U6DM3ROE.js";
39
36
  import {
40
37
  urlOpen
41
- } from "./chunk-YCQTLBWF.js";
42
- import "./chunk-R44FR7BY.js";
43
- import "./chunk-2V4AQPBR.js";
44
- import "./chunk-6YXVQ5HC.js";
38
+ } from "./chunk-CNSTFT7U.js";
39
+ import "./chunk-7NHXV6AH.js";
40
+ import {
41
+ Spec2 as Spec
42
+ } from "./chunk-PW6S6AIO.js";
43
+ import "./chunk-E74WGW5C.js";
44
+ import "./chunk-WP6CYBPM.js";
45
+ import "./chunk-UBLFPJHV.js";
46
+ import "./chunk-2PLIV3N3.js";
45
47
  import "./chunk-XNLSTHDK.js";
46
48
  import {
47
49
  error
@@ -11,20 +11,22 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  build
14
- } from "./chunk-YQXDHMHG.js";
15
- import "./chunk-DM3WGEVB.js";
16
- import "./chunk-KRGA5VLT.js";
17
- import "./chunk-IAKUGHGT.js";
18
- import "./chunk-JKAZKVQU.js";
14
+ } from "./chunk-E5YE7UTZ.js";
15
+ import "./chunk-F2FKLPZD.js";
16
+ import "./chunk-ICJRCXSG.js";
17
+ import "./chunk-MT76WHSM.js";
19
18
  import "./chunk-HTOTG4TS.js";
20
19
  import {
21
20
  commandUsage
22
- } from "./chunk-FBTBHRPG.js";
23
- import "./chunk-R44FR7BY.js";
24
- import "./chunk-2V4AQPBR.js";
21
+ } from "./chunk-LCDBW6IT.js";
22
+ import "./chunk-7NHXV6AH.js";
23
+ import "./chunk-PW6S6AIO.js";
24
+ import "./chunk-E74WGW5C.js";
25
+ import "./chunk-WP6CYBPM.js";
26
+ import "./chunk-UBLFPJHV.js";
25
27
  import {
26
28
  isErrorWithCause
27
- } from "./chunk-6YXVQ5HC.js";
29
+ } from "./chunk-2PLIV3N3.js";
28
30
  import "./chunk-XNLSTHDK.js";
29
31
  import {
30
32
  error
@@ -70,6 +72,7 @@ var views = {
70
72
  };
71
73
  }
72
74
  };
75
+ var needsRegistry = true;
73
76
  var usage = () => commandUsage({
74
77
  command: "build",
75
78
  usage: ["[query]", "[--target=<query>]"],
@@ -121,6 +124,7 @@ var command = async (conf) => {
121
124
  };
122
125
  export {
123
126
  command,
127
+ needsRegistry,
124
128
  usage,
125
129
  views
126
130
  };
@@ -11,32 +11,35 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  prettyBytes
14
- } from "./chunk-LRPTCGTW.js";
14
+ } from "./chunk-XA47WS4N.js";
15
15
  import {
16
16
  stderr,
17
17
  stdout
18
- } from "./chunk-5UXEBLLT.js";
18
+ } from "./chunk-EHEVBLDB.js";
19
19
  import "./chunk-G2YT2GWF.js";
20
- import "./chunk-NLFBANVO.js";
20
+ import "./chunk-Y7CQIZ7Y.js";
21
21
  import {
22
22
  ViewClass
23
23
  } from "./chunk-RXNA2XCX.js";
24
24
  import "./chunk-WGDTG44V.js";
25
- import "./chunk-DFNHGGGV.js";
26
- import "./chunk-IAKUGHGT.js";
27
- import {
28
- Spec2 as Spec
29
- } from "./chunk-JKAZKVQU.js";
25
+ import "./chunk-EFWPI6IY.js";
26
+ import "./chunk-MT76WHSM.js";
27
+ import "./chunk-FAG776ZD.js";
30
28
  import {
31
29
  commandUsage
32
- } from "./chunk-FBTBHRPG.js";
30
+ } from "./chunk-LCDBW6IT.js";
33
31
  import {
34
32
  CacheEntry
35
- } from "./chunk-DI2CYYXF.js";
36
- import "./chunk-YCQTLBWF.js";
37
- import "./chunk-R44FR7BY.js";
38
- import "./chunk-2V4AQPBR.js";
39
- import "./chunk-6YXVQ5HC.js";
33
+ } from "./chunk-U6DM3ROE.js";
34
+ import "./chunk-CNSTFT7U.js";
35
+ import "./chunk-7NHXV6AH.js";
36
+ import {
37
+ Spec2 as Spec
38
+ } from "./chunk-PW6S6AIO.js";
39
+ import "./chunk-E74WGW5C.js";
40
+ import "./chunk-WP6CYBPM.js";
41
+ import "./chunk-UBLFPJHV.js";
42
+ import "./chunk-2PLIV3N3.js";
40
43
  import "./chunk-XNLSTHDK.js";
41
44
  import {
42
45
  error
@@ -119,6 +122,7 @@ var usageDef = {
119
122
  }
120
123
  }
121
124
  };
125
+ var needsRegistry = true;
122
126
  var usage = () => commandUsage(usageDef);
123
127
  var command = async (conf) => {
124
128
  const [sub, ...args] = conf.positionals;
@@ -306,6 +310,7 @@ var add = async (conf, specs, view2) => {
306
310
  export {
307
311
  CacheView,
308
312
  command,
313
+ needsRegistry,
309
314
  usage,
310
315
  views
311
316
  };