Add demo operator scaffold and CLI

This commit is contained in:
Alexa Amundson
2025-11-23 15:48:33 -06:00
parent dde613a012
commit 32b15ee409
25 changed files with 4725 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
import { InMemoryDemoEventBus } from "./demoEventBus";
import { DemoJournal } from "./demoJournal";
import { createDemoAgents } from "./demoRegistry";
export async function startDemo() {
const bus = new InMemoryDemoEventBus();
const journal = new DemoJournal();
const agents = createDemoAgents();
const ctx = {
bus,
journal,
log: (msg: string, meta?: unknown) => {
if (meta) {
console.log(`[DEMO] ${msg}`, meta);
} else {
console.log(`[DEMO] ${msg}`);
}
}
};
for (const agent of agents) {
await agent.init(ctx);
}
return { bus, journal, agents };
}