Skip to content

Commit 9680ced

Browse files
committed
fix: use traecli for built-in trae agent
1 parent 50ea9fc commit 9680ced

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Built-ins:
333333
| `kiro` | native (`kiro-cli acp`) | [Kiro CLI](https://kiro.dev) |
334334
| `opencode` | `npx -y opencode-ai acp` | [OpenCode](https://opencode.ai) |
335335
| `qwen` | native (`qwen --acp`) | [Qwen Code](https://github.com/QwenLM/qwen-code) |
336-
| `trae` | native (`trae-cli acp serve`) | [Trae CLI](https://docs.trae.cn/cli) |
336+
| `trae` | native (`traecli acp serve`) | [Trae CLI](https://docs.trae.cn/cli) |
337337

338338
`factory-droid` and `factorydroid` also resolve to the built-in `droid` adapter.
339339

agents/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Built-in agents:
1616
- `kiro -> kiro-cli acp`
1717
- `opencode -> npx -y opencode-ai acp`
1818
- `qwen -> qwen --acp`
19-
- `trae -> trae-cli acp serve`
19+
- `trae -> traecli acp serve`
2020

2121
Harness-specific docs in this directory:
2222

@@ -31,4 +31,4 @@ Harness-specific docs in this directory:
3131
- [Kiro](Kiro.md): built-in `kiro -> kiro-cli acp`
3232
- [OpenCode](OpenCode.md): built-in `opencode -> npx -y opencode-ai acp`
3333
- [Qwen](Qwen.md): built-in `qwen -> qwen --acp`
34-
- [Trae](Trae.md): built-in `trae -> trae-cli acp serve`
34+
- [Trae](Trae.md): built-in `trae -> traecli acp serve`

agents/Trae.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Trae
22

33
- Built-in name: `trae`
4-
- Default command: `trae-cli acp serve`
4+
- Default command: `traecli acp serve`
55
- Upstream: https://docs.trae.cn/cli

skills/acpx/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Friendly agent names resolve to commands:
8585
- `kiro` -> `kiro-cli acp`
8686
- `opencode` -> `npx -y opencode-ai acp`
8787
- `qwen` -> `qwen --acp`
88-
- `trae` -> `trae-cli acp serve`
88+
- `trae` -> `traecli acp serve`
8989
9090
Rules:
9191

src/agent-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const AGENT_REGISTRY: Record<string, string> = {
1919
kiro: "kiro-cli acp",
2020
opencode: "npx -y opencode-ai acp",
2121
qwen: "qwen --acp",
22-
trae: "trae-cli acp serve",
22+
trae: "traecli acp serve",
2323
};
2424

2525
const AGENT_ALIASES: Record<string, string> = {

test/agent-registry.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ test("resolveAgentCommand prefers explicit alias overrides over built-in alias m
3232
);
3333
});
3434

35+
test("trae built-in uses the standard traecli executable", () => {
36+
assert.equal(AGENT_REGISTRY.trae, "traecli acp serve");
37+
assert.equal(resolveAgentCommand("trae"), "traecli acp serve");
38+
});
39+
3540
test("listBuiltInAgents preserves the required example prefix and alphabetical tail", () => {
3641
const agents = listBuiltInAgents();
3742
assert.deepEqual(agents, Object.keys(AGENT_REGISTRY));

0 commit comments

Comments
 (0)