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: Improve `Add to Database` https://github.com/siyuan-note/siyuan/issues/10659
Daniel3182f7abb8f7
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 1b597aa20b..4c9ed6132c 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -1232,13 +1232,14 @@ func GetAttributeView(avID string) (ret *av.AttributeView) {}type AvSearchResult struct {- AvID string `json:"avID"`- AvName string `json:"avName"`- ViewName string `json:"viewName"`- ViewID string `json:"viewID"`- BlockID string `json:"blockID"`- HPath string `json:"hPath"`- Children []*AvSearchResult `json:"children,omitempty"`+ AvID string `json:"avID"`+ AvName string `json:"avName"`+ ViewName string `json:"viewName"`+ ViewID string `json:"viewID"`+ ViewLayout av.LayoutType `json:"viewLayout"`+ BlockID string `json:"blockID"`+ HPath string `json:"hPath"`+ Children []*AvSearchResult `json:"children,omitempty"`}type AvSearchTempResult struct {@@ -1392,12 +1393,13 @@ func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*AvSearchfor _, view := range attrView.Views {child := &AvSearchResult{- AvID: avID,- AvName: existAv.AvName,- ViewName: view.Name,- ViewID: view.ID,- BlockID: blockID,- HPath: hPath,+ AvID: avID,+ AvName: existAv.AvName,+ ViewName: view.Name,+ ViewID: view.ID,+ ViewLayout: view.LayoutType,+ BlockID: blockID,+ HPath: hPath,}parent.Children = append(parent.Children, child)}