=== Shed AI Transparency ===
Contributors: teamstaccato
Tags: ai, transparency, eu-ai-act, label, json-ld
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add AI transparency labels to WordPress posts. Record AI usage details and output structured data for EU AI Act compliance.

== Description ==

Shed AI Transparency lets you record AI usage information for each post and display transparent labels on the frontend, along with JSON-LD structured data.

= Features =

* Works with all post types including custom post types
* 21 preset AI tools across 4 categories (text, image, video, audio)
* Custom AI tool input with category selection
* AI usage percentage slider (0–100%)
* Customizable percentage labels (configurable thresholds and messages in admin)
* Human editing/review flag
* Automatic label output on the frontend (before or after content)
* JSON-LD structured data output (CreativeWork schema)
* AI badge and percentage column in post list with sorting support
* Quick edit support for AI tool selection and usage percentage
* Real-time label preview in the editor sidebar
* Japanese/English label switching

= Japanese =

Shed AI Transparency は、記事ごとにAI使用情報を記録し、フロントエンドにラベルとJSON-LD構造化データを出力するプラグインです。

主な機能:

* 全投稿タイプ（カスタム投稿タイプ含む）に対応
* 21種類のAIツールプリセット（テキスト・画像・動画・音声の4カテゴリ）
* カスタムAIツールの自由入力（カテゴリ指定付き）
* AI使用割合のスライダー（0〜100%）
* 使用率に応じたカスタム文言設定（閾値・文言を管理画面で自由に編集可能）
* 人間による編集・加筆フラグ
* フロントエンドへのラベル自動出力（記事冒頭/末尾選択可）
* JSON-LD構造化データ出力（CreativeWork）
* 投稿一覧でのAIバッジ・使用率カラム表示（ソート対応）
* クイック編集でのAIツール選択・使用率設定
* リアルタイムラベルプレビュー
* 日本語/英語ラベル切り替え

== Screenshots ==

1. Editor sidebar — select AI tools, set usage percentage, and preview the label in real time.
2. Frontend label displayed on a post, with the full feature list.
3. Post list with AI badge and usage percentage column (sortable).
4. Settings page — configure label position, language, and percentage threshold messages.

== Installation ==

1. Download the ZIP file.
2. Go to **Plugins → Add New → Upload Plugin** in your WordPress admin.
3. Upload the ZIP and click **Install Now**, then **Activate**.
4. Go to **Settings → AI Transparency** to configure the display position, language, and percentage labels.

== Frequently Asked Questions ==

= Which post types are supported? =

All post types that appear in the WordPress admin UI are automatically supported, including posts, pages, and custom post types.

= How does this help with EU AI Act compliance? =

The plugin outputs AI usage details (tools used, percentage, human editing flag) as JSON-LD structured data on each post. Note that it does not provide legal compliance guarantees.

= What happens to my data when the plugin is deleted? =

Uninstalling the plugin will permanently delete all saved settings and AI usage metadata from all posts.

== Changelog ==

= 1.0.1 =
* Fix Plugin URI (was returning 404)
* Fix JSON-LD output: replaced JSON_UNESCAPED_SLASHES with JSON_HEX_TAG to prevent script tag injection
* Fix wp_localize_script handle: renamed wsaiData to shedaitrData for proper prefix

= 1.0.0 =
* First release on WordPress.org
* License updated to GPL-2.0-or-later
* Removed proprietary auto-updater (WP.org provides updates)
* Inline scripts moved to enqueued JS files

= 0.1.2 =
* Plugin slug unified to shed-ai-transparency

= 0.1.1 =
* Added auto-updater

= 0.1.0 =
* Initial release
* AI usage metadata management (21 presets + custom tools)
* Editor sidebar UI with scrollable tool selection and real-time preview
* Quick edit support (AI tool selection, percentage)
* Frontend label output (position and language configurable)
* JSON-LD structured data output
* Admin settings page (position, language, percentage threshold labels)
* Post list AI badge and percentage column with sorting
* Full data cleanup on uninstall

== Upgrade Notice ==

= 1.0.1 =
Security and code quality fixes in response to WordPress.org review.

= 1.0.0 =
First public release on WordPress.org. No breaking changes from 0.1.2.
