@vm0/cli 6.1.0 → 6.2.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 +16 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -641,6 +641,8 @@ var unifiedRunRequestSchema = z4.object({
|
|
|
641
641
|
volumeVersions: z4.record(z4.string(), z4.string()).optional(),
|
|
642
642
|
// Debug flag to force real Claude in mock environments (internal use only)
|
|
643
643
|
debugNoMockClaude: z4.boolean().optional(),
|
|
644
|
+
// Model provider for automatic LLM credential injection
|
|
645
|
+
modelProvider: z4.string().optional(),
|
|
644
646
|
// Required
|
|
645
647
|
prompt: z4.string().min(1, "Missing prompt")
|
|
646
648
|
});
|
|
@@ -6139,6 +6141,9 @@ var mainRunCommand = new Command2().name("run").description("Execute an agent").
|
|
|
6139
6141
|
).option("-v, --verbose", "Show verbose output with timing information").option(
|
|
6140
6142
|
"--experimental-realtime",
|
|
6141
6143
|
"Use realtime event streaming instead of polling (experimental)"
|
|
6144
|
+
).option(
|
|
6145
|
+
"--model-provider <type>",
|
|
6146
|
+
"Override model provider for LLM credentials (e.g., anthropic-api-key)"
|
|
6142
6147
|
).addOption(new Option("--debug-no-mock-claude").hideHelp()).action(
|
|
6143
6148
|
async (identifier, prompt, options) => {
|
|
6144
6149
|
const startTimestamp = /* @__PURE__ */ new Date();
|
|
@@ -6238,6 +6243,7 @@ var mainRunCommand = new Command2().name("run").description("Execute an agent").
|
|
|
6238
6243
|
artifactVersion: options.artifactVersion,
|
|
6239
6244
|
volumeVersions: Object.keys(options.volumeVersion).length > 0 ? options.volumeVersion : void 0,
|
|
6240
6245
|
conversationId: options.conversation,
|
|
6246
|
+
modelProvider: options.modelProvider,
|
|
6241
6247
|
debugNoMockClaude: options.debugNoMockClaude || void 0
|
|
6242
6248
|
});
|
|
6243
6249
|
if (response.status === "failed") {
|
|
@@ -6319,6 +6325,9 @@ var resumeCommand = new Command3().name("resume").description("Resume an agent r
|
|
|
6319
6325
|
).option("-v, --verbose", "Show verbose output with timing information").option(
|
|
6320
6326
|
"--experimental-realtime",
|
|
6321
6327
|
"Use realtime event streaming instead of polling (experimental)"
|
|
6328
|
+
).option(
|
|
6329
|
+
"--model-provider <type>",
|
|
6330
|
+
"Override model provider for LLM credentials (e.g., anthropic-api-key)"
|
|
6322
6331
|
).addOption(new Option2("--debug-no-mock-claude").hideHelp()).action(
|
|
6323
6332
|
async (checkpointId, prompt, options, command) => {
|
|
6324
6333
|
const startTimestamp = /* @__PURE__ */ new Date();
|
|
@@ -6361,6 +6370,7 @@ var resumeCommand = new Command3().name("resume").description("Resume an agent r
|
|
|
6361
6370
|
vars: Object.keys(vars).length > 0 ? vars : void 0,
|
|
6362
6371
|
secrets: loadedSecrets,
|
|
6363
6372
|
volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0,
|
|
6373
|
+
modelProvider: options.modelProvider || allOpts.modelProvider,
|
|
6364
6374
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
6365
6375
|
});
|
|
6366
6376
|
if (response.status === "failed") {
|
|
@@ -6435,6 +6445,9 @@ var continueCommand = new Command4().name("continue").description(
|
|
|
6435
6445
|
).option("-v, --verbose", "Show verbose output with timing information").option(
|
|
6436
6446
|
"--experimental-realtime",
|
|
6437
6447
|
"Use realtime event streaming instead of polling (experimental)"
|
|
6448
|
+
).option(
|
|
6449
|
+
"--model-provider <type>",
|
|
6450
|
+
"Override model provider for LLM credentials (e.g., anthropic-api-key)"
|
|
6438
6451
|
).addOption(new Option3("--debug-no-mock-claude").hideHelp()).action(
|
|
6439
6452
|
async (agentSessionId, prompt, options, command) => {
|
|
6440
6453
|
const startTimestamp = /* @__PURE__ */ new Date();
|
|
@@ -6478,6 +6491,7 @@ var continueCommand = new Command4().name("continue").description(
|
|
|
6478
6491
|
vars: Object.keys(vars).length > 0 ? vars : void 0,
|
|
6479
6492
|
secrets: loadedSecrets,
|
|
6480
6493
|
volumeVersions: Object.keys(allOpts.volumeVersion).length > 0 ? allOpts.volumeVersion : void 0,
|
|
6494
|
+
modelProvider: options.modelProvider || allOpts.modelProvider,
|
|
6481
6495
|
debugNoMockClaude: options.debugNoMockClaude || allOpts.debugNoMockClaude || void 0
|
|
6482
6496
|
});
|
|
6483
6497
|
if (response.status === "failed") {
|
|
@@ -7807,7 +7821,7 @@ async function autoPullArtifact(runOutput, artifactDir) {
|
|
|
7807
7821
|
var cookCmd = new Command19().name("cook").description("One-click agent preparation and execution from vm0.yaml");
|
|
7808
7822
|
cookCmd.argument("[prompt]", "Prompt for the agent").option("-y, --yes", "Skip confirmation prompts").addOption(new Option4("--debug-no-mock-claude").hideHelp()).action(
|
|
7809
7823
|
async (prompt, options) => {
|
|
7810
|
-
const shouldExit = await checkAndUpgrade("6.
|
|
7824
|
+
const shouldExit = await checkAndUpgrade("6.2.0", prompt);
|
|
7811
7825
|
if (shouldExit) {
|
|
7812
7826
|
process.exit(0);
|
|
7813
7827
|
}
|
|
@@ -11062,7 +11076,7 @@ var modelProviderCommand = new Command46().name("model-provider").description("M
|
|
|
11062
11076
|
|
|
11063
11077
|
// src/index.ts
|
|
11064
11078
|
var program = new Command47();
|
|
11065
|
-
program.name("vm0").description("VM0 CLI -
|
|
11079
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("6.2.0");
|
|
11066
11080
|
program.command("info").description("Display environment information").action(async () => {
|
|
11067
11081
|
console.log(chalk47.bold("System Information:"));
|
|
11068
11082
|
console.log(`Node Version: ${process.version}`);
|