web: open authored stage definitions in managed graph popup

This commit is contained in:
2026-10-20 17:35:13 +01:00
parent ae69e03157
commit f31806cfcb
18 changed files with 273 additions and 15 deletions
+12
View File
@@ -4,6 +4,7 @@
import { backChevronIcon, h, canCopyLink, canShare, copyArtifactLink, copyText, shareArtifact } from "../dom.js";
import { changeKindTone, describeError } from "../format.js";
import { definitionDocument } from "./stageDefinition.js";
import {
BINARY_DIFF_MESSAGE,
NO_LINE_CHANGES_MESSAGE,
@@ -826,6 +827,16 @@ function openArtifactViewer(viewable, startIndex, trigger = null) {
});
}
/** Graph inspection reuses the audit viewer without touching pane/route state. */
function openStageDefinition(detail, stageKey, subtitle = "") {
openStageAudit({
title: `${stageKey} definition`,
subtitle,
tabs: [{ key: "definition", label: "Definition", body: () =>
definitionDocument(detail, stageKey, (text) => rt.views.chat.renderMarkdown(text)) }],
});
}
/**
* The Audit & debug dialog: a stage's turn-owned evidence behind vertical tabs
* (Input, Output, Memory, Session, Stage definition), the chosen section's body
@@ -927,6 +938,7 @@ function openStageAudit({ title = "Audit", subtitle = "", tabs = [], trigger = n
}
return {
openStageDefinition,
closeChangeViewer,
openChangeViewer,
openDecisionSheet,