Closes #300.
What changed#
- A listed Gemini id that no section of the pricing page names now gets
absent: { pricing: 'cleared' }. The poller writes its price null and stops logging pricing_lost.
- An id a section names but the parser refuses (today:
gemini-2.5-flash-image) is unchanged: the stored card is kept and pricing_lost still fires.
- The successor's card is not copied onto the deprecated id.
DOCS_CACHE_VERSION goes to v31, because the cached pricing entry gained the list of named ids.
Checked#
- New unit test in
model-facts.test.ts covers the three cases: priced, not named (cleared), named but refused (kept).
- Ran the new code against the live pricing page and the prod Gemini rows: of 43 priced rows, exactly
gemini-3.5-flash and gemini-3.7-flash would be cleared. That is below the mass-clear bound of 5.
- Typecheck, lint and prettier pass. I did not run a full poll cycle.
After merge#
The two stored cards go null on the first Gemini poll after deploy; the issue's done-when (a poll cycle with no pricing_lost for these ids) needs checking then.
Deploying with
Cloudflare Workers#
The latest updates on your project. Learn more about integrating Git with Workers.
View logs