Documentation
¶
Index ¶
- Constants
- Variables
- func ComposePrompt(requiredPrompt string, logPaths, fallbackLogPaths []string, ...) string
- func FollowUpTargeting(baseBranch, targetSubdir, currentBranch string) (string, string)
- func IdentifierSubdir(id string) (string, bool)
- func NonRemediableFailureReason(err error) string
- func NonRemediableRepoAccessReason(err error) string
- func SanitizeLogPathPart(part string) string
- func TaskLogDir(logRoot, requestID string) (string, bool)
- func TaskLogPaths(logRoot, requestID string) []string
- func WithExecutionContract(base string) string
- func WithFollowUpContract(base string) string
Constants ¶
View Source
const ( LogFileName = "terminal.log" LegacyTaskLogFileName = "term" FallbackLogSubdir = "main" )
View Source
const ActionableChangeInstruction = "" /* 232-byte string literal not displayed */
View Source
const FailureResponseInstruction = "" /* 175-byte string literal not displayed */
View Source
const FollowUpRepositoryURL = config.DefaultRepositoryURL
View Source
const HubActivityPrivacyInstruction = "" /* 259-byte string literal not displayed */
View Source
const NoOpInstruction = "" /* 178-byte string literal not displayed */
View Source
const OfflineReviewInstruction = "Issue an offline to moltenbot hub -> review na.hub.molten.bot.openapi.yaml for integration behaviours."
View Source
const RemoteOperationsInstruction = "" /* 266-byte string literal not displayed */
View Source
const RequiredPrompt = "" /* 397-byte string literal not displayed */
View Source
const RuntimeToolingInstruction = "" /* 318-byte string literal not displayed */
View Source
const UninitializedRepoInstruction = "" /* 155-byte string literal not displayed */
View Source
const ValidationToolingInstruction = "" /* 322-byte string literal not displayed */
Variables ¶
View Source
var ExecutionContract = strings.Join([]string{ FailureResponseInstruction, RuntimeToolingInstruction, ValidationToolingInstruction, HubActivityPrivacyInstruction, UninitializedRepoInstruction, RemoteOperationsInstruction, ActionableChangeInstruction, NoOpInstruction, }, "\n\n")
View Source
var FollowUpContract = strings.Join([]string{ OfflineReviewInstruction, ExecutionContract, fmt.Sprintf(`Harness-managed follow-up targeting: {"repos":["%s"],"targetSubdir":".","prompt":"%s"}`, FollowUpRepositoryURL, RequiredPrompt), }, "\n\n")
Functions ¶
func ComposePrompt ¶
func FollowUpTargeting ¶
func IdentifierSubdir ¶
func SanitizeLogPathPart ¶
func TaskLogDir ¶
func TaskLogPaths ¶
func WithExecutionContract ¶
func WithFollowUpContract ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.