@superdoc/mcp 1.11.0-next.5 → 1.11.0-next.6
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/dist/index.js +11 -8
- 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.24.0-next.
|
|
31633
|
+
var SDK_VERSION = "2.24.0-next.6";
|
|
31634
31634
|
|
|
31635
31635
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31636
31636
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -455197,7 +455197,8 @@ function mergeNumberingDefinitions(currentXml3, sourceXml) {
|
|
|
455197
455197
|
const sourceAbstractNums = extractDefinitions(sourceXml, "w:abstractNum");
|
|
455198
455198
|
const sourceNums = extractDefinitions(sourceXml, "w:num");
|
|
455199
455199
|
const idMappings = [];
|
|
455200
|
-
const
|
|
455200
|
+
const abstractAdditions = [];
|
|
455201
|
+
const numAdditions = [];
|
|
455201
455202
|
const abstractRemaps = new Map;
|
|
455202
455203
|
if (usedAbstractIds.size > 0 && !usedAbstractIds.has("0")) {
|
|
455203
455204
|
usedAbstractIds.add("0");
|
|
@@ -455218,7 +455219,7 @@ function mergeNumberingDefinitions(currentXml3, sourceXml) {
|
|
|
455218
455219
|
for (const def of sourceAbstractNums) {
|
|
455219
455220
|
const id = readIdAttr(def, "w:abstractNumId");
|
|
455220
455221
|
if (id === null) {
|
|
455221
|
-
|
|
455222
|
+
abstractAdditions.push(def);
|
|
455222
455223
|
continue;
|
|
455223
455224
|
}
|
|
455224
455225
|
let finalId = id;
|
|
@@ -455231,7 +455232,7 @@ function mergeNumberingDefinitions(currentXml3, sourceXml) {
|
|
|
455231
455232
|
usedAbstractIds.add(id);
|
|
455232
455233
|
}
|
|
455233
455234
|
abstractRemaps.set(id, finalId);
|
|
455234
|
-
|
|
455235
|
+
abstractAdditions.push(nextDef);
|
|
455235
455236
|
}
|
|
455236
455237
|
for (const def of sourceNums) {
|
|
455237
455238
|
const id = readIdAttr(def, "w:numId");
|
|
@@ -455251,12 +455252,12 @@ function mergeNumberingDefinitions(currentXml3, sourceXml) {
|
|
|
455251
455252
|
if (abstractRef !== null && remappedAbstractRef) {
|
|
455252
455253
|
nextDef = replaceChildValAttr(nextDef, "w:abstractNumId", remappedAbstractRef);
|
|
455253
455254
|
}
|
|
455254
|
-
|
|
455255
|
+
numAdditions.push(nextDef);
|
|
455255
455256
|
}
|
|
455257
|
+
const additions = [...abstractAdditions, ...numAdditions];
|
|
455256
455258
|
if (additions.length === 0) {
|
|
455257
455259
|
return { xml: currentXml3, changed: false, idMappings };
|
|
455258
455260
|
}
|
|
455259
|
-
const additionsXml = additions.join("");
|
|
455260
455261
|
const reconciled = reconcileAdoptedFragmentNamespaces(currentXml3, sourceXml, additions);
|
|
455261
455262
|
if ("error" in reconciled)
|
|
455262
455263
|
return reconciled;
|
|
@@ -455265,8 +455266,10 @@ function mergeNumberingDefinitions(currentXml3, sourceXml) {
|
|
|
455265
455266
|
if (!rootClose) {
|
|
455266
455267
|
return { xml: currentXml3, changed: false, idMappings };
|
|
455267
455268
|
}
|
|
455268
|
-
const
|
|
455269
|
-
const
|
|
455269
|
+
const children3 = extractTopLevelXmlElements(rootXml);
|
|
455270
|
+
const abstractAt = children3.find(({ localName: localName2 }) => localName2 === "num" || localName2 === "numIdMac")?.start ?? rootClose.index;
|
|
455271
|
+
const numAt = children3.find(({ localName: localName2 }) => localName2 === "numIdMac")?.start ?? rootClose.index;
|
|
455272
|
+
const nextXml = `${rootXml.slice(0, abstractAt)}${abstractAdditions.join("")}` + `${rootXml.slice(abstractAt, numAt)}${numAdditions.join("")}${rootXml.slice(numAt)}`;
|
|
455270
455273
|
return { xml: nextXml, changed: true, idMappings };
|
|
455271
455274
|
}
|
|
455272
455275
|
function scanTagEnd(xml, start) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.11.0-next.
|
|
3
|
+
"version": "1.11.0-next.6",
|
|
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.24.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.24.0-next.6",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.27.0-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.26.0-next.
|
|
32
|
+
"superdoc": "2.27.0-next.6",
|
|
33
|
+
"@superdoc/docx-engine": "0.26.0-next.6",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|
|
36
36
|
"@types/node": "22.19.2",
|