reviewzy 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.env.example +30 -0
  2. package/LICENSE +661 -0
  3. package/README.md +170 -0
  4. package/bin/reviewzy +7 -0
  5. package/package.json +29 -0
  6. package/src/config.ts +76 -0
  7. package/src/daemon/app.ts +159 -0
  8. package/src/daemon/main.ts +103 -0
  9. package/src/daemon/origin.ts +60 -0
  10. package/src/dashboard/auth.ts +122 -0
  11. package/src/dashboard/mount.ts +373 -0
  12. package/src/dashboard/static/components.css +1116 -0
  13. package/src/dashboard/static/dashboard.css +182 -0
  14. package/src/dashboard/static/dashboard.js +169 -0
  15. package/src/dashboard/static/fonts/OFL-JetBrainsMono.txt +93 -0
  16. package/src/dashboard/static/fonts/OFL-Onest.txt +93 -0
  17. package/src/dashboard/static/fonts/jetbrainsmono-latin-ext.woff2 +0 -0
  18. package/src/dashboard/static/fonts/jetbrainsmono-latin.woff2 +0 -0
  19. package/src/dashboard/static/fonts/onest-cyrillic.woff2 +0 -0
  20. package/src/dashboard/static/fonts/onest-latin-ext.woff2 +0 -0
  21. package/src/dashboard/static/fonts/onest-latin.woff2 +0 -0
  22. package/src/dashboard/static/htmx.min.js +2 -0
  23. package/src/dashboard/static/tokens.css +213 -0
  24. package/src/dashboard/views.tsx +1388 -0
  25. package/src/db/human-save.ts +242 -0
  26. package/src/db/migrate.ts +71 -0
  27. package/src/db/migrations.ts +149 -0
  28. package/src/db/queries.ts +425 -0
  29. package/src/db/store.ts +83 -0
  30. package/src/db/style-guide.ts +236 -0
  31. package/src/db/sweep.ts +88 -0
  32. package/src/mcp/await-approved.ts +156 -0
  33. package/src/mcp/fetch-approved.ts +132 -0
  34. package/src/mcp/file-entries.ts +219 -0
  35. package/src/mcp/list-entries.ts +107 -0
  36. package/src/mcp/mark-applied.ts +103 -0
  37. package/src/mcp/route.ts +88 -0
  38. package/src/mcp/server.ts +59 -0
  39. package/src/mcp/style-guide-resource.ts +40 -0
  40. package/src/notify.ts +142 -0
  41. package/src/shim/daemon.ts +318 -0
  42. package/src/shim/lockfile.ts +153 -0
  43. package/src/shim/main.ts +172 -0
  44. package/src/shim/semver.ts +29 -0
  45. package/src/version.ts +4 -0
  46. package/tsconfig.json +26 -0
package/.env.example ADDED
@@ -0,0 +1,30 @@
1
+ # reviewzy configuration. copy to `.env` and edit; `.env` is gitignored and never committed.
2
+ # every variable below is optional. an unset variable takes the default shown.
3
+
4
+ # --- daemon ---
5
+ # port the daemon serves the dashboard and the mcp endpoint on. it always binds 127.0.0.1.
6
+ REVIEWZY_PORT=3123
7
+ # sqlite file. defaults to $XDG_DATA_HOME/reviewzy/reviewzy.db, or ~/.local/share/reviewzy/reviewzy.db.
8
+ REVIEWZY_DB=
9
+ # absolute url the dashboard is reachable at, used in notification links. defaults to http://127.0.0.1:$REVIEWZY_PORT.
10
+ REVIEWZY_BASE_URL=
11
+
12
+ # --- auth ---
13
+ # both credentials follow one rule: set it and it is required, leave it unset and the surface
14
+ # is loopback-only with a startup warning.
15
+ # bearer token guarding the mcp endpoint.
16
+ REVIEWZY_TOKEN=
17
+ # password guarding the dashboard, as a login form plus a signed session cookie.
18
+ DASHBOARD_PASSWORD=
19
+
20
+ # --- retention ---
21
+ # applied entries move into the archive table after this many days.
22
+ ARCHIVE_AFTER_DAYS=90
23
+
24
+ # --- notifications ---
25
+ # ntfy and the generic webhook are independently togglable. ntfy fires when NTFY_URL and
26
+ # NTFY_TOPIC are both set; the webhook fires when WEBHOOK_URL is set.
27
+ NTFY_URL=
28
+ NTFY_TOPIC=
29
+ NTFY_PRIORITY=3
30
+ WEBHOOK_URL=