Documentation
¶
Index ¶
- Constants
- func AutoRegisterMCP(cfg config.Config)
- func DefaultIndexSearch(query string, q sessionsIndexQuery) ([]search.Result, bool, error)
- func Execute(version string)
- func FocusLiveVia(discover func() ([]agent.Agent, error)) func(string) (string, bool)
- func IsInteractive() bool
- func LiveIDsVia(discover func() ([]agent.Agent, error)) func() []string
- func RegisterAll(d Deps)
- func RunPickerHelper(args []string, out io.Writer) (bool, error)
- func SetRunBoth(fn func(cmd *cobra.Command, args []string) error)
- func SetRunTUI(fn func(cmd *cobra.Command, args []string) error)
- type Deps
- type OutputWriter
Constants ¶
const ( ExitSuccess = 0 ExitError = 1 ExitUsage = 2 ExitNotFound = 3 ExitConfig = 4 )
Variables ¶
This section is empty.
Functions ¶
func AutoRegisterMCP ¶ added in v0.13.0
AutoRegisterMCP checks if auto-registration is enabled in config and registers the MCP server in Claude Code settings if not already there.
func DefaultIndexSearch ¶ added in v0.13.0
DefaultIndexSearch runs a query through the shared search service.
func FocusLiveVia ¶ added in v0.13.0
FocusLiveVia returns a FocusLive func: it finds the live agent running the session and brings its iTerm2 pane to the front.
func IsInteractive ¶
func IsInteractive() bool
func LiveIDsVia ¶ added in v0.13.0
LiveIDsVia lists session ids of agents running in a terminal right now.
func RegisterAll ¶
func RegisterAll(d Deps)
RegisterAll wires all subcommands to rootCmd using the provided dependencies.
func RunPickerHelper ¶ added in v0.13.0
RunPickerHelper runs the commands fzf calls on every keystroke (sessions rows/preview/picker-toggle) without aimux's full startup. It reports false for anything else so main continues normally.
Types ¶
type Deps ¶
type Deps struct {
Discover func() ([]agent.Agent, error)
DiscoverSessions func(opts history.DiscoverOpts, dir string) ([]history.Session, error)
PickSession func(sessions []history.Session) (history.Session, error)
ResumeBuilder func(sessionID string, danger bool) (command, workDir string, err error)
ResumeExec func(sessionID string, danger bool)
IndexSearch func(query string, q sessionsIndexQuery) ([]search.Result, bool, error) // nil: legacy search
FocusLive func(sessionID string) (string, bool) // nil: always resume
LiveIDs func() []string // nil: no live markers
SpawnAgent func(opts spawn.LaunchOpts) (pid int, tmuxSession string, err error)
WebServer func(port int) error
Providers []string
Environments map[string]config.EnvironmentConfig
AgentConfigs []config.AgentConfig
ProfileStore *profile.Store
SkipPermissions bool
DefaultMode string
FeedbackPath string
TraceParsers map[string]func(filePath string) ([]trace.Turn, error)
ComposeEngine *aimuxcompose.Engine
}
Deps holds all injectable dependencies for cobra subcommands.
type OutputWriter ¶
func NewOutputWriter ¶
func NewOutputWriter(jsonMode bool) *OutputWriter
func (*OutputWriter) WriteError ¶
func (*OutputWriter) WriteResult ¶
func (w *OutputWriter) WriteResult(data any) int
Source Files
¶
- agentcontext.go
- agents.go
- chat.go
- collect.go
- configs.go
- environments.go
- export.go
- feedback.go
- jump.go
- kill.go
- mcp.go
- mcp_proxy.go
- mcp_proxy_edit.go
- mcp_proxy_install.go
- mcp_proxy_style.go
- output.go
- profile.go
- register.go
- remote.go
- remote_hooks.go
- resume.go
- root.go
- sessions.go
- sessions_search.go
- sessions_star.go
- spawn.go
- version.go
- web.go