UNPKG

@code-yeongyu/senpi

Version:

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

30 lines • 1.83 kB
import type { SharedSections } from "../../../dynamic-prompt/types.ts"; import type { TodoFirstTurnPlan } from "../../../settings-shapes.ts"; import type { PromptPresetName } from "./settings.ts"; export type ResolvedPresetName = Exclude<PromptPresetName, "auto">; export declare function resolvePresetName(input: { providerID: string; modelID: string; name?: string; }): ResolvedPresetName | undefined; /** The shared-section wording a preset declares; no preset (the default prompt) renders `diet`. */ export declare function presetSharedSections(name: ResolvedPresetName | undefined): SharedSections; /** * The handoff block a preset's prompt defines, so the todo tool's cue can name that block in the * prompt's own words instead of the default core's (senpi#6977): the GPT block presets render the * outcome-first block, the gpt-6.2 and deepseek-v4-1-flash cores render no handoff block on any * surface (senpi#6979, senpi#7100), so a cue there would name a block those prompts do not define, and * every other preset (and the default dynamic prompt) renders the Ask / For you / Now / Next block. */ export type HandoffCueKind = "default" | "gpt-block" | "none"; export declare function presetHandoffCueKind(name: ResolvedPresetName | undefined): HandoffCueKind; export declare function presetFirstTurnPlanDefault(name: ResolvedPresetName | undefined): TodoFirstTurnPlan; export declare function presetOwnsTodoRules(name: ResolvedPresetName | undefined): boolean; export type PromptPresetModelCase = { readonly providerID: string; readonly modelID: string; readonly preset: ResolvedPresetName; }; export declare const PROMPT_PRESET_MODEL_CASES: readonly PromptPresetModelCase[]; export declare const AUTO_RESOLVED_PRESET_NAMES: readonly ResolvedPresetName[]; //# sourceMappingURL=contract.d.ts.map