@superdoc/mcp 1.13.0-next.13 → 1.13.0-next.17

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 +94 -21
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -31155,7 +31155,7 @@ var init_host = __esm(() => {
31155
31155
  });
31156
31156
 
31157
31157
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
31158
- var SDK_VERSION = "2.26.0-next.13";
31158
+ var SDK_VERSION = "2.26.0-next.17";
31159
31159
 
31160
31160
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
31161
31161
  import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
@@ -290887,6 +290887,7 @@ function planNamespaceBindings(xml, inScope, options = {}) {
290887
290887
  const bindings2 = {};
290888
290888
  const undeclaredPrefixes = [];
290889
290889
  const ignorablePrefixes = [];
290890
+ const unknownIgnorablePrefixes = [];
290890
290891
  for (const prefix2 of unbound) {
290891
290892
  const known = KNOWN_OOXML_NAMESPACES.get(prefix2);
290892
290893
  const evidenced = known ? undefined : evidence.bindings.get(prefix2);
@@ -290895,6 +290896,8 @@ function planNamespaceBindings(xml, inScope, options = {}) {
290895
290896
  undeclaredPrefixes.push(prefix2);
290896
290897
  if (!known && !evidenced || evidenced && evidence.ignorable.has(prefix2) || known && options.markWordExtensionsIgnorable === true && WORD_IGNORABLE_PREFIXES.has(prefix2)) {
290897
290898
  ignorablePrefixes.push(prefix2);
290899
+ if (!known)
290900
+ unknownIgnorablePrefixes.push(prefix2);
290898
290901
  }
290899
290902
  }
290900
290903
  const scope = { ...inScope, ...bindings2 };
@@ -290906,7 +290909,7 @@ function planNamespaceBindings(xml, inScope, options = {}) {
290906
290909
  bindings2[markupCompatibilityPrefix] = MARKUP_COMPATIBILITY_NAMESPACE3;
290907
290910
  }
290908
290911
  }
290909
- const processContent = undeclaredPrefixes.length > 0 ? processContentNames(xml, { ...inScope, ...bindings2 }, undeclaredPrefixes, options) : [];
290912
+ const processContent = unknownIgnorablePrefixes.length > 0 ? processContentNames(xml, { ...inScope, ...bindings2 }, unknownIgnorablePrefixes, options) : [];
290910
290913
  return { bindings: bindings2, undeclaredPrefixes, ignorablePrefixes, processContent, markupCompatibilityPrefix };
290911
290914
  }
