@feigi/fleet-ctl 3.141.1 → 3.141.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.141.1",
3
+ "version": "3.141.2",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -583,12 +583,13 @@ export function deriveLabelMap({ table, live, cache, answers = new Map() }) {
583
583
  return { kind: "certain", roles: certain, origin };
584
584
  }
585
585
 
586
- // The three inputs of a derivation, read the same way for `ensure` and `set`:
587
- // the table, the live label list and the cache (null when absent or not
588
- // parsing, which is derived again).
586
+ // The three inputs of a derivation, read the same way for `ensure` and `set`,
587
+ // in this order: the table, the cache (null when absent or not parsing, which
588
+ // is derived again) and the live label list. A local fault is named before the
589
+ // network is asked, so a `gh` failure cannot hide it and its refusal never
590
+ // waits on `gh`.
589
591
  function readDerivationInputs(cwd) {
590
592
  const { top, table } = readTriageTable({ cwd });
591
- const live = readLiveLabels({ cwd: top });
592
593
  let cache = null;
593
594
  try {
594
595
  cache = loadCache(fleetFile(LABEL_MAP_FILE, { cwd }));
@@ -599,6 +600,7 @@ function readDerivationInputs(cwd) {
599
600
  // refusal is the reader's own, naming the errno and the repair.
600
601
  if (e.cause) throw new LabelMapUnavailable(`${e.message}; nothing written`);
601
602
  }
603
+ const live = readLiveLabels({ cwd: top });
602
604
  return { top, table, live, cache };
603
605
  }
604
606