feat(cli): add runner start with bundled SRT sandboxing (#535)

* refactor(agent): expose runner bash without skill gating

* feat(cli): add runner start with optional SRT sandboxing

* refactor(cli): remove runner Python dependency

* feat(cli): bundle SRT and use platform-native runner shells

* refactor(cli): delegate runner processes to Execa
This commit is contained in:
Yiling-J
2026-11-18 09:44:54 +08:00
committed by GitHub
parent 8edd3008de
commit 3e24fe593e
35 changed files with 2414 additions and 284 deletions
@@ -513,7 +513,7 @@ export function RunnerSettings({ teamId }: { teamId: string }) {
<div className="flex items-center gap-2">
<Input
readOnly
value={`shumai runner start --url ${serverOrigin} --key ${revealedKeyData.key}`}
value={`shumai-cli runner start --url ${serverOrigin} --key ${revealedKeyData.key}`}
className="font-mono text-xs bg-muted"
/>
<Button
@@ -522,7 +522,7 @@ export function RunnerSettings({ teamId }: { teamId: string }) {
size="icon"
onClick={() =>
handleCopy(
`shumai runner start --url ${serverOrigin} --key ${revealedKeyData.key}`,
`shumai-cli runner start --url ${serverOrigin} --key ${revealedKeyData.key}`,
'cmd',
)
}
@@ -543,7 +543,7 @@ export function RunnerSettings({ teamId }: { teamId: string }) {
<div className="flex items-center gap-2">
<Input
readOnly
value={`shumai runner start --url ${serverOrigin} --key ${revealedKeyData.key} --sandbox`}
value={`shumai-cli runner start --url ${serverOrigin} --key ${revealedKeyData.key} --srt sandbox.json`}
className="font-mono text-xs bg-muted"
/>
<Button
@@ -552,7 +552,7 @@ export function RunnerSettings({ teamId }: { teamId: string }) {
size="icon"
onClick={() =>
handleCopy(
`shumai runner start --url ${serverOrigin} --key ${revealedKeyData.key} --sandbox`,
`shumai-cli runner start --url ${serverOrigin} --key ${revealedKeyData.key} --srt sandbox.json`,
'sandboxCmd',
)
}
+4 -4
View File
@@ -1703,7 +1703,7 @@
"task_type_restore_asset": "Restore Asset",
"agent_runners": "Agent Runners",
"agent_runners_settings": "Agent Runners",
"runners_description": "Register and manage remote runners that execute bash commands and skills for your agents.",
"runners_description": "Register and manage remote runners that execute shell commands and skills for your agents.",
"runners": "Runners",
"create_runner": "Create Runner",
"create_runner_description": "Register a new runner for your team. You will receive a one-time runner key to connect from shumai-cli.",
@@ -1732,7 +1732,7 @@
"runner_quickstart_command_label": "Quickstart Command",
"runner_quickstart_sandbox_label": "Start with Sandbox (Optional)",
"runner_empty_title": "No runners configured",
"runner_empty_description": "When no runner is configured, the bash and download_asset tools are automatically hidden from agents. Create a runner and start it with shumai-cli to enable bash execution.",
"runner_empty_description": "When no runner is configured, the bash and download_asset tools are automatically hidden from agents. Create a runner and start it with shumai-cli to enable command execution.",
"runner_created_successfully": "Runner created successfully",
"runner_updated_successfully": "Runner updated successfully",
"runner_deleted_successfully": "Runner deleted successfully",
@@ -1743,8 +1743,8 @@
"failed_to_delete_runner": "Failed to delete runner",
"failed_to_rotate_runner_key": "Failed to rotate runner key",
"runner_copied_to_clipboard": "Copied to clipboard",
"agent_runner_label": "Bash Runner",
"agent_runner_description": "Select which runner executes bash commands and downloads workspace assets for this agent.",
"agent_runner_label": "Command Runner",
"agent_runner_description": "Select which runner executes shell commands and downloads workspace assets for this agent.",
"agent_runner_team_default": "Team Default Runner",
"agent_runner_team_default_with_name": "Team Default ({name})",
"agent_runner_none_configured_warning": "No runners are configured for this team yet. The bash and download_asset tools will remain unavailable until you register a runner in Team Settings → Agent Runners."
+4 -4
View File
@@ -1703,7 +1703,7 @@
"task_type_restore_asset": "恢复归档资产",
"agent_runners": "Agent 运行器",
"agent_runners_settings": "Agent 运行器设置",
"runners_description": "注册并管理为 Agent 执行 Bash 命令和技能的远程运行器。",
"runners_description": "注册并管理为 Agent 执行命令和技能的远程运行器。",
"runners": "运行器",
"create_runner": "创建运行器",
"create_runner_description": "为团队注册一个新的运行器。创建后将生成一次性运行器密钥,用于通过 shumai-cli 连接。",
@@ -1732,7 +1732,7 @@
"runner_quickstart_command_label": "快速启动命令",
"runner_quickstart_sandbox_label": "启用沙箱启动(可选)",
"runner_empty_title": "尚未配置运行器",
"runner_empty_description": "未配置运行器时,Agent 的 bash 和 download_asset 工具将自动隐藏。创建一个运行器并通过 shumai-cli 启动即可启用 Bash 执行能力。",
"runner_empty_description": "未配置运行器时,Agent 的 bash 和 download_asset 工具将自动隐藏。创建一个运行器并通过 shumai-cli 启动即可启用命令执行能力。",
"runner_created_successfully": "运行器创建成功",
"runner_updated_successfully": "运行器更新成功",
"runner_deleted_successfully": "运行器删除成功",
@@ -1743,8 +1743,8 @@
"failed_to_delete_runner": "删除运行器失败",
"failed_to_rotate_runner_key": "轮换运行器密钥失败",
"runner_copied_to_clipboard": "已复制到剪贴板",
"agent_runner_label": "Bash 运行器",
"agent_runner_description": "选择为该 Agent 执行 Bash 命令和下载工作空间资产的运行器。",
"agent_runner_label": "命令运行器",
"agent_runner_description": "选择为该 Agent 执行命令和下载工作空间资产的运行器。",
"agent_runner_team_default": "团队默认运行器",
"agent_runner_team_default_with_name": "团队默认({name})",
"agent_runner_none_configured_warning": "当前团队尚未配置任何运行器。在“团队设置 → Agent 运行器”中注册运行器之前,bash 和 download_asset 工具将不可用。"