Refactor UI modules and harden run/API behavior
This commit is contained in:
@@ -4,7 +4,7 @@ import { mkdir, writeFile } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { resolve } from "node:path";
|
||||
import { mkdtemp } from "node:fs/promises";
|
||||
import { buildSessionGraphInsight, buildSessionSummaries } from "../src/ui/session-insights.js";
|
||||
import { buildSessionGraphInsight, buildSessionSummaries } from "../src/telemetry/session-insights.js";
|
||||
import { parseAgentManifest } from "../src/agents/manifest.js";
|
||||
|
||||
function createManifest() {
|
||||
@@ -155,13 +155,13 @@ test("buildSessionGraphInsight maps attempts, edge visits, and sandbox payload",
|
||||
assert.equal(graph.status, "success");
|
||||
assert.equal(graph.nodes.length, 2);
|
||||
|
||||
const node2 = graph.nodes.find((node) => node.nodeId === "n2");
|
||||
const node2 = graph.nodes.find((node: any) => node.nodeId === "n2");
|
||||
assert.ok(node2);
|
||||
assert.equal(node2.attemptCount, 2);
|
||||
assert.equal(node2.subtaskCount, 1);
|
||||
assert.equal(node2.sandboxPayload?.phase, "n2");
|
||||
|
||||
const edge = graph.edges.find((entry) => entry.from === "n1" && entry.to === "n2");
|
||||
const edge = graph.edges.find((entry: any) => entry.from === "n1" && entry.to === "n2");
|
||||
assert.ok(edge);
|
||||
assert.equal(edge.visited, true);
|
||||
assert.equal(edge.trigger, "event:validation_failed");
|
||||
|
||||
Reference in New Issue
Block a user