Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 157 to 158

Compare

+17 −4 in 1 place
Lines 23–53 at 158 (were 23–40 at 157)
2323 get set(): ReadonlySet<string> {
2424 this.#assertLive();
2525 const has = (id: string) =>
26− this.graph.has(id) &&
27− (this.#adapter.members.get(this.#state.membership, this.graph.atom(id).seq)?.present ?? false);
26+ this.graph.has(id) && (this.#adapter.members.get(this.#state.membership, Number(id.slice(1)))?.present ?? false);
2827 const assertLive = this.#assertLive;
28+ const members = this.#adapter.members;
29+ const root = this.#state.membership;
30+ const graph = this.graph;
2931 return new (class extends StableSet<string> {
3032 readonly retainedBytes = 64;
3133 has(id: string): boolean {
3234 assertLive();
3335 return has(id);
3436 }
35− values(): SetIterator<string> {
37+ *values(): SetIterator<string> {
3638 assertLive();
37− throw Error("unsupported projected membership enumeration");
39+ const iterator = members.entries(root);
40+ try {
41+ for (;;) {
42+ assertLive();
43+ const item = iterator.next();
44+ if (item.done) return;
45+ const [seq, member] = item.value;
46+ if (member.present) yield graph.idOfSeq(seq);
47+ }
48+ } finally {
49+ iterator.return?.();
50+ }
3851 }
3952 })();
4053 }
MCP
compare on this site's /mcp
CLI
abso diff 157 158 src/engine/experimental/projection-reader.ts --json
JSON
/christopher/abso-core/compare/157..158?file=src%2Fengine%2Fexperimental%2Fprojection-reader.ts&format=json