@superdoc/mcp 1.2.0-next.2 → 1.2.0-next.3

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -31314,7 +31314,7 @@ var init_host = __esm(() => {
31314
31314
  });
31315
31315
 
31316
31316
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
31317
- var SDK_VERSION = "2.15.0-next.2";
31317
+ var SDK_VERSION = "2.15.0-next.3";
31318
31318
 
31319
31319
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
31320
31320
  import { chmodSync, existsSync } from "node:fs";
@@ -329038,7 +329038,10 @@ class V2ContentControlsAdapter {
329038
329038
  return this.validateDryRun(input, options, control.target);
329039
329039
  const replacement = replaceSdtContentXml(control, buildTextReplacementContentXml(value2, control.info.kind, createParaIdAllocator(this.context), control.contentXml, false));
329040
329040
  const nextXml = replaceRange2(loaded.documentXml, control.start, control.end, replacement);
329041
- return this.commitDocument(nextXml, "content-control-replace-content", input, options, control.target);
329041
+ return this.commitDocument(nextXml, "content-control-replace-content", input, options, control.target, {
329042
+ storySurface: { family: "storyBlocks", contentControlRewrite: true, targetBlockIds: [] },
329043
+ preserveRenderCommit: this.context.isCollaborativeSession()
329044
+ });
329042
329045
  }
329043
329046
  setDateValue(input, options) {
329044
329047
  const loaded = this.load();
@@ -329294,7 +329297,11 @@ class V2ContentControlsAdapter {
329294
329297
  createdRefs = prepared.wordIds.map((entityId) => ({ kind: "trackedChange", entityId, storyId: control.storyId }));
329295
329298
  }
329296
329299
  const nextXml = replaceRange2(loaded.documentXml, control.start, control.end, replacement);
329297
- return this.commitDocument(nextXml, prefix, input, options, control.target, { createdRefs });
329300
+ return this.commitDocument(nextXml, prefix, input, options, control.target, {
329301
+ storySurface: { family: "storyBlocks", contentControlRewrite: true, targetBlockIds: [] },
329302
+ preserveRenderCommit: this.context.isCollaborativeSession(),
329303
+ createdRefs
329304
+ });
329298
329305
  }
329299
329306
  insertRepeatingItem(input, options, insertIndex) {
329300
329307
  this.validateTrackedControlMutation(input, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/mcp",
3
- "version": "1.2.0-next.2",
3
+ "version": "1.2.0-next.3",
4
4
  "description": "Model Context Protocol server for SuperDoc, giving an AI agent tools to read and edit .docx files.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -24,13 +24,13 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@modelcontextprotocol/sdk": "^1.26.0",
27
- "@superdoc/sdk": "2.15.0-next.2",
27
+ "@superdoc/sdk": "2.15.0-next.3",
28
28
  "debug": "^4.4.3",
29
29
  "zod": "^4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "superdoc": "2.18.0-next.2",
33
- "@superdoc/docx-engine": "0.17.0-next.2",
32
+ "superdoc": "2.18.0-next.3",
33
+ "@superdoc/docx-engine": "0.17.0-next.3",
34
34
  "@superdoc/document-api": "0.1.0-alpha.0",
35
35
  "@types/bun": "^1.3.8",
36
36
  "@types/node": "22.19.2",