UNPKG

@code-yeongyu/senpi

Version:

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

59 lines • 1.44 kB
import type { ResolvedHostLaunchSpec } from "./host-launch-spec.ts"; import { type HostOutcome } from "./host-outcome.ts"; import type { HostTarget } from "./host-runner.ts"; import { type HostSessionOpen } from "./host-session-open.ts"; import { type SessionRef } from "./host-session-ref.ts"; import { type HostSessionWait } from "./host-session-wait.ts"; type Model = { provider: string; id: string; }; export type HostSessionRequest = { target: HostTarget; } & (({ action: "open"; spec: ResolvedHostLaunchSpec; launchSpecPath?: string; } & HostSessionOpen) | { action: "close"; ref: SessionRef; } | { action: "unload"; ref: SessionRef; interrupt: boolean; force: boolean; clearQueue: boolean; children: "refuse" | "detach"; } | { action: "model"; ref: SessionRef; model: Model; } | { action: "prompt"; ref: SessionRef; text: string; } | { action: "steer"; ref: SessionRef; text: string; } | { action: "abort"; ref: SessionRef; } | { action: "read"; ref: SessionRef; tail?: number; since?: string; messages: boolean; } | { action: "state"; ref: SessionRef; } | { action: "list"; } | ({ action: "wait"; ref: SessionRef; } & HostSessionWait)); export declare function runHostSessionRequest(request: HostSessionRequest): Promise<HostOutcome>; export {}; //# sourceMappingURL=host-session-runner.d.ts.map