@vm0/cli 9.79.2 → 9.80.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-RXI3UIUZ.js → chunk-QKXNL42S.js} +10444 -11586
- package/chunk-QKXNL42S.js.map +1 -0
- package/index.js +14 -26
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +2874 -10
- package/zero.js.map +1 -1
- package/chunk-RXI3UIUZ.js.map +0 -1
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALL_RUN_STATUSES,
|
|
4
4
|
ApiRequestError,
|
|
5
|
-
agentCommand,
|
|
6
5
|
agentDefinitionSchema,
|
|
7
6
|
cancelRun,
|
|
8
7
|
checkpointsByIdContract,
|
|
@@ -65,17 +64,11 @@ import {
|
|
|
65
64
|
storagesListContract,
|
|
66
65
|
storagesPrepareContract,
|
|
67
66
|
volumeConfigSchema,
|
|
68
|
-
withErrorHandler
|
|
69
|
-
|
|
70
|
-
zeroOrgCommand,
|
|
71
|
-
zeroPreferenceCommand,
|
|
72
|
-
zeroScheduleCommand,
|
|
73
|
-
zeroSecretCommand,
|
|
74
|
-
zeroVariableCommand
|
|
75
|
-
} from "./chunk-RXI3UIUZ.js";
|
|
67
|
+
withErrorHandler
|
|
68
|
+
} from "./chunk-QKXNL42S.js";
|
|
76
69
|
|
|
77
70
|
// src/index.ts
|
|
78
|
-
import { Command as
|
|
71
|
+
import { Command as Command44 } from "commander";
|
|
79
72
|
|
|
80
73
|
// src/commands/auth/index.ts
|
|
81
74
|
import { Command as Command5 } from "commander";
|
|
@@ -458,7 +451,7 @@ function getConfigPath() {
|
|
|
458
451
|
return join(homedir(), ".vm0", "config.json");
|
|
459
452
|
}
|
|
460
453
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
461
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.
|
|
454
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.80.0"}`));
|
|
462
455
|
console.log();
|
|
463
456
|
const config = await loadConfig();
|
|
464
457
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1684,7 +1677,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1684
1677
|
options.autoUpdate = false;
|
|
1685
1678
|
}
|
|
1686
1679
|
if (options.autoUpdate !== false) {
|
|
1687
|
-
await startSilentUpgrade("9.
|
|
1680
|
+
await startSilentUpgrade("9.80.0");
|
|
1688
1681
|
}
|
|
1689
1682
|
try {
|
|
1690
1683
|
let result;
|
|
@@ -2519,7 +2512,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
2519
2512
|
withErrorHandler(
|
|
2520
2513
|
async (identifier, prompt, options) => {
|
|
2521
2514
|
if (options.autoUpdate !== false) {
|
|
2522
|
-
await startSilentUpgrade("9.
|
|
2515
|
+
await startSilentUpgrade("9.80.0");
|
|
2523
2516
|
}
|
|
2524
2517
|
const { org, name, version } = parseIdentifier(identifier);
|
|
2525
2518
|
let composeId;
|
|
@@ -4275,7 +4268,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
4275
4268
|
withErrorHandler(
|
|
4276
4269
|
async (prompt, options) => {
|
|
4277
4270
|
if (options.autoUpdate !== false) {
|
|
4278
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
4271
|
+
const shouldExit = await checkAndUpgrade("9.80.0", prompt);
|
|
4279
4272
|
if (shouldExit) {
|
|
4280
4273
|
process.exit(0);
|
|
4281
4274
|
}
|
|
@@ -5420,7 +5413,7 @@ var initCommand4 = new Command41().name("init").description("Initialize a new VM
|
|
|
5420
5413
|
console.log();
|
|
5421
5414
|
console.log("Next steps:");
|
|
5422
5415
|
console.log(
|
|
5423
|
-
` 1. Set up model provider (one-time): ${chalk35.cyan("
|
|
5416
|
+
` 1. Set up model provider (one-time): ${chalk35.cyan("zero org model-provider setup")}`
|
|
5424
5417
|
);
|
|
5425
5418
|
console.log(
|
|
5426
5419
|
` 2. Edit ${chalk35.cyan("AGENTS.md")} to customize your agent's workflow`
|
|
@@ -5441,13 +5434,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5441
5434
|
if (latestVersion === null) {
|
|
5442
5435
|
throw new Error("Could not check for updates. Please try again later.");
|
|
5443
5436
|
}
|
|
5444
|
-
if (latestVersion === "9.
|
|
5445
|
-
console.log(chalk36.green(`\u2713 Already up to date (${"9.
|
|
5437
|
+
if (latestVersion === "9.80.0") {
|
|
5438
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.80.0"})`));
|
|
5446
5439
|
return;
|
|
5447
5440
|
}
|
|
5448
5441
|
console.log(
|
|
5449
5442
|
chalk36.yellow(
|
|
5450
|
-
`Current version: ${"9.
|
|
5443
|
+
`Current version: ${"9.80.0"} -> Latest version: ${latestVersion}`
|
|
5451
5444
|
)
|
|
5452
5445
|
);
|
|
5453
5446
|
console.log();
|
|
@@ -5474,7 +5467,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5474
5467
|
const success = await performUpgrade(packageManager);
|
|
5475
5468
|
if (success) {
|
|
5476
5469
|
console.log(
|
|
5477
|
-
chalk36.green(`\u2713 Upgraded from ${"9.
|
|
5470
|
+
chalk36.green(`\u2713 Upgraded from ${"9.80.0"} to ${latestVersion}`)
|
|
5478
5471
|
);
|
|
5479
5472
|
return;
|
|
5480
5473
|
}
|
|
@@ -5540,13 +5533,9 @@ var whoamiCommand = new Command43().name("whoami").description("Show current ide
|
|
|
5540
5533
|
})
|
|
5541
5534
|
);
|
|
5542
5535
|
|
|
5543
|
-
// src/commands/zero/index.ts
|
|
5544
|
-
import { Command as Command44 } from "commander";
|
|
5545
|
-
var zeroCommand = new Command44("zero").description("Zero platform commands").addCommand(zeroOrgCommand).addCommand(agentCommand).addCommand(zeroConnectorCommand).addCommand(zeroPreferenceCommand).addCommand(zeroScheduleCommand).addCommand(zeroSecretCommand).addCommand(zeroVariableCommand);
|
|
5546
|
-
|
|
5547
5536
|
// src/index.ts
|
|
5548
|
-
var program = new
|
|
5549
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
5537
|
+
var program = new Command44();
|
|
5538
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.80.0");
|
|
5550
5539
|
program.addCommand(authCommand);
|
|
5551
5540
|
program.addCommand(infoCommand);
|
|
5552
5541
|
program.addCommand(composeCommand);
|
|
@@ -5559,7 +5548,6 @@ program.addCommand(logsCommand2);
|
|
|
5559
5548
|
program.addCommand(initCommand4);
|
|
5560
5549
|
program.addCommand(upgradeCommand);
|
|
5561
5550
|
program.addCommand(whoamiCommand);
|
|
5562
|
-
program.addCommand(zeroCommand);
|
|
5563
5551
|
if (process.argv[1]?.endsWith("index.js") || process.argv[1]?.endsWith("index.ts") || process.argv[1]?.endsWith("vm0")) {
|
|
5564
5552
|
process.stdout.on("error", (err) => {
|
|
5565
5553
|
if (err.code === "EPIPE") process.exit(0);
|