Module utils

Module utils 

Source
Expand description

Helper utilities for request/response processing and tool commands

Structs§

EXEC_RE
READ_RE

Functions§

decode_body
Decode response body based on Content-Encoding
extract_commands
Extract read_file and exec commands from a Claude answer
extract_org_id_from_cookie
Extract organization ID from Claude cookie string
format_tool_line
Format a line with ANSI colors for read_file or exec commands
parse_stream
Parse the event-stream bytes into a completion string
prettify
Apply ANSI formatting to an answer