refactor: centralize fullscreen graph policy

Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab

Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-07-28 13:45:10 +00:00
co-authored by heaust
parent edc7c8ef29
commit 67cf3a6555
11 changed files with 272 additions and 133 deletions
+6
View File
@@ -1,6 +1,7 @@
import test from "node:test";
import assert from "node:assert/strict";
import * as presets from "../static/render-graph/presets.js";
import { descriptors } from "../static/render-graph/catalog.js";
const order = [
"midnight",
@@ -168,6 +169,11 @@ test("presets have the exact canonical pipeline identities, schemas, and node se
),
);
assert.ok(!graph.nodes.some((node) => node.id === "copy"));
assert.ok(
graph.nodes.every(
(node) => node.executor.version === descriptors[node.executor.key].version,
),
);
}
});