#!/usr/bin/env node /** * Forgen — PermissionRequest Hook * * 사용자 권한 요청 시 활성 모드에 따른 자동 승인/거부 정책 적용. * - autopilot 모드: 안전한 도구는 자동 승인 * - 위험 패턴: 항상 사용자 확인 요구 */ /** 자동 승인 가능한 안전 도구 목록 */ export declare const SAFE_TOOLS: Set; /** autopilot 모드에서도 수동 확인이 필요한 도구 */ export declare const ALWAYS_CONFIRM_TOOLS: Set; /** * 도구 분류: pass-through 결정 (순수 함수). * * Audit clarification #4 (2026-04-21): 본 훅은 Claude의 기본 권한 흐름을 * 가로채지 않는다 — 모든 return 라벨은 "어떤 pass-through 경로인가"를 * 의미하며, `permissionDecision: 'allow'`를 강제하지 않는다. 과거 라벨 * `auto-approve-safe`, `autopilot-approve`는 승인으로 오해되어 audit log가 * 실제 실행 신뢰도와 어긋났다. */ export declare function classifyTool(toolName: string, isAutopilot: boolean): 'safe-pass-through' | 'autopilot-warn-pass-through' | 'autopilot-pass-through' | 'pass-through';