MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / AssistantMessageBlock

Function AssistantMessageBlock

src/components/Message.tsx:433–590  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

431 }
432}
433function AssistantMessageBlock(t0) {
434 const $ = _c(45);
435 const {
436 param,
437 addMargin,
438 tools,
439 commands,
440 verbose,
441 inProgressToolUseIDs,
442 progressMessagesForMessage,
443 shouldAnimate,
444 shouldShowDot,
445 width,
446 inProgressToolCallCount,
447 isTranscriptMode,
448 lookups,
449 onOpenRateLimitOptions,
450 thinkingBlockId,
451 lastThinkingBlockId,
452 advisorModel
453 } = t0;
454 if (feature("CONNECTOR_TEXT")) {
455 if (isConnectorTextBlock(param)) {
456 let t1;
457 if ($[0] !== param.connector_text) {
458 t1 = {
459 type: "text",
460 text: param.connector_text
461 };
462 $[0] = param.connector_text;
463 $[1] = t1;
464 } else {
465 t1 = $[1];
466 }
467 let t2;
468 if ($[2] !== addMargin || $[3] !== onOpenRateLimitOptions || $[4] !== shouldShowDot || $[5] !== t1 || $[6] !== verbose || $[7] !== width) {
469 t2 = <AssistantTextMessage param={t1} addMargin={addMargin} shouldShowDot={shouldShowDot} verbose={verbose} width={width} onOpenRateLimitOptions={onOpenRateLimitOptions} />;
470 $[2] = addMargin;
471 $[3] = onOpenRateLimitOptions;
472 $[4] = shouldShowDot;
473 $[5] = t1;
474 $[6] = verbose;
475 $[7] = width;
476 $[8] = t2;
477 } else {
478 t2 = $[8];
479 }
480 return t2;
481 }
482 }
483 switch (param.type) {
484 case "tool_use":
485 {
486 let t1;
487 if ($[9] !== addMargin || $[10] !== commands || $[11] !== inProgressToolCallCount || $[12] !== inProgressToolUseIDs || $[13] !== isTranscriptMode || $[14] !== lookups || $[15] !== param || $[16] !== progressMessagesForMessage || $[17] !== shouldAnimate || $[18] !== shouldShowDot || $[19] !== tools || $[20] !== verbose) {
488 t1 = <AssistantToolUseMessage param={param} addMargin={addMargin} tools={tools} commands={commands} verbose={verbose} inProgressToolUseIDs={inProgressToolUseIDs} progressMessagesForMessage={progressMessagesForMessage} shouldAnimate={shouldAnimate} shouldShowDot={shouldShowDot} inProgressToolCallCount={inProgressToolCallCount} lookups={lookups} isTranscriptMode={isTranscriptMode} />;
489 $[9] = addMargin;
490 $[10] = commands;

Callers

nothing calls this directly

Calls 4

featureFunction · 0.85
isConnectorTextBlockFunction · 0.85
isAdvisorBlockFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected