MCPcopy Index your code
hub / github.com/github/copilot-sdk / collectClientGroups

Function collectClientGroups

scripts/codegen/typescript.ts:821–829  ·  view source on GitHub ↗

* Collect client API methods grouped by their top-level namespace. * Returns a map like: { sessionFs: [{ rpcMethod, params, result }, ...] }

(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

819 * Returns a map like: { sessionFs: [{ rpcMethod, params, result }, ...] }
820 */
821function 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.

Calls 2

collectRpcMethodsFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…