-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathindex.ts
More file actions
50 lines (49 loc) · 1.7 KB
/
Copy pathindex.ts
File metadata and controls
50 lines (49 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type { SlashCommand } from '../types';
import { createBugCommand } from './bug';
import { clearCommand } from './clear';
import { compactCommand } from './compact';
import { exitCommand } from './exit';
import { helpCommand } from './help';
import { createInitCommand } from './init';
import { createLoginCommand } from './login';
import { createLogoutCommand } from './logout';
import { createMcpCommand } from './mcp';
import { createModelCommand } from './model';
import { createOutputStyleCommand } from './output-style';
import { createResumeCommand } from './resume';
import { createReviewCommand } from './review';
import { createSettingCommand } from './setting';
import { brainstormCommand } from './spec/brainstorm';
import { executePlanCommand } from './spec/execute-plan';
import { saveDesignCommand } from './spec/save-design';
import { writePlanCommand } from './spec/write-plan';
import { statusCommand } from './status';
import { createTerminalSetupCommand } from './terminal-setup';
export function createBuiltinCommands(opts: {
productName: string;
argvConfig: Record<string, any>;
language: string;
}): SlashCommand[] {
return [
clearCommand,
exitCommand,
helpCommand,
createInitCommand(opts),
createLoginCommand(),
createLogoutCommand(),
createMcpCommand(opts),
createModelCommand(opts),
createOutputStyleCommand(),
createResumeCommand(),
createReviewCommand(opts.language),
createSettingCommand(),
createTerminalSetupCommand(),
createBugCommand(),
compactCommand,
statusCommand,
brainstormCommand(opts.language),
writePlanCommand(opts.language),
executePlanCommand(opts.language),
saveDesignCommand(opts.language),
];
}