@diviops/mcp-server 1.5.11 → 1.5.12

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.
@@ -18,6 +18,7 @@ import { WPClient } from "../wp-client.js";
18
18
  import type { HandshakeResult } from "../compatibility.js";
19
19
  import type { DiviopsResponse } from "../envelope.js";
20
20
  import type { ButtonPresetEntry } from "./button-emitter.js";
21
+ import type { HeadingFontPresetEntry } from "./heading-font-emitter.js";
21
22
  /** The plugin capability the storage-path capability contract ships. */
22
23
  export declare const STORAGE_CAPABILITY = "storage_multipath_probe_v1";
23
24
  /** The REST route the CLI posts to — same route `diviops_preset_create` uses. */
@@ -57,3 +58,17 @@ export declare function applyButtonPreset(client: PresetWriteClient, entry: Butt
57
58
  serverVersion: string;
58
59
  dry_run?: boolean;
59
60
  }): Promise<DiviopsResponse<unknown>>;
61
+ /**
62
+ * Apply a `divi/font` heading group preset: capability-gate, then POST
63
+ * to `/preset/create`. Mirrors `applyButtonPreset`'s sequence — the
64
+ * capability check runs BEFORE the write, and the write reuses the
65
+ * existing storage-routed route (no plugin route is added).
66
+ *
67
+ * The `pattern_variant` metadata is intentionally NOT in the wire body —
68
+ * variant selection is a client-side registry-gate decision and the
69
+ * server route accepts only the standard preset-create fields.
70
+ */
71
+ export declare function applyHeadingFontPreset(client: PresetWriteClient, entry: HeadingFontPresetEntry, opts: {
72
+ serverVersion: string;
73
+ dry_run?: boolean;
74
+ }): Promise<DiviopsResponse<unknown>>;
@@ -16,6 +16,7 @@
16
16
  */
17
17
  import { WPClient } from "../wp-client.js";
18
18
  import { buildPresetCreateBody } from "./button-emitter.js";
19
+ import { buildHeadingFontPresetCreateBody } from "./heading-font-emitter.js";
19
20
  /** The plugin capability the storage-path capability contract ships. */
20
21
  export const STORAGE_CAPABILITY = "storage_multipath_probe_v1";
21
22
  /** The REST route the CLI posts to — same route `diviops_preset_create` uses. */
@@ -87,3 +88,23 @@ export async function applyButtonPreset(client, entry, opts) {
87
88
  body,
88
89
  });
89
90
  }
91
+ /**
92
+ * Apply a `divi/font` heading group preset: capability-gate, then POST
93
+ * to `/preset/create`. Mirrors `applyButtonPreset`'s sequence — the
94
+ * capability check runs BEFORE the write, and the write reuses the
95
+ * existing storage-routed route (no plugin route is added).
96
+ *
97
+ * The `pattern_variant` metadata is intentionally NOT in the wire body —
98
+ * variant selection is a client-side registry-gate decision and the
99
+ * server route accepts only the standard preset-create fields.
100
+ */
101
+ export async function applyHeadingFontPreset(client, entry, opts) {
102
+ await assertStorageCapability(client, opts.serverVersion);
103
+ const body = buildHeadingFontPresetCreateBody(entry, {
104
+ dry_run: opts.dry_run,
105
+ });
106
+ return client.requestEnveloped(PRESET_CREATE_ROUTE, {
107
+ method: "POST",
108
+ body,
109
+ });
110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",