model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package model holds the persisted launch defaults for orgs and repositories.

The schema itself is owned by the SQL migrations; these structs only map onto it, and a parity test keeps the two in step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllModels

func AllModels() []any

AllModels returns every model in this package.

Types

type LaunchDefault

type LaunchDefault struct {
	ID            int64                    `gorm:"column:id;primaryKey"`
	Owner         string                   `gorm:"column:owner"`
	Name          string                   `gorm:"column:name"`
	Agent         string                   `gorm:"column:agent"`
	Profile       string                   `gorm:"column:profile"`
	PRPromptID    *int64                   `gorm:"column:pr_prompt_id"`
	IssuePromptID *int64                   `gorm:"column:issue_prompt_id"`
	Model         string                   `gorm:"column:model"`
	Effort        string                   `gorm:"column:effort"`
	PlanMode      *bool                    `gorm:"column:plan_mode"`
	Worktree      *bool                    `gorm:"column:worktree"`
	ExtraArgs     profilesmodel.StringList `gorm:"column:extra_args"`
	CreatedAt     time.Time                `gorm:"column:created_at"`
	UpdatedAt     time.Time                `gorm:"column:updated_at"`
}

LaunchDefault is one org's (Name "") or one repository's launch defaults. Every setting inherits when it is "" or nil.

func (LaunchDefault) TableName

func (LaunchDefault) TableName() string

TableName maps LaunchDefault to its table.

Jump to

Keyboard shortcuts

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