Documentation
¶
Index ¶
- Constants
- func AddRuntimeProperties(_ map[string]any)
- func Description() string
- func OutputLimit(args map[string]any) int
- func WaitForSessionsCompletion(sessions []*session.Session, timeout time.Duration) ([]*session.Session, []string)
- func WorkdirDescription() string
- type CommandContext
- type ConfigProvider
- type Diagnostic
- type InvocationPreview
- type Result
- type Service
- func (s *Service) Act(args map[string]any) (Result, error)
- func (s *Service) Close() error
- func (s *Service) CommandEnv(skillName string, extra map[string]any) ([]string, error)
- func (svc *Service) Exec(ctx context.Context, args map[string]any) (Result, error)
- func (s *Service) InternalCommandEnv(extra map[string]string) ([]string, error)
- func (svc *Service) KillAll(args map[string]any) (Result, error)
- func (s *Service) KillSession(args map[string]any) (Result, error)
- func (s *Service) ListSessions() (Result, error)
- func (s *Service) Observe(args map[string]any) (Result, error)
- func (s *Service) PreparePreview(args map[string]any, command string) (InvocationPreview, error)
- func (s *Service) SessionStatus(args map[string]any) (Result, error)
- func (s *Service) Store() *session.Store
- func (s *Service) WriteStdin(args map[string]any) (Result, error)
- type SessionStore
- type SkillResolver
- type ToolError
Constants ¶
View Source
const ( MaxOutputBytes = maxCommandOutputBytes MaxConcurrentSessions = maxConcurrentCommandSessions MaxRetainedSessions = maxRetainedCommandSessions )
Variables ¶
This section is empty.
Functions ¶
func AddRuntimeProperties ¶
func Description ¶
func Description() string
func OutputLimit ¶
func WorkdirDescription ¶
func WorkdirDescription() string
Types ¶
type CommandContext ¶
type ConfigProvider ¶
type Diagnostic ¶
type InvocationPreview ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(configProvider ConfigProvider, ws *workspace.Workspace, envs *envstore.Store, sessions *session.Store, resolveSkill SkillResolver, commandContext CommandContext, diagnose Diagnostic) *Service
func (*Service) CommandEnv ¶
func (*Service) InternalCommandEnv ¶
func (*Service) ListSessions ¶
func (*Service) PreparePreview ¶
func (*Service) SessionStatus ¶
type SessionStore ¶
func NewSessionStore ¶
func NewSessionStore() *SessionStore
type SkillResolver ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.