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 +5 -5
- package/gm.json +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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