C Expand Batch 1: workspace registry CRUD + auth bootstrap#42
Merged
Conversation
Ships daemon workspace endpoints, founder-ratified GET /auth/session Bearer bootstrap with strict loopback Origin/Host, cocoder oz register CLI, and Zod HTTP schemas so the dashboard can share one contract source. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /auth/sessionreturns{ csrfToken, bearerToken }with strict loopback Host required and Origin absent or loopback-only; 9 bootstrap regression tests.GET/POST/PUT/DELETE /workspaces(+GET /workspaces/:id) with Zod schemas inpackages/schemas/src/oz/workspace-http.ts.cocoder oz register --id ID --workspace-root PATH(upsert semantics; tokenized paths viatokenizePath).Test plan
pnpm -r test— 322/322 (+20 from 302 baseline)oz-security-auth-bootstrap.test.mjs(C-D1)oz-workspaces-crud.test.mjs(registry CRUD + CLI register)cli-help-baseline.txtregenerated foroz registerNotes
docs/oz-security-checklist.md(Batch 4).Made with Cursor