Strip hooks from Codex portal package

This commit is contained in:
Drew Ritter
2026-06-30 17:32:44 -07:00
committed by Jesse Vincent
parent 4575372ed3
commit 6561afc87d
2 changed files with 6 additions and 1 deletions

View File

@@ -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