mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Move service, replicated-state, facet host, and loader ownership into the standalone Chord package. Migrate consumers and leave runtime JSON enforcement to serializers.
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { type Context, defineService } from "@earendil-works/chord";
|
|
import type { LaneSnapshot } from "@earendil-works/pi-protocol";
|
|
|
|
export interface TranscriptSnapshot {
|
|
revision: number;
|
|
lane: LaneSnapshot;
|
|
}
|
|
|
|
export interface Transcript {
|
|
/** Authoritative snapshot at one transcript revision. */
|
|
snapshot(context: Context): Promise<TranscriptSnapshot>;
|
|
}
|
|
|
|
export const Transcript = defineService<Transcript>("pi.transcript");
|