import z from "@deepseek-ai/schemastery"; import "@deepseek-ai/dsh-session"; import { z as z$1 } from "zod"; import { Context } from "@deepseek-ai/cordis"; //#region src/review-mode.d.ts /** User-selectable automatic review modes. */ type ReviewMode = 'manual' | 'smart' | 'unattended'; /** Browser projection carrying the current independent review mode. */ interface ReviewModeProjection { mode: ReviewMode; } /** * Internal projection state for pairing built-in command lifecycle events. * The durable sidecar stays authoritative; this fold only feeds the browser * view, so it carries no mode provenance of its own. */ interface ReviewModeProjectionState { readonly mode: ReviewMode; readonly pending?: Readonly> | undefined; } declare module '@deepseek-ai/dsh-session-projection/types' { interface SessionProjectionMap { /** Automatic approval review mode for the session. */ approvalReview: ReviewModeProjection; } interface SessionProjectionStateMap { /** Host fold state for the automatic approval review mode. */ approvalReview: ReviewModeProjectionState; } } //#endregion //#region src/index.d.ts /** Cordis plugin name used in diagnostics. */ declare const name = "dsh-smart-approval"; /** Services that must exist before the answerer registers. */ declare const inject: string[]; /** Runtime configuration for smart approval. */ interface Config { /** Review mode used by sessions without an explicit selection. */ readonly defaultMode?: ReviewMode; /** Optional dedicated reviewer provider; configure together with reviewerModel. */ readonly reviewerProvider?: string; /** Optional dedicated reviewer model; configure together with reviewerProvider. */ readonly reviewerModel?: string; /** Whole reviewer-call deadline in milliseconds. */ readonly timeoutMs?: number; /** Maximum reviewer output tokens. */ readonly maxTokens?: number; /** Maximum raw character count of one tool argument object. */ readonly maxToolArgumentChars?: number; /** Number of current and recent direct-user messages included as authorization context. */ readonly maxUserMessages?: number; /** Maximum combined character count of included direct-user messages. */ readonly maxUserContextChars?: number; /** Maximum tool calls tracked per turn as reviewer context; the newest are kept. */ readonly maxTrackedToolCalls?: number; /** Maximum persisted decision-audit entries per Session lifecycle; 0 disables the audit. */ readonly decisionLogSize?: number; } /** Cordis configuration schema with conservative bounded defaults. */ declare const Config: z; /** * Register a prepended approval answerer. Mode is resolved from the durable * sidecar for every request, so /approval-mode changes take effect without * plugin reload or extension events in the Session log. * @param ctx - Cordis context with DSH approval, session, storage, and LLM services. * @param config - optional reviewer route and bounded context limits. */ declare function apply(ctx: Context, config?: Config): Promise; //#endregion export { Config, apply, inject, name }; //# sourceMappingURL=index.d.ts.map