(t0)
| 64 | }; |
| 65 | } |
| 66 | export default function BashToolResultMessage(t0) { |
| 67 | const $ = _c(34); |
| 68 | const { |
| 69 | content: t1, |
| 70 | verbose, |
| 71 | timeoutMs |
| 72 | } = t0; |
| 73 | const { |
| 74 | stdout: t2, |
| 75 | stderr: t3, |
| 76 | isImage, |
| 77 | returnCodeInterpretation, |
| 78 | noOutputExpected, |
| 79 | backgroundTaskId |
| 80 | } = t1; |
| 81 | const stdout = t2 === undefined ? "" : t2; |
| 82 | const stdErrWithViolations = t3 === undefined ? "" : t3; |
| 83 | let T0; |
| 84 | let cwdResetWarning; |
| 85 | let stderr; |
| 86 | let t4; |
| 87 | let t5; |
| 88 | let t6; |
| 89 | let t7; |
| 90 | if ($[0] !== isImage || $[1] !== stdErrWithViolations || $[2] !== stdout || $[3] !== verbose) { |
| 91 | t7 = Symbol.for("react.early_return_sentinel"); |
| 92 | bb0: { |
| 93 | const { |
| 94 | cleanedStderr: stderrWithoutViolations |
| 95 | } = extractSandboxViolations(stdErrWithViolations); |
| 96 | ({ |
| 97 | cleanedStderr: stderr, |
| 98 | cwdResetWarning |
| 99 | } = extractCwdResetWarning(stderrWithoutViolations)); |
| 100 | if (isImage) { |
| 101 | let t8; |
| 102 | if ($[11] === Symbol.for("react.memo_cache_sentinel")) { |
| 103 | t8 = <MessageResponse height={1}><Text dimColor={true}>[Image data detected and sent to Claude]</Text></MessageResponse>; |
| 104 | $[11] = t8; |
| 105 | } else { |
| 106 | t8 = $[11]; |
| 107 | } |
| 108 | t7 = t8; |
| 109 | break bb0; |
| 110 | } |
| 111 | T0 = Box; |
| 112 | t4 = "column"; |
| 113 | if ($[12] !== stdout || $[13] !== verbose) { |
| 114 | t5 = stdout !== "" ? <OutputLine content={stdout} verbose={verbose} /> : null; |
| 115 | $[12] = stdout; |
| 116 | $[13] = verbose; |
| 117 | $[14] = t5; |
| 118 | } else { |
| 119 | t5 = $[14]; |
| 120 | } |
| 121 | t6 = stderr.trim() !== "" ? <OutputLine content={stderr} verbose={verbose} isError={true} /> : null; |
| 122 | } |
| 123 | $[0] = isImage; |
nothing calls this directly
no test coverage detected