MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / parseAgentRiskValue

Function parseAgentRiskValue

src/core/bridge_coordinator.ts:14824–14830  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

14822}
14823
14824function parseAgentRiskValue(value: unknown): AgentJobRiskLevel | null {
14825 const normalized = String(value ?? '').trim().toLowerCase();
14826 if (normalized === 'low' || normalized === 'medium' || normalized === 'high') {
14827 return normalized;
14828 }
14829 return null;
14830}
14831
14832function parseAgentModeValue(value: unknown): AgentJobMode | null {
14833 const normalized = String(value ?? '').trim().toLowerCase();

Callers 2

parseAgentJobPatchFunction · 0.85
normalizeAgentRiskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected