cli

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 74 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMintURL = "https://fullsend-mint-gljhbkcloq-uc.a.run.app"

DefaultMintURL is the hosted public mint URL used when --mint-url is not explicitly provided. Users who self-host a mint can override this via the --mint-url flag.

View Source
const StaleHeadExitCode = 10

StaleHeadExitCode is the process exit code used when a review is discarded because the PR HEAD moved after the agent reviewed it. post-review.sh uses this to detect stale-head outcomes and re-dispatch a fresh review for the current HEAD.

Variables

This section is empty.

Functions

func CommitSHA added in v0.18.0

func CommitSHA() string

CommitSHA returns the git commit SHA set at build time.

func Execute

func Execute(ctx context.Context) error

Execute runs the root command with the given context.

func Version added in v0.5.0

func Version() string

Version returns the CLI version string set at build time.

Types

type ReviewFinding added in v0.8.0

type ReviewFinding struct {
	Severity    string `json:"severity"`
	Category    string `json:"category"`
	File        string `json:"file"`
	Line        int    `json:"line,omitempty"`
	Description string `json:"description"`
	Remediation string `json:"remediation,omitempty"`
	Actionable  bool   `json:"actionable,omitempty"`
}

ReviewFinding is the structured form emitted by the review agent.

type ReviewResult added in v0.2.0

type ReviewResult struct {
	Body     string          `json:"body"`
	Action   string          `json:"action"`   // "approve", "request-changes", "comment", "reject", "failure"
	HeadSHA  string          `json:"head_sha"` // commit SHA the agent reviewed
	Reason   string          `json:"reason"`   // failure reason (when action is "failure")
	Findings []ReviewFinding `json:"findings"`
}

ReviewResult represents a parsed review result file.

Jump to

Keyboard shortcuts

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