File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export type CodebuffClientOptions = {
2323 apiKey ?: string
2424 cwd : string
2525 onError : ( error : { message : string } ) => void
26- overrideTools : Partial <
26+ overrideTools ? : Partial <
2727 Record <
2828 ClientToolName ,
2929 (
@@ -47,7 +47,9 @@ export class CodebuffClient {
4747 public cwd : string
4848
4949 private readonly websocketHandler : WebSocketHandler
50- private readonly overrideTools : CodebuffClientOptions [ 'overrideTools' ]
50+ private readonly overrideTools : NonNullable <
51+ CodebuffClientOptions [ 'overrideTools' ]
52+ >
5153 private readonly fingerprintId = `codebuff-sdk-${ Math . random ( ) . toString ( 36 ) . substring ( 2 , 15 ) } `
5254
5355 private readonly promptIdToHandleEvent : Record <
@@ -79,7 +81,7 @@ export class CodebuffClient {
7981 }
8082
8183 this . cwd = cwd
82- this . overrideTools = overrideTools
84+ this . overrideTools = overrideTools ?? { }
8385 this . websocketHandler = new WebSocketHandler ( {
8486 apiKey : foundApiKey ,
8587 onWebsocketError : ( error ) => {
You can’t perform that action at this time.
0 commit comments