@vm0/cli 9.166.0 → 9.167.1

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
@@ -19,6 +19,7 @@ import {
19
19
  configureGlobalProxyFromEnv,
20
20
  createOrUpdateCompose,
21
21
  createRun,
22
+ directRunModelProviderTypeSchema,
22
23
  external_exports,
23
24
  extractAndGroupVariables,
24
25
  extractSecretNames,
@@ -68,7 +69,7 @@ import {
68
69
  source_default,
69
70
  volumeConfigSchema,
70
71
  withErrorHandler
71
- } from "./chunk-TRRVYMW2.js";
72
+ } from "./chunk-XK7CCHB4.js";
72
73
  import {
73
74
  __toESM,
74
75
  init_esm_shims
@@ -387,7 +388,7 @@ function getConfigPath() {
387
388
  return join(os.homedir(), ".vm0", "config.json");
388
389
  }
389
390
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
390
- console.log(source_default.bold(`VM0 CLI v${"9.166.0"}`));
391
+ console.log(source_default.bold(`VM0 CLI v${"9.167.1"}`));
391
392
  console.log();
392
393
  const config = await loadConfig();
393
394
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4280,7 +4281,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4280
4281
  options.autoUpdate = false;
4281
4282
  }
4282
4283
  if (options.autoUpdate !== false) {
4283
- await startSilentUpgrade("9.166.0");
4284
+ await startSilentUpgrade("9.167.1");
4284
4285
  }
4285
4286
  try {
4286
4287
  let result;
@@ -4316,6 +4317,16 @@ init_esm_shims();
4316
4317
 
4317
4318
  // src/commands/run/run.ts
4318
4319
  init_esm_shims();
4320
+ function parseModelProviderType(value) {
4321
+ if (value === void 0) {
4322
+ return void 0;
4323
+ }
4324
+ const parsed = directRunModelProviderTypeSchema.safeParse(value);
4325
+ if (!parsed.success) {
4326
+ throw new Error(`Invalid model provider type: ${value}`);
4327
+ }
4328
+ return parsed.data;
4329
+ }
4319
4330
  var mainRunCommand = new Command().name("run").description("Run an agent").argument(
4320
4331
  "<agent-name>",
4321
4332
  "Agent reference: name[:version] (e.g., 'my-agent', 'my-agent:abc123', 'my-agent:latest')"
@@ -4368,11 +4379,11 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4368
4379
  ).option("--verbose", "Show full tool inputs and outputs").option(
4369
4380
  "--capture-network-bodies",
4370
4381
  "Capture HTTP request headers, request bodies, and response bodies in network logs"
4371
- ).addOption(new Option("--debug-no-mock-claude").hideHelp()).addOption(new Option("--debug-no-mock-codex").hideHelp()).addOption(new Option("--no-auto-update").hideHelp()).action(
4382
+ ).addOption(new Option("--debug-no-mock-claude").hideHelp()).addOption(new Option("--debug-no-mock-codex").hideHelp()).addOption(new Option("--model-provider-type <type>").hideHelp()).addOption(new Option("--no-auto-update").hideHelp()).action(
4372
4383
  withErrorHandler(
4373
4384
  async (identifier, prompt, options) => {
4374
4385
  if (options.autoUpdate !== false) {
4375
- await startSilentUpgrade("9.166.0");
4386
+ await startSilentUpgrade("9.167.1");
4376
4387
  }
4377
4388
  const { name, version } = parseIdentifier(identifier);
4378
4389
  let composeId;
@@ -4434,7 +4445,8 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4434
4445
  ),
4435
4446
  captureNetworkBodies: options.captureNetworkBodies || void 0,
4436
4447
  debugNoMockClaude: options.debugNoMockClaude || void 0,
4437
- debugNoMockCodex: options.debugNoMockCodex || void 0
4448
+ debugNoMockCodex: options.debugNoMockCodex || void 0,
4449
+ modelProviderType: parseModelProviderType(options.modelProviderType)
4438
4450
  });
4439
4451
  if (response.status === "failed") {
4440
4452
  throw new Error(
@@ -6165,13 +6177,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6165
6177
  if (latestVersion === null) {
6166
6178
  throw new Error("Could not check for updates. Please try again later.");
6167
6179
  }
6168
- if (latestVersion === "9.166.0") {
6169
- console.log(source_default.green(`\u2713 Already up to date (${"9.166.0"})`));
6180
+ if (latestVersion === "9.167.1") {
6181
+ console.log(source_default.green(`\u2713 Already up to date (${"9.167.1"})`));
6170
6182
  return;
6171
6183
  }
6172
6184
  console.log(
6173
6185
  source_default.yellow(
6174
- `Current version: ${"9.166.0"} -> Latest version: ${latestVersion}`
6186
+ `Current version: ${"9.167.1"} -> Latest version: ${latestVersion}`
6175
6187
  )
6176
6188
  );
6177
6189
  console.log();
@@ -6198,7 +6210,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6198
6210
  const success = await performUpgrade(packageManager);
6199
6211
  if (success) {
6200
6212
  console.log(
6201
- source_default.green(`\u2713 Upgraded from ${"9.166.0"} to ${latestVersion}`)
6213
+ source_default.green(`\u2713 Upgraded from ${"9.167.1"} to ${latestVersion}`)
6202
6214
  );
6203
6215
  return;
6204
6216
  }
@@ -6265,7 +6277,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6265
6277
 
6266
6278
  // src/index.ts
6267
6279
  var program = new Command();
6268
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.166.0");
6280
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.167.1");
6269
6281
  program.addCommand(authCommand);
6270
6282
  program.addCommand(infoCommand);
6271
6283
  program.addCommand(composeCommand);