Что нового

A log of updates, improvements, and fixes.

2026-11-23 v2.7.3
core docs domain

v2.7.3 — the showcase moved to its own domain, apidcms.ru

The documentation and the plugin catalog now have a domain of their own, **apidcms.ru**, instead of a subdomain of another zone. The old address `apidcms.dezajno.ru` answers with a permanent 301 redirect, so bookmarks, article links and emails keep working. Exactly one link changed in the core — the "All documents" button of the admin context help panel; nothing else in the CMS behaves differently, and the update is safe for every site.

2026-11-20 v2.7.2
core installer setup security

v2.7.2 — the installer runs again

Since 2.2.2 `install.php` carried a dangling `} else { … }` block with no opening `if`: PHP died with `Parse error` before installation started, so neither the CLI nor the web form worked and a fresh CMS install was impossible. The installer also treated the web root as the site root and created a second set of directories inside `www/` — including `www/config/admin.php` with the password `admin`, which the core never reads, so the site ran on the default password. The installer now distinguishes the site root from the web root, and header/footer take the site name from settings.

2026-11-16 v2.7.1
core nginx external-pages plugins

v2.7.1 — the nginx example no longer answers 403 on plugin catalog pages

The rule `location ~ ^/(core|config|storage|themes|plugins|tmp)/ { deny all; }` from the example config closed off not only the sources but also live pages: the `external` page type serves items at `/<url>/<slug>`, i.e. `/plugins/yookassa`, and the rule matches by URL prefix. An exception now sits above the deny; paths with an extension (`/plugins/<name>/plugin.json`) stay closed.

2026-11-16 v2.7.0
core plugins settings secrets security

v2.7.0 — plugin settings live in the database, not in plugin.json

A plugin manifest is code, while settings belong to the site — and some of them are secrets. Values moved to the `plugin_settings` table (created lazily, no migration needed); the manifest keeps only the schema and the default value. Plugin code does not change: the core overlays the values before a plugin touches them. The new `secret` flag keeps the value out of HTML, masks it as `***` and never writes it back to the file; a secret left in an old manifest is moved into the database on the first request.

2026-11-16 v2.6.0
core api tokens scopes relations docs

v2.6.0 — an agent can run everything: scoped tokens, relation writes, docs without the network

An API token is now a key with rights: `read` / `content` / `full`, with a Settings → API screen for creating, showing once, revoking and last-used dates. Many-to-many links are written through `POST`/`DELETE /api/v1/relations` with target validation, `dry_run` and the audit log. Documentation is served from the local cache (`GET /api/v1/docs`); the network is only needed for `POST /api/v1/docs/refresh` — on a server without GitHub that removed a 10-second wait from every call.

2026-11-16 v2.5.3
core fix plugins router api

v2.5.3 — plugins load by dependency and their /api/* routes work again

`PluginManager` iterated plugins alphabetically and checked dependencies against already-loaded ones — a plugin whose dependency sorts later never loaded. And `router.php` handed every `api*` path to the core, so plugin `/api/*` routes got "the path must start with /api/v1/": the license REST on enfesto and favorites/feed on bajto were dead. Both fixed; `plugin.json` no longer receives an absolute directory path.

2026-11-16 v2.5.2
core fix ai assistant mcp schema

v2.5.2 — the assistant stops passing internals off as data, and spend is visible

The first real-model run showed `_litestream_*` (SQLite replication) in the table list, the legacy assistant mode dumping `users`, `user_tokens`, `system_settings` into the prompt, and that mode not answering at all because of "Array to string conversion" in `DocsFetcher`. All fixed; `POST /admin/ai/assistant` now returns `steps` and `usage` — a data question costs ~6 000 prompt tokens instead of ~54 000.

2026-11-16 v2.5.1
core fix api schema agent

v2.5.1 — DEFAULT in the schema is a value, not SQL text

`PRAGMA` returns the default as SQL text, so quotes leaked into the JSON Schema: `"default": "'active'"`. An agent trusting the schema would have written the value with the quotes. The same default broke column deletion (`DEFAULT '''active'''`). Added a shared `Database::normalizeDefault()`.

2026-11-16 v2.5.0
core feature mcp agent assistant tools docs fix installer

v2.5.0 — An MCP server and an assistant that looks instead of paraphrasing

`POST /mcp` — a Model Context Protocol server: 12 tools (schema, records, navigation, audit, docs) and resources with articles. The built-in assistant runs on the same tools: instead of ~55k tokens of documentation per request it gets a contents list and one or two articles, and it can now act rather than only advise. Also fixes running `init_system_tables.php` directly and a stray second `cms.db`.

2026-11-16 v2.4.0
core api feature schema navigation validation dry-run audit idempotency admin agent

v2.4.0 — An API you can trust with writes

The API stopped lying silently: an anonymous capabilities index, `/schema` — the whole project in one payload, `/navigation` — the resolved page graph, table semantics in the admin panel. Writes are validated before the database: type, NOT NULL, enums, foreign keys and format, a refusal is `422` with a field list. Plus `dry_run`, `Idempotency-Key` against retries and an `/api/v1/audit` log.