LemonRouter.ToolStatusRenderer (lemon_router v0.1.0)

View Source

Renders the tool-status text for user-facing transports.

Produces takopi-style output with Unicode symbols, elapsed time, and step counts:

working · claude · 2m 30s · step 5

 read: `lib/foo.ex`
 grep: pattern
 `npm test` (exit 1)

Rendering is semantic and channel-agnostic; channel presentation is handled by :lemon_channels.

Summary

Functions

Render with default opts (no elapsed/engine/action_count).

Render with opts map supporting :elapsed_ms, :engine, :action_count.

Functions

render(channel_id, actions, order)

@spec render(String.t() | nil, map(), [String.t()]) :: String.t()

Render with default opts (no elapsed/engine/action_count).

render(channel_id, actions, order, opts)

@spec render(String.t() | nil, map(), [String.t()], map()) :: String.t()

Render with opts map supporting :elapsed_ms, :engine, :action_count.