gm-qwen 2.0.994 → 2.0.995

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
@@ -384,7 +384,7 @@ async function bootstrap(opts) {
384
384
  if (expectedSha) {
385
385
  const actualSha = sha256OfFileSync(finalPath);
386
386
  if (actualSha === expectedSha) {
387
- if (!opts.silent) log(`decision: hit reason: sha-match v${version} (${finalPath})`);
387
+ obsEvent('bootstrap', 'decision.hit', { reason: 'sha-match', version, path: finalPath });
388
388
  copyToGmTools(finalPath, wrapperDir, version);
389
389
  return finalPath;
390
390
  }
@@ -398,14 +398,14 @@ async function bootstrap(opts) {
398
398
  try { fs.unlinkSync(finalPath); } catch (_) {}
399
399
  try { fs.unlinkSync(okSentinel); } catch (_) {}
400
400
  } else {
401
- if (!opts.silent) log(`decision: hit reason: sentinel+no-sha-manifest (${finalPath})`);
401
+ obsEvent('bootstrap', 'decision.hit', { reason: 'sentinel+no-sha-manifest', path: finalPath });
402
402
  copyToGmTools(finalPath, wrapperDir, version);
403
403
  return finalPath;
404
404
  }
405
405
  }
406
406
 
407
407
  if (healIfShaMatches(finalPath, expectedSha, okSentinel, partialPath, 'plugkit')) {
408
- if (!opts.silent) log(`decision: heal reason: sha-match (${finalPath})`);
408
+ obsEvent('bootstrap', 'decision.heal', { reason: 'sha-match', path: finalPath });
409
409
  spawnDetachedRtkFetch(wrapperDir);
410
410
  copyToGmTools(finalPath, wrapperDir, version);
411
411
  return finalPath;
@@ -415,12 +415,12 @@ async function bootstrap(opts) {
415
415
  acquireLock(lockPath);
416
416
  try {
417
417
  if (fs.existsSync(finalPath) && fs.existsSync(okSentinel)) {
418
- log(`decision: hit reason: lock-race-resolved (${finalPath})`);
418
+ obsEvent('bootstrap', 'decision.hit', { reason: 'lock-race-resolved', path: finalPath });
419
419
  copyToGmTools(finalPath, wrapperDir, version);
420
420
  return finalPath;
421
421
  }
422
422
  if (healIfShaMatches(finalPath, expectedSha, okSentinel, partialPath, 'plugkit')) {
423
- log(`decision: heal reason: sha-match-under-lock (${finalPath})`);
423
+ obsEvent('bootstrap', 'decision.heal', { reason: 'sha-match-under-lock', path: finalPath });
424
424
  spawnDetachedRtkFetch(wrapperDir);
425
425
  copyToGmTools(finalPath, wrapperDir, version);
426
426
  return finalPath;
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.994",
3
+ "version": "2.0.995",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-qwen",
3
- "version": "2.0.994",
3
+ "version": "2.0.995",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",