refactor(usage): centralize responseUsage mode
This commit is contained in:
1 parent
e2c10a2b7a
commit
54d7551b53
4 files changed
+14
-21
No files matched your search
@@ -103,6 +103,10 @@ export function normalizeUsageDisplay(raw?: string | null): UsageDisplayLevel |
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function resolveResponseUsageMode(raw?: string | null): UsageDisplayLevel {
|
||||
return normalizeUsageDisplay(raw) ?? "off";
|
||||
}
|
||||
|
||||
// Normalize elevated flags used to toggle elevated bash permissions.
|
||||
export function normalizeElevatedLevel(raw?: string | null): ElevatedLevel | undefined {
|
||||
if (!raw) return undefined;
|
||||
|
||||
Reference in new issue
Block a user