Add lib/api/routes/refs.js: list with space_id/kind filters and paginated, create, get/patch/delete by id, and /upsert that maps to repo.upsertByExternal for idempotent capture-source ingest. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add lib/api/routes/refs.js: list with space_id/kind filters and paginated, create, get/patch/delete by id, and /upsert that maps to repo.upsertByExternal for idempotent capture-source ingest. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>