feat(29-04): create backfill script for dominant colors

One-time migration script processes items, globalItems, and
threadCandidates to extract dominant colors via Sharp. Idempotent,
batched (10 concurrent), with progress logging.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 20:09:17 +02:00
parent 9817a80f32
commit 6509b33501
2 changed files with 258 additions and 1 deletions

View File

@@ -14,7 +14,8 @@
"test:e2e": "bunx playwright test",
"test:e2e:ui": "bunx playwright test --ui",
"lint": "bunx @biomejs/biome check .",
"db:seed:dev": "bun run src/db/dev-seed.ts"
"db:seed:dev": "bun run src/db/dev-seed.ts",
"backfill:colors": "bun run scripts/backfill-dominant-colors.ts"
},
"devDependencies": {
"@biomejs/biome": "^2.4.7",