tooloutput

package
v2026.1011.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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