diff --git a/internal/config/schema.go b/internal/config/schema.go index a9258d1..0560fad 100644 --- a/internal/config/schema.go +++ b/internal/config/schema.go @@ -121,14 +121,15 @@ type LLMRateLimitCfg struct { // ── Tools ───────────────────────────────────────────────────────────────── type ToolsCfg struct { - SSH SSHToolCfg `yaml:"ssh"` - HTTP HTTPToolCfg `yaml:"http"` - Scripts ScriptsCfg `yaml:"scripts"` - FileOps FileOpsCfg `yaml:"file_ops"` - Matrix MatrixToolCfg `yaml:"matrix_send"` - MCP MCPToolCfg `yaml:"mcp"` - Memory MemoryToolCfg `yaml:"memory"` - Knowledge KnowledgeToolCfg `yaml:"knowledge"` + SSH SSHToolCfg `yaml:"ssh"` + HTTP HTTPToolCfg `yaml:"http"` + Scripts ScriptsCfg `yaml:"scripts"` + FileOps FileOpsCfg `yaml:"file_ops"` + Matrix MatrixToolCfg `yaml:"matrix_send"` + MCP MCPToolCfg `yaml:"mcp"` + Memory MemoryToolCfg `yaml:"memory"` + Knowledge KnowledgeToolCfg `yaml:"knowledge"` + SharedKnowledge SharedKnowledgeToolCfg `yaml:"shared_knowledge"` } type MatrixToolCfg struct { @@ -140,6 +141,12 @@ type KnowledgeToolCfg struct { Dir string `yaml:"dir"` // default: "./knowledge" (relative to agent dir) } +type SharedKnowledgeToolCfg struct { + Enabled bool `yaml:"enabled"` // default false + Dir string `yaml:"dir"` // default "knowledges" (relative to project root) + DBPath string `yaml:"db_path"` // default "knowledges/data/knowledge.db" +} + type SSHToolCfg struct { Enabled bool `yaml:"enabled"` AllowedTargets []string `yaml:"allowed_targets"`