Repository navigation
v4.2
Highlights
Security & reliability
- API key now encrypted with a fresh random IV per save (AES-256-CBC), with backward-compatible reads of legacy values.
- Removed a dead
anthropic-betaheader with no effect on Claude 4+ models. - Added
stop_reasonhandling (refusal/truncation) and a single retry with backoff on 429/5xx from the Anthropic API. - Added per-user rate limiting on the generation endpoint.
Model & cost controls
- Curated model dropdown (Haiku 4.5 / Sonnet 5 / Opus 5), now defaulting to Sonnet 5 for better output quality.
- Prompt caching on the system prompt to reduce token usage on repeated generations.
- Configurable max-tokens setting and a "Verbindung testen" button to validate the API key without a full generation.
Usability
- Nothing is written to a post until you explicitly confirm: generation now shows a preview with per-field checkboxes before anything is saved.
- The "KI Content-Optimierung" box moved from the sidebar to a full-width area below the editor, redesigned as a responsive card grid (two-column desktop, single-column mobile with a sticky action bar).
- Accessible status updates (aria-live/aria-busy), an indeterminate progress indicator, and in-place Gutenberg updates instead of a full page reload.
- Social Media, WhatsApp, and Custom CSS fields remain directly editable by hand at any time.
Code organization & docs
- Split the meta-box code into
meta-box.php,meta-box-view.php, andrest-generate.php. - Added a WordPress.org-style
readme.txt, resolved a CSS-class-prefix documentation inconsistency, and removed a stale build artifact from the repo.
Full changelog: 6 commits since the previous v4.1 code state — see commit history for details.