@vm0/cli 9.96.1 → 9.97.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.
package/index.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  showNextSteps,
62
62
  volumeConfigSchema,
63
63
  withErrorHandler
64
- } from "./chunk-IY5MFRXW.js";
64
+ } from "./chunk-HWEQWUNR.js";
65
65
 
66
66
  // src/index.ts
67
67
  import { Command as Command44 } from "commander";
@@ -454,7 +454,7 @@ function getConfigPath() {
454
454
  return join(homedir(), ".vm0", "config.json");
455
455
  }
456
456
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
457
- console.log(chalk3.bold(`VM0 CLI v${"9.96.1"}`));
457
+ console.log(chalk3.bold(`VM0 CLI v${"9.97.0"}`));
458
458
  console.log();
459
459
  const config = await loadConfig();
460
460
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1581,7 +1581,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1581
1581
  options.autoUpdate = false;
1582
1582
  }
1583
1583
  if (options.autoUpdate !== false) {
1584
- await startSilentUpgrade("9.96.1");
1584
+ await startSilentUpgrade("9.97.0");
1585
1585
  }
1586
1586
  try {
1587
1587
  let result;
@@ -1655,7 +1655,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1655
1655
  withErrorHandler(
1656
1656
  async (identifier, prompt, options) => {
1657
1657
  if (options.autoUpdate !== false) {
1658
- await startSilentUpgrade("9.96.1");
1658
+ await startSilentUpgrade("9.97.0");
1659
1659
  }
1660
1660
  const { name, version } = parseIdentifier(identifier);
1661
1661
  let composeId;
@@ -3413,7 +3413,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
3413
3413
  withErrorHandler(
3414
3414
  async (prompt, options) => {
3415
3415
  if (options.autoUpdate !== false) {
3416
- const shouldExit = await checkAndUpgrade("9.96.1", prompt);
3416
+ const shouldExit = await checkAndUpgrade("9.97.0", prompt);
3417
3417
  if (shouldExit) {
3418
3418
  process.exit(0);
3419
3419
  }
@@ -3738,17 +3738,25 @@ function formatNetworkDeny(entry) {
3738
3738
  const firewall = entry.firewall_name ? ` ${chalk31.cyan(`[${entry.firewall_name}]`)}` : "";
3739
3739
  return `[${entry.timestamp}] ${method.padEnd(6)} ${chalk31.red.bold("DENY")} ${chalk31.dim(url)}${firewall}`;
3740
3740
  }
3741
- function formatTokenInfo(entry) {
3742
- if (!entry.token_resolved_secrets || entry.token_resolved_secrets.length === 0) {
3743
- return "";
3744
- }
3745
- const refreshedSet = new Set(entry.token_refreshed_secrets ?? []);
3746
- const parts = entry.token_resolved_secrets.map((name) => {
3747
- if (refreshedSet.has(name)) return `${name} (refreshed)`;
3748
- if (entry.token_cache_hit) return `${name} (cached)`;
3749
- return name;
3750
- });
3751
- return ` ${chalk31.yellow(`\u2194 ${parts.join(", ")}`)}`;
3741
+ function formatAuthInfo(entry) {
3742
+ const tags = [];
3743
+ if (entry.auth_url_rewrite) {
3744
+ tags.push("url-rewrite");
3745
+ }
3746
+ if (entry.auth_resolved_secrets && entry.auth_resolved_secrets.length > 0) {
3747
+ const refreshedSet = new Set(entry.auth_refreshed_secrets ?? []);
3748
+ for (const name of entry.auth_resolved_secrets) {
3749
+ if (refreshedSet.has(name)) {
3750
+ tags.push(`${name} (refreshed)`);
3751
+ } else if (entry.auth_cache_hit) {
3752
+ tags.push(`${name} (cached)`);
3753
+ } else {
3754
+ tags.push(name);
3755
+ }
3756
+ }
3757
+ }
3758
+ if (tags.length === 0) return "";
3759
+ return ` ${chalk31.yellow(`\u2194 ${tags.join(", ")}`)}`;
3752
3760
  }
3753
3761
  function formatNetworkRequest(entry) {
3754
3762
  let statusColor;
@@ -3777,7 +3785,7 @@ function formatNetworkRequest(entry) {
3777
3785
  const url = entry.url || entry.host || "unknown";
3778
3786
  const firewall = entry.firewall_name ? ` ${chalk31.cyan(`[${entry.firewall_name}]`)}` : "";
3779
3787
  const error = entry.firewall_error ? ` ${chalk31.red(entry.firewall_error)}` : "";
3780
- return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk31.dim(url)}${firewall}${error}${formatTokenInfo(entry)}`;
3788
+ return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk31.dim(url)}${firewall}${error}${formatAuthInfo(entry)}`;
3781
3789
  }
3782
3790
  function formatNetworkTcp(entry) {
3783
3791
  const host = entry.host || "unknown";
@@ -4148,13 +4156,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4148
4156
  if (latestVersion === null) {
4149
4157
  throw new Error("Could not check for updates. Please try again later.");
4150
4158
  }
4151
- if (latestVersion === "9.96.1") {
4152
- console.log(chalk33.green(`\u2713 Already up to date (${"9.96.1"})`));
4159
+ if (latestVersion === "9.97.0") {
4160
+ console.log(chalk33.green(`\u2713 Already up to date (${"9.97.0"})`));
4153
4161
  return;
4154
4162
  }
4155
4163
  console.log(
4156
4164
  chalk33.yellow(
4157
- `Current version: ${"9.96.1"} -> Latest version: ${latestVersion}`
4165
+ `Current version: ${"9.97.0"} -> Latest version: ${latestVersion}`
4158
4166
  )
4159
4167
  );
4160
4168
  console.log();
@@ -4181,7 +4189,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4181
4189
  const success = await performUpgrade(packageManager);
4182
4190
  if (success) {
4183
4191
  console.log(
4184
- chalk33.green(`\u2713 Upgraded from ${"9.96.1"} to ${latestVersion}`)
4192
+ chalk33.green(`\u2713 Upgraded from ${"9.97.0"} to ${latestVersion}`)
4185
4193
  );
4186
4194
  return;
4187
4195
  }
@@ -4249,7 +4257,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4249
4257
 
4250
4258
  // src/index.ts
4251
4259
  var program = new Command44();
4252
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.96.1");
4260
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.97.0");
4253
4261
  program.addCommand(authCommand);
4254
4262
  program.addCommand(infoCommand);
4255
4263
  program.addCommand(composeCommand);