diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/package-codex-plugin.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/package-codex-plugin.sh b/scripts/package-codex-plugin.sh index 5308e28..d2dd783 100755 --- a/scripts/package-codex-plugin.sh +++ b/scripts/package-codex-plugin.sh @@ -40,8 +40,9 @@ Options: -h, --help Show this help. The archive is rootless: .codex-plugin/, assets/, skills/, README.md, LICENSE, -and CODE_OF_CONDUCT.md sit at the archive root. Source-only repo files, hooks, tests, -docs, and other harness manifests are intentionally not shipped. +CODE_OF_CONDUCT.md, and the Codex SessionStart hook (hooks/hooks-codex.json plus +its two scripts) sit at the archive root. Source-only repo files, other-harness +hooks, tests, docs, and other harness manifests are intentionally not shipped. EOF } @@ -238,6 +239,9 @@ git -C "$REPO_ROOT" -c tar.umask=0022 archive --format=tar "$REF" -- \ LICENSE \ README.md \ assets \ + hooks/hooks-codex.json \ + hooks/run-hook.cmd \ + hooks/session-start-codex \ skills \ | tar -xpf - -C "$STAGE" @@ -333,7 +337,7 @@ esac unexpected_paths="$( printf '%s\n' "$archive_paths" | - grep -E '(^superpowers/|^\.agents/|^hooks/|package\.json$|^\.git|^\.pytest_cache|^\.ruff_cache|^scripts/|^tests/|^docs/|^evals/|^lib/|^\.claude|^\.cursor|^\.kimi|^\.opencode|^\.pi|^AGENTS\.md$|^CLAUDE\.md$|^GEMINI\.md$|^RELEASE-NOTES\.md$|^CHANGELOG\.md$)' || true + grep -E '(^superpowers/|^\.agents/|^hooks/hooks\.json$|^hooks/hooks-cursor\.json$|^hooks/session-start$|package\.json$|^\.git|^\.pytest_cache|^\.ruff_cache|^scripts/|^tests/|^docs/|^evals/|^lib/|^\.claude|^\.cursor|^\.kimi|^\.opencode|^\.pi|^AGENTS\.md$|^CLAUDE\.md$|^GEMINI\.md$|^RELEASE-NOTES\.md$|^CHANGELOG\.md$)' || true )" if [[ -n "$unexpected_paths" ]]; then printf '%s\n' "$unexpected_paths" | sed 's/^/ /' >&2 |
