File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,13 +124,27 @@ export interface Heartbeat {
124124}
125125
126126export interface AIExtension {
127- name : string ;
127+ name :
128+ | 'claude'
129+ | 'codex'
130+ | 'copilot'
131+ | 'cursor'
132+ | 'gemini'
133+ | 'codeium'
134+ | 'continue'
135+ | 'cody'
136+ | 'supermaven'
137+ | 'tabnine'
138+ | 'vscode-ai-toolkit'
139+ | 'factory'
140+ | 'opencode'
141+ | 'openclaw' ;
128142 extensionIds : string [ ] ;
129143 transcriptLogGlobs : string [ ] ;
130144}
131145
132146export interface ParsedGlob {
133- aiName : string ;
147+ aiName : AIExtension [ 'name' ] ;
134148 baseDir : string ;
135149 filePattern : RegExp ;
136150 isLiteral : boolean ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as fsAsync from 'fs/promises';
33import * as path from 'path' ;
44
55import {
6+ AIExtension ,
67 CursorRow ,
78 ParsedGlob ,
89 SqlJsInit ,
@@ -113,7 +114,10 @@ export class TranscriptWatcher {
113114 return this . sqlJsPromise ;
114115 }
115116
116- private async processJSONLogFile ( filePath : string , aiName : string ) : Promise < boolean > {
117+ private async processJSONLogFile (
118+ filePath : string ,
119+ aiName : AIExtension [ 'name' ] ,
120+ ) : Promise < boolean > {
117121 try {
118122 if ( ! filePath . endsWith ( '.jsonl' ) ) return false ;
119123
@@ -178,7 +182,7 @@ export class TranscriptWatcher {
178182 return false ;
179183 }
180184
181- private async processSQLiteFile ( filePath : string , aiName : string ) : Promise < boolean > {
185+ private async processSQLiteFile ( filePath : string , aiName : AIExtension [ 'name' ] ) : Promise < boolean > {
182186 try {
183187 if ( ! filePath . endsWith ( '.vscdb' ) ) return false ;
184188
@@ -490,7 +494,7 @@ export class TranscriptWatcher {
490494 return false ;
491495 }
492496
493- private parseGlob ( glob : string , aiName : string ) : ParsedGlob | null {
497+ private parseGlob ( glob : string , aiName : AIExtension [ 'name' ] ) : ParsedGlob | null {
494498 const parts = glob . split ( '/' ) ;
495499 const baseParts : string [ ] = [ ] ;
496500 const patternParts : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments