/** * Absolute path the agent should use for scratch / engagement notes. * * When a session workspace is bound (normal TUI/REPL), this is the unique * per-session folder under `{tmpdir}/clai/{code}-{dd}-{mm}-{yyyy}-…}`. * Without a bound session (unit tests, early boot), fall back to a * project-name path so existing callers stay stable. */ export declare function scratchDirFor(cwd: string): string; /** Exposed so the budget script can price both turn kinds. */ export declare const _PENTEST_METHODOLOGY: string; /** Remove image.view instructions when the concrete route lacks proven vision. */ export declare function applyImageViewAvailability(prompt: string, available: boolean): string; /** * Environment clock for system prompts. * * Hour-stable on purpose: agent loops re-render the system prompt every step. * Second-precision ISO timestamps busted provider prompt-cache prefixes with no * capability gain (models only need current day/year for freshness queries). * Minutes/seconds are omitted so consecutive steps within the same local hour * produce an identical constitution string when nothing else changed. */ export declare function currentDateTimeContext(now?: Date): string; /** Local-hour floor used by {@link currentDateTimeContext} (exported for tests). */ export declare function floorToLocalHour(now: Date): Date; import type { SessionPlan } from "../store/plan.js"; /** Mutable environment facts carried after the cached constitution. */ export declare function renderRequestEnvironmentContext(options?: { plan?: SessionPlan | null | undefined; }): string; export declare const _ASK_TEMPLATE: string; export declare const _AGENT_TEMPLATE: string; export declare function renderAskSystemPrompt(options?: { nativeTools?: boolean; stableEnvironment?: boolean; /** Advertise image.view only for a route with affirmative vision evidence. */ imageView?: boolean; }): string; export declare function renderAgentSystemPrompt(toolList: string, options?: { nativeTools?: boolean; /** * E6: omit long tool-arg encyclopedia when native schemas are attached. * Defaults to true when nativeTools is true (overridable via config / * CLAI_SLIM_NATIVE_PROMPT when callers pass nothing). */ slimNative?: boolean; /** Replace mutable environment values with a stable suffix reference. */ stableEnvironment?: boolean; /** Advertise image.view only for a route with affirmative vision evidence. */ imageView?: boolean; /** * Attach the red-team methodology block. Off by default: a coding turn has * no use for it and it costs ~940 tokens on every request. */ pentest?: boolean; }): string; export declare function renderCompactAgentSystemPrompt(toolList: string, options?: { nativeTools?: boolean; stableEnvironment?: boolean; imageView?: boolean; }): string; /** Dual-mode recovery nudge wording. */ export declare function toolNudge(native: boolean): string; /** Injected when REPL mode is plan — deep research + comprehensive durable plan. */ export declare function planModeDirective(): string; /** Injected when REPL mode is agent — execute with working tasks, verify before done. */ export declare function agentModeDirective(): string;