@agentconnect.md/cli 1.14.0-rc.5 → 1.14.0-rc.7
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 +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3060,7 +3060,7 @@ function resolveDaemonEntry(root) {
|
|
|
3060
3060
|
const entry = currentEntry(root);
|
|
3061
3061
|
if (!existsSync(entry)) {
|
|
3062
3062
|
if (process.env.AGENTCONNECT_DAEMON_ENTRY) throw new Error(`AGENTCONNECT_DAEMON_ENTRY points at a missing file: ${entry}`);
|
|
3063
|
-
throw new Error(`no active daemon at ${currentLink(root)} — install one with \`agentconnect
|
|
3063
|
+
throw new Error(`no active daemon at ${currentLink(root)} — install one with \`agentconnect install --channel stable\``);
|
|
3064
3064
|
}
|
|
3065
3065
|
return entry;
|
|
3066
3066
|
}
|
|
@@ -8221,7 +8221,7 @@ const AgentSpec = object({
|
|
|
8221
8221
|
name: string(),
|
|
8222
8222
|
displayName: string().nullable().optional(),
|
|
8223
8223
|
iconUrl: string().url().nullable().optional(),
|
|
8224
|
-
description: string().optional(),
|
|
8224
|
+
description: string().nullable().optional(),
|
|
8225
8225
|
runtime: string().optional(),
|
|
8226
8226
|
model: string().nullable().optional(),
|
|
8227
8227
|
reasoningEffort: string().nullable().optional(),
|
|
@@ -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",
|
|
@@ -14579,7 +14580,7 @@ function versionList(root) {
|
|
|
14579
14580
|
const cur = currentVersion(root);
|
|
14580
14581
|
console.log(`channel: ${meta.channel}`);
|
|
14581
14582
|
if (installed.length === 0) {
|
|
14582
|
-
console.log("installed: none — run `agentconnect
|
|
14583
|
+
console.log("installed: none — run `agentconnect install --channel stable`");
|
|
14583
14584
|
return;
|
|
14584
14585
|
}
|
|
14585
14586
|
console.log("installed:");
|
|
@@ -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, {
|