failurefollowup

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 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 ComposePrompt(requiredPrompt string, logPaths, fallbackLogPaths []string, noPathGuidance, contextBlock string) string

func FollowUpTargeting

func FollowUpTargeting(baseBranch, targetSubdir, currentBranch string) (string, string)

func IdentifierSubdir

func IdentifierSubdir(id string) (string, bool)

func NonRemediableFailureReason

func NonRemediableFailureReason(err error) string

func NonRemediableRepoAccessReason

func NonRemediableRepoAccessReason(err error) string

func SanitizeLogPathPart

func SanitizeLogPathPart(part string) string

func TaskLogDir

func TaskLogDir(logRoot, requestID string) (string, bool)

func TaskLogPaths

func TaskLogPaths(logRoot, requestID string) []string

func WithExecutionContract

func WithExecutionContract(base string) string

func WithFollowUpContract

func WithFollowUpContract(base string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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