@vm0/cli 4.33.0 → 4.34.0

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 +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15830,7 +15830,7 @@ async function pollEvents(runId, options) {
15830
15830
  let nextSequence = 0;
15831
15831
  let complete = false;
15832
15832
  let result = { succeeded: true, runId };
15833
- const pollIntervalMs = 500;
15833
+ const pollIntervalMs = 1e3;
15834
15834
  const startTimestamp = options.startTimestamp;
15835
15835
  let previousTimestamp = startTimestamp;
15836
15836
  const verbose = options.verbose;
@@ -17623,8 +17623,8 @@ async function autoPullArtifact(runOutput, artifactDir) {
17623
17623
  }
17624
17624
  }
17625
17625
  var cookCmd = new Command17().name("cook").description("One-click agent preparation and execution from vm0.yaml");
17626
- cookCmd.argument("[prompt]", "Prompt for the agent").action(async (prompt) => {
17627
- const shouldExit = await checkAndUpgrade("4.33.0", prompt);
17626
+ cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").action(async (prompt, options) => {
17627
+ const shouldExit = await checkAndUpgrade("4.34.0", prompt);
17628
17628
  if (shouldExit) {
17629
17629
  process.exit(0);
17630
17630
  }
@@ -17747,9 +17747,10 @@ cookCmd.argument("[prompt]", "Prompt for the agent").action(async (prompt) => {
17747
17747
  }
17748
17748
  console.log();
17749
17749
  console.log(chalk21.bold("Composing agent:"));
17750
- printCommand(`vm0 compose ${CONFIG_FILE3}`);
17750
+ const composeArgs = options.yes ? ["compose", "--yes", CONFIG_FILE3] : ["compose", CONFIG_FILE3];
17751
+ printCommand(`vm0 ${composeArgs.join(" ")}`);
17751
17752
  try {
17752
- await execVm0Command(["compose", CONFIG_FILE3], {
17753
+ await execVm0Command(composeArgs, {
17753
17754
  cwd
17754
17755
  });
17755
17756
  } catch (error43) {
@@ -19215,7 +19216,7 @@ var setupGithubCommand = new Command28().name("setup-github").description("Initi
19215
19216
 
19216
19217
  // src/index.ts
19217
19218
  var program = new Command29();
19218
- program.name("vm0").description("VM0 CLI - A modern build tool").version("4.33.0");
19219
+ program.name("vm0").description("VM0 CLI - A modern build tool").version("4.34.0");
19219
19220
  program.command("info").description("Display environment information").action(async () => {
19220
19221
  console.log(chalk31.bold("System Information:"));
19221
19222
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "4.33.0",
3
+ "version": "4.34.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",