(item: CodexThreadItem)
| 28 | * type verbatim (`command_execution`, `file_change`, ...). |
| 29 | */ |
| 30 | export function toolNameForItem(item: CodexThreadItem): string { |
| 31 | if (item.type === 'mcp_tool_call') { |
| 32 | return item.server === BRIDGED_MCP_SERVER_NAME |
| 33 | ? item.tool |
| 34 | : `mcp__${item.server}__${item.tool}` |
| 35 | } |
| 36 | return item.type |
| 37 | } |
| 38 | |
| 39 | /** Thread items the translator surfaces as already-resolved tool calls. */ |
| 40 | type CodexToolItem = Extract< |
no outgoing calls
no test coverage detected