@mutmutco/cli 4.5.229 → 4.5.230

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.
@@ -12316,6 +12316,30 @@ async function discoverShaWorkflowRuns(deps, repo, headSha, seenRunIds) {
12316
12316
  // src/workflow-runner-yaml.ts
12317
12317
  var import_yaml = __toESM(require_dist(), 1);
12318
12318
 
12319
+ // ../shared/ci-allowance-contract.ts
12320
+ var CLI_ALLOWANCE_MANIFEST = Object.freeze({
12321
+ id: "hub-cli-v1",
12322
+ parts: ["tests-1", "tests-2", "checks"],
12323
+ // Includes checkout, toolchain, installation and teardown, not just the test subprocess.
12324
+ jobMinutes: 10,
12325
+ aggregateMinutes: 1,
12326
+ maxAttempts: 3,
12327
+ storageBytes: 0
12328
+ });
12329
+ var CLI_ATTEMPT_MINUTES = CLI_ALLOWANCE_MANIFEST.parts.length * CLI_ALLOWANCE_MANIFEST.jobMinutes + CLI_ALLOWANCE_MANIFEST.aggregateMinutes;
12330
+ var CI_PROFILES = Object.freeze({
12331
+ "included-linux": "ubuntu-latest",
12332
+ "owned-linux": ["self-hosted", "linux", "x64", "mmi-live"]
12333
+ });
12334
+ var CLI_ALLOWANCE_SOURCE = Object.freeze({
12335
+ repository: "mutmutco/MMI-Hub",
12336
+ callerPath: ".github/workflows/gate.yml",
12337
+ coordinatorPath: ".github/workflows/ci-allowance.yml",
12338
+ coordinatorSha: "50f0bd4d8e35f3f09119bd3fa1bb7705fcc6f09b",
12339
+ coordinatorSha256: "7b23f22131c5e08292f142eeed3899c8ecf49b1bdcc96bfdfe114cf1dca47b48",
12340
+ executionSha256: "6198e0896a5533f9546e084642ceb214336c930561fe9f8292eb7e6a0972933b"
12341
+ });
12342
+
12319
12343
  // src/train-doctor.ts
12320
12344
  var import_node_child_process7 = require("node:child_process");
12321
12345
  var import_node_fs8 = require("node:fs");
@@ -12694,12 +12718,17 @@ function atomicWriteJson(path2, ledger) {
12694
12718
  (0, import_node_fs7.renameSync)(tmp, path2);
12695
12719
  }
12696
12720
  var LEDGER_LOCK_OPTS = { label: "release ledger", staleMs: 18e4, deadHolderSteal: true };
12721
+ var releaseCheckpoints = /* @__PURE__ */ new Map();
12697
12722
  async function withLedgerLock(path2, fn, opts = {}) {
12698
12723
  return withFencedFileLock(`${path2}.lock`, { ...LEDGER_LOCK_OPTS, ...opts.maxWaitMs != null ? { maxWaitMs: opts.maxWaitMs } : {} }, (stillHeld) => fn(async (write) => {
12699
12724
  if (!await stillHeld()) {
12700
12725
  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
12726
  }
12702
- return write();
12727
+ const checkpoint = releaseCheckpoints.get(path2);
12728
+ await checkpoint?.("before");
12729
+ const result = write();
12730
+ await checkpoint?.("after");
12731
+ return result;
12703
12732
  }));
12704
12733
  }
12705
12734
  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.230",
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",