@diviops/mcp-server 1.5.40 → 1.5.41

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
@@ -19,6 +19,24 @@ DiviOps fits multiple WordPress workflows where AI-driven authoring + management
19
19
  - **WordPress site auditing** — preset audits, design-token usage scans, orphan detection (presets, variables, dangling references); broader site surveys via wp-cli (`wp option list`, `wp post list --format=json`, `wp post term list <id> <taxonomy> --format=json`, `wp user list`).
20
20
  - **Hybrid sites (Divi + custom PHP)** — Divi authors the marketing pages; custom PHP templates handle dynamic ones (CPT listings, single-post views, member portals); design tokens harmonized across both surfaces via CSS custom properties driven from the Divi variable system.
21
21
 
22
+ ## Authoring policy
23
+
24
+ Use native Divi modules first. Intentional custom HTML is supported when native
25
+ Divi cannot meet the agreed requirement; HTML shape is not a semantic refusal gate.
26
+ Permissions, schemas, sanitization, bounded parsing, dry-run, required backups and
27
+ readback still apply. Ordinary server startup and the seven full-content writes
28
+ do not require a browser, trust registration or receipt. Visual QA is separate.
29
+
30
+ With an unreleased browser-gate plugin snapshot, its refusals remain authoritative:
31
+ the migrated server removes private browser handoff data and does not retry or
32
+ bypass the refusal. An unreleased browser-gate server snapshot tolerates the
33
+ retired registration route on the migrated plugin, but retains its own
34
+ startup-attestation overhead. Existing capability checks and
35
+ authentication errors are unchanged. Published server 1.5.40 and Free 1.5.13
36
+ predate that experiment and did not require browser attestation or receipts.
37
+ Source behavior is not a claim that current npm, WordPress.org or manually
38
+ installed packages include the migration.
39
+
22
40
  ## Quick start
23
41
 
24
42
  The first three steps prove connectivity. Native Divi authoring additionally
@@ -141,7 +159,9 @@ The server exposes **94 always-on tools** across the categories below. Each cate
141
159
  | WP-CLI passthrough | Escape hatch for site ops | `meta_wp_cli` |
142
160
  | Cache + meta | Connection probe, identity, icons, cache flush | `meta_*` |
143
161
 
144
- Use `diviops_meta_info` as the S0 preflight before dogfooding or product work. It returns `server_version`, a numeric `tool_count`, a `tools` catalog summary (`registered_total`, always-on count, Pro possible/registered counts by target), `plugins` version records for `diviops-agent`, `diviops-agent-pro`, FluentCart, and FluentCart Pro when available, plus the existing handshake and slice state.
162
+ Use `diviops_meta_info` as the S0 preflight before dogfooding or product work. It returns `server_version`, a numeric `tool_count`, a `tools` catalog summary (`registered_total`, always-on count, Pro possible/registered counts by target), `plugins` version records for `diviops-agent`, `diviops-agent-pro`, FluentCart, and FluentCart Pro when available, plus the existing handshake and slice state. In regular npm/stdio sessions, successfully observed plugin, module, capability, and registered-tool fields are the immutable handshake snapshot that built the session catalog. The additive `startup_capture` record supplies its non-secret timestamp, exact covered evidence, independent-component compatibility rule, and deterministic reconnect guidance. A failed handshake instead reports `startup_unavailable`, a bounded `startup_handshake_failed` reason class, and no covered target evidence. After a supported plugin, theme, or target change, reconnect or restart MCP before treating `meta_info`, the registered tools, or capability gates as current. Live read tools such as `diviops_fc_status` remain separate current observations; they do not rewrite startup registry truth.
163
+
164
+ Launcher health mode keeps its stricter existing contract: `diviops_meta_ping` and `diviops_meta_info` re-observe model-visible target evidence on every call. The regular stdio `startup_capture` record does not alter launcher behavior, direct npm/stdio compatibility, or tool registration after initialization.
145
165
 
146
166
  Additional **conditionally-registered Pro tools** appear only on sites that have the Pro plugin (`diviops-agent-pro`) active alongside the target coverage plugin:
147
167
 
