@vm0/cli 6.2.0 → 6.3.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 +15 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4670,6 +4670,7 @@ var CodexEventParser = class {
4670
4670
  }
4671
4671
  };
4672
4672
  }
4673
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
4673
4674
  static parseItemEvent(event) {
4674
4675
  const item = event.item;
4675
4676
  if (!item) {
@@ -4876,6 +4877,7 @@ var CodexEventRenderer = class {
4876
4877
  chalk4.red("[turn.failed]") + (event.error ? ` ${event.error}` : "")
4877
4878
  );
4878
4879
  }
4880
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
4879
4881
  static renderItem(event) {
4880
4882
  const item = event.item;
4881
4883
  if (!item) return;
@@ -6145,6 +6147,7 @@ var mainRunCommand = new Command2().name("run").description("Execute an agent").
6145
6147
  "--model-provider <type>",
6146
6148
  "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6147
6149
  ).addOption(new Option("--debug-no-mock-claude").hideHelp()).action(
6150
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
6148
6151
  async (identifier, prompt, options) => {
6149
6152
  const startTimestamp = /* @__PURE__ */ new Date();
6150
6153
  const verbose = options.verbose;
@@ -6329,6 +6332,7 @@ var resumeCommand = new Command3().name("resume").description("Resume an agent r
6329
6332
  "--model-provider <type>",
6330
6333
  "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6331
6334
  ).addOption(new Option2("--debug-no-mock-claude").hideHelp()).action(
6335
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
6332
6336
  async (checkpointId, prompt, options, command) => {
6333
6337
  const startTimestamp = /* @__PURE__ */ new Date();
6334
6338
  const allOpts = command.optsWithGlobals();
@@ -6449,6 +6453,7 @@ var continueCommand = new Command4().name("continue").description(
6449
6453
  "--model-provider <type>",
6450
6454
  "Override model provider for LLM credentials (e.g., anthropic-api-key)"
6451
6455
  ).addOption(new Option3("--debug-no-mock-claude").hideHelp()).action(
6456
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
6452
6457
  async (agentSessionId, prompt, options, command) => {
6453
6458
  const startTimestamp = /* @__PURE__ */ new Date();
6454
6459
  const allOpts = command.optsWithGlobals();
@@ -7819,11 +7824,14 @@ async function autoPullArtifact(runOutput, artifactDir) {
7819
7824
  }
7820
7825
  }
7821
7826
  var cookCmd = new Command19().name("cook").description("One-click agent preparation and execution from vm0.yaml");
7822
- cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").addOption(new Option4("--debug-no-mock-claude").hideHelp()).action(
7827
+ cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").addOption(new Option4("--debug-no-mock-claude").hideHelp()).addOption(new Option4("--no-auto-update").hideHelp()).action(
7828
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
7823
7829
  async (prompt, options) => {
7824
- const shouldExit = await checkAndUpgrade("6.2.0", prompt);
7825
- if (shouldExit) {
7826
- process.exit(0);
7830
+ if (!options.noAutoUpdate) {
7831
+ const shouldExit = await checkAndUpgrade("6.3.0", prompt);
7832
+ if (shouldExit) {
7833
+ process.exit(0);
7834
+ }
7827
7835
  }
7828
7836
  const cwd = process.cwd();
7829
7837
  console.log(chalk24.bold(`Reading config: ${CONFIG_FILE3}`));
@@ -9252,6 +9260,7 @@ function showWorkflowsCreatedMessage() {
9252
9260
  console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");
9253
9261
  }
9254
9262
  var setupGithubCommand = new Command28().name("setup-github").description("Initialize GitHub Actions workflows for agent deployment").option("-f, --force", "Overwrite existing workflow files").option("-y, --yes", "Auto-confirm all prompts").option("--skip-secrets", "Skip automatic secrets/variables setup").action(
9263
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
9255
9264
  async (options) => {
9256
9265
  const prereqs = await checkPrerequisites();
9257
9266
  if (!prereqs) {
@@ -9651,6 +9660,7 @@ function parseDayOption(day, frequency) {
9651
9660
  return void 0;
9652
9661
  }
9653
9662
  var initCommand4 = new Command29().name("init").description("Create a schedule.yaml interactively").option("-n, --name <name>", "Schedule name").option("-f, --frequency <type>", "Frequency: daily|weekly|monthly|once").option("-t, --time <HH:MM>", "Time to run (24-hour format)").option("-d, --day <day>", "Day of week (mon-sun) or day of month (1-31)").option("-z, --timezone <tz>", "IANA timezone").option("-p, --prompt <text>", "Prompt to run").option("--no-vars", "Don't include vars from vm0.yaml").option("--force", "Overwrite existing schedule.yaml").action(
9663
+ // eslint-disable-next-line complexity -- TODO: refactor complex function
9654
9664
  async (options) => {
9655
9665
  try {
9656
9666
  const { agentName, error } = loadAgentName();
@@ -11076,7 +11086,7 @@ var modelProviderCommand = new Command46().name("model-provider").description("M
11076
11086
 
11077
11087
  // src/index.ts
11078
11088
  var program = new Command47();
11079
- program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.2.0");
11089
+ program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.3.0");
11080
11090
  program.command("info").description("Display environment information").action(async () => {
11081
11091
  console.log(chalk47.bold("System Information:"));
11082
11092
  console.log(`Node Version: ${process.version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",