tooloutput

package
v2026.622.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxBytes = 65536
	DefaultMaxLines = 2048
)
View Source
const TruncatedMarker = "---TRUNCATED---"

Variables

This section is empty.

Functions

func ActiveOtherInstances

func ActiveOtherInstances(currentPID int) int

func CleanupProjectTemp

func CleanupProjectTemp(projectHex string) error

func CloseProjectTemp

func CloseProjectTemp(projectHex string, othersActive, spillGenerated bool) error

func CurrentPID

func CurrentPID() int

func FormatTruncatedMessage

func FormatTruncatedMessage(spillPath string) string

func RegisterInstance

func RegisterInstance(pid int) error

func Shutdown

func Shutdown(pid int, projectHex string, svc *Service) error

func Startup

func Startup(pid int) error

func UnregisterInstance

func UnregisterInstance(pid int) error

Types

type Limits

type Limits struct {
	MaxBytes int
	MaxLines int
}

func DefaultLimits

func DefaultLimits() Limits

func LimitsFromConfig

func LimitsFromConfig(r *config.Root) Limits

type Meta

type Meta struct {
	SessionID  string
	ToolCallID string
	ToolName   string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(projectHex string, limits Limits) *Service

func (*Service) Apply

func (s *Service) Apply(v any, meta Meta) any

func (*Service) Close

func (s *Service) Close(othersActive bool) error

func (*Service) Limits

func (s *Service) Limits() Limits

func (*Service) MarkSpillGenerated

func (s *Service) MarkSpillGenerated()

func (*Service) SpillGenerated

func (s *Service) SpillGenerated() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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