feat: workspace backend service slice (#15560)

Backend-only slice of the workspace feature (server routers/services, database models with workspaceId threading, openapi middleware, business/server stubs, const/types). Excludes all UI (features/routes/store/hooks). Deploys dark behind the workspace feature flag.

Includes open-source stub fixes: workspaceCreds router stub, ChargeParams workspaceId, usage.ts null-coalesce, DBMessageItem.workspaceId.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Rdmclin2
2026-06-09 15:54:26 +08:00
committed by GitHub
parent 082481c35d
commit ccb33fa48c
465 changed files with 17609 additions and 3891 deletions
+4
View File
@@ -36,6 +36,10 @@ const alias = {
'@/utils/electron': resolve(__dirname, './src/utils/electron'),
'@/utils/markdownToTxt': resolve(__dirname, './src/utils/markdownToTxt'),
'@/utils/sanitizeFileName': resolve(__dirname, './src/utils/sanitizeFileName'),
// Workspace store lives in the cloud repo; submodule-only tests get a stub
// that reports no active workspace so workspace-aware nav helpers behave
// like plain react-router.
'@/store/workspace': resolve(__dirname, './tests/mocks/storeWorkspace.ts'),
'~test-utils': resolve(__dirname, './tests/utils.tsx'),
'lru_map': resolve(__dirname, './tests/mocks/lru_map'),
};