~bigbes/lethe

ref: f0f651bfc74681988f56bd610074e1dce6dbee1c lethe/internal d---------
2d9d2b8e — Eugene Blikh 23 days ago
search: add /api/v1/search API and opencode collector parser

- Add FTS5 search repository with BM25 ranking, cursor pagination, and owner scoping
- Expose GET /api/v1/search with query, tool, host, since/until filters
- Add opencode collector parser reading from SQLite opencode.db
- Spike document recording canonical opencode storage format

Invariants: no schema migrations, no wire type changes, read-only search,
marker snippets (not HTML), invalid queries → 400 INVALID, parser interface
unchanged, collector state schema preserved, stats/react stubs untouched.

Reviewed: offset fix (message.rowid instead of time_created for progress marker),
all 22 test packages pass.
57c0d491 — Eugene Blikh 24 days ago
collector: persist skipped-only parser progress
9094d79e — Eugene Blikh 24 days ago
collector: enforce outbox cap before replay
f1673181 — Eugene Blikh 24 days ago
collector: fix daemon drain and backfill start
f3118d95 — Eugene Blikh 24 days ago
collector: preserve valid rows around ingest errors
538e632d — Eugene Blikh 24 days ago
collector: skip rejected rows after partial ingest
27c47142 — Eugene Blikh 24 days ago
collector: add polling source runner
ef738a28 — Eugene Blikh 24 days ago
collector: align ingest sender with server response
ad5ee652 — Eugene Blikh 24 days ago
collector: add ingest sender and outbox replay
d7eb706c — Eugene Blikh 24 days ago
collector: add config and state store
a1e67ca7 — Eugene Blikh 24 days ago
collector: add Claude Code parser
e920ae88 — Eugene Blikh a month ago
web: prune lethe_auth_failures log to the 5-min window on insert
be6e43e7 — Eugene Blikh a month ago
oidcstub: percent-encode authorize redirect query params (PC1)
f1926dc4 — Eugene Blikh a month ago
server/web: fail loud when index.html lacks </head> for config injection
13113b8c — Eugene Blikh a month ago
web: AuthGate consolidates three "not authenticated" cards

Create AuthGate component as the single source of truth for the
unauthenticated UI. Cold renders show a manual sign-in button (IV7);
mid-session expiry auto-redirects via useEffect (IV7); auth_error shows
the distinct error card with a "Try again" button and never auto-retries
(IV6). Swap the inline AuthError cards at index, projects, and
SavedSearchesSection call sites.
f2376137 — Eugene Blikh a month ago
web: /login + /auth/callback routes + auth context + config reader

- web/src/lib/config.ts: readConfig() reads window.__LETHE_CONFIG__ (IF1),
  converts client_id -> clientId, throws on absent config (GPC6)
- web/src/lib/authContext.tsx: AuthProvider subscribes to tokenStore, parses
  ID token name claim, exposes signIn/signOut/reportAuthError via context;
  hasBeenAuthenticated flag supports IV7 cold-vs-session distinction
- web/src/routes/login.tsx: /login route calls signIn(return_to) on mount
- web/src/routes/auth.callback.tsx: validates state+TTL, exchanges code via
  raw fetch to OP /token (allowed exception), stores access_token via
  tokenStore.set, anti-loop guard using countCallbackFailures (IV6)
- web/src/routes/__root.tsx: wraps tree in AuthProvider above
  KeyboardCursorContext
- web/src/routeTree.gen.ts: regenerated by Vite with /login and /auth/callback
- internal/server/web/dist/index.html: rebuilt artifact with new asset hashes
5d910e82 — Eugene Blikh a month ago
server/web: tag Config fields for snake_case JSON output (IF1 contract)
934cfa28 — Eugene Blikh a month ago
oidcstub: implement /authorize + /token auth-code+PKCE; inject window.__LETHE_CONFIG__ into SPA
8d80e871 — Eugene Blikh a month ago
savedsearch: reject ?owner= on DELETE; cover all write paths in test (IV2)
6971b2d0 — Eugene Blikh a month ago
web: palette — gate prefetch with enabled+staleTime per plan 4.2
Next