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

Function normalizeText

packages/mission-control/src/progress.ts:182–188  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

180}
181
182function normalizeText(value: string | null | undefined): string | null {
183 if (typeof value !== 'string') {
184 return null;
185 }
186 const trimmed = value.trim();
187 return trimmed.length > 0 ? trimmed : null;
188}
189
190function cloneRecord(value: Record<string, unknown> | null | undefined): Record<string, unknown> | null {
191 if (!value || typeof value !== 'object' || Array.isArray(value)) {

Callers 3

normalizeAttemptIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected