@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.03 kB
TypeScript
import type { ThinkingLevel } from "@earendil-works/pi-agent-core";
import type { ImageContent } from "@earendil-works/pi-ai";
import type { AttachClient } from "./attach-client.ts";
export interface AttachPrompt {
readonly text: string;
readonly images?: readonly ImageContent[];
}
/**
* What a terminal's command line asks of a session it attached to on a host (senpi#6911): applied through the
* session's own commands, in the order an in-process start applies them (model, thinking, then the prompts).
*/
export interface AttachStartup {
readonly model?: {
readonly provider: string;
readonly modelId: string;
};
readonly thinking?: ThinkingLevel;
readonly prompts: readonly AttachPrompt[];
}
/** A refusal from the host rejects, so a model the session cannot use is never followed by the prompts. */
export declare function applyAttachStartup(request: AttachClient["request"], sessionId: string, startup: AttachStartup): Promise<void>;
//# sourceMappingURL=attach-startup.d.ts.map