@thinkingos/vsl-mcp-server 1.3.2 → 1.3.3
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 +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2587,6 +2587,14 @@ import { isVslDiff } from "@thinkingos/vsl-sdk";
|
|
|
2587
2587
|
// src/utils/injectVslIds.ts
|
|
2588
2588
|
function buildInjectionScript() {
|
|
2589
2589
|
return (objects, semanticMap) => {
|
|
2590
|
+
if (!objects || !Array.isArray(objects)) {
|
|
2591
|
+
console.warn("[VSL] injectVslIds: objects is undefined or not an array, skipping injection");
|
|
2592
|
+
return;
|
|
2593
|
+
}
|
|
2594
|
+
if (!semanticMap || typeof semanticMap !== "object") {
|
|
2595
|
+
console.warn("[VSL] injectVslIds: semanticMap is undefined or not an object, using empty map");
|
|
2596
|
+
semanticMap = {};
|
|
2597
|
+
}
|
|
2590
2598
|
function parseVslId(id) {
|
|
2591
2599
|
const match = id.match(/^([a-z][a-z0-9]*(?:_[a-z][a-z0-9]*)*)_(\d+(?:_\d+)*)$/);
|
|
2592
2600
|
if (!match) return null;
|
|
@@ -6428,7 +6436,7 @@ var SessionManager = class {
|
|
|
6428
6436
|
};
|
|
6429
6437
|
|
|
6430
6438
|
// src/version.ts
|
|
6431
|
-
var VSL_MCP_SERVER_VERSION = "1.3.
|
|
6439
|
+
var VSL_MCP_SERVER_VERSION = "1.3.3";
|
|
6432
6440
|
|
|
6433
6441
|
// src/index.ts
|
|
6434
6442
|
async function main() {
|