@@ -303,7 +303,7 @@ describe('completeToolInvocation', () => {
303303 it ( 'populates terminal output data' , ( ) => {
304304 const toolUse = createToolUseBlock ( ClaudeToolNames . Bash , { command : 'npm install' } ) ;
305305 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'added 150 packages\nDone in 5.2s' ) ;
306- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
306+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
307307
308308 completeToolInvocation ( toolUse , toolResult , invocation ) ;
309309
@@ -318,7 +318,7 @@ describe('completeToolInvocation', () => {
318318 it ( 'parses exit code from output' , ( ) => {
319319 const toolUse = createToolUseBlock ( ClaudeToolNames . Bash , { command : 'npm test' } ) ;
320320 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'Tests failed\nexit code: 1' ) ;
321- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
321+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
322322
323323 completeToolInvocation ( toolUse , toolResult , invocation ) ;
324324
@@ -330,7 +330,7 @@ describe('completeToolInvocation', () => {
330330 it ( 'parses "exited with" format exit code' , ( ) => {
331331 const toolUse = createToolUseBlock ( ClaudeToolNames . Bash , { command : 'false' } ) ;
332332 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'Command failed\nexited with 127' ) ;
333- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
333+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
334334
335335 completeToolInvocation ( toolUse , toolResult , invocation ) ;
336336
@@ -341,7 +341,7 @@ describe('completeToolInvocation', () => {
341341 it ( 'handles empty output' , ( ) => {
342342 const toolUse = createToolUseBlock ( ClaudeToolNames . Bash , { command : 'true' } ) ;
343343 const toolResult = createToolResultBlock ( 'test-tool-id-123' , '' ) ;
344- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
344+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
345345
346346 completeToolInvocation ( toolUse , toolResult , invocation ) ;
347347
@@ -352,7 +352,7 @@ describe('completeToolInvocation', () => {
352352 it ( 'converts newlines to CRLF for terminal display' , ( ) => {
353353 const toolUse = createToolUseBlock ( ClaudeToolNames . Bash , { command : 'ls' } ) ;
354354 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'file1.ts\nfile2.ts\nfile3.ts' ) ;
355- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
355+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
356356
357357 completeToolInvocation ( toolUse , toolResult , invocation ) ;
358358
@@ -366,7 +366,7 @@ describe('completeToolInvocation', () => {
366366 const toolUse = createToolUseBlock ( ClaudeToolNames . Read , { file_path : '/path/to/file.ts' } ) ;
367367 const fileContent = 'export function hello() {\n return "world";\n}' ;
368368 const toolResult = createToolResultBlock ( 'test-tool-id-123' , fileContent ) ;
369- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
369+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
370370
371371 completeToolInvocation ( toolUse , toolResult , invocation ) ;
372372
@@ -379,7 +379,7 @@ describe('completeToolInvocation', () => {
379379 it ( 'does not populate data when content is empty' , ( ) => {
380380 const toolUse = createToolUseBlock ( ClaudeToolNames . Read , { file_path : '/path/to/empty.ts' } ) ;
381381 const toolResult = createToolResultBlock ( 'test-tool-id-123' , '' ) ;
382- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
382+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
383383
384384 completeToolInvocation ( toolUse , toolResult , invocation ) ;
385385
@@ -392,7 +392,7 @@ describe('completeToolInvocation', () => {
392392 const toolUse = createToolUseBlock ( ClaudeToolNames . LS , { path : '/project/src' } ) ;
393393 const listing = 'index.ts\nutils/\ncomponents/' ;
394394 const toolResult = createToolResultBlock ( 'test-tool-id-123' , listing ) ;
395- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
395+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
396396
397397 completeToolInvocation ( toolUse , toolResult , invocation ) ;
398398
@@ -408,7 +408,7 @@ describe('completeToolInvocation', () => {
408408 const toolUse = createToolUseBlock ( ClaudeToolNames . Glob , { pattern : '**/*.spec.ts' } ) ;
409409 const results = '/src/a.spec.ts\n/src/b.spec.ts\n/test/c.spec.ts' ;
410410 const toolResult = createToolResultBlock ( 'test-tool-id-123' , results ) ;
411- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
411+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
412412
413413 completeToolInvocation ( toolUse , toolResult , invocation ) ;
414414
@@ -424,7 +424,7 @@ describe('completeToolInvocation', () => {
424424 const toolUse = createToolUseBlock ( ClaudeToolNames . Grep , { pattern : 'TODO' } ) ;
425425 const results = '/src/file.ts:10: // TODO: fix this\n/src/other.ts:25: // TODO: refactor' ;
426426 const toolResult = createToolResultBlock ( 'test-tool-id-123' , results ) ;
427- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
427+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
428428
429429 completeToolInvocation ( toolUse , toolResult , invocation ) ;
430430
@@ -439,7 +439,7 @@ describe('completeToolInvocation', () => {
439439 it ( 'does not populate data for Edit tool (has separate UI)' , ( ) => {
440440 const toolUse = createToolUseBlock ( ClaudeToolNames . Edit , { file_path : '/path/to/file.ts' } ) ;
441441 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'File edited successfully' ) ;
442- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
442+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
443443
444444 completeToolInvocation ( toolUse , toolResult , invocation ) ;
445445
@@ -449,7 +449,7 @@ describe('completeToolInvocation', () => {
449449 it ( 'does not populate data for Write tool (has separate UI)' , ( ) => {
450450 const toolUse = createToolUseBlock ( ClaudeToolNames . Write , { file_path : '/path/to/new.ts' } ) ;
451451 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'File created' ) ;
452- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
452+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
453453
454454 completeToolInvocation ( toolUse , toolResult , invocation ) ;
455455
@@ -459,7 +459,7 @@ describe('completeToolInvocation', () => {
459459 it ( 'does not populate data for TodoWrite tool (has separate UI)' , ( ) => {
460460 const toolUse = createToolUseBlock ( ClaudeToolNames . TodoWrite , { todos : [ ] } ) ;
461461 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'Todos updated' ) ;
462- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
462+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
463463
464464 completeToolInvocation ( toolUse , toolResult , invocation ) ;
465465
@@ -511,7 +511,7 @@ describe('completeToolInvocation', () => {
511511 it ( 'populates JSON input and string output' , ( ) => {
512512 const toolUse = createToolUseBlock ( 'CustomTool' , { arg1 : 'value1' , arg2 : 42 } ) ;
513513 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'Custom tool completed successfully' ) ;
514- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
514+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
515515
516516 completeToolInvocation ( toolUse , toolResult , invocation ) ;
517517
@@ -524,7 +524,7 @@ describe('completeToolInvocation', () => {
524524 it ( 'does not populate data when output is empty' , ( ) => {
525525 const toolUse = createToolUseBlock ( 'CustomTool' , { arg : 'value' } ) ;
526526 const toolResult = createToolResultBlock ( 'test-tool-id-123' , '' ) ;
527- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
527+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
528528
529529 completeToolInvocation ( toolUse , toolResult , invocation ) ;
530530
@@ -536,7 +536,7 @@ describe('completeToolInvocation', () => {
536536 it ( 'handles string content directly' , ( ) => {
537537 const toolUse = createToolUseBlock ( ClaudeToolNames . Read , { file_path : '/file.ts' } ) ;
538538 const toolResult = createToolResultBlock ( 'test-tool-id-123' , 'plain string content' ) ;
539- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
539+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
540540
541541 completeToolInvocation ( toolUse , toolResult , invocation ) ;
542542
@@ -550,7 +550,7 @@ describe('completeToolInvocation', () => {
550550 { type : 'text' as const , text : 'first block' } ,
551551 { type : 'text' as const , text : 'second block' }
552552 ] ) ;
553- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
553+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
554554
555555 completeToolInvocation ( toolUse , toolResult , invocation ) ;
556556
@@ -564,7 +564,7 @@ describe('completeToolInvocation', () => {
564564 { type : 'text' as const , text : 'text content' } ,
565565 { type : 'image' as const , source : { type : 'base64' as const , media_type : 'image/png' as const , data : 'abc' } }
566566 ] ) ;
567- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
567+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
568568
569569 completeToolInvocation ( toolUse , toolResult , invocation ) ;
570570
@@ -575,7 +575,7 @@ describe('completeToolInvocation', () => {
575575 it ( 'handles undefined content' , ( ) => {
576576 const toolUse = createToolUseBlock ( ClaudeToolNames . Read , { file_path : '/file.ts' } ) ;
577577 const toolResult = createToolResultBlock ( 'test-tool-id-123' , undefined ) ;
578- const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false ) ;
578+ const invocation = new ChatToolInvocationPart ( toolUse . name , toolUse . id , false as unknown as string ) ;
579579
580580 completeToolInvocation ( toolUse , toolResult , invocation ) ;
581581
0 commit comments