@vm0/cli 9.2.0 → 9.2.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 +11 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7730,7 +7730,7 @@ cookCmd.argument("[prompt]", "Prompt for the agent").option(
|
|
|
7730
7730
|
// eslint-disable-next-line complexity -- TODO: refactor complex function
|
|
7731
7731
|
async (prompt, options) => {
|
|
7732
7732
|
if (!options.noAutoUpdate) {
|
|
7733
|
-
const shouldExit = await checkAndUpgrade("9.2.
|
|
7733
|
+
const shouldExit = await checkAndUpgrade("9.2.1", prompt);
|
|
7734
7734
|
if (shouldExit) {
|
|
7735
7735
|
process.exit(0);
|
|
7736
7736
|
}
|
|
@@ -10665,7 +10665,10 @@ Write results to the artifact directory.
|
|
|
10665
10665
|
- Provide exact templates for output files
|
|
10666
10666
|
- Include example output in the instructions
|
|
10667
10667
|
`;
|
|
10668
|
-
var setupClaudeCommand = new Command46().name("setup-claude").description("Add/update Claude skill for agent building").
|
|
10668
|
+
var setupClaudeCommand = new Command46().name("setup-claude").description("Add/update Claude skill for agent building").option(
|
|
10669
|
+
"--agent-dir <dir>",
|
|
10670
|
+
"Agent directory (shown in next step instructions)"
|
|
10671
|
+
).action(async (options) => {
|
|
10669
10672
|
console.log(chalk46.dim("Installing vm0-agent-builder skill..."));
|
|
10670
10673
|
await mkdir7(SKILL_DIR, { recursive: true });
|
|
10671
10674
|
await writeFile7(path14.join(SKILL_DIR, "SKILL.md"), SKILL_CONTENT);
|
|
@@ -10674,9 +10677,10 @@ var setupClaudeCommand = new Command46().name("setup-claude").description("Add/u
|
|
|
10674
10677
|
);
|
|
10675
10678
|
console.log();
|
|
10676
10679
|
console.log("Next step:");
|
|
10680
|
+
const cdPrefix = options.agentDir ? `cd ${options.agentDir} && ` : "";
|
|
10677
10681
|
console.log(
|
|
10678
10682
|
chalk46.cyan(
|
|
10679
|
-
|
|
10683
|
+
` ${cdPrefix}claude "/vm0-agent-builder I want to build an agent that..."`
|
|
10680
10684
|
)
|
|
10681
10685
|
);
|
|
10682
10686
|
});
|
|
@@ -10771,7 +10775,9 @@ var onboardCommand = new Command47().name("onboard").description("Guided setup f
|
|
|
10771
10775
|
if (method === "claude") {
|
|
10772
10776
|
process.chdir(DEMO_AGENT_DIR);
|
|
10773
10777
|
try {
|
|
10774
|
-
await setupClaudeCommand.parseAsync([], {
|
|
10778
|
+
await setupClaudeCommand.parseAsync(["--agent-dir", DEMO_AGENT_DIR], {
|
|
10779
|
+
from: "user"
|
|
10780
|
+
});
|
|
10775
10781
|
} finally {
|
|
10776
10782
|
process.chdir(originalDir);
|
|
10777
10783
|
}
|
|
@@ -10788,7 +10794,7 @@ var onboardCommand = new Command47().name("onboard").description("Guided setup f
|
|
|
10788
10794
|
|
|
10789
10795
|
// src/index.ts
|
|
10790
10796
|
var program = new Command48();
|
|
10791
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.2.
|
|
10797
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.2.1");
|
|
10792
10798
|
program.command("info").description("Display environment information").action(async () => {
|
|
10793
10799
|
console.log(chalk48.bold("System Information:"));
|
|
10794
10800
|
console.log(`Node Version: ${process.version}`);
|