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
Daniel374e3386b383
diff --git a/kernel/agent/session.go b/kernel/agent/session.goindex cab0e0e98a..8b81d01eca 100644--- a/kernel/agent/session.go+++ b/kernel/agent/session.go@@ -19,21 +19,19 @@ package agentimport ("os""path/filepath"- "regexp""sort""strings""sync""github.com/88250/gulu"+ "github.com/88250/lute/ast""github.com/siyuan-note/filelock""github.com/siyuan-note/logging""github.com/siyuan-note/siyuan/kernel/util")-var sessionIDRegexp = regexp.MustCompile(`^[a-zA-Z0-9]{14,26}$`)-func isValidSessionID(id string) bool {- return sessionIDRegexp.MatchString(id)+ return ast.IsNodeIDPattern(id)}var indexMu sync.Mutex