@vm0/cli 9.71.0 → 9.72.0

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.
Files changed (2) hide show
  1. package/index.js +51 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -45,7 +45,7 @@ if (DSN) {
45
45
  Sentry.init({
46
46
  dsn: DSN,
47
47
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
48
- release: "9.71.0",
48
+ release: "9.72.0",
49
49
  sendDefaultPii: false,
50
50
  tracesSampleRate: 0,
51
51
  shutdownTimeout: 500,
@@ -64,7 +64,7 @@ if (DSN) {
64
64
  }
65
65
  });
66
66
  Sentry.setContext("cli", {
67
- version: "9.71.0",
67
+ version: "9.72.0",
68
68
  command: process.argv.slice(2).join(" ")
69
69
  });
70
70
  Sentry.setContext("runtime", {
@@ -675,7 +675,7 @@ function getConfigPath() {
675
675
  return join2(homedir2(), ".vm0", "config.json");
676
676
  }
677
677
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
678
- console.log(chalk4.bold(`VM0 CLI v${"9.71.0"}`));
678
+ console.log(chalk4.bold(`VM0 CLI v${"9.72.0"}`));
679
679
  console.log();
680
680
  const config = await loadConfig();
681
681
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1440,6 +1440,10 @@ var unifiedRunRequestSchema = z8.object({
1440
1440
  appendSystemPrompt: z8.string().optional(),
1441
1441
  // Optional list of tools to disable in Claude CLI (passed as --disallowed-tools)
1442
1442
  disallowedTools: z8.array(z8.string()).optional(),
1443
+ // Optional list of tools to make available in Claude CLI (passed as --tools)
1444
+ tools: z8.array(z8.string()).optional(),
1445
+ // Settings JSON to pass to Claude CLI (passed as --settings)
1446
+ settings: z8.string().optional(),
1443
1447
  // How the run was triggered (defaults to "cli" on the server if not provided)
1444
1448
  triggerSource: triggerSourceSchema.optional()
1445
1449
  });
@@ -1654,7 +1658,7 @@ var agentEventsResponseSchema = z8.object({
1654
1658
  });
1655
1659
  var networkLogEntrySchema = z8.object({
1656
1660
  timestamp: z8.string(),
1657
- action: z8.enum(["ALLOW", "DENY", "ERROR"]).optional(),
1661
+ action: z8.enum(["ALLOW", "DENY"]).optional(),
1658
1662
  host: z8.string().optional(),
1659
1663
  port: z8.number().optional(),
1660
1664
  method: z8.string().optional(),
@@ -1668,7 +1672,8 @@ var networkLogEntrySchema = z8.object({
1668
1672
  firewall_ref: z8.string().optional(),
1669
1673
  firewall_permission: z8.string().optional(),
1670
1674
  firewall_rule_match: z8.string().optional(),
1671
- firewall_params: z8.record(z8.string(), z8.string()).optional()
1675
+ firewall_params: z8.record(z8.string(), z8.string()).optional(),
1676
+ firewall_error: z8.string().optional()
1672
1677
  });
1673
1678
  var networkLogsResponseSchema = z8.object({
1674
1679
  networkLogs: z8.array(networkLogEntrySchema),
@@ -3538,6 +3543,10 @@ var storedExecutionContextSchema = z19.object({
3538
3543
  experimentalCapabilities: z19.array(z19.enum(VALID_CAPABILITIES)).optional(),
3539
3544
  // Tools to disable in Claude CLI (passed as --disallowed-tools)
3540
3545
  disallowedTools: z19.array(z19.string()).optional(),
3546
+ // Tools to make available in Claude CLI (passed as --tools)
3547
+ tools: z19.array(z19.string()).optional(),
3548
+ // Settings JSON to pass to Claude CLI (passed as --settings)
3549
+ settings: z19.string().optional(),
3541
3550
  // VM profile for resource allocation (e.g., "vm0/default")
3542
3551
  experimentalProfile: z19.string().optional()
3543
3552
  });
@@ -3578,6 +3587,10 @@ var executionContextSchema = z19.object({
3578
3587
  experimentalCapabilities: z19.array(z19.enum(VALID_CAPABILITIES)).optional(),
3579
3588
  // Tools to disable in Claude CLI (passed as --disallowed-tools)
3580
3589
  disallowedTools: z19.array(z19.string()).optional(),
3590
+ // Tools to make available in Claude CLI (passed as --tools)
3591
+ tools: z19.array(z19.string()).optional(),
3592
+ // Settings JSON to pass to Claude CLI (passed as --settings)
3593
+ settings: z19.string().optional(),
3581
3594
  // VM profile for resource allocation (e.g., "vm0/default")
3582
3595
  experimentalProfile: z19.string().optional()
3583
3596
  });
@@ -10898,7 +10911,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
10898
10911
  options.autoUpdate = false;
10899
10912
  }
10900
10913
  if (options.autoUpdate !== false) {
10901
- await startSilentUpgrade("9.71.0");
10914
+ await startSilentUpgrade("9.72.0");
10902
10915
  }
10903
10916
  try {
10904
10917
  let result;
@@ -11719,11 +11732,17 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
11719
11732
  ).option(
11720
11733
  "--disallowed-tools <tools...>",
11721
11734
  "Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
11735
+ ).option(
11736
+ "--tools <tools...>",
11737
+ "Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
11738
+ ).option(
11739
+ "--settings <json>",
11740
+ "Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
11722
11741
  ).option("--verbose", "Show full tool inputs and outputs").option("--check-env", "Validate secrets and vars before running").addOption(new Option2("--debug-no-mock-claude").hideHelp()).addOption(new Option2("--no-auto-update").hideHelp()).action(
11723
11742
  withErrorHandler(
11724
11743
  async (identifier, prompt, options) => {
11725
11744
  if (options.autoUpdate !== false) {
11726
- await startSilentUpgrade("9.71.0");
11745
+ await startSilentUpgrade("9.72.0");
11727
11746
  }
11728
11747
  const { org, name, version } = parseIdentifier(identifier);
11729
11748
  let composeId;
@@ -11777,6 +11796,8 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
11777
11796
  modelProvider: options.modelProvider,
11778
11797
  appendSystemPrompt: options.appendSystemPrompt,
11779
11798
  disallowedTools: options.disallowedTools,
11799
+ tools: options.tools,
11800
+ settings: options.settings,
11780
11801
  checkEnv: options.checkEnv || void 0,
11781
11802
  debugNoMockClaude: options.debugNoMockClaude || void 0
11782
11803
  });
@@ -11830,6 +11851,12 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
11830
11851
  ).option(
11831
11852
  "--disallowed-tools <tools...>",
11832
11853
  "Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
11854
+ ).option(
11855
+ "--tools <tools...>",
11856
+ "Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
11857
+ ).option(
11858
+ "--settings <json>",
11859
+ "Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
11833
11860
  ).option("--verbose", "Show full tool inputs and outputs").option("--check-env", "Validate secrets and vars before running").addOption(new Option3("--debug-no-mock-claude").hideHelp()).action(
11834
11861
  withErrorHandler(
11835
11862
  async (checkpointId, prompt, options, command) => {
@@ -11854,6 +11881,8 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
11854
11881
  modelProvider: options.modelProvider || allOpts.modelProvider,
11855
11882
  appendSystemPrompt: options.appendSystemPrompt || allOpts.appendSystemPrompt,
11856
11883
  disallowedTools: options.disallowedTools || allOpts.disallowedTools,
11884
+ tools: options.tools || allOpts.tools,
11885
+ settings: options.settings || allOpts.settings,
11857
11886
  checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
11858
11887
  debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
11859
11888
  });
@@ -11900,6 +11929,12 @@ var continueCommand = new Command10().name("continue").description(
11900
11929
  ).option(
11901
11930
  "--disallowed-tools <tools...>",
11902
11931
  "Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
11932
+ ).option(
11933
+ "--tools <tools...>",
11934
+ "Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
11935
+ ).option(
11936
+ "--settings <json>",
11937
+ "Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
11903
11938
  ).option("--verbose", "Show full tool inputs and outputs").option("--check-env", "Validate secrets and vars before running").addOption(new Option4("--debug-no-mock-claude").hideHelp()).action(
11904
11939
  withErrorHandler(
11905
11940
  async (agentSessionId, prompt, options, command) => {
@@ -11924,6 +11959,8 @@ var continueCommand = new Command10().name("continue").description(
11924
11959
  modelProvider: options.modelProvider || allOpts.modelProvider,
11925
11960
  appendSystemPrompt: options.appendSystemPrompt || allOpts.appendSystemPrompt,
11926
11961
  disallowedTools: options.disallowedTools || allOpts.disallowedTools,
11962
+ tools: options.tools || allOpts.tools,
11963
+ settings: options.settings || allOpts.settings,
11927
11964
  checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
11928
11965
  debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
11929
11966
  });
@@ -13461,7 +13498,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
13461
13498
  withErrorHandler(
13462
13499
  async (prompt, options) => {
13463
13500
  if (options.autoUpdate !== false) {
13464
- const shouldExit = await checkAndUpgrade("9.71.0", prompt);
13501
+ const shouldExit = await checkAndUpgrade("9.72.0", prompt);
13465
13502
  if (shouldExit) {
13466
13503
  process.exit(0);
13467
13504
  }
@@ -14471,7 +14508,7 @@ function formatNetworkRequest(entry) {
14471
14508
  const responseSize = entry.response_size || 0;
14472
14509
  const url = entry.url || entry.host || "unknown";
14473
14510
  const firewall = entry.firewall_name ? ` ${chalk36.cyan(`[${entry.firewall_name}]`)}` : "";
14474
- const error = entry.action === "ERROR" ? ` ${chalk36.red("auth failed")}` : "";
14511
+ const error = entry.firewall_error ? ` ${chalk36.red(entry.firewall_error)}` : "";
14475
14512
  return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk36.dim(url)}${firewall}${error}`;
14476
14513
  }
14477
14514
  function formatNetworkLog(entry) {
@@ -18825,13 +18862,13 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
18825
18862
  if (latestVersion === null) {
18826
18863
  throw new Error("Could not check for updates. Please try again later.");
18827
18864
  }
18828
- if (latestVersion === "9.71.0") {
18829
- console.log(chalk86.green(`\u2713 Already up to date (${"9.71.0"})`));
18865
+ if (latestVersion === "9.72.0") {
18866
+ console.log(chalk86.green(`\u2713 Already up to date (${"9.72.0"})`));
18830
18867
  return;
18831
18868
  }
18832
18869
  console.log(
18833
18870
  chalk86.yellow(
18834
- `Current version: ${"9.71.0"} -> Latest version: ${latestVersion}`
18871
+ `Current version: ${"9.72.0"} -> Latest version: ${latestVersion}`
18835
18872
  )
18836
18873
  );
18837
18874
  console.log();
@@ -18858,7 +18895,7 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
18858
18895
  const success = await performUpgrade(packageManager);
18859
18896
  if (success) {
18860
18897
  console.log(
18861
- chalk86.green(`\u2713 Upgraded from ${"9.71.0"} to ${latestVersion}`)
18898
+ chalk86.green(`\u2713 Upgraded from ${"9.72.0"} to ${latestVersion}`)
18862
18899
  );
18863
18900
  return;
18864
18901
  }
@@ -18932,7 +18969,7 @@ var whoamiCommand = new Command95().name("whoami").description("Show current ide
18932
18969
 
18933
18970
  // src/index.ts
18934
18971
  var program = new Command96();
18935
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.71.0");
18972
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.72.0");
18936
18973
  program.addCommand(authCommand);
18937
18974
  program.addCommand(infoCommand);
18938
18975
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.71.0",
3
+ "version": "9.72.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",