@vm0/cli 9.107.0 → 9.107.2
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-DCKQ3GVE.js → chunk-AJN5ZMHZ.js} +522 -58
- package/{chunk-DCKQ3GVE.js.map → chunk-AJN5ZMHZ.js.map} +1 -1
- package/index.js +24 -22
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +59 -47
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
loadConfig,
|
|
51
51
|
loadValues,
|
|
52
52
|
paginate,
|
|
53
|
-
parseFirewallPolicies,
|
|
54
53
|
parseGitHubTreeUrl,
|
|
55
54
|
parseGitHubUrl,
|
|
56
55
|
parseIdentifier,
|
|
56
|
+
parsePermissionPolicies,
|
|
57
57
|
parseSkillFrontmatter,
|
|
58
58
|
parseTime,
|
|
59
59
|
pollEvents,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
source_default,
|
|
71
71
|
volumeConfigSchema,
|
|
72
72
|
withErrorHandler
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AJN5ZMHZ.js";
|
|
74
74
|
|
|
75
75
|
// src/index.ts
|
|
76
76
|
init_esm_shims();
|
|
@@ -463,7 +463,7 @@ function getConfigPath() {
|
|
|
463
463
|
return join(homedir(), ".vm0", "config.json");
|
|
464
464
|
}
|
|
465
465
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
466
|
-
console.log(source_default.bold(`VM0 CLI v${"9.107.
|
|
466
|
+
console.log(source_default.bold(`VM0 CLI v${"9.107.2"}`));
|
|
467
467
|
console.log();
|
|
468
468
|
const config = await loadConfig();
|
|
469
469
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4492,7 +4492,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4492
4492
|
options.autoUpdate = false;
|
|
4493
4493
|
}
|
|
4494
4494
|
if (options.autoUpdate !== false) {
|
|
4495
|
-
await startSilentUpgrade("9.107.
|
|
4495
|
+
await startSilentUpgrade("9.107.2");
|
|
4496
4496
|
}
|
|
4497
4497
|
try {
|
|
4498
4498
|
let result;
|
|
@@ -4563,8 +4563,8 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4563
4563
|
"--settings <json>",
|
|
4564
4564
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
4565
4565
|
).option(
|
|
4566
|
-
"--
|
|
4567
|
-
`
|
|
4566
|
+
"--permission-policies <json>",
|
|
4567
|
+
`Permission policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
4568
4568
|
).option("--verbose", "Show full tool inputs and outputs").option(
|
|
4569
4569
|
"--capture-network-bodies",
|
|
4570
4570
|
"Capture HTTP request headers, request bodies, and response bodies in network logs"
|
|
@@ -4572,7 +4572,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4572
4572
|
withErrorHandler(
|
|
4573
4573
|
async (identifier, prompt, options) => {
|
|
4574
4574
|
if (options.autoUpdate !== false) {
|
|
4575
|
-
await startSilentUpgrade("9.107.
|
|
4575
|
+
await startSilentUpgrade("9.107.2");
|
|
4576
4576
|
}
|
|
4577
4577
|
const { name, version } = parseIdentifier(identifier);
|
|
4578
4578
|
let composeId;
|
|
@@ -4627,7 +4627,9 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4627
4627
|
disallowedTools: options.disallowedTools,
|
|
4628
4628
|
tools: options.tools,
|
|
4629
4629
|
settings: options.settings,
|
|
4630
|
-
|
|
4630
|
+
permissionPolicies: parsePermissionPolicies(
|
|
4631
|
+
options.permissionPolicies
|
|
4632
|
+
),
|
|
4631
4633
|
captureNetworkBodies: options.captureNetworkBodies || void 0,
|
|
4632
4634
|
debugNoMockClaude: options.debugNoMockClaude || void 0
|
|
4633
4635
|
});
|
|
@@ -4685,8 +4687,8 @@ var resumeCommand = new Command().name("resume").description("Resume an agent ru
|
|
|
4685
4687
|
"--settings <json>",
|
|
4686
4688
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
4687
4689
|
).option(
|
|
4688
|
-
"--
|
|
4689
|
-
`
|
|
4690
|
+
"--permission-policies <json>",
|
|
4691
|
+
`Permission policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
4690
4692
|
).option("--verbose", "Show full tool inputs and outputs").addOption(new Option("--debug-no-mock-claude").hideHelp()).action(
|
|
4691
4693
|
withErrorHandler(
|
|
4692
4694
|
async (checkpointId, prompt, options, command) => {
|
|
@@ -4712,8 +4714,8 @@ var resumeCommand = new Command().name("resume").description("Resume an agent ru
|
|
|
4712
4714
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
4713
4715
|
tools: options.tools || allOpts.tools,
|
|
4714
4716
|
settings: options.settings || allOpts.settings,
|
|
4715
|
-
|
|
4716
|
-
options.
|
|
4717
|
+
permissionPolicies: parsePermissionPolicies(
|
|
4718
|
+
options.permissionPolicies || allOpts.permissionPolicies
|
|
4717
4719
|
),
|
|
4718
4720
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
4719
4721
|
});
|
|
@@ -4764,8 +4766,8 @@ var continueCommand = new Command().name("continue").description(
|
|
|
4764
4766
|
"--settings <json>",
|
|
4765
4767
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
4766
4768
|
).option(
|
|
4767
|
-
"--
|
|
4768
|
-
`
|
|
4769
|
+
"--permission-policies <json>",
|
|
4770
|
+
`Permission policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
4769
4771
|
).option("--verbose", "Show full tool inputs and outputs").addOption(new Option("--debug-no-mock-claude").hideHelp()).action(
|
|
4770
4772
|
withErrorHandler(
|
|
4771
4773
|
async (agentSessionId, prompt, options, command) => {
|
|
@@ -4791,8 +4793,8 @@ var continueCommand = new Command().name("continue").description(
|
|
|
4791
4793
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
4792
4794
|
tools: options.tools || allOpts.tools,
|
|
4793
4795
|
settings: options.settings || allOpts.settings,
|
|
4794
|
-
|
|
4795
|
-
options.
|
|
4796
|
+
permissionPolicies: parsePermissionPolicies(
|
|
4797
|
+
options.permissionPolicies || allOpts.permissionPolicies
|
|
4796
4798
|
),
|
|
4797
4799
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
4798
4800
|
});
|
|
@@ -6311,7 +6313,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6311
6313
|
withErrorHandler(
|
|
6312
6314
|
async (prompt, options) => {
|
|
6313
6315
|
if (options.autoUpdate !== false) {
|
|
6314
|
-
const shouldExit = await checkAndUpgrade("9.107.
|
|
6316
|
+
const shouldExit = await checkAndUpgrade("9.107.2", prompt);
|
|
6315
6317
|
if (shouldExit) {
|
|
6316
6318
|
process.exit(0);
|
|
6317
6319
|
}
|
|
@@ -7078,13 +7080,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7078
7080
|
if (latestVersion === null) {
|
|
7079
7081
|
throw new Error("Could not check for updates. Please try again later.");
|
|
7080
7082
|
}
|
|
7081
|
-
if (latestVersion === "9.107.
|
|
7082
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.107.
|
|
7083
|
+
if (latestVersion === "9.107.2") {
|
|
7084
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.107.2"})`));
|
|
7083
7085
|
return;
|
|
7084
7086
|
}
|
|
7085
7087
|
console.log(
|
|
7086
7088
|
source_default.yellow(
|
|
7087
|
-
`Current version: ${"9.107.
|
|
7089
|
+
`Current version: ${"9.107.2"} -> Latest version: ${latestVersion}`
|
|
7088
7090
|
)
|
|
7089
7091
|
);
|
|
7090
7092
|
console.log();
|
|
@@ -7111,7 +7113,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7111
7113
|
const success = await performUpgrade(packageManager);
|
|
7112
7114
|
if (success) {
|
|
7113
7115
|
console.log(
|
|
7114
|
-
source_default.green(`\u2713 Upgraded from ${"9.107.
|
|
7116
|
+
source_default.green(`\u2713 Upgraded from ${"9.107.2"} to ${latestVersion}`)
|
|
7115
7117
|
);
|
|
7116
7118
|
return;
|
|
7117
7119
|
}
|
|
@@ -7178,7 +7180,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
7178
7180
|
|
|
7179
7181
|
// src/index.ts
|
|
7180
7182
|
var program = new Command();
|
|
7181
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.107.
|
|
7183
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.107.2");
|
|
7182
7184
|
program.addCommand(authCommand);
|
|
7183
7185
|
program.addCommand(infoCommand);
|
|
7184
7186
|
program.addCommand(composeCommand);
|