wiki-viewer 1.4.0 → 1.4.2

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 (56) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  18. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/index.html +1 -1
  24. package/.next/standalone/.next/server/app/index.rsc +1 -1
  25. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  26. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  27. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  28. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  29. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  30. package/.next/standalone/.next/server/app/signin.html +1 -1
  31. package/.next/standalone/.next/server/app/signin.rsc +1 -1
  32. package/.next/standalone/.next/server/app/signin.segments/_full.segment.rsc +1 -1
  33. package/.next/standalone/.next/server/app/signin.segments/_head.segment.rsc +1 -1
  34. package/.next/standalone/.next/server/app/signin.segments/_index.segment.rsc +1 -1
  35. package/.next/standalone/.next/server/app/signin.segments/_tree.segment.rsc +1 -1
  36. package/.next/standalone/.next/server/app/signin.segments/signin/__PAGE__.segment.rsc +1 -1
  37. package/.next/standalone/.next/server/app/signin.segments/signin.segment.rsc +1 -1
  38. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d89o98._.js +8 -8
  39. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  40. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  41. package/.next/standalone/.next/server/pages/404.html +1 -1
  42. package/.next/standalone/.next/server/pages/500.html +1 -1
  43. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  45. package/.next/standalone/README.md +13 -0
  46. package/.next/standalone/bin/wiki-viewer.js +1 -0
  47. package/.next/standalone/docs/agent-fs-plan.md +172 -0
  48. package/.next/standalone/package.json +1 -1
  49. package/.next/standalone/src/lib/auth/server.ts +24 -0
  50. package/.next/standalone/tsconfig.tsbuildinfo +1 -1
  51. package/README.md +13 -0
  52. package/bin/wiki-viewer.js +1 -0
  53. package/package.json +1 -1
  54. /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_buildManifest.js +0 -0
  55. /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_clientMiddlewareManifest.js +0 -0
  56. /package/.next/standalone/.next/static/{NrsmW_X8LPcbZaXnFEEgh → OwXjVuoXDC_gda_BKji1J}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -192,6 +192,19 @@ wiki-viewer service restart
192
192
 
193
193
  The sign-in page then shows only the Google button. As a safety guard, this is ignored unless a Google provider is configured, so you cannot lock yourself out: if `GOOGLE_CLIENT_ID`/`GOOGLE_CLIENT_SECRET` are missing, email/password stays on and a warning is logged.
194
194
 
195
+ ### Linking Google to an existing account
196
+
197
+ Better Auth only auto-links a Google sign-in to an existing account when both sides have a verified email. If you created a password account first (with an unverified email) and then try Google sign-in with the same address, you get an `account_not_linked` error.
198
+
199
+ To force linking, list the provider in `AUTH_TRUSTED_PROVIDERS`:
200
+
201
+ ```bash
202
+ wiki-viewer config set AUTH_TRUSTED_PROVIDERS=google
203
+ wiki-viewer service restart
204
+ ```
205
+
206
+ This links Google to the existing account even when its email is unverified. It slightly raises account-takeover risk, so enable it only when you control the accounts (for example, consolidating your own login onto Google).
207
+
195
208
  ### Email allowlist
196
209
 
197
210
  By default any email can sign up. Lock it down before exposing the server.
@@ -703,6 +703,7 @@ const WIZARD_ENV_VARS = [
703
703
  { key: "GOOGLE_CLIENT_ID", hint: "Google OAuth client ID (enables Google sign-in)" },
704
704
  { key: "GOOGLE_CLIENT_SECRET", hint: "Google OAuth client secret" },
705
705
  { key: "AUTH_DISABLE_PASSWORD", hint: "Set to 1 to allow Google sign-in only (requires Google keys)" },
706
+ { key: "AUTH_TRUSTED_PROVIDERS", hint: "Auto-link these providers to existing accounts, e.g. google" },
706
707
  { key: "WIKI_OWNER_HOSTS", hint: "Extra hostnames trusted for the AI panel owner cookie" },
707
708
  { key: "AGENT_RATE_LIMIT", hint: "Per-minute agent API rate limit (default 60)" },
708
709
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiki-viewer",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Local file viewer and wiki — view markdown, HTML, PDFs, notebooks, office docs, and more from any directory",
5
5
  "license": "MIT",
6
6
  "type": "module",