gm-cc 2.0.723 → 2.0.725
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/.claude-plugin/marketplace.json +1 -1
- package/bin/bootstrap.js +17 -7
- package/bin/plugkit.sha256 +6 -6
- package/bin/plugkit.version +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
|
@@ -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.
|
|
7
|
+
"version": "2.0.725",
|
|
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 =
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
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);
|
package/bin/plugkit.sha256
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.241
|
package/package.json
CHANGED