Documentation
¶
Index ¶
- Constants
- func FormatHistoricalComments(allComments *models.PRAllComments, currentCommentID int64) string
- func ParseStructuredOutput(output string) (summary, changes, testPlan string)
- type Code
- func New(workspace *models.Workspace, cfg *config.Config) (Code, error)
- func NewClaudeDocker(workspace *models.Workspace, cfg *config.Config) (Code, error)
- func NewClaudeInteractive(workspace *models.Workspace, cfg *config.Config) (Code, error)
- func NewClaudeLocal(workspace *models.Workspace, cfg *config.Config) (Code, error)
- func NewGeminiDocker(workspace *models.Workspace, cfg *config.Config) (Code, error)
- func NewGeminiLocal(workspace *models.Workspace, cfg *config.Config) (Code, error)
- type InteractiveResponseReader
- type InteractiveSession
- type Response
- type SessionManager
Constants ¶
View Source
const ( ProviderClaude = "claude" ProviderGemini = "gemini" )
Variables ¶
This section is empty.
Functions ¶
func FormatHistoricalComments ¶
func FormatHistoricalComments(allComments *models.PRAllComments, currentCommentID int64) string
FormatHistoricalComments 格式化历史评论,用于构建上下文(通用版本)
func ParseStructuredOutput ¶
ParseStructuredOutput 解析AI的三段式输出(通用版本)
Types ¶
type Code ¶
func NewClaudeDocker ¶
func NewClaudeInteractive ¶
func NewClaudeLocal ¶
NewClaudeLocal 创建本地 Claude CLI 实现
func NewGeminiDocker ¶
NewGeminiDocker 创建 Docker Gemini CLI 实现
type InteractiveResponseReader ¶
type InteractiveResponseReader struct {
// contains filtered or unexported fields
}
InteractiveResponseReader 处理交互式响应读取
type InteractiveSession ¶
type InteractiveSession struct {
ID string
CreatedAt time.Time
LastActivity time.Time
MessageCount int
WorkspacePath string
}
InteractiveSession 管理交互式会话
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager(cfg *config.Config) *SessionManager
func (*SessionManager) CloseSession ¶
func (sm *SessionManager) CloseSession(workspace *models.Workspace) error
CloseSession closes and removes a Code session from the manager.
func (*SessionManager) GetSession ¶
func (sm *SessionManager) GetSession(workspace *models.Workspace) (Code, error)
GetSession retrieves an existing Code session or creates a new one.
Click to show internal directories.
Click to hide internal directories.