UNPKG

@code-yeongyu/senpi

Version:

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

30 lines • 1.76 kB
import type { HandoverParkedEntry } from "./host-handover-parked.ts"; import type { InheritedHandover } from "./host-handover-reopen.ts"; import type { RpcCommand, RpcHostKernelMemory, RpcResponse } from "./rpc-types.ts"; import { RouterContext } from "./session-router-context.ts"; export type { RpcBindingFactory, RpcHostSessionDefaults, RpcSessionIdlePolicy } from "./session-router-types.ts"; export declare class SessionCommandRouter { private readonly context; constructor(...args: ConstructorParameters<typeof RouterContext>); /** The release_session park teardown. Routed through this member, as before the split (senpi#3681). */ private tearDownReleased; get sessionCount(): number; handle(command: RpcCommand): Promise<RpcResponse | undefined>; configureRoutes(connection: string, record: Readonly<Record<string, unknown>>): Promise<void>; /** A successor connection can attach to existing writers; it cannot create work outside them. */ admitsRoutedRecord(connection: string, value: unknown): boolean; beginDrain(): void; setMemoryPressure(pressure: boolean): void; setInheritedHandover(state: InheritedHandover | undefined): void; sweepIdleSessions(): void; dispose(): Promise<void>; reopenParked(entry: HandoverParkedEntry): Promise<RpcResponse | undefined>; /** Whether a connection holds a session here or has an open in flight (oh-my-openagent#14272). */ holdsSessions(connectionId: string): boolean; releaseConnection(connectionId: string): Promise<string[]>; setHostMemoryView(view: { readonly mainHeapBytes: () => number; readonly kernels: () => readonly RpcHostKernelMemory[]; }): void; } //# sourceMappingURL=session-command-router.d.ts.map