2024-07-17 18:54:46 +00:00
|
|
|
// see https://docs.anthropic.com/en/docs/about-claude/models
|
2024-10-21 14:02:57 +00:00
|
|
|
export const MAX_TOKENS = 8000;
|
2024-07-19 09:12:55 +00:00
|
|
|
|
|
|
|
// limits the number of model responses that can be returned in a single request
|
|
|
|
export const MAX_RESPONSE_SEGMENTS = 2;
|
2025-01-22 17:18:13 +00:00
|
|
|
|
|
|
|
export interface File {
|
|
|
|
type: 'file';
|
|
|
|
content: string;
|
|
|
|
isBinary: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Folder {
|
|
|
|
type: 'folder';
|
|
|
|
}
|
|
|
|
|
|
|
|
type Dirent = File | Folder;
|
|
|
|
|
|
|
|
export type FileMap = Record<string, Dirent | undefined>;
|
|
|
|
|
|
|
|
export const IGNORE_PATTERNS = [
|
|
|
|
'node_modules/**',
|
|
|
|
'.git/**',
|
|
|
|
'dist/**',
|
|
|
|
'build/**',
|
|
|
|
'.next/**',
|
|
|
|
'coverage/**',
|
|
|
|
'.cache/**',
|
|
|
|
'.vscode/**',
|
|
|
|
'.idea/**',
|
|
|
|
'**/*.log',
|
|
|
|
'**/.DS_Store',
|
|
|
|
'**/npm-debug.log*',
|
|
|
|
'**/yarn-debug.log*',
|
|
|
|
'**/yarn-error.log*',
|
|
|
|
'**/*lock.json',
|
|
|
|
'**/*lock.yml',
|
|
|
|
];
|