UNPKG

@code-yeongyu/senpi

Version:

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

13 lines • 1 kB
import type { ExtensionRunner } from "../../core/extensions/runner.ts"; import type { LooplessToolHandlers } from "./loopless-tool-call.ts"; /** Where a two-sided extension runs whole: with the loop (fused, split-local; S29) or on the hand (hosted loop; S33). */ export type TwoSidedHome = "loop" | "hand"; /** * A loopless runtime's own extensions' `tool_call`/`tool_result` handlers, emitted as a session emits them. On a hand * (a call that carries its nested requests), a two-sided extension's handlers are forwarded to the loop that owns the * call instead of running here (S29). When the loop runs away from the user's machine (a hosted loop, S33/K5), the user's * machine is the extension's home: `twoSidedHome: "hand"` keeps its tool handlers here, and its loop hooks come here too * over the loop-hook link. */ export declare function extensionToolHandlers(runner: ExtensionRunner, twoSidedHome?: TwoSidedHome): LooplessToolHandlers; //# sourceMappingURL=loopless-tool-handlers.d.ts.map