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: Block data sync to Attribute View https://github.com/siyuan-note/siyuan/issues/8696
Daniel33e6a2ff2c82
diff --git a/kernel/av/av.go b/kernel/av/av.goindex 202eb5fe8d..fee3661d1a 100644--- a/kernel/av/av.go+++ b/kernel/av/av.go@@ -107,7 +107,8 @@ type AttributeViewCalc struct {type CalcOperator stringconst (- CalcOperatorIsEqual FilterOperator = "="+ CalcOperatorNone FilterOperator = ""+ CalcOperatorCountAll FilterOperator = "Count all")type AttributeViewSort struct {@@ -312,3 +313,7 @@ func (av *AttributeView) FilterRows() {av.Rows = rows}}++func (av *AttributeView) CalcCols() {++}diff --git a/kernel/model/transaction.go b/kernel/model/transaction.goindex 06254f890c..4ce7886908 100644--- a/kernel/model/transaction.go+++ b/kernel/model/transaction.go@@ -1221,6 +1221,12 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m}if changedAv {av.SaveAttributeView(attrView)++ evt := util.NewCmdResult("refreshAttributeView", 0, util.PushModeBroadcast)+ evt.Data = map[string]interface{}{+ "id": avID,+ }+ util.PushEvent(evt)}}}