cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAppOptions

func BuildAppOptions(mcpConfig *config.Config, modelName string, serverNames, toolNames []string) app.Options

BuildAppOptions constructs the app.Options struct from the current state.

func CollectAgentMetadata

func CollectAgentMetadata(k *kit.Kit, mcpConfig *config.Config) (provider, modelName string, serverNames, toolNames []string, mcpToolCount, extensionToolCount int)

CollectAgentMetadata extracts model display info and tool/server name lists from the Kit instance, used to populate app.Options and UI setup. It also returns the number of MCP tools and extension tools separately.

func DisplayDebugConfig

func DisplayDebugConfig(cli *ui.CLI, k *kit.Kit, mcpConfig *config.Config, provider string)

DisplayDebugConfig builds and displays the debug configuration map through the CLI for non-interactive mode.

func GetRootCommand

func GetRootCommand(v string) *cobra.Command

GetRootCommand returns the root command with the version set. This function is the main entry point for the KIT CLI and should be called from main.go with the appropriate version string.

func InitConfig

func InitConfig()

InitConfig initializes the configuration for KIT by loading config files, environment variables. It delegates to the SDK's InitConfig, injecting the CLI-specific configFile flag and debug mode. This function is automatically called by cobra before command execution.

func LoadConfigWithEnvSubstitution

func LoadConfigWithEnvSubstitution(configPath string) error

LoadConfigWithEnvSubstitution loads a config file with environment variable substitution. Delegates to the SDK implementation.

func SetupCLIForNonInteractive

func SetupCLIForNonInteractive(k *kit.Kit) (*ui.CLI, error)

SetupCLIForNonInteractive creates the CLI display layer for non-interactive mode (--prompt). Returns nil when quiet mode is active.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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