Download packages/coding-agent/src/experimental/services/transcript.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/services/transcript.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/src/experimental/services/transcript.ts
-
curl -L -o transcript.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/services/transcript.ts
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"); | |