Versions 142 to 143
new file, 428 lines
22+
38+ if (!value || typeof value !== "object" || Array.isArray(value)) throw Error("invalid relocation plan");
55+ if (!Number.isSafeInteger(value) || Number(value) < 0) throw Error("invalid projection number");
92+ this.attributeRoots = new ProjectionLocator(storage, namespace + ":attributes", projectionAttributes);
101+ if (!state || state.context !== this.context) throw Error("projection constructor context mismatch");
115+ if (JSON.stringify(this.graph.atom(atom.id)) !== JSON.stringify(atom)) throw Error("canonical atom mismatch");
118+ if (!this.members.get(previous.membership, this.graph.atom(id).seq)?.present) throw Error("missing dependency");
125+ if (hidden) state.sequence = sequence.update(state.sequence, { kind: "visibility", id, delta: 1 });
139+ state.sequence = sequence.update(state.sequence, { kind: "visibility", id: existing.enter, delta: -1 });
160+ state.children = this.childRoots.set(state.children, parentKey, { root: index.insert(root, key, n) });
164+ state.locator = this.markers.set(state.locator, n + 1, { kind: "line", enter, exit, parentKey, key });
169+ state.sequence = sequence.update(state.sequence, { kind: "visibility", id: marker.enter, delta: 1 });
174+ state.membership = this.members.set(state.membership, seq, { ...member, dependents: member.dependents + 1 });
178+ state.membership = this.members.set(state.membership, atom.seq, { present: true, dependents: 0 });
187+ if (JSON.stringify(this.graph.atom(atom.id)) !== JSON.stringify(atom)) throw Error("canonical atom mismatch");
198+ state.sequence = this.sequence.update(state.sequence, { kind: "visibility", id: marker.enter, delta: 1 });
203+ state.sequence = this.sequence.update(state.sequence, { kind: "visibility", id: marker.enter, delta: -1 });
209+ state.membership = this.members.set(state.membership, seq, { ...member, dependents: member.dependents - 1 });
213+ state.membership = this.members.set(state.membership, atom.seq, { present: false, dependents: 0 });
234+ const has = (id: AtomId) => this.members.get(previous.membership, this.graph.atom(id).seq)?.present ?? false;
268+ for (const [key] of this.storage.entries(prefix + collection)) this.storage.remove(prefix + collection, key);
321+ const anchor = sibling === undefined ? target.enter : required(this.markers.get(state.locator, sibling + 1)).exit;
329+ state.children = this.childRoots.set(state.children, parentKey, { root: index.insert(newRoot, key, n) });
355+ rank = state.sequence.root === null ? 0 : seq.get(state.sequence.map, state.sequence.root).count;
362+ state.locator = this.markers.set(state.locator, key, { kind: "file", enter, exit, contributions: 0 });
369+ if (marker?.kind !== "file" || marker.contributions + delta < 0) throw Error("invalid file contribution count");
370+ state.locator = this.markers.set(state.locator, key, { ...marker, contributions: marker.contributions + delta });
390+ if (!["exists", "exec", "link", "blob"].includes(attr.name)) throw Error("unsupported attribute");
400+ [attr.name]: adding ? index.insert(root, key, { value: attr.value }) : index.remove(root, key),
408+ const roots = file === undefined ? {} : (this.attributeRoots.get(state.attributeFiles, file) ?? {});
409+ const value = (name: ProjectionAttributeName) => index.before(roots[name] ?? null, "f".repeat(57))?.value ?? null;
410+ return { exists: value("exists") === "1", exec: value("exec") === "1", link: value("link"), blob: value("blob") };
- MCP
- compare on this site's /mcp
- CLI
- abso diff 142 143 src/engine/experimental/projection-marker.ts --json
- JSON
- /christopher/abso-core/compare/142..143?file=src%2Fengine%2Fexperimental%2Fprojection-marker.ts&format=json