(t0)
| 27 | timestamp?: string; |
| 28 | }; |
| 29 | export function UserTextMessage(t0) { |
| 30 | const $ = _c(49); |
| 31 | const { |
| 32 | addMargin, |
| 33 | param, |
| 34 | verbose, |
| 35 | planContent, |
| 36 | isTranscriptMode, |
| 37 | timestamp |
| 38 | } = t0; |
| 39 | if (param.text.trim() === NO_CONTENT_MESSAGE) { |
| 40 | return null; |
| 41 | } |
| 42 | if (planContent) { |
| 43 | let t1; |
| 44 | if ($[0] !== addMargin || $[1] !== planContent) { |
| 45 | t1 = <UserPlanMessage addMargin={addMargin} planContent={planContent} />; |
| 46 | $[0] = addMargin; |
| 47 | $[1] = planContent; |
| 48 | $[2] = t1; |
| 49 | } else { |
| 50 | t1 = $[2]; |
| 51 | } |
| 52 | return t1; |
| 53 | } |
| 54 | if (extractTag(param.text, TICK_TAG)) { |
| 55 | return null; |
| 56 | } |
| 57 | if (param.text.includes(`<${LOCAL_COMMAND_CAVEAT_TAG}>`)) { |
| 58 | return null; |
| 59 | } |
| 60 | if (param.text.startsWith("<bash-stdout") || param.text.startsWith("<bash-stderr")) { |
| 61 | let t1; |
| 62 | if ($[3] !== param.text || $[4] !== verbose) { |
| 63 | t1 = <UserBashOutputMessage content={param.text} verbose={verbose} />; |
| 64 | $[3] = param.text; |
| 65 | $[4] = verbose; |
| 66 | $[5] = t1; |
| 67 | } else { |
| 68 | t1 = $[5]; |
| 69 | } |
| 70 | return t1; |
| 71 | } |
| 72 | if (param.text.startsWith("<local-command-stdout") || param.text.startsWith("<local-command-stderr")) { |
| 73 | let t1; |
| 74 | if ($[6] !== param.text) { |
| 75 | t1 = <UserLocalCommandOutputMessage content={param.text} />; |
| 76 | $[6] = param.text; |
| 77 | $[7] = t1; |
| 78 | } else { |
| 79 | t1 = $[7]; |
| 80 | } |
| 81 | return t1; |
| 82 | } |
| 83 | if (param.text === INTERRUPT_MESSAGE || param.text === INTERRUPT_MESSAGE_FOR_TOOL_USE) { |
| 84 | let t1; |
| 85 | if ($[8] === Symbol.for("react.memo_cache_sentinel")) { |
| 86 | t1 = <MessageResponse height={1}><InterruptedByUser /></MessageResponse>; |
nothing calls this directly
no test coverage detected