=== AI Website Health by Norseweb ===
Contributors: norseweb
Tags: health, monitoring, seo, woocommerce
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.3.2
License: GPL-2.0-or-later

Connect your WordPress site to the Norseweb AI Operations Center at app.norseweb.no.

== Description ==

AI Website Health connects your WordPress site to your Norseweb dashboard
so you can monitor site health, store metrics, and robot activity from one place.

The plugin sends a read-only snapshot of your site (WordPress version, theme,
plugins, page counts, WooCommerce status). It never modifies your content,
settings, or SEO configuration.

== Installation ==

1. Upload the `ai-website-health` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Scan your site on seo.norseweb.no and click **Connect WordPress Plugin**.
4. Copy the `nwp_` connection token from app.norseweb.no/dashboard/connect.
5. Go to **AI Health** in WordPress, paste the token, and click **Test Connection**.

== Changelog ==

= 1.3.2 =
* Connection debug log with step-by-step trace.
* On-screen log preview after each test.
* Download debug log as JSON (tokens masked).

= 1.3.1 =
* Clear error when demo nwh_demo_ keys are used.
* Better API error messages (no more misleading "HTTP 200").
* Legacy nwh_ keys now call app.norseweb.no instead of seo.norseweb.no.

= 1.3.0 =
* Turso handshake via app.norseweb.no (`nwp_` connection tokens).
* Connection token UI (replaces legacy API key flow for new installs).
* Legacy `nwh_` API keys still supported against seo.norseweb.no.

= 1.2.0 =
* WooCommerce business KPIs in snapshot (orders, sales, customers, 7-day sparkline).

= 1.1.0 =
* Resource Usage diagnostics — storage, cleanup candidates, plugin footprint (read-only).

= 1.0.0 =
* Initial release — connect, snapshot, test connection.
