[claude] Add real-time cost ticker for Workshop interactions (#68) (#82)

Co-authored-by: Claude (Opus 4.6) <claude@hermes.local>
Co-committed-by: Claude (Opus 4.6) <claude@hermes.local>
This commit was merged in pull request #82.
This commit is contained in:
2026-03-23 20:01:26 +00:00
committed by rockachopa
parent 2fe82988f4
commit 821aa48543
6 changed files with 85 additions and 2 deletions

View File

@@ -15,7 +15,10 @@ export type DebateEvent =
| { type: "debate:argument"; jobId: string; agent: "Beta-A" | "Beta-B"; position: "accept" | "reject"; argument: string }
| { type: "debate:verdict"; jobId: string; accepted: boolean; reason: string };
export type BusEvent = JobEvent | SessionEvent | DebateEvent;
export type CostEvent =
| { type: "cost:update"; jobId: string; sats: number; phase: "eval" | "work" | "session"; isFinal: boolean };
export type BusEvent = JobEvent | SessionEvent | DebateEvent | CostEvent;
class EventBus extends EventEmitter {
emit(event: "bus", data: BusEvent): boolean;