(t0)
| 372 | } |
| 373 | } satisfies ToolDef<InputSchema, TaskOutputToolOutput>); |
| 374 | function TaskOutputResultDisplay(t0) { |
| 375 | const $ = _c(54); |
| 376 | const { |
| 377 | content, |
| 378 | verbose: t1, |
| 379 | theme |
| 380 | } = t0; |
| 381 | const verbose = t1 === undefined ? false : t1; |
| 382 | const expandShortcut = useShortcutDisplay("app:toggleTranscript", "Global", "ctrl+o"); |
| 383 | let t2; |
| 384 | if ($[0] !== content) { |
| 385 | t2 = typeof content === "string" ? jsonParse(content) : content; |
| 386 | $[0] = content; |
| 387 | $[1] = t2; |
| 388 | } else { |
| 389 | t2 = $[1]; |
| 390 | } |
| 391 | const result = t2; |
| 392 | if (!result.task) { |
| 393 | let t3; |
| 394 | if ($[2] === Symbol.for("react.memo_cache_sentinel")) { |
| 395 | t3 = <MessageResponse><Text dimColor={true}>No task output available</Text></MessageResponse>; |
| 396 | $[2] = t3; |
| 397 | } else { |
| 398 | t3 = $[2]; |
| 399 | } |
| 400 | return t3; |
| 401 | } |
| 402 | const { |
| 403 | task |
| 404 | } = result; |
| 405 | if (task.task_type === "local_bash") { |
| 406 | let t3; |
| 407 | if ($[3] !== task.error || $[4] !== task.output) { |
| 408 | t3 = { |
| 409 | stdout: task.output, |
| 410 | stderr: "", |
| 411 | isImage: false, |
| 412 | dangerouslyDisableSandbox: true, |
| 413 | returnCodeInterpretation: task.error |
| 414 | }; |
| 415 | $[3] = task.error; |
| 416 | $[4] = task.output; |
| 417 | $[5] = t3; |
| 418 | } else { |
| 419 | t3 = $[5]; |
| 420 | } |
| 421 | const bashOut = t3; |
| 422 | let t4; |
| 423 | if ($[6] !== bashOut || $[7] !== verbose) { |
| 424 | t4 = <BashToolResultMessage content={bashOut} verbose={verbose} />; |
| 425 | $[6] = bashOut; |
| 426 | $[7] = verbose; |
| 427 | $[8] = t4; |
| 428 | } else { |
| 429 | t4 = $[8]; |
| 430 | } |
| 431 | return t4; |
nothing calls this directly
no test coverage detected