@vm0/cli 9.90.0 → 9.90.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
@@ -60,7 +60,7 @@ import {
60
60
  showNextSteps,
61
61
  volumeConfigSchema,
62
62
  withErrorHandler
63
- } from "./chunk-KEYG4DHY.js";
63
+ } from "./chunk-RJS4OQ2I.js";
64
64
 
65
65
  // src/index.ts
66
66
  import { Command as Command44 } from "commander";
@@ -445,7 +445,7 @@ function getConfigPath() {
445
445
  return join(homedir(), ".vm0", "config.json");
446
446
  }
447
447
  var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
448
- console.log(chalk3.bold(`VM0 CLI v${"9.90.0"}`));
448
+ console.log(chalk3.bold(`VM0 CLI v${"9.90.1"}`));
449
449
  console.log();
450
450
  const config = await loadConfig();
451
451
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -1548,7 +1548,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
1548
1548
  options.autoUpdate = false;
1549
1549
  }
1550
1550
  if (options.autoUpdate !== false) {
1551
- await startSilentUpgrade("9.90.0");
1551
+ await startSilentUpgrade("9.90.1");
1552
1552
  }
1553
1553
  try {
1554
1554
  let result;
@@ -1625,7 +1625,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
1625
1625
  withErrorHandler(
1626
1626
  async (identifier, prompt, options) => {
1627
1627
  if (options.autoUpdate !== false) {
1628
- await startSilentUpgrade("9.90.0");
1628
+ await startSilentUpgrade("9.90.1");
1629
1629
  }
1630
1630
  const { org, name, version } = parseIdentifier(identifier);
1631
1631
  let composeId;
@@ -3394,7 +3394,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
3394
3394
  withErrorHandler(
3395
3395
  async (prompt, options) => {
3396
3396
  if (options.autoUpdate !== false) {
3397
- const shouldExit = await checkAndUpgrade("9.90.0", prompt);
3397
+ const shouldExit = await checkAndUpgrade("9.90.1", prompt);
3398
3398
  if (shouldExit) {
3399
3399
  process.exit(0);
3400
3400
  }
@@ -3742,6 +3742,18 @@ function formatNetworkDeny(entry) {
3742
3742
  const firewall = entry.firewall_name ? ` ${chalk31.cyan(`[${entry.firewall_name}]`)}` : "";
3743
3743
  return `[${entry.timestamp}] ${method.padEnd(6)} ${chalk31.red.bold("DENY")} ${chalk31.dim(url)}${firewall}`;
3744
3744
  }
3745
+ function formatTokenInfo(entry) {
3746
+ if (!entry.token_resolved_secrets || entry.token_resolved_secrets.length === 0) {
3747
+ return "";
3748
+ }
3749
+ const refreshedSet = new Set(entry.token_refreshed_secrets ?? []);
3750
+ const parts = entry.token_resolved_secrets.map((name) => {
3751
+ if (refreshedSet.has(name)) return `${name} (refreshed)`;
3752
+ if (entry.token_cache_hit) return `${name} (cached)`;
3753
+ return name;
3754
+ });
3755
+ return ` ${chalk31.yellow(`\u2194 ${parts.join(", ")}`)}`;
3756
+ }
3745
3757
  function formatNetworkRequest(entry) {
3746
3758
  let statusColor;
3747
3759
  const status = entry.status || 0;
@@ -3769,7 +3781,7 @@ function formatNetworkRequest(entry) {
3769
3781
  const url = entry.url || entry.host || "unknown";
3770
3782
  const firewall = entry.firewall_name ? ` ${chalk31.cyan(`[${entry.firewall_name}]`)}` : "";
3771
3783
  const error = entry.firewall_error ? ` ${chalk31.red(entry.firewall_error)}` : "";
3772
- return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk31.dim(url)}${firewall}${error}`;
3784
+ return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk31.dim(url)}${firewall}${error}${formatTokenInfo(entry)}`;
3773
3785
  }
3774
3786
  function formatNetworkTcp(entry) {
3775
3787
  const host = entry.host || "unknown";
@@ -4134,13 +4146,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4134
4146
  if (latestVersion === null) {
4135
4147
  throw new Error("Could not check for updates. Please try again later.");
4136
4148
  }
4137
- if (latestVersion === "9.90.0") {
4138
- console.log(chalk33.green(`\u2713 Already up to date (${"9.90.0"})`));
4149
+ if (latestVersion === "9.90.1") {
4150
+ console.log(chalk33.green(`\u2713 Already up to date (${"9.90.1"})`));
4139
4151
  return;
4140
4152
  }
4141
4153
  console.log(
4142
4154
  chalk33.yellow(
4143
- `Current version: ${"9.90.0"} -> Latest version: ${latestVersion}`
4155
+ `Current version: ${"9.90.1"} -> Latest version: ${latestVersion}`
4144
4156
  )
4145
4157
  );
4146
4158
  console.log();
@@ -4167,7 +4179,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
4167
4179
  const success = await performUpgrade(packageManager);
4168
4180
  if (success) {
4169
4181
  console.log(
4170
- chalk33.green(`\u2713 Upgraded from ${"9.90.0"} to ${latestVersion}`)
4182
+ chalk33.green(`\u2713 Upgraded from ${"9.90.1"} to ${latestVersion}`)
4171
4183
  );
4172
4184
  return;
4173
4185
  }
@@ -4235,7 +4247,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
4235
4247
 
4236
4248
  // src/index.ts
4237
4249
  var program = new Command44();
4238
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.90.0");
4250
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.90.1");
4239
4251
  program.addCommand(authCommand);
4240
4252
  program.addCommand(infoCommand);
4241
4253
  program.addCommand(composeCommand);