=== LiveEdit AI Agent ===
Contributors: vlasok
Tags: ai, agent, content, page builder, woocommerce
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.1.10
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An AI agent that works on the site itself: new sections in your theme's own style, products, categories and articles.

== Description ==

**This plugin is a client for an external paid service and does nothing on its own.**
The agent runs on our servers, which call Anthropic's Claude models. You need an account
at vlaszubenko.com to use it. New sites get a small allowance of credits to try the
service without a card; after that the service is paid by subscription. Nothing in the
plugin code is locked, obfuscated or reserved for a premium build — all of it is here,
and all of it talks to the same service. See "External services" below for exactly what
is sent and when.

Ask in plain words — the agent finds the right files, reads the code and does the work
itself. It builds new sections in your theme's own style, edits templates, creates
editable fields in wp-admin, fills the catalogue and writes articles.

What makes it different from a text generator:

* It works on the site, not in a chat window. Pages, blocks, products, posts — it reads your theme to match it.
* It reads your theme before writing, so a new block looks native — same tokens,
  spacing and classes.
* Every change is reversible. Backups are taken before each file write, and the
  History screen undoes anything with one click.
* It says what it did not do. No "done!" when nothing was saved.

= Safety =

Before writing a PHP file the plugin checks syntax, boots WordPress in a separate
process and requests the page over HTTP. If the site breaks, the file is restored
automatically. Secrets — wp-config.php, .htaccess, .env — are never readable.

Content that comes back from tools (pages, files, comments) is treated as data, not
as instructions: an attempt to command the agent through your site's own content is
reported to you instead of being carried out.

= What this version does not do =

This is the free version. It reads your theme — templates, styles, spacing tokens — so that a new
block matches the site, but it does not modify theme files. Writing to theme files, creating
admin fields and installing plugins are not part of this build; that code is not here at all.
Those live in the full version, which is a separate download from our site.

= Credits =

Work is paid in credits from a subscription. A text edit costs about 5–15 credits,
a full new block with markup usually 150–600. The balance and what each
step cost are visible in the chat.

== Installation ==

1. Upload the plugin and activate it.
2. Open AI Agent → Settings and subscribe. The site connects itself; there is
   nothing to copy or paste.
3. Open AI Agent and describe what you need.

== Frequently Asked Questions ==

= Does it need WooCommerce? =

No. Product tools appear when WooCommerce is active; everything else works on any site.

= Can it break my site? =

A file is written only after a syntax check and a boot test, and reverted automatically
if the site stops responding. Anything else can be undone on the History screen.

= Where do my texts go? =

To the backend and from there to Anthropic, to produce the answer. Files you attach in
the chat go the same way — do not attach personal data you would not send to a third party.

== External services ==

This plugin is a client for an external service. It does not work on its own: the
thinking happens on our server, which in turn calls Anthropic's Claude models.

= LiveEdit AI Agent backend (api.web-hub.online) =

What it is used for: every request you make in the agent chat is sent there, answered,
and billed against your subscription. The plugin also asks it for the list of plans and
your credit balance.

When data is sent: only when you press a button — send a message in the chat, generate
text in the post editor, connect the site, or open the settings screen (balance and plans).

What is sent: your instruction text, the parts of your site the agent needs to answer
(theme files it reads, post content, product data), any files or screenshots you attach,
the site address and the site token. No passwords or database credentials are ever read
or sent — wp-config.php, .htaccess and .env are blocked at the code level.

Page screenshots: to check how a change looks, the agent can ask our server to open a
public page of this site in a headless browser and return a screenshot. Only pages of
this same site are opened, only when the agent is working on your request, and the
screenshot is used for that task only — it is not stored in the saved conversation.

Terms of use: https://vlaszubenko.com/livedit-ai-agent/terms
Privacy policy: https://vlaszubenko.com/livedit-ai-agent/privacy

= Anthropic =

Our backend passes your request to Anthropic's API to produce the answer. We do not use
your data to train models, and Anthropic does not train on API traffic.

Terms: https://www.anthropic.com/legal/commercial-terms
Privacy policy: https://www.anthropic.com/legal/privacy

= Stock photo libraries (only when you ask for a picture) =

