mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-21 17:38:10 +00:00
feat: 路径配置化 + 裸二进制启动 + pluginmgr 内置插件
- types.go: 新增 PluginDirConfig 结构体嵌入 Config - config/registry.go: 新增7个路径配置项 (core.plugin.dir 等) + ConfigDef 元数据 - cmd/homed/main.go: -data 默认自动检测二进制同级目录,使用 cfg.Plugin.Dir - internal/plugins/pluginmgr/: 内置插件实现 (4工具 + HTTP API + 包校验) - all.go: 注册 pluginmgr - manifest.go: 扩展 PluginManifest 字段 - sdk/settings.go: RegisterDef / Defs 接口 - webui: 设置页自动发现 ConfigDef 元数据 - config/config.go, config/config.yaml: 清理 YAML 死代码 - sdk/plugin.go: IO 通道泛型化支持非文本类型 - waiter: CLI 支持 socket 发现和交互模式
This commit is contained in:
@ -135,9 +135,14 @@ type InputProcessingConfig struct {
|
||||
Audio AudioProcessingConfig `json:"audio" yaml:"audio"`
|
||||
}
|
||||
|
||||
type PluginDirConfig struct {
|
||||
Dir string `json:"dir"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Daemon DaemonConfig `json:"daemon"`
|
||||
LLM LLMConfig `json:"llm"`
|
||||
Plugin PluginDirConfig `json:"plugin"`
|
||||
InputProcessing InputProcessingConfig `json:"input_processing"`
|
||||
Defaults AgentConfig `json:"defaults"`
|
||||
Agents []AgentConfig `json:"agents"`
|
||||
|
||||
Reference in New Issue
Block a user