Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRepositoryURL = "git@github.com:Molten-Bot/moltenhub-code.git" DefaultResponseMode = "caveman-full" DisabledResponseMode = "off" )
Variables ¶
This section is empty.
Functions ¶
func NormalizePRBody ¶
NormalizePRBody enforces the standardized pull-request body format.
func NormalizeResponseMode ¶
NormalizeResponseMode returns the canonical response mode. "off" disables caveman compression.
func SupportedResponseModes ¶
func SupportedResponseModes() []string
SupportedResponseModes returns the canonical non-default response modes.
func SupportedResponseModesWithDefault ¶
func SupportedResponseModesWithDefault() []string
SupportedResponseModesWithDefault returns canonical response modes plus the default alias.
Types ¶
type Config ¶
type Config struct {
Version string `json:"version"`
RepoURL string `json:"repoUrl"`
Repo string `json:"repo"`
Repos []string `json:"repos"`
LibraryTaskName string `json:"libraryTaskName,omitempty"`
LibraryTaskDisplayName string `json:"libraryTaskDisplayName,omitempty"`
ResponseMode string `json:"responseMode,omitempty"`
AgentHarness string `json:"agentHarness,omitempty"`
AgentCommand string `json:"agentCommand,omitempty"`
BaseBranch string `json:"baseBranch"`
TargetSubdir string `json:"targetSubdir"`
Prompt string `json:"prompt"`
Images []PromptImage `json:"images,omitempty"`
CommitMessage string `json:"commitMessage"`
PRTitle string `json:"prTitle"`
PRBody string `json:"prBody"`
Labels []string `json:"labels"`
GitHubHandle string `json:"githubHandle"`
Reviewers []string `json:"reviewers"`
Review *ReviewConfig `json:"review,omitempty"`
}
Config is the v1 public contract for a harness run.
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
ApplyDefaults normalizes aliases and fills optional values.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON supports canonical camelCase keys plus the "branch" alias for baseBranch.
type PromptImage ¶
type PromptImage struct {
Name string `json:"name,omitempty"`
MediaType string `json:"mediaType,omitempty"`
DataBase64 string `json:"dataBase64,omitempty"`
}
PromptImage captures one prompt image attachment.
type ReviewConfig ¶
type ReviewConfig struct {
PRNumber int `json:"prNumber,omitempty"`
PRURL string `json:"prUrl,omitempty"`
HeadBranch string `json:"headBranch,omitempty"`
}
ReviewConfig captures structured pull-request review context for review tasks.
Click to show internal directories.
Click to hide internal directories.