@vm0/cli 9.116.0 → 9.116.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-N3EY4HQ3.js → chunk-5FGI5P6M.js} +532 -172
- package/{chunk-N3EY4HQ3.js.map → chunk-5FGI5P6M.js.map} +1 -1
- package/index.js +14 -16
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +2 -2
package/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
source_default,
|
|
73
73
|
volumeConfigSchema,
|
|
74
74
|
withErrorHandler
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-5FGI5P6M.js";
|
|
76
76
|
|
|
77
77
|
// src/index.ts
|
|
78
78
|
init_esm_shims();
|
|
@@ -465,7 +465,7 @@ function getConfigPath() {
|
|
|
465
465
|
return join(homedir(), ".vm0", "config.json");
|
|
466
466
|
}
|
|
467
467
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
468
|
-
console.log(source_default.bold(`VM0 CLI v${"9.116.
|
|
468
|
+
console.log(source_default.bold(`VM0 CLI v${"9.116.1"}`));
|
|
469
469
|
console.log();
|
|
470
470
|
const config = await loadConfig();
|
|
471
471
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4402,7 +4402,7 @@ async function finalizeCompose(config, agent, options) {
|
|
|
4402
4402
|
console.log(" Run your agent:");
|
|
4403
4403
|
console.log(
|
|
4404
4404
|
source_default.cyan(
|
|
4405
|
-
` vm0 run ${displayName}:${shortVersionId} --artifact
|
|
4405
|
+
` vm0 run ${displayName}:${shortVersionId} --artifact <artifact> "your prompt"`
|
|
4406
4406
|
)
|
|
4407
4407
|
);
|
|
4408
4408
|
}
|
|
@@ -4494,7 +4494,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4494
4494
|
options.autoUpdate = false;
|
|
4495
4495
|
}
|
|
4496
4496
|
if (options.autoUpdate !== false) {
|
|
4497
|
-
await startSilentUpgrade("9.116.
|
|
4497
|
+
await startSilentUpgrade("9.116.1");
|
|
4498
4498
|
}
|
|
4499
4499
|
try {
|
|
4500
4500
|
let result;
|
|
@@ -4589,7 +4589,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4589
4589
|
withErrorHandler(
|
|
4590
4590
|
async (identifier, prompt, options) => {
|
|
4591
4591
|
if (options.autoUpdate !== false) {
|
|
4592
|
-
await startSilentUpgrade("9.116.
|
|
4592
|
+
await startSilentUpgrade("9.116.1");
|
|
4593
4593
|
}
|
|
4594
4594
|
const { name, version } = parseIdentifier(identifier);
|
|
4595
4595
|
let composeId;
|
|
@@ -6350,14 +6350,12 @@ async function composeAgent(cwd, skipConfirm) {
|
|
|
6350
6350
|
async function runAgent(agentName, artifactDir, prompt, cwd, options) {
|
|
6351
6351
|
console.log();
|
|
6352
6352
|
console.log(source_default.bold("Running agent:"));
|
|
6353
|
-
printCommand(
|
|
6354
|
-
`vm0 run ${agentName} --artifact-name ${ARTIFACT_DIR} "${prompt}"`
|
|
6355
|
-
);
|
|
6353
|
+
printCommand(`vm0 run ${agentName} --artifact ${ARTIFACT_DIR} "${prompt}"`);
|
|
6356
6354
|
console.log();
|
|
6357
6355
|
const runArgs = [
|
|
6358
6356
|
"run",
|
|
6359
6357
|
agentName,
|
|
6360
|
-
"--artifact
|
|
6358
|
+
"--artifact",
|
|
6361
6359
|
ARTIFACT_DIR,
|
|
6362
6360
|
...options.envFile ? ["--env-file", options.envFile] : [],
|
|
6363
6361
|
...options.verbose ? ["--verbose"] : [],
|
|
@@ -6382,7 +6380,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6382
6380
|
withErrorHandler(
|
|
6383
6381
|
async (prompt, options) => {
|
|
6384
6382
|
if (options.autoUpdate !== false) {
|
|
6385
|
-
const shouldExit = await checkAndUpgrade("9.116.
|
|
6383
|
+
const shouldExit = await checkAndUpgrade("9.116.1", prompt);
|
|
6386
6384
|
if (shouldExit) {
|
|
6387
6385
|
process.exit(0);
|
|
6388
6386
|
}
|
|
@@ -6402,7 +6400,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6402
6400
|
console.log();
|
|
6403
6401
|
console.log("To run your agent:");
|
|
6404
6402
|
printCommand(
|
|
6405
|
-
`vm0 run ${agentName} --artifact
|
|
6403
|
+
`vm0 run ${agentName} --artifact ${ARTIFACT_DIR} "your prompt"`
|
|
6406
6404
|
);
|
|
6407
6405
|
}
|
|
6408
6406
|
}
|
|
@@ -7149,13 +7147,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7149
7147
|
if (latestVersion === null) {
|
|
7150
7148
|
throw new Error("Could not check for updates. Please try again later.");
|
|
7151
7149
|
}
|
|
7152
|
-
if (latestVersion === "9.116.
|
|
7153
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.116.
|
|
7150
|
+
if (latestVersion === "9.116.1") {
|
|
7151
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.116.1"})`));
|
|
7154
7152
|
return;
|
|
7155
7153
|
}
|
|
7156
7154
|
console.log(
|
|
7157
7155
|
source_default.yellow(
|
|
7158
|
-
`Current version: ${"9.116.
|
|
7156
|
+
`Current version: ${"9.116.1"} -> Latest version: ${latestVersion}`
|
|
7159
7157
|
)
|
|
7160
7158
|
);
|
|
7161
7159
|
console.log();
|
|
@@ -7182,7 +7180,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7182
7180
|
const success = await performUpgrade(packageManager);
|
|
7183
7181
|
if (success) {
|
|
7184
7182
|
console.log(
|
|
7185
|
-
source_default.green(`\u2713 Upgraded from ${"9.116.
|
|
7183
|
+
source_default.green(`\u2713 Upgraded from ${"9.116.1"} to ${latestVersion}`)
|
|
7186
7184
|
);
|
|
7187
7185
|
return;
|
|
7188
7186
|
}
|
|
@@ -7249,7 +7247,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
7249
7247
|
|
|
7250
7248
|
// src/index.ts
|
|
7251
7249
|
var program = new Command();
|
|
7252
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.
|
|
7250
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.1");
|
|
7253
7251
|
program.addCommand(authCommand);
|
|
7254
7252
|
program.addCommand(infoCommand);
|
|
7255
7253
|
program.addCommand(composeCommand);
|