summaryrefslogtreecommitdiff
path: root/scripts/package-codex-plugin.sh
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-06-30 17:32:44 -0700
committerJesse Vincent <jesse@primeradiant.com>2026-07-02 14:53:00 -0700
commit4ecbbcd0b4573963b550858a030bf503793b2cab (patch)
treea633c30637e4183a1f1a07ed29e748e2d00a3042 /scripts/package-codex-plugin.sh
parent53106e6536bb0364074d7eab3e69b1ccb2580319 (diff)
Strip hooks from Codex portal package
Diffstat (limited to 'scripts/package-codex-plugin.sh')
-rwxr-xr-xscripts/package-codex-plugin.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/package-codex-plugin.sh b/scripts/package-codex-plugin.sh
index 008644e..91458b5 100755
--- a/scripts/package-codex-plugin.sh
+++ b/scripts/package-codex-plugin.sh
@@ -243,7 +243,9 @@ VERSION="$(jq -r '.version // empty' "$STAGE/.codex-plugin/plugin.json")"
[[ -n "$VERSION" ]] || die "could not read version from .codex-plugin/plugin.json"
if jq -e 'has("hooks")' "$STAGE/.codex-plugin/plugin.json" >/dev/null; then
- die "Codex manifest must not declare hooks for the portal package"
+ manifest_tmp="$WORK_DIR/plugin-manifest.json"
+ jq 'del(.hooks)' "$STAGE/.codex-plugin/plugin.json" >"$manifest_tmp"
+ mv "$manifest_tmp" "$STAGE/.codex-plugin/plugin.json"
fi
if [[ -z "$OUTPUT" ]]; then