fix: - remove changes to package-lock

- remove output messages from app.js and moved them into importExample
This commit is contained in:
tusharmagar 2025-11-21 13:14:20 +05:30
parent 014c8a56f5
commit 55097817c6
3 changed files with 45 additions and 40 deletions

View file

@ -44,35 +44,8 @@ yargs(hideBin(process.argv))
description: "The example to import",
}),
async (argv) => {
const exampleName = String(argv.example).trim();
try {
const imported = await importExample(exampleName);
// Build output message
const output = [
`✓ Imported example '${exampleName}'`,
` Agents: ${imported.importedAgents.join(", ")}`,
` Primary: ${imported.entryAgent}`,
];
if (imported.addedServers.length > 0) {
output.push(` MCP servers added: ${imported.addedServers.join(", ")}`);
}
if (imported.skippedServers.length > 0) {
output.push(` MCP servers skipped (already configured): ${imported.skippedServers.join(", ")}`);
}
console.log(output.join("\n"));
if (imported.postInstallInstructions) {
console.log("\n" + "=".repeat(60));
console.log("POST-INSTALL INSTRUCTIONS");
console.log("=".repeat(60));
console.log(imported.postInstallInstructions);
console.log("=".repeat(60) + "\n");
}
console.log(`\nRun: rowboatx --agent ${imported.entryAgent}`);
await importExample(String(argv.example).trim());
} catch (error) {
console.error("Error:", error?.message ?? error);
process.exit(1);