@vm0/cli 9.90.1 → 9.90.3

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/index.js CHANGED
@@ -33,7 +33,6 @@ import {
33
33
  getStorageDownload,
34
34
  getSystemLog,
35
35
  getToken,
36
- getZeroOrg,
37
36
  isInteractive,
38
37
  isUUID,
39
38
  listRuns,
@@ -60,7 +59,7 @@ import {
60
59
  showNextSteps,
61
60
  volumeConfigSchema,
62
61
  withErrorHandler
63
- } from "./chunk-RJS4OQ2I.js";
62
+ } from "./chunk-HZQ6GQVS.js";
64
63
 
65
64
  // src/index.ts
66
65
  import { Command as Command44 } from "commander";
@@ -445,7 +444,7 @@ function getConfigPath() {
445
444
  return join(homedir(), ".vm0", "config.json");
446
445
  }
447
446
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
448
- console.log(chalk3.bold(`VM0 CLI v${"9.90.1"}`));
447
+ console.log(chalk3.bold(`VM0 CLI v${"9.90.3"}`));
449
448
  console.log();
450
449
  const config = await loadConfig();
451
450
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1430,7 +1429,7 @@ async function finalizeCompose(config, agent, options) {
1430
1429
  }
1431
1430
  const response = await createOrUpdateCompose({ content: config });
1432
1431
  const shortVersionId = response.versionId.slice(0, 8);
1433
- const displayName = options.json ? response.name : `${(await getZeroOrg()).slug}/${response.name}`;
1432
+ const displayName = response.name;
1434
1433
  const result = {
1435
1434
  composeId: response.composeId,
1436
1435
  composeName: response.name,
@@ -1548,7 +1547,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1548
1547
  options.autoUpdate = false;
1549
1548
  }
1550
1549
  if (options.autoUpdate !== false) {
1551
- await startSilentUpgrade("9.90.1");
1550
+ await startSilentUpgrade("9.90.3");
1552
1551
  }
1553
1552
  try {
1554
1553
  let result;
@@ -1578,7 +1577,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1578
1577
  import { Command as Command8, Option as Option2 } from "commander";
1579
1578
  var mainRunCommand = new Command8().name("run").description("Run an agent").argument(
1580
1579
  "<agent-name>",
1581
- "Agent reference: [org/]name[:version] (e.g., 'my-agent', 'lancy/my-agent:abc123', 'my-agent:latest')"
1580
+ "Agent reference: name[:version] (e.g., 'my-agent', 'my-agent:abc123', 'my-agent:latest')"
1582
1581
  ).argument("<prompt>", "Prompt for the agent").option(
1583
1582
  "--env-file <path>",
1584
1583
  "Load environment variables from file (priority: CLI flags > file > env vars)"
@@ -1625,9 +1624,9 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1625
1624
  withErrorHandler(
1626
1625
  async (identifier, prompt, options) => {
1627
1626
  if (options.autoUpdate !== false) {
1628
- await startSilentUpgrade("9.90.1");
1627
+ await startSilentUpgrade("9.90.3");
1629
1628
  }
1630
- const { org, name, version } = parseIdentifier(identifier);
1629
+ const { name, version } = parseIdentifier(identifier);
1631
1630
  let composeId;
1632
1631
  let composeContent;
1633
1632
  if (isUUID(name)) {
@@ -1635,7 +1634,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1635
1634
  composeId = compose.id;
1636
1635
  composeContent = compose.content;
1637
1636
  } else {
1638
- const compose = await getComposeByName(name, org);
1637
+ const compose = await getComposeByName(name);
1639
1638
  if (!compose) {
1640
1639
  throw new Error(`Agent not found: ${identifier}`, {
1641
1640
  cause: new Error(
@@ -3394,7 +3393,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
3394
3393
  withErrorHandler(
3395
3394
  async (prompt, options) => {
3396
3395
  if (options.autoUpdate !== false) {
3397
- const shouldExit = await checkAndUpgrade("9.90.1", prompt);
3396
+ const shouldExit = await checkAndUpgrade("9.90.3", prompt);
3398
3397
  if (shouldExit) {
3399
3398
  process.exit(0);
3400
3399
  }
@@ -4146,13 +4145,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4146
4145
  if (latestVersion === null) {
4147
4146
  throw new Error("Could not check for updates. Please try again later.");
4148
4147
  }
4149
- if (latestVersion === "9.90.1") {
4150
- console.log(chalk33.green(`\u2713 Already up to date (${"9.90.1"})`));
4148
+ if (latestVersion === "9.90.3") {
4149
+ console.log(chalk33.green(`\u2713 Already up to date (${"9.90.3"})`));
4151
4150
  return;
4152
4151
  }
4153
4152
  console.log(
4154
4153
  chalk33.yellow(
4155
- `Current version: ${"9.90.1"} -> Latest version: ${latestVersion}`
4154
+ `Current version: ${"9.90.3"} -> Latest version: ${latestVersion}`
4156
4155
  )
4157
4156
  );
4158
4157
  console.log();
@@ -4179,7 +4178,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4179
4178
  const success = await performUpgrade(packageManager);
4180
4179
  if (success) {
4181
4180
  console.log(
4182
- chalk33.green(`\u2713 Upgraded from ${"9.90.1"} to ${latestVersion}`)
4181
+ chalk33.green(`\u2713 Upgraded from ${"9.90.3"} to ${latestVersion}`)
4183
4182
  );
4184
4183
  return;
4185
4184
  }
@@ -4247,7 +4246,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4247
4246
 
4248
4247
  // src/index.ts
4249
4248
  var program = new Command44();
4250
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.90.1");
4249
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.90.3");
4251
4250
  program.addCommand(authCommand);
4252
4251
  program.addCommand(infoCommand);
4253
4252
  program.addCommand(composeCommand);