Stats
Actions
Tags
From paper-distill
Runs a shell script on session start to initialize the plugin environment. Executes bash commands.
1 event · 1 hook
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
/bin/bash -lc 'set -euo pipefail; CLAUDE_ENV=CLAUDE; CLAUDE_ENV="${CLAUDE_ENV}_PLUGIN_ROOT"; HELPER=""; for ROOT_DIR in "${!CLAUDE_ENV-}" "${CODEX_PLUGIN_ROOT:-}" "${OPENCLAW_PLUGIN_ROOT:-}" "$PWD"; do if [ -n "$ROOT_DIR" ] && [ -x "$ROOT_DIR/scripts/plugin-root.sh" ]; then HELPER="$ROOT_DIR/scripts/plugin-root.sh"; break; fi; done; if [ -z "$HELPER" ]; then printf >&2 "plugin-root helper not found\n"; exit 1; fi; ROOT="$("$HELPER")"; exec "$ROOT/hooks/session-start"'10000msnpx claudepluginhub hamondyan/paper-distill