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 142 to 143

Compare

+5 −4 in 3 places
Lines 1–6 at 143 (were 1–5 at 142)
11import assert from "node:assert/strict";
22import { test } from "node:test";
3+import type { ReadView } from "../../../src/engine/index.ts";
34import { buildBase, Graph, View } from "../../../src/engine/index.ts";
45import { StableOverlaySet } from "../../../src/engine/state-source.ts";
56import type { AtomId } from "../../../src/engine/types.ts";
Lines 32–47 at 143 (were 31–46 at 142)
3132
3233type WeightControls = {
3334 setIncomingWeights(values: number[]): void;
34− setWeight(view: View, weight: number): void;
35+ setWeight(view: ReadView, weight: number): void;
3536};
3637
3738function withControlledWeights(run: (controls: WeightControls) => void): void {
3839 const original = Object.getOwnPropertyDescriptor(View.prototype, "weight")!;
39− const weights = new WeakMap<View, number>();
40+ const weights = new WeakMap<ReadView, number>();
4041 let newWeights: number[] = [];
4142 Object.defineProperty(View.prototype, "weight", {
4243 configurable: true,
43− value(this: View) {
44+ value(this: ReadView) {
4445 if (!weights.has(this)) weights.set(this, newWeights.shift() ?? 0);
4546 return weights.get(this)!;
4647 },
Lines 61–67 at 143 (were 60–66 at 142)
6061 }
6162}
6263
63−function get(cache: ViewCache, key: string): View {
64+function get(cache: ViewCache, key: string): ReadView {
6465 return cache.keyed(key, () => new Set());
6566}
6667
MCP
compare on this site's /mcp
CLI
abso diff 142 143 worker/project/test/view-cache.test.ts --json
JSON
/christopher/abso-core/compare/142..143?file=worker%2Fproject%2Ftest%2Fview-cache.test.ts&format=json