master
Matt Huntington 1 month ago
parent 7025631205
commit ee8b8d3f85

@ -14,6 +14,7 @@ app.post('/prompt', (req, res)=>{
dotenv.config({ override: true });
const resumeFlag = process.env.SESSIONID ? `--resume "${process.env.SESSIONID}"` : '';
console.log(req.body.content);
const result = execSync(
`cd /home/matt/pathfinder && claude -p "${req.body.content}" ${resumeFlag} --output-format json --allowedTools "Bash(*)" "Read(*)" "Write(*)" "Edit(*)"`,
{ encoding: 'utf-8', timeout: 120000 }

Loading…
Cancel
Save