collapse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package collapse wraps long tool output turns in collapsible HTML details blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseToolOutputs

func CollapseToolOutputs(content string) string

CollapseToolOutputs wraps long Tool Output turn bodies in collapsible <details> blocks. Entries exported before the collapse feature was added have raw multi-line tool output; this pass retroactively collapses them.

Parameters:

  • content: Journal entry content

Returns:

  • string: Content with long tool outputs wrapped in <details> tags

Types

This section is empty.

Jump to

Keyboard shortcuts

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