gm-skill 2.0.1354 → 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.1354",
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": {
@@ -1631,14 +1631,12 @@ function makeHostFunctions(instanceRef) {
1631
1631
  return 0;
1632
1632
  }
1633
1633
  if (level >= 2) {
1634
- const gateMatch = msg.match(/^plugkit gate:\s+([\w-]+)\s+(.*)$/);
1635
- if (gateMatch) {
1636
- logEvent('hook', `deviation.${gateMatch[1]}`, { detail: gateMatch[2], source: 'stderr-bridge' });
1637
- } else {
1638
- const noiseRe = /^(instruction::handle|recall::recall_hits|embed::|memorize::)/;
1639
- if (!noiseRe.test(msg)) {
1640
- logEvent('plugkit', level >= 3 ? 'wasm.err' : 'wasm.warn', { msg: msg.slice(0, 500) });
1641
- }
1634
+ if (/^plugkit gate:\s+[\w-]+\s+/.test(msg)) {
1635
+ return 0;
1636
+ }
1637
+ const noiseRe = /^(instruction::handle|recall::recall_hits|embed::|memorize::)/;
1638
+ if (!noiseRe.test(msg)) {
1639
+ logEvent('plugkit', level >= 3 ? 'wasm.err' : 'wasm.warn', { msg: msg.slice(0, 500) });
1642
1640
  }
1643
1641
  }
1644
1642
  return 0;
@@ -2063,9 +2061,15 @@ async function runSpoolWatcher(instance, spoolDir) {
2063
2061
  let _selfStaleLoggedOnce = false;
2064
2062
  function probeGmPlugkitSelfStale() {
2065
2063
  try {
2066
- const ownPkgPath = path.join(__dirname, 'package.json');
2067
- if (!fs.existsSync(ownPkgPath)) return;
2068
- 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
+ }
2069
2073
  if (!own) return;
2070
2074
  const https = require('https');
2071
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.1354",
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.1354",
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",