gm-skill 2.0.1504 → 2.0.1505

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.1504",
3
+ "version": "2.0.1505",
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": {
@@ -563,7 +563,17 @@ function browserStateDir(cwd) {
563
563
  function browserPortsFile(cwd) { return path.join(browserStateDir(cwd), 'browser-ports.json'); }
564
564
  function browserSessionsFile(cwd) { return path.join(browserStateDir(cwd), 'browser-sessions.json'); }
565
565
 
566
- const { selectIdleBrowserSessions } = require('./browser-idle.js');
566
+ function selectIdleBrowserSessions(ports, now, limitMs) {
567
+ const idle = [];
568
+ if (!ports || typeof ports !== 'object') return idle;
569
+ for (const [sid, entry] of Object.entries(ports)) {
570
+ if (!entry || typeof entry !== 'object') continue;
571
+ const lastUse = Number.isFinite(entry.lastUse) ? entry.lastUse : 0;
572
+ const idleMs = now - lastUse;
573
+ if (idleMs >= limitMs) idle.push({ sid, entry, idleMs });
574
+ }
575
+ return idle;
576
+ }
567
577
 
568
578
  function stampBrowserLastUse(cwd, claudeSessionId) {
569
579
  try {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1504",
3
+ "version": "2.0.1505",
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.1504",
3
+ "version": "2.0.1505",
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",