MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / CommandGraph

Class CommandGraph

src/command_graph.py:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9@dataclass(frozen=True)
10class CommandGraph:
11 builtins: tuple[PortingModule, ...]
12 plugin_like: tuple[PortingModule, ...]
13 skill_like: tuple[PortingModule, ...]
14
15 def flattened(self) -> tuple[PortingModule, ...]:
16 return self.builtins + self.plugin_like + self.skill_like
17
18 def as_markdown(self) -> str:
19 lines = [
20 '# Command Graph',
21 '',
22 f'Builtins: {len(self.builtins)}',
23 f'Plugin-like commands: {len(self.plugin_like)}',
24 f'Skill-like commands: {len(self.skill_like)}',
25 ]
26 return '\n'.join(lines)
27
28
29def build_command_graph() -> CommandGraph:

Callers 1

build_command_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected