types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() (string, error)

func SaveConfig

func SaveConfig(cfg Config) error

Types

type AgentResponse

type AgentResponse struct {
	Status    AgentStatus `json:"status"`
	Questions []string    `json:"questions,omitempty"`
	Title     string      `json:"title,omitempty"`
	Body      string      `json:"body,omitempty"`
	Rationale string      `json:"rationale,omitempty"`
}

func (AgentResponse) IsReady

func (r AgentResponse) IsReady() bool

type AgentStatus

type AgentStatus string
const (
	StatusNeedsInfo AgentStatus = "needs_info"
	StatusReady     AgentStatus = "ready"
)

type Comment

type Comment struct {
	Author    User      `json:"author"`
	Body      string    `json:"body"`
	CreatedAt time.Time `json:"createdAt"`
}

type Config

type Config struct {
	Repo        string `json:"repo"`
	Model       string `json:"model"`
	OllamaHost  string `json:"ollamaHost"`
	TimeoutSec  int    `json:"timeoutSec"`
	MaxTurns    int    `json:"maxTurns"`
	Sound       bool   `json:"sound"`
	Debug       bool   `json:"debug"`
	TemplateDir string `json:"templateDir"`
}

func DefaultConfig

func DefaultConfig() Config

func LoadConfig

func LoadConfig() (Config, error)

type Draft

type Draft struct {
	Title    string   `json:"title"`
	Body     string   `json:"body"`
	Labels   []string `json:"labels"`
	Template string   `json:"template"`
}

type Issue

type Issue struct {
	Number    int       `json:"number"`
	Title     string    `json:"title"`
	State     string    `json:"state"`
	URL       string    `json:"url"`
	Body      string    `json:"body"`
	Labels    []Label   `json:"labels"`
	Assignees []User    `json:"assignees"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type Label

type Label struct {
	Name  string `json:"name"`
	Color string `json:"color"`
}

type Template

type Template struct {
	Filename  string   `json:"filename"`
	Name      string   `yaml:"name" json:"name"`
	About     string   `yaml:"about" json:"about"`
	Title     string   `yaml:"title" json:"title"`
	Labels    []string `yaml:"labels" json:"labels"`
	Assignees []string `yaml:"assignees" json:"assignees"`
	Body      string   `json:"body"`
}

func (Template) DisplayName

func (t Template) DisplayName() string

type Turn

type Turn struct {
	Question string
	Answer   string
}

type User

type User struct {
	Login string `json:"login"`
}

Jump to

Keyboard shortcuts

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