@vm0/cli 9.86.2 → 9.86.4
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-4DWNSAI4.js → chunk-O22JKC6F.js} +14 -5
- package/{chunk-4DWNSAI4.js.map → chunk-O22JKC6F.js.map} +1 -1
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +25 -4
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
showNextSteps,
|
|
61
61
|
volumeConfigSchema,
|
|
62
62
|
withErrorHandler
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-O22JKC6F.js";
|
|
64
64
|
|
|
65
65
|
// src/index.ts
|
|
66
66
|
import { Command as Command44 } from "commander";
|
|
@@ -445,7 +445,7 @@ function getConfigPath() {
|
|
|
445
445
|
return join(homedir(), ".vm0", "config.json");
|
|
446
446
|
}
|
|
447
447
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
448
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.86.
|
|
448
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.86.4"}`));
|
|
449
449
|
console.log();
|
|
450
450
|
const config = await loadConfig();
|
|
451
451
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1549,7 +1549,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1549
1549
|
options.autoUpdate = false;
|
|
1550
1550
|
}
|
|
1551
1551
|
if (options.autoUpdate !== false) {
|
|
1552
|
-
await startSilentUpgrade("9.86.
|
|
1552
|
+
await startSilentUpgrade("9.86.4");
|
|
1553
1553
|
}
|
|
1554
1554
|
try {
|
|
1555
1555
|
let result;
|
|
@@ -1623,7 +1623,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
1623
1623
|
withErrorHandler(
|
|
1624
1624
|
async (identifier, prompt, options) => {
|
|
1625
1625
|
if (options.autoUpdate !== false) {
|
|
1626
|
-
await startSilentUpgrade("9.86.
|
|
1626
|
+
await startSilentUpgrade("9.86.4");
|
|
1627
1627
|
}
|
|
1628
1628
|
const { org, name, version } = parseIdentifier(identifier);
|
|
1629
1629
|
let composeId;
|
|
@@ -3379,7 +3379,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
3379
3379
|
withErrorHandler(
|
|
3380
3380
|
async (prompt, options) => {
|
|
3381
3381
|
if (options.autoUpdate !== false) {
|
|
3382
|
-
const shouldExit = await checkAndUpgrade("9.86.
|
|
3382
|
+
const shouldExit = await checkAndUpgrade("9.86.4", prompt);
|
|
3383
3383
|
if (shouldExit) {
|
|
3384
3384
|
process.exit(0);
|
|
3385
3385
|
}
|
|
@@ -4119,13 +4119,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4119
4119
|
if (latestVersion === null) {
|
|
4120
4120
|
throw new Error("Could not check for updates. Please try again later.");
|
|
4121
4121
|
}
|
|
4122
|
-
if (latestVersion === "9.86.
|
|
4123
|
-
console.log(chalk33.green(`\u2713 Already up to date (${"9.86.
|
|
4122
|
+
if (latestVersion === "9.86.4") {
|
|
4123
|
+
console.log(chalk33.green(`\u2713 Already up to date (${"9.86.4"})`));
|
|
4124
4124
|
return;
|
|
4125
4125
|
}
|
|
4126
4126
|
console.log(
|
|
4127
4127
|
chalk33.yellow(
|
|
4128
|
-
`Current version: ${"9.86.
|
|
4128
|
+
`Current version: ${"9.86.4"} -> Latest version: ${latestVersion}`
|
|
4129
4129
|
)
|
|
4130
4130
|
);
|
|
4131
4131
|
console.log();
|
|
@@ -4152,7 +4152,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
4152
4152
|
const success = await performUpgrade(packageManager);
|
|
4153
4153
|
if (success) {
|
|
4154
4154
|
console.log(
|
|
4155
|
-
chalk33.green(`\u2713 Upgraded from ${"9.86.
|
|
4155
|
+
chalk33.green(`\u2713 Upgraded from ${"9.86.4"} to ${latestVersion}`)
|
|
4156
4156
|
);
|
|
4157
4157
|
return;
|
|
4158
4158
|
}
|
|
@@ -4220,7 +4220,7 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
4220
4220
|
|
|
4221
4221
|
// src/index.ts
|
|
4222
4222
|
var program = new Command44();
|
|
4223
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.86.
|
|
4223
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.86.4");
|
|
4224
4224
|
program.addCommand(authCommand);
|
|
4225
4225
|
program.addCommand(infoCommand);
|
|
4226
4226
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
updateZeroUserPreferences,
|
|
92
92
|
upsertZeroOrgModelProvider,
|
|
93
93
|
withErrorHandler
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-O22JKC6F.js";
|
|
95
95
|
|
|
96
96
|
// src/zero.ts
|
|
97
97
|
import { Command as Command61 } from "commander";
|
|
@@ -3205,7 +3205,28 @@ var questionCommand = new Command59().name("question").description("Ask the user
|
|
|
3205
3205
|
"--desc <text>",
|
|
3206
3206
|
"Description for the preceding --option",
|
|
3207
3207
|
collectDesc
|
|
3208
|
-
).option("--multi-select", "Allow multiple selections").option("--timeout <seconds>", "How long to wait for answer", "300").
|
|
3208
|
+
).option("--multi-select", "Allow multiple selections").option("--timeout <seconds>", "How long to wait for answer", "300").addHelpText(
|
|
3209
|
+
"after",
|
|
3210
|
+
`
|
|
3211
|
+
Examples:
|
|
3212
|
+
Yes/No confirmation:
|
|
3213
|
+
zero ask-user question "Deploy to production?" --option "Yes" --option "No"
|
|
3214
|
+
|
|
3215
|
+
Options with descriptions:
|
|
3216
|
+
zero ask-user question "Pick a strategy" \\
|
|
3217
|
+
--header "Strategy" \\
|
|
3218
|
+
--option "Fast" --desc "Quick but risky" \\
|
|
3219
|
+
--option "Safe" --desc "Slow but reliable"
|
|
3220
|
+
|
|
3221
|
+
Multi-select:
|
|
3222
|
+
zero ask-user question "Which services to restart?" \\
|
|
3223
|
+
--multi-select \\
|
|
3224
|
+
--option "API" --option "Worker" --option "Scheduler"
|
|
3225
|
+
|
|
3226
|
+
Notes:
|
|
3227
|
+
- At least one --option is required
|
|
3228
|
+
- --desc must immediately follow its --option`
|
|
3229
|
+
).action(
|
|
3209
3230
|
withErrorHandler(
|
|
3210
3231
|
async (question, options) => {
|
|
3211
3232
|
const optionItems = options.option ?? [];
|
|
@@ -3304,14 +3325,14 @@ function registerZeroCommands(prog, commands) {
|
|
|
3304
3325
|
var program = new Command61();
|
|
3305
3326
|
program.name("zero").description(
|
|
3306
3327
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
3307
|
-
).version("9.86.
|
|
3328
|
+
).version("9.86.4").addHelpText(
|
|
3308
3329
|
"after",
|
|
3309
3330
|
`
|
|
3310
3331
|
Common scenarios:
|
|
3311
3332
|
Missing a token? zero doctor missing-token <TOKEN_NAME>
|
|
3312
3333
|
Delegate to teammate? zero run <agent-id> "your task"
|
|
3313
3334
|
Send a Slack message? zero slack message send -c <channel> -t "text"
|
|
3314
|
-
Set up a schedule? zero schedule setup <agent-
|
|
3335
|
+
Set up a schedule? zero schedule setup <agent-id>
|
|
3315
3336
|
Update yourself? zero agent --help
|
|
3316
3337
|
Check your identity? zero whoami`
|
|
3317
3338
|
);
|