Auth (admin)
Token = ADMIN_API_TOKEN. Lista admin: GET /v1/admin/ref/datasets.
Manifest · versões
—
Postgres espelho (stub · fase 4)
Runtime MVP = JSON em app/data/ref/ (manifest + datasets). Tabelas ref_dataset_registry / ref_import_log estão só documentadas — não criadas no ensureSchema().
Comparar disco vs PG (read-only): cd app && npm run ref:sync-status · doc REF_POPULATION.md § Postgres espelho.
README (raw via API)
Rebuild (copy-paste)
Malha IBGE + PNADC offline — ver app/docs/REF_POPULATION.md.
cd app npm run build:ibge-malha -- --fetch # ou, com raw/ já populado: npm run build:ibge-malha
cd app node scripts/build-pnadc-ref.mjs
cd app node --test ref-ibge-malha.test.mjs node --test ref-population.test.mjs
Import CSV municípios (admin)
Formato: ibge,uf,nome,pop — mescla por IBGE e rebuild geo_municipio.json.