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

Function collectClientGroups

scripts/codegen/go.ts:4235–4247  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

4233}
4234
4235function collectClientGroups(node: Record<string, unknown>): ClientGroup[] {
4236 const groups: ClientGroup[] = [];
4237 for (const [groupName, groupNode] of sortByPascalName(Object.entries(node))) {
4238 if (typeof groupNode === "object" && groupNode !== null) {
4239 groups.push({
4240 groupName,
4241 groupNode: groupNode as Record<string, unknown>,
4242 methods: collectRpcMethods(groupNode as Record<string, unknown>).sort(compareRpcMethodsByGoName),
4243 });
4244 }
4245 }
4246 return groups;
4247}
4248
4249function clientHandlerInterfaceName(groupName: string): string {
4250 return `${toGoFieldName(groupName)}Handler`;

Calls 3

sortByPascalNameFunction · 0.85
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…