model

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	UnknownFileName        = "unknown"
	IDECodex               = "codex"
	IDEClaude              = "claude"
	IDEDroid               = "droid"
	IDECursor              = "cursor-agent"
	IDEOpenCode            = "opencode"
	IDEPi                  = "pi"
	DefaultCodexModel      = "gpt-5.4"
	DefaultClaudeModel     = "opus"
	DefaultCursorModel     = "composer-1"
	DefaultOpenCodeModel   = "anthropic/claude-opus-4-6"
	DefaultPiModel         = "anthropic/claude-opus-4-6"
	DefaultActivityTimeout = 10 * time.Minute
	WorkflowRootDirName    = ".compozy"
	WorkflowTasksDirName   = "tasks"
	ModeCodeReview         = "pr-review"
	ModePRDTasks           = "prd-tasks"
)

Variables

This section is empty.

Functions

func TaskDirectory

func TaskDirectory(name string) string

func TasksBaseDir

func TasksBaseDir() string

Types

type ExecutionMode

type ExecutionMode string
const (
	ExecutionModePRReview ExecutionMode = ModeCodeReview
	ExecutionModePRDTasks ExecutionMode = ModePRDTasks
)

type IssueEntry

type IssueEntry struct {
	Name     string
	AbsPath  string
	Content  string
	CodeFile string
}

type Job

type Job struct {
	CodeFiles     []string
	Groups        map[string][]IssueEntry
	SafeName      string
	Prompt        []byte
	SystemPrompt  string
	OutPromptPath string
	OutLog        string
	ErrLog        string
}

func (Job) IssueCount

func (j Job) IssueCount() int

type ReviewContext

type ReviewContext struct {
	Status      string
	File        string
	Line        int
	Severity    string
	Author      string
	ProviderRef string
}

type ReviewFileMeta

type ReviewFileMeta struct {
	Status      string `yaml:"status"`
	File        string `yaml:"file,omitempty"`
	Line        int    `yaml:"line,omitempty"`
	Severity    string `yaml:"severity,omitempty"`
	Author      string `yaml:"author,omitempty"`
	ProviderRef string `yaml:"provider_ref,omitempty"`
}

type RoundMeta

type RoundMeta struct {
	Provider   string
	PR         string
	Round      int
	CreatedAt  time.Time
	Total      int
	Resolved   int
	Unresolved int
}

type RuntimeConfig

type RuntimeConfig struct {
	Name                   string
	Round                  int
	Provider               string
	PR                     string
	ReviewsDir             string
	TasksDir               string
	DryRun                 bool
	AutoCommit             bool
	Concurrent             int
	BatchSize              int
	IDE                    string
	Model                  string
	AddDirs                []string
	Grouped                bool
	TailLines              int
	ReasoningEffort        string
	SystemPrompt           string
	Mode                   ExecutionMode
	IncludeCompleted       bool
	IncludeResolved        bool
	Timeout                time.Duration
	MaxRetries             int
	RetryBackoffMultiplier float64
}

func (*RuntimeConfig) ApplyDefaults

func (cfg *RuntimeConfig) ApplyDefaults()

type SolvePreparation

type SolvePreparation struct {
	Jobs              []Job
	InputDir          string
	InputDirPath      string
	ResolvedName      string
	ResolvedPR        string
	ResolvedProvider  string
	ResolvedRound     int
	GroupedSummarized bool
}

type TaskEntry

type TaskEntry struct {
	Content      string
	Status       string
	Domain       string
	TaskType     string
	Scope        string
	Complexity   string
	Dependencies []string
}

type TaskFileMeta

type TaskFileMeta struct {
	Status       string   `yaml:"status"`
	Domain       string   `yaml:"domain,omitempty"`
	TaskType     string   `yaml:"type,omitempty"`
	Scope        string   `yaml:"scope,omitempty"`
	Complexity   string   `yaml:"complexity,omitempty"`
	Dependencies []string `yaml:"dependencies,omitempty"`
}

type TaskMeta

type TaskMeta struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	Total     int
	Completed int
	Pending   int
}

Jump to

Keyboard shortcuts

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