Commit Graph
9 Commits
Author SHA1 Message Date
Motoko b4440ffe8f feat: Build and push Docker images to Gitea registry
CI / test (push) Failing after 1m33s
CI / build (push) Has been skipped
2026-03-31 04:54:44 +00:00
Motoko 399b5121be feat: Add Gitea Actions CI workflow
CI / test (push) Failing after 4s
CI / build (push) Has been skipped
2026-03-31 04:51:25 +00:00
Motoko ae2409ef46 fix: API token project ownership check
- API tokens now verify project belongs to token owner before access
- Researcher tokens only access research/general docs in owner's projects
- Developer tokens only access development/general docs in owner's projects
- Viewer tokens have read-only access to all doc types in owner's projects
- Add test for cross-user project access prevention
2026-03-31 01:56:26 +00:00
Motoko 204badb964 feat: Add role-based API tokens for Claudia Docs
- Add api_tokens table with role-based access (researcher, developer, viewer)
- Add POST /auth/token/generate endpoint for creating tokens
- Add GET /auth/tokens endpoint for listing user's tokens
- Add DELETE /auth/tokens/{token_id} endpoint for revoking tokens
- Add agent_type field to documents (research, development, general)
- Implement role-based access control for documents:
  - researcher: access to research and general documents
  - developer: access to development and general documents
  - viewer: read-only access
- Update document model and schemas with agent_type field
- Add comprehensive tests for API token functionality
- All existing tests pass (73 total)
2026-03-31 01:46:51 +00:00
Motoko 5beac2d673 docs: Add environment variables configuration to README 2026-03-31 01:05:04 +00:00
Motoko d15c823da2 feat: disable user registration via DISABLE_REGISTRATION env var
- Add DISABLE_REGISTRATION setting (default False) in app/config.py
- Return 403 when registration is disabled in POST /auth/register
- Add test_register_disabled test
2026-03-31 00:39:28 +00:00
Motoko 02292523ff feat: add PATCH /projects/{id} for partial updates
- Added PATCH endpoint for projects (supports name and/or description)
- Added test_patch_project test case
- Verify folder_id already supported in POST /api/v1/projects/{project_id}/documents
2026-03-31 00:16:27 +00:00
Motoko d3a2194c86 migration: add Phase 3 columns (outgoing_links, backlinks_count) 2026-03-31 00:04:59 +00:00
Motoko 07f9ac91fc Phase 3: Graph view, backlinks, quick switcher, export
- Add outgoing_links (JSON) and backlinks_count to Document model
- POST /documents/{id}/detect-links — detect [[uuid]] patterns in content
- GET /documents/{id}/backlinks — documents referencing this doc
- GET /documents/{id}/outgoing-links — documents this doc references
- GET /documents/{id}/links — combined incoming + outgoing
- GET /projects/{id}/graph — full project relationship graph
- GET /search/quick — fuzzy search (Quick Switcher Cmd+K)
- GET /projects/{id}/documents/search — project-scoped search
- GET /documents/{id}/export — markdown|json export
- GET /projects/{id}/export — json|zip export
- 27 new tests
2026-03-30 23:46:45 +00:00