/** * BSO M9.5 — MCP Protocol-Reject 输出层类型 * * Refs: * - docs/prd/PRD-BSO-M9-HARNESS-HOOKS.md §3.3 * - docs/research/EMERGING-AGENT-PRODUCTS-2026-04-19.md §3 * - MCP spec 2025-11-25 * · tools/call response with isError * · elicitation/create * · URLElicitationRequiredError (-32042) */ export declare const MCP_OUTPUT_VERSION = "v2"; export declare const MCP_OUTPUT_FEATURES: readonly ["isError", "elicitation", "url-elicitation-required-error"]; export type McpOutputFeature = (typeof MCP_OUTPUT_FEATURES)[number]; export interface RejectInput { /** 任务 id(生命周期内唯一,用于 elicitation 配对) */ task_id: string; /** 触发的 9 红线 ID(S1-S9) */ redline?: string; /** 风险等级 */ tier?: 'A' | 'B' | 'C'; /** 失败原因(中文,给用户看) */ reason: string; /** 操作建议(中文,给用户看) */ hint?: string; /** 触发的 tool 名 */ tool?: string; /** sidecar 自身 base URL(构造 /deny-review/:task_id 用) */ sidecarBaseUrl: string; /** request id (jsonrpc) — 镜像回 MCP error response */ requestId?: string | number | null; } export interface McpRejectEnvelope { /** RFC 8259: 协议层错误(机制 A)*/ error?: { jsonrpc: '2.0'; id: string | number | null; error: { code: -32042; message: string; data: { elicitations: Array<{ mode: 'url'; elicitationId: string; url: string; message: string; }>; }; }; }; /** result + isError(机制 B,最广兼容)*/ result: { jsonrpc: '2.0'; id: string | number | null; result: { content: Array<{ type: 'text'; text: string; }>; isError: true; }; }; } //# sourceMappingURL=types.d.ts.map