290912
290915
  function markupCompatibilityPlanAttributes(plan) {
@@ -290999,6 +291002,7 @@ var init_ooxml_namespaces = __esm(() => {
290999
291002
  ["w16sdtdh", "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"],
291000
291003
  ["w16du", "http://schemas.microsoft.com/office/word/2023/wordml/word16du"],
291001
291004
  ["w16sdtfl", "http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock"],
291005
+ ["w16cei", "http://schemas.microsoft.com/office/word/2026/wordml/cei"],
291002
291006
  ["wne", "http://schemas.microsoft.com/office/word/2006/wordml"],
291003
291007
  ["wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"],
291004
291008
  ["wp15", "http://schemas.microsoft.com/office/word/2012/wordprocessingDrawing"],
@@ -291032,6 +291036,8 @@ var init_ooxml_namespaces = __esm(() => {
291032
291036
  ["cx8", "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex"],
291033
291037
  ["thm15", "http://schemas.microsoft.com/office/thememl/2012/main"],
291034
291038
  ["oel", "http://schemas.microsoft.com/office/2019/extlst"],
291039
+ ["cr", "http://schemas.microsoft.com/office/comments/2020/reactions"],
291040
+ ["ask", "http://schemas.microsoft.com/office/drawing/2018/sketchyshapes"],
291035
291041
  ["wpsCustomData", "http://www.wps.cn/officeDocument/2013/wpsCustomData"]
291036
291042
  ]);
291037
291043
  WORD_IGNORABLE_PREFIXES = new Set([
@@ -291044,7 +291050,9 @@ var init_ooxml_namespaces = __esm(() => {
291044
291050
  "w16sdtdh",
291045
291051
  "w16sdtfl",
291046
291052
  "w16du",
291047
- "wp14"
291053
+ "wp14",
291054
+ "w16cei",
291055
+ "cr"
291048
291056
  ]);
291049
291057
  UNBOUND_PREFIX_ERROR = /unbound namespace prefix: "([^"]+)"/;
291050
291058
  XML_PREFIX_USE = /<\/?([A-Za-z_][\w.-]*):|\s([A-Za-z_][\w.-]*):[\w.-]+\s*=/g;
@@ -339945,7 +339953,7 @@ var init_paragraph_attrs = __esm(() => {
339945
339953
  init_colors();
339946
339954
  });
339947
339955
 
339948
- // ../../../v2/node_modules/.pnpm/@superdoc+font-utils@file+..+public+shared+font-utils/node_modules/@superdoc/font-utils/index.js
339956
+ // ../../../v2/node_modules/.pnpm/@superdoc+font-utils@file+..+public+shared+font-utils/node_modules/@superdoc/font-utils/index.ts
339949
339957
  function mapWordFamilyFallback(wordFamily) {
339950
339958
  if (!wordFamily)
339951
339959
  return DEFAULT_GENERIC_FALLBACK;
@@ -339971,7 +339979,7 @@ function toCssFontFamily(fontName, options = {}) {
339971
339979
  const { fallback, wordFamily, pitch } = options;
339972
339980
  const family = typeof wordFamily === "string" ? wordFamily.trim().toLowerCase() : "";
339973
339981
  const fixedPitch = typeof pitch === "string" && pitch.trim().toLowerCase() === "fixed";
339974
- const fallbackValue = fallback ?? (fixedPitch ? "monospace" : undefined) ?? (family !== "auto" && Object.hasOwn(FONT_FAMILY_FALLBACKS, family) ? mapWordFamilyFallback(family) : undefined) ?? inferGenericFallbackFromFontName(trimmed);
339982
+ const fallbackValue = fallback ?? (fixedPitch ? "monospace" : undefined) ?? (family !== "auto" && Object.prototype.hasOwnProperty.call(FONT_FAMILY_FALLBACKS, family) ? mapWordFamilyFallback(family) : undefined) ?? inferGenericFallbackFromFontName(trimmed);
339975
339983
  const fallbackParts = normalizeParts(fallbackValue);
339976
339984
  const primaryParts = normalizeParts(trimmed);
339977
339985
  if (fallbackParts.length === 0) {
@@ -340034,7 +340042,7 @@ var FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", INHERITED_FO
340034
340042
  return family;
340035
340043
  if (family.split(/\s+/).every((part) => CSS_IDENTIFIER.test(part)))
340036
340044
  return family;
340037
- const escaped = family.replace(/["\\\x00-\x1f\x7f]/g, (char) => char === '"' || char === "\\" ? `\\${char}` : `\\${char.codePointAt(0).toString(16)} `);
340045
+ const escaped = family.replace(/["\\\x00-\x1f\x7f]/g, (char) => char === '"' || char === "\\" ? `\\${char}` : `\\${char.charCodeAt(0).toString(16)} `);
340038
340046
  return `"${escaped}"`;
340039
340047
  }, CSS_GENERIC_FAMILIES;
340040
340048
  var init_font_utils = __esm(() => {
@@ -508589,7 +508597,7 @@ function roomNamespaceEvidence(rootDoc, registry5) {
508589
508597
  function isUnrelatedLocalSource(bootstrap, roomSourceSha256) {
508590
508598
  return !!roomSourceSha256 && !!bootstrap.sourcePackageSha256 && bootstrap.sourcePackageSha256 !== roomSourceSha256;
508591
508599
  }
508592
- function olderRoomStoryBootstrap(rootDoc, storyKind, evidence) {
508600
+ function olderRoomStoryBootstrap(rootDoc, storyKind, evidence, content3) {
508593
508601
  const shape2 = STORY_ROOTS[storyKind];
508594
508602
  if (!shape2)
508595
508603
  return;
@@ -508597,7 +508605,9 @@ function olderRoomStoryBootstrap(rootDoc, storyKind, evidence) {
508597
508605
  for (const [prefix2, namespace] of KNOWN_OOXML_NAMESPACES)
508598
508606
  bindings2.set(prefix2, namespace);
508599
508607
  const ignorable = [...new Set([...WORD_IGNORABLE_PREFIXES, ...evidence.ignorable])].filter((prefix2) => bindings2.has(prefix2));
508600
- const attributes = [...bindings2.keys()].sort().map((prefix2) => ` xmlns:${prefix2}="${xmlEscape(bindings2.get(prefix2))}"`).join("") + ` mc:Ignorable="${ignorable.join(" ")}"`;
508608
+ const recovered = ignorable.filter((prefix2) => !KNOWN_OOXML_NAMESPACES.has(prefix2));
508609
+ const processContent = content3 && recovered.length > 0 ? recoveredWrapperNames(rootDoc, content3, recovered, bindings2) : [];
508610
+ const attributes = [...bindings2.keys()].sort().map((prefix2) => ` xmlns:${prefix2}="${xmlEscape(bindings2.get(prefix2))}"`).join("") + ` mc:Ignorable="${ignorable.join(" ")}"` + (processContent.length > 0 ? ` mc:ProcessContent="${processContent.join(" ")}"` : "");
508601
508611
  const [rootName, containerName] = shape2;
508602
508612
  const rootOpenTagXml = `<${rootName}${attributes}>`;
508603
508613
  const key3 = `${storyKind}\x00${rootOpenTagXml}`;
@@ -508623,7 +508633,54 @@ function olderRoomStoryBootstrap(rootDoc, storyKind, evidence) {
508623
508633
  byKey.set(key3, bootstrap);
508624
508634
  return bootstrap;
508625
508635
  }
508626
- var XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>', ROOT_PREFIX_BYTES, TEXT_DECODER11, STORY_ROOTS, EVIDENCE_BY_ROOM, STORY_BOOTSTRAPS_BY_ROOM;
508636
+ function recoveredWrapperNames(rootDoc, content3, prefixes, bindings2) {
508637
+ const key3 = prefixes.join(" ");
508638
+ let byShard = RECOVERED_WRAPPERS_BY_ROOM.get(rootDoc);
508639
+ const cached2 = byShard?.get(content3.shardId);
508640
+ const previous3 = cached2?.prefixes === key3 ? cached2.names : [];
508641
+ if (cached2?.prefixes === key3 && !content3.rescan)
508642
+ return previous3;
508643
+ const markup = storyPreservedMarkup(content3.snapshot());
508644
+ const found = prefixes.some((prefix2) => markup.includes(`<${prefix2}:`)) ? processContentNames(markup, Object.fromEntries(bindings2), prefixes, { fragment: true }) : [];
508645
+ const names = [...new Set([...previous3, ...found])].sort();
508646
+ if (!byShard) {
508647
+ byShard = new Map;
508648
+ RECOVERED_WRAPPERS_BY_ROOM.set(rootDoc, byShard);
508649
+ }
508650
+ byShard.set(content3.shardId, { prefixes: key3, names });
508651
+ return names;
508652
+ }
508653
+ function preservedXml(value3) {
508654
+ if (typeof value3 !== "string")
508655
+ return "";
508656
+ if (value3.startsWith("<"))
508657
+ return value3;
508658
+ if (!value3.startsWith("{"))
508659
+ return "";
508660
+ try {
508661
+ const xml = JSON.parse(value3).xml;
508662
+ return typeof xml === "string" ? xml : "";
508663
+ } catch {
508664
+ return "";
508665
+ }
508666
+ }
508667
+ function storyPreservedMarkup(snapshot3) {
508668
+ const markup = [];
508669
+ for (const block of snapshot3.blocks) {
508670
+ markup.push(block.leadingXml, "<w:p>");
508671
+ for (const value3 of Object.values(block.pPr))
508672
+ markup.push(preservedXml(value3));
508673
+ for (const atom of block.atoms)
508674
+ markup.push(atom.xml);
508675
+ for (const run of block.runs)
508676
+ for (const value3 of Object.values(run.attributes))
508677
+ markup.push(preservedXml(value3));
508678
+ markup.push("</w:p>", block.paragraphInsertBoundary?.xml ?? "", block.trailingXml ?? "");
508679
+ }
508680
+ markup.push(snapshot3.meta.trailingXml);
508681
+ return markup.join("");
508682
+ }
508683
+ var XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>', ROOT_PREFIX_BYTES, TEXT_DECODER11, STORY_ROOTS, EVIDENCE_BY_ROOM, STORY_BOOTSTRAPS_BY_ROOM, RECOVERED_WRAPPERS_BY_ROOM;
508627
508684
  var init_older_room_namespaces = __esm(() => {
508628
508685
  init_sd_document_session_internal();
508629
508686
  init_constants2();
@@ -508645,6 +508702,7 @@ var init_older_room_namespaces = __esm(() => {
508645
508702
  };
508646
508703
  EVIDENCE_BY_ROOM = new WeakMap;
508647
508704
  STORY_BOOTSTRAPS_BY_ROOM = new WeakMap;
508705
+ RECOVERED_WRAPPERS_BY_ROOM = new WeakMap;
508648
508706
  });
508649
508707
 
508650
508708
  // ../../../v2/collaboration-v2/dist/projection/xml-emission-context.js
@@ -508729,17 +508787,17 @@ class XmlEmissionContext {
508729
508787
  this.events = events;
508730
508788
  }
508731
508789
  }
508732
- function paragraphEmissionNames(context, preservedXml) {
508733
- const plan = planNamespaceBindings(preservedXml, context.source, { fragment: true });
508790
+ function paragraphEmissionNames(context, preservedXml2) {
508791
+ const plan = planNamespaceBindings(preservedXml2, context.source, { fragment: true });
508734
508792
  const bindings2 = { ...context.source, ...plan.bindings };
508735
508793
  const choose = (preferred, namespace) => {
508736
- if (bindings2[preferred] === namespace && !new RegExp(`xmlns:${preferred}\\s*=`).test(preservedXml))
508794
+ if (bindings2[preferred] === namespace && !new RegExp(`xmlns:${preferred}\\s*=`).test(preservedXml2))
508737
508795
  return preferred;
508738
- const existing = Object.keys(bindings2).sort().find((prefix3) => prefix3.length > 0 && bindings2[prefix3] === namespace && !preservedXml.includes(`xmlns:${prefix3}`));
508796
+ const existing = Object.keys(bindings2).sort().find((prefix3) => prefix3.length > 0 && bindings2[prefix3] === namespace && !preservedXml2.includes(`xmlns:${prefix3}`));
508739
508797
  if (existing)
508740
508798
  return existing;
508741
508799
  let prefix2 = `sd${preferred}`;
508742
- for (let suffix = 1;prefix2 in bindings2 || preservedXml.includes(`${prefix2}:`); suffix += 1)
508800
+ for (let suffix = 1;prefix2 in bindings2 || preservedXml2.includes(`${prefix2}:`); suffix += 1)
508743
508801
  prefix2 = `sd${preferred}${suffix}`;
508744
508802
  bindings2[prefix2] = namespace;
508745
508803
  return prefix2;
@@ -508950,9 +509008,10 @@ function materializeProjectionInternal(input, recovery) {
508950
509008
  rootDoc: input.rootDoc,
508951
509009
  storyKind: storyKindHint,
508952
509010
  sourceSha256: roomSourceSha256,
508953
- evidence: namespaceEvidence
509011
+ evidence: namespaceEvidence,
509012
+ content: { shardId: handle.shardId, rescan: previous3 === undefined, snapshot: () => readStorySnapshot(readTarget) }
508954
509013
  });
508955
- const sourceBootstrapDigest = meta3.get(STORY_META_KEY.storyKind) === "header" && bootstrap?.sourceStoryDigest && typeof bootstrap.sourceXml === "string" ? canonicalDigest([bootstrap.sourceStoryDigest, bootstrap.sourceXml]) : undefined;
509014
+ const sourceBootstrapDigest = meta3.get(STORY_META_KEY.storyKind) === "header" && bootstrap?.sourceStoryDigest && typeof bootstrap.sourceXml === "string" ? headerSourceBootstrapDigest(bootstrap) : undefined;
508956
509015
  if (sourceBootstrapDigest) {
508957
509016
  sourceBootstrapDigests.set(partUriHint, sourceBootstrapDigest);
508958
509017
  if (previous3?.sourceBootstrapDigest !== sourceBootstrapDigest)
@@ -508977,7 +509036,7 @@ function materializeProjectionInternal(input, recovery) {
508977
509036
  useBootstrapSourceXml = false;
508978
509037
  retainedProjectionStatistics.syntheticStories++;
508979
509038
  }
508980
- if (previous3 && sourceBootstrapDigest && bootstrap?.sourceStoryDigest && previous3.xml === bootstrap.sourceXml && syntheticAtoms.size === 0 && canonicalDigest(readStorySnapshot(readTarget)) === bootstrap.sourceStoryDigest) {
509039
+ if (previous3 && sourceBootstrapDigest && dirtyStoryShardIds.has(handle.shardId) && bootstrap?.sourceStoryDigest && previous3.xml === bootstrap.sourceXml && syntheticAtoms.size === 0 && canonicalDigest(readStorySnapshot(readTarget)) === bootstrap.sourceStoryDigest) {
508981
509040
  stories.push(previous3);
508982
509041
  continue;
508983
509042
  }
@@ -509828,6 +509887,19 @@ function projectedTrailingStart(story, trailingXml, bootstrap) {
509828
509887
  const tableEnd = (story.tableStructuralOverlays ?? []).reduce((end, overlay) => overlay.xmlStart < paragraphEnd && (overlay.ownedXmlEnd ?? overlay.xmlEnd) > end ? overlay.ownedXmlEnd ?? overlay.xmlEnd : end, paragraphEnd);
509829
509888
  return trailingXml.startsWith(story.xml.slice(paragraphEnd, tableEnd)) ? paragraphEnd : tableEnd;
509830
509889
  }
509890
+ function headerSourceBootstrapDigest(bootstrap) {
509891
+ const cached2 = HEADER_SOURCE_BOOTSTRAP_DIGESTS.get(bootstrap);
509892
+ if (cached2 && cached2.sourceStoryDigest === bootstrap.sourceStoryDigest && cached2.sourceXml === bootstrap.sourceXml) {
509893
+ return cached2.digest;
509894
+ }
509895
+ const digest6 = canonicalDigest([bootstrap.sourceStoryDigest, bootstrap.sourceXml]);
509896
+ HEADER_SOURCE_BOOTSTRAP_DIGESTS.set(bootstrap, {
509897
+ sourceStoryDigest: bootstrap.sourceStoryDigest,
509898
+ sourceXml: bootstrap.sourceXml,
509899
+ digest: digest6
509900
+ });
509901
+ return digest6;
509902
+ }
509831
509903
  function resolveStoryBootstrap(handle, replacementSource, sourceEnvelope, deflatedSource, legacyEnvelope, olderRoom) {
509832
509904
  if (typeof replacementSource === "object" && replacementSource !== null) {
509833
509905
  return replacementSource;
@@ -509838,7 +509910,7 @@ function resolveStoryBootstrap(handle, replacementSource, sourceEnvelope, deflat
509838
509910
  return local2 ?? legacyEnvelope;
509839
509911
  if (local2 && !isUnrelatedLocalSource(local2, olderRoom.sourceSha256))
509840
509912
  return local2;
509841
- return legacyEnvelope ?? olderRoomStoryBootstrap(olderRoom.rootDoc, olderRoom.storyKind, olderRoom.evidence()) ?? local2;
509913
+ return legacyEnvelope ?? olderRoomStoryBootstrap(olderRoom.rootDoc, olderRoom.storyKind, olderRoom.evidence(), olderRoom.content) ?? local2;
509842
509914
  }
509843
509915
  if (legacyEnvelope?.overridesSourceEnvelope)
509844
509916
  return legacyEnvelope;
@@ -512546,8 +512618,8 @@ function serializeProjectedBlockXml(block, extraAtoms = [], context) {
512546
512618
  return `${block.leadingXml}${serializeBlockXml(block, extraAtoms, context)}${block.trailingXml ?? ""}`;
512547
512619
  }
512548
512620
  function serializeBlockXml(block, extraAtoms = [], context = { inherited: CANONICAL_NAMESPACES, source: CANONICAL_NAMESPACES }) {
512549
- const preservedXml = Object.values(block.pPr).join("") + block.atoms.map((atom) => atom.xml).join("") + block.runs.map((run) => Object.values(run.attributes).join("")).join("");
512550
- const { word: w, word2010: w14, declarations } = paragraphEmissionNames(context, preservedXml);
512621
+ const preservedXml2 = Object.values(block.pPr).join("") + block.atoms.map((atom) => atom.xml).join("") + block.runs.map((run) => Object.values(run.attributes).join("")).join("");
512622
+ const { word: w, word2010: w14, declarations } = paragraphEmissionNames(context, preservedXml2);
512551
512623
  const sb = [];
512552
512624
  const attrs = [`${w14}:paraId="${xmlEscape(block.blockId)}"`];
512553
512625
  if (block.rsidR)
@@ -513642,7 +513714,7 @@ function rememberTextLocalStorySnapshot(story, target, snapshot3, validated2, bo
513642
513714
  snapshot: snapshot3
513643
513715
  });
513644
513716
  }
513645
- var WORD_ML_NS2 = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"', WORD_ML_2010_NS = 'xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"', STORY_ROOT_NS, TEXT_DECODER12, STORY_BLOCK_INDEX_CACHE, STORY_XML_COORDINATES, SYNTHETIC_PARAGRAPH_BLOCK_ID_PREFIX4 = "__sd:paragraph:", UTF8_ENCODER4, SOURCE_XML_BYTE_ALIGNED_CACHE, IMPORTED_STORY_BOOTSTRAPS, XML_EMISSION_CONTEXTS, CONTENT_CONTROL_TOPOLOGIES, PROJECTED_NAMESPACE_CONTEXTS, RETAINED_TEXT_PROJECTIONS, retainedProjectionStatistics, PARAGRAPH_LOCAL_STORY_SNAPSHOTS, GENERATED_STORY_ROOTS, ENVELOPE_EMISSION_CONTEXTS, PARAGRAPH_PROPERTY_ORDER, RUN_PROPERTY_CONTENT_LOCAL_NAMES, TEXT_LOCAL_STORY_SNAPSHOTS;
513717
+ var WORD_ML_NS2 = 'xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"', WORD_ML_2010_NS = 'xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"', STORY_ROOT_NS, TEXT_DECODER12, STORY_BLOCK_INDEX_CACHE, STORY_XML_COORDINATES, SYNTHETIC_PARAGRAPH_BLOCK_ID_PREFIX4 = "__sd:paragraph:", UTF8_ENCODER4, SOURCE_XML_BYTE_ALIGNED_CACHE, IMPORTED_STORY_BOOTSTRAPS, XML_EMISSION_CONTEXTS, CONTENT_CONTROL_TOPOLOGIES, PROJECTED_NAMESPACE_CONTEXTS, RETAINED_TEXT_PROJECTIONS, retainedProjectionStatistics, PARAGRAPH_LOCAL_STORY_SNAPSHOTS, HEADER_SOURCE_BOOTSTRAP_DIGESTS, GENERATED_STORY_ROOTS, ENVELOPE_EMISSION_CONTEXTS, PARAGRAPH_PROPERTY_ORDER, RUN_PROPERTY_CONTENT_LOCAL_NAMES, TEXT_LOCAL_STORY_SNAPSHOTS;
513646
513718
  var init_materialize = __esm(() => {
513647
513719
  init_retained_story();
513648
513720
  init_package_part();
@@ -513685,6 +513757,7 @@ var init_materialize = __esm(() => {
513685
513757
  RETAINED_TEXT_PROJECTIONS = new WeakMap;
513686
513758
  retainedProjectionStatistics = { attempts: 0, syntheticStories: 0, overlays: 0, merges: 0, controls: 0, spans: 0, order: 0, admitted: 0 };
513687
513759
  PARAGRAPH_LOCAL_STORY_SNAPSHOTS = new WeakMap;
513760
+ HEADER_SOURCE_BOOTSTRAP_DIGESTS = new WeakMap;
513688
513761
  GENERATED_STORY_ROOTS = {
513689
513762
  header: "w:hdr",
513690
513763
  footer: "w:ftr",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/mcp",
3
- "version": "1.13.0-next.13",
3
+ "version": "1.13.0-next.17",
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.26.0-next.13",
27
+ "@superdoc/sdk": "2.26.0-next.17",
28
28
  "debug": "^4.4.3",
29
29
  "zod": "^4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "superdoc": "2.29.0-next.13",
33
- "@superdoc/docx-engine": "0.28.0-next.13",
32
+ "superdoc": "2.29.0-next.17",
33
+ "@superdoc/docx-engine": "0.28.0-next.16",
34
34
  "@superdoc/document-api": "0.1.0-alpha.0",
35
35
  "@types/bun": "^1.3.8",
36
36
  "@types/node": "22.19.2",