@agentconnect.md/cli 1.13.0 → 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 CHANGED
@@ -8227,6 +8227,7 @@ const AgentSpec = object({
8227
8227
  reasoningEffort: string().nullable().optional(),
8228
8228
  executionMode: string().optional(),
8229
8229
  outputMode: _enum([
8230
+ "none",
8230
8231
  "minimal",
8231
8232
  "low",
8232
8233
  "medium",
@@ -9862,6 +9863,7 @@ const CLI_OWNED_COMMANDS = /* @__PURE__ */ new Set([
9862
9863
  "down",
9863
9864
  "restart",
9864
9865
  "status",
9866
+ "install",
9865
9867
  "install-service",
9866
9868
  "uninstall-service",
9867
9869
  "login",
@@ -14590,14 +14592,19 @@ function versionList(root) {
14590
14592
  async function versionInstall(root, opts) {
14591
14593
  await withVersionLock(root, "install", async () => {
14592
14594
  const channel = opts.channel ?? readMeta(root).channel;
14593
- await installTarget(root, await resolveTarget({
14595
+ const target = await resolveTarget({
14594
14596
  to: opts.to,
14595
14597
  channel
14596
- }), note);
14598
+ });
14599
+ await installTarget(root, target, note);
14597
14600
  if (opts.channel) writeMeta(root, {
14598
14601
  ...readMeta(root),
14599
14602
  channel: opts.channel
14600
14603
  });
14604
+ if (!currentVersion(root)) {
14605
+ useVersion(root, target.version);
14606
+ note(`current → ${target.version}`);
14607
+ }
14601
14608
  });
14602
14609
  }
14603
14610
  async function versionUse(root, version) {
@@ -14770,6 +14777,16 @@ async function main() {
14770
14777
  fail("version prune", err);
14771
14778
  }
14772
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
+ });
14773
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) => {
14774
14791
  try {
14775
14792
  await runUpgrade(root, {