@vm0/cli 6.2.1 → 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.
- package/index.js +10 -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();
|
|
@@ -7820,9 +7825,10 @@ async function autoPullArtifact(runOutput, artifactDir) {
|
|
|
7820
7825
|
}
|
|
7821
7826
|
var cookCmd = new Command19().name("cook").description("One-click agent preparation and execution from vm0.yaml");
|
|
7822
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
7830
|
if (!options.noAutoUpdate) {
|
|
7825
|
-
const shouldExit = await checkAndUpgrade("6.
|
|
7831
|
+
const shouldExit = await checkAndUpgrade("6.3.0", prompt);
|
|
7826
7832
|
if (shouldExit) {
|
|
7827
7833
|
process.exit(0);
|
|
7828
7834
|
}
|
|
@@ -9254,6 +9260,7 @@ function showWorkflowsCreatedMessage() {
|
|
|
9254
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");
|
|
9255
9261
|
}
|
|
9256
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
|
|
9257
9264
|
async (options) => {
|
|
9258
9265
|
const prereqs = await checkPrerequisites();
|
|
9259
9266
|
if (!prereqs) {
|
|
@@ -9653,6 +9660,7 @@ function parseDayOption(day, frequency) {
|
|
|
9653
9660
|
return void 0;
|
|
9654
9661
|
}
|
|
9655
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
|
|
9656
9664
|
async (options) => {
|
|
9657
9665
|
try {
|
|
9658
9666
|
const { agentName, error } = loadAgentName();
|
|
@@ -11078,7 +11086,7 @@ var modelProviderCommand = new Command46().name("model-provider").description("M
|
|
|
11078
11086
|
|
|
11079
11087
|
// src/index.ts
|
|
11080
11088
|
var program = new Command47();
|
|
11081
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.
|
|
11089
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.3.0");
|
|
11082
11090
|
program.command("info").description("Display environment information").action(async () => {
|
|
11083
11091
|
console.log(chalk47.bold("System Information:"));
|
|
11084
11092
|
console.log(`Node Version: ${process.version}`);
|