@vm0/cli 9.71.0 → 9.72.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 +53 -15
- 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.
|
|
48
|
+
release: "9.72.1",
|
|
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.
|
|
67
|
+
version: "9.72.1",
|
|
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.
|
|
678
|
+
console.log(chalk4.bold(`VM0 CLI v${"9.72.1"}`));
|
|
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"
|
|
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
|
});
|
|
@@ -8647,7 +8660,8 @@ var GOOGLE_OAUTH_REVIEWER_EMAIL_HASHES = [
|
|
|
8647
8660
|
var FEATURE_SWITCHES = {
|
|
8648
8661
|
["pricing" /* Pricing */]: {
|
|
8649
8662
|
maintainer: "ethan@vm0.ai",
|
|
8650
|
-
enabled: false
|
|
8663
|
+
enabled: false,
|
|
8664
|
+
enabledUserHashes: STAFF_USER_HASHES
|
|
8651
8665
|
},
|
|
8652
8666
|
["dummy" /* Dummy */]: {
|
|
8653
8667
|
maintainer: "ethan@vm0.ai",
|
|
@@ -10898,7 +10912,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
10898
10912
|
options.autoUpdate = false;
|
|
10899
10913
|
}
|
|
10900
10914
|
if (options.autoUpdate !== false) {
|
|
10901
|
-
await startSilentUpgrade("9.
|
|
10915
|
+
await startSilentUpgrade("9.72.1");
|
|
10902
10916
|
}
|
|
10903
10917
|
try {
|
|
10904
10918
|
let result;
|
|
@@ -11719,11 +11733,17 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
11719
11733
|
).option(
|
|
11720
11734
|
"--disallowed-tools <tools...>",
|
|
11721
11735
|
"Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
|
|
11736
|
+
).option(
|
|
11737
|
+
"--tools <tools...>",
|
|
11738
|
+
"Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
|
|
11739
|
+
).option(
|
|
11740
|
+
"--settings <json>",
|
|
11741
|
+
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
11722
11742
|
).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
11743
|
withErrorHandler(
|
|
11724
11744
|
async (identifier, prompt, options) => {
|
|
11725
11745
|
if (options.autoUpdate !== false) {
|
|
11726
|
-
await startSilentUpgrade("9.
|
|
11746
|
+
await startSilentUpgrade("9.72.1");
|
|
11727
11747
|
}
|
|
11728
11748
|
const { org, name, version } = parseIdentifier(identifier);
|
|
11729
11749
|
let composeId;
|
|
@@ -11777,6 +11797,8 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
11777
11797
|
modelProvider: options.modelProvider,
|
|
11778
11798
|
appendSystemPrompt: options.appendSystemPrompt,
|
|
11779
11799
|
disallowedTools: options.disallowedTools,
|
|
11800
|
+
tools: options.tools,
|
|
11801
|
+
settings: options.settings,
|
|
11780
11802
|
checkEnv: options.checkEnv || void 0,
|
|
11781
11803
|
debugNoMockClaude: options.debugNoMockClaude || void 0
|
|
11782
11804
|
});
|
|
@@ -11830,6 +11852,12 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
|
|
|
11830
11852
|
).option(
|
|
11831
11853
|
"--disallowed-tools <tools...>",
|
|
11832
11854
|
"Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
|
|
11855
|
+
).option(
|
|
11856
|
+
"--tools <tools...>",
|
|
11857
|
+
"Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
|
|
11858
|
+
).option(
|
|
11859
|
+
"--settings <json>",
|
|
11860
|
+
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
11833
11861
|
).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
11862
|
withErrorHandler(
|
|
11835
11863
|
async (checkpointId, prompt, options, command) => {
|
|
@@ -11854,6 +11882,8 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
|
|
|
11854
11882
|
modelProvider: options.modelProvider || allOpts.modelProvider,
|
|
11855
11883
|
appendSystemPrompt: options.appendSystemPrompt || allOpts.appendSystemPrompt,
|
|
11856
11884
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
11885
|
+
tools: options.tools || allOpts.tools,
|
|
11886
|
+
settings: options.settings || allOpts.settings,
|
|
11857
11887
|
checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
|
|
11858
11888
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
11859
11889
|
});
|
|
@@ -11900,6 +11930,12 @@ var continueCommand = new Command10().name("continue").description(
|
|
|
11900
11930
|
).option(
|
|
11901
11931
|
"--disallowed-tools <tools...>",
|
|
11902
11932
|
"Tools to disable in Claude CLI (e.g., CronCreate WebSearch)"
|
|
11933
|
+
).option(
|
|
11934
|
+
"--tools <tools...>",
|
|
11935
|
+
"Built-in tools to make available in Claude CLI (e.g., Bash Edit Read)"
|
|
11936
|
+
).option(
|
|
11937
|
+
"--settings <json>",
|
|
11938
|
+
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
11903
11939
|
).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
11940
|
withErrorHandler(
|
|
11905
11941
|
async (agentSessionId, prompt, options, command) => {
|
|
@@ -11924,6 +11960,8 @@ var continueCommand = new Command10().name("continue").description(
|
|
|
11924
11960
|
modelProvider: options.modelProvider || allOpts.modelProvider,
|
|
11925
11961
|
appendSystemPrompt: options.appendSystemPrompt || allOpts.appendSystemPrompt,
|
|
11926
11962
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
11963
|
+
tools: options.tools || allOpts.tools,
|
|
11964
|
+
settings: options.settings || allOpts.settings,
|
|
11927
11965
|
checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
|
|
11928
11966
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
11929
11967
|
});
|
|
@@ -13461,7 +13499,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
13461
13499
|
withErrorHandler(
|
|
13462
13500
|
async (prompt, options) => {
|
|
13463
13501
|
if (options.autoUpdate !== false) {
|
|
13464
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
13502
|
+
const shouldExit = await checkAndUpgrade("9.72.1", prompt);
|
|
13465
13503
|
if (shouldExit) {
|
|
13466
13504
|
process.exit(0);
|
|
13467
13505
|
}
|
|
@@ -14471,7 +14509,7 @@ function formatNetworkRequest(entry) {
|
|
|
14471
14509
|
const responseSize = entry.response_size || 0;
|
|
14472
14510
|
const url = entry.url || entry.host || "unknown";
|
|
14473
14511
|
const firewall = entry.firewall_name ? ` ${chalk36.cyan(`[${entry.firewall_name}]`)}` : "";
|
|
14474
|
-
const error = entry.
|
|
14512
|
+
const error = entry.firewall_error ? ` ${chalk36.red(entry.firewall_error)}` : "";
|
|
14475
14513
|
return `[${entry.timestamp}] ${method.padEnd(6)} ${statusColor(status)} ${latencyColor(latencyMs + "ms")} ${formatBytes(requestSize)}/${formatBytes(responseSize)} ${chalk36.dim(url)}${firewall}${error}`;
|
|
14476
14514
|
}
|
|
14477
14515
|
function formatNetworkLog(entry) {
|
|
@@ -18825,13 +18863,13 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
|
|
|
18825
18863
|
if (latestVersion === null) {
|
|
18826
18864
|
throw new Error("Could not check for updates. Please try again later.");
|
|
18827
18865
|
}
|
|
18828
|
-
if (latestVersion === "9.
|
|
18829
|
-
console.log(chalk86.green(`\u2713 Already up to date (${"9.
|
|
18866
|
+
if (latestVersion === "9.72.1") {
|
|
18867
|
+
console.log(chalk86.green(`\u2713 Already up to date (${"9.72.1"})`));
|
|
18830
18868
|
return;
|
|
18831
18869
|
}
|
|
18832
18870
|
console.log(
|
|
18833
18871
|
chalk86.yellow(
|
|
18834
|
-
`Current version: ${"9.
|
|
18872
|
+
`Current version: ${"9.72.1"} -> Latest version: ${latestVersion}`
|
|
18835
18873
|
)
|
|
18836
18874
|
);
|
|
18837
18875
|
console.log();
|
|
@@ -18858,7 +18896,7 @@ var upgradeCommand = new Command94().name("upgrade").description("Upgrade vm0 CL
|
|
|
18858
18896
|
const success = await performUpgrade(packageManager);
|
|
18859
18897
|
if (success) {
|
|
18860
18898
|
console.log(
|
|
18861
|
-
chalk86.green(`\u2713 Upgraded from ${"9.
|
|
18899
|
+
chalk86.green(`\u2713 Upgraded from ${"9.72.1"} to ${latestVersion}`)
|
|
18862
18900
|
);
|
|
18863
18901
|
return;
|
|
18864
18902
|
}
|
|
@@ -18932,7 +18970,7 @@ var whoamiCommand = new Command95().name("whoami").description("Show current ide
|
|
|
18932
18970
|
|
|
18933
18971
|
// src/index.ts
|
|
18934
18972
|
var program = new Command96();
|
|
18935
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
18973
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.72.1");
|
|
18936
18974
|
program.addCommand(authCommand);
|
|
18937
18975
|
program.addCommand(infoCommand);
|
|
18938
18976
|
program.addCommand(composeCommand);
|