|
|
|
@ -19,6 +19,7 @@ app.post('/prompt', (req, res)=>{
|
|
|
|
`cd /home/matt/pathfinder && claude -p "${req.body.content}" ${resumeFlag} --output-format json --allowedTools "Bash(*)" "Read(*)" "Write(*)" "Edit(*)"`,
|
|
|
|
`cd /home/matt/pathfinder && claude -p "${req.body.content}" ${resumeFlag} --output-format json --allowedTools "Bash(*)" "Read(*)" "Write(*)" "Edit(*)"`,
|
|
|
|
{ encoding: 'utf-8', timeout: 1200000 }
|
|
|
|
{ encoding: 'utf-8', timeout: 1200000 }
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
console.log('completed');
|
|
|
|
fs.writeFileSync('.env', `SESSIONID="${JSON.parse(result).session_id}"`, 'utf8');
|
|
|
|
fs.writeFileSync('.env', `SESSIONID="${JSON.parse(result).session_id}"`, 'utf8');
|
|
|
|
res.json(JSON.parse(result))
|
|
|
|
res.json(JSON.parse(result))
|
|
|
|
|
|
|
|
|
|
|
|
|