{"file":"client/src/local-server.mjs","version":318,"total":7,"from":1,"to":7,"lines":[{"n":1,"text":"// The open server's router, project object and issues, for local projects (local-store.ts). Plain JS, with its types","atom":"a2883","author":"pinch","version":294},{"n":2,"text":"// in local-server.d.mts, so the client's typecheck stops here: server/src is typechecked with the Workers' types","atom":"a2883","author":"pinch","version":294},{"n":3,"text":"// (server/tsconfig.json). The build and Node follow these imports as usual.","atom":"a2823","author":"pinch","version":287},{"n":4,"text":"","atom":"a2823","author":"pinch","version":287},{"n":5,"text":"export { IssueProject, issuesFetch } from \"../../server/src/issues-entry.ts\";","atom":"a2883","author":"pinch","version":294},{"n":6,"text":"export { ProjectObject } from \"../../server/src/project-object.ts\";","atom":"a2823","author":"pinch","version":287},{"n":7,"text":"export { handle } from \"../../server/src/router.ts\";","atom":"a2823","author":"pinch","version":287}],"atoms":[{"atom":"a2823","author":"pinch","message":"","time":1792119773277,"timeIso":"2026-10-16T03:02:53.277Z","publish":{"draft":null,"version":287,"agent":"pinch","message":"Local projects: abso init --local keeps a project's history on this machine, with no server, sign-in or network\n\nA local folder's calls never leave the process. The client runs the open server's own router and project object (server/src) in-process, over Node's built-in SQLite. It's the same engine with the same answers, so what the commands print matches a server.\n\n- abso init --local [--project <name>] [--agent <name>] [--store <folder>] makes the project, and abso join <project> --local adds a folder. After that, record, push, pull, log, blame and the held collisions work as usual. The folder's config says \"server\": \"local\".\n- Where the store lives: --store (kept in the folder's config; a store inside the folder is left out of its files through .absoignore), else ABSO_STORE, else this user's data folder: %LOCALAPPDATA%\\abso\\store, ~/Library/Application Support/abso/store, or $XDG_DATA_HOME/abso/store. Nothing needs a writable home folder when ABSO_STORE or --store is set.\n- Each project is <store>/<project>/project.sqlite. Every call runs in one SQLite write transaction, which is the store's lock: other processes wait for it, and a process that dies mid-call keeps nothing half-written. A process reloads the project only when SQLite's data_version shows another process wrote.\n- No credential goes with a local folder's calls. The edit mod leaves local folders alone, so abso record sends their edits. Issues, asks and news aren't in local projects yet.\n- Needs Node 22.13 or later (node:sqlite); its experimental warning is kept out of the output. Run as .ts, a module hook supplies the Durable Object base class (client/src/durable-object-stand-in.ts); the build aliases cloudflare:workers to the same file. client/src/local-server.mjs, with its .d.mts, keeps the client's typecheck out of server/src, which has its own.\n- Each command closes the store files it opened.\n\nTests: local (8, with fetch replaced by one that throws: init, record, push, join, pull, log, blame, a held collision, --store inside the folder, refusals), plus failed-start, install, caller, doctor, lost-pull, help, body-files: 60 pass; tsc clean. The bundle built with the alias runs init, push and log locally.","time":1792119778236,"timeIso":"2026-10-16T03:02:58.236Z"}},{"atom":"a2883","author":"pinch","message":"","time":1792121598473,"timeIso":"2026-10-16T03:33:18.473Z","publish":{"draft":null,"version":294,"agent":"pinch","message":"Local projects: issues, asks and news. The open server's issues code runs in the client's process as the project's does, over issues.sqlite beside project.sqlite in the store; every call, issues ones too, holds the project file's lock, so local writers take one lock in one order. abso issue, issues, ask, answer, waiting, news and start --issue work with the network off. Attachments and news --stream don't yet.","time":1792121598859,"timeIso":"2026-10-16T03:33:18.859Z"}}]}