Help us shape the future of Go! Take the 2026 Go Developer Survey

toolrender

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package toolrender draws dax's tool calls in the terminal client: a toolview.Renderer for each of dax-coding's read, write, edit, glob, grep, ls and bash (Renderers), for dax-agents' task and explore (SubAgents), and for dax-a2a's calls to remote agents (Peers). Each extension hands its own through extension.Extension.Renderers, and a front gives the client the extensions' together (extension.Renderers) through console.WithToolRenderers.

A renderer reads the record's facts about a call, never the tool, so it parses the arguments with its own structs and reads the output the tool wrote: numbered lines from read, path:line:text from grep, a last "[exit N]" line from bash, and "Error: …" from any tool that failed. It does not import package tool, since a renderer reads the record and not the tool; the tests run the real tools to keep the two in step.

Collapsed, a call is a line and a short body: an edit's diff, the end of a failing command, a count for the rest. Expanded (ctrl+o), an edit's whole diff, a write's content and a command's whole output, and the client's raw output for the others.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Peers added in v0.0.17

func Peers(names ...string) toolview.Renderers

Peers are the renderers of dax-a2a's calls to the remote agents called names: the request, and the start of the answer, or the question the agent asked that nobody answered.

func Renderers

func Renderers(dir string) toolview.Renderers

Renderers are the renderers of dax-coding's tools, which show a path inside dir relative to it.

func SubAgents

func SubAgents() toolview.Renderers

SubAgents are the renderers of dax-agents' task and explore calls: the brief, and the start of the report.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL