@superdoc/mcp 1.9.0-next.6 → 1.9.0-next.7
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 +13 -13
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31620,7 +31620,7 @@ var init_host = __esm(() => {
|
|
|
31620
31620
|
});
|
|
31621
31621
|
|
|
31622
31622
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
31623
|
-
var SDK_VERSION = "2.22.0-next.
|
|
31623
|
+
var SDK_VERSION = "2.22.0-next.7";
|
|
31624
31624
|
|
|
31625
31625
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31626
31626
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -127497,7 +127497,7 @@ function contextKey(value) {
|
|
|
127497
127497
|
}
|
|
127498
127498
|
function memoCanonicalXmlAnalysis(input, compute) {
|
|
127499
127499
|
const frame = activeFrame;
|
|
127500
|
-
if (!frame || frame.cold || frame.retained?.released || input.xml.length > MAX_WINDOW_CHARACTERS)
|
|
127500
|
+
if (!frame || frame.cold || frame.retained?.released || input.xml.length > MAX_WINDOW_CHARACTERS || input.kind === "paragraph-inline" && input.xml.length > MAX_INLINE_WINDOW_CHARACTERS)
|
|
127501
127501
|
return compute(input.namespaceBindings);
|
|
127502
127502
|
const namespaceKey = issuedNamespaceKeys.get(input.namespaceBindings);
|
|
127503
127503
|
if (namespaceKey === undefined)
|
|
@@ -127658,7 +127658,7 @@ function memoRetainedAnalysis(cache, key, xml, compute) {
|
|
|
127658
127658
|
cache.outputUnits += resources.units;
|
|
127659
127659
|
return detached;
|
|
127660
127660
|
}
|
|
127661
|
-
var activeFrame = null, MAX_WINDOW_CHARACTERS, MAX_RETAINED_CHARACTERS, MAX_ENTRIES = 32, MAX_RETAINED_OUTPUT_UNITS = 262144, MAX_RETAINED_OUTPUT_BYTES, issuedNamespaceKeys, retainedAnalyses, releasedOwners, CANONICAL_XML_EMPTY_NAMESPACE_BINDINGS;
|
|
127661
|
+
var activeFrame = null, MAX_WINDOW_CHARACTERS, MAX_INLINE_WINDOW_CHARACTERS = 512, MAX_RETAINED_CHARACTERS, MAX_ENTRIES = 32, MAX_RETAINED_OUTPUT_UNITS = 262144, MAX_RETAINED_OUTPUT_BYTES, issuedNamespaceKeys, retainedAnalyses, releasedOwners, CANONICAL_XML_EMPTY_NAMESPACE_BINDINGS;
|
|
127662
127662
|
var init_canonical_xml_analysis_frame = __esm(() => {
|
|
127663
127663
|
MAX_WINDOW_CHARACTERS = 512 * 1024;
|
|
127664
127664
|
MAX_RETAINED_CHARACTERS = 2 * 1024 * 1024;
|
|
@@ -194569,6 +194569,16 @@ function issueStructuralTrackedCarrierPartition(state, input) {
|
|
|
194569
194569
|
const ownership = readResidentParagraphOwnership(state, paragraph.blockId);
|
|
194570
194570
|
if (!ownership || paragraph.storyId !== state.mainStoryId || input.resultParagraphs.length !== 2 || input.beforeXml.length > 512 * 1024 || input.afterXml.length > 512 * 1024)
|
|
194571
194571
|
return null;
|
|
194572
|
+
const local = buildTrackedChangeCatalogFromPartXml({
|
|
194573
|
+
scanScope: "bounded-source-window",
|
|
194574
|
+
xml: input.beforeXml,
|
|
194575
|
+
partUri: paragraph.partUri,
|
|
194576
|
+
storyId: paragraph.storyId,
|
|
194577
|
+
namespaceBindings: ownership.namespaceBindings
|
|
194578
|
+
});
|
|
194579
|
+
const sourceKeys2 = [...local.byRsid.keys()];
|
|
194580
|
+
if (!sourceKeys2.length)
|
|
194581
|
+
return null;
|
|
194572
194582
|
const inlineMaps = new Map;
|
|
194573
194583
|
const readInline = (xml) => {
|
|
194574
194584
|
let value = inlineMaps.get(xml);
|
|
@@ -194597,16 +194607,6 @@ function issueStructuralTrackedCarrierPartition(state, input) {
|
|
|
194597
194607
|
const renderedPayloads = renderedParagraphs.map((xml) => inlinePayload(xml, ownership.namespaceBindings, readInline, lineage, input.authoredMarkWordId));
|
|
194598
194608
|
if (!before || resultPayloads.some((payload) => !payload) || JSON.stringify(compactPayload(before)) !== JSON.stringify(compactPayload(resultPayloads.flatMap((payload) => payload))) || renderedPayloads.some((payload) => !payload) || JSON.stringify(compactPayload(renderedPayloads.flatMap((payload) => payload))) !== JSON.stringify(compactPayload(before)) || !proveClosedCommentAnchorPreservation(input.beforeXml, input.afterXml, ownership.namespaceBindings))
|
|
194599
194609
|
return null;
|
|
194600
|
-
const local = buildTrackedChangeCatalogFromPartXml({
|
|
194601
|
-
scanScope: "bounded-source-window",
|
|
194602
|
-
xml: input.beforeXml,
|
|
194603
|
-
partUri: paragraph.partUri,
|
|
194604
|
-
storyId: paragraph.storyId,
|
|
194605
|
-
namespaceBindings: ownership.namespaceBindings
|
|
194606
|
-
});
|
|
194607
|
-
const sourceKeys2 = [...local.byRsid.keys()];
|
|
194608
|
-
if (!sourceKeys2.length)
|
|
194609
|
-
return null;
|
|
194610
194610
|
for (const mode of ["paired", "independent"]) {
|
|
194611
194611
|
const view = readResidentReviewCatalog(state, mode, sourceKeys2, true);
|
|
194612
194612
|
if (!view || !componentFits(view, paragraph.byteStart, paragraph.byteEnd, paragraph.partUri, paragraph.storyId))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.9.0-next.
|
|
3
|
+
"version": "1.9.0-next.7",
|
|
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.22.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.22.0-next.7",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.25.0-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.24.0-next.
|
|
32
|
+
"superdoc": "2.25.0-next.7",
|
|
33
|
+
"@superdoc/docx-engine": "0.24.0-next.7",
|
|
34
34
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
35
35
|
"@types/bun": "^1.3.8",
|
|
36
36
|
"@types/node": "22.19.2",
|