@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 1.43 kB
TypeScript
import type { CreateAgentSessionRuntimeResult } from "../../core/agent-session-runtime.ts";
import type { MultiSessionHostOptions } from "../rpc/multi-session-host.ts";
import type { HeadlessPresence } from "./presence.ts";
import { type HandDirectory } from "./hand-selection.ts";
/** Off unless set: each session's presence and its gates (C2, K7; senpi#5652). No CLI flag sets it yet. */
export interface HeadlessPresenceBinding {
readonly presence: HeadlessPresence;
/** The hand machines a session's tool calls run on; empty for a fused session. */
readonly handsOf: (runtime: CreateAgentSessionRuntimeResult) => readonly string[];
}
export type HeadlessHostOptions = Omit<MultiSessionHostOptions, "sessionOwner" | "sessionPresence" | "handSelection"> & {
readonly presence?: HeadlessPresenceBinding;
/** Off unless set: the hands a session's tools can run on (R4); each session's choice is recorded in its file. */
readonly hands?: HandDirectory;
};
export declare function headlessSocketPath(agentDir: string, platform?: NodeJS.Platform): string;
/** The address a client dials: the socket path on POSIX, its named pipe on Windows. */
export declare function headlessEndpoint(agentDir: string, platform?: NodeJS.Platform, secret?: Uint8Array): string;
export declare function headlessHostOptions(options: HeadlessHostOptions): MultiSessionHostOptions;
//# sourceMappingURL=headless-host.d.ts.map