(root: unknown, pathExpr: string)
| 1039 | } |
| 1040 | |
| 1041 | function 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 | |
| 1051 | function resolvePermissionToolName( |
| 1052 | toolCall: unknown, |
no outgoing calls
no test coverage detected