@vm0/cli 9.177.9 → 9.177.11
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/{chunk-HA7ZZ2L6.js → chunk-26CIENVP.js} +226 -86
- package/{chunk-HA7ZZ2L6.js.map → chunk-26CIENVP.js.map} +1 -1
- package/index.js +14 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +52 -12
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
source_default,
|
|
68
68
|
volumeConfigSchema,
|
|
69
69
|
withErrorHandler
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-26CIENVP.js";
|
|
71
71
|
import {
|
|
72
72
|
__toESM,
|
|
73
73
|
init_esm_shims
|
|
@@ -400,7 +400,7 @@ function getConfigPath() {
|
|
|
400
400
|
return join(os.homedir(), ".vm0", "config.json");
|
|
401
401
|
}
|
|
402
402
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
403
|
-
console.log(source_default.bold(`VM0 CLI v${"9.177.
|
|
403
|
+
console.log(source_default.bold(`VM0 CLI v${"9.177.11"}`));
|
|
404
404
|
console.log();
|
|
405
405
|
const config = await loadConfig();
|
|
406
406
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4293,7 +4293,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4293
4293
|
options.autoUpdate = false;
|
|
4294
4294
|
}
|
|
4295
4295
|
if (options.autoUpdate !== false) {
|
|
4296
|
-
await startSilentUpgrade("9.177.
|
|
4296
|
+
await startSilentUpgrade("9.177.11");
|
|
4297
4297
|
}
|
|
4298
4298
|
try {
|
|
4299
4299
|
let result;
|
|
@@ -4395,7 +4395,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4395
4395
|
withErrorHandler(
|
|
4396
4396
|
async (identifier, prompt, options) => {
|
|
4397
4397
|
if (options.autoUpdate !== false) {
|
|
4398
|
-
await startSilentUpgrade("9.177.
|
|
4398
|
+
await startSilentUpgrade("9.177.11");
|
|
4399
4399
|
}
|
|
4400
4400
|
const { name, version } = parseIdentifier(identifier);
|
|
4401
4401
|
let composeId;
|
|
@@ -5738,10 +5738,13 @@ function formatFirewallTag(entry) {
|
|
|
5738
5738
|
const billable = entry.firewall_billable ? ` ${source_default.yellow("$")}` : "";
|
|
5739
5739
|
return ` ${source_default.cyan(`[${entry.firewall_name}${billable}]`)}`;
|
|
5740
5740
|
}
|
|
5741
|
+
function formatBrowserUserAgentTag(entry) {
|
|
5742
|
+
return entry.browser_user_agent ? ` ${source_default.magenta("[browser]")}` : "";
|
|
5743
|
+
}
|
|
5741
5744
|
function formatNetworkDeny(entry) {
|
|
5742
5745
|
const method = entry.method || "???";
|
|
5743
5746
|
const url = entry.url || entry.host || "unknown";
|
|
5744
|
-
return `[${entry.timestamp}] ${method.padEnd(6)} ${source_default.red.bold("DENY")} ${source_default.dim(url)}${formatFirewallTag(entry)}`;
|
|
5747
|
+
return `[${entry.timestamp}] ${method.padEnd(6)} ${source_default.red.bold("DENY")} ${source_default.dim(url)}${formatFirewallTag(entry)}${formatBrowserUserAgentTag(entry)}`;
|
|
5745
5748
|
}
|
|
5746
5749
|
function formatAuthInfo(entry) {
|
|
5747
5750
|
const tags = [];
|
|
@@ -5789,7 +5792,7 @@ function formatNetworkRequest(entry) {
|
|
|
5789
5792
|
const responseSize = entry.response_size || 0;
|
|
5790
5793
|
const url = entry.url || entry.host || "unknown";
|
|
5791
5794
|
const error = entry.firewall_error ? ` ${source_default.red(entry.firewall_error)}` : "";
|
|
5792
|
-
let line = `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${source_default.dim(url)}${formatFirewallTag(entry)}${error}${formatAuthInfo(entry)}`;
|
|
5795
|
+
let line = `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${source_default.dim(url)}${formatFirewallTag(entry)}${formatBrowserUserAgentTag(entry)}${error}${formatAuthInfo(entry)}`;
|
|
5793
5796
|
line += formatCaptureFields(entry);
|
|
5794
5797
|
return line;
|
|
5795
5798
|
}
|
|
@@ -6189,13 +6192,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6189
6192
|
if (latestVersion === null) {
|
|
6190
6193
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6191
6194
|
}
|
|
6192
|
-
if (latestVersion === "9.177.
|
|
6193
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.177.
|
|
6195
|
+
if (latestVersion === "9.177.11") {
|
|
6196
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.177.11"})`));
|
|
6194
6197
|
return;
|
|
6195
6198
|
}
|
|
6196
6199
|
console.log(
|
|
6197
6200
|
source_default.yellow(
|
|
6198
|
-
`Current version: ${"9.177.
|
|
6201
|
+
`Current version: ${"9.177.11"} -> Latest version: ${latestVersion}`
|
|
6199
6202
|
)
|
|
6200
6203
|
);
|
|
6201
6204
|
console.log();
|
|
@@ -6222,7 +6225,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6222
6225
|
const success = await performUpgrade(packageManager);
|
|
6223
6226
|
if (success) {
|
|
6224
6227
|
console.log(
|
|
6225
|
-
source_default.green(`\u2713 Upgraded from ${"9.177.
|
|
6228
|
+
source_default.green(`\u2713 Upgraded from ${"9.177.11"} to ${latestVersion}`)
|
|
6226
6229
|
);
|
|
6227
6230
|
return;
|
|
6228
6231
|
}
|
|
@@ -6289,7 +6292,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6289
6292
|
|
|
6290
6293
|
// src/index.ts
|
|
6291
6294
|
var program = new Command();
|
|
6292
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.177.
|
|
6295
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.177.11");
|
|
6293
6296
|
program.addCommand(authCommand);
|
|
6294
6297
|
program.addCommand(infoCommand);
|
|
6295
6298
|
program.addCommand(composeCommand);
|