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

Function pointer

packages/codex-gateway/src/converters/apply_patch_proxy.ts:444–453  ·  view source on GitHub ↗
(value: JsonRecord, path: string[])

Source from the content-addressed store, hash-verified

442}
443
444function pointer(value: JsonRecord, path: string[]): unknown {
445 let current: unknown = value;
446 for (const segment of path) {
447 if (!current || typeof current !== 'object') {
448 return undefined;
449 }
450 current = (current as JsonRecord)[segment];
451 }
452 return current;
453}
454
455function stringValue(value: unknown): string {
456 return typeof value === 'string' ? value : '';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected