SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
bc575bc verified
Raw
History Blame Contribute Delete
611 Bytes
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");