gm-qwen 2.0.808 → 2.0.810
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/bin/bootstrap.js +4 -2
- package/bin/plugkit.js +1 -1
- package/bin/plugkit.sha256 +6 -6
- package/bin/plugkit.version +1 -1
- package/bin/rtk.sha256 +2 -2
- package/gm.json +2 -2
- package/package.json +1 -1
package/bin/bootstrap.js
CHANGED
|
@@ -17,7 +17,6 @@ const LOCK_STALE_MS = 5 * 60 * 1000;
|
|
|
17
17
|
|
|
18
18
|
function log(msg) {
|
|
19
19
|
try { process.stderr.write(`[plugkit-bootstrap] ${msg}\n`); } catch (_) {}
|
|
20
|
-
try { obsEvent('bootstrap', 'log', { msg }); } catch (_) {}
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
function obsEvent(subsystem, event, fields) {
|
|
@@ -218,6 +217,7 @@ async function downloadWithRetry(url, destPath) {
|
|
|
218
217
|
} catch (err) {
|
|
219
218
|
lastErr = err;
|
|
220
219
|
log(`attempt ${attempt} failed: ${err.message}`);
|
|
220
|
+
obsEvent('bootstrap', 'fetch.attempt_failed', { url, attempt, max: MAX_ATTEMPTS, err: String(err.message || err) });
|
|
221
221
|
if (attempt < MAX_ATTEMPTS) {
|
|
222
222
|
const wait = BACKOFF_MS[attempt - 1] || 120000;
|
|
223
223
|
log(`backing off ${wait}ms`);
|
|
@@ -306,6 +306,7 @@ async function bootstrap(opts) {
|
|
|
306
306
|
|
|
307
307
|
fs.writeFileSync(okSentinel, new Date().toISOString());
|
|
308
308
|
log(`installed ${finalPath}`);
|
|
309
|
+
obsEvent('bootstrap', 'install.done', { path: finalPath, version, kind: 'plugkit' });
|
|
309
310
|
pruneOldVersions(root, version);
|
|
310
311
|
// Best-effort rtk fetch: failures here never block plugkit usage
|
|
311
312
|
try { await bootstrapRtk(verDir, version, wrapperDir, opts.silent); }
|
|
@@ -346,6 +347,7 @@ async function bootstrapRtk(verDir, version, wrapperDir, silent) {
|
|
|
346
347
|
if (os.platform() !== 'win32') { try { fs.chmodSync(rtkPath, 0o755); } catch (_) {} }
|
|
347
348
|
fs.writeFileSync(rtkOk, new Date().toISOString());
|
|
348
349
|
log(`installed ${rtkPath}`);
|
|
350
|
+
obsEvent('bootstrap', 'install.done', { path: rtkPath, version, kind: 'rtk' });
|
|
349
351
|
return rtkPath;
|
|
350
352
|
}
|
|
351
353
|
|
|
@@ -384,5 +386,5 @@ module.exports = { bootstrap, resolveCachedBinary, resolveCachedRtk, platformKey
|
|
|
384
386
|
if (require.main === module) {
|
|
385
387
|
bootstrap({ silent: false })
|
|
386
388
|
.then(p => { process.stdout.write(p + '\n'); process.exit(0); })
|
|
387
|
-
.catch(err => { log(`FATAL: ${err.message}`); process.exit(1); });
|
|
389
|
+
.catch(err => { log(`FATAL: ${err.message}`); obsEvent('bootstrap', 'fatal', { err: String(err.message || err) }); process.exit(1); });
|
|
388
390
|
}
|
package/bin/plugkit.js
CHANGED
|
@@ -31,7 +31,7 @@ async function main() {
|
|
|
31
31
|
bin = await resolveBinary();
|
|
32
32
|
} catch (err) {
|
|
33
33
|
process.stderr.write(`[plugkit] bootstrap failed: ${err.message}\n`);
|
|
34
|
-
obsEvent('plugkit_wrapper', 'bootstrap_failed', { err: err.message });
|
|
34
|
+
obsEvent('plugkit_wrapper', 'bootstrap_failed', { err: err.message, dur_ms: Date.now() - startedAt, argv: args.slice(0, 4), is_hook: isHook });
|
|
35
35
|
const legacy = legacyFallback();
|
|
36
36
|
if (legacy) { bin = legacy; }
|
|
37
37
|
else if (isHook) { process.exit(0); }
|
package/bin/plugkit.sha256
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
8429d2e452268acdb067c000812b966d458eeb8bb81abb44629461c3f7b7a8b7 plugkit-win32-x64.exe
|
|
2
|
+
90eff36f273e3a68aedccf1f20651283d4318d2f16f6bf86dcb828e6a898d618 plugkit-win32-arm64.exe
|
|
3
|
+
1a0efc729b028892513881f8c6ca2415469f10056fe9f4025dcc5d512d6f498f plugkit-darwin-x64
|
|
4
|
+
0de746e53a31f19ce065e4578bd90fd49f524826d4701ff0053ba5a427e798e7 plugkit-darwin-arm64
|
|
5
|
+
cc72135052c96fcaf7c9fd492fee74f0fa9d1b08153f4ad11baf46a195aac46f plugkit-linux-x64
|
|
6
|
+
ab23613ac4a763ae64f682b1c6ae6b9d303285e4a4a17a72c248efdbc8bf5f67 plugkit-linux-arm64
|
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.264
|
package/bin/rtk.sha256
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
bcc3e7fa05cb7ba2c469d07c415bb0cf93a4440293012bed8065a46fb2d74e4b rtk-win32-x64.exe
|
|
2
|
+
5cba0c26c99032cff930853964a721be792b595a09978ee6f62336dd58276fae rtk-win32-arm64.exe
|
|
3
3
|
e89fdf402c28796b510587a8b0fe046438b5b24d49533d1a2339a48aecae35e9 rtk-darwin-x64
|
|
4
4
|
2b203fd380f5782b5489eb016e34e3dbf848272a7fadf36b39bce6cfd9a3005c rtk-darwin-arm64
|
|
5
5
|
0da9950b859c7a2693aaf6c169f05f9b8965508ba1f23f1547e63d5fa988749e rtk-linux-x64
|
package/gm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.810",
|
|
4
4
|
"description": "State machine agent with hooks, skills, and automated git enforcement",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"plugkitVersion": "0.1.
|
|
26
|
+
"plugkitVersion": "0.1.264"
|
|
27
27
|
}
|