@agentconnect.md/cli 1.14.0-rc.5 → 1.14.0-rc.6
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/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9863,6 +9863,7 @@ const CLI_OWNED_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
9863
9863
|
"down",
|
|
9864
9864
|
"restart",
|
|
9865
9865
|
"status",
|
|
9866
|
+
"install",
|
|
9866
9867
|
"install-service",
|
|
9867
9868
|
"uninstall-service",
|
|
9868
9869
|
"login",
|
|
@@ -14591,14 +14592,19 @@ function versionList(root) {
|
|
|
14591
14592
|
async function versionInstall(root, opts) {
|
|
14592
14593
|
await withVersionLock(root, "install", async () => {
|
|
14593
14594
|
const channel = opts.channel ?? readMeta(root).channel;
|
|
14594
|
-
|
|
14595
|
+
const target = await resolveTarget({
|
|
14595
14596
|
to: opts.to,
|
|
14596
14597
|
channel
|
|
14597
|
-
})
|
|
14598
|
+
});
|
|
14599
|
+
await installTarget(root, target, note);
|
|
14598
14600
|
if (opts.channel) writeMeta(root, {
|
|
14599
14601
|
...readMeta(root),
|
|
14600
14602
|
channel: opts.channel
|
|
14601
14603
|
});
|
|
14604
|
+
if (!currentVersion(root)) {
|
|
14605
|
+
useVersion(root, target.version);
|
|
14606
|
+
note(`current → ${target.version}`);
|
|
14607
|
+
}
|
|
14602
14608
|
});
|
|
14603
14609
|
}
|
|
14604
14610
|
async function versionUse(root, version) {
|
|
@@ -14771,6 +14777,16 @@ async function main() {
|
|
|
14771
14777
|
fail("version prune", err);
|
|
14772
14778
|
}
|
|
14773
14779
|
});
|
|
14780
|
+
program.command("install [version]").description("Download, unpack, and (on a fresh host) activate a daemon version").option("--channel <channel>", "stable|rc (default: the stored channel)").action(async (v, o) => {
|
|
14781
|
+
try {
|
|
14782
|
+
await versionInstall(root, {
|
|
14783
|
+
to: v,
|
|
14784
|
+
channel: asChannel(o.channel)
|
|
14785
|
+
});
|
|
14786
|
+
} catch (err) {
|
|
14787
|
+
fail("install", err);
|
|
14788
|
+
}
|
|
14789
|
+
});
|
|
14774
14790
|
program.command("upgrade").description("Install the latest daemon version, switch to it, and (with --restart) restart + health-check").option("--to <version>", "upgrade to a specific version instead of the channel latest").option("--channel <channel>", "stable|rc (default: the stored channel)").option("--restart", "restart the service now and roll back if it fails its health check").action(async (o) => {
|
|
14775
14791
|
try {
|
|
14776
14792
|
await runUpgrade(root, {
|