Class: TUI::Decorators::WriteDecorator

Inherits:
BaseDecorator show all
Includes:
FileCallBehavior
Defined in:
lib/tui/decorators/write_decorator.rb

Overview

Renders write_file tool calls and responses. Calls show the file path in the header line for immediate visibility. Responses use the CRUD Create color (light_green) to signal new content.

Constant Summary collapse

ICON =

memo

"\u{1F4DD}"

Constants inherited from BaseDecorator

BaseDecorator::CHECKMARK, BaseDecorator::ERROR_ICON, BaseDecorator::RETURN_ARROW

Instance Attribute Summary

Attributes inherited from BaseDecorator

#data

Instance Method Summary collapse

Methods included from FileCallBehavior

#render_call

Methods inherited from BaseDecorator

#color, for, #initialize, #render, #render_call, #render_response, #render_think

Methods included from Formatting

#format_ns_timestamp, #format_token_label, #preserve_indentation, #token_count_color

Constructor Details

This class inherits a constructor from TUI::Decorators::BaseDecorator

Instance Method Details

#iconObject



13
14
15
# File 'lib/tui/decorators/write_decorator.rb', line 13

def icon
  ICON
end

#response_colorObject



17
18
19
# File 'lib/tui/decorators/write_decorator.rb', line 17

def response_color
  Settings.theme_tool_create_color
end