@vm0/cli 9.79.1 → 9.79.3
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-ZKST6ZZZ.js → chunk-MKJBEFRH.js} +575 -94
- package/chunk-MKJBEFRH.js.map +1 -0
- package/index.js +13 -19
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +2 -2
- package/chunk-ZKST6ZZZ.js.map +0 -1
package/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
zeroScheduleCommand,
|
|
73
73
|
zeroSecretCommand,
|
|
74
74
|
zeroVariableCommand
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-MKJBEFRH.js";
|
|
76
76
|
|
|
77
77
|
// src/index.ts
|
|
78
78
|
import { Command as Command45 } from "commander";
|
|
@@ -458,7 +458,7 @@ function getConfigPath() {
|
|
|
458
458
|
return join(homedir(), ".vm0", "config.json");
|
|
459
459
|
}
|
|
460
460
|
var infoCommand = new Command6().name("info").description("Display environment and debug information").action(async () => {
|
|
461
|
-
console.log(chalk3.bold(`VM0 CLI v${"9.79.
|
|
461
|
+
console.log(chalk3.bold(`VM0 CLI v${"9.79.3"}`));
|
|
462
462
|
console.log();
|
|
463
463
|
const config = await loadConfig();
|
|
464
464
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1684,7 +1684,7 @@ var composeCommand = new Command7().name("compose").description("Create or updat
|
|
|
1684
1684
|
options.autoUpdate = false;
|
|
1685
1685
|
}
|
|
1686
1686
|
if (options.autoUpdate !== false) {
|
|
1687
|
-
await startSilentUpgrade("9.79.
|
|
1687
|
+
await startSilentUpgrade("9.79.3");
|
|
1688
1688
|
}
|
|
1689
1689
|
try {
|
|
1690
1690
|
let result;
|
|
@@ -2519,7 +2519,7 @@ var mainRunCommand = new Command8().name("run").description("Run an agent").argu
|
|
|
2519
2519
|
withErrorHandler(
|
|
2520
2520
|
async (identifier, prompt, options) => {
|
|
2521
2521
|
if (options.autoUpdate !== false) {
|
|
2522
|
-
await startSilentUpgrade("9.79.
|
|
2522
|
+
await startSilentUpgrade("9.79.3");
|
|
2523
2523
|
}
|
|
2524
2524
|
const { org, name, version } = parseIdentifier(identifier);
|
|
2525
2525
|
let composeId;
|
|
@@ -4275,7 +4275,7 @@ var cookAction = new Command35().name("cook").description("Quick start: prepare,
|
|
|
4275
4275
|
withErrorHandler(
|
|
4276
4276
|
async (prompt, options) => {
|
|
4277
4277
|
if (options.autoUpdate !== false) {
|
|
4278
|
-
const shouldExit = await checkAndUpgrade("9.79.
|
|
4278
|
+
const shouldExit = await checkAndUpgrade("9.79.3", prompt);
|
|
4279
4279
|
if (shouldExit) {
|
|
4280
4280
|
process.exit(0);
|
|
4281
4281
|
}
|
|
@@ -5441,13 +5441,13 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5441
5441
|
if (latestVersion === null) {
|
|
5442
5442
|
throw new Error("Could not check for updates. Please try again later.");
|
|
5443
5443
|
}
|
|
5444
|
-
if (latestVersion === "9.79.
|
|
5445
|
-
console.log(chalk36.green(`\u2713 Already up to date (${"9.79.
|
|
5444
|
+
if (latestVersion === "9.79.3") {
|
|
5445
|
+
console.log(chalk36.green(`\u2713 Already up to date (${"9.79.3"})`));
|
|
5446
5446
|
return;
|
|
5447
5447
|
}
|
|
5448
5448
|
console.log(
|
|
5449
5449
|
chalk36.yellow(
|
|
5450
|
-
`Current version: ${"9.79.
|
|
5450
|
+
`Current version: ${"9.79.3"} -> Latest version: ${latestVersion}`
|
|
5451
5451
|
)
|
|
5452
5452
|
);
|
|
5453
5453
|
console.log();
|
|
@@ -5474,7 +5474,7 @@ var upgradeCommand = new Command42().name("upgrade").description("Upgrade vm0 CL
|
|
|
5474
5474
|
const success = await performUpgrade(packageManager);
|
|
5475
5475
|
if (success) {
|
|
5476
5476
|
console.log(
|
|
5477
|
-
chalk36.green(`\u2713 Upgraded from ${"9.79.
|
|
5477
|
+
chalk36.green(`\u2713 Upgraded from ${"9.79.3"} to ${latestVersion}`)
|
|
5478
5478
|
);
|
|
5479
5479
|
return;
|
|
5480
5480
|
}
|
|
@@ -5493,21 +5493,15 @@ function isInsideSandbox() {
|
|
|
5493
5493
|
return !!process.env.VM0_RUN_ID;
|
|
5494
5494
|
}
|
|
5495
5495
|
async function showSandboxInfo() {
|
|
5496
|
-
const
|
|
5497
|
-
const agentVersion = process.env.VM0_AGENT_VERSION;
|
|
5498
|
-
const agentComposeId = process.env.VM0_AGENT_COMPOSE_ID;
|
|
5499
|
-
const agentOrgSlug = process.env.VM0_AGENT_ORG_SLUG;
|
|
5496
|
+
const agentId = process.env.ZERO_AGENT_ID;
|
|
5500
5497
|
const cliAgentType = process.env.CLI_AGENT_TYPE;
|
|
5501
5498
|
const runId = process.env.VM0_RUN_ID;
|
|
5502
5499
|
const activeOrg = process.env.VM0_ACTIVE_ORG;
|
|
5503
5500
|
const apiUrl = process.env.VM0_API_URL;
|
|
5504
|
-
const hasAgentInfo =
|
|
5501
|
+
const hasAgentInfo = agentId || cliAgentType;
|
|
5505
5502
|
if (hasAgentInfo) {
|
|
5506
5503
|
console.log(chalk37.bold("Agent:"));
|
|
5507
|
-
if (
|
|
5508
|
-
if (agentVersion) console.log(` Version: ${agentVersion}`);
|
|
5509
|
-
if (agentComposeId) console.log(` Compose ID: ${agentComposeId}`);
|
|
5510
|
-
if (agentOrgSlug) console.log(` Org: ${agentOrgSlug}`);
|
|
5504
|
+
if (agentId) console.log(` ID: ${agentId}`);
|
|
5511
5505
|
if (cliAgentType) console.log(` Framework: ${cliAgentType}`);
|
|
5512
5506
|
console.log();
|
|
5513
5507
|
}
|
|
@@ -5552,7 +5546,7 @@ var zeroCommand = new Command44("zero").description("Zero platform commands").ad
|
|
|
5552
5546
|
|
|
5553
5547
|
// src/index.ts
|
|
5554
5548
|
var program = new Command45();
|
|
5555
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.79.
|
|
5549
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.79.3");
|
|
5556
5550
|
program.addCommand(authCommand);
|
|
5557
5551
|
program.addCommand(infoCommand);
|
|
5558
5552
|
program.addCommand(composeCommand);
|