From ad5573fbb914781b5c81c2fc2bfe75332e432e00 Mon Sep 17 00:00:00 2001 From: Enmanuel Date: Sun, 8 Mar 2026 21:56:30 +0000 Subject: [PATCH] feat: agregar config SharedKnowledge a schema.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nuevo tipo SharedKnowledgeToolCfg con enabled, dir, db_path - Agregar campo SharedKnowledge a ToolsCfg - Issue 0018: Shared Knowledge (fase 1) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- internal/config/schema.go | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) 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"`