diff --git a/CHANGELOG.md b/CHANGELOG.md index c8d0003..96bfb39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.7.0] - 2026-08-21 + +### Fixed + +- **`setup-monitoring.yml`: the security alert e-mail had a broken subject.** + It built the subject with an unquoted `$(date +%Y-%m-%d %H:%M)`. `date` + takes `%H:%M` as a second operand and errors out, so `mail` received a + truncated subject *and* `%H:%M` as an extra recipient. The format string is + now one quoted argument. + +- **`setup-monitoring.yml`: the weekly summary cron job never ran.** It was an + inline cron command containing `$(date +%Y-%m-%d)`, and cron treats an + unescaped `%` as end-of-command, piping the remainder to the job's stdin — + so the entry was truncated mid-word and wrote nothing. It now calls a + wrapper script, as the daily traffic and security reports already did, which + keeps `%` out of the crontab entirely and adds the 90-day report cleanup the + other two had. + + Both were found while porting these playbooks into the standalone + [`imagewize/trellis-wp-monitoring`](https://github.com/imagewize/trellis-wp-monitoring) + Ansible role, and both failed silently — no error, just a missing report or + a mangled e-mail. + +### Added + +- **A Trellis command reference in the README.** The Trellis section listed + documentation links but never the commands themselves. It now opens with the + `trellis ops` equivalence and carries a generated table of all 27 + `@platform trellis` commands, grouped the way `trellis ops` presents them and + marking the ones that execute on the server. The existing documentation table + moved under a "Guides" heading rather than being replaced. + ## [5.6.0] - 2026-08-21 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index 493c656..ea26c00 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -302,5 +302,5 @@ Before running backup operations on production: ### Git Commit and PR Conventions - **Atomic commits**: Each commit should represent a single logical change. Do not bundle unrelated changes in one commit. This makes history easier to review and revert when needed. -- **AI co-authorship in commits is allowed**: `Co-Authored-By` lines for Claude or Mistral are permitted in commit messages in this repo. +- **No AI attribution in commits**: do not add `Co-Authored-By` lines for Claude or Mistral, a `Claude-Session` trailer, or any other tool reference. Commit messages carry the change and its reasoning, nothing else. This matches the PR-description rule below. - **PR descriptions**: Pull request descriptions should be professional and focused on the changes. Do not include AI attribution footers or tool references. diff --git a/README.md b/README.md index 64f1980..d8d871b 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,14 @@ trellis ops search backup `trellis ops` scopes its **listing** to the commands tagged `@platform trellis`; run plain `wp-ops` for the full catalog. Running a command is never scoped — name -any command and it works. Unlike core `trellis` subcommands, a plugin doesn't need -you to be inside a Trellis project; the playbook commands find the project the same -way `wp-ops` always has. +any command and it works. See the [Trellis command reference](#command-reference) +for what that surface contains. + +Unlike core `trellis` subcommands, a plugin doesn't need you to be inside a Trellis +project — trellis-cli registers plugins from `$PATH` before it resolves a project at +all, so `trellis ops doctor` runs from anywhere while `trellis info` refuses. The +Ansible commands do still need a project, but they always did: wp-ops locates it +itself by walking up from your current directory, exactly as under bare `wp-ops`. Requires trellis-cli new enough to have plugin support (v1.19.0 or later) and the default `load_plugins: true`. If you built from source instead of installing the @@ -110,6 +115,7 @@ no prompt to confirm a detected guess: # Ansible playbooks (wp-ops trellis ) need a Trellis project's ansible.cfg/inventory/group_vars export TRELLIS_DIR=/path/to/your/trellis wp-ops trellis database-backup -e site=example.com -e env=production +trellis ops trellis database-backup -e site=example.com -e env=production # identical # WP-CLI scripts (wp-ops wp-cli