import { r as PlanningModeConfig } from "./config-CYzUW54g.mjs"; import { ConfigSection } from "@agimon-ai/doompi-core/config"; //#region src/types/planSettings.d.ts /** * The planning settings, described once for both surfaces. * * The terminal panel and the cockpit settings page render the same five fields, * and the one thing they must agree on is which config key each one writes. So * the ids, labels and key paths live here rather than in either renderer. * * It lives under src/types because that is the one server root a browser bundle * may read, which also means it may import nothing: pulling the config package * in for the thinking levels would drag a node module into the page. They are * spelled out instead, and a test asserts they still match the parser's. */ export declare const PLAN_CONFIG_SECTION_ID = "planning"; interface PlanSettingShape { readonly id: string; readonly label: string; readonly keyPath: readonly string[]; readonly placeholder: string; readonly detail: string; /** Present for a closed set; a renderer offers these rather than free text. */ readonly options?: readonly string[]; /** Offers the machine's authenticated models rather than free text. */ readonly models?: boolean; } //#endregion //#region src/schemas/plan/planConfig.d.ts /** * A planning setting as the terminal panel needs it: the shared shape, plus how * to read the value out of a loaded config. The reader stays here because it * touches the parsed config types, which the browser half never sees. */ export interface PlanSettingDescriptor extends PlanSettingShape { readonly read: (config: PlanningModeConfig | undefined) => string | undefined; } export declare const PLAN_SETTINGS: readonly PlanSettingDescriptor[]; export declare function planSettingByFieldId(fieldId: string): PlanSettingDescriptor | undefined; /** A model this session could actually switch to, as the panel offers it. */ export interface PlanModelChoice { readonly provider: string; readonly id: string; } export declare function planConfigSections(config: PlanningModeConfig | undefined, notice?: string, models?: readonly PlanModelChoice[]): readonly ConfigSection[]; //#endregion //# sourceMappingURL=planConfig.d.mts.map