Add a State Hub workplan/wait graph as a Fabric explorer mode.
Coordination is a view, not topology. Open workplans and wait tasks project into graph-explorer; citation edges recover depends_on from task prose. UI: /ui/graph-explorer?mode=coordination. Assistant: grok Assistant-Session: 01a09dc1-b21e-77e1-919e-fcad2f82b267
This commit is contained in:
parent
18fabb37ce
commit
b7724dedea
8 changed files with 366 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ from pathlib import Path
|
|||
from typing import Any
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
|
||||
from .coordination_graph import coordination_graph_payload, default_hub, fetch_hub_lists
|
||||
from .graph_explorer import fabric_graph_explorer_manifest, fabric_graph_explorer_payload
|
||||
from .graph_explorer_ui import graph_explorer_page
|
||||
from .registry import (
|
||||
|
|
@ -136,6 +137,9 @@ class RegistryHandler(BaseHTTPRequestHandler):
|
|||
if parts == ["exports", "xregistry"]:
|
||||
return HTTPStatus.OK, xregistry_projection(self.store.combined_graph())
|
||||
if parts == ["exports", "graph-explorer"]:
|
||||
if _query_optional(query, "mode") == "coordination":
|
||||
workplans, tasks = fetch_hub_lists(default_hub())
|
||||
return HTTPStatus.OK, coordination_graph_payload(workplans, tasks)
|
||||
return HTTPStatus.OK, fabric_graph_explorer_payload(
|
||||
self.store.combined_graph(),
|
||||
self.store.list_repositories(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue