=== AI Commerce Assistant Connector ===
Contributors: northlinestudio
Tags: woocommerce, ai, chatbot, ecommerce, connector
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Stable tag: 0.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight WordPress/WooCommerce connector for a central AI Commerce Assistant SaaS.

== Description ==

AI Commerce Assistant Connector links a WooCommerce store to a central SaaS AI platform.
The plugin does not run AI models locally. It provides settings, catalog sync, selected page sync, frontend widget loading, REST health checks, diagnostics, and technical logs.

== MVP Features ==

* Admin dashboard, settings, sync, widget, diagnostics, and logs pages.
* SaaS connection with pairing token and signed HMAC requests.
* Connection verification.
* WooCommerce detection with informative mode when WooCommerce is missing.
* Manual and WP-Cron incremental product catalog sync.
* Automatic product update event sync.
* Product categories, attributes, images, prices, stock, variable product read data.
* Selected WordPress page sync with content cleanup for policies, FAQ, shipping, returns, privacy, and terms.
* External chatbot widget loader exposing only public widget configuration.
* Diagnostics and internal technical logs in wp_aica_logs.
* Per-object sync state in wp_aica_sync_items.
* Encrypted secret storage using a site-local WordPress salt derived key.
* Background product sync jobs with WP-Cron batch processing and retry/backoff.
* Mock SaaS router and acceptance checklist for connector testing.
* Configurable log retention.
* Optional clean uninstall.

== Installation ==

1. Upload the plugin ZIP from Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Open AI Commerce > Settings.
4. Enter the SaaS API base URL and pairing token.
5. Save settings, connect the store, and verify the connection.
6. Select knowledge pages, configure widget display, and run the first manual sync.

== Changelog ==

= 0.1.5 =
Customer-ready connector with diagnostics, background sync jobs, retry/backoff, widget loader and signed SaaS requests.

= 0.1.0 =
Initial MVP connector.
