Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions plugin/hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"hooks": [
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/smart-install.js\"",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/smart-install.js\"",
"timeout": 300
},
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" start",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" start",
"timeout": 60
},
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code context",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code context",
"timeout": 60
}
]
Expand All @@ -40,7 +40,7 @@
"hooks": [
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-init",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code session-init",
"timeout": 60
}
]
Expand All @@ -52,7 +52,7 @@
"hooks": [
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code observation",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code observation",
"timeout": 120
}
]
Expand All @@ -63,7 +63,7 @@
"hooks": [
{
"type": "command",
"command": "_R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code summarize",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; _R=\"${CLAUDE_PLUGIN_ROOT}\"; [ -z \"$_R\" ] && _R=\"$HOME/.claude/plugins/marketplaces/thedotmack/plugin\"; node \"$_R/scripts/bun-runner.js\" \"$_R/scripts/worker-service.cjs\" hook claude-code summarize",
"timeout": 120
}
]
Expand All @@ -74,7 +74,7 @@
"hooks": [
{
"type": "command",
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const{sessionId:s}=JSON.parse(d);if(!s){process.exit(0)}const r=require('http').request({hostname:'127.0.0.1',port:37777,path:'/api/sessions/complete',method:'POST',headers:{'Content-Type':'application/json'}},()=>process.exit(0));r.on('error',()=>process.exit(0));r.end(JSON.stringify({contentSessionId:s}));setTimeout(()=>process.exit(0),3000)}catch{process.exit(0)}})\"",
"command": "command -v node >/dev/null 2>&1 || export PATH=\"$([ -d \"$HOME/.nvm/versions/node\" ] && echo \"$HOME/.nvm/versions/node/$(ls \\\"$HOME/.nvm/versions/node\\\" | sort -V | tail -1)/bin:\" || true)/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH\"; node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const{sessionId:s}=JSON.parse(d);if(!s){process.exit(0)}const r=require('http').request({hostname:'127.0.0.1',port:37777,path:'/api/sessions/complete',method:'POST',headers:{'Content-Type':'application/json'}},()=>process.exit(0));r.on('error',()=>process.exit(0));r.end(JSON.stringify({contentSessionId:s}));setTimeout(()=>process.exit(0),3000)}catch{process.exit(0)}})\"",
"timeout": 5
}
]
Expand Down