Documentation
¶
Index ¶
- Constants
- Variables
- func FormatLoopProfile(name string, profile LoopProfile) string
- func GetLoopProfiles(repoRoot string) (map[string]LoopProfile, error)
- func OutcomeFromRunResult(result harnessloop.RunResult) harness.CommandOutcome
- func ParseLoopProfilesRepoRoot(args []string) (string, error)
- func ResolveLoopRegressionBaselinePath(repoRoot, profileName, baselinePath string) string
- func ResolveRoleConfigPath(repoRoot, roleConfig string) string
- func ResolveVerboseArtifacts(defaultValue, forceEnable, forceDisable bool) (bool, error)
- func UnexpectedLoopArgError(arg string) error
- type LoopFlags
- type LoopHandler
- type LoopLabFlags
- type LoopProfile
- type LoopProfileFlags
- type LoopRegressionFlags
- type LoopRegressionReport
- type LoopRuntimeFlags
- type RunLoopFunc
Constants ¶
View Source
const LoopProfilesConfigFile = "configs/loop-profiles.json"
Variables ¶
View Source
var LoopProfiles = map[string]LoopProfile{ "quality": { Mode: "committee", RoleConfig: "configs/skill-quality.roles.json", MaxIterations: 1, Threshold: 9.0, Budget: 1, VerboseArtifacts: true, }, }
LoopProfiles contains built-in loop profiles.
Functions ¶
func FormatLoopProfile ¶
func FormatLoopProfile(name string, profile LoopProfile) string
func GetLoopProfiles ¶
func GetLoopProfiles(repoRoot string) (map[string]LoopProfile, error)
func OutcomeFromRunResult ¶
func OutcomeFromRunResult(result harnessloop.RunResult) harness.CommandOutcome
func ResolveRoleConfigPath ¶
func ResolveVerboseArtifacts ¶
func UnexpectedLoopArgError ¶
Types ¶
type LoopFlags ¶
type LoopFlags struct {
RepoRoot string
Threshold float64
MaxIterations int
Branch string
APIURL string
Markdown bool
}
func ParseLoopFlags ¶
type LoopHandler ¶
type LoopHandler struct {
// contains filtered or unexported fields
}
func NewLoopHandler ¶
func NewLoopHandler(runLoop RunLoopFunc) *LoopHandler
func (*LoopHandler) ExecuteLoopAction ¶
func (h *LoopHandler) ExecuteLoopAction(action string, args []string, ctx harness.Context) (harness.CommandOutcome, error)
type LoopLabFlags ¶
type LoopLabFlags struct {
LoopFlags
Mode string
RoleConfig string
Seed int64
Budget int
RunA string
RunB string
RunID string
Iteration int
Format string
Out string
VerboseArtifacts bool
NoVerboseArtifacts bool
}
func ParseLoopLabFlags ¶
func ParseLoopLabFlags(args []string) (LoopLabFlags, error)
type LoopProfile ¶
type LoopProfileFlags ¶
type LoopProfileFlags struct {
LoopFlags
RoleConfig string
VerboseArtifacts bool
NoVerboseArtifacts bool
}
func ParseLoopQualityFlags ¶
func ParseLoopQualityFlags(profile LoopProfile, args []string) (LoopProfileFlags, error)
type LoopRegressionFlags ¶
func ParseLoopRegressionFlags ¶
func ParseLoopRegressionFlags(args []string) (LoopRegressionFlags, []string, error)
type LoopRegressionReport ¶
type LoopRegressionReport struct {
SchemaVersion string `json:"schema_version"`
Profile string `json:"profile"`
BaselinePath string `json:"baseline_path"`
BaselineWritten bool `json:"baseline_written,omitempty"`
RunID string `json:"run_id,omitempty"`
Pass bool `json:"pass"`
DriftCount int `json:"drift_count"`
Drifts []harnessloop.RegressionDrift `json:"drifts,omitempty"`
}
type LoopRuntimeFlags ¶
type LoopRuntimeFlags struct {
Format string
SummaryPath string
NoColor bool
DryRun bool
Explain bool
}
func ParseLoopRuntimeFlags ¶
func ParseLoopRuntimeFlags(args []string) (LoopRuntimeFlags, []string, error)
type RunLoopFunc ¶
type RunLoopFunc func(apiURL, action string, cfg harnessloop.Config) (harnessloop.RunResult, error)
Click to show internal directories.
Click to hide internal directories.