@vm0/cli 9.145.10 → 9.145.12

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
@@ -65,7 +65,7 @@ import {
65
65
  source_default,
66
66
  volumeConfigSchema,
67
67
  withErrorHandler
68
- } from "./chunk-2TVOATAU.js";
68
+ } from "./chunk-NJVYN2XC.js";
69
69
  import {
70
70
  __toESM,
71
71
  init_esm_shims
@@ -398,7 +398,7 @@ function getConfigPath() {
398
398
  return join(os.homedir(), ".vm0", "config.json");
399
399
  }
400
400
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
401
- console.log(source_default.bold(`VM0 CLI v${"9.145.10"}`));
401
+ console.log(source_default.bold(`VM0 CLI v${"9.145.12"}`));
402
402
  console.log();
403
403
  const config = await loadConfig();
404
404
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4291,7 +4291,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4291
4291
  options.autoUpdate = false;
4292
4292
  }
4293
4293
  if (options.autoUpdate !== false) {
4294
- await startSilentUpgrade("9.145.10");
4294
+ await startSilentUpgrade("9.145.12");
4295
4295
  }
4296
4296
  try {
4297
4297
  let result;
@@ -4383,7 +4383,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4383
4383
  withErrorHandler(
4384
4384
  async (identifier, prompt, options) => {
4385
4385
  if (options.autoUpdate !== false) {
4386
- await startSilentUpgrade("9.145.10");
4386
+ await startSilentUpgrade("9.145.12");
4387
4387
  }
4388
4388
  const { name, version } = parseIdentifier(identifier);
4389
4389
  let composeId;
@@ -6170,13 +6170,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6170
6170
  if (latestVersion === null) {
6171
6171
  throw new Error("Could not check for updates. Please try again later.");
6172
6172
  }
6173
- if (latestVersion === "9.145.10") {
6174
- console.log(source_default.green(`\u2713 Already up to date (${"9.145.10"})`));
6173
+ if (latestVersion === "9.145.12") {
6174
+ console.log(source_default.green(`\u2713 Already up to date (${"9.145.12"})`));
6175
6175
  return;
6176
6176
  }
6177
6177
  console.log(
6178
6178
  source_default.yellow(
6179
- `Current version: ${"9.145.10"} -> Latest version: ${latestVersion}`
6179
+ `Current version: ${"9.145.12"} -> Latest version: ${latestVersion}`
6180
6180
  )
6181
6181
  );
6182
6182
  console.log();
@@ -6203,7 +6203,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6203
6203
  const success = await performUpgrade(packageManager);
6204
6204
  if (success) {
6205
6205
  console.log(
6206
- source_default.green(`\u2713 Upgraded from ${"9.145.10"} to ${latestVersion}`)
6206
+ source_default.green(`\u2713 Upgraded from ${"9.145.12"} to ${latestVersion}`)
6207
6207
  );
6208
6208
  return;
6209
6209
  }
@@ -6270,7 +6270,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6270
6270
 
6271
6271
  // src/index.ts
6272
6272
  var program = new Command();
6273
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.145.10");
6273
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.145.12");
6274
6274
  program.addCommand(authCommand);
6275
6275
  program.addCommand(infoCommand);
6276
6276
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.145.10",
3
+ "version": "9.145.12",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -128,7 +128,7 @@ import {
128
128
  upsertZeroOrgModelProvider,
129
129
  withErrorHandler,
130
130
  zeroAgentCustomSkillNameSchema
131
- } from "./chunk-2TVOATAU.js";
131
+ } from "./chunk-NJVYN2XC.js";
132
132
  import {
133
133
  __toESM,
134
134
  init_esm_shims
@@ -2725,12 +2725,18 @@ How connectors work:
2725
2725
 
2726
2726
  // src/commands/zero/doctor/generate.ts
2727
2727
  init_esm_shims();
2728
- var BUILT_IN_GENERATION_OPTIONS = {
2728
+ var BUILT_IN_GENERATION_PROVIDERS = {
2729
2729
  image: {
2730
- description: "If the user did not explicitly request a specific connector or provider, you can use the official generation capability. Run `zero official generate image -h` for options."
2730
+ label: "Built-in",
2731
+ model: "gpt-image-2",
2732
+ command: "zero built-in generate image -h",
2733
+ reason: "available without connector setup"
2731
2734
  },
2732
2735
  voice: {
2733
- description: "If the user did not explicitly request a specific connector or provider, you can use the official generation capability. Run `zero official generate voice -h` for options."
2736
+ label: "Built-in",
2737
+ model: "gpt-4o-mini-tts",
2738
+ command: "zero built-in generate voice -h",
2739
+ reason: "available without connector setup"
2734
2740
  }
2735
2741
  };
2736
2742
  var GENERATION_TYPE_ORDER = [
@@ -2769,7 +2775,7 @@ function getAvailableGenerationTypes() {
2769
2775
  }
2770
2776
  }
2771
2777
  return GENERATION_TYPE_ORDER.filter((type) => {
2772
- return type in BUILT_IN_GENERATION_OPTIONS || available.has(getConnectorGenerationType(type));
2778
+ return type in BUILT_IN_GENERATION_PROVIDERS || available.has(getConnectorGenerationType(type));
2773
2779
  });
2774
2780
  }
2775
2781
  function parseGenerationType(value) {
@@ -2811,7 +2817,7 @@ function getAction(status, type, label, agentId, platformOrigin) {
2811
2817
  if (agentId) {
2812
2818
  return {
2813
2819
  actionLabel: `Connect and authorize ${label}`,
2814
- actionUrl: `${platformOrigin}/connectors/${type}/authorize?agentId=${agentId}`
2820
+ actionUrl: `${platformOrigin}/connectors/${type}/connect?agentId=${agentId}`
2815
2821
  };
2816
2822
  }
2817
2823
  return {
@@ -2890,12 +2896,13 @@ function renderActions(candidates) {
2890
2896
  console.log(` [${candidate.actionLabel}](${candidate.actionUrl})`);
2891
2897
  }
2892
2898
  }
2893
- function renderBuiltInOption(generationType) {
2894
- const option = BUILT_IN_GENERATION_OPTIONS[generationType];
2895
- if (!option) return;
2899
+ function renderBuiltInProvider(generationType) {
2900
+ const provider = BUILT_IN_GENERATION_PROVIDERS[generationType];
2901
+ if (!provider) return;
2896
2902
  console.log("");
2897
- console.log("Fallback option:");
2898
- console.log(` ${option.description}`);
2903
+ console.log("Built-in provider:");
2904
+ console.log(` vm0 ${provider.label} Model: ${provider.model}`);
2905
+ console.log(` Use: ${provider.command}`);
2899
2906
  }
2900
2907
  function renderText(params) {
2901
2908
  const { generationType, agentId, ready, other, showAll } = params;
@@ -2912,19 +2919,20 @@ function renderText(params) {
2912
2919
  );
2913
2920
  console.log("");
2914
2921
  }
2922
+ console.log("Connectors:");
2915
2923
  if (ready.length > 0) {
2916
2924
  renderRows(ready);
2917
2925
  } else {
2918
- console.log(`No ready ${generationType} generation connectors found.`);
2926
+ console.log(` No ready ${generationType} generation connectors found.`);
2919
2927
  }
2920
- renderBuiltInOption(generationType);
2928
+ renderBuiltInProvider(generationType);
2921
2929
  if (showAll && other.length > 0) {
2922
2930
  console.log("");
2923
2931
  console.log(`Other ${generationType} generation connectors`);
2924
2932
  console.log("");
2925
2933
  renderRows(other);
2926
2934
  }
2927
- if (ready.length === 0 || showAll) {
2935
+ if (showAll) {
2928
2936
  renderActions(other);
2929
2937
  }
2930
2938
  }
@@ -2977,7 +2985,7 @@ var generateCommand = new Command().name("generate").description("Show generatio
2977
2985
  agentId: agentId ?? null,
2978
2986
  choices: ready,
2979
2987
  otherCandidates: other,
2980
- builtInOption: BUILT_IN_GENERATION_OPTIONS[generationType] ?? null
2988
+ builtInProvider: BUILT_IN_GENERATION_PROVIDERS[generationType] ?? null
2981
2989
  },
2982
2990
  null,
2983
2991
  2
@@ -7130,13 +7138,13 @@ Examples:
7130
7138
  );
7131
7139
  var zeroComputerUseCommand = new Command().name("computer-use").description("Remote desktop control for cloud agents").addCommand(hostCommand).addCommand(clientCommand);
7132
7140
 
7133
- // src/commands/zero/official/index.ts
7141
+ // src/commands/zero/built-in/index.ts
7134
7142
  init_esm_shims();
7135
7143
 
7136
- // src/commands/zero/official/generate/index.ts
7144
+ // src/commands/zero/built-in/generate/index.ts
7137
7145
  init_esm_shims();
7138
7146
 
7139
- // src/commands/zero/official/generate/image.ts
7147
+ // src/commands/zero/built-in/generate/image.ts
7140
7148
  init_esm_shims();
7141
7149
 
7142
7150
  // src/commands/zero/shared/image-generate.ts
@@ -7207,16 +7215,16 @@ Notes:
7207
7215
  );
7208
7216
  }
7209
7217
 
7210
- // src/commands/zero/official/generate/image.ts
7218
+ // src/commands/zero/built-in/generate/image.ts
7211
7219
  var imageCommand = createImageGenerateCommand({
7212
7220
  name: "image",
7213
- usageCommand: "zero official generate image",
7214
- examples: ` Generate image: zero official generate image --prompt "A watercolor fox"
7215
- Pipe prompt: cat prompt.txt | zero official generate image
7216
- Pick size/quality: zero official generate image --prompt "A poster" --size 1024x1536 --quality high`
7221
+ usageCommand: "zero built-in generate image",
7222
+ examples: ` Generate image: zero built-in generate image --prompt "A watercolor fox"
7223
+ Pipe prompt: cat prompt.txt | zero built-in generate image
7224
+ Pick size/quality: zero built-in generate image --prompt "A poster" --size 1024x1536 --quality high`
7217
7225
  });
7218
7226
 
7219
- // src/commands/zero/official/generate/voice.ts
7227
+ // src/commands/zero/built-in/generate/voice.ts
7220
7228
  init_esm_shims();
7221
7229
 
7222
7230
  // src/commands/zero/shared/voice-generate.ts
@@ -7272,31 +7280,31 @@ Notes:
7272
7280
  );
7273
7281
  }
7274
7282
 
7275
- // src/commands/zero/official/generate/voice.ts
7283
+ // src/commands/zero/built-in/generate/voice.ts
7276
7284
  var voiceCommand = createVoiceGenerateCommand({
7277
7285
  name: "voice",
7278
- usageCommand: "zero official generate voice",
7279
- examples: ` Generate speech: zero official generate voice --text "Hello from vm0"
7280
- Pipe text: cat script.txt | zero official generate voice
7281
- Pick a voice: zero official generate voice --text "Ship it" --voice cedar`
7286
+ usageCommand: "zero built-in generate voice",
7287
+ examples: ` Generate speech: zero built-in generate voice --text "Hello from vm0"
7288
+ Pipe text: cat script.txt | zero built-in generate voice
7289
+ Pick a voice: zero built-in generate voice --text "Ship it" --voice cedar`
7282
7290
  });
7283
7291
 
7284
- // src/commands/zero/official/generate/index.ts
7285
- var generateCommand2 = new Command().name("generate").description("Generate assets with official Zero services").addCommand(imageCommand).addCommand(voiceCommand).addHelpText(
7292
+ // src/commands/zero/built-in/generate/index.ts
7293
+ var generateCommand2 = new Command().name("generate").description("Generate assets with built-in vm0 services").addCommand(imageCommand).addCommand(voiceCommand).addHelpText(
7286
7294
  "after",
7287
7295
  `
7288
7296
  Examples:
7289
- Generate image: zero official generate image --prompt "A watercolor fox"
7290
- Generate speech: zero official generate voice --text "Hello"`
7297
+ Generate image: zero built-in generate image --prompt "A watercolor fox"
7298
+ Generate speech: zero built-in generate voice --text "Hello"`
7291
7299
  );
7292
7300
 
7293
- // src/commands/zero/official/index.ts
7294
- var zeroOfficialCommand = new Command().name("official").description("Use official Zero services").addCommand(generateCommand2).addHelpText(
7301
+ // src/commands/zero/built-in/index.ts
7302
+ var zeroBuiltInCommand = new Command().name("built-in").description("Use built-in vm0 services").addCommand(generateCommand2).addHelpText(
7295
7303
  "after",
7296
7304
  `
7297
7305
  Examples:
7298
- Generate image: zero official generate image --prompt "A watercolor fox"
7299
- Generate speech: zero official generate voice --text "Hello"`
7306
+ Generate image: zero built-in generate image --prompt "A watercolor fox"
7307
+ Generate speech: zero built-in generate voice --text "Hello"`
7300
7308
  );
7301
7309
 
7302
7310
  // src/commands/zero/web/index.ts
@@ -7401,7 +7409,7 @@ var COMMAND_CAPABILITY_MAP = {
7401
7409
  whoami: null,
7402
7410
  "developer-support": null,
7403
7411
  "computer-use": "computer-use:write",
7404
- official: "file:write",
7412
+ "built-in": "file:write",
7405
7413
  web: null
7406
7414
  };
7407
7415
  var DEFAULT_COMMANDS = [
@@ -7423,7 +7431,7 @@ var DEFAULT_COMMANDS = [
7423
7431
  zeroSkillCommand,
7424
7432
  zeroDeveloperSupportCommand,
7425
7433
  zeroComputerUseCommand,
7426
- zeroOfficialCommand,
7434
+ zeroBuiltInCommand,
7427
7435
  zeroWebCommand
7428
7436
  ];
7429
7437
  function shouldHideCommand(name, payload) {
@@ -7449,7 +7457,7 @@ function registerZeroCommands(prog, commands) {
7449
7457
  var program = new Command();
7450
7458
  program.name("zero").description(
7451
7459
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
7452
- ).version("9.145.10").addHelpText(
7460
+ ).version("9.145.12").addHelpText(
7453
7461
  "after",
7454
7462
  `
7455
7463
  Examples:
@@ -7462,8 +7470,8 @@ Examples:
7462
7470
  Set up a schedule? zero schedule setup --help
7463
7471
  Update yourself? zero agent --help
7464
7472
  Manage custom skills? zero skill --help
7465
- Generate image? zero official generate image --help
7466
- Generate voice? zero official generate voice --help
7473
+ Generate image? zero built-in generate image --help
7474
+ Generate voice? zero built-in generate voice --help
7467
7475
  Check your identity? zero whoami`
7468
7476
  );
7469
7477
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {