mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 21:31:52 +08:00
28 lines
803 B
Python
28 lines
803 B
Python
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',
|
|
)
|
|
)
|