UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.32 kB
import { type EndpointKind } from "./host-daemon-paths.ts"; export type HostEndpointIdentitySource = "endpoint" | "settings" | "generation-settings" | "unknown"; export interface HostEndpointEntry { /** The endpoint this directory serves, or `null` when nothing in it names one. */ readonly socket: string | null; /** The endpoint's daemon directory, `<agentDir>/rpc-host-daemon/<16hex>`. */ readonly dir: string; /** Which file supplied `socket`. */ readonly identity: HostEndpointIdentitySource; /** What serves the endpoint, per `endpoint.json`; `rpc_host` for a legacy record or any other source. */ readonly endpoint_kind: EndpointKind; } /** Every endpoint directory under `agentDir`, sorted by directory name; `[]` before layout 2. */ export declare function listHostEndpoints(agentDir: string): Promise<readonly HostEndpointEntry[]>; /** * What serves `socket`, from disk and its name alone - it contacts nothing. `tui` when the socket has a * terminal control socket's name (`t-<16hex>.sock`: a terminal that exited leaves no record, and the * name still says no host belongs there) or its directory's `endpoint.json` says so. */ export declare function endpointKindOfSocket(socket: string, agentDir: string): Promise<EndpointKind>; //# sourceMappingURL=host-endpoints.d.ts.map