@@ -0,0 +1,16 @@
1
+ import type { DiviopsResponse } from "./envelope.js";
2
+ type Client = {
3
+ requestEnveloped(endpoint: string, options: {
4
+ method: string;
5
+ body: Record<string, unknown>;
6
+ }): Promise<DiviopsResponse<unknown>>;
7
+ };
8
+ export type AuthoringWriteSpec = {
9
+ endpoint: string;
10
+ method: string;
11
+ body: Record<string, unknown>;
12
+ operation: string;
13
+ dryRun: boolean;
14
+ };
15
+ export declare function requestAuthoringWrite(client: Client, spec: AuthoringWriteSpec): Promise<DiviopsResponse<unknown>>;
16
+ export {};
@@ -0,0 +1,19 @@
1
+ import { normalizeBody } from "./wp-client.js";
2
+ export async function requestAuthoringWrite(client, spec) {
3
+ const result = await client.requestEnveloped(spec.endpoint, {
4
+ method: spec.method,
5
+ body: normalizeBody(spec.body),
6
+ });
7
+ if (result.ok || result.error.code !== "authoring_shape.render_required")
8
+ return result;
9
+ // Older plugins still own their refusal. Never expose their private candidate
10
+ // handoff, manufacture a receipt, or replay a write to bypass that policy.
11
+ return {
12
+ ok: false,
13
+ error: {
14
+ code: result.error.code,
15
+ message: result.error.message,
16
+ ...(result.error.hint ? { hint: result.error.hint } : {}),
17
+ },
18
+ };
19
+ }
@@ -13,7 +13,7 @@ export declare const META_PING_CONFIG: {
13
13
  };
14
14
  };
