19 Commits
Author SHA1 Message Date
didier b96e1e19df ddd 2026-10-01 13:59:36 -04:00
didier d72ef520cd sdds 2026-09-17 09:37:59 -04:00
didier 4dc42d91c2 feat: added first class citizen tags 2026-09-16 07:14:31 -04:00
didier 57bcd549d1 fead: no idea 2026-07-03 13:59:06 -04:00
didier a65d39cea0 prepared last tool 2026-06-16 13:39:41 -04:00
didier 56da3bae61 feat: deepseek is insanly good 2026-06-16 13:02:13 -04:00
didier be9d6b610f feat: added auth and crazy more things 2026-06-16 12:55:56 -04:00
didier de6480ba4e feat: started to make things work 2026-06-07 12:30:08 -04:00
didier 9e21732d00 feat: add Mithril frontend for flashcard visualization (nes.css) 2026-06-05 17:13:58 -04:00
didier a40542f7b4 feat: add vote_flashcard MCP tool 2026-06-05 17:04:05 -04:00
didier cd8e872491 feat: add REST API for flashcards (/api/v1/flashcards/*) 2026-06-05 16:53:18 -04:00
didier ffdc023065 refactor: SearchEngine interface, remove nilable qdrantStore 2026-06-05 16:02:31 -04:00
didier 98aa7dd68c feat: added fts5 backend 2026-06-05 15:51:41 -04:00
didier e700a81c25 Add versioning, update tool, and soft-delete
Schema: public_id + version columns with UNIQUE constraint,
delete_timestamp for soft-delete.

Tools: store_flashcard accepts optional public_id, update_flashcard
creates a new version preserving history, delete_flashcard inserts
a tombstone row and removes the Qdrant point.

Qdrant: point ID is public_id (only latest version indexed).
2026-06-03 20:15:18 -04:00
didier 726ab62c62 Remove content fallback, fix README tool docs
- Drop the content alias from store_knowledge handler
- Fix error message to say 'note' only
- Correct README store_knowledge params to match actual API
- Fix EMBEDDING_BASE_URL default (no /v1 suffix)
2026-06-03 19:35:57 -04:00
didier 338d4cb34e Add /version endpoint with build metadata
- /version returns JSON with build_date and git_commit from env vars
- NixOS module injects GIT_COMMIT (first 8 chars of self.rev)
  and BUILD_DATE (self.lastModified) into systemd service environment
2026-06-03 19:33:52 -04:00
didier 3546e19772 Serve MCP at /mcp, keep /health at root
- Route MCP streamable handler to /mcp via http.ServeMux
- Move /health to a dedicated mux route (no auth required)
- Simplify authMiddleware by removing /health special case
- Apply CORS middleware at the mux level
- Ignore nix build result symlink
2026-06-03 19:29:46 -04:00
didier 39c6185b70 feat: sqlite persistence with goose migrations, flashcard schema, zap logger
- Add SQLite as authoritative store alongside Qdrant (best-effort indexing)
- Use goose for embedded SQL migrations
- Schema matches flashcard format: id(INTEGER PK), note, repos, host, tags, user, context, created
- Replace std log with zap structured logger
- Split registerTools into registerStoreKnowledge + registerSearchKnowledge
- Qdrant index uses SQLite rowid directly as point ID (no SHA256 hash)
- Search enriches Qdrant results from SQLite by ID
- Lowercase auth header before prefix check
- Always handle json.MarshalIndent errors
- NixOS: StateDirectory, sqlitePath to /var/lib/st-pierre/st-pierre.sqlite
2026-06-02 10:01:28 -04:00
didier 2ffae91aa7 first commit 2026-05-31 12:35:40 -04:00