@vm0/cli 9.116.0 → 9.116.2
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-DV6NKREP.js} +554 -184
- package/{chunk-N3EY4HQ3.js.map → chunk-DV6NKREP.js.map} +1 -1
- package/index.js +17 -46
- 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-DV6NKREP.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.2"}`));
|
|
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.2");
|
|
4498
4498
|
}
|
|
4499
4499
|
try {
|
|
4500
4500
|
let result;
|
|
@@ -4544,16 +4544,6 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4544
4544
|
).option(
|
|
4545
4545
|
"--artifact <name[:version]>",
|
|
4546
4546
|
"Artifact storage (format: name or name:version)"
|
|
4547
|
-
).addOption(
|
|
4548
|
-
new Option(
|
|
4549
|
-
"--artifact-name <name>",
|
|
4550
|
-
"[deprecated: use --artifact] Artifact storage name"
|
|
4551
|
-
).hideHelp()
|
|
4552
|
-
).addOption(
|
|
4553
|
-
new Option(
|
|
4554
|
-
"--artifact-version <hash>",
|
|
4555
|
-
"[deprecated: use --artifact] Artifact version hash"
|
|
4556
|
-
).hideHelp()
|
|
4557
4547
|
).option(
|
|
4558
4548
|
"--volume-version <name=version>",
|
|
4559
4549
|
"Volume version override (repeatable, format: volumeName=version)",
|
|
@@ -4589,7 +4579,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4589
4579
|
withErrorHandler(
|
|
4590
4580
|
async (identifier, prompt, options) => {
|
|
4591
4581
|
if (options.autoUpdate !== false) {
|
|
4592
|
-
await startSilentUpgrade("9.116.
|
|
4582
|
+
await startSilentUpgrade("9.116.2");
|
|
4593
4583
|
}
|
|
4594
4584
|
const { name, version } = parseIdentifier(identifier);
|
|
4595
4585
|
let composeId;
|
|
@@ -4629,24 +4619,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4629
4619
|
secretNames,
|
|
4630
4620
|
options.envFile
|
|
4631
4621
|
);
|
|
4632
|
-
|
|
4633
|
-
let artifactVersion = options.artifactVersion;
|
|
4634
|
-
if (options.artifact) {
|
|
4635
|
-
if (options.artifactName || options.artifactVersion) {
|
|
4636
|
-
throw new Error(
|
|
4637
|
-
"Cannot use --artifact with --artifact-name or --artifact-version. Use --artifact <name[:version]> instead."
|
|
4638
|
-
);
|
|
4639
|
-
}
|
|
4640
|
-
const parsed = parseArtifact(options.artifact);
|
|
4641
|
-
artifactName = parsed.artifactName;
|
|
4642
|
-
artifactVersion = parsed.artifactVersion;
|
|
4643
|
-
} else if (options.artifactName) {
|
|
4644
|
-
console.error(
|
|
4645
|
-
source_default.yellow(
|
|
4646
|
-
"\u26A0 --artifact-name is deprecated, use --artifact <name[:version]> instead"
|
|
4647
|
-
)
|
|
4648
|
-
);
|
|
4649
|
-
}
|
|
4622
|
+
const parsedArtifact = parseArtifact(options.artifact);
|
|
4650
4623
|
const volumeVersions = Object.keys(options.volumeVersion).length > 0 ? options.volumeVersion : void 0;
|
|
4651
4624
|
const additionalVolumes = options.volume.length > 0 ? options.volume : void 0;
|
|
4652
4625
|
const response = await createRun({
|
|
@@ -4655,8 +4628,8 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4655
4628
|
prompt,
|
|
4656
4629
|
vars,
|
|
4657
4630
|
secrets,
|
|
4658
|
-
artifactName,
|
|
4659
|
-
artifactVersion,
|
|
4631
|
+
artifactName: parsedArtifact?.artifactName,
|
|
4632
|
+
artifactVersion: parsedArtifact?.artifactVersion,
|
|
4660
4633
|
memoryName: options.memory,
|
|
4661
4634
|
volumeVersions,
|
|
4662
4635
|
additionalVolumes,
|
|
@@ -6350,14 +6323,12 @@ async function composeAgent(cwd, skipConfirm) {
|
|
|
6350
6323
|
async function runAgent(agentName, artifactDir, prompt, cwd, options) {
|
|
6351
6324
|
console.log();
|
|
6352
6325
|
console.log(source_default.bold("Running agent:"));
|
|
6353
|
-
printCommand(
|
|
6354
|
-
`vm0 run ${agentName} --artifact-name ${ARTIFACT_DIR} "${prompt}"`
|
|
6355
|
-
);
|
|
6326
|
+
printCommand(`vm0 run ${agentName} --artifact ${ARTIFACT_DIR} "${prompt}"`);
|
|
6356
6327
|
console.log();
|
|
6357
6328
|
const runArgs = [
|
|
6358
6329
|
"run",
|
|
6359
6330
|
agentName,
|
|
6360
|
-
"--artifact
|
|
6331
|
+
"--artifact",
|
|
6361
6332
|
ARTIFACT_DIR,
|
|
6362
6333
|
...options.envFile ? ["--env-file", options.envFile] : [],
|
|
6363
6334
|
...options.verbose ? ["--verbose"] : [],
|
|
@@ -6382,7 +6353,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6382
6353
|
withErrorHandler(
|
|
6383
6354
|
async (prompt, options) => {
|
|
6384
6355
|
if (options.autoUpdate !== false) {
|
|
6385
|
-
const shouldExit = await checkAndUpgrade("9.116.
|
|
6356
|
+
const shouldExit = await checkAndUpgrade("9.116.2", prompt);
|
|
6386
6357
|
if (shouldExit) {
|
|
6387
6358
|
process.exit(0);
|
|
6388
6359
|
}
|
|
@@ -6402,7 +6373,7 @@ var cookAction = new Command().name("cook").description("Quick start: prepare, c
|
|
|
6402
6373
|
console.log();
|
|
6403
6374
|
console.log("To run your agent:");
|
|
6404
6375
|
printCommand(
|
|
6405
|
-
`vm0 run ${agentName} --artifact
|
|
6376
|
+
`vm0 run ${agentName} --artifact ${ARTIFACT_DIR} "your prompt"`
|
|
6406
6377
|
);
|
|
6407
6378
|
}
|
|
6408
6379
|
}
|
|
@@ -7149,13 +7120,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7149
7120
|
if (latestVersion === null) {
|
|
7150
7121
|
throw new Error("Could not check for updates. Please try again later.");
|
|
7151
7122
|
}
|
|
7152
|
-
if (latestVersion === "9.116.
|
|
7153
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.116.
|
|
7123
|
+
if (latestVersion === "9.116.2") {
|
|
7124
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.116.2"})`));
|
|
7154
7125
|
return;
|
|
7155
7126
|
}
|
|
7156
7127
|
console.log(
|
|
7157
7128
|
source_default.yellow(
|
|
7158
|
-
`Current version: ${"9.116.
|
|
7129
|
+
`Current version: ${"9.116.2"} -> Latest version: ${latestVersion}`
|
|
7159
7130
|
)
|
|
7160
7131
|
);
|
|
7161
7132
|
console.log();
|
|
@@ -7182,7 +7153,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
7182
7153
|
const success = await performUpgrade(packageManager);
|
|
7183
7154
|
if (success) {
|
|
7184
7155
|
console.log(
|
|
7185
|
-
source_default.green(`\u2713 Upgraded from ${"9.116.
|
|
7156
|
+
source_default.green(`\u2713 Upgraded from ${"9.116.2"} to ${latestVersion}`)
|
|
7186
7157
|
);
|
|
7187
7158
|
return;
|
|
7188
7159
|
}
|
|
@@ -7249,7 +7220,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
7249
7220
|
|
|
7250
7221
|
// src/index.ts
|
|
7251
7222
|
var program = new Command();
|
|
7252
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.
|
|
7223
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.116.2");
|
|
7253
7224
|
program.addCommand(authCommand);
|
|
7254
7225
|
program.addCommand(infoCommand);
|
|
7255
7226
|
program.addCommand(composeCommand);
|