From afdfa230c7bbb4d1a953e532a19cd009694164a8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 4 May 2026 16:18:14 +0100 Subject: [PATCH] Build Rider and graph bridge slice --- apps/epiphany-gui/package-lock.json | 26 ++ apps/epiphany-gui/package.json | 1 + .../public/operator-snapshot.sample.json | 145 ++++++ apps/epiphany-gui/scripts/visual-smoke.mjs | 8 +- apps/epiphany-gui/src-tauri/src/lib.rs | 124 +++++ apps/epiphany-gui/src/App.tsx | 156 ++++++- apps/epiphany-gui/src/styles.css | 54 +++ apps/epiphany-gui/src/types.ts | 24 + integrations/rider/README.md | 46 ++ integrations/rider/build.gradle.kts | 33 ++ integrations/rider/settings.gradle.kts | 15 + .../epiphany/rider/EpiphanyBridgeClient.kt | 69 +++ .../rider/EpiphanyCaptureContextAction.kt | 34 ++ .../rider/EpiphanyToolWindowFactory.kt | 33 ++ .../src/main/resources/META-INF/plugin.xml | 25 + notes/epiphany-current-algorithmic-map.md | 2 +- notes/epiphany-fork-implementation-plan.md | 4 +- .../epiphany-rider-unity-integration-plan.md | 9 + notes/fresh-workspace-handoff.md | 24 +- state/evidence.jsonl | 1 + state/map.yaml | 19 +- tools/epiphany_gui_action.py | 6 + tools/epiphany_rider_bridge.py | 434 ++++++++++++++++++ tools/epiphany_rider_bridge_smoke.py | 156 +++++++ .../src/prompts/epiphany_specialists.toml | 1 + 25 files changed, 1421 insertions(+), 28 deletions(-) create mode 100644 integrations/rider/README.md create mode 100644 integrations/rider/build.gradle.kts create mode 100644 integrations/rider/settings.gradle.kts create mode 100644 integrations/rider/src/main/kotlin/dev/epiphany/rider/EpiphanyBridgeClient.kt create mode 100644 integrations/rider/src/main/kotlin/dev/epiphany/rider/EpiphanyCaptureContextAction.kt create mode 100644 integrations/rider/src/main/kotlin/dev/epiphany/rider/EpiphanyToolWindowFactory.kt create mode 100644 integrations/rider/src/main/resources/META-INF/plugin.xml create mode 100644 tools/epiphany_rider_bridge.py create mode 100644 tools/epiphany_rider_bridge_smoke.py diff --git a/apps/epiphany-gui/package-lock.json b/apps/epiphany-gui/package-lock.json index 75e8043d..48f01043 100644 --- a/apps/epiphany-gui/package-lock.json +++ b/apps/epiphany-gui/package-lock.json @@ -8,6 +8,7 @@ "name": "epiphany-gui", "version": "0.1.0", "dependencies": { + "@epiphanygraph/epiphany-graph-viewer": "file:../../../EpiphanyGraph/web/epiphany-graph-viewer", "@tauri-apps/api": "^2.0.0", "lucide-react": "^0.468.0", "react": "^18.3.1", @@ -23,6 +24,27 @@ "vite": "^6.0.1" } }, + "../../../EpiphanyGraph/web/epiphany-graph-viewer": { + "name": "@epiphanygraph/epiphany-graph-viewer", + "version": "0.1.0", + "dependencies": { + "elkjs": "^0.11.0" + }, + "devDependencies": { + "@types/react": "^19.2.2", + "@types/react-dom": "^19.2.2", + "@vitejs/plugin-react": "^5.1.1", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "tsup": "^8.5.0", + "typescript": "^5.9.3", + "vite": "^7.2.4" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.29.0", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", @@ -305,6 +327,10 @@ "node": ">=6.9.0" } }, + "node_modules/@epiphanygraph/epiphany-graph-viewer": { + "resolved": "../../../EpiphanyGraph/web/epiphany-graph-viewer", + "link": true + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", diff --git a/apps/epiphany-gui/package.json b/apps/epiphany-gui/package.json index b3b90770..6b8e323a 100644 --- a/apps/epiphany-gui/package.json +++ b/apps/epiphany-gui/package.json @@ -11,6 +11,7 @@ "tauri": "tauri" }, "dependencies": { + "@epiphanygraph/epiphany-graph-viewer": "file:../../../EpiphanyGraph/web/epiphany-graph-viewer", "@tauri-apps/api": "^2.0.0", "lucide-react": "^0.468.0", "react": "^18.3.1", diff --git a/apps/epiphany-gui/public/operator-snapshot.sample.json b/apps/epiphany-gui/public/operator-snapshot.sample.json index c1479fc5..743175c5 100644 --- a/apps/epiphany-gui/public/operator-snapshot.sample.json +++ b/apps/epiphany-gui/public/operator-snapshot.sample.json @@ -3,6 +3,112 @@ "repoRoot": "E:\\Projects\\EpiphanyAgent", "status": { "threadId": "019dd9d1-045b-7f13-b0e1-38ed89b31495", + "read": { + "thread": { + "id": "019dd9d1-045b-7f13-b0e1-38ed89b31495", + "epiphanyState": { + "graphs": { + "architecture": { + "nodes": [ + { + "id": "gui-operator-console", + "title": "Tauri/React operator console", + "purpose": "Human-facing surface for status, artifacts, graph state, and bounded lane actions.", + "code_refs": [ + { + "path": "apps/epiphany-gui/src/App.tsx", + "start_line": 1, + "symbol": "App" + } + ] + }, + { + "id": "rider-context-bridge", + "title": "Rider context bridge", + "purpose": "Operator-safe source, solution, VCS, and selected-code context receipts for modeling and review.", + "code_refs": [ + { + "path": "tools/epiphany_rider_bridge.py", + "start_line": 1, + "symbol": "status_rider" + } + ] + }, + { + "id": "unity-runtime-bridge", + "title": "Unity runtime bridge", + "purpose": "Pinned-editor runtime, package, compilation, probe, and test receipts for Unity projects.", + "code_refs": [ + { + "path": "tools/epiphany_unity_bridge.py", + "start_line": 1, + "symbol": "probe_unity" + } + ] + } + ], + "edges": [ + { + "source_id": "gui-operator-console", + "target_id": "rider-context-bridge", + "kind": "requests-source-context", + "label": "Rider facts" + }, + { + "source_id": "gui-operator-console", + "target_id": "unity-runtime-bridge", + "kind": "requests-runtime-facts", + "label": "Unity facts" + } + ] + }, + "dataflow": { + "nodes": [ + { + "id": "operator-bridge-flow", + "title": "Operator bridge flow", + "purpose": "GUI button or Rider plugin action writes an artifact, then Epiphany reads the projected receipt." + }, + { + "id": "graph-review-flow", + "title": "Graph review flow", + "purpose": "Modeling state renders into a graph viewer, code refs become Rider-friendly navigation targets." + } + ], + "edges": [ + { + "source_id": "operator-bridge-flow", + "target_id": "graph-review-flow", + "kind": "feeds-review" + } + ] + }, + "links": [ + { + "dataflow_node_id": "operator-bridge-flow", + "architecture_node_id": "gui-operator-console", + "relationship": "operator-surface" + }, + { + "dataflow_node_id": "operator-bridge-flow", + "architecture_node_id": "rider-context-bridge", + "relationship": "source-organ" + }, + { + "dataflow_node_id": "operator-bridge-flow", + "architecture_node_id": "unity-runtime-bridge", + "relationship": "runtime-organ" + }, + { + "dataflow_node_id": "graph-review-flow", + "architecture_node_id": "gui-operator-console", + "relationship": "graph-dashboard" + } + ] + } + } + } + }, "scene": { "scene": { "availableActions": [ @@ -322,6 +428,45 @@ }, "modifiedMillis": 1777475848000 }, + { + "name": "rider/rider-inspect-sample", + "path": "E:\\Projects\\EpiphanyAgent\\.epiphany-gui\\rider\\rider-inspect-sample", + "files": [ + "rider-bridge-status.md", + "rider-bridge-summary.json" + ], + "summaryPath": "E:\\Projects\\EpiphanyAgent\\.epiphany-gui\\rider\\rider-inspect-sample\\rider-bridge-summary.json", + "riderAudit": { + "resultPath": "E:\\Projects\\EpiphanyAgent\\.epiphany-gui\\rider\\rider-inspect-sample\\rider-bridge-summary.json", + "status": "ready", + "workspace": "E:\\Projects\\Aetheria-Economy", + "solutionPath": "E:\\Projects\\Aetheria-Economy\\Aetheria.sln", + "solutionStatus": "ready", + "riderPath": "C:\\Program Files\\JetBrains\\JetBrains Rider 2026.1.0.1\\bin\\rider64.exe", + "installationCount": 1, + "note": "Rider executable is available for explicit source navigation and context capture.", + "vcs": { + "status": "ready", + "branch": "codex/epiphany-unity-editor-bridge", + "dirty": false, + "changedFiles": [ + "Assets/Editor/Epiphany/EpiphanyEditorBridge.cs" + ], + "stagedFiles": [], + "changedRangesKnown": true + }, + "installations": [ + { + "path": "C:\\Program Files\\JetBrains\\JetBrains Rider 2026.1.0.1\\bin\\rider64.exe", + "versionHint": "JetBrains Rider 2026.1.0.1" + } + ], + "searchRoots": [ + "C:\\Program Files\\JetBrains" + ] + }, + "modifiedMillis": 1777475847500 + }, { "name": "mvp-loop-selfdogfood-vanilla2-20260429", "path": "E:\\Projects\\EpiphanyAgent\\.epiphany-dogfood\\mvp-loop-selfdogfood-vanilla2-20260429", diff --git a/apps/epiphany-gui/scripts/visual-smoke.mjs b/apps/epiphany-gui/scripts/visual-smoke.mjs index a136da79..36db943d 100644 --- a/apps/epiphany-gui/scripts/visual-smoke.mjs +++ b/apps/epiphany-gui/scripts/visual-smoke.mjs @@ -52,12 +52,16 @@ async function smokeViewport(browser, viewport, screenshotPath) { await page.getByText("prepareCheckpoint").waitFor(); await page.getByRole("heading", { name: "Environment" }).waitFor(); await page.getByText("Unity Editor").waitFor(); - await page.getByText("Rider").waitFor(); + await page.getByRole("heading", { name: "Rider", exact: true }).waitFor(); + await page.getByText("Aetheria.sln").waitFor(); await page.getByRole("heading", { name: "Planning", exact: true }).waitFor(); await page.getByRole("heading", { name: "Build the planning dashboard slice", exact: true }).waitFor(); + await page.getByRole("heading", { name: "State Graph", exact: true }).waitFor(); + await page.getByText("Epiphany Typed Graph").waitFor(); await page.getByText("Role Lanes").waitFor(); await page.getByText("Artifact Bundles").waitFor(); await page.getByRole("button", { name: "Prepare Checkpoint" }).waitFor(); + await page.getByRole("button", { name: "Inspect Rider" }).waitFor(); await page.getByRole("button", { name: "Adopt Draft" }).waitFor(); await page.getByRole("button", { name: "Launch Imagination" }).waitFor(); await page.getByRole("button", { name: "Read Imagination" }).waitFor(); @@ -73,6 +77,8 @@ async function smokeViewport(browser, viewport, screenshotPath) { await page.getByText("statusSnapshot sample completed.").waitFor(); await page.getByRole("button", { name: "Coordinator Plan" }).click(); await page.getByText("coordinatorPlan sample completed.").waitFor(); + await page.getByRole("button", { name: "Inspect Rider" }).click(); + await page.getByText("inspectRider sample completed.").waitFor(); await page.getByRole("button", { name: "Prepare Checkpoint" }).click(); await page.getByText("prepareCheckpoint sample completed.").waitFor(); await page.getByRole("button", { name: "Read Imagination" }).click(); diff --git a/apps/epiphany-gui/src-tauri/src/lib.rs b/apps/epiphany-gui/src-tauri/src/lib.rs index e75804ec..9469fedb 100644 --- a/apps/epiphany-gui/src-tauri/src/lib.rs +++ b/apps/epiphany-gui/src-tauri/src/lib.rs @@ -35,6 +35,7 @@ struct ArtifactBundle { comparison_path: Option, implementation_audit: Option, runtime_audit: Option, + rider_audit: Option, modified_millis: Option, } @@ -62,6 +63,40 @@ struct RuntimeAudit { search_roots: Vec, } +#[derive(Debug, Serialize)] +#[serde(rename_all = "camelCase")] +struct RiderAudit { + result_path: String, + status: String, + workspace: Option, + solution_path: Option, + solution_status: Option, + rider_path: Option, + installation_count: Option, + note: Option, + vcs: Option, + installations: Vec, + search_roots: Vec, +} + +#[derive(Debug, Serialize)] +#[serde(rename_all = "camelCase")] +struct RiderVcsAudit { + status: Option, + branch: Option, + dirty: Option, + changed_files: Vec, + staged_files: Vec, + changed_ranges_known: Option, +} + +#[derive(Debug, Serialize)] +#[serde(rename_all = "camelCase")] +struct RiderInstallation { + path: Option, + version_hint: Option, +} + #[derive(Debug, Serialize)] #[serde(rename_all = "camelCase")] struct EditorBridgeAudit { @@ -111,6 +146,7 @@ fn run_operator_action( "statusSnapshot" => run_status_snapshot(&repo_root, request), "coordinatorPlan" => run_coordinator_plan(&repo_root, request), "inspectUnity" => run_unity_inspection(&repo_root, request), + "inspectRider" => run_rider_inspection(&repo_root, request), "launchImagination" | "readImaginationResult" | "acceptImagination" @@ -130,6 +166,39 @@ fn run_operator_action( } } +fn run_rider_inspection( + repo_root: &Path, + request: StatusRequest, +) -> Result { + let python = find_python()?; + let artifact_root = repo_root.join(".epiphany-gui").join("rider"); + let workspace = request + .cwd + .map(PathBuf::from) + .unwrap_or_else(|| repo_root.to_path_buf()); + + let mut command = Command::new(python); + command + .current_dir(repo_root) + .arg(repo_root.join("tools").join("epiphany_rider_bridge.py")) + .arg("status") + .arg("--project-root") + .arg(workspace) + .arg("--artifact-root") + .arg(artifact_root); + let value = run_json_command(command, "rider inspection")?; + let status = value + .get("status") + .and_then(Value::as_str) + .unwrap_or("unknown"); + Ok(OperatorActionResult { + action: "inspectRider".to_string(), + artifact_path: json_string(&value, "artifactPath")?, + summary: format!("Rider bridge inspection: {status}."), + thread_id: None, + }) +} + fn run_unity_inspection( repo_root: &Path, request: StatusRequest, @@ -417,6 +486,11 @@ fn list_artifacts(repo_root: &Path) -> Result, String> { &repo_root.join(".epiphany-gui").join("runtime"), "runtime/", )?; + collect_artifact_root( + &mut bundles, + &repo_root.join(".epiphany-gui").join("rider"), + "rider/", + )?; bundles.sort_by(|a, b| b.modified_millis.cmp(&a.modified_millis)); Ok(bundles) @@ -459,12 +533,14 @@ fn collect_artifact_root( summary_path: existing_path(&path, "epiphany-dogfood-summary.json") .or_else(|| existing_path(&path, "gui-action-summary.json")) .or_else(|| existing_path(&path, "unity-bridge-summary.json")) + .or_else(|| existing_path(&path, "rider-bridge-summary.json")) .or_else(|| existing_path(&path, "status.json")), final_status_path: existing_path(&path, "epiphany-final-status.json") .or_else(|| existing_path(&path, "after-status.json")), comparison_path: existing_path(&path, "comparison.md"), implementation_audit: read_implementation_audit(&path), runtime_audit: read_runtime_audit(&path), + rider_audit: read_rider_audit(&path), files, modified_millis, }); @@ -473,6 +549,54 @@ fn collect_artifact_root( Ok(()) } +fn read_rider_audit(root: &Path) -> Option { + let result_path = root.join("rider-bridge-summary.json"); + let text = fs::read_to_string(&result_path).ok()?; + let value: Value = serde_json::from_str(&text).ok()?; + let status = value.get("status").and_then(Value::as_str)?.to_string(); + Some(RiderAudit { + result_path: result_path.display().to_string(), + status, + workspace: json_optional_string(&value, "workspace"), + solution_path: json_optional_string(&value, "solutionPath"), + solution_status: json_optional_string(&value, "solutionStatus"), + rider_path: json_optional_string(&value, "riderPath"), + installation_count: value.get("installationCount").and_then(Value::as_u64), + note: json_optional_string(&value, "note"), + vcs: read_rider_vcs(&value), + installations: read_rider_installations(&value), + search_roots: read_string_array(&value, "searchRoots"), + }) +} + +fn read_rider_vcs(value: &Value) -> Option { + let vcs = value.get("vcs")?; + Some(RiderVcsAudit { + status: json_optional_string(vcs, "status"), + branch: json_optional_string(vcs, "branch"), + dirty: vcs.get("dirty").and_then(Value::as_bool), + changed_files: read_string_array(vcs, "changedFiles"), + staged_files: read_string_array(vcs, "stagedFiles"), + changed_ranges_known: vcs.get("changedRangesKnown").and_then(Value::as_bool), + }) +} + +fn read_rider_installations(value: &Value) -> Vec { + value + .get("installations") + .and_then(Value::as_array) + .map(|items| { + items + .iter() + .map(|item| RiderInstallation { + path: json_optional_string(item, "path"), + version_hint: json_optional_string(item, "versionHint"), + }) + .collect() + }) + .unwrap_or_default() +} + fn read_runtime_audit(root: &Path) -> Option { let result_path = root.join("unity-bridge-summary.json"); let text = fs::read_to_string(&result_path).ok()?; diff --git a/apps/epiphany-gui/src/App.tsx b/apps/epiphany-gui/src/App.tsx index 1f1fe1b7..a09668b4 100644 --- a/apps/epiphany-gui/src/App.tsx +++ b/apps/epiphany-gui/src/App.tsx @@ -1,4 +1,5 @@ import { + Boxes, AlertTriangle, BriefcaseBusiness, CheckCircle2, @@ -8,12 +9,15 @@ import { FileText, GitBranch, ListChecks, + Map, Play, RefreshCw, } from "lucide-react"; +import { EpiphanyGraphViewer, validateEpiphanyGraphsState } from "@epiphanygraph/epiphany-graph-viewer"; import { useEffect, useMemo, useState } from "react"; import { loadOperatorSnapshot, runOperatorAction } from "./operatorApi"; import type { ArtifactBundle, OperatorAction, OperatorActionResult, OperatorSnapshot, StatusRequest } from "./types"; +import type { EpiphanyCodeRef, EpiphanyGraphsState } from "@epiphanygraph/epiphany-graph-viewer"; const roleOrder = ["implementation", "imagination", "modeling", "verification", "reorientation"]; const actionButtons: Array<{ @@ -29,7 +33,7 @@ const actionButtons: Array<{ requiresReorientResult?: boolean; requiresPlanningDraft?: boolean; requiresContinueImplementation?: boolean; - icon: "file" | "check" | "play" | "eye" | "accept" | "runtime" | "plan"; + icon: "file" | "check" | "play" | "eye" | "accept" | "runtime" | "plan" | "ide"; }> = [ { action: "statusSnapshot", @@ -52,6 +56,13 @@ const actionButtons: Array<{ title: "Resolve the project-pinned Unity editor and write runtime artifacts", icon: "runtime", }, + { + action: "inspectRider", + label: "Inspect Rider", + runningLabel: "Inspecting", + title: "Inspect Rider, solution, and source control status through the local bridge", + icon: "ide", + }, { action: "prepareCheckpoint", label: "Prepare Checkpoint", @@ -222,6 +233,69 @@ function statusClass(value: unknown): string { return "neutral"; } +const emptyGraphState: EpiphanyGraphsState = { + architecture: { nodes: [], edges: [] }, + dataflow: { nodes: [], edges: [] }, + links: [], +}; + +function normalizeGraphState(value: any): EpiphanyGraphsState { + if (!value || typeof value !== "object") return emptyGraphState; + return { + architecture: normalizeGraph(value.architecture), + dataflow: normalizeGraph(value.dataflow), + links: objectList(value.links).map((link) => ({ + dataflow_node_id: text(link.dataflow_node_id ?? link.dataflowNodeId, ""), + architecture_node_id: text(link.architecture_node_id ?? link.architectureNodeId, ""), + relationship: link.relationship ?? null, + code_refs: normalizeCodeRefs(link.code_refs ?? link.codeRefs), + })).filter((link) => link.dataflow_node_id && link.architecture_node_id), + }; +} + +function normalizeGraph(value: any) { + return { + nodes: objectList(value?.nodes).map((node) => ({ + id: text(node.id, ""), + title: text(node.title ?? node.id, "Untitled node"), + purpose: text(node.purpose ?? node.summary, "No purpose recorded."), + mechanism: node.mechanism ?? null, + metaphor: node.metaphor ?? null, + status: node.status ?? null, + code_refs: normalizeCodeRefs(node.code_refs ?? node.codeRefs), + })).filter((node) => node.id), + edges: objectList(value?.edges).map((edge) => ({ + id: edge.id ?? null, + source_id: text(edge.source_id ?? edge.sourceId, ""), + target_id: text(edge.target_id ?? edge.targetId, ""), + kind: text(edge.kind, "link"), + label: edge.label ?? null, + mechanism: edge.mechanism ?? null, + code_refs: normalizeCodeRefs(edge.code_refs ?? edge.codeRefs), + })).filter((edge) => edge.source_id && edge.target_id), + }; +} + +function normalizeCodeRefs(value: any): EpiphanyCodeRef[] { + return objectList(value).map((ref) => ({ + path: text(ref.path, ""), + start_line: typeof ref.start_line === "number" ? ref.start_line : ref.startLine, + end_line: typeof ref.end_line === "number" ? ref.end_line : ref.endLine, + symbol: ref.symbol ?? null, + note: ref.note ?? null, + })).filter((ref) => ref.path); +} + +function graphRecordCount(state: EpiphanyGraphsState): number { + return state.architecture.nodes.length + state.architecture.edges.length + state.dataflow.nodes.length + state.dataflow.edges.length + state.links.length; +} + +function codeRefLabel(ref: EpiphanyCodeRef): string { + const line = ref.start_line ? `:${ref.start_line}` : ""; + const symbol = ref.symbol ? ` ${ref.symbol}` : ""; + return `${ref.path}${line}${symbol}`; +} + function useSnapshot() { const [snapshot, setSnapshot] = useState(null); const [loading, setLoading] = useState(false); @@ -282,6 +356,7 @@ function useSnapshot() { export function App() { const { snapshot, loading, error, request, setRequest, refresh, actionResult, runningAction, runAction } = useSnapshot(); + const [selectedCodeRef, setSelectedCodeRef] = useState(null); const status = snapshot?.status; const scene = status?.scene?.scene ?? {}; const pressure = status?.pressure?.pressure ?? {}; @@ -314,6 +389,11 @@ export function App() { [snapshot?.artifacts], ); const latestRuntimeAudit = latestRuntimeArtifact?.runtimeAudit; + const latestRiderArtifact = useMemo( + () => (snapshot?.artifacts ?? []).find((artifact) => artifact.riderAudit), + [snapshot?.artifacts], + ); + const latestRiderAudit = latestRiderArtifact?.riderAudit; const implementationNoDiffPending = Boolean(latestArtifact?.implementationAudit) && latestArtifact?.implementationAudit?.workspaceChanged === false; const readyState = scene.stateStatus === "ready"; @@ -337,6 +417,13 @@ export function App() { const candidatePaths = latestRuntimeAudit?.candidatePaths ?? []; const searchRoots = latestRuntimeAudit?.searchRoots ?? []; const unityBridgeReady = latestRuntimeAudit?.status === "ready" && unityBridge?.exists === true; + const epiphanyState = status?.read?.thread?.epiphanyState ?? status?.scene?.scene?.epiphanyState ?? {}; + const graphState = useMemo(() => normalizeGraphState(epiphanyState?.graphs), [epiphanyState]); + const graphIssues = useMemo(() => validateEpiphanyGraphsState(graphState), [graphState]); + const graphCount = graphRecordCount(graphState); + const riderInstallations = latestRiderAudit?.installations ?? []; + const riderSearchRoots = latestRiderAudit?.searchRoots ?? []; + const riderChangedFiles = latestRiderAudit?.vcs?.changedFiles ?? []; useEffect(() => { if (objectiveDrafts.length === 0) return; @@ -507,15 +594,20 @@ export function App() {

Rider

- pending + {text(latestRiderAudit?.status, "unknown")}
-
Workspace
{text(request.cwd ?? snapshot?.repoRoot)}
-
Plugin
not wired
-
Diagnostics
pending
-
Diff view
pending
+
Workspace
{text(latestRiderAudit?.workspace ?? request.cwd ?? snapshot?.repoRoot)}
+
Solution
{text(latestRiderAudit?.solutionPath)}
+
Rider
{text(latestRiderAudit?.riderPath, "missing")}
+
Branch
{text(latestRiderAudit?.vcs?.branch)}
+
Dirty
{text(latestRiderAudit?.vcs?.dirty)}
+
Changed
{riderChangedFiles.length}
-

Bridge pending.

+

{text(latestRiderAudit?.note, "Run Inspect Rider to capture source-context status.")}

+ `${text(installation.versionHint)} ${text(installation.path)}`)} /> + +
@@ -647,6 +739,45 @@ export function App() { +
+ } /> +
+
+
Architecture
{graphState.architecture.nodes.length} nodes / {graphState.architecture.edges.length} edges
+
Dataflow
{graphState.dataflow.nodes.length} nodes / {graphState.dataflow.edges.length} edges
+
Links
{graphState.links.length}
+
Issues
{graphIssues.length}
+
+ {selectedCodeRef && ( +
+
+ )} +
+ {graphIssues.length > 0 && ( +
+ {graphIssues.slice(0, 4).map((issue) => ( + {issue.scope}: {issue.message} + ))} +
+ )} + {graphCount > 0 ? ( +
+ setSelectedCodeRef(codeRef)} + /> +
+ ) : ( + + )} +
+
}>
@@ -758,13 +889,14 @@ function SectionHeader({ title, icon }: { title: string; icon: React.ReactNode } ); } -function ActionIcon({ icon }: { icon: "file" | "check" | "play" | "eye" | "accept" | "runtime" | "plan" }) { +function ActionIcon({ icon }: { icon: "file" | "check" | "play" | "eye" | "accept" | "runtime" | "plan" | "ide" }) { if (icon === "file") return