Versions 142 to 143
new file, 115 lines
2+
17+const safe = (value: unknown): value is number => Number.isSafeInteger(value) && Number(value) >= 0;
21+ if ((root !== null && !safe(root)) || !/^[0-9a-f]{57}$/.test(key)) throw Error("invalid priority lookup");
47+ if (!/^[0-9a-f]$/.test(digit) || !safe(child) || child === id) throw Error("invalid priority child");
53+ if (this.#storage.read(this.#collection, String(next)) !== undefined) throw Error("priority allocation collision");
69+ return this.#write({ format: 1, kind: "branch", depth, children: { ...children, [digit]: child } });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 142 143 src/engine/experimental/projection-priority.ts --json
- JSON
- /christopher/abso-core/compare/142..143?file=src%2Fengine%2Fexperimental%2Fprojection-priority.ts&format=json