* Collect client API methods grouped by their top-level namespace. * Returns a map like: { sessionFs: [{ rpcMethod, params, result }, ...] }
(node: Record<string, unknown>)
| 819 | * Returns a map like: { sessionFs: [{ rpcMethod, params, result }, ...] } |
| 820 | */ |
| 821 | function collectClientGroups(node: Record<string, unknown>): Map<string, RpcMethod[]> { |
| 822 | const groups = new Map<string, RpcMethod[]>(); |
| 823 | for (const [groupName, groupNode] of Object.entries(node)) { |
| 824 | if (typeof groupNode === "object" && groupNode !== null) { |
| 825 | groups.set(groupName, collectRpcMethods(groupNode as Record<string, unknown>)); |
| 826 | } |
| 827 | } |
| 828 | return groups; |
| 829 | } |
| 830 | |
| 831 | /** |
| 832 | * Derive the handler method name from the full RPC method name. |
no test coverage detected
searching dependent graphs…