@mutmutco/hub 4.6.4 → 4.6.5
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/dist/index.cjs +6 -5
- 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
|
|
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],
|
|
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"],
|
|
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
|
|
2738
|
-
const install = runner("codex", ["plugin", "add", "mmi@mutmutco", "--json"],
|
|
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