feat(coding-agent): scaffold built-in service surfaces

This commit is contained in:
Armin Ronacher 2026-08-20 11:52:28 +02:00
parent d5e3b47877
commit bafbdecd1b
30 changed files with 539 additions and 74 deletions

View file

@ -0,0 +1,22 @@
import { type Context, defineRemoteService, type RemoteEvents, type RemoteJson } from "@earendil-works/pi-agent-core";
import type { LaneEvent, LaneSnapshot } from "@earendil-works/pi-protocol";
export interface TranscriptSnapshot {
revision: number;
lane: RemoteJson<LaneSnapshot>;
}
export interface TranscriptEvent {
type: "lane_event";
revision: number;
event: RemoteJson<LaneEvent>;
}
export interface TranscriptService {
/** Authoritative snapshot at one transcript revision. */
snapshot(context: Context): Promise<TranscriptSnapshot>;
/** Ordered semantic deltas; final message events replace streamed projections authoritatively. */
readonly events: RemoteEvents<TranscriptEvent>;
}
export const Transcript = defineRemoteService<TranscriptService>("transcript");