feat(agent): format available skills as standard XML with absolute path locations

This commit is contained in:
yiling
2026-05-31 10:20:20 +08:00
parent 975a0cfcda
commit c3cce15d7a
3 changed files with 80 additions and 8 deletions
+8 -2
View File
@@ -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