@vm0/cli 9.86.10 → 9.87.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/{chunk-BB3ODMCC.js → chunk-JOVCRTRX.js} +803 -783
- package/chunk-JOVCRTRX.js.map +1 -0
- package/index.js +27 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +2 -2
- package/zero.js.map +1 -1
- package/chunk-BB3ODMCC.js.map +0 -1
package/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
listZeroVariables,
|
|
44
44
|
loadConfig,
|
|
45
45
|
loadValues,
|
|
46
|
+
parseFirewallPolicies,
|
|
46
47
|
parseGitHubTreeUrl,
|
|
47
48
|
parseGitHubUrl,
|
|
48
49
|
parseIdentifier,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
showNextSteps,
|
|
60
61
|
volumeConfigSchema,
|
|
61
62
|
withErrorHandler
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JOVCRTRX.js";
|
|
63
64
|
|
|
64
65
|
// src/index.ts
|
|
65
66
|
import { Command as Command44 } from "commander";
|
|
@@ -444,7 +445,7 @@ function getConfigPath() {
|
|
|
444
445
|
return join(homedir(), ".vm0", "config.json");
|
|
445
446
|
}
|
|
446
447
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
447
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.
|
|
448
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.87.0"}`));
|
|
448
449
|
console.log();
|
|
449
450
|
const config = await loadConfig();
|
|
450
451
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1547,7 +1548,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1547
1548
|
options.autoUpdate = false;
|
|
1548
1549
|
}
|
|
1549
1550
|
if (options.autoUpdate !== false) {
|
|
1550
|
-
await startSilentUpgrade("9.
|
|
1551
|
+
await startSilentUpgrade("9.87.0");
|
|
1551
1552
|
}
|
|
1552
1553
|
try {
|
|
1553
1554
|
let result;
|
|
@@ -1617,11 +1618,14 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1617
1618
|
).option(
|
|
1618
1619
|
"--settings <json>",
|
|
1619
1620
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
1621
|
+
).option(
|
|
1622
|
+
"--firewall-policies <json>",
|
|
1623
|
+
`Firewall policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
1620
1624
|
).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(
|
|
1621
1625
|
withErrorHandler(
|
|
1622
1626
|
async (identifier, prompt, options) => {
|
|
1623
1627
|
if (options.autoUpdate !== false) {
|
|
1624
|
-
await startSilentUpgrade("9.
|
|
1628
|
+
await startSilentUpgrade("9.87.0");
|
|
1625
1629
|
}
|
|
1626
1630
|
const { org, name, version } = parseIdentifier(identifier);
|
|
1627
1631
|
let composeId;
|
|
@@ -1677,6 +1681,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1677
1681
|
disallowedTools: options.disallowedTools,
|
|
1678
1682
|
tools: options.tools,
|
|
1679
1683
|
settings: options.settings,
|
|
1684
|
+
firewallPolicies: parseFirewallPolicies(options.firewallPolicies),
|
|
1680
1685
|
checkEnv: options.checkEnv || void 0,
|
|
1681
1686
|
debugNoMockClaude: options.debugNoMockClaude || void 0
|
|
1682
1687
|
});
|
|
@@ -1736,6 +1741,9 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
|
|
|
1736
1741
|
).option(
|
|
1737
1742
|
"--settings <json>",
|
|
1738
1743
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
1744
|
+
).option(
|
|
1745
|
+
"--firewall-policies <json>",
|
|
1746
|
+
`Firewall policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
1739
1747
|
).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(
|
|
1740
1748
|
withErrorHandler(
|
|
1741
1749
|
async (checkpointId, prompt, options, command) => {
|
|
@@ -1762,6 +1770,9 @@ var resumeCommand = new Command9().name("resume").description("Resume an agent r
|
|
|
1762
1770
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
1763
1771
|
tools: options.tools || allOpts.tools,
|
|
1764
1772
|
settings: options.settings || allOpts.settings,
|
|
1773
|
+
firewallPolicies: parseFirewallPolicies(
|
|
1774
|
+
options.firewallPolicies || allOpts.firewallPolicies
|
|
1775
|
+
),
|
|
1765
1776
|
checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
|
|
1766
1777
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
1767
1778
|
});
|
|
@@ -1814,6 +1825,9 @@ var continueCommand = new Command10().name("continue").description(
|
|
|
1814
1825
|
).option(
|
|
1815
1826
|
"--settings <json>",
|
|
1816
1827
|
"Settings JSON to pass to Claude CLI (e.g., hooks, permissions)"
|
|
1828
|
+
).option(
|
|
1829
|
+
"--firewall-policies <json>",
|
|
1830
|
+
`Firewall policies JSON (e.g., '{"github": {"actions:read": "allow"}}')`
|
|
1817
1831
|
).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(
|
|
1818
1832
|
withErrorHandler(
|
|
1819
1833
|
async (agentSessionId, prompt, options, command) => {
|
|
@@ -1840,6 +1854,9 @@ var continueCommand = new Command10().name("continue").description(
|
|
|
1840
1854
|
disallowedTools: options.disallowedTools || allOpts.disallowedTools,
|
|
1841
1855
|
tools: options.tools || allOpts.tools,
|
|
1842
1856
|
settings: options.settings || allOpts.settings,
|
|
1857
|
+
firewallPolicies: parseFirewallPolicies(
|
|
1858
|
+
options.firewallPolicies || allOpts.firewallPolicies
|
|
1859
|
+
),
|
|
1843
1860
|
checkEnv: options.checkEnv || allOpts.checkEnv || void 0,
|
|
1844
1861
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
1845
1862
|
});
|
|
@@ -3377,7 +3394,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
3377
3394
|
withErrorHandler(
|
|
3378
3395
|
async (prompt, options) => {
|
|
3379
3396
|
if (options.autoUpdate !== false) {
|
|
3380
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
3397
|
+
const shouldExit = await checkAndUpgrade("9.87.0", prompt);
|
|
3381
3398
|
if (shouldExit) {
|
|
3382
3399
|
process.exit(0);
|
|
3383
3400
|
}
|
|
@@ -4117,13 +4134,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4117
4134
|
if (latestVersion === null) {
|
|
4118
4135
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4119
4136
|
}
|
|
4120
|
-
if (latestVersion === "9.
|
|
4121
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.
|
|
4137
|
+
if (latestVersion === "9.87.0") {
|
|
4138
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.87.0"})`));
|
|
4122
4139
|
return;
|
|
4123
4140
|
}
|
|
4124
4141
|
console.log(
|
|
4125
4142
|
chalk33.yellow(
|
|
4126
|
-
`Current version: ${"9.
|
|
4143
|
+
`Current version: ${"9.87.0"} -> Latest version: ${latestVersion}`
|
|
4127
4144
|
)
|
|
4128
4145
|
);
|
|
4129
4146
|
console.log();
|
|
@@ -4150,7 +4167,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4150
4167
|
const success = await performUpgrade(packageManager);
|
|
4151
4168
|
if (success) {
|
|
4152
4169
|
console.log(
|
|
4153
|
-
chalk33.green(`\u2713 Upgraded from ${"9.
|
|
4170
|
+
chalk33.green(`\u2713 Upgraded from ${"9.87.0"} to ${latestVersion}`)
|
|
4154
4171
|
);
|
|
4155
4172
|
return;
|
|
4156
4173
|
}
|
|
@@ -4218,7 +4235,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
4218
4235
|
|
|
4219
4236
|
// src/index.ts
|
|
4220
4237
|
var program = new Command44();
|
|
4221
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
4238
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.87.0");
|
|
4222
4239
|
program.addCommand(authCommand);
|
|
4223
4240
|
program.addCommand(infoCommand);
|
|
4224
4241
|
program.addCommand(composeCommand);
|