klypix-mcp 1.67.1 → 1.67.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.
package/package.json
CHANGED
package/src/brain-semantic.mjs
CHANGED
|
@@ -58,7 +58,10 @@ export function semanticRuntimeEntryIfSafe(transformersEntry) {
|
|
|
58
58
|
try {
|
|
59
59
|
const transformers = findPackageManifest(transformersEntry, '@huggingface/transformers');
|
|
60
60
|
if (!transformers) return null;
|
|
61
|
-
|
|
61
|
+
// Resolve from the exact executable bundle entry. Resolving from the
|
|
62
|
+
// package manifest misses a Sharp installation shadowed under dist/
|
|
63
|
+
// even though that is the copy the ESM bundle itself will import.
|
|
64
|
+
const sharpEntry = createRequire(transformersEntry).resolve('sharp');
|
|
62
65
|
const sharp = findPackageManifest(sharpEntry, 'sharp');
|
|
63
66
|
return sharp && isSafeSharpVersion(sharp.manifest.version) ? transformersEntry : null;
|
|
64
67
|
} catch { return null; }
|
package/src/semantic-memory.mjs
CHANGED
|
@@ -263,7 +263,10 @@ export function semanticRuntimeEntryIfSafe(transformersEntry) {
|
|
|
263
263
|
try {
|
|
264
264
|
const transformers = findPackageManifest(transformersEntry, '@huggingface/transformers');
|
|
265
265
|
if (!transformers) return null;
|
|
266
|
-
|
|
266
|
+
// Resolve from the exact executable bundle entry. Resolving from the
|
|
267
|
+
// package manifest misses a Sharp installation shadowed under dist/
|
|
268
|
+
// even though that is the copy the ESM bundle itself will import.
|
|
269
|
+
const sharpEntry = createRequire(transformersEntry).resolve('sharp');
|
|
267
270
|
const sharp = findPackageManifest(sharpEntry, 'sharp');
|
|
268
271
|
return sharp && isSafeSharpVersion(sharp.manifest.version) ? transformersEntry : null;
|
|
269
272
|
} catch { return null; }
|