@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
18 lines • 989 B
TypeScript
/** The process-table operations the reaper needs; one implementation per platform. */
export interface ChildReaperSyscalls {
listDirectChildren(): readonly number[];
/** True when the child has exited and its status is still unclaimed. */
isWaitable(pid: number): boolean;
/** True when THIS call consumed the child's exit status. */
reapExited(pid: number): boolean;
/** Executable name while the child is alive; "" once the kernel dropped it. */
describe(pid: number): string;
}
/**
* Loads the platform bindings, or `undefined` when this runtime cannot reap
* (Node, Windows, or a libc without the symbols). The platform and the runtime
* are both decided BEFORE the `bun:ffi` specifier is reached, so a Node or
* win32 host never asks its loader for a module it cannot resolve.
*/
export declare function loadChildReaperSyscalls(platform?: NodeJS.Platform): Promise<ChildReaperSyscalls | undefined>;
//# sourceMappingURL=child-reaper-syscalls.d.ts.map