GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/utils/autoModeDenials.ts at main · wangwang4git/claude-code-source-code Expand file tree/ Copy pathautoModeDenials.tsMore file actions 26 lines (21 loc) · 720 Bytes / Copy pathautoModeDenials.tsFile metadata and controls26 lines (21 loc) · 720 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 /** * Tracks commands recently denied by the auto mode classifier. * Populated from useCanUseTool.ts, read from RecentDenialsTab.tsx in /permissions. */ import { feature } from 'bun:bundle' export type AutoModeDenial = { toolName: string /** Human-readable description of the denied command (e.g. bash command string) */ display: string reason: string timestamp: number } let DENIALS: readonly AutoModeDenial[] = [] const MAX_DENIALS = 20 export function recordAutoModeDenial(denial: AutoModeDenial): void { if (!feature('TRANSCRIPT_CLASSIFIER')) return DENIALS = [denial, ...DENIALS.slice(0, MAX_DENIALS - 1)] } export function getAutoModeDenials(): readonly AutoModeDenial[] { return DENIALS } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |