@vltpkg/cli-js 1.3.8 → 1.5.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.
- package/{access-WLKANIOE.js → access-QPX4QXV4.js} +13 -12
- package/{bugs-5Q3QSTWP.js → bugs-TLOECXEM.js} +28 -25
- package/{build-XSFR63AW.js → build-IQOS3LKO.js} +28 -19
- package/{cache-UVPK5J5A.js → cache-O5IBYYSB.js} +35 -23
- package/cache-unzip-src-unzip.js +56 -12
- package/{chunk-NWHKSRO3.js → chunk-2U4PVHP4.js} +5270 -10837
- package/{chunk-5KOLUYXH.js → chunk-35EG6T3J.js} +61 -15
- package/{chunk-PJJCFMLW.js → chunk-3S3W7QEM.js} +7 -5
- package/chunk-43EJ4Q42.js +57 -0
- package/{chunk-IHXJVKAE.js → chunk-4TSHLSRK.js} +2 -1
- package/chunk-4UH3KMTD.js +6444 -0
- package/{chunk-6D54UN4T.js → chunk-5KW6AOTT.js} +1 -1
- package/chunk-6IF3RJND.js +81 -0
- package/{chunk-IBGFQR23.js → chunk-6LZM3I4Q.js} +56 -11
- package/{chunk-FIUUAQGC.js → chunk-6W5XMVIZ.js} +29 -22
- package/{chunk-OWMR2EDW.js → chunk-7UWRR6EE.js} +2 -2
- package/{chunk-WHLYMMI2.js → chunk-ARE7FKDG.js} +6 -4
- package/chunk-B6RIGNEO.js +626 -0
- package/{chunk-CB65DPZ2.js → chunk-C6ZVVEFV.js} +239 -1190
- package/{chunk-SE2FSMBR.js → chunk-CMLDLZZ3.js} +73 -11
- package/{chunk-6P5CFJR7.js → chunk-CS6AYPY5.js} +6 -6
- package/{chunk-TLY4VGMH.js → chunk-CW56EJIL.js} +1 -1
- package/{chunk-SV4WK3KX.js → chunk-F7NPYSI2.js} +3 -2
- package/{chunk-6BQKR2FM.js → chunk-G3FZ2ZJK.js} +1 -1
- package/chunk-GUP55DM6.js +59 -0
- package/chunk-HOF7LEIC.js +24 -0
- package/chunk-IFEZ6BFV.js +1111 -0
- package/{chunk-3U6QWN62.js → chunk-IJUVVD7E.js} +1 -1
- package/{chunk-H77JYU7F.js → chunk-ISAMD2FE.js} +12 -3
- package/{chunk-WKA5UYNA.js → chunk-LH7J5BDU.js} +5 -5
- package/{chunk-GZ5MYMBT.js → chunk-LUVDMEW4.js} +1 -1
- package/{chunk-OAP2ROTL.js → chunk-MYX4JCIJ.js} +1 -1
- package/{chunk-APMYKJI2.js → chunk-QNHBAGXQ.js} +1 -1
- package/{chunk-XCDLOQZZ.js → chunk-SMXXFQPI.js} +80 -29
- package/chunk-SUU2WETN.js +268 -0
- package/chunk-T2VBCUF5.js +77 -0
- package/{chunk-EL4GVZK5.js → chunk-T5EP7QEF.js} +2 -2
- package/{chunk-A2TSRXZD.js → chunk-UZ6ICZE3.js} +1 -1
- package/{chunk-DL3H4EMY.js → chunk-VR7NRWAD.js} +29 -20
- package/chunk-W4T5CGCO.js +52 -0
- package/{chunk-XDSZO74H.js → chunk-WHWPAYZY.js} +118 -20
- package/{chunk-KMOOTBHM.js → chunk-X6JKMIOU.js} +5 -1
- package/{chunk-43HNQWPQ.js → chunk-XCQCYB6G.js} +78 -13
- package/{chunk-IUL6MPP6.js → chunk-XCSNI6AO.js} +4 -4
- package/{chunk-BGA3WB7H.js → chunk-XD5KUDXX.js} +7 -7
- package/{chunk-QNDM4DVO.js → chunk-Z5D5KODU.js} +1 -1
- package/{ci-EDRETPUF.js → ci-ESVUMOZO.js} +31 -13
- package/cli-package.json +1 -1
- package/{config-MVNXGEOQ.js → config-TMB2X6DW.js} +12 -9
- package/{config-OKBXU7TU.js → config-ZVVLFKR7.js} +16 -13
- package/{create-R7BXYJSU.js → create-BLTNKSBQ.js} +28 -25
- package/{deprecate-YSUKBKQM.js → deprecate-VA6PGHYL.js} +17 -15
- package/{dist-tag-MIGYSR4F.js → dist-tag-OYJREFO2.js} +13 -12
- package/{docs-4WVIN75H.js → docs-6OC3OQNM.js} +28 -25
- package/{exec-IXHDQLAM.js → exec-AZPGFVRY.js} +28 -25
- package/{exec-cache-EA7GHIK7.js → exec-cache-D75UY2WI.js} +24 -22
- package/{exec-local-GM4LH56M.js → exec-local-E2JKB4X4.js} +22 -19
- package/{help-TCXGBICU.js → help-UPW77X5N.js} +5 -5
- package/{init-MWZDWQHM.js → init-SNO6QL7C.js} +14 -11
- package/{install-HPI5HU3C.js → install-TEJM2YVX.js} +165 -26
- package/{list-2CX6REPJ.js → list-NHCC2RNB.js} +33 -27
- package/{login-RAY23CVG.js → login-XNZXCGFD.js} +19 -16
- package/{logout-ICB5OMGY.js → logout-YCM7O36Q.js} +13 -12
- package/{outdated-FYHPXRMT.js → outdated-4LA7N63W.js} +26 -22
- package/{pack-E5MNPQXK.js → pack-RC4CZSWF.js} +25 -18
- package/package.json +1 -1
- package/{ping-REQ2KSAR.js → ping-RLVAZGDL.js} +13 -12
- package/{pkg-YB4GSRII.js → pkg-FED5C6TP.js} +23 -14
- package/{profile-GKBW6GRI.js → profile-DJZNLQPG.js} +13 -12
- package/{publish-4ZQJYYLF.js → publish-54AMVMTQ.js} +61 -45
- package/{query-SKXBF3MJ.js → query-ZQLMSJ7O.js} +35 -29
- package/{registry-MQJJCWJY.js → registry-6HKQYSZX.js} +7 -7
- package/registry-client-src-revalidate.js +110 -20
- package/{repo-ACPTZI2C.js → repo-ITA4BLZ4.js} +28 -25
- package/{reporter-4KK2JNGO.js → reporter-UYVR2WMB.js} +73 -14
- package/{run-YW3ITX2A.js → run-TP2HTJRN.js} +22 -19
- package/{run-exec-7VQX3OFG.js → run-exec-UGCC53DV.js} +22 -19
- package/security-archive-src-update-expired.js +88 -28
- package/{setup-PLEKCMXN.js → setup-XPAM5U3Z.js} +23 -21
- package/skills-LR6GXW3X.js +413 -0
- package/skills-YD2TB2VD.js +495 -0
- package/{src-XQ7KVUVN.js → src-34D4DOOH.js} +37 -27
- package/{src-PXDFMQ6W.js → src-H6DFCAPH.js} +9 -8
- package/{src-GP7VLT7P.js → src-LHDC4NJO.js} +58 -9
- package/{token-GB7RPE5J.js → token-OF63PFTQ.js} +13 -12
- package/{uninstall-RLCECX37.js → uninstall-B54FQ5KQ.js} +20 -15
- package/{unpublish-3ZXEAVHF.js → unpublish-CSHIGMDQ.js} +31 -16
- package/{update-VDZP6EZN.js → update-HS4VJ5ZG.js} +51 -25
- package/{version-MRELJPOK.js → version-L7S3DHUS.js} +24 -14
- package/{view-LCXMTGCJ.js → view-NWKKWFVA.js} +17 -15
- package/vlr.js +1 -1
- package/vlrx.js +1 -1
- package/vlt.js +1 -1
- package/vlx.js +1 -1
- package/vlxl.js +1 -1
- package/{whoami-PNRDBS45.js → whoami-65K35VGW.js} +13 -12
- package/chunk-4JAZZRKR.js +0 -76
- package/chunk-G2YT2GWF.js +0 -120
- package/chunk-U7TEQCBN.js +0 -880
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
removeStoreEntry,
|
|
16
16
|
storeCopiedPath,
|
|
17
17
|
storeEntryCopied,
|
|
18
|
+
storeEntryLastCopied,
|
|
18
19
|
storeEntryLinked,
|
|
19
20
|
storeEntryNames,
|
|
20
21
|
storeEntryTime,
|
|
@@ -27,12 +28,16 @@ import {
|
|
|
27
28
|
unpackSync,
|
|
28
29
|
unpackToStoreSync,
|
|
29
30
|
verifyStoreEntry
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ISAMD2FE.js";
|
|
32
|
+
import {
|
|
33
|
+
cloneAvailable,
|
|
34
|
+
cloneDir
|
|
35
|
+
} from "./chunk-6IF3RJND.js";
|
|
31
36
|
import {
|
|
32
37
|
rimrafSync
|
|
33
38
|
} from "./chunk-PDWPFR5T.js";
|
|
34
39
|
import "./chunk-Y5PA7DVK.js";
|
|
35
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-6LZM3I4Q.js";
|
|
36
41
|
import "./chunk-WZWDS3W4.js";
|
|
37
42
|
import "./chunk-PZLD7RTK.js";
|
|
38
43
|
|
|
@@ -42,6 +47,7 @@ import {
|
|
|
42
47
|
linkSync,
|
|
43
48
|
lstatSync,
|
|
44
49
|
mkdirSync,
|
|
50
|
+
readdirSync,
|
|
45
51
|
readFileSync,
|
|
46
52
|
renameSync,
|
|
47
53
|
statSync,
|
|
@@ -57,6 +63,41 @@ var downgrade = (code) => {
|
|
|
57
63
|
copyAll = true;
|
|
58
64
|
debug("global store: linking failed, copying from now on", code);
|
|
59
65
|
};
|
|
66
|
+
var cloneNone = false;
|
|
67
|
+
var native = (p) => sep === "/" ? p : p.replaceAll("/", sep);
|
|
68
|
+
var cloneEntry = (storeEntry, tmp) => {
|
|
69
|
+
const res = cloneDir(storeEntry, tmp);
|
|
70
|
+
if (res === true) return true;
|
|
71
|
+
if (res === "ENOTSUP" || res === "EXDEV" || res === "EPERM" || res === "EACCES") {
|
|
72
|
+
cloneNone = true;
|
|
73
|
+
debug("global store: cloning failed, unpacking from now on", res);
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
var checkClone = (tmp, index) => {
|
|
78
|
+
const counts = /* @__PURE__ */ new Map([["", 0]]);
|
|
79
|
+
for (const d of index.dirs) counts.set(d, 0);
|
|
80
|
+
for (const p of [...index.dirs, ...index.files.map((f) => f[0])]) {
|
|
81
|
+
const i = p.lastIndexOf("/");
|
|
82
|
+
const d = i === -1 ? "" : p.slice(0, i);
|
|
83
|
+
const n = counts.get(d);
|
|
84
|
+
if (n === void 0) return "damaged";
|
|
85
|
+
counts.set(d, n + 1);
|
|
86
|
+
}
|
|
87
|
+
for (const [d, n] of counts) {
|
|
88
|
+
let names;
|
|
89
|
+
try {
|
|
90
|
+
names = readdirSync(d ? tmp + sep + native(d) : tmp);
|
|
91
|
+
} catch {
|
|
92
|
+
return "damaged";
|
|
93
|
+
}
|
|
94
|
+
if (names.length !== n) return "damaged";
|
|
95
|
+
}
|
|
96
|
+
const pj = index.files.find((f) => f[0] === "package.json");
|
|
97
|
+
if (verify && pj && statSync(tmp + sep + "package.json").size !== pj[1]) {
|
|
98
|
+
return "damaged";
|
|
99
|
+
}
|
|
100
|
+
};
|
|
60
101
|
var place = (src, dst, exec, copy) => {
|
|
61
102
|
if (!copy && !copyAll) {
|
|
62
103
|
try {
|
|
@@ -87,7 +128,6 @@ var place = (src, dst, exec, copy) => {
|
|
|
87
128
|
return "copy";
|
|
88
129
|
};
|
|
89
130
|
var fill = (storeEntry, tmp, index, copy) => {
|
|
90
|
-
const native = sep === "/" ? (p) => p : (p) => p.replaceAll("/", sep);
|
|
91
131
|
const put = ([p, , exec]) => place(
|
|
92
132
|
storeEntry + sep + native(p),
|
|
93
133
|
tmp + sep + native(p),
|
|
@@ -120,7 +160,8 @@ var fill = (storeEntry, tmp, index, copy) => {
|
|
|
120
160
|
throw er;
|
|
121
161
|
}
|
|
122
162
|
};
|
|
123
|
-
var linkFromStore = (storeEntry, target, { copy = false } = {}) => {
|
|
163
|
+
var linkFromStore = (storeEntry, target, { copy = false, clone = false } = {}) => {
|
|
164
|
+
if (clone && cloneNone) return false;
|
|
124
165
|
const index = readStoreIndex(storeEntry);
|
|
125
166
|
if (!index || !lstatSync(storeEntry, noThrow)?.isDirectory()) {
|
|
126
167
|
return false;
|
|
@@ -132,9 +173,10 @@ var linkFromStore = (storeEntry, target, { copy = false } = {}) => {
|
|
|
132
173
|
const og = tmp + ".ORIGINAL";
|
|
133
174
|
let succeeded = false;
|
|
134
175
|
try {
|
|
135
|
-
|
|
136
|
-
let copied = copy;
|
|
137
|
-
|
|
176
|
+
if (clone && !cloneEntry(storeEntry, tmp)) return false;
|
|
177
|
+
let copied = !clone && copy;
|
|
178
|
+
if (!clone) mkdirSync(tmp);
|
|
179
|
+
let miss = clone ? checkClone(tmp, index) : fill(storeEntry, tmp, index, copied);
|
|
138
180
|
if (miss === "mixed") {
|
|
139
181
|
rimrafSync(tmp);
|
|
140
182
|
mkdirSync(tmp);
|
|
@@ -157,9 +199,14 @@ var linkFromStore = (storeEntry, target, { copy = false } = {}) => {
|
|
|
157
199
|
if (targetExists) renameSync(target, og);
|
|
158
200
|
renameSync(tmp, target);
|
|
159
201
|
if (targetExists) rimrafSync(og);
|
|
160
|
-
if (copied || copyAll)
|
|
202
|
+
if (clone || copied || copyAll || index.scripts) {
|
|
203
|
+
markStoreEntryCopied(storeEntry);
|
|
204
|
+
}
|
|
161
205
|
succeeded = true;
|
|
162
|
-
return {
|
|
206
|
+
return {
|
|
207
|
+
how: clone ? "clone" : copied || copyAll ? "copy" : "link",
|
|
208
|
+
index
|
|
209
|
+
};
|
|
163
210
|
} finally {
|
|
164
211
|
if (!succeeded) {
|
|
165
212
|
if (lstatSync(og, noThrow)) {
|
|
@@ -220,12 +267,14 @@ var Pool = class {
|
|
|
220
267
|
};
|
|
221
268
|
export {
|
|
222
269
|
Pool,
|
|
270
|
+
cloneAvailable,
|
|
223
271
|
linkFromStore,
|
|
224
272
|
markStoreEntryCopied,
|
|
225
273
|
readStoreIndex,
|
|
226
274
|
removeStoreEntry,
|
|
227
275
|
storeCopiedPath,
|
|
228
276
|
storeEntryCopied,
|
|
277
|
+
storeEntryLastCopied,
|
|
229
278
|
storeEntryLinked,
|
|
230
279
|
storeEntryNames,
|
|
231
280
|
storeEntryTime,
|
|
@@ -9,14 +9,14 @@ 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
|
-
requireRegistry
|
|
14
|
-
} from "./chunk-A2TSRXZD.js";
|
|
15
12
|
import {
|
|
16
13
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import
|
|
19
|
-
|
|
14
|
+
} from "./chunk-CW56EJIL.js";
|
|
15
|
+
import {
|
|
16
|
+
requireRegistry
|
|
17
|
+
} from "./chunk-UZ6ICZE3.js";
|
|
18
|
+
import "./chunk-CMLDLZZ3.js";
|
|
19
|
+
import "./chunk-LUVDMEW4.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient,
|
|
22
22
|
deleteToken,
|
|
@@ -25,15 +25,16 @@ import {
|
|
|
25
25
|
normalizeRegistryKey,
|
|
26
26
|
registryBase,
|
|
27
27
|
setToken
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-35EG6T3J.js";
|
|
29
|
+
import "./chunk-QNHBAGXQ.js";
|
|
30
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
31
|
+
import "./chunk-5KW6AOTT.js";
|
|
32
|
+
import "./chunk-SUU2WETN.js";
|
|
33
|
+
import "./chunk-B6RIGNEO.js";
|
|
33
34
|
import "./chunk-XNLSTHDK.js";
|
|
34
35
|
import "./chunk-PDWPFR5T.js";
|
|
35
36
|
import "./chunk-Y5PA7DVK.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-6LZM3I4Q.js";
|
|
37
38
|
import {
|
|
38
39
|
error
|
|
39
40
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,29 +11,32 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
parseRemoveArgs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-A2TSRXZD.js";
|
|
14
|
+
} from "./chunk-CS6AYPY5.js";
|
|
16
15
|
import {
|
|
17
16
|
uninstall
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-4UH3KMTD.js";
|
|
18
|
+
import "./chunk-2U4PVHP4.js";
|
|
19
|
+
import "./chunk-SMXXFQPI.js";
|
|
20
20
|
import {
|
|
21
21
|
commandUsage
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-CW56EJIL.js";
|
|
23
|
+
import "./chunk-IFEZ6BFV.js";
|
|
24
|
+
import "./chunk-C6ZVVEFV.js";
|
|
24
25
|
import {
|
|
25
26
|
lazyView
|
|
26
27
|
} from "./chunk-4KCU2KZL.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-UZ6ICZE3.js";
|
|
29
|
+
import "./chunk-CMLDLZZ3.js";
|
|
30
|
+
import "./chunk-F7NPYSI2.js";
|
|
31
|
+
import "./chunk-LUVDMEW4.js";
|
|
30
32
|
import "./chunk-HTOTG4TS.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
34
|
+
import "./chunk-SUU2WETN.js";
|
|
35
|
+
import "./chunk-B6RIGNEO.js";
|
|
33
36
|
import "./chunk-XNLSTHDK.js";
|
|
34
37
|
import "./chunk-PDWPFR5T.js";
|
|
35
38
|
import "./chunk-Y5PA7DVK.js";
|
|
36
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-6LZM3I4Q.js";
|
|
37
40
|
import "./chunk-WZWDS3W4.js";
|
|
38
41
|
import "./chunk-PZLD7RTK.js";
|
|
39
42
|
|
|
@@ -66,22 +69,24 @@ var usage = () => commandUsage({
|
|
|
66
69
|
var views = {
|
|
67
70
|
json: (i) => i.graph.toJSON(),
|
|
68
71
|
human: lazyView(
|
|
69
|
-
async () => (await import("./reporter-
|
|
72
|
+
async () => (await import("./reporter-UYVR2WMB.js")).InstallReporter
|
|
70
73
|
)
|
|
71
74
|
};
|
|
72
75
|
var command = async (conf) => {
|
|
73
76
|
const { monorepo, scurry } = conf.options;
|
|
74
77
|
const { remove } = parseRemoveArgs(conf, scurry, monorepo);
|
|
75
78
|
const allowScripts = conf.get("allow-scripts") ? String(conf.get("allow-scripts")) : ":not(*)";
|
|
76
|
-
const { graph } = await uninstall(
|
|
79
|
+
const { graph, skills } = await uninstall(
|
|
77
80
|
{
|
|
78
81
|
...conf.options,
|
|
79
82
|
allowScripts,
|
|
83
|
+
allowSkills: conf.get("allow-skills"),
|
|
84
|
+
skillsDirs: conf.get("skills-dir"),
|
|
80
85
|
lockfileOnly: conf.options["lockfile-only"]
|
|
81
86
|
},
|
|
82
87
|
remove
|
|
83
88
|
);
|
|
84
|
-
return { graph };
|
|
89
|
+
return { graph, ...skills ? { skills } : null };
|
|
85
90
|
};
|
|
86
91
|
export {
|
|
87
92
|
command,
|
|
@@ -10,36 +10,41 @@ globalThis.clearInterval = _vlt_clearInterval;
|
|
|
10
10
|
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
getPublishConfig
|
|
14
|
+
} from "./chunk-HOF7LEIC.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CW56EJIL.js";
|
|
18
|
+
import {
|
|
19
|
+
resolveRegistry
|
|
20
|
+
} from "./chunk-UZ6ICZE3.js";
|
|
21
|
+
import "./chunk-CMLDLZZ3.js";
|
|
18
22
|
import {
|
|
19
23
|
Spec
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-SE2FSMBR.js";
|
|
24
|
+
} from "./chunk-LUVDMEW4.js";
|
|
22
25
|
import {
|
|
23
|
-
RegistryClient
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
RegistryClient,
|
|
27
|
+
registryBase
|
|
28
|
+
} from "./chunk-35EG6T3J.js";
|
|
29
|
+
import "./chunk-QNHBAGXQ.js";
|
|
30
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
26
31
|
import {
|
|
27
32
|
assertOk,
|
|
28
33
|
requestError
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-5KW6AOTT.js";
|
|
35
|
+
import "./chunk-SUU2WETN.js";
|
|
36
|
+
import "./chunk-B6RIGNEO.js";
|
|
32
37
|
import "./chunk-XNLSTHDK.js";
|
|
33
38
|
import "./chunk-PDWPFR5T.js";
|
|
34
39
|
import "./chunk-Y5PA7DVK.js";
|
|
35
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-6LZM3I4Q.js";
|
|
36
41
|
import {
|
|
37
42
|
error
|
|
38
43
|
} from "./chunk-WZWDS3W4.js";
|
|
39
44
|
import "./chunk-PZLD7RTK.js";
|
|
40
45
|
|
|
41
46
|
// ../../src/cli-sdk/src/commands/unpublish.ts
|
|
42
|
-
|
|
47
|
+
import { dirname } from "node:path";
|
|
43
48
|
var usage = () => commandUsage({
|
|
44
49
|
command: "unpublish",
|
|
45
50
|
usage: ["<package>@<version>", "<package> --force"],
|
|
@@ -47,6 +52,8 @@ var usage = () => commandUsage({
|
|
|
47
52
|
|
|
48
53
|
To unpublish a single version, specify the package name and version.
|
|
49
54
|
To unpublish an entire package, specify the package name and use --force.
|
|
55
|
+
A spec naming the package in the current directory uses its
|
|
56
|
+
\`publishConfig.registry\`, if set.
|
|
50
57
|
|
|
51
58
|
\u26A0\uFE0F Unpublishing is a destructive action that cannot be undone.
|
|
52
59
|
Consider using \`vlt deprecate\` instead if you want to discourage
|
|
@@ -81,6 +88,12 @@ var views = {
|
|
|
81
88
|
},
|
|
82
89
|
json: (r) => r
|
|
83
90
|
};
|
|
91
|
+
var localPublishRegistry = (conf, name) => {
|
|
92
|
+
const path = conf.options.packageJson.find(process.cwd());
|
|
93
|
+
if (!path) return void 0;
|
|
94
|
+
const manifest = conf.options.packageJson.read(dirname(path));
|
|
95
|
+
return manifest.name === name ? getPublishConfig(manifest)?.registry : void 0;
|
|
96
|
+
};
|
|
84
97
|
var command = async (conf) => {
|
|
85
98
|
const specArg = conf.positionals[0];
|
|
86
99
|
if (!specArg) {
|
|
@@ -90,8 +103,6 @@ var command = async (conf) => {
|
|
|
90
103
|
);
|
|
91
104
|
}
|
|
92
105
|
const { otp, force } = conf.options;
|
|
93
|
-
const registry = await resolveRegistry(conf);
|
|
94
|
-
const registryUrl = new URL(registry);
|
|
95
106
|
const spec = Spec.parseArgs(specArg, conf.options);
|
|
96
107
|
const name = spec.name;
|
|
97
108
|
if (!name) {
|
|
@@ -107,6 +118,11 @@ var command = async (conf) => {
|
|
|
107
118
|
);
|
|
108
119
|
}
|
|
109
120
|
}
|
|
121
|
+
const registryUrl = new URL(
|
|
122
|
+
registryBase(
|
|
123
|
+
localPublishRegistry(conf, name) ?? await resolveRegistry(conf)
|
|
124
|
+
)
|
|
125
|
+
);
|
|
110
126
|
const rc = new RegistryClient(conf.options);
|
|
111
127
|
const encodedName = name.startsWith("@") ? name.replace("/", "%2F") : name;
|
|
112
128
|
if (version) {
|
|
@@ -231,7 +247,6 @@ var command = async (conf) => {
|
|
|
231
247
|
};
|
|
232
248
|
export {
|
|
233
249
|
command,
|
|
234
|
-
needsRegistry,
|
|
235
250
|
usage,
|
|
236
251
|
views
|
|
237
252
|
};
|
|
@@ -9,37 +9,44 @@ 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
|
-
planSpecConfigPersist
|
|
14
|
-
} from "./chunk-IUL6MPP6.js";
|
|
15
|
-
import "./chunk-43HNQWPQ.js";
|
|
16
|
-
import "./chunk-DL3H4EMY.js";
|
|
17
|
-
import "./chunk-SRWDPPLX.js";
|
|
18
|
-
import {
|
|
19
|
-
asUnknownSpecPrefix
|
|
20
|
-
} from "./chunk-A2TSRXZD.js";
|
|
21
12
|
import {
|
|
22
13
|
update
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-4UH3KMTD.js";
|
|
15
|
+
import "./chunk-2U4PVHP4.js";
|
|
16
|
+
import "./chunk-SMXXFQPI.js";
|
|
25
17
|
import {
|
|
26
18
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import
|
|
19
|
+
} from "./chunk-CW56EJIL.js";
|
|
20
|
+
import {
|
|
21
|
+
planSpecConfigPersist
|
|
22
|
+
} from "./chunk-XCSNI6AO.js";
|
|
23
|
+
import {
|
|
24
|
+
saveAllowSkills
|
|
25
|
+
} from "./chunk-W4T5CGCO.js";
|
|
26
|
+
import "./chunk-XCQCYB6G.js";
|
|
27
|
+
import "./chunk-VR7NRWAD.js";
|
|
28
|
+
import "./chunk-SRWDPPLX.js";
|
|
29
|
+
import "./chunk-IFEZ6BFV.js";
|
|
30
|
+
import "./chunk-C6ZVVEFV.js";
|
|
29
31
|
import {
|
|
30
32
|
lazyView
|
|
31
33
|
} from "./chunk-4KCU2KZL.js";
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
import {
|
|
35
|
+
asUnknownSpecPrefix
|
|
36
|
+
} from "./chunk-UZ6ICZE3.js";
|
|
37
|
+
import "./chunk-CMLDLZZ3.js";
|
|
38
|
+
import "./chunk-F7NPYSI2.js";
|
|
39
|
+
import "./chunk-LUVDMEW4.js";
|
|
35
40
|
import "./chunk-HTOTG4TS.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
42
|
+
import "./chunk-5KW6AOTT.js";
|
|
43
|
+
import "./chunk-SUU2WETN.js";
|
|
44
|
+
import "./chunk-B6RIGNEO.js";
|
|
39
45
|
import "./chunk-XNLSTHDK.js";
|
|
46
|
+
import "./chunk-6IF3RJND.js";
|
|
40
47
|
import "./chunk-PDWPFR5T.js";
|
|
41
48
|
import "./chunk-Y5PA7DVK.js";
|
|
42
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-6LZM3I4Q.js";
|
|
43
50
|
import {
|
|
44
51
|
error
|
|
45
52
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -69,9 +76,21 @@ var usage = () => commandUsage({
|
|
|
69
76
|
"allow-scripts": {
|
|
70
77
|
value: "<query>",
|
|
71
78
|
description: "Filter which packages are allowed to run lifecycle scripts using DSS query syntax."
|
|
79
|
+
},
|
|
80
|
+
"allow-skills": {
|
|
81
|
+
value: "<query>",
|
|
82
|
+
description: "Link agent skills of packages matching this DSS query into the project's agent skill dirs. Saved to vlt.json."
|
|
72
83
|
}
|
|
73
84
|
}
|
|
74
85
|
});
|
|
86
|
+
var skillsJson = ({
|
|
87
|
+
linked,
|
|
88
|
+
unchanged: _,
|
|
89
|
+
...rest
|
|
90
|
+
}) => ({
|
|
91
|
+
linked: linked.map((s) => s.mount),
|
|
92
|
+
...rest
|
|
93
|
+
});
|
|
75
94
|
var views = {
|
|
76
95
|
json: (i) => ({
|
|
77
96
|
...i.buildQueue?.length ? {
|
|
@@ -79,10 +98,12 @@ var views = {
|
|
|
79
98
|
message: `${i.buildQueue.length} packages that will need to be built, run "vlt build" to complete the update.`
|
|
80
99
|
} : null,
|
|
81
100
|
graph: i.graph.toJSON(),
|
|
82
|
-
...i.persistedConfig ? { persistedConfig: i.persistedConfig } : null
|
|
101
|
+
...i.persistedConfig ? { persistedConfig: i.persistedConfig } : null,
|
|
102
|
+
...i.skills ? { skills: skillsJson(i.skills) } : null,
|
|
103
|
+
...i.allowSkills ? { allowSkills: i.allowSkills } : null
|
|
83
104
|
}),
|
|
84
105
|
human: lazyView(
|
|
85
|
-
async () => (await import("./reporter-
|
|
106
|
+
async () => (await import("./reporter-UYVR2WMB.js")).InstallReporter
|
|
86
107
|
)
|
|
87
108
|
};
|
|
88
109
|
var command = async (conf) => {
|
|
@@ -93,18 +114,23 @@ var command = async (conf) => {
|
|
|
93
114
|
}
|
|
94
115
|
const persist = planSpecConfigPersist(conf);
|
|
95
116
|
const allowScripts = conf.get("allow-scripts") ? String(conf.get("allow-scripts")) : ":not(*)";
|
|
96
|
-
const { buildQueue, graph } = await update({
|
|
117
|
+
const { buildQueue, graph, skills } = await update({
|
|
97
118
|
...conf.options,
|
|
98
|
-
allowScripts
|
|
119
|
+
allowScripts,
|
|
120
|
+
allowSkills: conf.get("allow-skills"),
|
|
121
|
+
skillsDirs: conf.get("skills-dir")
|
|
99
122
|
}).catch((er) => {
|
|
100
123
|
throw asUnknownSpecPrefix(er);
|
|
101
124
|
});
|
|
102
125
|
if (persist)
|
|
103
126
|
await conf.addConfigToFile(persist.which, persist.values);
|
|
127
|
+
const allowSkillsSave = await saveAllowSkills(conf);
|
|
104
128
|
return {
|
|
105
129
|
buildQueue,
|
|
106
130
|
graph,
|
|
107
|
-
...persist ? { persistedConfig: persist } : null
|
|
131
|
+
...persist ? { persistedConfig: persist } : null,
|
|
132
|
+
...skills ? { skills } : null,
|
|
133
|
+
...allowSkillsSave ? { allowSkills: allowSkillsSave } : null
|
|
108
134
|
};
|
|
109
135
|
};
|
|
110
136
|
export {
|
|
@@ -9,29 +9,37 @@ 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-43EJ4Q42.js";
|
|
12
15
|
import {
|
|
13
16
|
createHostContextsMap
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ARE7FKDG.js";
|
|
15
18
|
import {
|
|
16
|
-
Query,
|
|
17
19
|
actual
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import
|
|
20
|
+
} from "./chunk-4UH3KMTD.js";
|
|
21
|
+
import {
|
|
22
|
+
Query
|
|
23
|
+
} from "./chunk-2U4PVHP4.js";
|
|
24
|
+
import "./chunk-SMXXFQPI.js";
|
|
20
25
|
import {
|
|
21
26
|
commandUsage
|
|
22
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CW56EJIL.js";
|
|
23
28
|
import {
|
|
24
29
|
is,
|
|
25
30
|
isClean,
|
|
26
|
-
minimatch,
|
|
27
31
|
spawn
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
} from "./chunk-IFEZ6BFV.js";
|
|
33
|
+
import {
|
|
34
|
+
minimatch
|
|
35
|
+
} from "./chunk-C6ZVVEFV.js";
|
|
36
|
+
import "./chunk-CMLDLZZ3.js";
|
|
37
|
+
import "./chunk-F7NPYSI2.js";
|
|
38
|
+
import "./chunk-LUVDMEW4.js";
|
|
32
39
|
import "./chunk-HTOTG4TS.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
41
|
+
import "./chunk-SUU2WETN.js";
|
|
42
|
+
import "./chunk-B6RIGNEO.js";
|
|
35
43
|
import "./chunk-XNLSTHDK.js";
|
|
36
44
|
import "./chunk-PDWPFR5T.js";
|
|
37
45
|
import "./chunk-Y5PA7DVK.js";
|
|
@@ -40,7 +48,7 @@ import {
|
|
|
40
48
|
inc,
|
|
41
49
|
parse,
|
|
42
50
|
versionIncrements
|
|
43
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6LZM3I4Q.js";
|
|
44
52
|
import {
|
|
45
53
|
error
|
|
46
54
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -276,6 +284,7 @@ var command = async (conf) => {
|
|
|
276
284
|
const { nodes } = await query.search(queryString, {
|
|
277
285
|
signal: new AbortController().signal
|
|
278
286
|
});
|
|
287
|
+
const found = [];
|
|
279
288
|
for (const node of nodes) {
|
|
280
289
|
const location = node.location;
|
|
281
290
|
assert(
|
|
@@ -284,8 +293,9 @@ var command = async (conf) => {
|
|
|
284
293
|
found: node
|
|
285
294
|
})
|
|
286
295
|
);
|
|
287
|
-
|
|
296
|
+
found.push(resolve(node.projectRoot, location));
|
|
288
297
|
}
|
|
298
|
+
locations.push(...sortScopeLocations(found, options.monorepo));
|
|
289
299
|
} else if (paths?.length || groups?.length || recursive) {
|
|
290
300
|
for (const workspace of options.monorepo ?? []) {
|
|
291
301
|
if (paths?.length) {
|
|
@@ -11,33 +11,35 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
createStubNode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IJUVVD7E.js";
|
|
15
15
|
import {
|
|
16
16
|
get
|
|
17
17
|
} from "./chunk-DBANBIL2.js";
|
|
18
|
-
import {
|
|
19
|
-
PackageInfoClient
|
|
20
|
-
} from "./chunk-DL3H4EMY.js";
|
|
21
|
-
import "./chunk-SRWDPPLX.js";
|
|
22
18
|
import {
|
|
23
19
|
SecurityArchive
|
|
24
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SMXXFQPI.js";
|
|
25
21
|
import {
|
|
26
22
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import
|
|
29
|
-
|
|
23
|
+
} from "./chunk-CW56EJIL.js";
|
|
24
|
+
import {
|
|
25
|
+
PackageInfoClient
|
|
26
|
+
} from "./chunk-VR7NRWAD.js";
|
|
27
|
+
import "./chunk-SRWDPPLX.js";
|
|
28
|
+
import "./chunk-IFEZ6BFV.js";
|
|
29
|
+
import "./chunk-C6ZVVEFV.js";
|
|
30
|
+
import "./chunk-CMLDLZZ3.js";
|
|
31
|
+
import "./chunk-F7NPYSI2.js";
|
|
30
32
|
import {
|
|
31
33
|
Spec
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-SE2FSMBR.js";
|
|
34
|
+
} from "./chunk-LUVDMEW4.js";
|
|
34
35
|
import "./chunk-HTOTG4TS.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-G3FZ2ZJK.js";
|
|
37
|
+
import "./chunk-5KW6AOTT.js";
|
|
38
|
+
import "./chunk-SUU2WETN.js";
|
|
39
|
+
import "./chunk-B6RIGNEO.js";
|
|
38
40
|
import "./chunk-XNLSTHDK.js";
|
|
39
41
|
import "./chunk-Y5PA7DVK.js";
|
|
40
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-6LZM3I4Q.js";
|
|
41
43
|
import {
|
|
42
44
|
error
|
|
43
45
|
} from "./chunk-WZWDS3W4.js";
|
package/vlr.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYX4JCIJ.js";
|
|
16
16
|
import "./chunk-XNLSTHDK.js";
|
|
17
17
|
import "./chunk-PZLD7RTK.js";
|
|
18
18
|
|
package/vlrx.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYX4JCIJ.js";
|
|
16
16
|
import "./chunk-XNLSTHDK.js";
|
|
17
17
|
import "./chunk-PZLD7RTK.js";
|
|
18
18
|
|
package/vlt.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYX4JCIJ.js";
|
|
16
16
|
import "./chunk-XNLSTHDK.js";
|
|
17
17
|
import "./chunk-PZLD7RTK.js";
|
|
18
18
|
|
package/vlx.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYX4JCIJ.js";
|
|
16
16
|
import "./chunk-XNLSTHDK.js";
|
|
17
17
|
import "./chunk-PZLD7RTK.js";
|
|
18
18
|
|
package/vlxl.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYX4JCIJ.js";
|
|
16
16
|
import "./chunk-XNLSTHDK.js";
|
|
17
17
|
import "./chunk-PZLD7RTK.js";
|
|
18
18
|
|