/** * Helper for wiring the `compact` action of an {@link ExtensionContext}. * * Extension-facing APIs accept `string | CompactOptions`, but `AgentSession.compact` * takes two positional arguments `(instructions, options)`. This helper splits the * union so the same adapter can be reused by print, SDK, ACP, and executor callers. */ import type { Model } from "@gajae-code/ai/core"; import type { CompactOptions } from "./types"; interface CompactableSession { compact(instructions?: string, options?: CompactOptions): Promise; } export declare function runExtensionCompact(session: CompactableSession, instructionsOrOptions: string | CompactOptions | undefined): Promise; interface SetModelCapableSession { credentialSessionId?: string; modelRegistry: { getApiKey(model: Model, sessionId?: string): Promise; }; setModel(model: Model, role?: string, options?: { cause?: string; }): Promise; /** Persist effective profile roles and clear its marker for a concrete default selection. */ materializeActiveDefaultModelProfileAssignment?(model: Model): boolean; /** Drop a session-only profile marker and its runtime role overrides. */ clearSessionOnlyModelProfileState?(): void; /** Fallback marker clear for legacy session adapters. */ setActiveModelProfile?(name: string | undefined): void; } /** * Helper for wiring the `setModel` action of an {@link ExtensionContext}. * * Returns false when no API key is available for the requested model. */ export declare function runExtensionSetModel(session: SetModelCapableSession, model: Model): Promise; export {};