From a50def9cefccb47d2e937fc237df980ee09e1fad Mon Sep 17 00:00:00 2001 From: Drew Ritter Date: Tue, 30 Jun 2026 17:32:44 -0700 Subject: Strip hooks from Codex portal package --- scripts/package-codex-plugin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/package-codex-plugin.sh') 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 -- cgit