@vm0/cli 5.3.0 → 5.3.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.
Files changed (2) hide show
  1. package/index.js +13 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -18485,7 +18485,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
18485
18485
  }
18486
18486
  var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
18487
18487
  cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
18488
- const shouldExit = await checkAndUpgrade("5.3.0", prompt);
18488
+ const shouldExit = await checkAndUpgrade("5.3.1", prompt);
18489
18489
  if (shouldExit) {
18490
18490
  process.exit(0);
18491
18491
  }
@@ -20393,7 +20393,10 @@ var initCommand4 = new Command27().name("init").description("Create a schedule.y
20393
20393
  console.error(chalk29.red("\u2717 --prompt is required"));
20394
20394
  process.exit(1);
20395
20395
  }
20396
- promptText_ = await promptText("Prompt to run");
20396
+ promptText_ = await promptText(
20397
+ "Prompt to run",
20398
+ "let's start working."
20399
+ );
20397
20400
  if (!promptText_) {
20398
20401
  console.log(chalk29.dim("Cancelled"));
20399
20402
  return;
@@ -20406,12 +20409,17 @@ var initCommand4 = new Command27().name("init").description("Create a schedule.y
20406
20409
  if (extracted.vars.length > 0 || extracted.secrets.length > 0) {
20407
20410
  let includeVars = true;
20408
20411
  if (isInteractive()) {
20409
- const varList = [
20412
+ const varCount = extracted.vars.length;
20413
+ const secretCount = extracted.secrets.length;
20414
+ const parts = [];
20415
+ if (varCount > 0) parts.push(`${varCount} variable(s)`);
20416
+ if (secretCount > 0) parts.push(`${secretCount} secret(s)`);
20417
+ const itemList = [
20410
20418
  ...extracted.vars.map((v) => `vars.${v}`),
20411
20419
  ...extracted.secrets.map((s) => `secrets.${s}`)
20412
20420
  ];
20413
20421
  includeVars = await promptConfirm(
20414
- `Include ${varList.length} variable(s) from vm0.yaml? (${varList.join(", ")})`,
20422
+ `Include ${parts.join(" and ")} from vm0.yaml? (${itemList.join(", ")})`,
20415
20423
  true
20416
20424
  ) ?? true;
20417
20425
  }
@@ -20953,7 +20961,7 @@ var scheduleCommand = new Command34().name("schedule").description("Manage agent
20953
20961
 
20954
20962
  // src/index.ts
20955
20963
  var program = new Command35();
20956
- program.name("vm0").description("VM0 CLI - A modern build tool").version("5.3.0");
20964
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("5.3.1");
20957
20965
  program.command("info").description("Display environment information").action(async () => {
20958
20966
  console.log(chalk36.bold("System Information:"));
20959
20967
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",