cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 54 Imported by: 0

Documentation

Overview

internal/cmd/completion.go

internal/cmd/controller_manager.go

internal/cmd/create-config.go

internal/cmd/down.go

internal/cmd/inspect.go

internal/cmd/install.go

internal/cmd/logs.go

internal/cmd/memory.go

internal/cmd/postgres.go

internal/cmd/proxy.go

internal/cmd/ps.go

internal/cmd/reload.go

internal/cmd/restart.go

internal/cmd/root.go

internal/cmd/scheduler_execute_workflow.go

internal/cmd/scheduler_server.go

internal/cmd/serve_proxy.go

internal/cmd/start.go

internal/cmd/stop.go

internal/cmd/task_scheduler.go

internal/cmd/toolbox.go

internal/cmd/top.go

internal/cmd/up.go

internal/cmd/validate.go

Index

Constants

This section is empty.

Variables

View Source
var (
	ArmyGreen  = lipgloss.Color("58")  // #5f5f00 - darker army green
	LightGreen = lipgloss.Color("64")  // #5f8700 - lighter army green
	Brown      = lipgloss.Color("94")  // #875f00 - brown
	Yellow     = lipgloss.Color("226") // #ffff00 - bright yellow
	GoldYellow = lipgloss.Color("220") // #ffd700 - gold yellow
	Red        = lipgloss.Color("196") // #ff0000 - red
	Tan        = lipgloss.Color("180") // #d7af87 - tan
)

Color constants matching chat UI theme

Functions

func EnsurePostgresResource

func EnsurePostgresResource() error

EnsurePostgresResource ensures the MCPPostgres resource exists without adding to servers config

func NewChatCommand

func NewChatCommand() *cobra.Command

NewChatCommand creates the chat command using the refactored chat package

func NewCompletionCommand

func NewCompletionCommand() *cobra.Command

func NewContextAddCommand

func NewContextAddCommand() *cobra.Command

func NewContextClearCommand

func NewContextClearCommand() *cobra.Command

func NewContextCommand

func NewContextCommand() *cobra.Command

NewContextCommand creates the context management command with full enterprise features

func NewContextGetCommand

func NewContextGetCommand() *cobra.Command

func NewContextListCommand

func NewContextListCommand() *cobra.Command

func NewContextMentionsCommand

func NewContextMentionsCommand() *cobra.Command

func NewContextRemoveCommand

func NewContextRemoveCommand() *cobra.Command

func NewContextStatsCommand

func NewContextStatsCommand() *cobra.Command

func NewContextWindowCommand

func NewContextWindowCommand() *cobra.Command

func NewControllerManagerCommand

func NewControllerManagerCommand() *cobra.Command

func NewCreateConfigCommand

func NewCreateConfigCommand() *cobra.Command

func NewDownCommand

func NewDownCommand() *cobra.Command

func NewEditCommand

func NewEditCommand() *cobra.Command

NewEditCommand creates the edit command

func NewInspectCommand

func NewInspectCommand() *cobra.Command

func NewInstallCommand

func NewInstallCommand() *cobra.Command

func NewLogsCommand

func NewLogsCommand() *cobra.Command

func NewMCPServerCommand

func NewMCPServerCommand() *cobra.Command

NewMCPServerCommand creates the mcp-server command

func NewMemoryCommand

func NewMemoryCommand() *cobra.Command

func NewParseCommand

func NewParseCommand() *cobra.Command

NewParseCommand creates the parse command with full tree-sitter integration

func NewPostgresCommand

func NewPostgresCommand() *cobra.Command

func NewProxyCommand

func NewProxyCommand() *cobra.Command

func NewPsCommand

func NewPsCommand() *cobra.Command

func NewReloadCommand

func NewReloadCommand() *cobra.Command

func NewRestartCommand

func NewRestartCommand() *cobra.Command

func NewRootCommand

func NewRootCommand(version string) *cobra.Command

func NewSchedulerServerCommand

func NewSchedulerServerCommand() *cobra.Command

func NewSearchCommand

func NewSearchCommand() *cobra.Command

NewSearchCommand creates the search command

func NewServeProxyCommand

func NewServeProxyCommand() *cobra.Command

func NewStartCommand

func NewStartCommand() *cobra.Command

func NewStopCommand

func NewStopCommand() *cobra.Command

func NewTaskSchedulerCommand

func NewTaskSchedulerCommand() *cobra.Command

func NewToolboxCommand

func NewToolboxCommand() *cobra.Command

func NewToolboxCreateCommand

func NewToolboxCreateCommand() *cobra.Command

