import { type ResultPolicy } from './result-screen.js'; import { ThreatFeed } from './index.js'; import type { McpServerRef, WardenLogger, WardenPolicy } from './types.js'; import { type MaskConfig } from './mask.js'; export interface WrapOptions { mode: 'wrap' | 'pins'; action?: string; id?: string; command?: string; args: string[]; stateDir: string; policy: WardenPolicy; feed?: string; feedKey?: string; verdictLog?: string; auditOnly: boolean; /** What happens to a tool result whose text reads as instructions to the model (result-screen.ts). */ results: ResultPolicy; /** The server's name for the flow guard (`--flow NAME`): its calls are `mcp__NAME__tool` to the guard's * policy, and every call and result goes through the same guard the Claude Code plugin runs. */ flow?: string; /** Explicit same-server observation used before/after GUI approval; unsupported snapshots refuse execution. */ screenRead?: string; screenReadInput?: Record; /** Require the trusted server's one-use revision/target CAS; never fall back to a raw GUI call. */ screenAtomic?: boolean; /** A call that needs a person's yes — a tool matching `policy.sensitiveToolPatterns`, or a send the flow guard asks * about: `elicit` asks through the client's own form (MCP elicitation) when the client offers one and refuses * otherwise; `refuse` always refuses it. */ ask: AskPolicy; /** * OWASP MCPSTG-SUPP-06 gate: registry name (e.g. `io.github.alexar76/warden`). Before a privileged * `tools/call` (sensitiveToolPatterns, or any call when `--histor-revision-all`), WARDEN compares the * live tools/list to the publisher-signed tip on HISTOR and refuses on mismatch. */ historRevision?: string; /** When set with `--histor-revision`, gate every tools/call, not only sensitive ones. */ historRevisionAll?: boolean; historUrl?: string; /** Credentials (on by default) and personal data (off by default) replaced by placeholders before the model reads a * result, and put back in calls to the allowed servers (mask.ts). `--mask FILE`, `--mask-credentials`, * `--mask-personal`, or the WARDEN_MASK* environment. */ mask?: MaskConfig; } export declare const ASK_POLICIES: readonly ['elicit', 'refuse']; export type AskPolicy = typeof ASK_POLICIES[number]; export declare function parseWrapArgs(argv: string[]): Promise; export declare function wrapServer(opts: WrapOptions): McpServerRef; export declare function wrapLogger(auditOnly?: boolean): WardenLogger; export declare function loadWrapFeed(opts: WrapOptions): Promise; export declare function runPins(opts: WrapOptions): Promise; //# sourceMappingURL=wrap-cli.d.ts.map