@vm0/cli 9.179.0 → 9.180.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/index.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  source_default,
68
68
  volumeConfigSchema,
69
69
  withErrorHandler
70
- } from "./chunk-KC3JLLAV.js";
70
+ } from "./chunk-CGM67BB2.js";
71
71
  import {
72
72
  __toESM,
73
73
  init_esm_shims
@@ -400,7 +400,7 @@ function getConfigPath() {
400
400
  return join(os.homedir(), ".vm0", "config.json");
401
401
  }
402
402
  var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
403
- console.log(source_default.bold(`VM0 CLI v${"9.179.0"}`));
403
+ console.log(source_default.bold(`VM0 CLI v${"9.180.1"}`));
404
404
  console.log();
405
405
  const config = await loadConfig();
406
406
  const hasEnvToken = !!process.env.VM0_TOKEN;
@@ -4293,7 +4293,7 @@ var composeCommand = new Command().name("compose").description("Create or update
4293
4293
  options.autoUpdate = false;
4294
4294
  }
4295
4295
  if (options.autoUpdate !== false) {
4296
- await startSilentUpgrade("9.179.0");
4296
+ await startSilentUpgrade("9.180.1");
4297
4297
  }
4298
4298
  try {
4299
4299
  let result;
@@ -4395,7 +4395,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
4395
4395
  withErrorHandler(
4396
4396
  async (identifier, prompt, options) => {
4397
4397
  if (options.autoUpdate !== false) {
4398
- await startSilentUpgrade("9.179.0");
4398
+ await startSilentUpgrade("9.180.1");
4399
4399
  }
4400
4400
  const { name, version } = parseIdentifier(identifier);
4401
4401
  let composeId;
@@ -6192,13 +6192,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6192
6192
  if (latestVersion === null) {
6193
6193
  throw new Error("Could not check for updates. Please try again later.");
6194
6194
  }
6195
- if (latestVersion === "9.179.0") {
6196
- console.log(source_default.green(`\u2713 Already up to date (${"9.179.0"})`));
6195
+ if (latestVersion === "9.180.1") {
6196
+ console.log(source_default.green(`\u2713 Already up to date (${"9.180.1"})`));
6197
6197
  return;
6198
6198
  }
6199
6199
  console.log(
6200
6200
  source_default.yellow(
6201
- `Current version: ${"9.179.0"} -> Latest version: ${latestVersion}`
6201
+ `Current version: ${"9.180.1"} -> Latest version: ${latestVersion}`
6202
6202
  )
6203
6203
  );
6204
6204
  console.log();
@@ -6225,7 +6225,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
6225
6225
  const success = await performUpgrade(packageManager);
6226
6226
  if (success) {
6227
6227
  console.log(
6228
- source_default.green(`\u2713 Upgraded from ${"9.179.0"} to ${latestVersion}`)
6228
+ source_default.green(`\u2713 Upgraded from ${"9.180.1"} to ${latestVersion}`)
6229
6229
  );
6230
6230
  return;
6231
6231
  }
@@ -6292,7 +6292,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
6292
6292
 
6293
6293
  // src/index.ts
6294
6294
  var program = new Command();
6295
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.179.0");
6295
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.180.1");
6296
6296
  program.addCommand(authCommand);
6297
6297
  program.addCommand(infoCommand);
6298
6298
  program.addCommand(composeCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.179.0",
3
+ "version": "9.180.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -149,7 +149,7 @@ import {
149
149
  upsertZeroOrgModelProvider,
150
150
  withErrorHandler,
151
151
  zeroAgentCustomSkillNameSchema
152
- } from "./chunk-KC3JLLAV.js";
152
+ } from "./chunk-CGM67BB2.js";
153
153
  import {
154
154
  __toESM,
155
155
  init_esm_shims
@@ -11398,7 +11398,7 @@ var reportCommand = createArtifactGenerateCommand({
11398
11398
  description: "Generate an HTML report from a prompt",
11399
11399
  usageCommand: "zero generate report",
11400
11400
  examples: ` Generate report: zero generate report --prompt "A Q2 usage report for the API team"
11401
- Stable hosted slug: zero generate report --site-slug api-usage-q2 --prompt "A Q2 usage report"
11401
+ Custom site slug: zero generate report --site-slug api-usage-q2 --prompt "A Q2 usage report"
11402
11402
  Show choices: zero generate report`,
11403
11403
  details: standardDetails("report"),
11404
11404
  artifactRules: [
@@ -11415,7 +11415,7 @@ var docsDesignCommand = createArtifactGenerateCommand({
11415
11415
  description: "Generate a documentation design from a prompt",
11416
11416
  usageCommand: "zero generate docs-design",
11417
11417
  examples: ` Generate docs design: zero generate docs-design --prompt "Docs for adding artifact targets"
11418
- Stable hosted slug: zero generate docs-design --site-slug artifact-target-docs --prompt "Artifact target docs"
11418
+ Custom site slug: zero generate docs-design --site-slug artifact-target-docs --prompt "Artifact target docs"
11419
11419
  Show choices: zero generate docs-design`,
11420
11420
  details: standardDetails("docs-design"),
11421
11421
  artifactRules: [
@@ -11432,7 +11432,7 @@ var posterCommand = createArtifactGenerateCommand({
11432
11432
  description: "Generate an HTML poster from a prompt",
11433
11433
  usageCommand: "zero generate poster",
11434
11434
  examples: ` Generate poster: zero generate poster --prompt "A launch poster for artifact targets"
11435
- Stable hosted slug: zero generate poster --site-slug artifact-poster --prompt "A launch poster"
11435
+ Custom site slug: zero generate poster --site-slug artifact-poster --prompt "A launch poster"
11436
11436
  Show choices: zero generate poster`,
11437
11437
  details: standardDetails("poster"),
11438
11438
  artifactRules: [
@@ -11449,7 +11449,7 @@ var dashboardDesignCommand = createArtifactGenerateCommand({
11449
11449
  description: "Generate a dashboard design from a prompt",
11450
11450
  usageCommand: "zero generate dashboard-design",
11451
11451
  examples: ` Generate dash design: zero generate dashboard-design --prompt "An ops dashboard for generation runs"
11452
- Stable hosted slug: zero generate dashboard-design --site-slug generation-ops --prompt "A generation ops dashboard"
11452
+ Custom site slug: zero generate dashboard-design --site-slug generation-ops --prompt "A generation ops dashboard"
11453
11453
  Show choices: zero generate dashboard-design`,
11454
11454
  details: standardDetails("dashboard-design"),
11455
11455
  artifactRules: [
@@ -11466,7 +11466,7 @@ var mobileAppDesignCommand = createArtifactGenerateCommand({
11466
11466
  description: "Generate a mobile app design prototype from a prompt",
11467
11467
  usageCommand: "zero generate mobile-app-design",
11468
11468
  examples: ` Generate mobile UI: zero generate mobile-app-design --prompt "A mobile review screen for generation artifacts"
11469
- Stable hosted slug: zero generate mobile-app-design --site-slug generation-mobile-review --prompt "A mobile review screen"
11469
+ Custom site slug: zero generate mobile-app-design --site-slug generation-mobile-review --prompt "A mobile review screen"
11470
11470
  Show choices: zero generate mobile-app-design`,
11471
11471
  details: standardDetails("mobile-app-design"),
11472
11472
  artifactRules: [
@@ -11600,7 +11600,10 @@ ${formatRegistryListing(templates, "presentation templates")}`;
11600
11600
  "Use a fixed 1920x1080 slide canvas and scale it uniformly for smaller viewports.",
11601
11601
  "Use one section per slide and keep repeated elements in consistent positions.",
11602
11602
  "Make keyboard navigation work with ArrowLeft, ArrowRight, Home, and End.",
11603
- "Keep slide text readable from across a room; avoid memo-like walls of text."
11603
+ "Keep slide text readable from across a room; avoid memo-like walls of text.",
11604
+ "Before laying out slides, establish the deck's arc: the opening problem or question, how it develops, and what conclusion lands; every slide should serve a clear narrative role in that arc.",
11605
+ "Vary slide forms across the deck \u2014 full-bleed statement, evidence with data, pull quote, section break, summary \u2014 and avoid defaulting every slide to title-plus-bullets.",
11606
+ "Each slide carries one idea; prefer a single strong statement over a list, and never exceed three bullets on any slide."
11604
11607
  ]
11605
11608
  });
11606
11609
  console.log(packet.instructions);
@@ -11616,7 +11619,7 @@ var presentationCommand = createPresentationGenerateCommand({
11616
11619
  examples: ` Generate deck: zero generate presentation --prompt "A strategy deck for reducing support volume"
11617
11620
  Pipe prompt: cat brief.txt | zero generate presentation
11618
11621
  Pick slide count: zero generate presentation --slides 10 --prompt "A product launch narrative"
11619
- Stable hosted slug: zero generate presentation --site-slug api-migration-plan --prompt "API migration plan"
11622
+ Custom site slug: zero generate presentation --site-slug api-migration-plan --prompt "API migration plan"
11620
11623
  Show choices: zero generate presentation`
11621
11624
  });
11622
11625
 
@@ -12281,7 +12284,7 @@ Examples:
12281
12284
  Generate site: zero generate website --prompt "A launch site for a developer observability tool"
12282
12285
  Pick template: zero generate website --template saas-landing --prompt "Launch site for a billing API"
12283
12286
  Pick design system: zero generate website --design-system stripe --prompt "Pricing page for a SaaS"
12284
- Stable hosted slug: zero generate website --site-slug api-migration-demo --prompt "An internal migration microsite"
12287
+ Custom site slug: zero generate website --site-slug api-migration-demo --prompt "An internal migration microsite"
12285
12288
  Pipe prompt: cat brief.txt | zero generate website
12286
12289
  Show choices: zero generate website
12287
12290
 
@@ -12811,6 +12814,7 @@ async function publishStaticSite(options) {
12811
12814
  });
12812
12815
  const prepared = await prepareHostedSite({
12813
12816
  site: options.site,
12817
+ ...options.slugSuffix !== void 0 && { slugSuffix: options.slugSuffix },
12814
12818
  spaFallback: Boolean(options.spaFallback),
12815
12819
  files: scan.files.map((file) => {
12816
12820
  return {
@@ -12862,15 +12866,17 @@ function formatBytes(bytes) {
12862
12866
  if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
12863
12867
  return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
12864
12868
  }
12865
- var zeroHostCommand = new Command().name("host").description("Publish a built static site and print its public URL").argument("<dir>", "Static build directory, for example ./dist").requiredOption("--site <slug>", "Public site slug, e.g. my-product-demo").option("--spa", "Serve unknown HTML navigation paths from index.html").option("--json", "Output only the final result as JSON").addHelpText(
12869
+ var zeroHostCommand = new Command().name("host").description("Publish a built static site and print its public URL").argument("<dir>", "Static build directory, for example ./dist").requiredOption("--site <slug>", "Public site slug, e.g. my-product-demo").option("--slug-suffix <suffix>", "Reuse a generated site URL suffix").option("--spa", "Serve unknown HTML navigation paths from index.html").option("--json", "Output only the final result as JSON").addHelpText(
12866
12870
  "after",
12867
12871
  `
12868
12872
  Examples:
12869
12873
  Publish a Vite build: zero host ./dist --site my-product-demo --spa
12874
+ Redeploy a URL: zero host ./dist --site my-product-demo --slug-suffix a1b2c3d4 --spa
12870
12875
  Machine readable: zero host ./dist --site my-product-demo --spa --json
12871
12876
 
12872
12877
  Notes:
12873
12878
  - Authenticates via ZERO_TOKEN (requires host:write capability)
12879
+ - Reusing both --site and --slug-suffix keeps the same URL
12874
12880
  - The directory must include index.html
12875
12881
  - Local HTML/CSS asset references must point at files inside the directory`
12876
12882
  ).action(
@@ -12878,6 +12884,7 @@ Notes:
12878
12884
  const result = await publishStaticSite({
12879
12885
  dir,
12880
12886
  site: options.site,
12887
+ slugSuffix: options.slugSuffix,
12881
12888
  spaFallback: Boolean(options.spa),
12882
12889
  onProgress: options.json ? void 0 : (progress) => {
12883
12890
  if (progress.phase === "preparing") {
@@ -13422,7 +13429,7 @@ function registerZeroCommands(prog, commands) {
13422
13429
  var program = new Command();
13423
13430
  program.name("zero").description(
13424
13431
  "Zero CLI \u2014 interact with the zero platform from inside the sandbox"
13425
- ).version("9.179.0").addHelpText("after", () => {
13432
+ ).version("9.180.1").addHelpText("after", () => {
13426
13433
  return buildZeroHelpText();
13427
13434
  });
13428
13435
  if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {