MCPcopy Create free account
hub / github.com/allocnode/oh-my-sage / getGraph

Function getGraph

src/core/tools/graph.ts:29–36  ·  view source on GitHub ↗
(gateway: GatewayClient, id: string)

Source from the content-addressed store, hash-verified

27 return { ...node, cfg };
28 });
29}
30
31function isSetupShell(graph: Graph): boolean {
32 if (graph.cfg.enable !== false || graph.nodes.length !== 1) return false;
33 const node = graph.nodes[0];
34 return node.id === 'setup'
35 && node.type === 'onLoad'
36 && node.cfg?.name === 'onLoad'
37 && Object.keys(node.props || {}).length === 0
38 && Object.keys(node.inputs || {}).length === 0
39 && JSON.stringify(node.outputs) === JSON.stringify({ output: [] });

Callers 2

createCoreToolsFunction · 0.90
registerGraphToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected