@superdoc/mcp 1.5.0-next.1 → 1.5.0-next.2

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -31330,7 +31330,7 @@ var init_host = __esm(() => {
31330
31330
  });
31331
31331
 
31332
31332
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
31333
- var SDK_VERSION = "2.18.0-next.1";
31333
+ var SDK_VERSION = "2.18.0-next.2";
31334
31334
 
31335
31335
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
31336
31336
  import { accessSync, chmodSync, constants, existsSync, statSync } from "node:fs";
@@ -329881,8 +329881,8 @@ class V2RangesAdapter {
329881
329881
  },
329882
329882
  target,
329883
329883
  preview: {
329884
- text: previewText.length > 200 ? previewText.slice(0, 200) : previewText,
329885
- truncated: previewText.length > 200,
329884
+ text: previewText.length > RANGE_PREVIEW_TEXT_MAX ? previewText.slice(0, RANGE_PREVIEW_TEXT_MAX) : previewText,
329885
+ truncated: previewText.length > RANGE_PREVIEW_TEXT_MAX,
329886
329886
  blocks
329887
329887
  }
329888
329888
  };
@@ -330083,13 +330083,17 @@ function collectBlockPreviews(index2, start, end, context, coordinateSpace) {
330083
330083
  if (!entry)
330084
330084
  break;
330085
330085
  const text4 = readEntryText(entry, context, coordinateSpace);
330086
- out.push({ nodeId: entry.blockId, nodeType: "paragraph", textPreview: text4.slice(0, 80) });
330086
+ out.push({
330087
+ nodeId: entry.blockId,
330088
+ nodeType: "paragraph",
330089
+ textPreview: text4.slice(0, RANGE_BLOCK_PREVIEW_TEXT_MAX)
330090
+ });
330087
330091
  }
330088
330092
  return out;
330089
330093
  }
330090
330094
  function collectPreviewText(context, index2, start, end) {
330091
330095
  let text4 = "";
330092
- for (let i2 = start.ordinal;i2 <= end.ordinal && text4.length < 1000; i2++) {
330096
+ for (let i2 = start.ordinal;i2 <= end.ordinal; i2++) {
330093
330097
  const entry = index2.entries[i2];
330094
330098
  if (!entry)
330095
330099
  break;
@@ -330100,6 +330104,8 @@ function collectPreviewText(context, index2, start, end) {
330100
330104
  if (i2 < end.ordinal)
330101
330105
  text4 += `
330102
330106
  `;
330107
+ if (text4.length > RANGE_PREVIEW_TEXT_MAX)
330108
+ break;
330103
330109
  }
330104
330110
  return text4;
330105
330111
  }
@@ -330238,7 +330244,7 @@ function toBase64Url(base643) {
330238
330244
  function buildOffsetMapForCoordinateSpace(bytes, byteStart, byteEnd, coordinateSpace) {
330239
330245
  return coordinateSpace === "tracked" ? buildSDDocumentSessionInternalTrackedParagraphOffsetMap(bytes, byteStart, byteEnd) : buildSDDocumentSessionInternalParagraphOffsetMap(bytes, byteStart, byteEnd);
330240
330246
  }
330241
- var TD90, V2_RANGE_REF_PREFIX = "v2-range:";
330247
+ var RANGE_PREVIEW_TEXT_MAX = 2000, RANGE_BLOCK_PREVIEW_TEXT_MAX = 200, TD90, V2_RANGE_REF_PREFIX = "v2-range:";
330242
330248
  var init_adapter8 = __esm(() => {
330243
330249
  init_src3();
330244
330250
  init_sd_document_session_internal();
@@ -330246,8 +330252,6 @@ var init_adapter8 = __esm(() => {
330246
330252
  init_story_identity();
330247
330253
  init_story_surface();
330248
330254
  init_v2_search_ref();
330249
- init_sd_document_session_internal();
330250
- init_src3();
330251
330255
  init_document_reader();
330252
330256
  TD90 = new TextDecoder;
330253
330257
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/mcp",
3
- "version": "1.5.0-next.1",
3
+ "version": "1.5.0-next.2",
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.1",
27
+ "@superdoc/sdk": "2.18.0-next.2",
28
28
  "debug": "^4.4.3",
29
29
  "zod": "^4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
- "superdoc": "2.21.0-next.1",
33
- "@superdoc/docx-engine": "0.20.0-next.1",
32
+ "superdoc": "2.21.0-next.2",
33
+ "@superdoc/docx-engine": "0.20.0-next.2",
34
34
  "@superdoc/document-api": "0.1.0-alpha.0",
35
35
  "@types/bun": "^1.3.8",
36
36
  "@types/node": "22.19.2",