MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / normalizeBusyInputMode

Function normalizeBusyInputMode

ui-tui/src/app/useConfigSync.ts:41–49  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

39const TUI_BUSY_DEFAULT: BusyInputMode = 'queue'
40
41export const normalizeBusyInputMode = (raw: unknown): BusyInputMode => {
42 if (typeof raw !== 'string') {
43 return TUI_BUSY_DEFAULT
44 }
45
46 const v = raw.trim().toLowerCase() as BusyInputMode
47
48 return BUSY_MODES.has(v) ? v : TUI_BUSY_DEFAULT
49}
50
51const INDICATOR_STYLE_SET: ReadonlySet<IndicatorStyle> = new Set(INDICATOR_STYLES)
52

Callers 2

applyDisplayFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected