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 82 to 83

Compare

+14 −3 in 1 place
Lines 391–411 at 83 (were 391–400 at 82)
391391 return [...this.#agents.keys()].sort();
392392 }
393393
394− /** An agent's unpublished changes, oldest first, and its view (its space at its base plus its changes). Read only. */
395− draftOf(agentName: string): { atoms: AtomId[]; view: View } | undefined {
394+ /**
395+ * An agent's unpublished changes, oldest first, and its view (its space at its base plus its changes). Read only.
396+ * The view is laid out on first use: where asks every agent, most have no changes, and a big project has more
397+ * agents than the view cache holds, so building every view cost each call about 0.7 s.
398+ */
399+ draftOf(agentName: string): { atoms: AtomId[]; readonly view: View } | undefined {
396400 const agent = this.#agents.get(agentName);
397− return agent && { atoms: this.#draft(agent), view: this.#agentView(agent) };
401+ if (!agent) return undefined;
402+ const view = () => this.#agentView(agent);
403+ return {
404+ atoms: this.#draft(agent),
405+ get view() {
406+ return view();
407+ },
408+ };
398409 }
399410
400411 /** The shared version an atom was published in, or undefined while it's only in a draft. */
MCP
compare on this site's /mcp
CLI
abso diff 82 83 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/82..83?file=worker%2Fproject%2Fproject.ts&format=json