An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Danielc85b95467132
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 3f3ba1af9a..3a7aecac91 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -549,10 +549,16 @@ func GenerateTitle(client *openai.Client, model string, userMsg string) string {var safeActions = map[string]bool{"get": true, "get_kramdown": true, "get_children": true, "breadcrumb": true,- "tree_stat": true,- "list": true, "read": true, "search_docs": true, "fulltext": true, "backlinks": true,- "mentions": true, "labels": true, "status": true, "version": true,- "current_time": true, "workspace": true, "md": true, "query": true,+ "tree_stat": true, "dom": true, "batch_get": true, "batch_kramdown": true,+ "list": true, "read": true, "search_docs": true, "fulltext": true, "semantic": true, "search": true,+ "backlinks": true, "mentions": true, "refresh": true,+ "labels": true, "status": true, "version": true,+ "current_time": true, "workspace": true, "info": true,+ "grep": true, "find": true, "stat": true, "unused": true,+ "keys": true, "render": true, "diff": true,+ "file_get": true, "file_open": true, "file_export": true,+ "open": true, "close": true, "batch-get": true, "question": true, "todo_write": true,+ "md": true, "query": true,}func needsConfirm(toolName string, action string, alwaysAllow map[string]bool) bool {@@ -568,6 +574,9 @@ func needsConfirm(toolName string, action string, alwaysAllow map[string]bool) bif toolName == "sync" && action == "status" {return false}+ if toolName == "import" && action == "md" {+ return true+ }return true}