Skip to content

feat(server): REST CRUD for workspaces, sessions, terminals and invitations - #16

Merged
facyndev merged 7 commits into
developfrom
feature/api-rest-crud
Oct 18, 2026
Merged

facyndev merged 7 commits into
developfrom
feature/api-rest-crud

Conversation

@facyndev

@facyndev facyndev commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Draft / do-not-merge until the three slice PRs are reviewed. This is the tracker/final integration PR of the api-rest-crud chain: authenticated REST CRUD for workspaces, sessions, terminals and invitations (S1–S15 in odd/tasks/api-rest-crud.md), giving the desktop dual-storage mode (next feature) a cloud surface to call.

  • Workspaces: create (caller becomes owner), owner-or-member listing with member counts, detail (S1–S3)
  • Sessions: owner-only create, listing with terminals in position order, guest-viewable detail (S4–S6)
  • Terminals: owner-only add/remove; env never accepted nor persisted (S7–S8)
  • Invitations: member/guest invites, pending listing, accept/decline with transactional accept and ghost-invitee 404 (S9–S13)
  • All routes behind AccessGuard (401 without token), strict zod bodies, domain errors mapped to HTTP (S14–S15)

Slices — review here, in order

Slice PR Contents
1 #13 Workspaces endpoints + listForUser + CollabModule scaffolding (T1)
2 #14 Sessions + terminals endpoints, access classification (T2+T3)
3 #15 Invitations lifecycle + AppModule wiring (T4+T5)

Merging this tracker PR lands the whole feature on develop at once (feature-branch-chain strategy, decided in the feature doc L8): nothing lands until the chain completes.

Test evidence (full branch)

  • Unit: 166/166 · Integration: 153/153 · Typecheck: exit 0 · Build: exit 0 · gitleaks clean
  • RDD: commit 2e3e113 reviewed tier high → approved (0 blockers); remaining range assessed medium, under budget (pending-in-slice, no further review due).

Chain Context

Field Value
Chain api-rest-crud
Tracker PR � This PR
Position Final integration (after #13 → #14 → #15)
Base develop
Depends on #13, #14, #15 (reviewed as focused slices)
Follow-up Desktop dual storage mode (separate feature branch)
Review budget 2272 / 400 — full-feature integration view; the reviewable budget is spent in the slice PRs above
Starts at develop (6a45795)
Ends with REST CRUD surface live on the API

Chain Overview

develop
  └── #13 workspaces (T1)
       └── #14 sessions + terminals (T2+T3)
            └── #15 invitations + wiring (T4+T5)
                 └── � #<this> tracker: feature/api-rest-crud → develop (full feature)

Autonomy

New CollabModule with WorkspacesController: POST /workspaces, GET /workspaces, GET /workspaces/:id. Adds WorkspaceRepository.listForUser and UserRepository.findByIds; AuthModule now exports AuthService and AccessGuard for reuse by future collab controllers. Specs S1-S3/S14 in odd/tasks/api-rest-crud.md.
@facyndev
facyndev marked this pull request as ready for review October 18, 2026 23:26
@facyndev
facyndev merged commit 0dd8d1c into develop Oct 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant