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

Function normalizeDeveloperPromptMode

src/providers/codex/plugin.ts:1056–1068  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1054}
1055
1056function normalizeDeveloperPromptMode(value: unknown): DeveloperPromptMode | null {
1057 const normalized = normalizeDeveloperPromptContextValue(value);
1058 if (
1059 normalized === 'standard'
1060 || normalized === 'retry-recovery'
1061 || normalized === 'command-skill-parser'
1062 || normalized === 'review-result-localizer'
1063 || normalized === 'agent-result-verifier'
1064 ) {
1065 return normalized;
1066 }
1067 return null;
1068}
1069
1070function normalizeDeveloperPromptContextValue(value: unknown): string | null {
1071 if (typeof value !== 'string') {

Callers 1

Tested by

no test coverage detected