gm-plugkit 2.0.1297 → 2.0.1298

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1297",
3
+ "version": "2.0.1298",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1364,6 +1364,15 @@ function makeHostFunctions(instanceRef) {
1364
1364
  }
1365
1365
  },
1366
1366
 
1367
+ host_vec_embed: (textPtr, textLen, outPtr, outLen) => {
1368
+ try {
1369
+ if (typeof globalThis.__hostEmbedSync === 'function') {
1370
+ return globalThis.__hostEmbedSync(textPtr, textLen, outPtr, outLen, instanceRef.value);
1371
+ }
1372
+ } catch (_) {}
1373
+ return -1;
1374
+ },
1375
+
1367
1376
  host_vec_search: (qPtr, qLen, k) => {
1368
1377
  try {
1369
1378
  const raw = readWasmStr(instanceRef.value, qPtr, qLen);