When the agent needs an illustration it can import one into your media library. The image is
downloaded from one of five hosts only — images.unsplash.com, plus.unsplash.com, images.pexels.com,
cdn.pixabay.com and pixabay.com — over https, and it is rejected unless the file really is an image
under 8 MB. Nothing is downloaded unless you asked for an image, and no executable code is ever
fetched. No account is needed and nothing about you is sent to them.

Unsplash: https://unsplash.com/terms , https://unsplash.com/privacy
Pexels: https://www.pexels.com/terms-of-service/ , https://www.pexels.com/privacy-policy/
Pixabay: https://pixabay.com/service/terms/ , https://pixabay.com/service/privacy/

= Google Maps (only in a map block) =

If you ask the agent for a map section, the block it builds embeds a Google Maps iframe pointing at
the address you gave. The map loads in your visitors' browsers, from Google, when that page is
opened — so Google sees your visitors' requests as it would on any site with an embedded map. No
map is embedded unless you ask for one, and you can remove the block from the History screen.

Terms: https://policies.google.com/terms
Privacy policy: https://policies.google.com/privacy

= Error reports (optional, off by default) =

If you turn on "Send reports" in the settings, the plugin sends the error text, file and
line, the plugin and WordPress versions and the site address to api.web-hub.online when
something breaks. Nothing is sent while the setting is off.

== Screenshots ==

1. The agent chat. You describe the task; it looks through the theme, does the work and says exactly what it changed — and what it did not.
2. Generate in the post editor. Writes the body from the title, with the cost shown on the button before you press it.
3. History. Everything the plugin has done to the site, each row reversible — the site goes back to how it was.
4. Settings. Plan, credit balance, a cap on what one task may spend, and the switch for error reports (off until you turn it on).

== Upgrade Notice ==

= 1.1.3 =
Now requires WordPress 6.9: page changes use the output buffer WordPress itself provides.

= 1.1.1 =
Renamed to LiveEdit AI Agent. Settings and the subscription carry over by themselves. If you
ran an earlier build from our own site, install this one first, then deactivate the old copy
without deleting it.

== Changelog ==

= 1.1.10 =
* Block price hints match real tasks: a new block usually costs 150–600 credits.

= 1.1.9 =
* The free trial and connection work on sites that close the REST API to outside requests: the key is also confirmed through admin-ajax.php.

= 1.1.8 =
* Updating always downloads the newest release, not a link remembered from an earlier check.

= 1.1.7 =
* Fixed: the Cancel subscription and plan buttons did nothing on a connected site.
* Plans are listed right away instead of behind a separate Change plan button.

= 1.1.6 =
* The agent looks at the page it changed — a real browser screenshot on desktop and on a phone — and checks that the text is readable before saying it is done.
* Cancel and resume the subscription right on the settings screen; after cancelling the screen shows until when the plan keeps working.
* A notice asks you to keep the page open while the agent works, and the browser warns before closing it mid-task.
* When the agent needs permission to change theme files, the chat explains why and offers a button to allow it.
* Tool messages in the chat are in English.

= 1.1.3 =
* Page changes are applied through WordPress's own template output buffer (requires 6.9).
* Reading a page for the agent only ever requests this site, compared by exact host.
* Replaced text is sanitised on save and on output.

= 1.1.1 =
* Fixed saving the settings screen.
* Conversations and the generation log move over from the previous version's tables.
* Uninstalling removes the plugin's settings, caches and conversations.

= 1.1.0 =
* Renamed to LiveEdit AI Agent.
* The plugin no longer contacts our server until you press "Connect to the service" and see
  what gets sent.
* The site settings tool now only reaches theme options and a short list of harmless ones,
  instead of any option in the database.
* Documented the stock photo libraries and Google Maps.
* Styles go through the WordPress style queue; the front-end output buffer is closed explicitly.

= 1.0.32 =
* Error reports are now off until you switch them on.
* Documented every external service the plugin talks to.

= 1.0.31 =
* "Check for updates" link in the plugin list.

= 1.0.30 =
* Cancel or change the subscription from the settings screen.

= 1.0.20 =
* Generate button in the post editor, with the cost of each run.

= 1.0.10 =
* History screen: every change the agent made, each one reversible.

= 1.0.0 =
* First public release.
