diff --git a/AGENTS.md b/AGENTS.md index dd01a61..bf5dec2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,5 +20,5 @@ between lil-koneko.com, CarsHub, iriks-it.nl and bouwbedrijf.iriks-it.nl, as one ## Open decisions 1. Frontend: decided and built: the screens are in the package (`ui/`, built into `resources/dist`, committed; PR CI checks it is up to date). Still open: a theme editor in the manager, and a `host` mode that publishes the sources for a site to build itself. -2. Moving the rest from bouwbedrijf.iriks-it.nl: real pages and reviews (now skeletons) and revisions. Users, media, posts, audit log and statistics are done, with their screens. Leave out what is site-specific (the IriksIT API disk, the owner's simple screens, client names): this repo is public. +2. Moving the rest from bouwbedrijf.iriks-it.nl: reviews (still a read-only list). Users, media, posts, pages with fields, resources, revisions, audit log and statistics are done, with their screens. Leave out what is site-specific (the IriksIT API disk, client names): this repo is public. Still open: two-factor login, cropping pictures, automated tests of the screens in CI. 3. Decided in 0.5.0: groups stay the default and the host's roles are added next to them (`manager.permissions`: `mode` groups, host or merge; `roles` or a `PermissionResolver`). A host that wants to replace the groups screens entirely is not planned. diff --git a/CHANGELOG.md b/CHANGELOG.md index 4613ea7..534daaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ the section is the text of the release in Gitea. Cloudflare Turnstile is built in (two env keys). No two-factor login in the package itself. - Roles of the host: `manager.permissions` (`mode` groups/host/merge, `roles` map or a `resolver` implementing `PermissionResolver`) lets a site with its own roles say what an account may do; groups stay the default. +- `manager:doctor` has a `names` check: it warns when the site uses a route name or an address of the manager and says to set `route_name` or `path`. ## v0.4.0 - 2026-12-04 diff --git a/README.md b/README.md index 145dc92..ba042d5 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,11 @@ on the JSON routes. A browser that opens a manager address gets the page; anythi | `reviews` | Reviews | off | | `audit` | Audit log and address bans | off | | `statistics` | Visitor statistics | off | +| `resources` | Lists defined in config (`manager.resources`) | on (nothing without definitions) | +| `revisions` | History of posts and pages, with restore | on | Switch a part in `config/manager.php` (`modules`) or with `MANAGER_PAGES`, `MANAGER_POSTS`, -`MANAGER_REVIEWS`, `MANAGER_AUDIT`, `MANAGER_STATISTICS`. A module that is off has **no routes, no tables, no menu item and no permissions**: +`MANAGER_REVIEWS`, `MANAGER_AUDIT`, `MANAGER_STATISTICS`, `MANAGER_REVISIONS`. A module that is off has **no routes, no tables, no menu item and no permissions**: its migrations are not loaded at all. A module that needs another one (`requires()`) fails at boot when that one is off. @@ -228,12 +230,14 @@ scheduled daily), so a code cannot be traced back afterwards. A browser that sen ## State of this version -Done: module registry and switches, permissions per module, users (accounts, groups, command), media (library and public file -route), posts (with categories and tags), the audit log with bans, the statistics, the built-in screens for all of these (with a -login and profile), themes, and the install and doctor commands for AI agents. `composer test` runs the tests. +Done: module registry and switches, permissions per module, users (accounts, groups, command, roles of the host), media (library and +public file route, focus point), posts (with categories and tags), pages with fields, lists defined in config, the history with restore, +the audit log with bans, the statistics (with the counting script), the built-in screens for all of these (with a login, checks on the +login, a profile and the simple view), an editor, themes, translations, a site's own bundle of screens, the import of existing data, and +the install and doctor commands for AI agents. `composer test` runs the tests. -Pages and reviews are still skeletons (a read-only list), and revisions are not ported yet. The answers of every action are JSON -in the shape the screens use, so an app can build its own screens with `MANAGER_UI=none`. +Reviews are still a read-only list. The answers of every action are JSON in the shape the screens use, so an app can build its own screens +with `MANAGER_UI=none`. Not in the package: two-factor login (the login checks are the place for it), cropping or rotating pictures, a theme editor. ## Development cycle diff --git a/TOKENS.md b/TOKENS.md index fda5242..9282b13 100644 --- a/TOKENS.md +++ b/TOKENS.md @@ -43,3 +43,4 @@ Per stuk werk een rij; zie `dev/token-usage.py`. | 2026-12-04 | Het telscript en de Blade-component voor de publieke pagina's van de statistieken | - | claude-sonnet-5-5 | 8 | 9.037 | 16 | 15.948 | 2.254.948 | 0,04 | | 2026-12-04 | Loginhaken: eigen velden en controles, en Turnstile | - | claude-sonnet-5-5 | 4 | 9.009 | 8 | 9.515 | 1.178.544 | 0,02 | | 2026-12-04 | Rollen van de site naast de groepen van het pakket | - | claude-sonnet-5-5 | 3 | 5.308 | 6 | 8.235 | 921.246 | 0,01 | +| 2026-12-04 | Controle op namen die de site al gebruikt, en de documenten van 0.5.0 rechtgezet | - | claude-sonnet-5-5 | 9 | 7.281 | 18 | 12.115 | 2.881.457 | 0,03 | diff --git a/resources/ai/INTEGRATION.md b/resources/ai/INTEGRATION.md index 3c5db6a..8f8e750 100644 --- a/resources/ai/INTEGRATION.md +++ b/resources/ai/INTEGRATION.md @@ -17,6 +17,14 @@ order and never edit files inside `vendor/`. Repeat until `"ok": true`. Facts that matter: +- A site that already has `manager.*` route names, `manager_*` tables or its own posts and pages: `manager:doctor` has a `names` check that says + so. Set `route_name`, `table_prefix` or `tables` in `config/manager.php` before the first `migrate`, then copy what exists with + `php artisan manager:import posts|pages|reviews --table=