@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 765 B
TypeScript
/**
* When each connection first attached to each session, so the router can name "the earliest-attached connection of
* THIS session" (docs/rpc.md, session relocation), not the connection that happened to open some other session first.
*/
export declare class SessionAttachOrder {
private next;
private readonly order;
/** Records `connection`'s first attachment to `sessionId`; a repeated attach keeps its original place. */
attached(sessionId: string, connection: string): void;
detached(sessionId: string, connection: string): void;
forgetSession(sessionId: string): void;
/** The session's attached connections, earliest first. */
connections(sessionId: string): string[];
}
//# sourceMappingURL=session-attach-order.d.ts.map