提交记录/
refactor:TUI 去掉 v2 名称
Co-authored-by: Cursor Agent<cursoragent@cursor.com>
共 55 个文件变更+562-302
Mapps/tui/README.md+7-7
@@ -12,13 +12,13 @@ npm install
12npm run start:tui12npm run start:tui
13```13```
14 14 
15-`npm run start:tui` is V2. It connects to `/dataagent/stream` at the address in Home `config.json` `server.host` and `server.port`, default `http://127.0.0.1:8790`. Nothing listening there starts `dataagent serve`; a control plane that is already up is reused. It does not open `/api/copilotkit`.15+`npm run start:tui` connects to `/dataagent/stream` at the address in Home `config.json` `server.host` and `server.port`, default `http://127.0.0.1:8790`. Nothing listening there starts `dataagent serve`; a control plane that is already up is reused. It does not open `/api/copilotkit`.
16 16 
17-## DataAgent V217+## Home
18 18 
19Home defaults live in `~/.dataagent`. Add `--resume` or `--resume <threadId>` to restore a session. `--config`, `--env-file`, `--workspace`, `--user` and `--session` are forwarded to a backend this TUI starts, so they do not attach to one that is already running.19Home defaults live in `~/.dataagent`. Add `--resume` or `--resume <threadId>` to restore a session. `--config`, `--env-file`, `--workspace`, `--user` and `--session` are forwarded to a backend this TUI starts, so they do not attach to one that is already running.
20 20 
21-`--runtime-url` attaches and does not start a backend. The host must be `server.host` from `config.json`, or `127.0.0.1`.21+`--runtime-url` attaches and does not start a backend. The host may be `server.host` from `config.json`, a loopback address, or another IP. `0.0.0.0` and `::` connect through loopback.
22 22 
23```bash23```bash
24npm run start:tui -- --runtime-url http://127.0.0.1:879024npm run start:tui -- --runtime-url http://127.0.0.1:8790
@@ -29,7 +29,7 @@ There is no project configuration layer or trust prompt. Logs/checkpoints live i
29Existing session input bindings are retained; no files are migrated or deleted. TUI theme29Existing session input bindings are retained; no files are migrated or deleted. TUI theme
30and log variables stay in the TUI process environment. `--env-file` is forwarded to the backend that this TUI starts.30and log variables stay in the TUI process environment. `--env-file` is forwarded to the backend that this TUI starts.
31 31 
32-See the [V2 configuration and plugin guide](../../runtime/agentkit/README.md).32+See the [configuration and plugin guide](../../runtime/agentkit/README.md).
33 33 
34## Chat and keyboard behavior34## Chat and keyboard behavior
35 35 
@@ -42,11 +42,11 @@ is four rows. Both home and chat support
42- Enter submits. Shift+Enter (CSI-u or xterm modifyOtherKeys), Alt+Enter and Ctrl+J insert a newline.42- Enter submits. Shift+Enter (CSI-u or xterm modifyOtherKeys), Alt+Enter and Ctrl+J insert a newline.
43- Multi-line bracketed paste stays one editable draft; large pastes keep the existing fold/expand behavior.43- Multi-line bracketed paste stays one editable draft; large pastes keep the existing fold/expand behavior.
44- Up/Down navigate the draft and command history. Messages entered during a run remain queued.44- Up/Down navigate the draft and command history. Messages entered during a run remain queued.
45-- `/` opens commands and Tab completes. V2 exposes `/help`, `/clear`, `/resume`, `/resume list`, `/resume latest`, `/resume <id>`, `/outputs` and `/exit`. `/resume` and `/resume list` open the session picker.45+- `/` opens commands and Tab completes. The TUI exposes `/help`, `/clear`, `/resume`, `/resume list`, `/resume latest`, `/resume <id>`, `/outputs` and `/exit`. `/resume` and `/resume list` open the session picker.
46- `/outputs` opens the full output list at any width. Enter previews a result; Esc returns to the list, then chat; q closes the view. Chat always uses a single column, with no output sidebar or extra footer indicators.46- `/outputs` opens the full output list at any width. Enter previews a result; Esc returns to the list, then chat; q closes the view. Chat always uses a single column, with no output sidebar or extra footer indicators.
47-- Ctrl+C keeps the existing two-press exit flow; Ctrl+Z/fg restores the terminal and input cursor in V2.47+- Ctrl+C keeps the existing two-press exit flow; Ctrl+Z/fg restores the terminal and input cursor in the TUI.
48 48 
49-V2 shows `Running…` with elapsed time while the full response stream is pending.49+The TUI shows `Running…` with elapsed time while the full response stream is pending.
50 50 
51User messages share the composer's surface and text alignment. Assistant text51User messages share the composer's surface and text alignment. Assistant text
52uses a single bullet without repeated role/timestamp headers. Tools show an52uses a single bullet without repeated role/timestamp headers. Tools show an
Mapps/tui/package.json+1-1
Rapps/tui/src/v2-startup.test.ts→apps/tui/src/backend.test.ts+9-9
Rapps/tui/src/v2-backend.ts→apps/tui/src/backend.ts+5-5
Rapps/tui/src/v2.test.ts→apps/tui/src/connect.test.ts+217-40
Rapps/tui/src/v2.ts→apps/tui/src/connect.ts+48-23
Mapps/tui/src/index.tsx+36-24
Mapps/tui/src/protocol/agui-client.test.ts+1-1
Rapps/tui/src/protocol/v2-session-client.ts→apps/tui/src/protocol/session-client.ts+6-6
Rapps/tui/src/v2-terminal.ts→apps/tui/src/terminal-lifecycle.ts+2-2文件内容审核中,请稍后刷新重试
Rapps/tui/src/ui/App-v2.test.tsx→apps/tui/src/ui/App.test.tsx+34-34
Mapps/tui/src/ui/App.tsx+44-44
Mdocs/en/guides/tui.md+4-4
Mdocs/zh/guides/tui.md+4-4
Mruntime/agentkit/a2a_server/agent_card.py+7-2
Mruntime/agentkit/builtin-plugins/nl2sql/README.md+1-1
Mruntime/agentkit/dataagent/__init__.py+1-1
Mruntime/agentkit/dataagent/bootstrap/environment.py+1-1文件内容审核中,请稍后刷新重试
Mruntime/agentkit/dataagent/extensions/compiler.py+1-1
Mruntime/agentkit/dataagent/extensions/loading.py+1-1

评论