gm-cc 2.0.722 → 2.0.724

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.
@@ -4,7 +4,7 @@
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.722",
7
+ "version": "2.0.724",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/bin/bootstrap.js CHANGED
@@ -9,10 +9,11 @@ const crypto = require('crypto');
9
9
  const { URL } = require('url');
10
10
 
11
11
  const RELEASE_REPO = 'AnEntrypoint/plugkit-bin';
12
- const ATTEMPT_TIMEOUT_MS = 30 * 60 * 1000;
13
- const MAX_ATTEMPTS = 3;
14
- const BACKOFF_MS = [5000, 30000, 120000];
15
- const LOCK_STALE_MS = 45 * 60 * 1000;
12
+ const ATTEMPT_TIMEOUT_MS = 60 * 1000;
13
+ const STALL_TIMEOUT_MS = 20 * 1000;
14
+ const MAX_ATTEMPTS = 5;
15
+ const BACKOFF_MS = [2000, 5000, 15000, 30000];
16
+ const LOCK_STALE_MS = 5 * 60 * 1000;
16
17
 
17
18
  function log(msg) {
18
19
  try { process.stderr.write(`[plugkit-bootstrap] ${msg}\n`); } catch (_) {}
@@ -147,8 +148,16 @@ function fetchToFile(url, destPath, expectedTotal) {
147
148
  const out = fs.createWriteStream(destPath, { flags: append ? 'a' : 'w' });
148
149
  let bytes = append ? existing : 0;
149
150
  let lastLog = Date.now();
151
+ let lastByte = Date.now();
152
+ const stallTimer = setInterval(() => {
153
+ if (Date.now() - lastByte > STALL_TIMEOUT_MS) {
154
+ clearInterval(stallTimer);
155
+ req.destroy(new Error(`stalled: no bytes for ${STALL_TIMEOUT_MS}ms`));
156
+ }
157
+ }, 2000);
150
158
  res.on('data', c => {
151
159
  bytes += c.length;
160
+ lastByte = Date.now();
152
161
  if (Date.now() - lastLog > 5000) {
153
162
  const pct = expectedTotal ? ` ${Math.floor(bytes / expectedTotal * 100)}%` : '';
154
163
  log(`downloading: ${(bytes / 1048576).toFixed(1)} MiB${pct}`);
@@ -156,9 +165,10 @@ function fetchToFile(url, destPath, expectedTotal) {
156
165
  }
157
166
  });
158
167
  res.pipe(out);
159
- out.on('finish', () => out.close(() => resolve(bytes)));
160
- out.on('error', reject);
161
- res.on('error', reject);
168
+ out.on('finish', () => { clearInterval(stallTimer); out.close(() => resolve(bytes)); });
169
+ out.on('error', err => { clearInterval(stallTimer); reject(err); });
170
+ res.on('error', err => { clearInterval(stallTimer); reject(err); });
171
+ res.on('end', () => clearInterval(stallTimer));
162
172
  });
163
173
  req.on('timeout', () => { req.destroy(new Error(`timeout after ${ATTEMPT_TIMEOUT_MS}ms`)); });
164
174
  req.on('error', reject);
@@ -1,6 +1,6 @@
1
- c761904a0a87655903889fc8a3eefa727cc3f8e5f7d9f0ef11b5943404c200be plugkit-win32-x64.exe
2
- 463ce6156edc1ac8c73e5f3b11da0480bb59fd3c98ac2647b1ff3830e99fe1a1 plugkit-win32-arm64.exe
3
- 6b64b6281aa77aa859348a4a020e3d225cd0ef435ad8a64714d85bdab15f5e3d plugkit-darwin-x64
4
- 7c787c21e291260956ead084f8926be9a4d26d6da18e73d93bf7f6d656ffb1da plugkit-darwin-arm64
5
- eba2087a8866bbaaadbe8c4f84416ec472930db728f5be05a987d0f6d78cbdec plugkit-linux-x64
6
- 6e13bc031a3f97e384c2a47e92e0d412adb3778224bc78ffd0e8246d2d4c7cd0 plugkit-linux-arm64
1
+ 9dbd63a59e435a3a8cb8a1b89344ecfa4b4865bdf81ec5a3aa53202645f39b01 plugkit-win32-x64.exe
2
+ 18f37964c80c20fe7adaeef4c6168b331d8d23a94ff369d9807f0847cc16c757 plugkit-win32-arm64.exe
3
+ 2cd123dd7704bd823d0c655ecb815afb155c8de2b5dafaadd475864af676a72c plugkit-darwin-x64
4
+ df98f857def381b366b6346b613bbd4753b62557c374b5768aee9183f52a3dd0 plugkit-darwin-arm64
5
+ fcfdbba8a28458da1a8937670d5173f774ec6fe6bcd5b820c0bce5ae8d785660 plugkit-linux-x64
6
+ 2b6f8a8c9316f7bb1378752d61928575d4f0fcc739daab7376af66ed1b65d82f plugkit-linux-arm64
@@ -1 +1 @@
1
- 0.1.239
1
+ 0.1.241
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.722",
3
+ "version": "2.0.724",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.722",
3
+ "version": "2.0.724",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",