config

package
v0.0.0-...-deae803 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataDir

func DataDir() (string, error)

DataDir 返回 GoCoder 数据目录的完整路径

func EnsureDirs

func EnsureDirs() error

EnsureDirs 确保必要的目录存在

func GetModelConfig

func GetModelConfig(cfg types.AppConfig) (types.ModelConfig, error)

GetModelConfig 获取当前模型配置

func LoadAppConfig

func LoadAppConfig() (types.AppConfig, error)

LoadAppConfig 加载应用配置,不存在时用内嵌默认配置创建

func PrintConfigError

func PrintConfigError(err error)

PrintConfigError 格式化输出配置错误

func ResetToDefault

func ResetToDefault() error

ResetToDefault 重置配置为默认值

func RevertToBackup

func RevertToBackup() error

RevertToBackup 恢复到备份配置

func SaveAppConfig

func SaveAppConfig(cfg types.AppConfig) error

SaveAppConfig 保存应用配置

func SessionsDir

func SessionsDir() (string, error)

SessionsDir 返回会话存储目录

func SkillsDir

func SkillsDir() (string, error)

SkillsDir 返回 skills 目录

func ToolResultsDir

func ToolResultsDir() (string, error)

ToolResultsDir 返回工具结果落盘目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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