mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
feat(agent): format available skills as standard XML with absolute path locations
This commit is contained in:
@@ -82,7 +82,10 @@ export const createSandboxedBashTool = (
|
||||
child.on('error', (err) => {
|
||||
if (timeoutHandle) clearTimeout(timeoutHandle)
|
||||
signal?.removeEventListener('abort', onAbort)
|
||||
logger.error({ err, command, stdout, stderr }, 'Sandboxed bash command encountered process error')
|
||||
logger.error(
|
||||
{ err, command, stdout, stderr },
|
||||
'Sandboxed bash command encountered process error',
|
||||
)
|
||||
reject(err)
|
||||
})
|
||||
|
||||
@@ -97,7 +100,10 @@ export const createSandboxedBashTool = (
|
||||
logger.error({ timeout, command, stdout, stderr }, 'Sandboxed bash command timed out')
|
||||
reject(new Error(`bash command timed out after ${timeout} seconds`))
|
||||
} else if (code !== 0 && code !== null) {
|
||||
logger.error({ exitCode: code, command, stdout, stderr }, 'Sandboxed bash command exited with failure code')
|
||||
logger.error(
|
||||
{ exitCode: code, command, stdout, stderr },
|
||||
'Sandboxed bash command exited with failure code',
|
||||
)
|
||||
reject(new Error(`bash command exited with code ${code}`))
|
||||
} else {
|
||||
const output = stdout + stderr
|
||||
|
||||
Reference in New Issue
Block a user