Skip to content

Commit 0d2dfa4

Browse files
feat: extend ContextAnnotation with file categorization
- Add FileCategory type for file classification - Add optional categories field to codeContext - Add optional relevanceScores field for ranking - Add optional selectionReason field for explanation
1 parent f157b91 commit 0d2dfa4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/types/context.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
export type FileCategory = 'component' | 'config' | 'style' | 'test' | 'api' | 'util' | 'other';
2+
13
export type ContextAnnotation =
24
| {
35
type: 'codeContext';
46
files: string[];
7+
categories?: Record<string, FileCategory>;
8+
relevanceScores?: Record<string, number>;
9+
selectionReason?: string;
510
}
611
| {
712
type: 'chatSummary';

0 commit comments

Comments
 (0)