This repository includes drop-in Phase 3 runtime files that can replace the legacy runtime entry points.
server.phase3.ts->server.tsapp/auth/register-v2/page.tsx->app/auth/register/page.tsxapp/chat-v2/page.tsx->app/chat/page.tsxprisma/schema.phase3.prisma->prisma/schema.prisma
Run:
./adopt-phase3-runtime.shThis copies the Phase 3 files onto the primary paths and keeps .phase3-backup copies of the previous files.
- Review the resulting diff
- Apply the Prisma migration or run the phase 3 schema patch
- Regenerate Prisma client
- Restart the app with the phase 3 runtime path
- Validate:
- v2 registration
- direct-message live decrypt metadata
- secure attachment upload/download
- group claim remains
not E2EE yet
The GitHub connector used for this migration work was able to add the drop-in files reliably, but direct overwrite of certain existing large files was inconsistent. This switchover script makes the final replacement deterministic for maintainers.