@diviops/mcp-server 1.5.60 → 1.5.62

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,31 @@ 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.62 release note
12
+
13
+ With Free Agent 1.5.34, empty header/footer inputs on template creation link the
14
+ active enabled default's existing layouts and preserve region enabled states.
15
+ Preview and apply report resolved sources and IDs. Without an enabled default,
16
+ the result explicitly reports native-theme fallback; invalid inheritance is
17
+ refused before changes. Existing templates are not automatically repaired.
18
+
19
+ Links are resolved at creation, not automatically rebound when the default
20
+ layout ID is replaced. Update the Free plugin to receive the fix; this MCP
21
+ update supplies matching tool guidance. Public builder remains 1.4.11.
22
+ Dependencies and compatibility floors are unchanged.
23
+
24
+ ## Previous 1.5.61 release note
25
+
26
+ With Free Agent 1.5.31, Theme Builder template trash and permanent deletion
27
+ preserve layouts referenced by another template. Preview excludes them from
28
+ destructive changes, and both preview and apply report `preserved_layouts`.
29
+ Failed reference checks stop before changes. Unshared cleanup is unchanged.
30
+
31
+ Update the Free plugin to receive the protection; this MCP update supplies
32
+ matching tool guidance. Public builder remains 1.4.11. Dependencies and
33
+ compatibility floors are unchanged.
34
+
35
+ ## Previous 1.5.60 release note
12
36
 
13
37
  When WP-CLI is configured, `diviops_meta_info` now includes `wp_cli.ignored`:
14
38
  the unique, trimmed entries from `DIVIOPS_WP_CLI_ALLOW` that were not recognized
package/dist/index.js CHANGED
@@ -2865,12 +2865,12 @@ registerPluginTool("diviops_tb_template_create", {
2865
2865
  .string()
2866
2866
  .optional()
2867
2867
  .default("")
2868
- .describe("Header block markup (empty = inherit from default template)"),
2868
+ .describe("Header block markup. Empty links the active enabled default template’s header layout and enabled state at creation; otherwise uses native-theme fallback. Links are not automatically rebound if the default layout ID changes. Invalid inheritance is refused; dry_run reports resolved regions."),
2869
2869
  footer_content: z
2870
2870
  .string()
2871
2871
  .optional()
2872
2872
  .default("")
2873
- .describe("Footer block markup (empty = inherit from default template)"),
2873
+ .describe("Footer block markup. Empty links the active enabled default template’s footer layout and enabled state at creation; otherwise uses native-theme fallback. Links are not automatically rebound if the default layout ID changes. Invalid inheritance is refused; dry_run reports resolved regions."),
2874
2874
  body_content: z.string().optional().default("").describe("Body block markup (omitted/empty = existing no-custom-body behavior). Nonempty content requires plugin capability tb_template_create_body; returns body_layout_id. No global Theme Builder save or legacy cleanup."),
2875
2875
  dry_run: DRY_RUN_FIELD,
2876
2876
  },
@@ -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.62",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",