Versions 293 to 294
Lines 189–196 at 294 (were 189–194 at 293)
190190 handle: (request: Request, env: unknown, ctx: unknown, issues: unknown) => Promise<Response>;
193+ issuesFetch: (request: Request, env: unknown, ctx: unknown, route: unknown) => Promise<Response>;
194196
Lines 242–254 at 294 (were 240–246 at 293)
240242 `local projects couldn't load the server's code: ${e instanceof Error ? e.message : String(e)}`,
243− return { DatabaseSync: sqlite.DatabaseSync, handle: loaded.handle, ProjectObject: loaded.ProjectObject };
Lines 264–273 at 294 (were 256–261 at 293)
257265 /** PRAGMA data_version when this process last used the project: it changes when another process writes. */
267+ /** The project's issues, asks and news: issues.sqlite beside it, opened when a call first reaches them. */
269+ /** The issues object for the call under way: made again for each call, as another process may have written. */
260272
261273/** Every store file this process has open: closed when its command ends (closeLocalStores). */
Lines 283–290 at 294 (were 271–277 at 293)
273285
274−const PROJECT_PATH = /^\/p\/([^/]+)\//;
286+/** A project's calls, and its issues, asks and news, which the open server keeps at /issues/p/<project>/. */
277290
Lines 325–349 at 294 (were 312–319 at 293)
315− // Issues, asks and news aren't in local projects yet: a start note's issue hooks find nothing to call.
316− ISSUES_DO: { idFromName: (n: string) => n, get: () => ({}) },
336+ db.exec("PRAGMA journal_mode = WAL; PRAGMA busy_timeout = 120000; PRAGMA synchronous = NORMAL");
Lines 359–368 at 294 (were 329–335 at 293)
362+ // Every call, issues ones too, holds the project file's lock, so local writers of the project and of its
334367 const version = (p.db.prepare("PRAGMA data_version").get() as { data_version: number }).data_version;
Lines 370–376 at 294 (were 337–343 at 293)
340− issuesNone,
343376 // The answer is read whole before the write is kept, so a body that fails to arrive keeps nothing either.
Lines 391–393 at 294 (were 358–362 at 293)
361−
362−const issuesNone = async () => json(404, { error: "issues, asks and news aren't in local projects yet" });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 293 294 client/src/local-store.ts --json
- JSON
- /christopher/abso-core/compare/293..294?file=client%2Fsrc%2Flocal-store.ts&format=json