cmd

package
v0.69.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Global Viper instance for commands to use

Functions

func ExecTool added in v0.41.0

func ExecTool(cfg *config.Config, args []string, format string) error

ExecTool executes a tool with the given arguments

func Execute

func Execute()

func GetUserspaceFlag added in v0.41.0

func GetUserspaceFlag(cmd *cobra.Command) bool

GetUserspaceFlag checks for --userspace flag on the current command or parent commands

func RunAgentCommand added in v0.41.0

func RunAgentCommand(cfg *config.Config, modelFlag, taskDescription string) error

func StartChatSession added in v0.41.0

func StartChatSession(cfg *config.Config, v *viper.Viper) error

StartChatSession starts a chat session

func ValidateTool added in v0.41.0

func ValidateTool(cfg *config.Config, command string) error

ValidateTool validates if a command is whitelisted for execution

Types

type Account added in v0.69.0

type Account struct {
	Login string `json:"login"`
	Type  string `json:"type"`
}

type AgentSession added in v0.36.0

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

AgentSession manages the background execution session

type ConversationMessage added in v0.36.0

type ConversationMessage struct {
	Role       string                               `json:"role"`
	Content    string                               `json:"content"`
	ToolCalls  *[]sdk.ChatCompletionMessageToolCall `json:"tool_calls,omitempty"`
	Tools      []string                             `json:"tools,omitempty"`
	ToolCallID string                               `json:"tool_call_id,omitempty"`
	TokenUsage *sdk.CompletionUsage                 `json:"token_usage,omitempty"`
	Timestamp  time.Time                            `json:"timestamp"`
	RequestID  string                               `json:"request_id,omitempty"`
	Internal   bool                                 `json:"-"`
}

ConversationMessage represents a message in the JSON output conversation

type GitHubApp added in v0.69.0

type GitHubApp struct {
	ID         int64   `json:"id"`
	AppID      int64   `json:"app_id"`
	AppSlug    string  `json:"app_slug"`
	TargetType string  `json:"target_type"`
	Account    Account `json:"account"`
}

type InstallationsResponse added in v0.69.0

type InstallationsResponse struct {
	Installations []GitHubApp `json:"installations"`
}

Jump to

Keyboard shortcuts

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