Class: TUI::Decorators::WriteDecorator

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

Overview

Renders write_file tool calls and responses. Calls show the file path with a memo icon in the unified tool color. 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 inherited from BaseDecorator

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

Methods included from Formatting

#format_ns_timestamp, #format_token_label, #token_count_color

Constructor Details

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

Instance Method Details

#iconObject



11
12
13
# File 'lib/tui/decorators/write_decorator.rb', line 11

def icon
  ICON
end

#response_colorObject



15
16
17
# File 'lib/tui/decorators/write_decorator.rb', line 15

def response_color
  "light_green"
end