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 233 to 234

Compare

+10 −3 in 2 places
Lines 12–30 at 234 (were 12–23 at 233)
1212 */
1313const VIEW_BUDGET = 24_000_000;
1414
15+/**
16+ * At most this many views (abso Capacity). where visits every agent's draft view in turn: with more agents than views,
17+ * each visit evicted the next one, and a warm where on abso laid every view out again (4.5 s against 0.33 s). The byte
18+ * budget still bounds what they hold.
19+ */
20+export const VIEW_COUNT = 128;
1522/** Internal opt-in. The owner validates identity and lifetime on every returned reader. */
1623export interface ReadViewProvider {
1724 keyed(key: string): ReadView;
1825}
1926
20−/** Views by key, most recently used last, held under VIEW_BUDGET bytes and 32 views. */
27+/** Views by key, most recently used last, held under VIEW_BUDGET bytes and VIEW_COUNT views. */
2128export class ViewCache {
2229 readonly #graph: Graph;
2330 readonly #provider?: ReadViewProvider;
Lines 41–53 at 234 (were 34–46 at 233)
3441 /**
3542 * Keep the cached views under VIEW_BUDGET bytes (the website project, #43,
3643 * #46): each view holds every line its files ever had, so a few views of a
37− * large generated file add up. At most 32.
44+ * large generated file add up. At most VIEW_COUNT.
3845 */
3946 #trim(): void {
4047 let total = 0;
4148 for (const v of this.#cache.values()) total += v.weight();
4249 for (const [key, v] of this.#cache) {
43− if (total <= VIEW_BUDGET && this.#cache.size <= 32) break;
50+ if (total <= VIEW_BUDGET && this.#cache.size <= VIEW_COUNT) break;
4451 total -= v.weight();
4552 this.#cache.delete(key);
4653 }
MCP
compare on this site's /mcp
CLI
abso diff 233 234 worker/project/views.ts --json
JSON
/christopher/abso-core/compare/233..234?file=worker%2Fproject%2Fviews.ts&format=json