Commit Graph
6 Commits
Author SHA1 Message Date
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