No description
Db library scripts are basically a JS module scoped to the db, and
handlers already get fetch — but runLibrary's own vm context only
bound sql/console, so any library calling fetch (e.g. the chat db's
OpenAI call) threw ReferenceError. Since library calls are often
fire-and-forget inside setTimeout (no rejection handler), that
crashed the whole process. Bind fetch in all three places a library
script runs: request-time (runLibrary), the library-editor save eval,
and repl.
Also add `bliss link` to bliss-cli for jumping straight to a
structure/route/template/db's workshop editor URL, including
resolving a db by its require('db')(alias) name.
|
||
|---|---|---|
| bliss-cli | ||
| migrations | ||
| public | ||
| views | ||
| .gitignore | ||
| backup-deployed.sh | ||
| CLAUDE.md | ||
| db.js | ||
| index.js | ||
| out.mp3 | ||
| package-lock.json | ||
| package.json | ||
| plumbing.js | ||
| switch-bliss-data.sh | ||
| update-deployed.sh | ||