mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 00:46:23 +02:00
fix: - remove changes to package-lock
- remove output messages from app.js and moved them into importExample
This commit is contained in:
parent
014c8a56f5
commit
55097817c6
3 changed files with 45 additions and 40 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue