gm-gc 2.0.234 → 2.0.235

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",
3
- "version": "2.0.234",
3
+ "version": "2.0.235",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "homepage": "https://github.com/AnEntrypoint/gm",
@@ -296,10 +296,12 @@ const run = () => {
296
296
  let out = stripFooter((r.stdout || '') + (r.stderr || ''));
297
297
  const bg = out.match(/Task ID:\s*(task_\S+)/);
298
298
  if (bg) {
299
- runGmExec(['sleep', bg[1], '60'], { timeout: 70000 });
299
+ runGmExec(['sleep', bg[1], '15'], { timeout: 25000 });
300
300
  const sr = runGmExec(['status', bg[1]], { timeout: 15000 });
301
- out = stripFooter((sr.stdout || '') + (sr.stderr || ''));
302
- runGmExec(['close', bg[1]], { timeout: 10000 });
301
+ const statusOut = stripFooter((sr.stdout || '') + (sr.stderr || ''));
302
+ const stillRunning = /Status:\s*running/i.test(statusOut);
303
+ out = statusOut;
304
+ if (!stillRunning) runGmExec(['close', bg[1]], { timeout: 10000 });
303
305
  }
304
306
  return out;
305
307
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-gc",
3
- "version": "2.0.234",
3
+ "version": "2.0.235",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",