gm-skill 2.0.1358 → 2.0.1359

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1358",
3
+ "version": "2.0.1359",
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": {
@@ -2639,12 +2639,26 @@ async function runSpoolWatcher(instance, spoolDir) {
2639
2639
  fs.renameSync(tmp, UPDATE_CHECK_SHARED_CACHE);
2640
2640
  } catch (_) {}
2641
2641
  }
2642
+ let _lastKnownUpdateError = null;
2643
+ function logUpdateCheckError(fields) {
2644
+ const key = `${fields.status || ''}:${fields.error || ''}`;
2645
+ if (_lastKnownUpdateError === key) return;
2646
+ _lastKnownUpdateError = key;
2647
+ logEvent('plugkit', 'update.check.error', fields);
2648
+ }
2649
+ function clearUpdateCheckError(installed) {
2650
+ if (_lastKnownUpdateError !== null) {
2651
+ logEvent('plugkit', 'update.check.recovered', { installed, was: _lastKnownUpdateError });
2652
+ _lastKnownUpdateError = null;
2653
+ }
2654
+ }
2642
2655
  function applyUpdateCheckResult(installed, latest, statusCode) {
2643
2656
  if (statusCode !== 200) {
2644
- logEvent('plugkit', 'update.check.error', { installed, status: statusCode });
2657
+ logUpdateCheckError({ installed, status: statusCode });
2645
2658
  return;
2646
2659
  }
2647
2660
  if (!latest) return;
2661
+ clearUpdateCheckError(installed);
2648
2662
  if (latest === installed) {
2649
2663
  try { fs.unlinkSync(UPDATE_AVAILABLE_PATH); } catch (_) {}
2650
2664
  if (_lastKnownDrift) {
@@ -2715,18 +2729,18 @@ async function runSpoolWatcher(instance, spoolDir) {
2715
2729
  _lastKnownDrift = latest;
2716
2730
  }
2717
2731
  } catch (e) {
2718
- logEvent('plugkit', 'update.check.error', { error: String(e && e.message || e) });
2732
+ logUpdateCheckError({ error: String(e && e.message || e) });
2719
2733
  }
2720
2734
  });
2721
2735
  });
2722
2736
  req.on('timeout', () => {
2723
2737
  req.destroy();
2724
2738
  writeSharedUpdateCache(null, -1);
2725
- logEvent('plugkit', 'update.check.error', { error: 'timeout' });
2739
+ logUpdateCheckError({ error: 'timeout' });
2726
2740
  });
2727
2741
  req.on('error', (e) => {
2728
2742
  writeSharedUpdateCache(null, -2);
2729
- logEvent('plugkit', 'update.check.error', { error: String(e && e.message || e) });
2743
+ logUpdateCheckError({ error: String(e && e.message || e) });
2730
2744
  });
2731
2745
  }
2732
2746
  setTimeout(checkForUpdate, 10_000);
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1358",
3
+ "version": "2.0.1359",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1358",
3
+ "version": "2.0.1359",
4
4
  "description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",