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 288 to 289

Compare

+12 −10 in 1 place
Lines 221–246 at 289 (were 221–244 at 288)
221221 // copy has it already: the build points the import at the same file (scripts/build-client.mjs).
222222 const standIn = new URL("./durable-object-stand-in.ts", import.meta.url).href;
223223 const mod = (await import("node:module")) as unknown as {
224− registerHooks?: (hooks: unknown) => { deregister(): void };
224+ registerHooks?: (hooks: unknown) => unknown;
225225 };
226− const hooks = mod.registerHooks?.({
226+ // The hook stays for the rest of the process: deregistering it crashes Node 24 at exit when the compile cache
227+ // is on (client/avcs.ts turns it on). It answers only cloudflare:workers.
228+ mod.registerHooks?.({
227229 resolve(specifier: string, context: unknown, next: (s: string, c: unknown) => unknown) {
228230 if (specifier === "cloudflare:workers") return { url: standIn, shortCircuit: true };
229231 return next(specifier, context);
230232 },
231233 });
234+ let loaded: typeof import("./local-server.mjs");
232235 try {
233− const { handle, ProjectObject } = await import("./local-server.mjs");
234− return {
235− DatabaseSync: sqlite.DatabaseSync,
236− handle,
237− ProjectObject,
238− };
239− } finally {
240− hooks?.deregister();
236+ loaded = await import("./local-server.mjs");
237+ } catch (e) {
238+ // Nothing is reached for here: a part of the client is missing (its packages not installed, say).
239+ throw new LocalError(
240+ `local projects couldn't load the server's code: ${e instanceof Error ? e.message : String(e)}`,
241+ );
241242 }
243+ return { DatabaseSync: sqlite.DatabaseSync, handle: loaded.handle, ProjectObject: loaded.ProjectObject };
242244 })();
243245 return server;
244246}
MCP
compare on this site's /mcp
CLI
abso diff 288 289 client/src/local-store.ts --json
JSON
/christopher/abso-core/compare/288..289?file=client%2Fsrc%2Flocal-store.ts&format=json