(value: unknown)
| 1054 | } |
| 1055 | |
| 1056 | function 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 | |
| 1070 | function normalizeDeveloperPromptContextValue(value: unknown): string | null { |
| 1071 | if (typeof value !== 'string') { |
no test coverage detected