@vm0/cli 9.153.0 → 9.154.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-7B5CZ4YO.js → chunk-GDR4NWU2.js} +644 -312
- package/{chunk-7B5CZ4YO.js.map → chunk-GDR4NWU2.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +25 -14
- package/zero.js.map +1 -1
package/index.js
CHANGED
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
source_default,
|
|
69
69
|
volumeConfigSchema,
|
|
70
70
|
withErrorHandler
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-GDR4NWU2.js";
|
|
72
72
|
import {
|
|
73
73
|
__toESM,
|
|
74
74
|
init_esm_shims
|
|
@@ -387,7 +387,7 @@ function getConfigPath() {
|
|
|
387
387
|
return join(os.homedir(), ".vm0", "config.json");
|
|
388
388
|
}
|
|
389
389
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
390
|
-
console.log(source_default.bold(`VM0 CLI v${"9.
|
|
390
|
+
console.log(source_default.bold(`VM0 CLI v${"9.154.1"}`));
|
|
391
391
|
console.log();
|
|
392
392
|
const config = await loadConfig();
|
|
393
393
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -4280,7 +4280,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
4280
4280
|
options.autoUpdate = false;
|
|
4281
4281
|
}
|
|
4282
4282
|
if (options.autoUpdate !== false) {
|
|
4283
|
-
await startSilentUpgrade("9.
|
|
4283
|
+
await startSilentUpgrade("9.154.1");
|
|
4284
4284
|
}
|
|
4285
4285
|
try {
|
|
4286
4286
|
let result;
|
|
@@ -4372,7 +4372,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
4372
4372
|
withErrorHandler(
|
|
4373
4373
|
async (identifier, prompt, options) => {
|
|
4374
4374
|
if (options.autoUpdate !== false) {
|
|
4375
|
-
await startSilentUpgrade("9.
|
|
4375
|
+
await startSilentUpgrade("9.154.1");
|
|
4376
4376
|
}
|
|
4377
4377
|
const { name, version } = parseIdentifier(identifier);
|
|
4378
4378
|
let composeId;
|
|
@@ -6165,13 +6165,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6165
6165
|
if (latestVersion === null) {
|
|
6166
6166
|
throw new Error("Could not check for updates. Please try again later.");
|
|
6167
6167
|
}
|
|
6168
|
-
if (latestVersion === "9.
|
|
6169
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.
|
|
6168
|
+
if (latestVersion === "9.154.1") {
|
|
6169
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.154.1"})`));
|
|
6170
6170
|
return;
|
|
6171
6171
|
}
|
|
6172
6172
|
console.log(
|
|
6173
6173
|
source_default.yellow(
|
|
6174
|
-
`Current version: ${"9.
|
|
6174
|
+
`Current version: ${"9.154.1"} -> Latest version: ${latestVersion}`
|
|
6175
6175
|
)
|
|
6176
6176
|
);
|
|
6177
6177
|
console.log();
|
|
@@ -6198,7 +6198,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
6198
6198
|
const success = await performUpgrade(packageManager);
|
|
6199
6199
|
if (success) {
|
|
6200
6200
|
console.log(
|
|
6201
|
-
source_default.green(`\u2713 Upgraded from ${"9.
|
|
6201
|
+
source_default.green(`\u2713 Upgraded from ${"9.154.1"} to ${latestVersion}`)
|
|
6202
6202
|
);
|
|
6203
6203
|
return;
|
|
6204
6204
|
}
|
|
@@ -6265,7 +6265,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
6265
6265
|
|
|
6266
6266
|
// src/index.ts
|
|
6267
6267
|
var program = new Command();
|
|
6268
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
6268
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.154.1");
|
|
6269
6269
|
program.addCommand(authCommand);
|
|
6270
6270
|
program.addCommand(infoCommand);
|
|
6271
6271
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
withErrorHandler,
|
|
139
139
|
zeroAgentCustomSkillNameSchema,
|
|
140
140
|
zeroRemoteAgentCommand
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-GDR4NWU2.js";
|
|
142
142
|
import {
|
|
143
143
|
__toESM,
|
|
144
144
|
init_esm_shims
|
|
@@ -2543,20 +2543,20 @@ var BUILT_IN_GENERATION_PROVIDERS = {
|
|
|
2543
2543
|
image: [
|
|
2544
2544
|
{
|
|
2545
2545
|
label: "Built-in OpenAI",
|
|
2546
|
-
model: "gpt-image-
|
|
2547
|
-
command: "zero built-in generate image --model gpt-image-
|
|
2546
|
+
model: "gpt-image-1",
|
|
2547
|
+
command: "zero built-in generate image --model gpt-image-1 -h",
|
|
2548
2548
|
reason: "available without connector setup"
|
|
2549
2549
|
},
|
|
2550
2550
|
{
|
|
2551
2551
|
label: "Built-in OpenAI",
|
|
2552
|
-
model: "gpt-image-
|
|
2553
|
-
command: "zero built-in generate image --model gpt-image-
|
|
2552
|
+
model: "gpt-image-2",
|
|
2553
|
+
command: "zero built-in generate image --model gpt-image-2 -h",
|
|
2554
2554
|
reason: "available without connector setup"
|
|
2555
2555
|
},
|
|
2556
2556
|
{
|
|
2557
2557
|
label: "Built-in OpenAI",
|
|
2558
|
-
model: "gpt-image-1",
|
|
2559
|
-
command: "zero built-in generate image --model gpt-image-1 -h",
|
|
2558
|
+
model: "gpt-image-1.5",
|
|
2559
|
+
command: "zero built-in generate image --model gpt-image-1.5 -h",
|
|
2560
2560
|
reason: "available without connector setup"
|
|
2561
2561
|
},
|
|
2562
2562
|
{
|
|
@@ -2649,7 +2649,7 @@ var BUILT_IN_GENERATION_COMMANDS = {
|
|
|
2649
2649
|
image: {
|
|
2650
2650
|
label: "Built-in image generation",
|
|
2651
2651
|
command: "zero built-in generate image -h",
|
|
2652
|
-
models: "OpenAI: gpt-image-
|
|
2652
|
+
models: "OpenAI: gpt-image-1 (default), gpt-image-2, gpt-image-1.5, gpt-image-1-mini; fal.ai: flux-pro-1.1, flux-pro-1.1-ultra, qwen-image, seedream4"
|
|
2653
2653
|
},
|
|
2654
2654
|
video: {
|
|
2655
2655
|
label: "Built-in video generation",
|
|
@@ -7313,8 +7313,8 @@ function parseSeed(value) {
|
|
|
7313
7313
|
function createImageGenerateCommand(config) {
|
|
7314
7314
|
return new Command().name(config.name).description("Generate a billed image file from a prompt").option("--prompt <text>", "Image prompt; can also be piped via stdin").option(
|
|
7315
7315
|
"--model <model>",
|
|
7316
|
-
"Model: gpt-image-
|
|
7317
|
-
"gpt-image-
|
|
7316
|
+
"Model: gpt-image-1 (default), gpt-image-2, gpt-image-1.5, gpt-image-1-mini, flux-pro-1.1, flux-pro-1.1-ultra, qwen-image, or seedream4",
|
|
7317
|
+
"gpt-image-1"
|
|
7318
7318
|
).option(
|
|
7319
7319
|
"--size <size>",
|
|
7320
7320
|
"Image size: auto or WIDTHxHEIGHT; support varies by model",
|
|
@@ -7346,7 +7346,7 @@ Notes:
|
|
|
7346
7346
|
- Uses OpenAI for GPT Image models and fal.ai for non-OpenAI models
|
|
7347
7347
|
|
|
7348
7348
|
Models:
|
|
7349
|
-
- OpenAI: gpt-image-
|
|
7349
|
+
- OpenAI: gpt-image-1 (default), gpt-image-2, gpt-image-1.5,
|
|
7350
7350
|
gpt-image-1-mini. OpenAI generations bill returned text/image/output
|
|
7351
7351
|
token usage.
|
|
7352
7352
|
- fal.ai: flux-pro-1.1, flux-pro-1.1-ultra, qwen-image, seedream4.
|
|
@@ -7437,6 +7437,7 @@ init_esm_shims();
|
|
|
7437
7437
|
// src/commands/zero/shared/presentation-generate.ts
|
|
7438
7438
|
init_esm_shims();
|
|
7439
7439
|
import { readFileSync as readFileSync13 } from "fs";
|
|
7440
|
+
var PRESENTATION_MAX_IMAGES = 8;
|
|
7440
7441
|
function parseSlideCount(value) {
|
|
7441
7442
|
const slideCount = Number(value);
|
|
7442
7443
|
if (!Number.isInteger(slideCount)) {
|
|
@@ -7449,6 +7450,11 @@ function parseImageCount(value) {
|
|
|
7449
7450
|
if (!Number.isInteger(imageCount)) {
|
|
7450
7451
|
throw new InvalidArgumentError("images must be an integer");
|
|
7451
7452
|
}
|
|
7453
|
+
if (!Number.isSafeInteger(imageCount) || imageCount < 0 || imageCount > PRESENTATION_MAX_IMAGES) {
|
|
7454
|
+
throw new InvalidArgumentError(
|
|
7455
|
+
`images must be between 0 and ${PRESENTATION_MAX_IMAGES}`
|
|
7456
|
+
);
|
|
7457
|
+
}
|
|
7452
7458
|
return imageCount;
|
|
7453
7459
|
}
|
|
7454
7460
|
function readPrompt2(options, usageCommand) {
|
|
@@ -7473,9 +7479,12 @@ function createPresentationGenerateCommand(config) {
|
|
|
7473
7479
|
"Presentation prompt; can also be piped via stdin"
|
|
7474
7480
|
).option("--style <style>", "Style: editorial or swiss", "editorial").option("--slides <count>", "Slide count: 4-20", parseSlideCount, 8).option(
|
|
7475
7481
|
"--images <count>",
|
|
7476
|
-
|
|
7482
|
+
`Generated image count: 0-${PRESENTATION_MAX_IMAGES}`,
|
|
7477
7483
|
parseImageCount,
|
|
7478
7484
|
2
|
|
7485
|
+
).option(
|
|
7486
|
+
"--image-model <model>",
|
|
7487
|
+
"Image model for generated visuals (default: gpt-image-1): gpt-image-2, gpt-image-1.5, gpt-image-1, gpt-image-1-mini, flux-pro-1.1, flux-pro-1.1-ultra, qwen-image, or seedream4"
|
|
7479
7488
|
).option(
|
|
7480
7489
|
"--theme <theme>",
|
|
7481
7490
|
"Theme: editorial supports ink, coral, forest; swiss supports ikb, lemon, lime, mono"
|
|
@@ -7500,6 +7509,7 @@ Notes:
|
|
|
7500
7509
|
style: options.style,
|
|
7501
7510
|
slideCount: options.slides,
|
|
7502
7511
|
imageCount: options.images,
|
|
7512
|
+
imageModel: options.imageModel,
|
|
7503
7513
|
theme: options.theme,
|
|
7504
7514
|
audience: options.audience,
|
|
7505
7515
|
title: options.title
|
|
@@ -7513,6 +7523,7 @@ Notes:
|
|
|
7513
7523
|
console.log(source_default.dim(` Title: ${result.title}`));
|
|
7514
7524
|
console.log(source_default.dim(` Slides: ${result.slideCount}`));
|
|
7515
7525
|
console.log(source_default.dim(` Images: ${result.imageCount}`));
|
|
7526
|
+
console.log(source_default.dim(` Image model: ${result.imageModel}`));
|
|
7516
7527
|
console.log(source_default.dim(` Style: ${result.style}`));
|
|
7517
7528
|
console.log(source_default.dim(` Theme: ${result.theme}`));
|
|
7518
7529
|
console.log(source_default.dim(` Credits charged: ${result.creditsCharged}`));
|
|
@@ -7531,7 +7542,7 @@ var presentationCommand = createPresentationGenerateCommand({
|
|
|
7531
7542
|
usageCommand: "zero built-in generate presentation",
|
|
7532
7543
|
examples: ` Generate deck: zero built-in generate presentation --prompt "A strategy deck for reducing support volume"
|
|
7533
7544
|
Pipe prompt: cat brief.txt | zero built-in generate presentation
|
|
7534
|
-
Swiss style: zero built-in generate presentation --style swiss --theme ikb --slides 10 --images
|
|
7545
|
+
Swiss style: zero built-in generate presentation --style swiss --theme ikb --slides 10 --images 8 --image-model gpt-image-1.5 --prompt "A product launch narrative"
|
|
7535
7546
|
Audience context: zero built-in generate presentation --audience "engineering leadership" --prompt "API migration plan"`
|
|
7536
7547
|
});
|
|
7537
7548
|
|
|
@@ -8531,7 +8542,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
8531
8542
|
var program = new Command();
|
|
8532
8543
|
program.name("zero").description(
|
|
8533
8544
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
8534
|
-
).version("9.
|
|
8545
|
+
).version("9.154.1").addHelpText("after", () => {
|
|
8535
8546
|
return buildZeroHelpText();
|
|
8536
8547
|
});
|
|
8537
8548
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|