Documentation
¶
Index ¶
- Constants
- func DefaultConfigPath() string
- func DefaultDataDir() string
- type BatchCmd
- type BatchErrorOutput
- type BatchInput
- type BatchOutput
- type BatchResult
- type BatchSession
- type CtxCmd
- type DocCmd
- type DoctorCmd
- type Flags
- type LsCmd
- type Migration
- type MsgCmd
- type NewCmd
- type PruneCmd
- type ReviewCmd
- type SessionCmd
- type TuiCmd
Constants ¶
const ( StatusCreated = "created" // StatusCreated indicates the session was created successfully. StatusFailed = "failed" // StatusFailed indicates the session creation failed. StatusSkipped = "skipped" // StatusSkipped indicates the session was not attempted due to failure threshold. )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
DefaultConfigPath returns the default config file path using XDG_CONFIG_HOME.
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir returns the default data directory using XDG_DATA_HOME.
Types ¶
type BatchErrorOutput ¶
type BatchErrorOutput struct {
Error string `json:"error"`
}
BatchErrorOutput is the JSON output for fatal errors.
type BatchInput ¶
type BatchInput struct {
Sessions []BatchSession `json:"sessions"`
}
BatchInput is the JSON input schema for batch session creation.
func (BatchInput) Validate ¶
func (b BatchInput) Validate() error
Validate checks the batch input for errors using criterio.
type BatchOutput ¶
type BatchOutput struct {
BatchID string `json:"batch_id"`
LogFile string `json:"log_file"`
Results []BatchResult `json:"results"`
}
BatchOutput is the JSON output schema.
type BatchResult ¶
type BatchResult struct {
Name string `json:"name"`
SessionID string `json:"session_id,omitempty"`
Path string `json:"path,omitempty"`
Status string `json:"status"`
Error string `json:"error,omitempty"`
}
BatchResult is the output for a single session creation attempt.
type BatchSession ¶
type BatchSession struct {
Name string `json:"name"`
SessionID string `json:"session_id,omitempty"`
Prompt string `json:"prompt,omitempty"`
Remote string `json:"remote,omitempty"`
Source string `json:"source,omitempty"`
}
BatchSession defines a single session to create.
type CtxCmd ¶
type CtxCmd struct {
// contains filtered or unexported fields
}
type Migration ¶
type Migration struct {
Version string
Title string
Description string
Migration string
Before string
After string
}
Migration represents a breaking change that requires user action.
type MsgCmd ¶
type MsgCmd struct {
// contains filtered or unexported fields
}
type NewCmd ¶
type NewCmd struct {
// contains filtered or unexported fields
}
type PruneCmd ¶
type PruneCmd struct {
// contains filtered or unexported fields
}
func NewPruneCmd ¶
NewPruneCmd creates a new prune command
type ReviewCmd ¶
type ReviewCmd struct {
// contains filtered or unexported fields
}
func NewReviewCmd ¶
NewReviewCmd creates a new review command.
type SessionCmd ¶
type SessionCmd struct {
// contains filtered or unexported fields
}
func NewSessionCmd ¶
func NewSessionCmd(flags *Flags, app *hive.App) *SessionCmd
NewSessionCmd creates a new session command