func NewToolboxDeleteCommand

func NewToolboxDeleteCommand() *cobra.Command

func NewToolboxDownCommand

func NewToolboxDownCommand() *cobra.Command

func NewToolboxListCommand

func NewToolboxListCommand() *cobra.Command

func NewToolboxLogsCommand

func NewToolboxLogsCommand() *cobra.Command

func NewToolboxStatusCommand

func NewToolboxStatusCommand() *cobra.Command

func NewToolboxTemplatesCommand

func NewToolboxTemplatesCommand() *cobra.Command

func NewToolboxUpCommand

func NewToolboxUpCommand() *cobra.Command

func NewTopCommand

func NewTopCommand() *cobra.Command

func NewUpCommand

func NewUpCommand() *cobra.Command

func NewValidateCommand

func NewValidateCommand() *cobra.Command

Types

type ApprovalMode

type ApprovalMode int

ApprovalMode controls how autonomous the agent should be

const (
	// DEFAULT mode requires manual confirmation for all actions
	DEFAULT ApprovalMode = iota
	// AUTO_EDIT mode auto-approves file edits and safe operations
	AUTO_EDIT
	// YOLO mode auto-approves everything (most autonomous)
	YOLO
)

func ParseApprovalMode

func ParseApprovalMode(s string) (ApprovalMode, error)

ParseApprovalMode parses a string into an ApprovalMode

func (ApprovalMode) Description

func (a ApprovalMode) Description() string

Description returns a human-readable description of the approval mode

func (ApprovalMode) GetModeIndicator

func (a ApprovalMode) GetModeIndicator() string

GetModeIndicator returns a visual indicator for the current approval mode

func (ApprovalMode) GetModeIndicatorNoEmoji

func (a ApprovalMode) GetModeIndicatorNoEmoji() string

GetModeIndicatorNoEmoji returns a visual indicator without emojis

func (ApprovalMode) ShouldConfirm

func (a ApprovalMode) ShouldConfirm(operation string) bool

ShouldConfirm returns whether the given operation should require confirmation

func (ApprovalMode) String

func (a ApprovalMode) String() string

String returns the string representation of the approval mode

type ConditionInfo

type ConditionInfo struct {
	Type    string `json:"type"`
	Status  string `json:"status"`
	Reason  string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}

type DefinitionResult

type DefinitionResult struct {
	Name      string `json:"name"`
	Type      string `json:"type"`
	FilePath  string `json:"file_path"`
	Line      int    `json:"line"`
	Column    int    `json:"column"`
	Signature string `json:"signature,omitempty"`
	DocString string `json:"doc_string,omitempty"`
}

type MCPError

type MCPError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

MCPError represents an MCP JSON-RPC error

type MCPRequest

type MCPRequest struct {
	JSONRPC string      `json:"jsonrpc"`
	ID      interface{} `json:"id"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params,omitempty"`
}

MCPRequest represents an MCP JSON-RPC request

type MCPResponse

type MCPResponse struct {
	JSONRPC string      `json:"jsonrpc"`
	ID      interface{} `json:"id"`
	Result  interface{} `json:"result,omitempty"`
	Error   *MCPError   `json:"error,omitempty"`
}

MCPResponse represents an MCP JSON-RPC response

type ResourceInfo

type ResourceInfo struct {
	Type       string          `json:"type"`
	Name       string          `json:"name"`
	Namespace  string          `json:"namespace"`
	Phase      string          `json:"phase"`
	Age        string          `json:"age"`
	Ready      string          `json:"ready"`
	Status     string          `json:"status"`
	Endpoint   string          `json:"endpoint,omitempty"`
	Image      string          `json:"image,omitempty"`
	Protocol   string          `json:"protocol,omitempty"`
	Resource   interface{}     `json:"resource,omitempty"`
	Conditions []ConditionInfo `json:"conditions,omitempty"`
}

type ServerInfo

type ServerInfo struct {
	Name        string
	Status      string
	Type        string
	Restarts    int32
	Age         time.Duration
	CPU         string
	Memory      string
	Image       string
	Protocol    string
	Port        int32
	Replicas    string
	Ready       bool
	LastUpdated time.Time
}

ServerInfo contains detailed information about a server

type TopModel

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

TopModel represents the state of the top TUI

func (*TopModel) Init

func (m *TopModel) Init() tea.Cmd

Init initializes the model

func (*TopModel) Update

func (m *TopModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages

func (*TopModel) View

func (m *TopModel) View() string

View renders the TUI

Jump to

Keyboard shortcuts

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