UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

47 lines • 2.68 kB
import { CompactLaneCurrent } from "./compact-lane-current.ts"; import type { CutStorageUse } from "./compact-session-state.ts"; import type { CompactSettledMessages } from "./compact-settled-messages.ts"; import type { FrozenAcceptedRoot } from "./session-acceptance-lane.ts"; /** * The read side of an acceptance lane: every reader of a root goes through here and is refused once the root is not * live. Publishing and releasing roots stays with the lane (`SessionAcceptanceLane`), which owns these three fields. */ export declare class AcceptedRootReads { /** S16 freezes any required repair cut before the dependent accepted mutation. No consumer ACK is implied. */ beforeAccept?: (record: object) => void; protected readonly live: Set<FrozenAcceptedRoot>; protected readonly rootOwners: WeakMap<FrozenAcceptedRoot, CompactSettledMessages>; protected readonly current: CompactLaneCurrent; get liveRoots(): number; /** True while `root` is readable: published by this lane and not released, by its holder or a retirement. */ holds(root: FrozenAcceptedRoot): boolean; readCurrent(root: FrozenAcceptedRoot): Promise<{ sequence: number; messages: import("./compact-text-view.ts").CompactMessageView[]; }>; readCurrentComponents(root: FrozenAcceptedRoot): Promise<{ runState: import("./compact-current-components.ts").CompactRunState; lifecycle: unknown; dialogs: import("./compact-current-components.ts").CompactDialog[]; dialogCounts: { readonly broadcast: number; readonly targeted: number; }; }>; readCurrentActive(root: FrozenAcceptedRoot): Promise<import("./compact-state-view.ts").ActiveMessageView[]>; readCurrentCalls(root: FrozenAcceptedRoot): Promise<import("./compact-call-view.ts").CallsView>; /** The cut's content store under its lease (S09 catalog build and reads). */ cutStorage<T>(root: FrozenAcceptedRoot, use: CutStorageUse<T>): Promise<T>; readSettled(root: FrozenAcceptedRoot): Promise<{ settledMessages: (Omit<import("./compact-settled-rows.ts").TerminalRow, "call" | "kind" | "payload"> & { terminal: unknown; correlation: unknown; call?: import("./compact-call-model.ts").CallProjection; })[]; owners: import("./compact-settled-rows.ts").OwnerRow[]; }>; /** The bounded settled reader of a live root (S10b catalog families); refused once the root is released. */ settledOf(root: FrozenAcceptedRoot): import("./compact-settled-rows.ts").SettledReader; private settledOwner; } //# sourceMappingURL=session-acceptance-reads.d.ts.map