| import { defineService, type ReplicatedState } from "@earendil-works/chord"; | |
| import type { LaneTranscriptSnapshot, LaneWatchEvent } from "@earendil-works/pi-agent-core"; | |
| export interface TranscriptState { | |
| snapshot: LaneTranscriptSnapshot | null; | |
| /** The source event is retained for presentation side effects; hydration does not replay it. */ | |
| event: LaneWatchEvent | null; | |
| } | |
| /** Coherent main-lane state replicated through Chord's operation stream. */ | |
| export interface Transcript { | |
| readonly state: ReplicatedState<TranscriptState>; | |
| } | |
| export const Transcript = defineService<Transcript>("pi.transcript"); | |