docs(plan): close the confirmation-pass findings on the higgsfield plan
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/update-all.sh
|
||||
+++ b/update-all.sh
|
||||
@@ -465,6 +465,45 @@
|
||||
@@ -465,6 +465,48 @@
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -28,13 +28,16 @@
|
||||
+ HF_PKG="@higgsfield/cli@latest"
|
||||
+ [ -n "$HF_VER" ] && [ "$HF_VER" != "latest" ] \
|
||||
+ && HF_PKG="@higgsfield/cli@${HF_VER}"
|
||||
+ npm install -g "$HF_PKG" 2>/dev/null || true
|
||||
+ # The probe, not npm's exit status: an update that skips the package's
|
||||
+ # postinstall script leaves the shim on PATH with no binary behind it.
|
||||
+ if higgsfield_cli_ok; then
|
||||
+ HF_NPM_OK=true
|
||||
+ npm install -g "$HF_PKG" 2>/dev/null || HF_NPM_OK=false
|
||||
+ # The probe first, then npm's status: an update that skips the package's
|
||||
+ # postinstall script exits 0 and leaves the shim with no binary behind it.
|
||||
+ if ! higgsfield_cli_ok; then
|
||||
+ warn "Higgsfield CLI does not answer after the update — run: npm install -g --allow-scripts=@higgsfield/cli @higgsfield/cli"
|
||||
+ elif [ "$HF_NPM_OK" = true ]; then
|
||||
+ ok "Higgsfield CLI updated (${HF_VER:-latest})"
|
||||
+ else
|
||||
+ warn "Higgsfield CLI does not answer after the update — run: npm install -g --allow-scripts=@higgsfield/cli @higgsfield/cli"
|
||||
+ warn "Higgsfield CLI update failed — existing binary kept"
|
||||
+ fi
|
||||
+ if HF_N=$(higgsfield_sync_skills "$REPO"); then
|
||||
+ ok "Higgsfield skill pack refreshed ($HF_N skills)"
|
||||
|
||||
Reference in New Issue
Block a user