( item: ToolItem, descriptor: AgentActivityDescriptor, )
| 115 | } |
| 116 | |
| 117 | function buildShellContent( |
| 118 | item: ToolItem, |
| 119 | descriptor: AgentActivityDescriptor, |
| 120 | ): string | null { |
| 121 | const command = getToolString(item.args, ["command"]); |
| 122 | if (!command) { |
| 123 | return null; |
| 124 | } |
| 125 | |
| 126 | if (descriptor.renderClass === "shell" || descriptor.source === "shell") { |
| 127 | return command; |
| 128 | } |
| 129 | |
| 130 | return null; |
| 131 | } |
no test coverage detected