@vltpkg/cli-js 1.4.0 → 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-422UGEWN.js → access-QPX4QXV4.js} +13 -12
- package/{bugs-RED7Y33Q.js → bugs-TLOECXEM.js} +28 -25
- package/{build-IHMPBWRO.js → build-IQOS3LKO.js} +28 -19
- package/{cache-FJP2RZJX.js → cache-O5IBYYSB.js} +17 -17
- package/cache-unzip-src-unzip.js +35 -11
- package/{chunk-OVPHE4O7.js → chunk-2U4PVHP4.js} +5232 -10882
- package/{chunk-OAJ3PO3Z.js → chunk-35EG6T3J.js} +7 -7
- package/{chunk-GIIAODRI.js → chunk-3S3W7QEM.js} +7 -5
- package/{chunk-UGCKF5ZE.js → chunk-43EJ4Q42.js} +1 -1
- package/{chunk-5Y4SYLJ2.js → chunk-4TSHLSRK.js} +1 -1
- package/chunk-4UH3KMTD.js +6444 -0
- package/{chunk-SR2VOY5J.js → chunk-5KW6AOTT.js} +1 -1
- package/{chunk-FLH4YC6W.js → chunk-6LZM3I4Q.js} +35 -11
- package/{chunk-X4FVR4R5.js → chunk-6W5XMVIZ.js} +12 -10
- package/{chunk-TPRK6IDA.js → chunk-7UWRR6EE.js} +2 -2
- package/{chunk-ASLX43R3.js → chunk-ARE7FKDG.js} +6 -4
- package/chunk-B6RIGNEO.js +626 -0
- package/{chunk-I7UMHYZX.js → chunk-C6ZVVEFV.js} +111 -1186
- package/{chunk-WF6KLKRN.js → chunk-CMLDLZZ3.js} +47 -1
- package/{chunk-ISE4IRHF.js → chunk-CS6AYPY5.js} +6 -6
- package/{chunk-LHPEBLOU.js → chunk-CW56EJIL.js} +1 -1
- package/{chunk-PLG3OYCX.js → chunk-F7NPYSI2.js} +3 -2
- package/{chunk-ZJMJ7MCT.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-7T3XAYP4.js → chunk-IJUVVD7E.js} +1 -1
- package/{chunk-DNRR3XMG.js → chunk-ISAMD2FE.js} +1 -1
- package/{chunk-PHJJPY5G.js → chunk-LH7J5BDU.js} +5 -5
- package/{chunk-5IJTPZXP.js → chunk-LUVDMEW4.js} +1 -1
- package/{chunk-C23TDXRG.js → chunk-MYX4JCIJ.js} +1 -1
- package/{chunk-APMYKJI2.js → chunk-QNHBAGXQ.js} +1 -1
- package/{chunk-5TNXLRW2.js → chunk-SMXXFQPI.js} +50 -12
- package/chunk-SUU2WETN.js +268 -0
- package/chunk-T2VBCUF5.js +77 -0
- package/{chunk-MKWPTN3C.js → chunk-T5EP7QEF.js} +2 -2
- package/{chunk-THSYN5EK.js → chunk-UZ6ICZE3.js} +1 -1
- package/{chunk-TO23PR7J.js → chunk-VR7NRWAD.js} +14 -12
- package/chunk-W4T5CGCO.js +52 -0
- package/{chunk-FZUYGJZU.js → chunk-WHWPAYZY.js} +117 -19
- package/{chunk-QCSUWACA.js → chunk-X6JKMIOU.js} +5 -1
- package/{chunk-5RHABCYI.js → chunk-XCQCYB6G.js} +8 -8
- package/{chunk-2AMOC4DN.js → chunk-XCSNI6AO.js} +4 -4
- package/{chunk-4UCADW6S.js → chunk-XD5KUDXX.js} +7 -7
- package/{chunk-HZXJ423P.js → chunk-Z5D5KODU.js} +1 -1
- package/{ci-YSKNNO5M.js → ci-ESVUMOZO.js} +31 -13
- package/cli-package.json +1 -1
- package/{config-CSPCDMR3.js → config-TMB2X6DW.js} +11 -9
- package/{config-HO7GY3QT.js → config-ZVVLFKR7.js} +15 -13
- package/{create-2TJT3AHJ.js → create-BLTNKSBQ.js} +28 -26
- package/{deprecate-7FRJI2RL.js → deprecate-VA6PGHYL.js} +17 -15
- package/{dist-tag-WCFF5OEG.js → dist-tag-OYJREFO2.js} +13 -12
- package/{docs-JMBPTU23.js → docs-6OC3OQNM.js} +28 -25
- package/{exec-FBOUKZZ2.js → exec-AZPGFVRY.js} +28 -26
- package/{exec-cache-X3ZWM5S3.js → exec-cache-D75UY2WI.js} +24 -22
- package/{exec-local-Y3KQC22N.js → exec-local-E2JKB4X4.js} +22 -20
- package/{help-PUKVH5X7.js → help-UPW77X5N.js} +5 -5
- package/{init-GOKAQXXZ.js → init-SNO6QL7C.js} +14 -11
- package/{install-XFN4UFOC.js → install-TEJM2YVX.js} +67 -28
- package/{list-43JFFG5D.js → list-NHCC2RNB.js} +33 -27
- package/{login-RSTZKNKN.js → login-XNZXCGFD.js} +18 -16
- package/{logout-4576FFXZ.js → logout-YCM7O36Q.js} +13 -12
- package/{outdated-ACQ5A2Y7.js → outdated-4LA7N63W.js} +26 -22
- package/{pack-QQVJ3G25.js → pack-RC4CZSWF.js} +22 -18
- package/package.json +1 -1
- package/{ping-QCDQQRO5.js → ping-RLVAZGDL.js} +13 -12
- package/{pkg-CSOJV7UC.js → pkg-FED5C6TP.js} +18 -14
- package/{profile-VL4HPW3N.js → profile-DJZNLQPG.js} +13 -12
- package/{publish-2YBO6ZXE.js → publish-54AMVMTQ.js} +56 -45
- package/{query-IHHFMJRT.js → query-ZQLMSJ7O.js} +35 -29
- package/{registry-W7BRZZZ2.js → registry-6HKQYSZX.js} +7 -7
- package/registry-client-src-revalidate.js +36 -12
- package/{repo-L3BXAAWS.js → repo-ITA4BLZ4.js} +28 -25
- package/{reporter-5NYOHBO7.js → reporter-UYVR2WMB.js} +72 -14
- package/{run-AMUUVLTI.js → run-TP2HTJRN.js} +22 -20
- package/{run-exec-5W3XWQZA.js → run-exec-UGCC53DV.js} +22 -20
- package/security-archive-src-update-expired.js +43 -17
- package/{setup-TFM4GJF7.js → setup-XPAM5U3Z.js} +22 -21
- package/skills-LR6GXW3X.js +413 -0
- package/skills-YD2TB2VD.js +495 -0
- package/{src-4CYCUWZL.js → src-34D4DOOH.js} +23 -18
- package/{src-I3GMULFP.js → src-H6DFCAPH.js} +9 -8
- package/{src-LUTN2ODD.js → src-LHDC4NJO.js} +2 -2
- package/{token-OANOBE3G.js → token-OF63PFTQ.js} +13 -12
- package/{uninstall-YXTQ4AIZ.js → uninstall-B54FQ5KQ.js} +20 -15
- package/{unpublish-SZXYMYIU.js → unpublish-CSHIGMDQ.js} +31 -16
- package/{update-FHLMWGIM.js → update-HS4VJ5ZG.js} +50 -25
- package/{version-ZWFCTU5V.js → version-L7S3DHUS.js} +19 -14
- package/{view-NFNJXMLV.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-O7GOSGCI.js → whoami-65K35VGW.js} +13 -12
- package/chunk-G2YT2GWF.js +0 -120
- package/chunk-T6FBP4OU.js +0 -76
- package/chunk-U7TEQCBN.js +0 -880
|
@@ -1108,6 +1108,7 @@ var canonicalCommands = {
|
|
|
1108
1108
|
"run-exec": "run-exec",
|
|
1109
1109
|
run: "run",
|
|
1110
1110
|
setup: "setup",
|
|
1111
|
+
skills: "skills",
|
|
1111
1112
|
token: "token",
|
|
1112
1113
|
uninstall: "uninstall",
|
|
1113
1114
|
unpublish: "unpublish",
|
|
@@ -1565,7 +1566,9 @@ var definition = j2.heading("Configuration").description(
|
|
|
1565
1566
|
config: {
|
|
1566
1567
|
hint: "all | user | project",
|
|
1567
1568
|
description: `Specify which configuration to show or operate on when running
|
|
1568
|
-
\`vlt config\` commands
|
|
1569
|
+
\`vlt config\` commands, and which file
|
|
1570
|
+
\`vlt skills link\` saves \`allow-skills\` to. For read
|
|
1571
|
+
operations (get, pick, list):
|
|
1569
1572
|
\`all\` shows merged configuration from both user and project
|
|
1570
1573
|
files (default). For write operations (set, delete, edit):
|
|
1571
1574
|
defaults to \`project\`. \`user\` shows/modifies only user-level
|
|
@@ -1761,6 +1764,17 @@ var definition = j2.heading("Configuration").description(
|
|
|
1761
1764
|
\`--config=user\`) after a successful \`install\`,
|
|
1762
1765
|
\`add\` or \`update\`. Values a config file already
|
|
1763
1766
|
has are left alone.`
|
|
1767
|
+
},
|
|
1768
|
+
"migrate-workspaces": {
|
|
1769
|
+
description: `Save workspaces read from the \`workspaces\` field of
|
|
1770
|
+
the root \`package.json\` or from
|
|
1771
|
+
\`pnpm-workspace.yaml\` to the project \`vlt.json\` on
|
|
1772
|
+
\`vlt install\`. \`vlt.json\` then takes precedence.
|
|
1773
|
+
|
|
1774
|
+
Set \`--no-migrate-workspaces\` to skip this; an
|
|
1775
|
+
already saved \`workspaces\` field stays until
|
|
1776
|
+
removed.`,
|
|
1777
|
+
default: true
|
|
1764
1778
|
}
|
|
1765
1779
|
}).opt({
|
|
1766
1780
|
"save-prefix": {
|
|
@@ -1825,6 +1839,38 @@ var definition = j2.heading("Configuration").description(
|
|
|
1825
1839
|
Runs scripts only for direct dependencies of the current project and any occurrences
|
|
1826
1840
|
of a specific dependency with the name "my-package" anywhere in the dependency graph.`
|
|
1827
1841
|
}
|
|
1842
|
+
}).opt({
|
|
1843
|
+
"allow-skills": {
|
|
1844
|
+
hint: "query",
|
|
1845
|
+
description: `Link the agent skills (folders with a \`SKILL.md\`) shipped by
|
|
1846
|
+
installed packages matching this DSS query into
|
|
1847
|
+
the project's agent skill dirs (see \`skills-dir\`)
|
|
1848
|
+
after \`install\`, \`ci\`, \`update\` or
|
|
1849
|
+
\`uninstall\`. End a selector with
|
|
1850
|
+
\`:skill(<name>, \u2026)\` to pick single skills (\`*\`
|
|
1851
|
+
globs, double-quoted names). Unset (the default) or
|
|
1852
|
+
\`:not(*)\` links nothing and skips all skills work.
|
|
1853
|
+
|
|
1854
|
+
\`vlt install --allow-skills=<query>\` saves the query
|
|
1855
|
+
to the project \`vlt.json\`; \`vlt skills link
|
|
1856
|
+
[<query>]\` sets, saves and applies it.
|
|
1857
|
+
|
|
1858
|
+
Example: --allow-skills="#agent-browser:skill(agent-browser)"
|
|
1859
|
+
Links the agent-browser skill from a package with the same name.`
|
|
1860
|
+
}
|
|
1861
|
+
}).optList({
|
|
1862
|
+
"skills-dir": {
|
|
1863
|
+
hint: "path",
|
|
1864
|
+
description: `Dirs to link agent skills into (see \`allow-skills\`),
|
|
1865
|
+
relative to the project root. Replaces detection:
|
|
1866
|
+
\`.agents/skills\`, plus \`<folder>/skills\` for each
|
|
1867
|
+
agent folder at the project root (e.g. \`.claude/\`),
|
|
1868
|
+
\`.claude/skills\` inside Claude Code, and existing
|
|
1869
|
+
\`.<name>/skills\` dirs. An empty list (\`[]\` in
|
|
1870
|
+
vlt.json, or \`--skills-dir=\`) links nothing. Each
|
|
1871
|
+
dir must be inside the project, not in
|
|
1872
|
+
node_modules.`
|
|
1873
|
+
}
|
|
1828
1874
|
}).opt({
|
|
1829
1875
|
access: {
|
|
1830
1876
|
description: "Set the access level of the package",
|
|
@@ -9,20 +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
|
-
asUnknownSpecPrefix
|
|
14
|
-
} from "./chunk-THSYN5EK.js";
|
|
15
12
|
import {
|
|
16
13
|
addKey,
|
|
17
14
|
asDependency
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2U4PVHP4.js";
|
|
16
|
+
import {
|
|
17
|
+
asUnknownSpecPrefix
|
|
18
|
+
} from "./chunk-UZ6ICZE3.js";
|
|
19
19
|
import {
|
|
20
20
|
joinDepIDTuple,
|
|
21
21
|
splitDepID
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-F7NPYSI2.js";
|
|
23
23
|
import {
|
|
24
24
|
Spec
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LUVDMEW4.js";
|
|
26
26
|
|
|
27
27
|
// ../../src/cli-sdk/src/parse-add-remove-args.ts
|
|
28
28
|
import { isAbsolute, relative, resolve } from "node:path";
|
|
@@ -11,12 +11,12 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
Spec as Spec2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LUVDMEW4.js";
|
|
15
15
|
import {
|
|
16
16
|
Spec,
|
|
17
17
|
currentDefaultRegistryName,
|
|
18
18
|
defaultRegistryName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6LZM3I4Q.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -865,6 +865,7 @@ var graphRunSync = (options) => {
|
|
|
865
865
|
};
|
|
866
866
|
|
|
867
867
|
export {
|
|
868
|
+
isDepID,
|
|
868
869
|
asDepID,
|
|
869
870
|
joinDepIDTuple,
|
|
870
871
|
splitDepID,
|
|
@@ -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.
|
|
17
|
+
version: "1.5.0",
|
|
18
18
|
repository: {
|
|
19
19
|
type: "git",
|
|
20
20
|
url: "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
stderr
|
|
14
|
+
} from "./chunk-WHWPAYZY.js";
|
|
15
|
+
import {
|
|
16
|
+
migratableWSConfig,
|
|
17
|
+
resolveWSConfig
|
|
18
|
+
} from "./chunk-C6ZVVEFV.js";
|
|
19
|
+
import {
|
|
20
|
+
save
|
|
21
|
+
} from "./chunk-HTOTG4TS.js";
|
|
22
|
+
|
|
23
|
+
// ../../src/cli-sdk/src/migrate-workspaces.ts
|
|
24
|
+
var found = (conf) => {
|
|
25
|
+
const resolved = resolveWSConfig(
|
|
26
|
+
conf.options.projectRoot,
|
|
27
|
+
conf.options.packageJson,
|
|
28
|
+
false
|
|
29
|
+
);
|
|
30
|
+
const workspaces = migratableWSConfig(resolved);
|
|
31
|
+
const { source } = resolved;
|
|
32
|
+
if (!workspaces?.length || !source) return;
|
|
33
|
+
return { source, workspaces };
|
|
34
|
+
};
|
|
35
|
+
var migrateWorkspaces = (conf) => {
|
|
36
|
+
if (!conf.options["migrate-workspaces"]) return;
|
|
37
|
+
const migrated = found(conf);
|
|
38
|
+
if (migrated) save("workspaces", migrated.workspaces);
|
|
39
|
+
return migrated;
|
|
40
|
+
};
|
|
41
|
+
var warnIgnoredWorkspaces = (conf) => {
|
|
42
|
+
const { loglevel } = conf.values;
|
|
43
|
+
if (loglevel === "silent" || loglevel === "error") return;
|
|
44
|
+
let migrated;
|
|
45
|
+
try {
|
|
46
|
+
migrated = found(conf);
|
|
47
|
+
} catch {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (!migrated) return;
|
|
51
|
+
stderr(
|
|
52
|
+
`Warning: vlt ci reads workspaces from vlt.json only; ignoring ${migrated.source}, its workspaces are not installed. Run \`vlt install\` to save them to vlt.json, or add them there.`
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
migrateWorkspaces,
|
|
58
|
+
warnIgnoredWorkspaces
|
|
59
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
13
|
+
// ../../src/cli-sdk/src/publish-config.ts
|
|
14
|
+
var getPublishConfig = (manifest) => {
|
|
15
|
+
const pc = manifest.publishConfig;
|
|
16
|
+
if (pc && typeof pc === "object") {
|
|
17
|
+
return pc;
|
|
18
|
+
}
|
|
19
|
+
return void 0;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
getPublishConfig
|
|
24
|
+
};
|