Commit 1b9a330
committed
feat: add multi-repo workspace support
Allow a task to have multiple workspaces, one per repository. This enables
cross-repo work (e.g., posthog + posthog-js + posthog.com) in a single
conversation.
Changes:
- DB migration: drop UNIQUE on workspaces.taskId, add label column, add index
- WorkspaceRepository: add findAllByTaskId for multi-workspace queries
- WorkspaceService: createWorkspace accepts additionalRepos, returns array
- Workspace schemas: add label field, RepoWorkspaceConfig, array outputs
- Task type: add repositories[] alongside deprecated repository field
- Sidebar: add additionalRepositories to TaskData for multi-repo badge
- useWorkspace hook: backward-compatible single-workspace access + new
useTaskWorkspaces/useAllWorkspaces for multi-repo consumers
- Archive/suspension services: handle multi-workspace per task
- Fix downstream consumers (code editor, DraggableTab) for array workspace API
Generated-By: PostHog Code
Task-Id: 230ec8e6-6781-43b4-ae30-ea24faa410dc1 parent ea2b062 commit 1b9a330
17 files changed
Lines changed: 1050 additions & 247 deletions
File tree
- apps/code/src
- main
- db
- migrations
- meta
- repositories
- services
- archive
- suspension
- workspace
- renderer
- features
- code-editor/hooks
- panels/components
- sidebar/hooks
- workspace/hooks
- sagas/task
- utils
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments