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-25 21:02:49 +08:00
2026-03-19 18:04:58 +08:00
2026-03-20 21:04:14 +08:00
2026-03-24 23:37:35 +08:00
2026-03-22 23:36:25 +01:00
2026-03-25 15:29:43 +08:00
2026-02-19 11:48:17 +01:00
2026-03-18 18:03:24 +08:00
2026-03-18 00:02:51 +08:00
2026-02-24 21:52:25 +08:00
2026-03-24 03:26:11 +01:00
2026-03-25 16:59:11 +08:00
2026-03-19 13:42:36 +08:00
2026-03-15 21:58:21 +08:00
2026-03-21 17:09:02 +07:00
2026-03-23 20:55:41 +08:00
2026-03-05 14:53:26 +08:00
2026-03-23 12:13:59 +08:00
2026-03-12 13:52:55 +08:00
2026-03-24 20:23:29 +08:00
2026-03-24 01:33:05 +01:00
2026-03-12 13:52:55 +08:00
2026-03-12 13:52:55 +08:00
2026-03-13 14:04:02 +08:00
2026-03-12 13:52:55 +08:00
2026-03-25 21:02:49 +08:00
2026-03-23 00:23:30 +01:00
2026-03-23 22:11:10 +01:00
2026-03-19 18:04:58 +08:00