gm-qwen 2.0.809 → 2.0.811

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 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); }
@@ -1,6 +1,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
1
+ 1635aa84cde2ffa3cd75f3b1b4010062485378cfdfb286aaa4b1394f26bd0780 plugkit-win32-x64.exe
2
+ fed8bea7ce6ab35f667b75efbd70298e414a112a1101ab9b3306c20b1489ac8a plugkit-win32-arm64.exe
3
+ 24e35439b32e2171efd94ce45c9be2241247a2e2b9e5397bebe8f95f49e1a9fd plugkit-darwin-x64
4
+ 5a29e662ce930a7a23e0adb79762b080f9729497102da053227c1b9dd834a503 plugkit-darwin-arm64
5
+ e858c6f3cfcfc96c3c6599106e9d591ed55ecf97cb75980a918a4b86fda9c829 plugkit-linux-x64
6
+ b7633d302c4967995243329270c26524d48d6a3df84d8c6180937aa94dfc903d plugkit-linux-arm64
@@ -1 +1 @@
1
- 0.1.264
1
+ 0.1.265
package/bin/rtk.sha256 CHANGED
@@ -1,5 +1,5 @@
1
- bcc3e7fa05cb7ba2c469d07c415bb0cf93a4440293012bed8065a46fb2d74e4b rtk-win32-x64.exe
2
- 5cba0c26c99032cff930853964a721be792b595a09978ee6f62336dd58276fae rtk-win32-arm64.exe
1
+ a3ed5c5bf9e6ae9f3b7d1d42e6ecbdfe06277f6a832cb2cd3253113c01e224d4 rtk-win32-x64.exe
2
+ 5d46950f84809d64030986453b4cc52620e6d8f650e97dbe1bc238e75192f998 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.809",
3
+ "version": "2.0.811",
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.264"
26
+ "plugkitVersion": "0.1.265"
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-qwen",
3
- "version": "2.0.809",
3
+ "version": "2.0.811",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",