@vm0/cli 9.9.2 → 9.10.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 +24 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6655,12 +6655,11 @@ function showNextSteps(result) {
|
|
|
6655
6655
|
function handleGenericRunError(error, commandLabel) {
|
|
6656
6656
|
if (error instanceof ApiRequestError && error.code === "concurrent_run_limit_exceeded") {
|
|
6657
6657
|
console.error(chalk7.red(`\u2717 ${commandLabel} failed`));
|
|
6658
|
-
console.error(
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
console.log(chalk7.cyan(" vm0 run kill <run-id>"));
|
|
6658
|
+
console.error(
|
|
6659
|
+
chalk7.dim(
|
|
6660
|
+
` ${error.message} Use 'vm0 run list' to view runs, 'vm0 run kill <id>' to cancel.`
|
|
6661
|
+
)
|
|
6662
|
+
);
|
|
6664
6663
|
} else {
|
|
6665
6664
|
console.error(chalk7.red(`\u2717 ${commandLabel} failed`));
|
|
6666
6665
|
console.error(chalk7.dim(` ${error.message}`));
|
|
@@ -8465,7 +8464,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
|
|
|
8465
8464
|
).option("-y, --yes", "Skip confirmation prompts").option("-v, --verbose", "Show full tool inputs and outputs").addOption(new Option4("--debug-no-mock-claude").hideHelp()).addOption(new Option4("--no-auto-update").hideHelp()).action(
|
|
8466
8465
|
async (prompt, options) => {
|
|
8467
8466
|
if (!options.noAutoUpdate) {
|
|
8468
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
8467
|
+
const shouldExit = await checkAndUpgrade("9.10.0", prompt);
|
|
8469
8468
|
if (shouldExit) {
|
|
8470
8469
|
process.exit(0);
|
|
8471
8470
|
}
|
|
@@ -11397,10 +11396,27 @@ async function addMarketplace() {
|
|
|
11397
11396
|
);
|
|
11398
11397
|
}
|
|
11399
11398
|
}
|
|
11399
|
+
async function updateMarketplace() {
|
|
11400
|
+
const result = await runClaudeCommand([
|
|
11401
|
+
"plugin",
|
|
11402
|
+
"marketplace",
|
|
11403
|
+
"update",
|
|
11404
|
+
MARKETPLACE_NAME
|
|
11405
|
+
]);
|
|
11406
|
+
if (!result.success) {
|
|
11407
|
+
console.warn(
|
|
11408
|
+
chalk56.yellow(
|
|
11409
|
+
`Warning: Could not update marketplace: ${result.error ?? "unknown error"}`
|
|
11410
|
+
)
|
|
11411
|
+
);
|
|
11412
|
+
}
|
|
11413
|
+
}
|
|
11400
11414
|
async function ensureMarketplace() {
|
|
11401
11415
|
const installed = await isMarketplaceInstalled();
|
|
11402
11416
|
if (!installed) {
|
|
11403
11417
|
await addMarketplace();
|
|
11418
|
+
} else {
|
|
11419
|
+
await updateMarketplace();
|
|
11404
11420
|
}
|
|
11405
11421
|
}
|
|
11406
11422
|
async function installVm0Plugin(scope = "user", cwd) {
|
|
@@ -11642,7 +11658,7 @@ var setupClaudeCommand = new Command57().name("setup-claude").description("Insta
|
|
|
11642
11658
|
|
|
11643
11659
|
// src/index.ts
|
|
11644
11660
|
var program = new Command58();
|
|
11645
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
11661
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.10.0");
|
|
11646
11662
|
program.addCommand(authCommand);
|
|
11647
11663
|
program.addCommand(infoCommand);
|
|
11648
11664
|
program.addCommand(composeCommand);
|