@vm0/cli 9.116.1 → 9.116.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
@@ -72,7 +72,7 @@ import {
72
72
  source_default,
73
73
  volumeConfigSchema,
74
74
  withErrorHandler
75
- } from "./chunk-5FGI5P6M.js";
75
+ } from "./chunk-PK7CJPFD.js";
76
76
 
77
77
  // src/index.ts
78
78
  init_esm_shims();
@@ -465,7 +465,7 @@ function getConfigPath() {
465
465
  return join(homedir(), ".vm0", "config.json");
466
466
  }
467
467
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
468
- console.log(source_default.bold(`VM0 CLI v${"9.116.1"}`));
468
+ console.log(source_default.bold(`VM0 CLI v${"9.116.3"}`));
469
469
  console.log();
470
470
  const config = await loadConfig();
471
471
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4494,7 +4494,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4494
4494
  options.autoUpdate = false;
4495
4495
  }
4496
4496
  if (options.autoUpdate !== false) {
4497
- await startSilentUpgrade("9.116.1");
4497
+ await startSilentUpgrade("9.116.3");
4498
4498
  }
4499
4499
  try {
4500
4500
  let result;
@@ -4544,16 +4544,6 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4544
4544
  ).option(
4545
4545
  "--artifact <name[:version]>",
4546
4546
  "Artifact storage (format: name or name:version)"
4547
- ).addOption(
4548
- new Option(
4549
- "--artifact-name <name>",
4550
- "[deprecated: use --artifact] Artifact storage name"
4551
- ).hideHelp()
4552
- ).addOption(
4553
- new Option(
4554
- "--artifact-version <hash>",
4555
- "[deprecated: use --artifact] Artifact version hash"
4556
- ).hideHelp()
4557
4547
  ).option(
4558
4548
  "--volume-version <name=version>",
4559
4549
  "Volume version override (repeatable, format: volumeName=version)",
@@ -4589,7 +4579,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4589
4579
  withErrorHandler(
4590
4580
  async (identifier, prompt, options) => {
4591
4581
  if (options.autoUpdate !== false) {
4592
- await startSilentUpgrade("9.116.1");
4582
+ await startSilentUpgrade("9.116.3");
4593
4583
  }
4594
4584
  const { name, version } = parseIdentifier(identifier);
4595
4585
  let composeId;
@@ -4629,24 +4619,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4629
4619
  secretNames,
4630
4620
  options.envFile
4631
4621
  );
4632
- let artifactName = options.artifactName;
4633
- let artifactVersion = options.artifactVersion;
4634
- if (options.artifact) {
4635
- if (options.artifactName || options.artifactVersion) {
4636
- throw new Error(
4637
- "Cannot use --artifact with --artifact-name or --artifact-version. Use --artifact <name[:version]> instead."
4638
- );
4639
- }
4640
- const parsed = parseArtifact(options.artifact);
4641
- artifactName = parsed.artifactName;
4642
- artifactVersion = parsed.artifactVersion;
4643
- } else if (options.artifactName) {
4644
- console.error(
4645
- source_default.yellow(
4646
- "\u26A0 --artifact-name is deprecated, use --artifact <name[:version]> instead"
4647
- )
4648
- );
4649
- }
4622
+ const parsedArtifact = parseArtifact(options.artifact);
4650
4623
  const volumeVersions = Object.keys(options.volumeVersion).length > 0 ? options.volumeVersion : void 0;
4651
4624
  const additionalVolumes = options.volume.length > 0 ? options.volume : void 0;
4652
4625
  const response = await createRun({
@@ -4655,8 +4628,8 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4655
4628
  prompt,
4656
4629
  vars,
4657
4630
  secrets,
4658
- artifactName,
4659
- artifactVersion,
4631
+ artifactName: parsedArtifact?.artifactName,
4632
+ artifactVersion: parsedArtifact?.artifactVersion,
4660
4633
  memoryName: options.memory,
4661
4634
  volumeVersions,
4662
4635
  additionalVolumes,
@@ -6380,7 +6353,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
6380
6353
  withErrorHandler(
6381
6354
  async (prompt, options) => {
6382
6355
  if (options.autoUpdate !== false) {
6383
- const shouldExit = await checkAndUpgrade("9.116.1", prompt);
6356
+ const shouldExit = await checkAndUpgrade("9.116.3", prompt);
6384
6357
  if (shouldExit) {
6385
6358
  process.exit(0);
6386
6359
  }
@@ -7147,13 +7120,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
7147
7120
  if (latestVersion === null) {
7148
7121
  throw new Error("Could not check for updates. Please try again later.");
7149
7122
  }
7150
- if (latestVersion === "9.116.1") {
7151
- console.log(source_default.green(`\u2713 Already up to date (${"9.116.1"})`));
7123
+ if (latestVersion === "9.116.3") {
7124
+ console.log(source_default.green(`\u2713 Already up to date (${"9.116.3"})`));
7152
7125
  return;
7153
7126
  }
7154
7127
  console.log(
7155
7128
  source_default.yellow(
7156
- `Current version: ${"9.116.1"} -> Latest version: ${latestVersion}`
7129
+ `Current version: ${"9.116.3"} -> Latest version: ${latestVersion}`
7157
7130
  )
7158
7131
  );
7159
7132
  console.log();
@@ -7180,7 +7153,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
7180
7153
  const success = await performUpgrade(packageManager);
7181
7154
  if (success) {
7182
7155
  console.log(
7183
- source_default.green(`\u2713 Upgraded from ${"9.116.1"} to ${latestVersion}`)
7156
+ source_default.green(`\u2713 Upgraded from ${"9.116.3"} to ${latestVersion}`)
7184
7157
  );
7185
7158
  return;
7186
7159
  }
@@ -7247,7 +7220,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
7247
7220
 
7248
7221
  // src/index.ts
7249
7222
  var program = new Command();
7250
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.1");
7223
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.3");
7251
7224
  program.addCommand(authCommand);
7252
7225
  program.addCommand(infoCommand);
7253
7226
  program.addCommand(composeCommand);