gm-plugkit 2.0.1354 → 2.0.1355

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1354",
3
+ "version": "2.0.1355",
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;