prompt

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLegacyTaskMetadata   = errors.New("legacy XML task metadata detected")
	ErrLegacyReviewMetadata = errors.New("legacy XML review metadata detected")
)

Functions

func Build

func Build(p BatchParams) string

func BuildSystemPromptAddendum

func BuildSystemPromptAddendum(p BatchParams) string

func ClaudeReasoningPrompt

func ClaudeReasoningPrompt(reasoning string) string

func ExtractIssueNumber

func ExtractIssueNumber(filename string) int

func ExtractLegacyReviewBody

func ExtractLegacyReviewBody(content string) (string, error)

func ExtractLegacyTaskBody

func ExtractLegacyTaskBody(content string) (string, error)

func ExtractTaskNumber

func ExtractTaskNumber(filename string) int

func FlattenAndSortIssues

func FlattenAndSortIssues(groups map[string][]model.IssueEntry, mode model.ExecutionMode) []model.IssueEntry

func IsReviewResolved

func IsReviewResolved(content string) (bool, error)

func IsTaskCompleted

func IsTaskCompleted(task model.TaskEntry) bool

func LooksLikeLegacyReviewFile

func LooksLikeLegacyReviewFile(content string) bool

func LooksLikeLegacyTaskFile

func LooksLikeLegacyTaskFile(content string) bool

func NormalizeForPrompt

func NormalizeForPrompt(absPath string) string

func ParseLegacyReviewContext

func ParseLegacyReviewContext(content string) (model.ReviewContext, error)

func ParseLegacyTaskFile

func ParseLegacyTaskFile(content string) (model.TaskEntry, error)

func ParseReviewContext

func ParseReviewContext(content string) (model.ReviewContext, error)

func ParseReviewStatus

func ParseReviewStatus(content string) (string, error)

func ParseTaskFile

func ParseTaskFile(content string) (model.TaskEntry, error)

func SafeFileName

func SafeFileName(path string) string

Types

type BatchParams

type BatchParams struct {
	Name        string
	Round       int
	Provider    string
	PR          string
	ReviewsDir  string
	BatchGroups map[string][]model.IssueEntry
	Grouped     bool
	AutoCommit  bool
	Mode        model.ExecutionMode
	Memory      *WorkflowMemoryContext
}

type WorkflowMemoryContext

type WorkflowMemoryContext struct {
	Directory               string
	WorkflowPath            string
	TaskPath                string
	WorkflowNeedsCompaction bool
	TaskNeedsCompaction     bool
}

Jump to

Keyboard shortcuts

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