@essentialai/cogent-bridge
Version:
Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with `curl -fsSL https://cogent.tools/install.sh | sh`, then start with `cogent-codex` for real-time peer wake.
27 lines • 1.02 kB
JavaScript
export async function runCli() {
const command = process.argv[2];
if (command === "init") {
const { runWizard } = await import("./wizard/index.js");
await runWizard();
}
else if (command === "watch") {
const { runWatch } = await import("./watch/index.js");
await runWatch(process.argv.slice(3));
}
else if (command === "stop-duplicate-sessions") {
// COG-97: the human-run command offered when several Claude Code processes share one session.
const { runStopDuplicateSessions } = await import("./services/duplicate-sessions.js");
process.exitCode = await runStopDuplicateSessions(process.argv.slice(3));
}
else {
// Default: start MCP server (existing behavior)
await import("./index.js");
}
}
runCli().catch((err) => {
const msg = err instanceof Error ? err.message : String(err);
process.stderr.write(`Fatal error: ${msg}\n`);
process.exit(1);
});
//# sourceMappingURL=cli.js.map