UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 1.6 kB
import { type SessionPathReservations } from "./session-path-reservations.ts"; import { type OpenRpcSession, type RpcSessionEntry, type RpcSessionLaunchProfile, type RpcSessionOpenOptions } from "./session-registry.ts"; import type { SessionWorkerClient } from "./session-worker-client.ts"; import { type SessionWriteGrant } from "./session-worker-protocol.ts"; import { WorkerSessionClaims } from "./worker-session-claims.ts"; import type { WorkerSessionRegistryOptions } from "./worker-session-registry.ts"; export interface WorkerSessionOpenPort { readonly entries: Map<string, RpcSessionEntry>; readonly reservations: SessionPathReservations; readonly claims: Map<string, WorkerSessionClaims>; readonly options: WorkerSessionRegistryOptions; readonly closeGraceMs: number; readonly size: number; now(): number; nextHandle(): string; knownReservationKey(path: string): string | undefined; attach(owner: string, path: string, options?: RpcSessionOpenOptions, requested?: RpcSessionLaunchProfile): Promise<OpenRpcSession>; reserve(handle: string, path: string): Promise<SessionWriteGrant>; reconcile(handle: string, paths: readonly string[]): Promise<void>; openResult(handle: string, entry: RpcSessionEntry): OpenRpcSession; createWorker(callbacks: ConstructorParameters<typeof SessionWorkerClient>[0]): SessionWorkerClient; } export declare function openWorkerSession(host: WorkerSessionOpenPort, profile: RpcSessionLaunchProfile, options?: RpcSessionOpenOptions): Promise<OpenRpcSession>; //# sourceMappingURL=worker-session-open.d.ts.map