@superdoc/mcp 1.5.0-next.3 → 1.5.0-next.4
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 +7 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31443,7 +31443,7 @@ var init_host = __esm(() => {
|
|
|
31443
31443
|
});
|
|
31444
31444
|
|
|
31445
31445
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
31446
|
-
var SDK_VERSION = "2.18.0-next.
|
|
31446
|
+
var SDK_VERSION = "2.18.0-next.4";
|
|
31447
31447
|
|
|
31448
31448
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31449
31449
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -435732,6 +435732,7 @@ function normalizeLiveTrackedWrapperOverlap(atoms) {
|
|
|
435732
435732
|
return [...atoms];
|
|
435733
435733
|
let nextSequence = atoms.reduce((max5, atom) => Math.max(max5, atom.sequence), -1) + 1;
|
|
435734
435734
|
const syntheticAtoms = [];
|
|
435735
|
+
const coveredParentEdges = new Set;
|
|
435735
435736
|
for (const [parentKey, children2] of foreignChildrenByParent) {
|
|
435736
435737
|
const parent = spansByKey.get(parentKey);
|
|
435737
435738
|
if (!parent)
|
|
@@ -435746,6 +435747,8 @@ function normalizeLiveTrackedWrapperOverlap(atoms) {
|
|
|
435746
435747
|
const firstChild = orderedChildren[0];
|
|
435747
435748
|
if (firstChild.startOffset > parent.startOffset) {
|
|
435748
435749
|
syntheticAtoms.push(makeSyntheticTrackedWrapperAtom(parent.closeAtom, firstChild.startOffset, 90, nextSequence++));
|
|
435750
|
+
} else {
|
|
435751
|
+
coveredParentEdges.add(parent.openAtom);
|
|
435749
435752
|
}
|
|
435750
435753
|
for (let index2 = 0;index2 < orderedChildren.length - 1; index2 += 1) {
|
|
435751
435754
|
const current = orderedChildren[index2];
|
|
@@ -435758,11 +435761,11 @@ function normalizeLiveTrackedWrapperOverlap(atoms) {
|
|
|
435758
435761
|
const lastChild = orderedChildren[orderedChildren.length - 1];
|
|
435759
435762
|
if (lastChild.endOffset < parent.endOffset) {
|
|
435760
435763
|
syntheticAtoms.push(makeSyntheticTrackedWrapperAtom(parent.openAtom, lastChild.endOffset, 110, nextSequence++));
|
|
435764
|
+
} else {
|
|
435765
|
+
coveredParentEdges.add(parent.closeAtom);
|
|
435761
435766
|
}
|
|
435762
435767
|
}
|
|
435763
|
-
|
|
435764
|
-
return [...atoms];
|
|
435765
|
-
return sortProjectedAtoms([...atoms, ...syntheticAtoms]);
|
|
435768
|
+
return sortProjectedAtoms([...atoms.filter((atom) => !coveredParentEdges.has(atom)), ...syntheticAtoms]);
|
|
435766
435769
|
}
|
|
435767
435770
|
function collectLiveTrackedWrapperSpans(atoms) {
|
|
435768
435771
|
const spans = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.5.0-next.
|
|
3
|
+
"version": "1.5.0-next.4",
|
|
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.18.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.18.0-next.4",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.21.0-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.20.0-next.
|
|
32
|
+
"superdoc": "2.21.0-next.4",
|
|
33
|
+
"@superdoc/docx-engine": "0.20.0-next.4",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|
|
36
36
|
"@types/node": "22.19.2",
|