Versions in this module Expand all Collapse all v0 v0.36.0 Jul 19, 2026 Changes in this version + const ToolRead + const ToolRun + const ToolsProviderName + var ErrUnsupported = errors.New("shellsession: shell sessions are not supported on this platform") — windows/amd64 + func NewTools(mgr Manager) taskengine.ToolsRepo + type Chunk struct + Data string + Offset int64 + Reset bool + type Config struct + CwdResolver func(ctx context.Context) string + DefaultRoot string + IdleTimeout time.Duration + ScrollbackBytes int + Shell string + type Manager interface + Kill func(sessionID string) + Read func(sessionID string, since int64, tailBytes int) ReadResult + Run func(ctx context.Context, sessionID, line string) (RunResult, error) + Shutdown func() + Subscribe func(sessionID string, fn func(Chunk)) (cancel func()) + func NewManager(cfg Config) Manager + type ReadResult struct + Content string + Exists bool + FromOffset int64 + NextOffset int64 + type ReadResultJSON struct + Content string + Exists bool + FromOffset int64 + NextOffset int64 + Note string + type RunResult struct + Offset int64 + Snapshot string + Started bool + type RunResultJSON struct + Note string + Offset int64 + Output string + Started bool