Versions in this module Expand all Collapse all v0 v0.9.3 May 30, 2026 Changes in this version + const ModeAnnotationProofread + const SessionsDirName + func BuildPrompt(req RunRequest, fileContent string) string + func IsValidID(id string) bool + type CodexRunner struct + func (r CodexRunner) Run(ctx context.Context, args []string, stdin string) (RunResult, error) + type RunRequest struct + Instruction string + Mode string + Path string + Root string + type RunResponse struct + CodexSessionID string + ExitCode int + Response string + SessionID string + Status string + UpdatedAt time.Time + func RunResponseFromSession(session *Session) RunResponse + type RunResult struct + ExitCode int + LastMessage string + SessionID string + Stderr string + Stdout string + type Runner interface + Run func(ctx context.Context, args []string, stdin string) (RunResult, error) + type Service struct + AllowedRoots map[string]string + ProjectRoot string + Runner Runner + func NewService(projectRoot string, runner Runner) *Service + func (s *Service) ListSessions() ([]SessionSummary, error) + func (s *Service) ReadSession(id string) (*Session, error) + func (s *Service) Run(ctx context.Context, req RunRequest, fileContent string) (*Session, error) + func (s *Service) SaveSession(session *Session) error + func (s *Service) SetAllowedRoot(root, dir string) + type Session struct + CodexSessionID string + CreatedAt time.Time + ID string + Mode string + Path string + Root string + Turns []Turn + UpdatedAt time.Time + type SessionSummary struct + CreatedAt time.Time + ExitCode int + ID string + LastResponse string + Mode string + Path string + Root string + UpdatedAt time.Time + type Turn struct + Error string + ExitCode int + FinishedAt time.Time + Input string + Response string + StartedAt time.Time + Stderr string + Stdout string