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 121 to 122

Compare

+22 −6 in 4 places
Lines 318–325 at 122 (were 318–325 at 121)
318318 this.#writersPages = storedLists<AtomId>(storage, "writers", (key) => key);
319319 this.#readersPages = storedLists<AtomId>(storage, "readers", (key) => key);
320320 this.#holdersPages = storedLists<AtomId>(storage, "holders", (key) => key);
321− this.#dependents = storedMap(storage, "dependents");
322− this.#resolvers = storedMap(storage, "resolvers");
321+ this.#dependentsPages = storedLists<AtomId>(storage, "dependents");
322+ this.#resolversPages = storedLists<AtomId>(storage, "resolvers");
323323 this.#together = storedMap(storage, "together");
324324 this.#fileAtomPages = storedLists<AtomId>(storage, "file-atoms");
325325 this.#runStarts = storedMap(storage, "run-starts");
Lines 427–435 at 122 (were 427–433 at 121)
427427 #holders: StateMap<Key | number, AtomId | AtomId[]> = new Map();
428428 #holdersPages: ReturnType<typeof storedLists<AtomId>> | undefined;
429429 #dependents: StateMap<AtomId, AtomId | AtomId[]> = new Map();
430+ #dependentsPages: ReturnType<typeof storedLists<AtomId>> | undefined;
430431 #resolvers: StateMap<AtomId, AtomId | AtomId[]> = new Map();
432+ #resolversPages: ReturnType<typeof storedLists<AtomId>> | undefined;
431433 #together: StateMap<AtomId, TogetherLink[]> = new Map();
432434 #fileAtoms: StateMap<string, AtomId[]> = new Map();
433435 #fileAtomPages: ReturnType<typeof storedLists<AtomId>> | undefined;
Lines 797–817 at 122 (were 795–807 at 121)
795797
796798 /** Atoms that list this one directly in their deps. */
797799 dependentsOf(id: AtomId): readonly AtomId[] {
798− return listOf(this.#dependents.get(id));
800+ return [...this.eachDependentOf(id)];
799801 }
802+ *eachDependentOf(id: AtomId): IterableIterator<AtomId> {
803+ if (this.#dependentsPages) yield* this.#dependentsPages.values(id);
804+ else yield* listOf(this.#dependents.get(id));
805+ }
800806
801807 /** Atoms whose `resolves` names this one. */
802808 resolversOf(id: AtomId): readonly AtomId[] {
803− return listOf(this.#resolvers.get(id));
809+ return [...this.eachResolverOf(id)];
804810 }
811+ *eachResolverOf(id: AtomId): IterableIterator<AtomId> {
812+ if (this.#resolversPages) yield* this.#resolversPages.values(id);
813+ else yield* listOf(this.#resolvers.get(id));
814+ }
805815
806816 /** `together` reasons touching this atom, in either direction. */
807817 togetherLinks(id: AtomId): readonly TogetherLink[] {
Lines 1026–1039 at 122 (were 1016–1023 at 121)
10161026 if (this.#holdersPages) this.#holdersPages.append(JSON.stringify([typeof code, code]), frozen.id);
10171027 else pushOne(this.#holders, code, frozen.id);
10181028 }
1019− for (const d of deps) pushOne(this.#dependents, d, frozen.id);
1020− for (const r of new Set(frozen.resolves)) pushOne(this.#resolvers, r, frozen.id);
1029+ for (const d of deps) {
1030+ if (this.#dependentsPages) this.#dependentsPages.append(d, frozen.id);
1031+ else pushOne(this.#dependents, d, frozen.id);
1032+ }
1033+ for (const r of new Set(frozen.resolves)) {
1034+ if (this.#resolversPages) this.#resolversPages.append(r, frozen.id);
1035+ else pushOne(this.#resolvers, r, frozen.id);
1036+ }
10211037 const files = new Set<string>();
10221038 for (const run of atom.inserts) files.add(run.file);
10231039 for (const n of deletedN) files.add(this.#paths[this.#lineFile.at(n)]!);
MCP
compare on this site's /mcp
CLI
abso diff 121 122 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/121..122?file=src%2Fengine%2Fgraph.ts&format=json