import type { DerivedPolicy, IntrospectionResult } from "./policy-runtime.js"; export type { DerivedPolicy, IntrospectionResult }; export declare const commandDefinitions: { readonly init: { readonly effects: { readonly risk_level: "low"; readonly writes: readonly ["contract-definitions"]; }; readonly options: readonly [{ readonly name: "name"; readonly schema: { readonly type: "string"; }; }, { readonly name: "multi-command-set"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; readonly default: "."; }; }, { readonly name: "with-config"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly validate: { readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; readonly repeatable: true; }, { readonly name: "strict"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "resolve-refs"; readonly schema: { readonly type: "boolean"; readonly default: true; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly resolve: { readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["yaml", "json"]; readonly default: "yaml"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly generate: { readonly effects: { readonly risk_level: "low"; readonly writes: readonly ["generated-code", "generated-docs"]; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; readonly repeatable: true; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; }, { readonly name: "dry-run"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "clean"; readonly schema: { readonly type: "boolean"; readonly default: false; }; readonly effects: { readonly risk_level: "high"; readonly writes: readonly [{ readonly target: "output directory"; readonly description: "removes and recreates output directory before generating"; readonly destructive: true; }]; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly docs: { readonly effects: { readonly risk_level: "low"; readonly writes: readonly ["generated-docs"]; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; readonly repeatable: true; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "text/markdown"; readonly encoding: "utf-8"; }; }, { readonly name: "dry-run"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly test: { readonly effects: { readonly risk_level: "medium"; readonly writes: readonly [{ readonly target: "varies (determined by target CLI under test)"; readonly description: "executes target CLI processes; transitive side effects depend on the target CLI and test cases being executed, may include filesystem, network, or database operations"; readonly idempotent: false; }]; readonly requires_confirmation: true; }; readonly options: readonly [{ readonly name: "profile"; readonly schema: { readonly type: "string"; }; }, { readonly name: "case"; readonly schema: { readonly type: "string"; }; readonly repeatable: true; }, { readonly name: "cases-dir"; readonly schema: { readonly type: "string"; }; }, { readonly name: "timeout"; readonly schema: { readonly type: "integer"; readonly default: 30000; }; }, { readonly name: "bail"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly diff: { readonly options: readonly [{ readonly name: "base"; readonly schema: { readonly type: "string"; }; }, { readonly name: "head"; readonly schema: { readonly type: "string"; }; }, { readonly name: "contract-path"; readonly schema: { readonly type: "string"; readonly default: "cli-contract.yaml"; }; }, { readonly name: "breaking-only"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "text"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly "propose-agent-policy": { readonly effects: { readonly reads: readonly ["contract-definitions"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly audit: { readonly effects: { readonly reads: readonly ["contract-definitions"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "checks"; readonly schema: { readonly type: "string"; readonly enum: readonly ["agent-policy", "responsibility", "exit-code", "output-schema", "breaking-risk"]; }; readonly repeatable: true; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly extract: { readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "all"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "include-meta"; readonly schema: { readonly type: "boolean"; readonly default: true; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly "propose-tests": { readonly effects: { readonly reads: readonly ["contract-definitions"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly "explain-diff": { readonly effects: { readonly reads: readonly ["contract-definitions"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "base"; readonly schema: { readonly type: "string"; }; }, { readonly name: "head"; readonly schema: { readonly type: "string"; }; }, { readonly name: "contract-path"; readonly schema: { readonly type: "string"; readonly default: "cli-contract.yaml"; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly "check-reference": { readonly effects: { readonly reads: readonly ["contract-definitions", "cli-source"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "file"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly media_type: "application/yaml"; readonly encoding: "utf-8"; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "scope"; readonly schema: { readonly type: "string"; readonly enum: readonly ["contract", "implementation", "all"]; readonly default: "contract"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly suggest: { readonly effects: { readonly reads: readonly ["contract-definitions", "cli-source"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "from-readme"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly encoding: "utf-8"; }; }, { readonly name: "from-help"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly encoding: "utf-8"; }; }, { readonly name: "from-source"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "read"; readonly exists: true; readonly encoding: "utf-8"; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly bundle: { readonly effects: { readonly reads: readonly ["cli-source", "config", "contract-definitions"]; readonly writes: readonly ["audit-report"]; readonly network: { readonly description: "LLM API calls to configured provider"; readonly requires_secrets: readonly ["GEMINI_API_KEY", "OPENAI_API_KEY", "ANTHROPIC_API_KEY"]; readonly idempotent: true; }; }; readonly options: readonly [{ readonly name: "project-dir"; readonly schema: { readonly type: "string"; readonly default: "."; }; }, { readonly name: "adapter"; readonly schema: { readonly type: "string"; readonly enum: readonly ["mock", "claude", "openai", "gemini"]; }; }, { readonly name: "model"; readonly schema: { readonly type: "string"; }; }, { readonly name: "show-prompt"; readonly schema: { readonly type: "boolean"; readonly default: false; }; }, { readonly name: "fail-on"; readonly schema: { readonly type: "string"; readonly enum: readonly ["warning", "error", "critical"]; readonly default: "error"; }; }, { readonly name: "output"; readonly schema: { readonly type: "string"; }; readonly file: { readonly mode: "write"; readonly media_type: "application/json"; readonly encoding: "utf-8"; }; }, { readonly name: "report-format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["json", "text", "yaml"]; readonly default: "json"; }; }, { readonly name: "log-file"; readonly schema: { readonly type: "string"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; readonly agents: { readonly options: readonly [{ readonly name: "format"; readonly schema: { readonly type: "string"; readonly enum: readonly ["yaml", "json"]; readonly default: "yaml"; }; }]; readonly env: { readonly GEMINI_API_KEY: { readonly sensitive: true; }; readonly OPENAI_API_KEY: { readonly sensitive: true; }; readonly ANTHROPIC_API_KEY: { readonly sensitive: true; }; }; }; }; export declare function deriveCommandPolicy(command_id: string, optionValues: Record): IntrospectionResult; //# sourceMappingURL=policy.d.ts.map