@vm0/cli 9.100.0 → 9.100.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/{chunk-2KKNOZ4M.js → chunk-CENK4RLS.js} +25 -20
- package/chunk-CENK4RLS.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +15 -23
- package/zero.js.map +1 -1
- package/chunk-2KKNOZ4M.js.map +0 -1
package/index.js
CHANGED
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
showNextSteps,
|
|
62
62
|
volumeConfigSchema,
|
|
63
63
|
withErrorHandler
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-CENK4RLS.js";
|
|
65
65
|
|
|
66
66
|
// src/index.ts
|
|
67
67
|
import { Command as Command44 } from "commander";
|
|
@@ -454,7 +454,7 @@ function getConfigPath() {
|
|
|
454
454
|
return join(homedir(), ".vm0", "config.json");
|
|
455
455
|
}
|
|
456
456
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
457
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.100.
|
|
457
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.100.1"}`));
|
|
458
458
|
console.log();
|
|
459
459
|
const config = await loadConfig();
|
|
460
460
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1581,7 +1581,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1581
1581
|
options.autoUpdate = false;
|
|
1582
1582
|
}
|
|
1583
1583
|
if (options.autoUpdate !== false) {
|
|
1584
|
-
await startSilentUpgrade("9.100.
|
|
1584
|
+
await startSilentUpgrade("9.100.1");
|
|
1585
1585
|
}
|
|
1586
1586
|
try {
|
|
1587
1587
|
let result;
|
|
@@ -1655,7 +1655,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1655
1655
|
withErrorHandler(
|
|
1656
1656
|
async (identifier, prompt, options) => {
|
|
1657
1657
|
if (options.autoUpdate !== false) {
|
|
1658
|
-
await startSilentUpgrade("9.100.
|
|
1658
|
+
await startSilentUpgrade("9.100.1");
|
|
1659
1659
|
}
|
|
1660
1660
|
const { name, version } = parseIdentifier(identifier);
|
|
1661
1661
|
let composeId;
|
|
@@ -3413,7 +3413,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
3413
3413
|
withErrorHandler(
|
|
3414
3414
|
async (prompt, options) => {
|
|
3415
3415
|
if (options.autoUpdate !== false) {
|
|
3416
|
-
const shouldExit = await checkAndUpgrade("9.100.
|
|
3416
|
+
const shouldExit = await checkAndUpgrade("9.100.1", prompt);
|
|
3417
3417
|
if (shouldExit) {
|
|
3418
3418
|
process.exit(0);
|
|
3419
3419
|
}
|
|
@@ -4156,13 +4156,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4156
4156
|
if (latestVersion === null) {
|
|
4157
4157
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4158
4158
|
}
|
|
4159
|
-
if (latestVersion === "9.100.
|
|
4160
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.100.
|
|
4159
|
+
if (latestVersion === "9.100.1") {
|
|
4160
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.100.1"})`));
|
|
4161
4161
|
return;
|
|
4162
4162
|
}
|
|
4163
4163
|
console.log(
|
|
4164
4164
|
chalk33.yellow(
|
|
4165
|
-
`Current version: ${"9.100.
|
|
4165
|
+
`Current version: ${"9.100.1"} -> Latest version: ${latestVersion}`
|
|
4166
4166
|
)
|
|
4167
4167
|
);
|
|
4168
4168
|
console.log();
|
|
@@ -4189,7 +4189,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4189
4189
|
const success = await performUpgrade(packageManager);
|
|
4190
4190
|
if (success) {
|
|
4191
4191
|
console.log(
|
|
4192
|
-
chalk33.green(`\u2713 Upgraded from ${"9.100.
|
|
4192
|
+
chalk33.green(`\u2713 Upgraded from ${"9.100.1"} to ${latestVersion}`)
|
|
4193
4193
|
);
|
|
4194
4194
|
return;
|
|
4195
4195
|
}
|
|
@@ -4257,7 +4257,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
4257
4257
|
|
|
4258
4258
|
// src/index.ts
|
|
4259
4259
|
var program = new Command44();
|
|
4260
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.100.
|
|
4260
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.100.1");
|
|
4261
4261
|
program.addCommand(authCommand);
|
|
4262
4262
|
program.addCommand(infoCommand);
|
|
4263
4263
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
updateZeroUserPreferences,
|
|
110
110
|
upsertZeroOrgModelProvider,
|
|
111
111
|
withErrorHandler
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-CENK4RLS.js";
|
|
113
113
|
|
|
114
114
|
// src/zero.ts
|
|
115
115
|
import { Command as Command73 } from "commander";
|
|
@@ -1304,8 +1304,8 @@ function formatConnectorSummary(info, identity) {
|
|
|
1304
1304
|
if (!info.policies) return `${info.type}${idStr} (full access)`;
|
|
1305
1305
|
return `${info.type}${idStr} (${info.allowed}/${info.total} allowed)`;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
if (!connector) return;
|
|
1307
|
+
function formatDetailIdentity(connector) {
|
|
1308
|
+
if (!connector) return "";
|
|
1309
1309
|
let identity = "";
|
|
1310
1310
|
if (connector.externalUsername && connector.externalEmail) {
|
|
1311
1311
|
identity = `@${connector.externalUsername} (${connector.externalEmail})`;
|
|
@@ -1314,11 +1314,11 @@ function printAccountLine(connector) {
|
|
|
1314
1314
|
} else if (connector.externalEmail) {
|
|
1315
1315
|
identity = connector.externalEmail;
|
|
1316
1316
|
}
|
|
1317
|
-
if (!identity) return;
|
|
1317
|
+
if (!identity) return "";
|
|
1318
1318
|
if (connector.needsReconnect) {
|
|
1319
1319
|
identity += ` ${chalk23.yellow("(needs reconnect)")}`;
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1321
|
+
return identity;
|
|
1322
1322
|
}
|
|
1323
1323
|
var viewCommand = new Command26().name("view").description("View a zero agent").argument("<agent-id>", "Agent ID").option("--instructions", "Also show instructions content").option("--permissions", "Show full permission details for each connector").addHelpText(
|
|
1324
1324
|
"after",
|
|
@@ -1368,27 +1368,17 @@ Examples:
|
|
|
1368
1368
|
if (agent.sound) console.log(`Sound: ${agent.sound}`);
|
|
1369
1369
|
if (options.permissions && connectorInfos.length > 0) {
|
|
1370
1370
|
console.log();
|
|
1371
|
+
console.log(chalk23.bold("Connectors:"));
|
|
1371
1372
|
for (const info of connectorInfos) {
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
console.log(" No firewall configured.");
|
|
1376
|
-
continue;
|
|
1377
|
-
}
|
|
1373
|
+
const identity = formatDetailIdentity(identityMap.get(info.type));
|
|
1374
|
+
console.log(` ${info.type.padEnd(14)}${identity}`);
|
|
1375
|
+
if (!info.hasFirewall) continue;
|
|
1378
1376
|
if (!info.policies) {
|
|
1379
|
-
console.log(chalk23.dim(`\u2500\u2500 ${info.type} (full access) \u2500\u2500`));
|
|
1380
|
-
printAccountLine(identityMap.get(info.type));
|
|
1381
1377
|
console.log(
|
|
1382
|
-
"
|
|
1378
|
+
chalk23.dim(" full access \u2014 no permission rules configured")
|
|
1383
1379
|
);
|
|
1384
1380
|
continue;
|
|
1385
1381
|
}
|
|
1386
|
-
console.log(
|
|
1387
|
-
chalk23.dim(
|
|
1388
|
-
`\u2500\u2500 ${info.type} (${info.allowed}/${info.total} allowed) \u2500\u2500`
|
|
1389
|
-
)
|
|
1390
|
-
);
|
|
1391
|
-
printAccountLine(identityMap.get(info.type));
|
|
1392
1382
|
const nameWidth = Math.max(
|
|
1393
1383
|
...info.permissions.map((p) => {
|
|
1394
1384
|
return p.name.length;
|
|
@@ -1398,7 +1388,9 @@ Examples:
|
|
|
1398
1388
|
const policy = info.policies[perm.name] ?? "deny";
|
|
1399
1389
|
const icon = policy === "allow" ? chalk23.green("\u2713") : policy === "ask" ? chalk23.yellow("?") : chalk23.dim("\u2717");
|
|
1400
1390
|
const desc = perm.description ?? "";
|
|
1401
|
-
console.log(
|
|
1391
|
+
console.log(
|
|
1392
|
+
` ${icon} ${perm.name.padEnd(nameWidth)} ${desc}`
|
|
1393
|
+
);
|
|
1402
1394
|
}
|
|
1403
1395
|
}
|
|
1404
1396
|
}
|
|
@@ -3909,7 +3901,7 @@ async function showSandboxInfo() {
|
|
|
3909
3901
|
);
|
|
3910
3902
|
}
|
|
3911
3903
|
console.log();
|
|
3912
|
-
console.log(chalk47.bold("
|
|
3904
|
+
console.log(chalk47.bold("Connectors:"));
|
|
3913
3905
|
for (const connector of identities) {
|
|
3914
3906
|
const identity = formatConnectorIdentity2(connector);
|
|
3915
3907
|
console.log(` ${connector.type.padEnd(14)}${identity}`);
|
|
@@ -4678,7 +4670,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
4678
4670
|
var program = new Command73();
|
|
4679
4671
|
program.name("zero").description(
|
|
4680
4672
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
4681
|
-
).version("9.100.
|
|
4673
|
+
).version("9.100.1").addHelpText(
|
|
4682
4674
|
"after",
|
|
4683
4675
|
`
|
|
4684
4676
|
Examples:
|