forked from nexu-io/open-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrae-cli.ts
More file actions
23 lines (22 loc) · 738 Bytes
/
Copy pathtrae-cli.ts
File metadata and controls
23 lines (22 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { detectAcpModels, DEFAULT_MODEL_OPTION } from './shared.js';
import type { RuntimeAgentDef } from '../types.js';
export const traeCliAgentDef = {
id: 'trae-cli',
name: 'Trae CLI',
bin: 'traecli',
versionArgs: ['--version'],
versionProbeTimeoutMs: 10_000,
fetchModels: async (resolvedBin, env) =>
detectAcpModels({
bin: resolvedBin,
args: ['acp', 'serve'],
env,
timeoutMs: 15_000,
defaultModelOption: DEFAULT_MODEL_OPTION,
}),
fallbackModels: [DEFAULT_MODEL_OPTION],
buildArgs: () => ['acp', 'serve', '--yolo'],
streamFormat: 'acp-json-rpc',
mcpDiscovery: 'mature-acp',
externalMcpInjection: 'acp-merge',
} satisfies RuntimeAgentDef;