Commit graph

11 commits

Author SHA1 Message Date
Your Name
ffba038b35 fix: restore inspector template hot reload 2026-08-06 16:37:42 -04:00
Your Name
5299bd34ee feat: add current user to req 2026-08-06 14:36:21 -04:00
Your Name
48ac1249c8 feat: slideout editor new new new! 2026-08-03 01:24:54 -04:00
Your Name
42f4aacf7c feat: append-only version history + bliss CLI ergonomics
Snapshot the code-bearing fields of routes (verb/path/handler), templates
(name/content/test_object), and db libraries (name/library) on every
content-changing save, so nothing edited is ever lost. Recorded in a new
`versions` table via recordVersion() hooked into the create/update functions
in db.js (the single write choke point), deduped against the latest snapshot
so no-op saves, error-flag-only route writes, and server-restart WS
re-bootstraps don't pile up. The live row stays current; old snapshots are the
undo trail. Read-only, no revert UI yet.

- migrations/004_add_versions.sql: versions table + indexes
- db.js: recordVersion/getVersions/getVersion + create/update hooks
- plumbing.js: /versions/:id and per-entity .../versions list endpoints
- bliss: `versions <type> <sid> <id>` and `version <id>` reads;
  `update-settings` (edit route_prefix/head_injection, preserving the
  untouched field); `use <url>` sticky target persisted to ~/.bliss/target
  so BLISS_URL needn't be re-exported each call
- client.js: target-file precedence (BLISS_URL > ~/.bliss/target > localhost)
- SKILL.md: document the above

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-03 00:27:24 -04:00
Your Name
1add367621 chore: remove stray debug console.logs from createScaffoldPage
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 22:32:48 -04:00
Your Name
de94d43e48 refactor: collapse five identical update builders into one update()
updateRoute/updateDb/updateStruct/updateTemplate/updateScaffoldPage
were the same UPDATE-by-id builder with a different table and field
list. Extract a single update(table, fields, obj) and express each as
a one-liner. (updateScaffoldPage's two stray debug console.logs went
away with the rewrite; it keeps its changes>0 return.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 22:31:15 -04:00
Your Name
ae51fc763c chore: cleanup of code 2026-08-02 22:14:02 -04:00
Your Name
c2f6d6b653 fix: get url prefix for ws redefinition 2025-01-21 02:38:24 -05:00
Your Name
a23aee5d21 feat: wip previews for non-get routes 2025-01-21 02:38:24 -05:00
HRG @ SCExC
38b9c0e538 fix: logs bug where it was repeating due to flaw in most recent id query 2025-01-12 11:56:17 -05:00
HRG @ SCExC
305bf8b571 feat: add logs 2025-01-09 15:42:51 -05:00