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: Update av
Daniel8602bde83fe5
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex b87c9c60ec..a32f9414a1 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -80,7 +80,7 @@ func (tx *Transaction) doUpdateAttrViewCell(operation *Operation) (ret *TxErr) {return}- c.Value = parseCellData(operation.Data, av.ColumnType(operation.Typ))+ c.Value, c.RenderValue = parseCellData(operation)attrs := parse.IAL2Map(node.KramdownIAL)attrs[NodeAttrNamePrefixAvCol+c.ID] = c.Valueif err = setNodeAttrsWithTx(tx, node, tree, attrs); nil != err {@@ -293,12 +293,16 @@ func addAttributeViewBlock(blockID, avID string, tree *parse.Tree, tx *Transactireturn}-func parseCellData(data interface{}, colType av.ColumnType) string {+func parseCellData(operation *Operation) (val, renderVal string) {+ data := operation.Data+ colType := av.ColumnType(operation.Typ)switch colType {case av.ColumnTypeText:- return data.(string)+ val = data.(string)+ renderVal = val+ return}- return ""+ return}const NodeAttrNamePrefixAvCol = "av-col-"