No description
Find a file
Your Name d34c917ef9 refactor: untangle bootstrapContext into makeConsole/makeLibs/runLibrary
Remove the shared-mutable-state dance where each db library was run in
the handler context via `context.sql = x; run; module.exports = null`.
Split into three single-purpose functions:

- makeConsole(structureId, routeId) — the logs-table-backed console
- runLibrary(sql, source, console) — eval one library in its own context
- makeLibs(structureId, console) — the require() targets map

Libraries are still evaluated eagerly per request (no laziness), and
still see `sql` and `console`, so behavior is preserved. Verified the
prime db library's top-level console.log still fires on a live request.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 22:30:34 -04:00
migrations feat: add file lib to routes, abstract out file upload functionality 2025-02-01 01:14:32 -05:00
public chore: add ws htmx ext to vc 2025-02-12 00:41:58 +09:00
views feat: wip previews for non-get routes 2025-01-21 02:38:24 -05:00
.gitignore chore: various gitignore fixes 2025-01-12 12:13:59 -05:00
CLAUDE.md chore: cleanup of code 2026-08-02 22:14:02 -04:00
db.js chore: cleanup of code 2026-08-02 22:14:02 -04:00
index.js refactor: untangle bootstrapContext into makeConsole/makeLibs/runLibrary 2026-08-02 22:30:34 -04:00
out.mp3 feat: add route helper to handler context 2025-02-12 00:46:39 +09:00
package-lock.json feat: add web push 2025-01-12 12:07:08 -05:00
package.json feat: add web push 2025-01-12 12:07:08 -05:00