← Về thư mục
frontend/src/features/send/permission.ts
- permScopeCn · function · L26-L28 — function permScopeCn(s: string): string
- PermEvent · type · L30-L45 — type PermEvent = { decision_id?: string; frame_id?: string; tool?: string; title?: string; target?: string; input?: Record; sub_agent?: unknown; dangerous?: unknown; policy_review_kind?: string; resolved_file_path?: string; scopes?: string[]; suggested_patterns?: string[]; allow?: unknown; scope?: string; };
- PermHandle · type · L47-L53 — type PermHandle = { card: HTMLElement; allow: HTMLButtonElement; deny: HTMLButtonElement; resolved: boolean; resolution?: unknown; };
- rec · function · L55-L57 — function rec(value: unknown): Record
- permActionLine · function · L59-L89 — function permActionLine(m: PermEvent): { mono: boolean; text: string }
- defaultRememberScope · function · L91-L93 — function defaultRememberScope(m: PermEvent): string
- registry · function · L95-L102 — function registry(): Record
- markPermCard · function · L104-L153 — function markPermCard( id: string, allowed: boolean, scope: string | null, resolution: unknown, ): void
- renderPermissionCard · function · L155-L276 — function renderPermissionCard(m: PermEvent): void
- submit · function · L243-L266 — submit = async (ok: boolean): Promise
- resolvePermissionCard · function · L278-L284 — function resolvePermissionCard(m: PermEvent): void