Versions 148 to 149
Lines 2–17 at 149 (were 2–9 at 148)
5−import type { NodeId } from "../types.ts";
66
12+ return { count: (id) => graph.atom(id).moves?.length ?? 0, at: (id, k) => graph.atom(id).moves?.[k] };
14+
Lines 41–47 at 149 (were 33–39 at 148)
36−function readProgress(value: unknown, graph: Graph): Progress | undefined {
44+function readProgress(value: unknown, graph: Graph, source: ProjectionMoveSource): Progress | undefined {
3947 if (value.format !== 1 || value.checksum !== digest(value.state)) throw Error("damaged move resolution cursor");
Lines 59–65 at 149 (were 51–58 at 148)
54− if (Number(state.move) > (mover === undefined ? 0 : (graph.atom(mover).moves?.length ?? 0)))
55− throw Error("invalid move offset");
62+ if (Number(state.move) > (mover === undefined ? 0 : source.count(mover))) throw Error("invalid move offset");
5764 if (state[key] !== null && (typeof state[key] !== "string" || !state[key] || String(state[key]).length > 4096))
Lines 68–74 at 149 (were 61–67 at 148)
64− const canonical = graph.atom(move.atom).moves?.[move.k];
Lines 90–101 at 149 (were 83–93 at 148)
8795 if (!identity || identity.length > 4096 || !Number.isSafeInteger(maxSteps) || maxSteps < 1 || maxSteps > 256)
90− let state = readProgress(storage.read("progress", "cursor"), graph);
Lines 152–167 at 149 (were 144–157 at 148)
147− const moves = graph.atom(id).moves ?? [];
148− if (state.move === moves.length) {
154− const candidate: RelocationInfo = { atom: id, ...moves[k]!, k };
- MCP
- compare on this site's /mcp
- CLI
- abso diff 148 149 src/engine/experimental/projection-move-resolution.ts --json
- JSON
- /christopher/abso-core/compare/148..149?file=src%2Fengine%2Fexperimental%2Fprojection-move-resolution.ts&format=json