feat: add one-turn situation graph update UI

This commit is contained in:
2026-08-02 09:43:42 +01:00
parent a948910ba8
commit a9bce79658
11 changed files with 901 additions and 42 deletions
+7 -6
View File
@@ -13,9 +13,9 @@ function makeAnalysisResult(overrides = {}) {
return {
success: true,
validationStatus: "valid",
modelName: "llama3",
modelName: "configured-model",
responseDurationMs: 321,
rawResponse: "{}",
rawResponse: undefined,
promptVersion: "v0.3",
reconstruction: {
summary: "Revenue and complaints diverge",
@@ -164,7 +164,7 @@ describe("lib/graph/orchestrator startCase", () => {
expect(result.situationGraph.currentSummary).toContain("Nodes:");
expect(result.diagnostics).toMatchObject({
validationStatus: "valid",
modelName: "llama3",
modelName: "configured-model",
graphReferenceValidation: { valid: true, errors: [] },
});
});
@@ -208,7 +208,7 @@ describe("lib/graph/orchestrator startCase", () => {
error: "Provider unavailable",
errors: ["socket hang up"],
rawResponse: null,
modelName: "llama3",
modelName: "configured-model",
responseDurationMs: 99,
promptVersion: "v0.3",
validationStatus: "invalid",
@@ -279,8 +279,9 @@ describe("lib/graph/orchestrator startCase", () => {
diagnostics: {
promptVersion: "v0.4",
modelName: "configured",
graphNodeCount: 2,
graphEdgeCount: 0,
nodeCount: 2,
edgeCount: 0,
validationStatus: "valid",
},
});
expect(provider.generateReconstruction).toHaveBeenCalledTimes(1);