@mutmutco/hub 4.6.4 → 4.6.6

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 +6 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2719,12 +2719,13 @@ function codexArm(options) {
2719
2719
  if (options.dryRun) {
2720
2720
  return { surface: "codex", from, to: options.target, verdict: "ok", detail: `dry-run: would upgrade mutmutco and converge mmi@mutmutco ${from ?? "absent"} -> ${options.target}` };
2721
2721
  }
2722
- const upgrade = runner("codex", ["plugin", "marketplace", "upgrade", "mutmutco", "--json"], env);
2722
+ const npmEnv = claudeNpmEnv(env);
2723
+ const upgrade = runner("codex", ["plugin", "marketplace", "upgrade", "mutmutco", "--json"], npmEnv);
2723
2724
  let upgradeJson = parseJson(upgrade);
2724
2725
  if ((upgrade.status !== 0 || !upgradeJson || (upgradeJson.errors?.length ?? 0) > 0) && NOT_CONFIGURED.test(failure(upgrade))) {
2725
- const add = runner("codex", ["plugin", "marketplace", "add", repoUrl], env);
2726
+ const add = runner("codex", ["plugin", "marketplace", "add", repoUrl], npmEnv);
2726
2727
  if (add.status !== 0) return { surface: "codex", from, to: options.target, verdict: "defer", detail: `mutmutco marketplace was not configured and marketplace add failed: ${failure(add)}` };
2727
- const retry = runner("codex", ["plugin", "marketplace", "upgrade", "mutmutco", "--json"], env);
2728
+ const retry = runner("codex", ["plugin", "marketplace", "upgrade", "mutmutco", "--json"], npmEnv);
2728
2729
  upgradeJson = parseJson(retry);
2729
2730
  if (retry.status !== 0 || !upgradeJson || (upgradeJson.errors?.length ?? 0) > 0) {
2730
2731
  return { surface: "codex", from, to: options.target, verdict: "defer", detail: `marketplace upgrade failed after registration: ${failure(retry)}` };
@@ -2734,8 +2735,8 @@ function codexArm(options) {
2734
2735
  }
2735
2736
  let observed = codexMmi(runner, env);
2736
2737
  if (observed.error) return { surface: "codex", from, to: options.target, verdict: "defer", detail: observed.error };
2737
- if (!observed.row || observed.row.installed !== true || observed.row.enabled !== true) {
2738
- const install = runner("codex", ["plugin", "add", "mmi@mutmutco", "--json"], env);
2738
+ if (!observed.row || !convergedAtOrAbove(observed.row.version, options.target, observed.row.installed === true && observed.row.enabled === true)) {
2739
+ const install = runner("codex", ["plugin", "add", "mmi@mutmutco", "--json"], npmEnv);
2739
2740
  if (install.status !== 0) {
2740
2741
  return { surface: "codex", from, to: options.target, verdict: "defer", detail: `plugin add failed: ${failure(install)}` };
2741
2742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/hub",
3
- "version": "4.6.4",
3
+ "version": "4.6.6",
4
4
  "description": "Install and maintain the MMI CLI and every present host surface from one release-gated Hub command.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",