Documentation
¶
Overview ¶
Package batchfmt renders Batch.run results as text. It depends on nothing but the standard library, so the engine-free session client (internal/cliclient) can use it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(raw json.RawMessage, maxResult int) (text string, ok bool)
FormatBatch renders a Batch.run result as the step report the session CLI prints and the MCP browser_batch tool returns: one line per step, a summary line, then the observation. Step results longer than maxResult are cut. ok is false when a step failed.
func MarshalCompact ¶
MarshalCompact is json.Marshal without HTML escaping (rpc.MarshalCompact).
Types ¶
This section is empty.