@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 798 B
TypeScript
import { type HostDaemonPaths } from "./host-daemon-paths.ts";
/** What the pointer names after an election, for `host status` to report. */
export type HostPointerState = {
readonly state: "current" | "elected";
readonly instanceId: string;
readonly candidates: readonly string[];
} | {
readonly state: "missing";
readonly instanceId: null;
readonly candidates: readonly string[];
};
/**
* Elects the one proven live generation when the pointer is absent. `write: false` reports what an
* election would see without writing (`host status --all`, which never mutates the directory).
*/
export declare function electPointer(paths: HostDaemonPaths, options?: {
readonly write?: boolean;
}): Promise<HostPointerState>;
//# sourceMappingURL=host-pointer-election.d.ts.map