Commit Graph

7 Commits

Author SHA1 Message Date
Motoko
bbbe42358d Phase 2: Add reasoning and TipTap content endpoints
- Extend Document model with reasoning_type, confidence, reasoning_steps, model_source, tiptap_content fields
- Add new endpoints:
  - GET /documents/{id}/reasoning - Get reasoning metadata
  - PATCH /documents/{id}/reasoning - Update reasoning metadata
  - GET /documents/{id}/reasoning-panel - Get reasoning panel data for UI
  - POST /documents/{id}/reasoning-steps - Add reasoning step
  - DELETE /documents/{id}/reasoning-steps/{step} - Delete reasoning step
  - GET /documents/{id}/content?format=tiptap|markdown - Get content in TipTap or Markdown
  - PUT /documents/{id}/content - Update content (supports both TipTap JSON and Markdown)
- Add TipTap to Markdown conversion
- Update database schema with new columns
- Add comprehensive tests for all new endpoints
- All 37 tests passing
2026-03-30 23:11:44 +00:00
Motoko
695ea482d5 Add detailed logging for admin credentials from env vars 2026-03-30 19:48:13 +00:00
Motoko
2884ba2e55 Fix: Make INITIAL_ADMIN_USERNAME and INITIAL_ADMIN_PASSWORD required env vars with validation 2026-03-30 17:47:49 +00:00
Motoko
c2b673fdd3 Fix: Check for any existing user, not just admin role 2026-03-30 16:45:13 +00:00
Motoko
6c7617f1b5 Fix: Create initial admin user from environment variables on startup 2026-03-30 16:38:43 +00:00
Motoko
caea6c58d9 Fix: Use absolute path /app/data for SQLite in Docker 2026-03-30 15:49:22 +00:00
Motoko
7f3e8a8f53 Phase 1 MVP - Complete implementation
- Auth: register, login, JWT with refresh tokens, blocklist
- Projects/Folders/Documents CRUD with soft deletes
- Tags CRUD and assignment
- FTS5 search with highlights and tag filtering
- ADR-001, ADR-002, ADR-003 compliant
- Security fixes applied (JWT_SECRET_KEY, exception handler, cookie secure)
- 25 tests passing
2026-03-30 15:17:27 +00:00