Versions in this module Expand all Collapse all v0 v0.1.0 Jul 11, 2026 Changes in this version + func RequestCWD(value string) string + type ActiveRunError struct + RunID string + func (e ActiveRunError) Error() string + type BrowseEntry struct + Name string + Path string + type BrowseResult struct + Current string + Entries []BrowseEntry + Error string + Path string + Root string + type CancelRunResponse struct + Run map[string]any + Status string + type ChatInputBlock struct + Data string + IsAttachment bool + MIMEType string + Name string + Path string + Text string + Type string + type ChatRequest struct + APIBase string + APIKey string + CWD string + Input []ChatInputBlock + Message string + Model string + Provider string + ReasoningEffort string + RewindTo *int + SessionID string + type ChatResponse struct + Run map[string]any + Session any + type DecideRequest struct + Decision string + RequestID string + type DecideResponse struct + Status string + type EventPayload struct + Event map[string]any + RunID string + SessionID string + type EventSink func(EventPayload) + type Options struct + Runs *RunManager + Sink EventSink + Store *mycode.SessionStore + type RunEvent struct + Data map[string]any + Seq int + Type string + func (e RunEvent) Payload() map[string]any + type RunEventBatch struct + Events []RunEvent + Finished bool + type RunManager struct + func NewRunManager(sink EventSink) *RunManager + type Service struct + func NewService(opts Options) (*Service, error) + func (s *Service) CancelRun(runID string) (CancelRunResponse, error) + func (s *Service) ClearSession(sessionID string) error + func (s *Service) Config(cwd string) (map[string]any, error) + func (s *Service) CreateSession(req SessionCreateRequest) (mycode.SessionData, error) + func (s *Service) DecideRun(runID string, req DecideRequest) (DecideResponse, error) + func (s *Service) DeleteSession(sessionID string) error + func (s *Service) ListSessions(cwd string) (SessionsResponse, error) + func (s *Service) LoadSession(sessionID string) (SessionResponse, error) + func (s *Service) RunEventsAfter(runID string, after int) (RunEventBatch, error) + func (s *Service) Settings() (map[string]any, error) + func (s *Service) StartChat(req ChatRequest) (ChatResponse, error) + func (s *Service) UpdateSettings(req SettingsRequest) (map[string]any, error) + func (s *Service) WorkspaceBrowse(root, path string) (BrowseResult, error) + func (s *Service) WorkspaceRoots() map[string]any + type SessionCreateRequest struct + CWD string + type SessionListItem struct + CWD string + CreatedAt string + ID string + IsRunning bool + Title string + UpdatedAt string + type SessionResponse struct + ActiveRun any + Messages []mycode.Message + PendingEvents []map[string]any + Session any + type SessionsResponse struct + Sessions []SessionListItem + type SettingsRequest struct + Config json.RawMessage + type StatusError struct + Detail any + Status int + func (e *StatusError) Error() string