forked from eastlondoner/cursor-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
34 lines (30 loc) · 810 Bytes
/
types.ts
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
export type CommandGenerator = AsyncGenerator<string, void, unknown>;
export interface CommandOptions {
model?: string;
maxTokens?: number;
saveTo?: string; // Path to save output to in addition to stdout
hint?: string; // Additional context or hint for the AI
url?: string; // URL for browser commands
debug?: boolean; // Enable debug output
}
export interface Command {
execute(query: string, options?: CommandOptions): CommandGenerator;
}
export interface CommandMap {
[key: string]: Command;
}
export interface Config {
perplexity: {
model: string;
apiKey?: string;
maxTokens?: number;
};
gemini: {
model: string;
apiKey?: string;
maxTokens?: number;
};
doc?: {
maxRepoSizeMB?: number; // Maximum repository size in MB for remote processing
};
}