@thinkingos/vsl-mcp-server 1.2.3 → 1.2.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 +19 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2629,11 +2629,17 @@ var ServerSession = class {
|
|
|
2629
2629
|
this.currentDocument = doc;
|
|
2630
2630
|
this.version += 1;
|
|
2631
2631
|
this.scrollContext = null;
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2632
|
+
const currentObjects = doc.objects ?? [];
|
|
2633
|
+
const previousObjects = this.previousDocument?.objects ?? [];
|
|
2634
|
+
const unionObjects = [...currentObjects, ...previousObjects];
|
|
2635
|
+
if (currentObjects.length > 0) {
|
|
2636
|
+
this.idMap = buildIdMap(currentObjects);
|
|
2635
2637
|
} else {
|
|
2636
2638
|
this.idMap = /* @__PURE__ */ new Map();
|
|
2639
|
+
}
|
|
2640
|
+
if (unionObjects.length > 0) {
|
|
2641
|
+
this.reverseIdMap = buildReverseIdMap(unionObjects);
|
|
2642
|
+
} else {
|
|
2637
2643
|
this.reverseIdMap = /* @__PURE__ */ new Map();
|
|
2638
2644
|
}
|
|
2639
2645
|
if (this.onSnapshotChange) {
|
|
@@ -2659,11 +2665,17 @@ var ServerSession = class {
|
|
|
2659
2665
|
this.currentDocument = doc;
|
|
2660
2666
|
this.version += 1;
|
|
2661
2667
|
this.scrollContext = input.scroll ? { ...input.scroll } : null;
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2668
|
+
const currentObjects = doc.objects ?? [];
|
|
2669
|
+
const previousObjects = this.previousDocument?.objects ?? [];
|
|
2670
|
+
const unionObjects = [...currentObjects, ...previousObjects];
|
|
2671
|
+
if (currentObjects.length > 0) {
|
|
2672
|
+
this.idMap = buildIdMap(currentObjects);
|
|
2665
2673
|
} else {
|
|
2666
2674
|
this.idMap = /* @__PURE__ */ new Map();
|
|
2675
|
+
}
|
|
2676
|
+
if (unionObjects.length > 0) {
|
|
2677
|
+
this.reverseIdMap = buildReverseIdMap(unionObjects);
|
|
2678
|
+
} else {
|
|
2667
2679
|
this.reverseIdMap = /* @__PURE__ */ new Map();
|
|
2668
2680
|
}
|
|
2669
2681
|
if (this.onSnapshotChange) {
|
|
@@ -2891,7 +2903,7 @@ var SessionManager = class {
|
|
|
2891
2903
|
};
|
|
2892
2904
|
|
|
2893
2905
|
// src/version.ts
|
|
2894
|
-
var VSL_MCP_SERVER_VERSION = "1.2.
|
|
2906
|
+
var VSL_MCP_SERVER_VERSION = "1.2.5";
|
|
2895
2907
|
|
|
2896
2908
|
// src/index.ts
|
|
2897
2909
|
async function main() {
|