PriceGhost/backend
clucraft 4c302a7e51 Add AI stock status verification for variant products
When anchor price matches (user previously selected a specific variant),
we now call AI specifically to verify stock status for that price point.

- Add STOCK_STATUS_PROMPT focused on variant availability
- Add AIStockStatusResult interface
- Add verifyStockStatusWith{Anthropic,OpenAI,Ollama} functions
- Add tryAIStockStatusVerification export function
- Call stock verification when anchor price matches in scraper

The prompt instructs AI to only check stock for the specific variant at
the user's selected price, ignoring other variants that may be out of
stock. This fixes false "out of stock" reports on variant product pages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 23:04:20 -05:00
..
src Add AI stock status verification for variant products 2026-01-24 23:04:20 -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