MCPcopy
hub / github.com/rowboatlabs/rowboat / IBus

Interface IBus

apps/cli/src/application/lib/bus.ts:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import z from "zod";
3
4export interface IBus {
5 publish(event: z.infer<typeof RunEvent>): Promise<void>;
6
7 // subscribe accepts a handler to handle events
8 // and returns a function to unsubscribe
9 subscribe(runId: string, handler: (event: z.infer<typeof RunEvent>) => Promise<void>): Promise<() => void>;
10}
11
12export class InMemoryBus implements IBus {
13 private subscribers: Map<string, ((event: z.infer<typeof RunEvent>) => Promise<void>)[]> = new Map();

Callers

nothing calls this directly

Implementers 6

InMemoryBusapps/cli/src/application/lib/bus.ts
RedisPubSubServiceapps/rowboat/src/infrastructure/servic
LiveNoteBusapps/x/packages/core/src/knowledge/liv
ServiceBusapps/x/packages/core/src/services/serv
InMemoryBusapps/x/packages/core/src/application/l
BackgroundTaskBusapps/x/packages/core/src/background-ta

Calls

no outgoing calls

Tested by

no test coverage detected