15
15
  export declare const META_INFO_CONFIG: {
16
- readonly description: "Returns DiviOps MCP server identity, server_version, license type, numeric tool_count, registered tool catalog summary, active plugin version summary, WP-CLI allowlist, and plugin handshake/slice state including Pro and FluentCart target readiness. Use as the S0 preflight before dogfooding or product work. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.";
16
+ readonly description: "Returns DiviOps MCP server identity, server_version, license type, numeric tool_count, registered tool catalog summary, active plugin version summary, WP-CLI allowlist, and plugin handshake/slice state including Pro and FluentCart target readiness. In regular stdio mode, a successful plugin, module, capability, and registered-tool observation is the immutable startup snapshot; failed startup observation is explicitly unavailable and claims no target coverage. Reconnect or restart MCP after supported target changes. Launcher health mode continues to observe target evidence per call. Use as the S0 preflight before dogfooding or product work. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.";
17
17
  readonly annotations: {
18
18
  readonly readOnlyHint: true;
19
19
  readonly idempotentHint: true;
@@ -9,7 +9,7 @@ export const META_PING_CONFIG = {
9
9
  _meta: { idempotent: "true" },
10
10
  };
11
11
  export const META_INFO_CONFIG = {
12
- description: "Returns DiviOps MCP server identity, server_version, license type, numeric tool_count, registered tool catalog summary, active plugin version summary, WP-CLI allowlist, and plugin handshake/slice state including Pro and FluentCart target readiness. Use as the S0 preflight before dogfooding or product work. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.",
12
+ description: "Returns DiviOps MCP server identity, server_version, license type, numeric tool_count, registered tool catalog summary, active plugin version summary, WP-CLI allowlist, and plugin handshake/slice state including Pro and FluentCart target readiness. In regular stdio mode, a successful plugin, module, capability, and registered-tool observation is the immutable startup snapshot; failed startup observation is explicitly unavailable and claims no target coverage. Reconnect or restart MCP after supported target changes. Launcher health mode continues to observe target evidence per call. Use as the S0 preflight before dogfooding or product work. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.",
13
13
  annotations: { readOnlyHint: true, idempotentHint: true },
14
14
  _meta: { idempotent: "true" },
15
15
  };
package/dist/index.d.ts CHANGED
@@ -33,4 +33,4 @@ export type HandshakeState = {
33
33
  * fixture deliberately share this seam so the v2 proof materializes the real
34
34
  * Free/Pro-gated catalog instead of maintaining a second set of definitions.
35
35
  */
36
- export declare function finalizeProductionRegistryForHandshake(state: HandshakeState): CanonicalToolRegistry;
36
+ export declare function finalizeProductionRegistryForHandshake(state: HandshakeState, observedAt?: string | Date | null): CanonicalToolRegistry;
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
12
12
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
13
13
  import { z } from "zod";
14
14
  import { WPClient } from "./wp-client.js";
15
+ import { requestAuthoringWrite } from "./authoring-shape-integration.js";
15
16
  import { capabilityUpgradeHint, MissingCapabilityError, observedVersion, proToolGatesSatisfied, } from "./compatibility.js";
16
17
  import { missingCapabilityEnvelope, } from "./capability-envelope.js";
17
18
  import { ErrorCodes, envelopeMap, recordIdempotent, serializeEnvelope, withCode, wrapResponse, } from "./envelope.js";
@@ -24,6 +25,7 @@ import { optimizeSchema } from "./schema-optimizer.js";
24
25
  import { schemaModuleRoute } from "./schema-route.js";
25
26
  import { createWpCli } from "./wp-cli.js";
26
27
  import { META_INFO_CONFIG, META_PING_CONFIG, requestAbortSignal, } from "./health-tools.js";
28
+ import { createStartupCaptureEvidence, } from "./startup-capture.js";
27
29
  import { CanonicalToolRegistry } from "./canonical-tool-registry.js";
28
30
  import { isolationFailure, scanValueForForeignVarRefs, writerIsolationErrorResult, } from "./validate-attrs.js";
29
31
  import { readFileSync, readdirSync, realpathSync } from "fs";
@@ -52,6 +54,7 @@ const wp = new WPClient({
52
54
  username: WP_USER,
53
55
  applicationPassword: WP_APP_PASSWORD,
54
56
  });
57
+ const authoringWrite = (endpoint, method, body, operation, dryRun) => requestAuthoringWrite(wp, { endpoint, method, body, operation, dryRun });
55
58
  // WP-CLI (optional — Local by Flywheel via WP_PATH, or custom wrapper via WP_CLI_CMD)
56
59
  const WP_PATH = process.env.WP_PATH ?? "";
57
60
  const WP_CLI_CMD = process.env.WP_CLI_CMD?.trim() ?? "";
@@ -93,6 +96,7 @@ const SERVER_VERSION = (() => {
93
96
  // ── MCP Server ───────────────────────────────────────────────────────
94
97
  const registry = new CanonicalToolRegistry();
95
98
  let handshakeState = { kind: "pending" };
99
+ let startupCaptureEvidence = createStartupCaptureEvidence(handshakeState, null);
96
100
  const toolCatalog = [];
97
101
  function recordToolCatalog(entry) {
98
102
  const existing = toolCatalog.find((item) => item.name === entry.name && item.kind === entry.kind);
@@ -246,6 +250,7 @@ function buildMetaInfo() {
246
250
  capabilities,
247
251
  tool_count: tools.registered_total,
248
252
  tools,
253
+ startup_capture: startupCaptureEvidence,
249
254
  plugins: buildPluginVersionSummary(),
250
255
  handshake: handshakeState.kind === "ok"
251
256
  ? {
@@ -1253,10 +1258,7 @@ registerPluginTool("diviops_page_update_content", {
1253
1258
  body.dry_run = true;
1254
1259
  if (backup)
1255
1260
  body.backup = true;
1256
- const result = await wp.requestEnveloped(`/page/update-content/${page_id}`, {
1257
- method: "POST",
1258
- body,
1259
- });
1261
+ const result = await authoringWrite(`/page/update-content/${page_id}`, "POST", body, "page_update_content", dry_run === true);
1260
1262
  return {
1261
1263
  content: [
1262
1264
  { type: "text", text: serializeEnvelope(result, "diviops_page_update_content") },
@@ -1866,10 +1868,7 @@ registerPluginTool("diviops_page_create", {
1866
1868
  const body = { title, content: content ?? "", status: status ?? "draft" };
1867
1869
  if (dry_run)
1868
1870
  body.dry_run = true;
1869
- const result = await wp.requestEnveloped("/page/create", {
1870
- method: "POST",
1871
- body,
1872
- });
1871
+ const result = await authoringWrite("/page/create", "POST", body, "page_create", dry_run === true);
1873
1872
  return {
1874
1873
  content: [
1875
1874
  { type: "text", text: serializeEnvelope(result, "diviops_page_create") },
@@ -2453,10 +2452,7 @@ registerPluginTool("diviops_library_save", {
2453
2452
  const body = { title, content, layout_type, scope };
2454
2453
  if (dry_run)
2455
2454
  body.dry_run = true;
2456
- const result = await wp.requestEnveloped("/library/save", {
2457
- method: "POST",
2458
- body,
2459
- });
2455
+ const result = await authoringWrite("/library/save", "POST", body, "library_save", dry_run === true);
2460
2456
  return {
2461
2457
  content: [
2462
2458
  { type: "text", text: serializeEnvelope(result, "diviops_library_save") },
@@ -2652,10 +2648,7 @@ registerPluginTool("diviops_tb_layout_update", {
2652
2648
  body.dry_run = true;
2653
2649
  if (backup)
2654
2650
  body.backup = true;
2655
- const result = await wp.requestEnveloped(`/theme-builder/layout/update/${layout_id}`, {
2656
- method: "PUT",
2657
- body,
2658
- });
2651
+ const result = await authoringWrite(`/theme-builder/layout/update/${layout_id}`, "PUT", body, "tb_layout_update", dry_run === true);
2659
2652
  return {
2660
2653
  content: [
2661
2654
  { type: "text", text: serializeEnvelope(result, "diviops_tb_layout_update") },
@@ -2744,10 +2737,7 @@ registerPluginTool("diviops_tb_template_create", {
2744
2737
  const body = { title, condition, header_content, footer_content };
2745
2738
  if (dry_run)
2746
2739
  body.dry_run = true;
2747
- const result = await wp.requestEnveloped("/theme-builder/template/create", {
2748
- method: "POST",
2749
- body,
2750
- });
2740
+ const result = await authoringWrite("/theme-builder/template/create", "POST", body, "tb_template_create", dry_run === true);
2751
2741
  return {
2752
2742
  content: [
2753
2743
  { type: "text", text: serializeEnvelope(result, "diviops_tb_template_create") },
@@ -2834,7 +2824,7 @@ registerPluginTool("diviops_canvas_create", {
2834
2824
  body.z_index = z_index;
2835
2825
  if (dry_run)
2836
2826
  body.dry_run = true;
2837
- const result = await wp.requestEnveloped("/canvas/create", { method: "POST", body });
2827
+ const result = await authoringWrite("/canvas/create", "POST", body, "canvas_create", dry_run === true);
2838
2828
  return {
2839
2829
  content: [
2840
2830
  { type: "text", text: serializeEnvelope(result, "diviops_canvas_create") },
@@ -2979,10 +2969,7 @@ registerPluginTool("diviops_canvas_update", {
2979
2969
  body.z_index = z_index;
2980
2970
  if (dry_run)
2981
2971
  body.dry_run = true;
2982
- const result = await wp.requestEnveloped(`/canvas/update/${canvas_post_id}`, {
2983
- method: "POST",
2984
- body,
2985
- });
2972
+ const result = await authoringWrite(`/canvas/update/${canvas_post_id}`, "POST", body, "canvas_update", dry_run === true);
2986
2973
  return {
2987
2974
  content: [
2988
2975
  { type: "text", text: serializeEnvelope(result, "diviops_canvas_update") },
@@ -5552,11 +5539,12 @@ let productionRegistryFinalized = false;
5552
5539
  * fixture deliberately share this seam so the v2 proof materializes the real
5553
5540
  * Free/Pro-gated catalog instead of maintaining a second set of definitions.
5554
5541
  */
5555
- export function finalizeProductionRegistryForHandshake(state) {
5542
+ export function finalizeProductionRegistryForHandshake(state, observedAt = new Date()) {
5556
5543
  if (productionRegistryFinalized) {
5557
5544
  throw new Error("Production MCP registry has already been finalized");
5558
5545
  }
5559
5546
  handshakeState = state;
5547
+ startupCaptureEvidence = createStartupCaptureEvidence(state, observedAt);
5560
5548
  registerCrossEnvEvidenceTools();
5561
5549
  registerProTools();
5562
5550
  productionRegistryFinalized = true;
@@ -0,0 +1,33 @@
1
+ export declare const STARTUP_CAPTURE_RECONNECT_GUIDANCE = "Plugin, theme, or target changes require reconnecting or restarting the MCP session before diviops_meta_info, the registered tool catalog, and capability gates can be treated as current.";
2
+ export declare const STARTUP_CAPTURE_MIXED_VERSION_GUIDANCE = "DiviOps MCP server and WordPress component versions are independent. Compatibility is determined by the per-capability startup handshake, not by matching version numbers.";
3
+ export declare const STARTUP_CAPTURE_LIVE_READ_GUIDANCE = "Live read tools such as diviops_fc_status are separate current target observations and do not refresh this startup snapshot or the registered tool catalog.";
4
+ export declare function createStartupCaptureEvidence(observation: {
5
+ kind: "ok" | "failed" | "pending";
6
+ }, observedAt?: string | Date | null): {
7
+ mode: "startup_captured" | "startup_unavailable";
8
+ captured_at: string | null;
9
+ attempted_at: string | null;
10
+ timestamp_status: "recorded" | "unavailable_legacy" | "observation_failed";
11
+ observation: {
12
+ state: "ok" | "failed" | "pending";
13
+ reason_class: "startup_handshake_failed" | "startup_handshake_pending" | null;
14
+ };
15
+ immutable_for_session: boolean;
16
+ covers: ("capabilities" | "plugin_versions" | "module_activation" | "registered_tool_catalog")[];
17
+ freshness: {
18
+ status: "startup_snapshot" | "unavailable";
19
+ invalidated_by: ("plugin_change" | "theme_change" | "target_change")[];
20
+ action: "reconnect_or_restart_mcp";
21
+ guidance: string;
22
+ };
23
+ compatibility: {
24
+ component_versions: "independent";
25
+ authority: "per_capability_startup_handshake";
26
+ guidance: string;
27
+ };
28
+ live_observations: {
29
+ separate: boolean;
30
+ guidance: string;
31
+ };
32
+ };
33
+ export type StartupCaptureEvidence = ReturnType<typeof createStartupCaptureEvidence>;
@@ -0,0 +1,69 @@
1
+ export const STARTUP_CAPTURE_RECONNECT_GUIDANCE = "Plugin, theme, or target changes require reconnecting or restarting the MCP session before diviops_meta_info, the registered tool catalog, and capability gates can be treated as current.";
2
+ export const STARTUP_CAPTURE_MIXED_VERSION_GUIDANCE = "DiviOps MCP server and WordPress component versions are independent. Compatibility is determined by the per-capability startup handshake, not by matching version numbers.";
3
+ export const STARTUP_CAPTURE_LIVE_READ_GUIDANCE = "Live read tools such as diviops_fc_status are separate current target observations and do not refresh this startup snapshot or the registered tool catalog.";
4
+ const STARTUP_CAPTURE_COVERS = [
5
+ "plugin_versions",
6
+ "module_activation",
7
+ "capabilities",
8
+ "registered_tool_catalog",
9
+ ];
10
+ const STARTUP_CAPTURE_INVALIDATED_BY = [
11
+ "plugin_change",
12
+ "theme_change",
13
+ "target_change",
14
+ ];
15
+ function captureTimestamp(value) {
16
+ if (value instanceof Date) {
17
+ return Number.isNaN(value.getTime()) ? null : value.toISOString();
18
+ }
19
+ if (typeof value !== "string" || value.trim() === "")
20
+ return null;
21
+ const parsed = new Date(value);
22
+ return Number.isNaN(parsed.getTime()) ? null : parsed.toISOString();
23
+ }
24
+ export function createStartupCaptureEvidence(observation, observedAt) {
25
+ const observationState = observation.kind;
26
+ const timestamp = captureTimestamp(observedAt);
27
+ const captured = observationState === "ok";
28
+ return {
29
+ mode: captured
30
+ ? "startup_captured"
31
+ : "startup_unavailable",
32
+ captured_at: captured ? timestamp : null,
33
+ attempted_at: captured ? null : timestamp,
34
+ timestamp_status: captured
35
+ ? timestamp
36
+ ? "recorded"
37
+ : "unavailable_legacy"
38
+ : timestamp
39
+ ? "observation_failed"
40
+ : "unavailable_legacy",
41
+ observation: {
42
+ state: observationState,
43
+ reason_class: observationState === "failed"
44
+ ? "startup_handshake_failed"
45
+ : observationState === "pending"
46
+ ? "startup_handshake_pending"
47
+ : null,
48
+ },
49
+ immutable_for_session: true,
50
+ covers: captured ? [...STARTUP_CAPTURE_COVERS] : [],
51
+ freshness: {
52
+ status: captured
53
+ ? "startup_snapshot"
54
+ : "unavailable",
55
+ invalidated_by: [...STARTUP_CAPTURE_INVALIDATED_BY],
56
+ action: "reconnect_or_restart_mcp",
57
+ guidance: STARTUP_CAPTURE_RECONNECT_GUIDANCE,
58
+ },
59
+ compatibility: {
60
+ component_versions: "independent",
61
+ authority: "per_capability_startup_handshake",
62
+ guidance: STARTUP_CAPTURE_MIXED_VERSION_GUIDANCE,
63
+ },
64
+ live_observations: {
65
+ separate: true,
66
+ guidance: STARTUP_CAPTURE_LIVE_READ_GUIDANCE,
67
+ },
68
+ };
69
+ }
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { type HandshakeResult } from './compatibility.js';
8
8
  import { type DiviopsResponse } from './envelope.js';
9
+ export declare function normalizeBody(value: unknown, withinBlockTree?: boolean): unknown;
9
10
  export interface WPClientConfig {
10
11
  siteUrl: string;
11
12
  username: string;
package/dist/wp-client.js CHANGED
@@ -99,7 +99,7 @@ const NON_BLOCK_STORAGE_PREFIXES = [
99
99
  function endpointSkipsNormalization(endpoint) {
100
100
  return NON_BLOCK_STORAGE_PREFIXES.some((prefix) => endpoint.startsWith(prefix));
101
101
  }
102
- function normalizeBody(value, withinBlockTree = false) {
102
+ export function normalizeBody(value, withinBlockTree = false) {
103
103
  if (typeof value === 'string') {
104
104
  return withinBlockTree ? normalizeQuoteEscapes(value) : value;
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.40",
3
+ "version": "1.5.41",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,6 +16,14 @@
16
16
  "!dist/launcher-bootstrap.d.ts",
17
17
  "!dist/launcher-sidecar.js",
18
18
  "!dist/launcher-sidecar.d.ts",
19
+ "!dist/authoring-browser-contract.js",
20
+ "!dist/authoring-browser-contract.d.ts",
21
+ "!dist/authoring-browser-coordinator.js",
22
+ "!dist/authoring-browser-coordinator.d.ts",
23
+ "!dist/authoring-browser-runtime.js",
24
+ "!dist/authoring-browser-runtime.d.ts",
25
+ "!dist/authoring-browser-worker.js",
26
+ "!dist/authoring-browser-worker.d.ts",
19
27
  "templates",
20
28
  "data/verified-attrs.json",
21
29
  "data/verified-attrs-backlog.json",
@@ -25,9 +33,10 @@
25
33
  "build": "tsc",
26
34
  "start": "node dist/index.js",
27
35
  "dev": "tsc --watch",
28
- "test": "npm run build && node --test dist/__tests__/*.test.js dist/preset-cli/__tests__/*.test.js dist/cross-env-preflight/__tests__/*.test.js && node scripts/check-release-boundary.mjs",
36
+ "test": "npm run build && node --test dist/__tests__/*.test.js dist/preset-cli/__tests__/*.test.js dist/cross-env-preflight/__tests__/*.test.js scripts/authoring-release-boundary.test.mjs && node scripts/check-release-boundary.mjs",
29
37
  "prepublishOnly": "npm run build",
30
- "regen:skill": "node scripts/regen-module-formats.mjs"
38
+ "regen:skill": "node scripts/regen-module-formats.mjs",
39
+ "check:authoring-shape-budget": "node scripts/check-page-sized-html-fallback-production-budget.mjs"
31
40
  },
32
41
  "keywords": [
33
42
  "mcp",
@@ -64,6 +73,7 @@
64
73
  "@modelcontextprotocol/core": "2.0.0",
65
74
  "@modelcontextprotocol/server": "2.0.0",
66
75
  "@types/node": "^22.0.0",
76
+ "playwright-core": "1.62.1",
67
77
  "typescript": "^5.7.0"
68
78
  }
69
79
  }