@vm0/cli 9.85.1 → 9.85.2

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
@@ -51,7 +51,7 @@ import {
51
51
  searchLogs,
52
52
  volumeConfigSchema,
53
53
  withErrorHandler
54
- } from "./chunk-FEUDHROP.js";
54
+ } from "./chunk-HODD5NE4.js";
55
55
 
56
56
  // src/index.ts
57
57
  import { Command as Command44 } from "commander";
@@ -436,7 +436,7 @@ function getConfigPath() {
436
436
  return join(homedir(), ".vm0", "config.json");
437
437
  }
438
438
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
439
- console.log(chalk3.bold(`VM0 CLI v${"9.85.1"}`));
439
+ console.log(chalk3.bold(`VM0 CLI v${"9.85.2"}`));
440
440
  console.log();
441
441
  const config = await loadConfig();
442
442
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1540,7 +1540,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1540
1540
  options.autoUpdate = false;
1541
1541
  }
1542
1542
  if (options.autoUpdate !== false) {
1543
- await startSilentUpgrade("9.85.1");
1543
+ await startSilentUpgrade("9.85.2");
1544
1544
  }
1545
1545
  try {
1546
1546
  let result;
@@ -2363,7 +2363,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
2363
2363
  withErrorHandler(
2364
2364
  async (identifier, prompt, options) => {
2365
2365
  if (options.autoUpdate !== false) {
2366
- await startSilentUpgrade("9.85.1");
2366
+ await startSilentUpgrade("9.85.2");
2367
2367
  }
2368
2368
  const { org, name, version } = parseIdentifier(identifier);
2369
2369
  let composeId;
@@ -4119,7 +4119,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
4119
4119
  withErrorHandler(
4120
4120
  async (prompt, options) => {
4121
4121
  if (options.autoUpdate !== false) {
4122
- const shouldExit = await checkAndUpgrade("9.85.1", prompt);
4122
+ const shouldExit = await checkAndUpgrade("9.85.2", prompt);
4123
4123
  if (shouldExit) {
4124
4124
  process.exit(0);
4125
4125
  }
@@ -4859,13 +4859,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4859
4859
  if (latestVersion === null) {
4860
4860
  throw new Error("Could not check for updates. Please try again later.");
4861
4861
  }
4862
- if (latestVersion === "9.85.1") {
4863
- console.log(chalk36.green(`\u2713 Already up to date (${"9.85.1"})`));
4862
+ if (latestVersion === "9.85.2") {
4863
+ console.log(chalk36.green(`\u2713 Already up to date (${"9.85.2"})`));
4864
4864
  return;
4865
4865
  }
4866
4866
  console.log(
4867
4867
  chalk36.yellow(
4868
- `Current version: ${"9.85.1"} -> Latest version: ${latestVersion}`
4868
+ `Current version: ${"9.85.2"} -> Latest version: ${latestVersion}`
4869
4869
  )
4870
4870
  );
4871
4871
  console.log();
@@ -4892,7 +4892,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4892
4892
  const success = await performUpgrade(packageManager);
4893
4893
  if (success) {
4894
4894
  console.log(
4895
- chalk36.green(`\u2713 Upgraded from ${"9.85.1"} to ${latestVersion}`)
4895
+ chalk36.green(`\u2713 Upgraded from ${"9.85.2"} to ${latestVersion}`)
4896
4896
  );
4897
4897
  return;
4898
4898
  }
@@ -4960,7 +4960,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4960
4960
 
4961
4961
  // src/index.ts
4962
4962
  var program = new Command44();
4963
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.85.1");
4963
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.85.2");
4964
4964
  program.addCommand(authCommand);
4965
4965
  program.addCommand(infoCommand);
4966
4966
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.85.1",
3
+ "version": "9.85.2",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -84,7 +84,7 @@ import {
84
84
  updateZeroUserPreferences,
85
85
  upsertZeroOrgModelProvider,
86
86
  withErrorHandler
87
- } from "./chunk-FEUDHROP.js";
87
+ } from "./chunk-HODD5NE4.js";
88
88
 
89
89
  // src/zero.ts
90
90
  import { Command as Command59 } from "commander";
@@ -3038,6 +3038,11 @@ var questionCommand = new Command57().name("question").description("Ask the user
3038
3038
  }
3039
3039
  opt.description = descItems[i];
3040
3040
  }
3041
+ if (optionItems.length === 0) {
3042
+ throw new Error(
3043
+ 'At least one --option is required. Example: zero ask-user question "Pick one" --option "Yes" --option "No"'
3044
+ );
3045
+ }
3041
3046
  const timeoutMs = parseInt(options.timeout, 10) * 1e3;
3042
3047
  if (isNaN(timeoutMs) || timeoutMs <= 0) {
3043
3048
  throw new Error("--timeout must be a positive number of seconds");
@@ -3045,7 +3050,7 @@ var questionCommand = new Command57().name("question").description("Ask the user
3045
3050
  const questionItem = {
3046
3051
  question,
3047
3052
  header: options.header,
3048
- options: optionItems.length > 0 ? optionItems : void 0,
3053
+ options: optionItems,
3049
3054
  multiSelect: options.multiSelect
3050
3055
  };
3051
3056
  const { pendingId } = await postAskUserQuestion({
@@ -3118,7 +3123,7 @@ function registerZeroCommands(prog, commands) {
3118
3123
  var program = new Command59();
3119
3124
  program.name("zero").description(
3120
3125
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
3121
- ).version("9.85.1").addHelpText(
3126
+ ).version("9.85.2").addHelpText(
3122
3127
  "after",
3123
3128
  `
3124
3129
  Common scenarios: