MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseAutoModeEnabledState

Function parseAutoModeEnabledState

src/utils/permissions/permissionSetup.ts:1315–1320  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1313const AUTO_MODE_ENABLED_DEFAULT: AutoModeEnabledState = 'disabled'
1314
1315function parseAutoModeEnabledState(value: unknown): AutoModeEnabledState {
1316 if (value === 'enabled' || value === 'disabled' || value === 'opt-in') {
1317 return value
1318 }
1319 return AUTO_MODE_ENABLED_DEFAULT
1320}
1321
1322/**
1323 * Reads the `enabled` field from tengu_auto_mode_config (cached, may be stale).

Callers 3

verifyAutoModeGateAccessFunction · 0.85
getAutoModeEnabledStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected