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

Function normalizeText

packages/mission-control/src/runtime.ts:2191–2197  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

2189}
2190
2191function normalizeText(value: string | null | undefined): string | null {
2192 if (typeof value !== 'string') {
2193 return null;
2194 }
2195 const trimmed = value.trim();
2196 return trimmed.length > 0 ? trimmed : null;
2197}
2198
2199function isTerminalAttemptStatus(status: MissionAttempt['status']): boolean {
2200 return (

Calls

no outgoing calls

Tested by

no test coverage detected