arch-design-agent-skill-das.../backend/app/modules/graph/domain/entities.py
openclaw 4cf039e029 feat(graph): add parent field to GraphNode domain entity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 08:09:29 +00:00

33 lines
648 B
Python

from dataclasses import dataclass
@dataclass
class GraphNode:
id: str
type: str # capability, module, entity, integration, ...
label: str
status: str # FileStatus or "unknown"
group_id: str
parent: str | None = None
@dataclass
class GraphEdge:
source: str
target: str
relation: str # traces_to, depends_on, owns, integrates_with, ...
@dataclass
class GraphGroup:
id: str
label: str
layer: str # business, application, data, technology, cross-layer
@dataclass
class GraphView:
nodes: list[GraphNode]
edges: list[GraphEdge]
groups: list[GraphGroup]