An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Clean code
Daniel5536545f220e
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 9a438d6183..449681b676 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -186,7 +186,7 @@ type SearchAttributeViewResult struct {HPath string `json:"hPath"`}-func SearchAttributeView(keyword string, excludes []string) (ret []*SearchAttributeViewResult) {+func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*SearchAttributeViewResult) {waitForSyncingStorages()ret = []*SearchAttributeViewResult{}@@ -311,6 +311,9 @@ func SearchAttributeView(keyword string, excludes []string) (ret []*SearchAttribbreak}}+ if exist {+ continue+ }var hPath stringbaseBlock := treenode.GetBlockTreeRootByPath(node.Box, node.Path)@@ -322,7 +325,7 @@ func SearchAttributeView(keyword string, excludes []string) (ret []*SearchAttribhPath = box.Name + hPath}- if !exist && !gulu.Str.Contains(avID, excludes) {+ if !gulu.Str.Contains(avID, excludeAvIDs) {ret = append(ret, &SearchAttributeViewResult{AvID: avID,AvName: existAv.AvName,