@mutmutco/cli 4.5.229 → 4.5.231

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.
@@ -12694,12 +12694,17 @@ function atomicWriteJson(path2, ledger) {
12694
12694
  (0, import_node_fs7.renameSync)(tmp, path2);
12695
12695
  }
12696
12696
  var LEDGER_LOCK_OPTS = { label: "release ledger", staleMs: 18e4, deadHolderSteal: true };
12697
+ var releaseCheckpoints = /* @__PURE__ */ new Map();
12697
12698
  async function withLedgerLock(path2, fn, opts = {}) {
12698
12699
  return withFencedFileLock(`${path2}.lock`, { ...LEDGER_LOCK_OPTS, ...opts.maxWaitMs != null ? { maxWaitMs: opts.maxWaitMs } : {} }, (stillHeld) => fn(async (write) => {
12699
12700
  if (!await stillHeld()) {
12700
12701
  throw new ReleaseLedgerError("lock-lost", `release ledger at ${path2}: this writer's lock was stolen while it worked \u2014 nothing was written over the successor (#7027)`);
12701
12702
  }
12702
- return write();
12703
+ const checkpoint = releaseCheckpoints.get(path2);
12704
+ await checkpoint?.("before");
12705
+ const result = write();
12706
+ await checkpoint?.("after");
12707
+ return result;
12703
12708
  }));
12704
12709
  }
12705
12710
  function checkoutRootFrom(cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.5.229",
3
+ "version": "4.5.231",
4
4
  "description": "MMI Future CLI — the org dev toolbox and shared cross-IDE engine for every registry-declared MMI coding surface.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",