gm-skill 2.0.1263 → 2.0.1264

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/README.md CHANGED
@@ -35,7 +35,7 @@ An earlier generation fanned out fifteen per-platform downstream repos (gm-cc, g
35
35
 
36
36
  ## Version
37
37
 
38
- `2.0.1263` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
38
+ `2.0.1264` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
39
39
 
40
40
  ## Source of truth
41
41
 
@@ -299,6 +299,8 @@ function readCurrentSess() {
299
299
  return __sessCache.value;
300
300
  }
301
301
 
302
+ const __lockRejectedEmitAt = new Map();
303
+
302
304
  function logEvent(sub, event, fields) {
303
305
  if (process.env.GM_LOG_DISABLE) return;
304
306
  try {
@@ -1462,7 +1464,14 @@ async function runSpoolWatcher(instance, spoolDir) {
1462
1464
  const msg = JSON.stringify({ ok: false, reason: 'another-watcher-active', pid: pidStr, age_ms: age });
1463
1465
  console.error(`[plugkit-wasm] ${msg}; refusing to start`);
1464
1466
  try { fs.writeFileSync(path.join(spoolDir, '.lock-rejection.json'), msg); } catch (_) {}
1465
- try { logEvent('plugkit', 'watcher.lock-rejected', { holder_pid: pidStr, lock_age_ms: age }); } catch (_) {}
1467
+ try {
1468
+ const __now = Date.now();
1469
+ const __last = __lockRejectedEmitAt.get(pidStr) || 0;
1470
+ if (__now - __last > 60000) {
1471
+ __lockRejectedEmitAt.set(pidStr, __now);
1472
+ logEvent('plugkit', 'watcher.lock-rejected', { severity: 'info', holder_pid: pidStr, lock_age_ms: age });
1473
+ }
1474
+ } catch (_) {}
1466
1475
  process.exit(75);
1467
1476
  }
1468
1477
  } else {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1263",
3
+ "version": "2.0.1264",
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.1263",
3
+ "version": "2.0.1264",
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",
@@ -39,7 +39,7 @@
39
39
  "gm.json"
40
40
  ],
41
41
  "dependencies": {
42
- "gm-plugkit": "^2.0.1263"
42
+ "gm-plugkit": "^2.0.1264"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=16.0.0"