gm-plugkit 2.0.1950 → 2.0.1952

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.1950",
3
+ "version": "2.0.1952",
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": {
@@ -5274,18 +5274,23 @@ async function selfHeal(reason) {
5274
5274
 
5275
5275
  async function tryInstantiate(wasmPath) {
5276
5276
  const wasmBuffer = fs.readFileSync(wasmPath);
5277
+ const keepBusy = setInterval(() => { try { _writeStatusBusy(60000); } catch (_) {} }, 15000);
5277
5278
  try { _writeStatusBusy(60000); } catch (_) {}
5278
- const wasmModule = await WebAssembly.compile(wasmBuffer);
5279
- try { _writeStatusBusy(60000); } catch (_) {}
5280
- const instanceRef = { value: null };
5281
- const hostFunctions = makeHostFunctions(instanceRef);
5282
- const importObject = {
5283
- env: hostFunctions,
5284
- wasi_snapshot_preview1: createWasiShim(instanceRef),
5285
- };
5286
- const instance = await WebAssembly.instantiate(wasmModule, importObject);
5287
- instanceRef.value = instance;
5288
- return { instance, instanceRef };
5279
+ try {
5280
+ const wasmModule = await WebAssembly.compile(wasmBuffer);
5281
+ try { _writeStatusBusy(60000); } catch (_) {}
5282
+ const instanceRef = { value: null };
5283
+ const hostFunctions = makeHostFunctions(instanceRef);
5284
+ const importObject = {
5285
+ env: hostFunctions,
5286
+ wasi_snapshot_preview1: createWasiShim(instanceRef),
5287
+ };
5288
+ const instance = await WebAssembly.instantiate(wasmModule, importObject);
5289
+ instanceRef.value = instance;
5290
+ return { instance, instanceRef };
5291
+ } finally {
5292
+ clearInterval(keepBusy);
5293
+ }
5289
5294
  }
5290
5295
 
5291
5296
  let _sharedPlugkit = null;
package/plugkit.version CHANGED
@@ -1 +1 @@
1
- 0.1.892
1
+ 0.1.893