Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -5,7 +5,7 @@
## What ships in this phase
- A new `apps/hocuspocus/` workspace app — Node service running [Hocuspocus 4.0.0](https://github.com/ueberdosis/hocuspocus) with a Postgres persistence adapter on top of the `CollabDoc` Prisma model.
- A JWT auth hook (`onAuthenticate`) that ties Y.js documents to the toolctrl session: tokens are signed by the web app's `/api/collab/token` endpoint and verified by the hocuspocus container with the same `HOCUSPOCUS_AUTH_SECRET`.
- A JWT auth hook (`onAuthenticate`) that ties Y.js documents to the hivegrid session: tokens are signed by the web app's `/api/collab/token` endpoint and verified by the hocuspocus container with the same `HOCUSPOCUS_AUTH_SECRET`.
- Y.js + Tiptap collaboration extensions wired into the Novel-Editor (`apps/web/app/modules/novel/`). When `VITE_HOCUSPOCUS_URL` is set _and_ the per-tenant `realtime-collab-enabled` feature flag evaluates true, the editor opens a WebSocket session and renders live cursors + presence. Otherwise it mounts exactly as before — single-user REST save.
- A new `CollabDoc` table (one row per `tenantId:resourceType:resourceId`) storing the binary Y.Doc state, version counter and `lastUpdatedAt`. See `prisma/schema/collabDocs.prisma` + migration `20260517145000_05_collab_docs`.
@@ -58,7 +58,7 @@ Realtime collaboration is **off by default** to keep the boilerplate friendly to
3. **`realtime-collab-enabled` feature flag turned on for the tenant.** Without it the token endpoint returns `403 feature_disabled` and the Novel-Editor stays single-user. Use the admin Engine v2 page (`/admin/feature-flags/engine`) or the CLI:
```bash
toolctrl-cli feature-flags enable realtime-collab-enabled --tenant <tenantId>
hivegrid-cli feature-flags enable realtime-collab-enabled --tenant <tenantId>
```
## Browser opt-in
@@ -154,6 +154,5 @@ All entries are also documented in `packages/config/src/catalog.ts` so the env-d
## References
- Improvement plan: [`docs/improvement-plan/05-business-features/realtime-collab.md`](../improvement-plan/05-business-features/realtime-collab.md)
- Hocuspocus docs: https://tiptap.dev/docs/hocuspocus
- Y.js docs: https://docs.yjs.dev/