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

Function normalizeRecord

packages/codex-native-api/src/native_api_server.ts:3056–3061  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3054}
3055
3056function normalizeRecord(value: unknown): JsonRecord | null {
3057 if (!value || typeof value !== 'object' || Array.isArray(value)) {
3058 return null;
3059 }
3060 return value as JsonRecord;
3061}
3062
3063function extractInternalCodexbridgeEventMetadata(requestMetadata: JsonRecord | null): JsonRecord | undefined {
3064 const codexbridge = normalizeRecord(requestMetadata?.codexbridge);

Calls

no outgoing calls

Tested by

no test coverage detected