githubnext/chopinPublic

Let's compose rich plans together

Persist encrypted hosted sessions across server restarts

KCKrzysztof Cieslak authored committed by Krzysztof Cieślak
910abdaPatch
Parent9ed4bbf
27 files changed+789-108
StackedSplit
.env.example+3 −2
AGENTS.md+5 −4
README.md+6 −5
apps/server/src/auth/routes.test.ts+46 −1
apps/server/src/auth/routes.ts+14 −3
apps/server/src/auth/session-persistence.test.ts+234 −0
apps/server/src/auth/session.ts+130 −7
apps/server/src/main.ts+1 −1
apps/server/src/storage/contract.ts+76 −3
apps/server/src/storage/memory/adapter.ts+31 −8
apps/server/src/storage/model.ts+10 −2
apps/server/src/storage/port.ts+6 −3
apps/server/src/storage/postgres/adapter.test.ts+5 −1
apps/server/src/storage/postgres/adapter.ts+44 −9
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/016_persistent_sessions.sql+12 −0
apps/server/src/storage/postgres/startup.test.ts+18 −4
docs/architecture.md+8 −6
docs/authentication.md+50 −22
docs/channels.md+1 −1
docs/hosted-agent.md+7 −6
docs/preview-testing.md+5 −3
docs/self-hosting.md+1 −1
docs/storage.md+9 −5
e2e/auth-lifecycle.e2e.ts+60 −7
e2e/github.ts+1 −1
e2e/playwright.config.ts+3 −3