{"draft":null,"from":142,"to":143,"files":[{"path":"worker/project/test/view-cache.test.ts","added":5,"removed":4,"diff":"--- a/worker/project/test/view-cache.test.ts\n+++ b/worker/project/test/view-cache.test.ts\n@@ -1,5 +1,6 @@\n import assert from \"node:assert/strict\";\n import { test } from \"node:test\";\n+import type { ReadView } from \"../../../src/engine/index.ts\";\n import { buildBase, Graph, View } from \"../../../src/engine/index.ts\";\n import { StableOverlaySet } from \"../../../src/engine/state-source.ts\";\n import type { AtomId } from \"../../../src/engine/types.ts\";\n@@ -31,16 +32,16 @@\n \n type WeightControls = {\n \tsetIncomingWeights(values: number[]): void;\n-\tsetWeight(view: View, weight: number): void;\n+\tsetWeight(view: ReadView, weight: number): void;\n };\n \n function withControlledWeights(run: (controls: WeightControls) => void): void {\n \tconst original = Object.getOwnPropertyDescriptor(View.prototype, \"weight\")!;\n-\tconst weights = new WeakMap<View, number>();\n+\tconst weights = new WeakMap<ReadView, number>();\n \tlet newWeights: number[] = [];\n \tObject.defineProperty(View.prototype, \"weight\", {\n \t\tconfigurable: true,\n-\t\tvalue(this: View) {\n+\t\tvalue(this: ReadView) {\n \t\t\tif (!weights.has(this)) weights.set(this, newWeights.shift() ?? 0);\n \t\t\treturn weights.get(this)!;\n \t\t},\n@@ -60,7 +61,7 @@\n \t}\n }\n \n-function get(cache: ViewCache, key: string): View {\n+function get(cache: ViewCache, key: string): ReadView {\n \treturn cache.keyed(key, () => new Set());\n }\n "}],"unmatched":[]}