gm-skill 2.0.1474 → 2.0.1476

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 +1 @@
1
- 0.1.604
1
+ 0.1.605
@@ -1 +1 @@
1
- 2924e0809dcef271a9ccfc0a0b57023d5140ef08ebc6ce3bf758e0c708d680bf plugkit.wasm
1
+ ad50ace3a662081c8b0b8de98cbb99c835702a6b85448eb9be8994683fa18861 plugkit.wasm
@@ -253,10 +253,15 @@ function httpGetBuffer(url, timeoutMs) {
253
253
  let settled = false;
254
254
  const settleReject = (err) => { if (!settled) { settled = true; reject(err); } };
255
255
  const settleResolve = (v) => { if (!settled) { settled = true; resolve(v); } };
256
- const absTimer = setTimeout(() => {
257
- try { req.destroy(new Error(`abs-deadline ${totalDeadlineMs}ms ${url} after ${bytesReceived} bytes`)); } catch (_) {}
258
- settleReject(new Error(`abs-deadline ${totalDeadlineMs}ms ${url} after ${bytesReceived} bytes`));
259
- }, totalDeadlineMs);
256
+ let absTimer = null;
257
+ const armAbsTimer = () => {
258
+ if (absTimer) clearTimeout(absTimer);
259
+ absTimer = setTimeout(() => {
260
+ try { req.destroy(new Error(`abs-deadline ${totalDeadlineMs}ms-since-progress ${url} after ${bytesReceived} bytes`)); } catch (_) {}
261
+ settleReject(new Error(`abs-deadline ${totalDeadlineMs}ms-since-progress ${url} after ${bytesReceived} bytes`));
262
+ }, totalDeadlineMs);
263
+ };
264
+ armAbsTimer();
260
265
  const req = https.get(url, { timeout: idleTimeoutMs, headers: { 'user-agent': 'gm-plugkit-bootstrap' } }, (res) => {
261
266
  if (res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
262
267
  res.resume();
@@ -271,7 +276,7 @@ function httpGetBuffer(url, timeoutMs) {
271
276
  return;
272
277
  }
273
278
  const chunks = [];
274
- res.on('data', c => { chunks.push(c); bytesReceived += c.length; });
279
+ res.on('data', c => { chunks.push(c); bytesReceived += c.length; armAbsTimer(); });
275
280
  res.on('end', () => { clearTimeout(absTimer); settleResolve(Buffer.concat(chunks)); });
276
281
  res.on('error', (e) => { clearTimeout(absTimer); settleReject(e); });
277
282
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1474",
3
+ "version": "2.0.1476",
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": {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1474",
3
+ "version": "2.0.1476",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "plugkitVersion": "0.1.604"
20
+ "plugkitVersion": "0.1.605"
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1474",
3
+ "version": "2.0.1476",
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",