gm-plugkit 2.0.1952 → 2.0.1953

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.1952",
3
+ "version": "2.0.1953",
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": {
@@ -4672,7 +4672,7 @@ async function runSpoolWatcher(instance, spoolDir) {
4672
4672
  setInterval(() => { try { scanStalledTurns(); } catch (_) {} }, 30000);
4673
4673
  writeStatus();
4674
4674
 
4675
- setTimeout(() => {
4675
+ setTimeout(async () => {
4676
4676
  try {
4677
4677
  // The boot warmup's codesearch triggers a codeinsight reindex + full
4678
4678
  // in-wasm embed of the project when the stored digest is absent/stale.
@@ -4718,6 +4718,7 @@ async function runSpoolWatcher(instance, spoolDir) {
4718
4718
  if (deferred === 0) break;
4719
4719
  if (deferred === lastDeferred) { stagnant++; if (stagnant >= 4) break; } else { stagnant = 0; }
4720
4720
  lastDeferred = deferred;
4721
+ await new Promise((r) => setImmediate(r));
4721
4722
  }
4722
4723
  writeStatus();
4723
4724
  logEvent('plugkit', 'boot.index-warmup', { ms: Date.now() - t0, passes, converged: lastDeferred === -1 || lastDeferred === 0 });