返回 html-video
trae-cli.ts
根目录 / packages / runtime / src / defs / trae-cli.ts
1 import type { AgentDef } from '../types.js';
2
3 /**
4 * Trae CLI public ACP adapter.
5 *
6 * html-video runs agent CLIs from the local studio/CLI process without a TTY.
7 * Trae's ACP server therefore has to start in yolo mode so tool calls do not
8 * block forever behind an interactive permission prompt the studio cannot
9 * answer.
10 */
11 export const traeCli: AgentDef = {
12 id: 'trae-cli',
13 name: 'Trae CLI',
14 bin: 'traecli',
15 versionArgs: ['--version'],
16 buildArgs() {
17 return ['acp', 'serve', '--yolo'];
18 },
19 streamFormat: 'acp-json-rpc',
20 installUrl: 'https://www.volcengine.com/docs/86677/2227861?lang=zh',
21 };
22
22 lines TYPESCRIPT