@mutmutco/cli 2.7.0 → 2.8.0

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.
Files changed (2) hide show
  1. package/dist/index.cjs +10 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -5876,6 +5876,15 @@ function contractByStage(contract) {
5876
5876
  function ensureStageNames(names, required) {
5877
5877
  return [.../* @__PURE__ */ new Set([...names ?? [], ...required])];
5878
5878
  }
5879
+ function sameNames(a, b) {
5880
+ const left = new Set(a ?? []);
5881
+ const right = new Set(b ?? []);
5882
+ if (left.size !== right.size) return false;
5883
+ return [...left].every((name) => right.has(name));
5884
+ }
5885
+ function sameStageContract(a, b) {
5886
+ return STAGES.every((stage2) => sameNames(a[stage2], b[stage2]));
5887
+ }
5879
5888
  function buildV2HealPatch(repoOrSlug, meta) {
5880
5889
  const slug = slugOfRepo(repoOrSlug);
5881
5890
  const repo = repoFrom(repoOrSlug, slug);
@@ -5902,7 +5911,7 @@ function buildV2HealPatch(repoOrSlug, meta) {
5902
5911
  rc: ensureStageNames(current.rc, required),
5903
5912
  main: ensureStageNames(current.main, required)
5904
5913
  };
5905
- if (JSON.stringify(current) !== JSON.stringify(next)) {
5914
+ if (!sameStageContract(current, next)) {
5906
5915
  patch.requiredRuntimeSecrets = next;
5907
5916
  }
5908
5917
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "MMI Future CLI — delivers the org rules (whole-file), plus saga and KB access. The cross-IDE engine the plugin's SessionStart hook drives.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",