Commit Graph

9 Commits

Author SHA1 Message Date
peptiderepo
1e477cfd86 PHPCS: fix gateway-client PHP syntax error + admin-page alignment ignore 2026-06-13 09:59:45 +00:00
peptiderepo
8a38949cee PHPCS: fix remaining alignment warnings + multi-line SQL disable/enable blocks 2026-06-13 09:57:42 +00:00
peptiderepo
dfaee0bca6 PHPCS: use disable/enable blocks for multi-line SQL interpolation
phpcs:ignore only suppresses the immediately following line; the SQL
queries span multiple lines so the InterpolatedNotPrepared violation
fires on the string continuation lines. Replaced with phpcs:disable/
enable pairs that wrap the full get_results/get_var call. Applies to
all three DB queries in class-prv-ai-visibility-collector.php.

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:50:41 +00:00
peptiderepo
f344b73c16 PHPCS: fix remaining violations (EscapeOutput, InterpolatedNotPrepared, missing @param)
- Collapse multi-line RuntimeException throws to single line so
  phpcs:ignore EscapeOutput.ExceptionNotEscaped applies correctly
  (gateway-client, perplexity-provider, openrouter-provider)
- Move phpcs:ignore InterpolatedNotPrepared from SQL string line to
  the get_results/get_var line where the violation fires (collector)
- Add descriptions to @param trendline and @param standings in panel
- Remove duplicate phpcs:ignore comment in collector

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:48:53 +00:00
peptiderepo
7d254019c6 PHPCS: fix file docblock format (short description + blank line after)
File-level docblocks lacked a short description and required blank line
between the block and declare(strict_types=1). WP PHPCS file comment
sniff requires both. All 21 PHP files corrected.

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:46:19 +00:00
peptiderepo
68ae5b9b1a PHPCS compliance: fix pre-existing violations exposed by gating the lint step
All violations were present in v0.1.0 and hidden by continue-on-error.
Now that PHPCS gates the build (P2-B), they must be fixed.

- Add file-level @package doc comment to all PHP files (file doc requirement)
- Add short descriptions to @var and constructor docblocks throughout
- Fix @param type spacing throughout (PHPCS alignment rules)
- Expand phpcs:ignore lines to include NoCaching where DirectQuery is already
  suppressed (uninstall.php, cost-ledger, table-manager, collector)
- Suppress EscapeOutput.ExceptionNotEscaped on RuntimeException messages
  (exception strings are not HTML output)
- Suppress error_log_error_log on the probe-runner failure log
- Replace date() with gmdate() in panel (timezone-aware per WP standard)
- Convert inline associative arrays to multi-line in config (WP array style)
- Fix double-arrow alignment in probe-runner counts and insert arrays
- Fix double-space before ?? in provider constructors
- Expand phpcs:ignore for  reads to include MissingUnslash
- Fix $counts++ to ++$counts (prefix increment per WP standard)
- Fix V1/v1 capitalisation in interface doc long description

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:42:55 +00:00
peptiderepo
60ae52663c PR Vision v0.1.1: rename from peptide-geo-monitor + P2 fixes
- Exhaustive rename: PGM_ -> PRV_, pgm_ -> prv_, text domain and
  slug peptide-geo-monitor -> pr-vision, admin menu GEO Monitor ->
  PR Vision, main file peptide-geo-monitor.php -> pr-vision.php,
  DB table pgm_ai_visibility -> prv_ai_visibility.
- P2-A: replace ltrim($host,'www.') character-mask with
  str_starts_with/substr prefix strip in PRV_Citation_Detector.
  Adds test coverage for wikipedia.org, webmd.com survival.
- P2-B: drop continue-on-error: true from PHPCS CI step;
  WordPress Coding Standards now gates the build.
- P2-C: remove dead in-run cache from PRV_Probe_Runner::run();
  each (peptide, intent, model) triplet is visited once per run,
  cache hit is structurally impossible.
- Version bump 0.1.0 -> 0.1.1 + CHANGELOG [0.1.1] entry.

Agent-Session: pr-vision rename v0.1.1
2026-06-13 09:32:56 +00:00
peptiderepo
46fda89e18 peptide-geo-monitor v0.1.0: internal AI-visibility dashboard (#1)
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
2026-06-13 15:34:33 +07:00
peptiderepo
ba58ead521 Initial commit 2026-06-13 15:02:36 +07:00