apps/desktop/src/main.ts | 4 +- apps/server/src/assets/AssetAccess.ts | 12 +- apps/server/src/auth/EnvironmentAuth.test.ts | 27 +- apps/server/src/auth/EnvironmentAuth.ts | 714 ++++++++++++++++++++++---------- apps/server/src/auth/EnvironmentAuthAdmin.test.ts | 6 +- apps/server/src/auth/EnvironmentAuthPolicy.ts | 20 +- apps/server/src/auth/PairingGrantStore.test.ts | 10 +- apps/server/src/auth/PairingGrantStore.ts | 232 +++++++---- apps/server/src/auth/ServerSecretStore.test.ts | 8 +- apps/server/src/auth/ServerSecretStore.ts | 205 ++++++--- apps/server/src/auth/SessionStore.test.ts | 8 +- apps/server/src/auth/SessionStore.ts | 493 +++++++++++++++------- apps/server/src/auth/dpop.test.ts | 16 +- apps/server/src/auth/dpop.ts | 30 +- apps/server/src/auth/http.ts | 78 ++-- apps/server/src/cloud/environmentKeys.test.ts | 8 +- apps/server/src/cloud/environmentKeys.ts | 35 +- apps/server/src/cloud/http.test.ts | 28 +- apps/server/src/cloud/http.ts | 232 +++++------ apps/server/src/http.ts | 10 +- apps/server/src/relay/AgentAwarenessRelay.test.ts | 12 +- apps/server/src/ws.ts | 10 +- 22 files changed, 1434 insertions(+), 764 deletions(-)