Documentation
¶
Index ¶
- Constants
- func BuildPrompt(req RunRequest, fileContent string) string
- func IsValidID(id string) bool
- type CodexRunner
- type RunRequest
- type RunResponse
- type RunResult
- type Runner
- type 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
- type SessionSummary
- type Turn
Constants ¶
View Source
const ( ModeAnnotationProofread = "annotation-proofread" SessionsDirName = ".reader/coding-agent-sessions" )
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
func BuildPrompt(req RunRequest, fileContent string) string
Types ¶
type CodexRunner ¶
type CodexRunner struct{}
type RunRequest ¶
type RunResponse ¶
type RunResponse struct {
SessionID string `json:"sessionId"`
CodexSessionID string `json:"codexSessionId,omitempty"`
Status string `json:"status"`
Response string `json:"response"`
ExitCode int `json:"exitCode"`
UpdatedAt time.Time `json:"updatedAt"`
}
func RunResponseFromSession ¶
func RunResponseFromSession(session *Session) RunResponse
type Service ¶
func NewService ¶
func (*Service) ListSessions ¶
func (s *Service) ListSessions() ([]SessionSummary, error)
func (*Service) SaveSession ¶
func (*Service) SetAllowedRoot ¶
type SessionSummary ¶
type Turn ¶
type Turn struct {
Input string `json:"input"`
Response string `json:"response"`
ExitCode int `json:"exitCode"`
StartedAt time.Time `json:"startedAt"`
FinishedAt time.Time `json:"finishedAt"`
Stdout string `json:"stdout,omitempty"`
Stderr string `json:"stderr,omitempty"`
Error string `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.