gm-skill 2.0.1475 → 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.
- package/gm-plugkit/bootstrap.js +10 -5
- package/gm-plugkit/package.json +1 -1
- package/gm.json +1 -1
- package/package.json +1 -1
package/gm-plugkit/bootstrap.js
CHANGED
|
@@ -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
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
});
|
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
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",
|