MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / getPathValue

Function getPathValue

src/gateway/bindingRuntime.ts:1041–1049  ·  view source on GitHub ↗
(root: unknown, pathExpr: string)

Source from the content-addressed store, hash-verified

1039}
1040
1041function getPathValue(root: unknown, pathExpr: string): unknown {
1042 const segments = pathExpr.split('.');
1043 let current: unknown = root;
1044 for (const segment of segments) {
1045 if (!current || typeof current !== 'object') return undefined;
1046 current = (current as Record<string, unknown>)[segment];
1047 }
1048 return current;
1049}
1050
1051function resolvePermissionToolName(
1052 toolCall: unknown,

Callers 3

extractExitCodeFunction · 0.70
extractFirstStringFunction · 0.70
extractStringArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected