=== AutoRepair AI ===
Contributors: tetsu0321, freemius
Tags: site health, rollback, diagnostics, recovery, maintenance
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 7.1

Stable tag: 0.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Diagnose common WordPress failures, apply low-risk repairs, and create recoverable plugin updates.

== Description ==

AutoRepair AI is a safety-first WordPress recovery assistant.

The free version includes:

* A ten-point health scan for the front page, REST API, database, HTTPS, disk, filesystem, cron, maintenance mode, plugin updates, and recent fatal-error markers.
* A local explainable expert system that identifies common failure patterns without sending site data to an external AI service.
* Whitelisted repairs for object cache, permalink rules, update cache, the plugin health cron, and stale maintenance locks.
* Restore points before plugin updates when direct filesystem access is available.
* Manual rollback from a restore point.
* Optional automatic rollback only after a confirmed HTTP 5xx response.
* A capped local activity log.
* An optional API key and status endpoint so a separate Agency Suite hub (when available) can read this site's health score. No data is sent anywhere unless you choose to share the key.

The MVP intentionally does not change posts, users, theme settings, plugin settings, or the database schema.

== Installation ==

1. Upload the plugin ZIP through Plugins > Add New > Upload Plugin.
2. Activate AutoRepair AI.
3. Open AutoRepair AI in the WordPress admin menu.
4. Run the first health scan.
5. Create a manual restore point before enabling automatic rollback.

== Frequently Asked Questions ==

= Does the plugin send my site data to an AI provider? =

No. Version 0.1.0 uses a local rule-based expert system and makes only loopback health requests to the site's own Home and REST URLs.

= Will it disable plugins automatically? =

No. The MVP never disables a plugin. Automatic rollback restores only the plugin that was just updated and only after a confirmed front-page HTTP 5xx response.

= Is this a full backup product? =

No. Restore points contain plugin files only. Continue using a separate full-site database and file backup.

= Why was a restore point skipped? =

The plugin may exceed the configured size limit, or the host may require interactive FTP credentials. The update is not blocked when a restore point cannot be created.

= Are there paid upgrades? =

Yes. Agency Starter, Agency, and Agency Pro plans add a multi-site
dashboard that pulls the health score of every connected site into one
screen. Incident email notifications, a REST API with webhooks, monthly
summary reports, and white label branding are not part of these plans
yet and remain in development. Every feature described above in this
free version remains fully functional without any purchase.== Screenshots ==

1. Site health score and AI assessment with suggested safe actions after a scan.

== Changelog ==

= 0.3.1 =
* Agency Starter (10 sites, $19/mo), Agency (50 sites, $49/mo), and Agency Pro (100 sites, $99/mo) plans are now available, adding the multi-site dashboard.
* Incident notifications, monthly reports, REST API webhooks, and white label branding are not included yet and remain in development.

= 0.3.0 =
* Added a free, opt-in API key and status endpoint (Settings screen: "Agency connection") so a future Agency Suite hub can read this site's health score.
* No change to pricing; agency add-ons remain in development and are not yet purchasable.

= 0.2.0 =
* Published pricing for planned agency add-ons (multi-site dashboard, incident email notifications, REST API with webhooks, monthly summary reports, white label branding) — not yet available.
* No change to the free feature set; all free features remain fully functional without any purchase.

= 0.1.0 =
* Initial safety-first MVP.

== Upgrade Notice ==

= 0.3.1 =
Agency Starter, Agency, and Agency Pro plans (multi-site dashboard) are now available for purchase. The free version is unchanged.
= 0.3.0 =
Adds an optional, free API key so a future Agency Suite hub can read this site's status. Nothing changes unless you share the key.
= 0.2.0 =
Agency add-ons are planned but not yet available; the free version is unchanged.
= 0.1.0 =
Initial release.
