gm-skill 2.0.1355 → 2.0.1356

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.
@@ -612,6 +612,13 @@ function copyWasmToGmTools(wasmPath, version) {
612
612
  if (!wasmFresh) fs.copyFileSync(wasmPath, target);
613
613
  fs.writeFileSync(path.join(dst, 'plugkit.version'), version);
614
614
 
615
+ try {
616
+ const ownPkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf-8'));
617
+ if (ownPkg && ownPkg.version) {
618
+ fs.writeFileSync(path.join(dst, 'gm-plugkit.version'), ownPkg.version);
619
+ }
620
+ } catch (_) {}
621
+
615
622
  if (fs.existsSync(wrapperSrc)) {
616
623
  let wrapperFresh = false;
617
624
  if (fs.existsSync(wrapperDst)) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1355",
3
+ "version": "2.0.1356",
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": {
@@ -2061,9 +2061,15 @@ async function runSpoolWatcher(instance, spoolDir) {
2061
2061
  let _selfStaleLoggedOnce = false;
2062
2062
  function probeGmPlugkitSelfStale() {
2063
2063
  try {
2064
- const ownPkgPath = path.join(__dirname, 'package.json');
2065
- if (!fs.existsSync(ownPkgPath)) return;
2066
- const own = JSON.parse(fs.readFileSync(ownPkgPath, 'utf-8')).version;
2064
+ const ownPkgVersionFile = path.join(GM_TOOLS_ROOT, 'gm-plugkit.version');
2065
+ const ownPkgJsonFile = path.join(__dirname, 'package.json');
2066
+ let own = null;
2067
+ if (fs.existsSync(ownPkgVersionFile)) {
2068
+ try { own = fs.readFileSync(ownPkgVersionFile, 'utf-8').trim(); } catch (_) {}
2069
+ }
2070
+ if (!own && fs.existsSync(ownPkgJsonFile)) {
2071
+ try { own = JSON.parse(fs.readFileSync(ownPkgJsonFile, 'utf-8')).version; } catch (_) {}
2072
+ }
2067
2073
  if (!own) return;
2068
2074
  const https = require('https');
2069
2075
  const req = https.get('https://registry.npmjs.org/gm-plugkit/latest', { timeout: 3000 }, (res) => {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1355",
3
+ "version": "2.0.1356",
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.1355",
3
+ "version": "2.0.1356",
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",