UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.16 kB
/** * The ops the engine serves for the relay host (senpi#6752), each with the relay host's own decoder and run step. The * relay host keeps policy.get/set, agent.restart, machine.preflight/update/update_status, service.restart and * doctor.report; an op not listed here is refused malformed, as the relay host refuses an op it does not offer. */ import * as core from "./core-ops.ts"; import type { TerminalOps, TerminalRun } from "./terminal-ops.ts"; import type { Args, OpOutcome } from "./wire.ts"; export type OpCall = core.CoreCall & TerminalRun & Readonly<{ terminal: TerminalOps; pidOf: (handleId: string) => number | undefined; }>; export interface MachineOpEntry { /** The argument naming a terminal handle: the op acts only on its sender's own handles (review L1). */ readonly handleArg?: string; readonly decode: (a: Args) => string | undefined; readonly run: (a: Args, call: OpCall) => Promise<OpOutcome>; } /** The served op's entry (own keys only: an op named like an Object prototype key has none). */ export declare const servedOp: (name: string) => MachineOpEntry | undefined; //# sourceMappingURL=op-registry.d.ts.map