gm-skill 2.0.1329 → 2.0.1331

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.1329",
3
+ "version": "2.0.1331",
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": {
@@ -1623,6 +1623,18 @@ function makeHostFunctions(instanceRef) {
1623
1623
  const { event: _e, ts: _ts, sess: _s, sub: _sub, ...fields } = ev;
1624
1624
  logEvent(ev.sub || 'plugkit', eventName, fields);
1625
1625
  } catch (_) {}
1626
+ return 0;
1627
+ }
1628
+ if (level >= 2) {
1629
+ const gateMatch = msg.match(/^plugkit gate:\s+([\w-]+)\s+(.*)$/);
1630
+ if (gateMatch) {
1631
+ logEvent('hook', `deviation.${gateMatch[1]}`, { detail: gateMatch[2], source: 'stderr-bridge' });
1632
+ } else {
1633
+ const noiseRe = /^(instruction::handle|recall::recall_hits|embed::|memorize::)/;
1634
+ if (!noiseRe.test(msg)) {
1635
+ logEvent('plugkit', level >= 3 ? 'wasm.err' : 'wasm.warn', { msg: msg.slice(0, 500) });
1636
+ }
1637
+ }
1626
1638
  }
1627
1639
  return 0;
1628
1640
  } catch (e) {
@@ -2458,10 +2470,19 @@ async function runSpoolWatcher(instance, spoolDir) {
2458
2470
  const STATUS_PATH = path.join(spoolDir, '.status.json');
2459
2471
  function writeStatus() {
2460
2472
  try {
2473
+ const fileV = readFileVersionOnly() || null;
2474
+ const instV = _instanceVersionAtBoot || null;
2475
+ const version = instV || fileV;
2476
+ const drifted = !!(fileV && instV && fileV !== instV);
2461
2477
  fs.writeFileSync(STATUS_PATH, JSON.stringify({
2462
2478
  pid: process.pid,
2463
2479
  ts: Date.now(),
2464
- version: resolveVersion(instance),
2480
+ version,
2481
+ instance_version: instV,
2482
+ file_version: fileV,
2483
+ version_drifted: drifted,
2484
+ boot_reason: _bootReason,
2485
+ supervisor_pid: _supervisorPid,
2465
2486
  wrapper_sha: _ownWrapperSha12 || null,
2466
2487
  idle_limit_ms: IDLE_LIMIT_MS,
2467
2488
  }));
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1329",
3
+ "version": "2.0.1331",
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.1329",
3
+ "version": "2.0.1331",
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",