Fix stable CI regressions

This commit is contained in:
Youzini-afk
2026-04-09 15:17:01 +08:00
parent 77eedb6b7c
commit 23624122f3
2 changed files with 6 additions and 2 deletions

View File

@@ -2552,7 +2552,10 @@ function buildResult(graph, selectedNodeIds, schema, meta = {}) {
const selectedSet = new Set(uniqueNodeIds(selectedNodeIds));
const scopeContext = meta.scopeContext || {};
const compareForResult = compareNodeRecallOrderWithContext(graph, scopeContext);
const summaryEntries = getActiveSummaryEntries(graph);
const summaryEntries =
typeof getActiveSummaryEntries === "function"
? getActiveSummaryEntries(graph)
: [];
// 常驻注入节点alwaysInject=true 的类型)
const alwaysInjectTypes = new Set(

View File

@@ -79,10 +79,11 @@ const legacyGraph = deserializeGraph({
edges: [],
});
assert.equal(legacyGraph.nodes[0]?.scope?.layer, "objective");
assert.equal(legacyGraph.version, 8);
assert.equal(legacyGraph.version, 9);
assert.equal(legacyGraph.knowledgeState?.version, 1);
assert.equal(legacyGraph.regionState?.version, 1);
assert.equal(legacyGraph.timelineState?.version, 1);
assert.equal(legacyGraph.summaryState?.version, 1);
assert.equal(legacyGraph.historyState?.activeRegionSource, "");
assert.equal(legacyGraph.historyState?.activeStorySegmentId, "");
assert.equal(legacyGraph.historyState?.activeStoryTimeLabel, "");