house tracker: CLI to add, update, list and remove listings by hand

scripts/house-listing.ts (bun run house add|update|list|remove|restore) upserts
house.listings on (source, source_id) derived from the listing URL or address,
derives city_slug, records price_history, and accepts flags or JSON.
This commit is contained in:
2026-10-24 13:57:31 +00:00
parent 85da5afdfe
commit 6e528da403
5 changed files with 657 additions and 0 deletions

View File

@@ -23,6 +23,9 @@
"db:seed:cod": "bun scripts/seed-cod-catalog.ts",
"cs-prices:ingest": "bun scripts/ingest-cs-prices.ts",
"house:worker": "bun scripts/house-worker.ts",
"house": "bun scripts/house-listing.ts",
"house:add": "bun scripts/house-listing.ts add",
"house:list": "bun scripts/house-listing.ts list",
"auth:role": "bun scripts/set-admin.ts",
"catalog:build": "python3 scripts/build-pokemon-catalog.py",
"catalog:cod": "python3 scripts/build-cod-catalog.py && prettier --write data/call-of-duty.json",