@diviops/mcp-server 1.5.60 → 1.5.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,18 @@ The Node.js MCP server inside the DiviOps harness. It gives Claude Code, Codex,
8
8
  Claude Code <-> MCP Server (stdio) <-> WordPress REST API <-> DiviOps Agent plugin
9
9
  ```
10
10
 
11
- ## 1.5.60 release note
11
+ ## 1.5.61 release note
12
+
13
+ With Free Agent 1.5.31, Theme Builder template trash and permanent deletion
14
+ preserve layouts referenced by another template. Preview excludes them from
15
+ destructive changes, and both preview and apply report `preserved_layouts`.
16
+ Failed reference checks stop before changes. Unshared cleanup is unchanged.
17
+
18
+ Update the Free plugin to receive the protection; this MCP update supplies
19
+ matching tool guidance. Public builder remains 1.4.11. Dependencies and
20
+ compatibility floors are unchanged.
21
+
22
+ ## Previous 1.5.60 release note
12
23
 
13
24
  When WP-CLI is configured, `diviops_meta_info` now includes `wp_cli.ignored`:
14
25
  the unique, trimmed entries from `DIVIOPS_WP_CLI_ALLOW` that were not recognized
package/dist/index.js CHANGED
@@ -2896,7 +2896,7 @@ registerPluginTool("diviops_tb_template_create", {
2896
2896
  };
2897
2897
  });
2898
2898
  registerPluginTool("diviops_tb_template_trash", {
2899
- description: "Trash (or permanently delete) a Theme Builder template AND its linked header/body/footer layouts AND scrub the `_et_template` meta refs on the Theme Builder master post. Closes the orphan-meta gap left by `diviops_page_trash` / wp-cli `post delete` on linked layouts: the typed wrapper does the cleanup atomically. Defaults to trash (reversible via WP Admin → Trash). Pass `force=true` to permanently delete (wp_delete_post — irreversible, one-shot: a repeat call after a successful force-delete returns 'not_found' because the template post is gone from the DB). Idempotency applies to the default trash mode only: a repeat call after a successful trash-mode cleanup returns ok:true with `data.already_trashed = true` (mirrors `diviops_page_trash`). If a prior trash-mode call partially succeeded (some layouts already trashed, master meta still carries refs), the next call detects already-trashed targets via pre-state checks, skips the no-op WP destructor calls (which would otherwise return false), and still runs the meta scrub — `data.linked_layouts[].skipped` and `data.template_skipped` flag the targets that were already at the end-state. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }; missing template_id returns 'not_found' (HTTP 404), delete-permission failures return 'forbidden' (HTTP 403); per-step trash/delete/meta-scrub failures return the namespaced 'tb_template.command_failed' (HTTP 500) with `error.data.failed_step` ∈ { 'layout_destroy', 'template_destroy', 'meta_scrub' } plus `template_id` and `force`." +
2899
+ description: "Trash (or permanently delete) a Theme Builder template AND its unshared linked header/body/footer layouts AND scrub the `_et_template` meta refs on the Theme Builder master post. Closes the orphan-meta gap left by `diviops_page_trash` / wp-cli `post delete` on linked layouts: the typed wrapper performs ordered cleanup. Layouts referenced by another template (including disabled, trashed, library or orphan templates) are preserved in both modes and reported in data.preserved_layouts; previews exclude them from destructive changes. A failed reference check aborts before mutations. Defaults to trash (reversible via WP Admin → Trash). Pass `force=true` to permanently delete (wp_delete_post — irreversible, one-shot: a repeat call after a successful force-delete returns 'not_found' because the template post is gone from the DB). Idempotency applies to the default trash mode only: a repeat call after a successful trash-mode cleanup returns ok:true with `data.already_trashed = true` (mirrors `diviops_page_trash`). If a prior trash-mode call partially succeeded (some layouts already trashed, master meta still carries refs), the next call detects already-trashed targets via pre-state checks, skips the no-op WP destructor calls (which would otherwise return false), and still runs the meta scrub — `data.linked_layouts[].skipped` and `data.template_skipped` flag the targets that were already at the end-state. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }; missing template_id returns 'not_found' (HTTP 404), delete-permission failures return 'forbidden' (HTTP 403); per-step trash/delete/meta-scrub failures return the namespaced 'tb_template.command_failed' (HTTP 500) with `error.data.failed_step` ∈ { 'layout_references', 'layout_destroy', 'template_destroy', 'meta_scrub' } plus `template_id` and `force`." +
2900
2900
  DRY_RUN_DESC_SUFFIX,
2901
2901
  inputSchema: {
2902
2902
  template_id: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.60",
3
+ "version": "1.5.61",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",