GGR AI PUBLIC / WORDPRESS.ORG PATCH
====================================

This is NOT a complete plugin ZIP.
It contains ONLY files changed for the GGR AI Writer/public WordPress.org build.

BACKUP FIRST
------------
Back up your current GGR plugin before overwriting files.

OVERWRITE
---------
Copy the files from this patch into the root of your existing plugin folder,
keeping the directory structure exactly as shown.

Changed/new files:
- ggr-website-audit.php
- readme.txt
- includes/modules/ai-writer/class-ai-writer.php
- includes/modules/ai-writer/class-ggrwa-ai-generator.php
- includes/modules/ai-writer/class-ggrwa-ai-usage.php (NEW)
- includes/modules/ai-writer/class-ggrwa-ai-features.php (NEW)
- includes/modules/ai-writer/view-ai-writer.php
- includes/modules/ai-writer/assets/js/ai-writer.js
- includes/modules/ai-writer/assets/css/ai-writer.css
- includes/modules/settings/class-settings.php

DO NOT delete or replace other plugin files.

BEHAVIOR
--------
FREE basic AI remains usable without a lifetime 1/4-use quota.
Users can create a draft Post or Page and improve an existing Post/Page one
item at a time, subject to their normal WordPress edit capabilities.

Keyword Intelligence's previous AI endpoint has been removed from the public
plugin build. The UI now presents it as an Advanced GGR AI / Premium teaser.
The proprietary Premium implementation is not bundled in this public build.

A short server-side cooldown is used only for burst/abuse protection; it is
not a trial or lifetime quota.

GEMINI API KEY
--------------
Configure it under GGR Website Audit -> Settings -> AI Settings.
The key is stored server-side. Leave the field blank when saving settings if
you want to keep the existing key.

VALIDATION
----------
PHP syntax and JavaScript syntax were checked for this patch. Official
WordPress Plugin Check (PCP) must still be run inside a real WordPress site
before submission; PCP includes runtime/static checks and does not replace
manual WordPress.org review.
