Liu Yuan
3f1ac297d4
feat(tools): add exec tool enhancement with background execution and PTY support (#1752)
- Unified exec tool with actions: run/list/poll/read/write/send-keys/kill
- PTY support using creack/pty library
- Process session management with background execution
- Process group kill for cleaning up child processes
- Session cleanup: 30-minute TTL for old sessions
- Output buffer: 100MB limit with truncation
Actions:
- run: execute command (sync or background)
- list: list all sessions
- poll: check session status
- read: read session output
- write: send input to session stdin
- send-keys: send special keys (up, down, ctrl-c, enter, etc.)
- kill: terminate session
Tests:
- PTY: allowed commands, write/read, poll, kill, process group kill
- Non-PTY: background execution, list, read, write, poll, kill, process group kill
- Session management: add/get/remove/list/cleanup
2026-03-25 21:02:49 +08:00
..
2026-03-05 09:57:33 +08:00
2026-03-18 01:37:07 +08:00
2026-03-17 18:56:52 +08:00
2026-02-23 20:09:53 +11:00
2026-03-02 12:22:02 +08:00
2026-03-19 11:22:52 +08:00
2026-03-19 11:22:52 +08:00
2026-02-20 22:35:16 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-22 12:05:28 +01:00
2026-03-22 12:05:28 +01:00
2026-03-05 09:57:33 +08:00
2026-03-05 09:57:33 +08:00
2026-03-22 12:05:28 +01:00
2026-03-22 12:05:28 +01:00
2026-03-24 15:37:06 +01:00
2026-03-22 12:05:28 +01:00
2026-03-22 23:08:27 +01:00
2026-03-09 18:21:49 +01:00
2026-03-09 18:21:49 +01:00
2026-03-23 13:16:23 +01:00
2026-03-23 13:16:23 +01:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-02-18 02:01:29 +08:00
2026-02-18 02:01:29 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-02-20 20:03:11 +02:00
2026-02-24 23:57:13 +08:00
2026-02-20 20:03:11 +02:00
2026-02-20 20:03:11 +02:00
2026-03-17 14:41:43 +08:00
2026-03-17 14:41:43 +08:00
2026-03-19 13:51:11 +08:00
2026-03-21 17:12:45 +08:00
2026-02-18 21:48:23 +02:00
2026-02-18 21:48:23 +02:00
2026-02-24 21:52:25 +08:00
2026-03-19 13:51:11 +08:00
2026-03-22 19:21:58 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-03-22 12:05:28 +01:00
2026-03-25 21:02:49 +08:00
2026-03-24 18:35:56 +08:00
2026-03-24 18:35:56 +08:00
2026-03-19 17:01:45 +08:00
2026-03-23 10:21:06 +08:00