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

Function normalizeCodexPersonality

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

Source from the content-addressed store, hash-verified

966].join('\n');
967
968function normalizeCodexPersonality(value: unknown): 'friendly' | 'pragmatic' | 'none' | null {
969 const normalized = typeof value === 'string' ? value.trim().toLowerCase() : '';
970 if (normalized === 'friendly' || normalized === 'pragmatic' || normalized === 'none') {
971 return normalized;
972 }
973 return null;
974}
975
976function resolveTurnArtifactContext(event: InboundTextEvent): TurnArtifactContext | null {
977 const metadata = event?.metadata;

Callers 1

startTurnMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected