UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 1.53 kB
/** * F13: one `loaded_surfaces_changed` per connection per inventory change, never one per session. * * The dedupe is transition-aware. Per connection it remembers, for every session, the digest that * session was last announced at and the digest it arrived from. A session's change is told only when * no OTHER session already announced the same transition (the same previous digest to the same new * one): sessions moving together share one event, but a session that converges onto a digest the * connection heard from a different starting point still announces its own change, because surface * reads (`get_commands`, `get_loaded_surfaces`) are per session and one event names one session. */ export declare class SurfaceDigestDedupe { /** Per connection, per session: the digest last announced and the one it arrived from. */ private readonly connections; /** * Record one session's move from `previous` to `digest` for a connection. Returns true when the * connection must hear about it. `previous` is the session's real prior digest, never this * connection's memory of it: a connection that attached after the session last moved has no * memory, and judging from that would merge two different moves onto the same target. */ announce(connectionId: string, sessionId: string, previous: string | undefined, digest: string): boolean; dropConnection(connectionId: string): void; forgetSession(sessionId: string): void; } //# sourceMappingURL=session-surface-dedupe.d.ts.map