AGENTS.md | 4 +- apps/server/src/auth/EnvironmentAuth.test.ts | 218 +++++++++++++++++++++++++++++++- apps/server/src/auth/EnvironmentAuth.ts | 109 ++++++++++++++-- apps/server/src/auth/ReusableDevAuth.ts | 31 +++++ apps/server/src/auth/SessionStore.test.ts | 153 +++++++++++++++++++++- apps/server/src/auth/SessionStore.ts | 71 ++++++++++- apps/server/src/auth/http.test.ts | 137 ++++++++++++++++++++ apps/server/src/auth/http.ts | 25 +++- apps/server/src/cli/config.test.ts | 89 +++++++++++++ apps/server/src/cli/config.ts | 24 ++++ apps/server/src/config.ts | 2 + apps/server/src/persistence/AuthSessions.ts | 29 ++++- apps/web/src/authBootstrap.test.ts | 139 ++++++++++++++++++++ apps/web/src/environments/primary/auth.ts | 33 +++-- docs/internals/environment-auth.md | 19 +++ docs/operations/development.md | 43 ++++++- packages/client-runtime/src/rpc/session.test.ts | 31 +++++ packages/client-runtime/src/rpc/session.ts | 40 ++++-- scripts/dev-runner.test.ts | 21 +++ scripts/dev-runner.ts | 1 + 20 files changed, 1177 insertions(+), 42 deletions(-)