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

Function collectClientGroups

scripts/codegen/csharp.ts:2160–2172  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

2158}
2159
2160function collectClientGroups(node: Record<string, unknown>): Array<{ groupName: string; groupNode: Record<string, unknown>; methods: RpcMethod[] }> {
2161 const groups: Array<{ groupName: string; groupNode: Record<string, unknown>; methods: RpcMethod[] }> = [];
2162 for (const [groupName, groupNode] of Object.entries(node)) {
2163 if (typeof groupNode === "object" && groupNode !== null) {
2164 groups.push({
2165 groupName,
2166 groupNode: groupNode as Record<string, unknown>,
2167 methods: collectRpcMethods(groupNode as Record<string, unknown>),
2168 });
2169 }
2170 }
2171 return groups;
2172}
2173
2174function clientHandlerInterfaceName(groupName: string): string {
2175 return `I${toPascalCase(groupName)}Handler`;

Calls 2

collectRpcMethodsFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…