Documentation
¶
Overview ¶
Package workbench prepares isolated repository workspaces for reviews.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRepositoryIdentity = errors.New("workbench: invalid repository identity")
ErrInvalidRepositoryIdentity marks repository coordinates that cannot form a safe remote.
View Source
var ErrUnsafeFetchRef = errors.New("workbench: unsafe fetch ref")
ErrUnsafeFetchRef marks a provider ref that cannot be passed to Git safely.
Functions ¶
func PrepareReviewerRequest ¶
func PrepareReviewerRequest(ctx context.Context, deps Deps, adapter llm.Adapter, artifacts runartifact.Paths, headSHA string, agentID string, allowedFiles []string, model, effort, prompt, logPath string) (llm.Request, func() error, error)
PrepareReviewerRequest creates a disposable reviewer workspace and LLM request.
Types ¶
type Request ¶
type Request struct {
PRRef gitprovider.PRRef
ReviewPR gitprovider.PR
ChangedFiles []string
Artifacts runartifact.Paths
}
Request identifies the review checkout and artifact paths to prepare.
type RunPreparer ¶ added in v0.10.255
type RunPreparer struct {
// contains filtered or unexported fields
}
RunPreparer creates and validates durable review workbenches.
func NewRunPreparer ¶ added in v0.10.255
func NewRunPreparer(gitCommand func(context.Context, string, ...string) ([]byte, error)) *RunPreparer
NewRunPreparer constructs a durable workbench preparer.
Click to show internal directories.
Click to hide internal directories.