asdf
Squash the current repository state back into one baseline commit while preserving the README reframing and repository contents. Constraint: User explicitly requested a single squashed commit with subject "asdf" Confidence: high Scope-risk: broad Reversibility: clean Directive: This commit intentionally rewrites published history; coordinate before future force-pushes Tested: git status clean; local history rewritten to one commit; force-pushed main to origin and instructkr Not-tested: Fresh clone verification after push
This commit is contained in:
commit
d2542c9a62
39
src/utils/permissions/autoModeState.ts
Normal file
39
src/utils/permissions/autoModeState.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
// Auto mode state functions — lives in its own module so callers can
|
||||
// conditionally require() it on feature('TRANSCRIPT_CLASSIFIER').
|
||||
|
||||
let autoModeActive = false
|
||||
let autoModeFlagCli = false
|
||||
// Set by the async verifyAutoModeGateAccess check when it
|
||||
// reads a fresh tengu_auto_mode_config.enabled === 'disabled' from GrowthBook.
|
||||
// Used by isAutoModeGateEnabled() to block SDK/explicit re-entry after kick-out.
|
||||
let autoModeCircuitBroken = false
|
||||
|
||||
export function setAutoModeActive(active: boolean): void {
|
||||
autoModeActive = active
|
||||
}
|
||||
|
||||
export function isAutoModeActive(): boolean {
|
||||
return autoModeActive
|
||||
}
|
||||
|
||||
export function setAutoModeFlagCli(passed: boolean): void {
|
||||
autoModeFlagCli = passed
|
||||
}
|
||||
|
||||
export function getAutoModeFlagCli(): boolean {
|
||||
return autoModeFlagCli
|
||||
}
|
||||
|
||||
export function setAutoModeCircuitBroken(broken: boolean): void {
|
||||
autoModeCircuitBroken = broken
|
||||
}
|
||||
|
||||
export function isAutoModeCircuitBroken(): boolean {
|
||||
return autoModeCircuitBroken
|
||||
}
|
||||
|
||||
export function _resetForTesting(): void {
|
||||
autoModeActive = false
|
||||
autoModeFlagCli = false
|
||||
autoModeCircuitBroken = false
|
||||
}
|
||||
Reference in New Issue
Block a user