PriceGhost/backend
clucraft 3a3291a779 Fix Amazon multi-price extraction and prevent AI override
Amazon products can have multiple prices:
- Main buy box price
- "Other Sellers" prices
- Subscribe & Save prices
- New & Used prices

The scraper now extracts ALL prices, not just the main one. This allows
anchor price matching to find the specific price the user selected.

Also fixed AI verification overriding user's anchor price selection.
When user deliberately chose a price (e.g., "other sellers" at $52.91),
don't let AI "correct" it to the main buy box price ($79.99).

Changes:
- Amazon scraper now collects all price variants
- extractSiteSpecificCandidates handles allPrices array
- Anchor matching now always returns (no fall-through to AI override)
- Increased anchor tolerance from 10% to 15% for small sales
- Added debug logging showing all candidate prices

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 19:15:32 -05:00
..
src Fix Amazon multi-price extraction and prevent AI override 2026-01-24 19:15:32 -05:00
.dockerignore Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
.env.example Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
Dockerfile Add Puppeteer fallback for Cloudflare-protected sites 2026-01-21 20:55:49 -05:00
package-lock.json Fix stock status false positives for in-stock items 2026-01-23 13:56:26 -05:00
package.json Fix stock status false positives for in-stock items 2026-01-23 13:56:26 -05:00
tsconfig.json Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00