@vm0/cli 9.206.3 → 9.207.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.
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  getConnectorEnvBindingEntries
6
- } from "./chunk-A7UBSZER.js";
6
+ } from "./chunk-NUMM3WMG.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-QI47S6VO.js";
@@ -47,4 +47,4 @@ function expandFirewallPlaceholders(firewall, connectorType) {
47
47
  export {
48
48
  expandFirewallPlaceholders
49
49
  };
50
- //# sourceMappingURL=firewall-placeholder-expansion-ZRRX27DR.js.map
50
+ //# sourceMappingURL=firewall-placeholder-expansion-FRPU64H3.js.map
package/index.js CHANGED
@@ -74,10 +74,10 @@ import {
74
74
  uo,
75
75
  volumeConfigSchema,
76
76
  withErrorHandler
77
- } from "./chunk-RIZLVUVA.js";
77
+ } from "./chunk-CGFTLXDK.js";
78
78
  import {
79
79
  external_exports
80
- } from "./chunk-A7UBSZER.js";
80
+ } from "./chunk-NUMM3WMG.js";
81
81
  import "./chunk-NR42YJMI.js";
82
82
  import {
83
83
  __toESM,
@@ -411,7 +411,7 @@ function getConfigPath() {
411
411
  return join(os.homedir(), ".vm0", "config.json");
412
412
  }
413
413
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
414
- console.log(source_default.bold(`VM0 CLI v${"9.206.3"}`));
414
+ console.log(source_default.bold(`VM0 CLI v${"9.207.0"}`));
415
415
  console.log();
416
416
  const config = await loadConfig();
417
417
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1113,7 +1113,7 @@ var composeCommand = new Command().name("compose").description("Create or update
1113
1113
  options.autoUpdate = false;
1114
1114
  }
1115
1115
  if (options.autoUpdate !== false) {
1116
- await startSilentUpgrade("9.206.3");
1116
+ await startSilentUpgrade("9.207.0");
1117
1117
  }
1118
1118
  try {
1119
1119
  const { config, agentName, agent, basePath } = await loadAndValidateConfig(resolvedConfigFile);
@@ -1210,7 +1210,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
1210
1210
  withErrorHandler(
1211
1211
  async (identifier, prompt, options) => {
1212
1212
  if (options.autoUpdate !== false) {
1213
- await startSilentUpgrade("9.206.3");
1213
+ await startSilentUpgrade("9.207.0");
1214
1214
  }
1215
1215
  const { name, version } = parseIdentifier(identifier);
1216
1216
  let composeId;
@@ -3016,13 +3016,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
3016
3016
  if (latestVersion === null) {
3017
3017
  throw new Error("Could not check for updates. Please try again later.");
3018
3018
  }
3019
- if (latestVersion === "9.206.3") {
3020
- console.log(source_default.green(`\u2713 Already up to date (${"9.206.3"})`));
3019
+ if (latestVersion === "9.207.0") {
3020
+ console.log(source_default.green(`\u2713 Already up to date (${"9.207.0"})`));
3021
3021
  return;
3022
3022
  }
3023
3023
  console.log(
3024
3024
  source_default.yellow(
3025
- `Current version: ${"9.206.3"} -> Latest version: ${latestVersion}`
3025
+ `Current version: ${"9.207.0"} -> Latest version: ${latestVersion}`
3026
3026
  )
3027
3027
  );
3028
3028
  console.log();
@@ -3049,7 +3049,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
3049
3049
  const success = await performUpgrade(packageManager);
3050
3050
  if (success) {
3051
3051
  console.log(
3052
- source_default.green(`\u2713 Upgraded from ${"9.206.3"} to ${latestVersion}`)
3052
+ source_default.green(`\u2713 Upgraded from ${"9.207.0"} to ${latestVersion}`)
3053
3053
  );
3054
3054
  return;
3055
3055
  }
@@ -3116,7 +3116,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
3116
3116
 
3117
3117
  // src/index.ts
3118
3118
  var program = new Command();
3119
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.206.3");
3119
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.207.0");
3120
3120
  program.addCommand(authCommand);
3121
3121
  program.addCommand(infoCommand);
3122
3122
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.206.3",
3
+ "version": "9.207.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -27,6 +27,7 @@ import {
27
27
  connectZeroConnectorManualGrant,
28
28
  copyWorkflow,
29
29
  createAutomation,
30
+ createComputerUseAuthorizationRequest,
30
31
  createComputerUseReadCommand,
31
32
  createComputerUseWriteCommand,
32
33
  createGithubLabelListener,
@@ -177,7 +178,7 @@ import {
177
178
  uploadWebFile,
178
179
  upsertZeroOrgModelProvider,
179
180
  withErrorHandler
180
- } from "./chunk-RIZLVUVA.js";
181
+ } from "./chunk-CGFTLXDK.js";
181
182
  import {
182
183
  CONNECTOR_TYPES,
183
184
  CONNECTOR_TYPE_KEYS,
@@ -190,7 +191,7 @@ import {
190
191
  getConnectorStoredSecretDisplayInfo,
191
192
  getDiagnosticConnectorTypeForRuntimeEnvName,
192
193
  hasRequiredConnectorAuthMethodScopes
193
- } from "./chunk-A7UBSZER.js";
194
+ } from "./chunk-NUMM3WMG.js";
194
195
  import "./chunk-NR42YJMI.js";
195
196
  import {
196
197
  __toESM,
@@ -6735,7 +6736,7 @@ function isRuntimeFirewallConnectorType(type) {
6735
6736
  async function loadExpandedConnectorFirewall(type) {
6736
6737
  const [firewall, { expandFirewallPlaceholders }] = await Promise.all([
6737
6738
  loadGeneratedRuntimeFirewall(type),
6738
- import("./firewall-placeholder-expansion-ZRRX27DR.js")
6739
+ import("./firewall-placeholder-expansion-FRPU64H3.js")
6739
6740
  ]);
6740
6741
  return expandFirewallPlaceholders(firewall, type);
6741
6742
  }
@@ -7450,6 +7451,46 @@ function printPermissionActionMessage(args) {
7450
7451
  );
7451
7452
  }
7452
7453
  }
7454
+ function printComputerUseAuthorizationLink(args) {
7455
+ console.log(
7456
+ "Computer Use needs a Zero Desktop host selected before a run starts."
7457
+ );
7458
+ console.log(
7459
+ "Ask the user to authorize a host for future runs in this chat or Slack thread:"
7460
+ );
7461
+ console.log(args.authorizationUrl);
7462
+ console.log(
7463
+ `This link expires at ${args.expiresAt}. Existing run tokens cannot be upgraded in place; start a new run after authorization.`
7464
+ );
7465
+ }
7466
+ async function printComputerUsePermissionChangeMessage(action) {
7467
+ if (action !== "enable") {
7468
+ printComputerUsePermissionGuidance();
7469
+ return;
7470
+ }
7471
+ if (!process.env.ZERO_TOKEN) {
7472
+ printComputerUsePermissionGuidance();
7473
+ return;
7474
+ }
7475
+ try {
7476
+ const request = await createComputerUseAuthorizationRequest();
7477
+ printComputerUseAuthorizationLink({
7478
+ authorizationUrl: request.authorizationUrl,
7479
+ expiresAt: request.expiresAt
7480
+ });
7481
+ } catch (error) {
7482
+ if (error instanceof ApiRequestError) {
7483
+ console.log(
7484
+ `Computer Use authorization link unavailable: ${error.message}`
7485
+ );
7486
+ printComputerUsePermissionGuidance();
7487
+ return;
7488
+ }
7489
+ const message = error instanceof Error ? error.message : "Unknown error";
7490
+ console.log(`Computer Use authorization link unavailable: ${message}`);
7491
+ printComputerUsePermissionGuidance();
7492
+ }
7493
+ }
7453
7494
  async function outputPermissionChangeMessage(connectorRef, label, permission, action, duration, agentId) {
7454
7495
  const platformOrigin = await getPlatformOrigin();
7455
7496
  const urlParams = new URLSearchParams({
@@ -7529,7 +7570,9 @@ Notes:
7529
7570
  connectorRef,
7530
7571
  permission: opts.permission
7531
7572
  })) {
7532
- printComputerUsePermissionGuidance();
7573
+ await printComputerUsePermissionChangeMessage(
7574
+ opts.enable ? "enable" : "disable"
7575
+ );
7533
7576
  return;
7534
7577
  }
7535
7578
  const metadata = await loadFirewallPermissionMetadata(connectorRef);
@@ -15774,7 +15817,7 @@ function registerZeroCommands(prog, commands) {
15774
15817
  var program = new Command();
15775
15818
  program.name("zero").description(
15776
15819
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
15777
- ).version("9.206.3").addHelpText("after", () => {
15820
+ ).version("9.207.0").addHelpText("after", () => {
15778
15821
  return buildZeroHelpText();
15779
15822
  });
15780
15823
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {