=== Solara AI Integration ===
Contributors: yuvals41
Tags: ai, content, posts, rest-api, publishing
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.12
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Securely publish WordPress posts from your trusted server via signed and encrypted REST requests.

== Description ==

Solara AI Integration lets a trusted server securely create blog posts on your WordPress site. It exposes minimal REST endpoints and requires signed (JWS) and encrypted (JWE) payloads by default. The plugin also includes optional helpers for robots.txt, llms.txt, analytics verification snippets, and GA4/Meta/TikTok pixels. Admin settings live under Settings → Solara.

== Features ==

- Generate posts via REST API
- Optional standard post fields (title, excerpt, slug, featured image)
- Secure JWS verification and JWE decryption
- Pairing flow with site token and hourly rotation
- Minimal template for Solara-rendered pages
- Robots.txt, LLMs guidance, SEO verification, and analytics helpers

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin from the Plugins screen
3. Configure Settings → Solara with your server URL and pairing secret

== Frequently Asked Questions ==

### Does this require authentication?
Yes. The server signs requests (JWS) and can encrypt bodies (JWE). The plugin verifies before creating content.

### Can I disable analytics injection?
Yes. Leave the fields empty in Settings → Solara.

== External services ==

### Google Analytics 4 (optional)
If you add a GA4 Measurement ID the plugin enqueues `gtag.js` from `https://www.googletagmanager.com` on the public site so you can track page views for generated content. Google receives the standard Google Analytics event metadata (page URL, title, referrer, and other events you trigger). Terms: [Google Analytics Terms of Service](https://marketingplatform.google.com/about/analytics/terms/us/). Privacy: [Google Privacy Policy](https://policies.google.com/privacy).

### Meta Pixel (optional)
If you enter a Meta Pixel ID the plugin loads `fbevents.js` from `https://connect.facebook.net` and injects the no-script image beacon so that Meta can record a `PageView` event. Meta receives the browser payload that accompanies standard Meta Pixel requests. Terms: [Meta Terms of Service](https://www.facebook.com/legal/terms). Privacy: [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).

### TikTok Pixel (optional)
If you provide a TikTok Pixel ID the plugin loads the TikTok analytics library from `https://analytics.tiktok.com` and emits a `page` event. TikTok receives the typical Pixel metadata such as page URL and browser headers. Terms: [TikTok Terms of Service](https://www.tiktok.com/legal/terms-of-service). Privacy: [TikTok Privacy Policy](https://www.tiktok.com/legal/page/global-privacy-policy).

### Solara publishing server (optional)
When you pair the plugin with your trusted Solara publishing server, the plugin sends signed requests containing your site token and receives encrypted content from the server you configure under Settings → Solara. This communication happens only with the URL you enter. See [Solara Terms](https://solaraai.com/terms) and [Solara Privacy](https://solaraai.com/privacy).

== Changelog ==

### 1.0.12
- Worker-push architecture ensures tasks arrive via REST callbacks (no wp-cron dependency).
- Structured logging + admin log viewer, plus hardened analytics/pairing flows.
- Built-in auto-updater that validates signed manifests and checksums before swap.

### 1.0.0
- Initial release with pairing, secure endpoints, and minimal template.

== Upgrade Notice ==

### 1.0.12
WordPress now receives worker callbacks immediately and gains the new auto-updater/logging features.

### 1.0.0
Initial release.
