Stats
Actions
Tags
From meridian
Runs Node scripts on session start, end, and user prompt submit to manage session lifecycle. Executes custom .mjs files from the plugin root.
3 events · 3 hooks
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
node -e "let r=process.env.CLAUDE_PLUGIN_ROOT||process.env.PLUGIN_ROOT,cp=require('child_process');if(process.platform==='linux'&&/^[a-zA-Z]:/.test(r)){try{r=cp.execFileSync('wslpath',['-u',r],{encoding:'utf8'}).trim()}catch{r='/mnt/'+r[0].toLowerCase()+r.slice(2).split(String.fromCharCode(92)).join('/')}}cp.execFileSync(process.execPath,[r+'/hooks/session-end.mjs'],{stdio:'inherit'})"node -e "let r=process.env.CLAUDE_PLUGIN_ROOT||process.env.PLUGIN_ROOT,cp=require('child_process');if(process.platform==='linux'&&/^[a-zA-Z]:/.test(r)){try{r=cp.execFileSync('wslpath',['-u',r],{encoding:'utf8'}).trim()}catch{r='/mnt/'+r[0].toLowerCase()+r.slice(2).split(String.fromCharCode(92)).join('/')}}cp.execFileSync(process.execPath,[r+'/hooks/session-start.mjs'],{stdio:'inherit'})"node -e "let r=process.env.CLAUDE_PLUGIN_ROOT||process.env.PLUGIN_ROOT,cp=require('child_process');if(process.platform==='linux'&&/^[a-zA-Z]:/.test(r)){try{r=cp.execFileSync('wslpath',['-u',r],{encoding:'utf8'}).trim()}catch{r='/mnt/'+r[0].toLowerCase()+r.slice(2).split(String.fromCharCode(92)).join('/')}}cp.execFileSync(process.execPath,[r+'/hooks/user-prompt-submit.mjs'],{stdio:'inherit'})"npx claudepluginhub kodingdev/meridian