gm-cc 2.0.723 → 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.723",
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
- 26769b05293f36a852f31e2dbfaaff1fa5f47a35ec8e81fd990cbc9e49990ecc plugkit-win32-x64.exe
2
- bcd4f7989b0191d09bfa7c371e1332c0ba834313920b29f357c39869ab223d44 plugkit-win32-arm64.exe
3
- 9646a6f8229feec56fcbc6082151fabe49f255e50c28403e8678abdcb1530596 plugkit-darwin-x64
4
- cec3718462e1482bcce00d740cb56cfe7a64e2f04f83eab48179fd9b1a6d157f plugkit-darwin-arm64
5
- 06411f3632b2e60ddd3b89c08f6bf53b52f8968cafa1fa2b6ec01d7b1ef0c571 plugkit-linux-x64
6
- 781c5a2c03329acc982b415c21f59b7ce9cb1e6f327abcb703abef1ab12c5069 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.240
1
+ 0.1.241
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.723",
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.723",
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",