MCPcopy
hub / github.com/Aider-AI/aider / __init__

Method __init__

aider/io.py:237–372  ·  view source on GitHub ↗
(
        self,
        pretty=True,
        yes=None,
        input_history_file=None,
        chat_history_file=None,
        input=None,
        output=None,
        user_input_color="blue",
        tool_output_color=None,
        tool_error_color="red",
        tool_warning_color="#FFA500",
        assistant_output_color="blue",
        completion_menu_color=None,
        completion_menu_bg_color=None,
        completion_menu_current_color=None,
        completion_menu_current_bg_color=None,
        code_theme="default",
        encoding="utf-8",
        line_endings="platform",
        dry_run=False,
        llm_history_file=None,
        editingmode=EditingMode.EMACS,
        fancy_input=True,
        file_watcher=None,
        multiline_mode=False,
        root=".",
        notifications=False,
        notifications_command=None,
    )

Source from the content-addressed store, hash-verified

235 notifications_command = None
236
237 def __init__(
238 self,
239 pretty=True,
240 yes=None,
241 input_history_file=None,
242 chat_history_file=None,
243 input=None,
244 output=None,
245 user_input_color="blue",
246 tool_output_color=None,
247 tool_error_color="red",
248 tool_warning_color="#FFA500",
249 assistant_output_color="blue",
250 completion_menu_color=None,
251 completion_menu_bg_color=None,
252 completion_menu_current_color=None,
253 completion_menu_current_bg_color=None,
254 code_theme="default",
255 encoding="utf-8",
256 line_endings="platform",
257 dry_run=False,
258 llm_history_file=None,
259 editingmode=EditingMode.EMACS,
260 fancy_input=True,
261 file_watcher=None,
262 multiline_mode=False,
263 root=".",
264 notifications=False,
265 notifications_command=None,
266 ):
267 self.placeholder = None
268 self.interrupted = False
269 self.never_prompts = set()
270 self.editingmode = editingmode
271 self.multiline_mode = multiline_mode
272 self.bell_on_next_input = False
273 self.notifications = notifications
274 if notifications and notifications_command is None:
275 self.notifications_command = self.get_default_notification_command()
276 else:
277 self.notifications_command = notifications_command
278
279 no_color = os.environ.get("NO_COLOR")
280 if no_color is not None and no_color != "":
281 pretty = False
282
283 self.user_input_color = ensure_hash_prefix(user_input_color) if pretty else None
284 self.tool_output_color = ensure_hash_prefix(tool_output_color) if pretty else None
285 self.tool_error_color = ensure_hash_prefix(tool_error_color) if pretty else None
286 self.tool_warning_color = ensure_hash_prefix(tool_warning_color) if pretty else None
287 self.assistant_output_color = ensure_hash_prefix(assistant_output_color)
288 self.completion_menu_color = ensure_hash_prefix(completion_menu_color) if pretty else None
289 self.completion_menu_bg_color = (
290 ensure_hash_prefix(completion_menu_bg_color) if pretty else None
291 )
292 self.completion_menu_current_color = (
293 ensure_hash_prefix(completion_menu_current_color) if pretty else None
294 )

Callers

nothing calls this directly

Calls 7

tool_warningMethod · 0.95
append_chat_historyMethod · 0.95
tool_errorMethod · 0.95
tool_outputMethod · 0.95
ensure_hash_prefixFunction · 0.85

Tested by

no test coverage detected