Tool renderers for approval widgets - registry pattern.
Approval widget for edit_file - shows clean diff with colors.
Generic approval widget for unknown tools.
Approval widget for write_file - shows file content with syntax highlighting.
Base class for tool approval widgets.
Strategy for building a tool's HITL approval widget.
Each renderer maps a tool name to a (widget_class, data) pair that
controls what the user sees in the approval box. Tools not registered
in _RENDERER_REGISTRY fall through to the default, which dumps all
args as key: value lines via GenericApprovalWidget.
Renderer for write_file tool - shows full file content.
Renderer for task tool — interrupt description provides full context.
Renderer for edit_file tool - shows unified diff.