@superdoc/mcp 1.7.1-next.4 → 1.7.1-next.5
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 +14 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31600,7 +31600,7 @@ var init_host = __esm(() => {
|
|
|
31600
31600
|
});
|
|
31601
31601
|
|
|
31602
31602
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
31603
|
-
var SDK_VERSION = "2.20.1-next.
|
|
31603
|
+
var SDK_VERSION = "2.20.1-next.5";
|
|
31604
31604
|
|
|
31605
31605
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31606
31606
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -388423,15 +388423,27 @@ function projectTrackedChanges(context) {
|
|
|
388423
388423
|
});
|
|
388424
388424
|
}
|
|
388425
388425
|
}
|
|
388426
|
+
const capturedFormattingKeys = new Set;
|
|
388426
388427
|
for (const partUri of sortedParts(catalog.formattingByPart)) {
|
|
388427
388428
|
const fragments = catalog.formattingByPart.get(partUri) ?? [];
|
|
388428
388429
|
for (const f of [...fragments].sort((a, b) => a.byteStart - b.byteStart)) {
|
|
388430
|
+
if (capturedFormattingKeys.has(f.entityKey))
|
|
388431
|
+
continue;
|
|
388432
|
+
capturedFormattingKeys.add(f.entityKey);
|
|
388429
388433
|
const author = f.author?.name ?? "";
|
|
388434
|
+
const group = [...catalog.formattingByKey.get(f.entityKey) ?? [f]].sort((a, b) => a.partUri.localeCompare(b.partUri) || a.byteStart - b.byteStart);
|
|
388435
|
+
const contentSignature = group.length === 1 ? digest3(`subtype:${f.subtype}#author:${author}#date:${f.date}#before:${f.beforeInnerXml}#after:${f.afterInnerXml}`) : digest3(JSON.stringify(group.map((member) => [
|
|
388436
|
+
member.subtype,
|
|
388437
|
+
member.author?.name ?? "",
|
|
388438
|
+
member.date,
|
|
388439
|
+
member.beforeInnerXml,
|
|
388440
|
+
member.afterInnerXml
|
|
388441
|
+
])));
|
|
388430
388442
|
entries.push({
|
|
388431
388443
|
key: f.entityKey,
|
|
388432
388444
|
stableKey: f.entityKey,
|
|
388433
388445
|
semanticKey: `format:${f.subtype}|${author}`,
|
|
388434
|
-
contentSignature
|
|
388446
|
+
contentSignature,
|
|
388435
388447
|
ordinal: ordinal++,
|
|
388436
388448
|
label: `formatting revision ${f.subtype}`
|
|
388437
388449
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.7.1-next.
|
|
3
|
+
"version": "1.7.1-next.5",
|
|
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.20.1-next.
|
|
27
|
+
"@superdoc/sdk": "2.20.1-next.5",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.23.1-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.22.1-next.
|
|
32
|
+
"superdoc": "2.23.1-next.5",
|
|
33
|
+
"@superdoc/docx-engine": "0.22.1-next.5",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|
|
36
36
|
"@types/node": "22.19.2",
|