workbench

package
v0.10.231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package workbench prepares isolated repository workspaces for reviews.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(ctx context.Context, deps Deps, req Request) error

Prepare creates a clean checkout pinned to the requested review commits.

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 Deps

type Deps struct {
	GitCommand      func(context.Context, string, ...string) ([]byte, error)
	ResolveRepoRoot func(context.Context) (string, error)
}

Deps contains the injected repository operations used to prepare workspaces.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL