UNPKG

@code-yeongyu/senpi

Version:

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

28 lines • 1.43 kB
/** * Key-root rule (#3795, shared with the desktop and omo clients): `<root>` and `<root>/rpc` are checked at their * realpath and must be directories owned by this user with no group/other write (0755 is fine); `<root>/rpc/keys` * itself must be a real (non-symlink) directory owned by this user with mode exactly 0700. */ export declare function checkRpcKeyDirectory(path: string, privateKeys?: boolean): Promise<void>; export declare function readRpcKeyRecord(root: string, launchId: string): Promise<Readonly<Record<string, unknown>> | undefined>; /** One public binder owns one in-memory key; it never reads a key back from disk. */ export declare class RpcPublicEndpoint { readonly key: NonSharedBuffer; readonly launchId: `${string}-${string}-${string}-${string}-${string}`; readonly recordPath: string; readonly ready: Promise<void>; private readonly publication; private created; private readonly exitCleanup; readonly agentDir: string; readonly endpoint: string; constructor(agentDir: string, endpoint: string); publish(): Promise<void>; dispose(): Promise<void>; } /** Unknown process identity keeps a record; only death or observed PID reuse permits collection. */ export declare function gcRpcPublicKeys(agentDir: string, budget?: { readonly deadline?: number; readonly maxRecords?: number; }): Promise<void>; //# sourceMappingURL=rpc-public-key.d.ts.map