Schema:
- Cut projects table to {organizationId, name, description, createdAt, updatedAt}
- Add projectSources table with git source metadata and normalized URL index
- Add projectContextDocuments table with six canonical kinds, origin, revision
- Add by_organizationId index for project enumeration
- Remove all GitHub-specific fields (ownerId, provider, repoOwner, etc.)
Backend:
- Add requireCurrentOrganization and requireProjectMember authz helpers
- Migrate signals.ts authorizeProject to organizationId invariant check
- Update artifactModel: 8 operational artifacts (removed project/business/design.md)
- Add projectStore.ts with query/mutation/action store adapters
- Rewrite projects.ts to thin generic application calls
- Update projectIssues/projectArtifacts to use requireProjectMember
- Update projectEvents.test.ts and signals.test.ts for new project creation
All 33 backend tests pass.
32 lines
829 B
JSON
32 lines
829 B
JSON
{
|
|
"name": "@code/backend",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"license": "ISC",
|
|
"author": "",
|
|
"scripts": {
|
|
"dev": "convex dev --env-file ../../.env",
|
|
"dev:setup": "convex dev --env-file ../../.env --configure --until-success",
|
|
"check-types": "tsc --noEmit -p convex/tsconfig.json",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@better-auth/expo": "catalog:",
|
|
"@code/env": "workspace:*",
|
|
"@code/primitives": "workspace:*",
|
|
"@convex-dev/better-auth": "catalog:",
|
|
"better-auth": "catalog:",
|
|
"convex": "catalog:",
|
|
"effect": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@code/config": "workspace:*",
|
|
"@types/node": "^24.3.0",
|
|
"typescript": "catalog:",
|
|
"convex-test": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|