v2.6.4: Remove SQLite study mirror; fix find_eligible recruiting filter
Remove SQLite study mirror; fix find_eligible recruiting filter
Removes the opt-in local SQLite study mirror (CT_MIRROR_*). The FTS5 index
cannot reproduce ClinicalTrials.gov's server-side field-scoped search — condition
counts diverged 4–5× from live (#68), fields selection was silently dropped
and pagination was broken (#66), and the metadata-only schema could not return
resultsSection at all (#65). Search, count, and record lookups now always use
the live API.
Removed:
- Local SQLite mirror: src/services/clinical-trials/mirror/, mirror routing in
clinical-trials-service.ts, initMirror + refresh scheduler in index.ts,
CT_MIRROR_* config, mirror entries in manifest.json and server.json.
Resolves #65, #66, #68, #69.
Fixed:
- clinicaltrials_find_eligible: recruitingOnly=true now filters to RECRUITING
only — NOT_YET_RECRUITING studies are excluded. Resolves #67.
Dependency bumps:
- @cloudflare/workers-types 4.20260602.1 -> 4.20260605.1 (dev)
496 tests pass; bun run devcheck clean.