mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(coding-agent): scaffold built-in service surfaces
This commit is contained in:
parent
d5e3b47877
commit
bafbdecd1b
30 changed files with 539 additions and 74 deletions
|
|
@ -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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue