| 1725 | #[napi(object)] |
| 1726 | #[derive(Default)] |
| 1727 | pub struct ConfirmationPolicy { |
| 1728 | /// Whether HITL is enabled (default: false, all tools auto-approved). |
| 1729 | pub enabled: Option<bool>, |
| 1730 | /// Default timeout in milliseconds (default: 30000 = 30s). |
| 1731 | pub default_timeout_ms: Option<u32>, |
| 1732 | /// Action to take on timeout: "reject" or "auto_approve" (default: "reject"). |
| 1733 | pub timeout_action: Option<String>, |
| 1734 | /// Lanes that should auto-approve without confirmation: "control", "query", "execute", or "generate". |
| 1735 | pub yolo_lanes: Option<Vec<String>>, |
| 1736 | } |
| 1737 | |
| 1738 | /// Snapshot of a pending HITL tool confirmation. |
| 1739 | #[napi(object)] |