feat: remote device connection as tool (#2506)

* feat: remote device connection as tool

* fix: test

* fix: fix issues

* fix: ruff

* fix: mini issues

* fix: bugs

* fix: tests and mini issues
This commit is contained in:
Alex authored and GitHub committed 2026-05-28 18:23:25 +01:00
1 parent 0897dacf35
commit 8e0f7ced5f
64 files changed
+6733 -56

No files matched your search

@@ -0,0 +1,17 @@
{
"_comment": "Tester fixture: 'please run whoami on my remote device' -> run_command tool call (whoami). Used to verify full mode auto-approves a safe non-denylisted command.",
"response": {
"content": "",
"tool_calls": [
{
"id": "call_remote_tester_whoami_1",
"type": "function",
"function": {
"name": "run_command",
"arguments": "{\"command\":\"whoami\",\"working_directory\":\"/tmp\",\"timeout_ms\":5000}"
}
}
],
"finish_reason": "tool_calls"
}
}
@@ -0,0 +1,17 @@
{
"_comment": "Tester fixture: 'please run mkdir /tmp/rd_v3_test_dir on my remote device' -> run_command tool call (mkdir /tmp/rd_v3_test_dir). Used to verify a write command in ask mode still pauses on the approval bar.",
"response": {
"content": "",
"tool_calls": [
{
"id": "call_remote_tester_mkdir_1",
"type": "function",
"function": {
"name": "run_command",
"arguments": "{\"command\":\"mkdir /tmp/rd_v3_test_dir\",\"working_directory\":\"/tmp\",\"timeout_ms\":5000}"
}
}
],
"finish_reason": "tool_calls"
}
}
@@ -0,0 +1,17 @@
{
"_comment": "Tester fixture: 'please run rm -rf / on my remote device' -> run_command tool call (rm -rf /). Used to verify full mode still pauses on the denylist-forced-prompt circuit-breaker.",
"response": {
"content": "",
"tool_calls": [
{
"id": "call_remote_tester_rm_1",
"type": "function",
"function": {
"name": "run_command",
"arguments": "{\"command\":\"rm -rf /\",\"working_directory\":\"/tmp\",\"timeout_ms\":5000}"
}
}
],
"finish_reason": "tool_calls"
}
}
@@ -0,0 +1,17 @@
{
"_comment": "Tester fixture: 'please run ls -la /tmp on my remote device' -> run_command tool call (ls -la /tmp).",
"response": {
"content": "",
"tool_calls": [
{
"id": "call_remote_tester_1",
"type": "function",
"function": {
"name": "run_command",
"arguments": "{\"command\":\"ls -la /tmp\",\"working_directory\":\"/tmp\",\"timeout_ms\":5000}"
}
}
],
"finish_reason": "tool_calls"
}
}