Add bash execution: dsh-bash seam, dsh-bash-local impl, dsh-tool-bash tools
Three packages following the new capability-seam pattern (interface / implementation / consumer, now documented in docs/architecture.md): - dsh-bash: abstract BashExecutor service (ctx.bash) + vocabulary types. - dsh-bash-local: local subprocesses — bash -c per call in a detached process group, SIGTERM→SIGKILL group kills, tail-keep truncation with full-stream spill files, model-friendly env, background task registry. - dsh-tool-bash: the bash / bash_output / bash_kill tool schemas with runtime arg validation and background completion notices via agent.inject(). Non-zero exits are reported, not errored. Design surveyed against the bash tools of Claude Code, OpenCode, Codex, and pi (notes in the package READMEs). Permissions/sandbox stay TODO on the tools/execute waterfall seam; stateful-shell alternatives recorded in run.ts.
This commit is contained in:
+4
-1
@@ -39,7 +39,10 @@
|
||||
"@deepseek-ai/dsh-system-prompt": ["./packages/system-prompt/src"],
|
||||
"@deepseek-ai/dsh-tools": ["./packages/tools/src"],
|
||||
"@deepseek-ai/dsh-agent": ["./packages/agent/src"],
|
||||
"@deepseek-ai/dsh-agent-loop": ["./packages/agent-loop/src"]
|
||||
"@deepseek-ai/dsh-agent-loop": ["./packages/agent-loop/src"],
|
||||
"@deepseek-ai/dsh-bash": ["./packages/bash/src"],
|
||||
"@deepseek-ai/dsh-bash-local": ["./packages/bash-local/src"],
|
||||
"@deepseek-ai/dsh-tool-bash": ["./packages/tool-bash/src"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user