gm-skill 2.0.1536 → 2.0.1538

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 +1 @@
1
- 0.1.636
1
+ 0.1.637
@@ -1 +1 @@
1
- 4be259452e64832103a03b53250d83f3f034102aca70c7984a5c7bd942c9aae5 plugkit.wasm
1
+ 0c7d689305fca07017df5c8897fecaa5a9883a3c278e7d32535c42c6731e64e8 plugkit.wasm
@@ -838,10 +838,6 @@ async function ensureReady(opts) {
838
838
  ensureSkillMdFresh();
839
839
  return { ok: true, wasmPath, binaryPath: wasmPath, status: (wrapperUpdated || versionMarkerUpdated) ? 'wrapper-refreshed' : 'already-ready', version: installed };
840
840
  }
841
- if (versionDrift) {
842
- try { killRunningDaemons(`version_drift:${installed}->${targetVersion}`); } catch (_) {}
843
- }
844
-
845
841
  if (targetVersion && targetVersion !== pinnedVersion) {
846
842
  try {
847
843
  const verFilePath = path.join(wrapperDir, 'plugkit.version');
@@ -850,7 +846,24 @@ async function ensureReady(opts) {
850
846
  } catch (e) { log(`could not override plugkit.version: ${e.message}`); }
851
847
  }
852
848
 
853
- const wasmPath = await bootstrap();
849
+ let wasmPath;
850
+ try {
851
+ wasmPath = await bootstrap();
852
+ } catch (bootErr) {
853
+ if (versionDrift && isReady()) {
854
+ log(`bootstrap for ${targetVersion} failed (${bootErr.message || bootErr}); keeping running watcher on installed ${installed} (no kill, serve cached wasm)`);
855
+ const cachedPath = getWasmPath();
856
+ ensureWrapperFresh();
857
+ ensureSkillMdFresh();
858
+ return { ok: true, wasmPath: cachedPath, binaryPath: cachedPath, status: 'bootstrap-failed-served-cached', version: installed };
859
+ }
860
+ throw bootErr;
861
+ }
862
+
863
+ if (versionDrift) {
864
+ try { killRunningDaemons(`version_drift:${installed}->${targetVersion}`); } catch (_) {}
865
+ }
866
+
854
867
  ensureWrapperFresh();
855
868
  ensureSkillMdFresh();
856
869
  return { ok: true, wasmPath, binaryPath: wasmPath, status: 'bootstrapped', version: targetVersion || installed };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1536",
3
+ "version": "2.0.1538",
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": {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1536",
3
+ "version": "2.0.1538",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "plugkitVersion": "0.1.636"
20
+ "plugkitVersion": "0.1.637"
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1536",
3
+ "version": "2.0.1538",
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",