@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
23 lines • 1.42 kB
TypeScript
import type { FdResolver } from "./files/glob.ts";
import type { HolderLink } from "./process/holder-link.ts";
import type { Limits, MachineOps } from "./types.ts";
export interface LocalMachineOpsOptions {
/**
* Root of the host's machine state; setting it configures the scope registry. With it, every exec/spawn records a
* token file under `machine/scopes/` before the child starts, the child carries `SENPI_MACHINE_SCOPE`, and
* `info.message` appends to `machine/inbox/`. Without it nothing is written to disk, children get no scope
* variable, `process.sweep` is a no-op, and `process.spawn` / `info.message` reject with `invalid_argument`.
*/
readonly stateDir?: string;
/** Owner of spawned PTYs. */
readonly holder: HolderLink;
/** Host defaults; every op reads its own limits from `OpContext.limits`. Default `DEFAULT_LIMITS`. */
readonly limits?: Limits;
/** Process-tree kill for exec abort/timeout. Default: SIGKILL the process group (POSIX). */
readonly killProcessTree?: (pid: number) => void;
/** fd lookup for `files.glob`. Default: fd on PATH, else a built-in walker. */
readonly resolveFd?: FdResolver;
}
/** The local implementation of every op, one instance per host runtime. No concurrency cap anywhere. */
export declare function createLocalMachineOps(options: LocalMachineOpsOptions): MachineOps;
//# sourceMappingURL=local.d.ts.map