feat: upgrade investigation and presentation runtime
This commit is contained in:
@@ -19,7 +19,7 @@ describe("task presentation input boundaries", () => {
|
||||
it("accepts finite display commands and rejects unsupported data, layers and chart evidence", () => {
|
||||
const chart = { title: "压力", chart_type: "line", x_data: ["10:00"], series: [{ name: "MP01", data: [0.4] }] };
|
||||
const commands = [
|
||||
{ action: "highlight_features", layer: "scada", feature_ids: ["MP01"] },
|
||||
{ action: "highlight_features", layer: "scada", feature_ids: ["MP01"], effect: "pulse" },
|
||||
{ action: "clear_highlights" },
|
||||
{ action: "open_chart", chart_id: "pressure", chart, evidence_refs: ["reading-1"] },
|
||||
{ action: "close_chart", chart_id: "pressure" },
|
||||
@@ -47,5 +47,10 @@ describe("task presentation input boundaries", () => {
|
||||
await expect(publishProgress.execute({ request_id, progress: {
|
||||
summary: "查询", diagram: { title: "路线", mermaid: "flowchart TD; A-->B; click A callback", node_refs: [] },
|
||||
} }, { sessionID: "test" })).rejects.toThrow("Mermaid");
|
||||
await expect(publishProgress.execute({ request_id, progress: {
|
||||
summary: "查询", diagram: { title: "路线", mermaid: "flowchart TD\nA-->B",
|
||||
node_refs: [{ node_id: "query", label: "查询", status: "running",
|
||||
evidence_refs: [], action_refs: [], map_targets: [] }] },
|
||||
} }, { sessionID: "test" })).rejects.toThrow("未在 Mermaid 源码中声明");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user