Preserve hooks in Codex package manifest

This commit is contained in:
Drew Ritter
2026-06-30 17:45:41 -07:00
committed by Jesse Vincent
parent 6561afc87d
commit 592dd0215a
2 changed files with 1 additions and 7 deletions

View File

@@ -242,12 +242,6 @@ git -C "$REPO_ROOT" archive --format=tar "$REF" -- \
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
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
case "$FORMAT" in
zip)