New internal plugin: weekly LLM probes of core peptides (Perplexity sonar + GPT/Gemini-search via OpenRouter/CF gateway) -> custom table -> wp-admin trendline + standings. Provider interface + cost ledger w/ hard $5/mo cap + collector/panel seam (AI-visibility only). v1 = AI-visibility only. QA: APPROVE-WITH-P2-NOTES — qa-reviews/peptide-geo-monitor/2026-06-13-f488f4a966cbb9e771d3abc20daee3fa49074520.md (P2 follow-ups: ltrim www display bug, PHPCS mandatory, dead cache) Agent-Session: geomonitor v0.1.0 merge
2.4 KiB
2.4 KiB
Changelog — Peptide GEO Monitor
All notable changes to this project will be documented in this file.
Format: Keep a Changelog Versioning: Semantic Versioning
[0.1.0] — 2026-06-13
Initial release — AI-visibility dashboard.
Added
PGM_Probe_Providerinterface +PGM_Probe_Resultvalue object.PGM_Perplexity_Provider: Perplexitysonarvia OpenRouter/Cloudflare AI Gateway; parsescitations[]array.PGM_OpenRouter_Provider: generic parameterised provider for GPT-search and Gemini-search models; parses annotations + inline URL regex fallback.PGM_Gateway_Client: shared CF AI Gateway HTTP client with exponential-backoff retry and cURL auth injection (mirrors PRAutoBlogger pattern).PGM_Citation_Detector: domain extraction from citation arrays/URLs,is_cited(),get_our_position().PGM_Cost_Ledger: month-to-date spend from DB,can_afford()pre-check,update_row_cost()settlement.PGM_Probe_Runner: full peptides × intents × models run with budget cap abort, in-run cache, and partial-run persistence.PGM_Table_Manager:{prefix}pgm_ai_visibilityviadbDelta, schema-version option,drop_table()for uninstall.PGM_Config: typed getters +seed_defaults()with ~12 peptides, 3 intents, 3 models.PGM_Cron: weeklypgm_weekly_probeWP-Cron;schedule_weekly()/clear_schedule().PGM_Data_Collector+PGM_Dashboard_Panelinterfaces (collector/panel seam).PGM_Collector_Registry: singleton registry for future extensibility.PGM_Ai_Visibility_Collector: trendline (per-run visibility score), standings (per-peptide latest), MTD cost.PGM_Ai_Visibility_Panel: proxy-metric note, Chart.js trendline, per-peptide standings table, MTD cost bar, "Run now" button.PGM_Admin_Page: "GEO Monitor" top-level menu, Chart.js enqueue, Run now POST handler (nonce +manage_options).uninstall.php: DROP TABLE + DELETEpgm_*options +wp_clear_scheduled_hook.- Unit tests: citation detection, score formula, cost ledger + budget cap abort, provider response parsing (mock HTTP), cron registration, uninstall purge.
ARCHITECTURE.md,CONVENTIONS.md,CONTEXT.md(incl. visibility score formula),README.md.- CI: PHP lint (8.1/8.2/8.3) + PHPCS + 300-line check (mirrors
peptide-repo-core). - Seed config: 12 peptides, 3 prompt intents, Perplexity sonar + GPT-4o-search + Gemini-2.0-Flash.