mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-03 06:41:51 +08:00
Rewriting Project Claw Code - Python port with Rust on the way
This commit is contained in:
27
src/bootstrap_graph.py
Normal file
27
src/bootstrap_graph.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BootstrapGraph:
|
||||
stages: tuple[str, ...]
|
||||
|
||||
def as_markdown(self) -> str:
|
||||
lines = ['# Bootstrap Graph', '']
|
||||
lines.extend(f'- {stage}' for stage in self.stages)
|
||||
return '\n'.join(lines)
|
||||
|
||||
|
||||
def build_bootstrap_graph() -> BootstrapGraph:
|
||||
return BootstrapGraph(
|
||||
stages=(
|
||||
'top-level prefetch side effects',
|
||||
'warning handler and environment guards',
|
||||
'CLI parser and pre-action trust gate',
|
||||
'setup() + commands/agents parallel load',
|
||||
'deferred init after trust',
|
||||
'mode routing: local / remote / ssh / teleport / direct-connect / deep-link',
|
||||
'query engine submit loop',
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user