cli

package
v0.57.1-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultMintURL = "https://mint.fullsend.sh"

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 Execute

func Execute(ctx context.Context) error

Execute runs the root command with the given context.

func IsHostedMintURL added in v0.37.0

func IsHostedMintURL(raw string) bool

IsHostedMintURL reports whether raw is the hosted community mint URL (mint.fullsend.sh). internal/e2etest duplicates this check locally so it does not import internal/cli (which pulls the nested mintcore module).

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"`
	// ID is an opaque stable identifier (f_ plus alphanumeric) assigned
	// upstream. This command copies it onto the inline comment; it does
	// not mint ids. Empty until the agents repo starts emitting it.
	ID findingID `json:"id,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