@vm0/cli 9.5.1 → 9.6.1
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 +20 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8165,7 +8165,7 @@ var cookAction = new Command27().name("cook").description("Quick start: prepare,
|
|
|
8165
8165
|
).option("-y, --yes", "Skip confirmation prompts").addOption(new Option4("--debug-no-mock-claude").hideHelp()).addOption(new Option4("--no-auto-update").hideHelp()).action(
|
|
8166
8166
|
async (prompt, options) => {
|
|
8167
8167
|
if (!options.noAutoUpdate) {
|
|
8168
|
-
const shouldExit = await checkAndUpgrade("9.
|
|
8168
|
+
const shouldExit = await checkAndUpgrade("9.6.1", prompt);
|
|
8169
8169
|
if (shouldExit) {
|
|
8170
8170
|
process.exit(0);
|
|
8171
8171
|
}
|
|
@@ -9113,13 +9113,16 @@ var initCommand3 = new Command38().name("init").description("Initialize a new VM
|
|
|
9113
9113
|
console.log();
|
|
9114
9114
|
console.log("Next steps:");
|
|
9115
9115
|
console.log(
|
|
9116
|
-
` 1. Set model provider (one-time): ${chalk37.cyan("vm0 model-provider setup")}`
|
|
9116
|
+
` 1. Set up model provider (one-time): ${chalk37.cyan("vm0 model-provider setup")}`
|
|
9117
9117
|
);
|
|
9118
9118
|
console.log(
|
|
9119
9119
|
` 2. Edit ${chalk37.cyan("AGENTS.md")} to customize your agent's workflow`
|
|
9120
9120
|
);
|
|
9121
9121
|
console.log(
|
|
9122
|
-
`
|
|
9122
|
+
` Or install Claude plugin: ${chalk37.cyan(`vm0 setup-claude && claude "/vm0-agent let's build an agent"`)}`
|
|
9123
|
+
);
|
|
9124
|
+
console.log(
|
|
9125
|
+
` 3. Run your agent: ${chalk37.cyan(`vm0 cook "let's start working"`)}`
|
|
9123
9126
|
);
|
|
9124
9127
|
});
|
|
9125
9128
|
|
|
@@ -11223,6 +11226,7 @@ async function handleAgentCreation(ctx) {
|
|
|
11223
11226
|
return agentName;
|
|
11224
11227
|
}
|
|
11225
11228
|
async function handlePluginInstallation(ctx, agentName) {
|
|
11229
|
+
let pluginInstalled = false;
|
|
11226
11230
|
await ctx.runner.step("Install Claude Plugin", async (step) => {
|
|
11227
11231
|
let shouldInstall = true;
|
|
11228
11232
|
if (!ctx.options.yes && ctx.interactive) {
|
|
@@ -11243,18 +11247,24 @@ async function handlePluginInstallation(ctx, agentName) {
|
|
|
11243
11247
|
step.detail(
|
|
11244
11248
|
chalk56.green(`Installed ${result.pluginId} (scope: ${result.scope})`)
|
|
11245
11249
|
);
|
|
11250
|
+
pluginInstalled = true;
|
|
11246
11251
|
} catch (error) {
|
|
11247
11252
|
handlePluginError(error);
|
|
11248
11253
|
}
|
|
11249
11254
|
});
|
|
11255
|
+
return pluginInstalled;
|
|
11250
11256
|
}
|
|
11251
|
-
function printNextSteps(agentName) {
|
|
11257
|
+
function printNextSteps(agentName, pluginInstalled) {
|
|
11252
11258
|
console.log();
|
|
11253
11259
|
console.log(chalk56.bold("Next step:"));
|
|
11254
11260
|
console.log();
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
)
|
|
11261
|
+
if (pluginInstalled) {
|
|
11262
|
+
console.log(
|
|
11263
|
+
` ${chalk56.cyan(`cd ${agentName} && claude "/${PRIMARY_SKILL_NAME} let's build an agent"`)}`
|
|
11264
|
+
);
|
|
11265
|
+
} else {
|
|
11266
|
+
console.log(` ${chalk56.cyan(`cd ${agentName} && vm0 init`)}`);
|
|
11267
|
+
}
|
|
11258
11268
|
console.log();
|
|
11259
11269
|
}
|
|
11260
11270
|
var onboardCommand = new Command56().name("onboard").description("Guided setup for new VM0 users").option("-y, --yes", "Skip confirmation prompts").option("--name <name>", `Agent name (default: ${DEFAULT_AGENT_NAME})`).action(async (options) => {
|
|
@@ -11273,10 +11283,10 @@ var onboardCommand = new Command56().name("onboard").description("Guided setup f
|
|
|
11273
11283
|
await handleAuthentication(ctx);
|
|
11274
11284
|
await handleModelProvider(ctx);
|
|
11275
11285
|
const agentName = await handleAgentCreation(ctx);
|
|
11276
|
-
await handlePluginInstallation(ctx, agentName);
|
|
11286
|
+
const pluginInstalled = await handlePluginInstallation(ctx, agentName);
|
|
11277
11287
|
await ctx.runner.finalStep("Completed", async () => {
|
|
11278
11288
|
});
|
|
11279
|
-
printNextSteps(agentName);
|
|
11289
|
+
printNextSteps(agentName, pluginInstalled);
|
|
11280
11290
|
});
|
|
11281
11291
|
|
|
11282
11292
|
// src/commands/setup-claude/index.ts
|
|
@@ -11305,7 +11315,7 @@ var setupClaudeCommand = new Command57().name("setup-claude").description("Insta
|
|
|
11305
11315
|
|
|
11306
11316
|
// src/index.ts
|
|
11307
11317
|
var program = new Command58();
|
|
11308
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.
|
|
11318
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.6.1");
|
|
11309
11319
|
program.addCommand(authCommand);
|
|
11310
11320
|
program.addCommand(infoCommand);
|
|
11311
11321
|
program.addCommand(composeCommand);
|