Stats
Actions
Tags
From drafted
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
diff -q "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" >/dev/null 2>&1 || (mkdir -p "${CLAUDE_PLUGIN_DATA}" && cp "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" && cd "${CLAUDE_PLUGIN_DATA}" && npm install --silent --no-audit --no-fund) || rm -f "${CLAUDE_PLUGIN_DATA}/package.json"npx claudepluginhub ddfourtwo/drafted-plugin --plugin drafted