Architecture
Shared package
Prisma, KMS, model router, sandbox abstraction.
This page is a stub. Content is being written.
Will cover
- Prisma schema layout.
TenantScopedDbwrapper and why direct Prisma is forbidden in tenant-scoped paths.- KMS envelope encryption (
packages/shared/src/lib/crypto/envelope.ts) withtenantIdas AAD. - Model router (
router.ts) — Anthropic vs OpenRouter selection rules. - Sandbox provider interface (Daytona vs local).
.sinatrarcparser and schema.