commands

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
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 BatchCmd

type BatchCmd struct {
	// contains filtered or unexported fields
}

func NewBatchCmd

func NewBatchCmd(flags *Flags, app *hive.App) *BatchCmd

func (*BatchCmd) Register

func (cmd *BatchCmd) Register(app *cli.Command) *cli.Command

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
}

func NewCtxCmd

func NewCtxCmd(flags *Flags, app *hive.App) *CtxCmd

NewCtxCmd creates a new ctx command.

func (*CtxCmd) Register

func (cmd *CtxCmd) Register(app *cli.Command) *cli.Command

Register adds the ctx command to the application.

type DocCmd

type DocCmd struct {
	// contains filtered or unexported fields
}

func NewDocCmd

func NewDocCmd(flags *Flags, app *hive.App) *DocCmd

func (*DocCmd) Register

func (cmd *DocCmd) Register(app *cli.Command) *cli.Command

type DoctorCmd

type DoctorCmd struct {
	// contains filtered or unexported fields
}

func NewDoctorCmd

func NewDoctorCmd(flags *Flags, app *hive.App) *DoctorCmd

func (*DoctorCmd) Register

func (cmd *DoctorCmd) Register(app *cli.Command) *cli.Command

type Flags

type Flags struct {
	LogLevel     string
	LogFile      string
	ConfigPath   string
	DataDir      string
	ProfilerPort int
}

type LsCmd

type LsCmd struct {
	// contains filtered or unexported fields
}

func NewLsCmd

func NewLsCmd(flags *Flags, app *hive.App) *LsCmd

NewLsCmd creates a new ls command

func (*LsCmd) Register

func (cmd *LsCmd) Register(app *cli.Command) *cli.Command

Register adds the ls command to the application

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
}

func NewMsgCmd

func NewMsgCmd(flags *Flags, app *hive.App) *MsgCmd

NewMsgCmd creates a new msg command.

func (*MsgCmd) Register

func (cmd *MsgCmd) Register(app *cli.Command) *cli.Command

Register adds the msg command to the application.

type NewCmd

type NewCmd struct {
	// contains filtered or unexported fields
}

func NewNewCmd

func NewNewCmd(flags *Flags, app *hive.App) *NewCmd

NewNewCmd creates a new new command

func (*NewCmd) Register

func (cmd *NewCmd) Register(app *cli.Command) *cli.Command

Register adds the new command to the application

type PruneCmd

type PruneCmd struct {
	// contains filtered or unexported fields
}

func NewPruneCmd

func NewPruneCmd(flags *Flags, app *hive.App) *PruneCmd

NewPruneCmd creates a new prune command

func (*PruneCmd) Register

func (cmd *PruneCmd) Register(app *cli.Command) *cli.Command

Register adds the prune command to the application

type ReviewCmd

type ReviewCmd struct {
	// contains filtered or unexported fields
}

func NewReviewCmd

func NewReviewCmd(flags *Flags, app *hive.App) *ReviewCmd

NewReviewCmd creates a new review command.

func (*ReviewCmd) Register

func (cmd *ReviewCmd) Register(app *cli.Command) *cli.Command

Register adds the review command to the application.

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

func (*SessionCmd) Register

func (cmd *SessionCmd) Register(app *cli.Command) *cli.Command

Register adds the session command to the application

type TuiCmd

type TuiCmd struct {
	// contains filtered or unexported fields
}

func NewTuiCmd

func NewTuiCmd(flags *Flags, app *hive.App) *TuiCmd

NewTuiCmd creates a new tui command

func (*TuiCmd) Flags

func (cmd *TuiCmd) Flags() []cli.Flag

Flags returns the TUI-specific flags for registration on the root command

func (*TuiCmd) Run

func (cmd *TuiCmd) Run(ctx context.Context, c *cli.Command) error

Run executes the TUI. Exported for use as default command.

Jump to

Keyboard shortcuts

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