@superdoc/mcp 1.10.0-next.10 → 1.10.0-next.11

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
@@ -31630,7 +31630,7 @@ var init_host = __esm(() => {
31630
31630
  });
31631
31631
 
31632
31632
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
31633
- var SDK_VERSION = "2.23.0-next.10";
31633
+ var SDK_VERSION = "2.23.0-next.11";
31634
31634
 
31635
31635
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
31636
31636
  import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
@@ -223516,21 +223516,28 @@ function runListSetLevelCommit(input) {
223516
223516
  if (!bytes)
223517
223517
  return rejected4(input.txId, "invalid-range");
223518
223518
  const paraXml = decodeByteRange(bytes, target.entry.byteStart, target.entry.byteEnd);
223519
- const structural = classifyParagraphForList(paraXml);
223519
+ const structural = classifyParagraphForList(paraXml, {
223520
+ allowParagraphPropertyChanges: Boolean(trackedFormatting)
223521
+ });
223520
223522
  if (!structural.ok)
223521
223523
  return rejected4(input.txId, structural.reason);
223522
- const plan = decideListSetLevel(resolveEffectiveListReferenceForState(input.state, paraXml), op.ilvl);
223524
+ const effective = resolveEffectiveListReferenceForState(input.state, paraXml);
223525
+ const plan = decideListSetLevel(effective, op.ilvl);
223523
223526
  if (plan.kind === "reject")
223524
223527
  return rejected4(input.txId, plan.reason);
223525
223528
  if (plan.kind === "no-op") {
223526
223529
  return { txId: input.txId, status: "committed", packageRevision: input.state.packageRevision };
223527
223530
  }
223531
+ const targetStyle = resolveTargetLevelParagraphStyle(input.state, effective, plan.ilvl);
223532
+ if (!targetStyle.ok)
223533
+ return rejected4(input.txId, targetStyle.reason);
223528
223534
  return commitParagraphNumPrRewrite({
223529
223535
  input,
223530
223536
  target,
223531
223537
  bytes,
223532
223538
  paraXml,
223533
223539
  numPr: { numId: plan.numId, ilvl: plan.ilvl },
223540
+ paragraphStyleId: targetStyle.paragraphStyleId,
223534
223541
  trackedFormatting
223535
223542
  });
223536
223543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/mcp",
3
- "version": "1.10.0-next.10",
3
+ "version": "1.10.0-next.11",
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.23.0-next.10",
27
+ "@superdoc/sdk": "2.23.0-next.11",
28
28
  "debug": "^4.4.3",
29
29
  "zod": "^4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "superdoc": "2.26.0-next.10",
33
- "@superdoc/docx-engine": "0.25.0-next.10",
32
+ "superdoc": "2.26.0-next.11",
33
+ "@superdoc/docx-engine": "0.25.0-next.11",
34
34
  "@superdoc/document-api": "0.1.0-alpha.0",
35
35
  "@types/bun": "^1.3.8",
36
36
  "@types/node": "22.19.2",