export function isNestedShellCommand(item) {
  return item?.type === "dynamicToolCall"
    && item.tool === "js"
    && typeof item.arguments?.code === "string"
    && /\btools\.shell_command\s*\(/.test(item.arguments.code);
}
