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

Function normalizeCodexServiceTier

src/providers/codex/plugin.ts:1250–1262  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

1248}
1249
1250function normalizeCodexServiceTier(value: string | null | undefined): string | null {
1251 const normalized = typeof value === 'string' ? value.trim().toLowerCase() : '';
1252 if (!normalized) {
1253 return null;
1254 }
1255 if (normalized === 'priority') {
1256 return 'fast';
1257 }
1258 if (normalized === 'default') {
1259 return 'flex';
1260 }
1261 return normalized;
1262}
1263
1264function normalizeCodexCollaborationMode(value: string | null | undefined): 'default' | 'plan' {
1265 return String(value ?? '').trim().toLowerCase() === 'plan' ? 'plan' : 'default';

Callers 2

startTurnMethod · 0.70
startReviewMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected