@@ -69,9 +69,7 @@ export default class LocalNavie extends EventEmitter implements INavie {
6969 this . trajectory = trajectory ;
7070 }
7171
72- get providerName ( ) {
73- return 'local' ;
74- }
72+ readonly providerName = 'local' ;
7573
7674 setOption ( key : keyof typeof OPTION_SETTERS , value : string | number ) {
7775 const setter = OPTION_SETTERS [ key ] ;
@@ -125,6 +123,7 @@ export default class LocalNavie extends EventEmitter implements INavie {
125123 chatHistory = thread . getChatHistory ( ) ;
126124 } catch ( e ) {
127125 if ( verbose ( ) ) {
126+ // eslint-disable-next-line no-console
128127 console . warn ( `Failed to load thread ${ threadId } : ${ e } ` ) ;
129128 }
130129 // If the thread failed to load, history will be empty.
@@ -136,6 +135,7 @@ export default class LocalNavie extends EventEmitter implements INavie {
136135 const thread = await history . load ( threadId ) ;
137136 chatHistory = thread . messages ;
138137 } catch ( e ) {
138+ // eslint-disable-next-line no-console
139139 if ( verbose ( ) ) console . warn ( `Failed to load legacy thread ${ threadId } : ${ e } ` ) ;
140140 }
141141 history ?. question ( threadId , userMessageId , question , codeSelection , prompt ) ;
@@ -156,7 +156,6 @@ export default class LocalNavie extends EventEmitter implements INavie {
156156 ) ;
157157
158158 let agentName : string | undefined ;
159- let classification : ContextV2 . ContextLabel [ ] | undefined ;
160159 const debugProperties : Record < string , string > = { } ;
161160 const debugMetrics : Record < string , number > = { } ;
162161 this . activeNavie . on ( 'event' , ( event ) => {
@@ -189,7 +188,6 @@ export default class LocalNavie extends EventEmitter implements INavie {
189188 } ) ;
190189 debugMetrics [ metrics . NavieClassificationCount ] = labels . length ;
191190 debugMetrics [ metrics . NavieClassificationMs ] = performance . now ( ) - startTime ;
192- classification = labels ;
193191 } ) ;
194192 if ( this . trajectory )
195193 this . activeNavie . on ( 'trajectory' , this . trajectory . logMessage . bind ( this . trajectory ) ) ;
0 commit comments