@superdoc/mcp 1.6.0-next.4 → 1.6.0-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 +6 -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.19.0-next.
|
|
31446
|
+
var SDK_VERSION = "2.19.0-next.5";
|
|
31447
31447
|
|
|
31448
31448
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
31449
31449
|
import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
|
|
@@ -255418,7 +255418,7 @@ function prepareHistoryReplayMutation(state, entry, direction, patchGroup) {
|
|
|
255418
255418
|
const controlBytes = controlOwner && state.packageBytes.get(controlOwner.partUri);
|
|
255419
255419
|
const controlPatch = controlOwner && patchGroup.perPart[controlOwner.partUri];
|
|
255420
255420
|
const contentControlRewrite = patchGroup.source.kind === "storySurfaceRewrite" && patchGroup.source.contentControlRewrite && controlBytes && controlPatch ? prepareContentControlRewrite(controlBytes, controlPatch) : null;
|
|
255421
|
-
const
|
|
255421
|
+
const declaredStoryTargetBlockIds = patchGroup.source.kind === "storySurfaceRewrite" || patchGroup.source.kind === "storyFormatMutation" ? [...new Set(patchGroup.source.targetBlockIds)] : [];
|
|
255422
255422
|
const compareParagraphInsertions = entry.preparedReplayInputs?.compareParagraphInsertions ?? [];
|
|
255423
255423
|
const compareInsertedByOperation = new Map(compareParagraphInsertions.map((item) => [item.operationId, item.blockId]));
|
|
255424
255424
|
const targetBlockIds2 = contentControlRewrite ? [...new Set([
|
|
@@ -255429,7 +255429,7 @@ function prepareHistoryReplayMutation(state, entry, direction, patchGroup) {
|
|
|
255429
255429
|
])] : patchGroup.source.kind === "compareApply" ? [...new Set([
|
|
255430
255430
|
...patchGroup.source.bodySteps.map((step2) => compareInsertedByOperation.get(step2.operationId) ?? step2.blockId),
|
|
255431
255431
|
...(entry.preparedReplayInputs?.compareParagraphDeletions ?? []).flatMap((item) => item.affectedBlockIds)
|
|
255432
|
-
])] :
|
|
255432
|
+
])] : declaredStoryTargetBlockIds.length > 0 ? declaredStoryTargetBlockIds : collectPatchGroupTargetBlockIds(patchGroup);
|
|
255433
255433
|
const currentBaseRevisions = {
|
|
255434
255434
|
package: state.packageRevision,
|
|
255435
255435
|
perPart: {}
|
|
@@ -425429,7 +425429,9 @@ function deleteRelationship(doc2, rId) {
|
|
|
425429
425429
|
function listRelationships(doc2) {
|
|
425430
425430
|
const scope = resolvePackagePartScope(doc2);
|
|
425431
425431
|
requireShardKind(scope, PACKAGE_PART_KIND.relationships);
|
|
425432
|
-
const records =
|
|
425432
|
+
const records = scope.records.get(RELATIONSHIPS_KEY);
|
|
425433
|
+
if (!(records instanceof YMap))
|
|
425434
|
+
return [];
|
|
425433
425435
|
const out = [];
|
|
425434
425436
|
records.forEach((value2, key2) => {
|
|
425435
425437
|
const record3 = readRelationshipRecord(records, key2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/mcp",
|
|
3
|
-
"version": "1.6.0-next.
|
|
3
|
+
"version": "1.6.0-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.19.0-next.
|
|
27
|
+
"@superdoc/sdk": "2.19.0-next.5",
|
|
28
28
|
"debug": "^4.4.3",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"superdoc": "2.22.0-next.
|
|
33
|
-
"@superdoc/docx-engine": "0.21.0-next.
|
|
32
|
+
"superdoc": "2.22.0-next.5",
|
|
33
|
+
"@superdoc/docx-engine": "0.21.0-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",
|