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
Daniel44db6a8d5f74
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 491a140449..4f3b8cbd3f 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -167,19 +167,12 @@ func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr)}func (tx *Transaction) doRemoveAttrViewBlock(operation *Operation) (ret *TxErr) {- firstSrcID := operation.SrcIDs[0]- tree, err := tx.loadTree(firstSrcID)- if nil != err {- logging.LogErrorf("load tree [%s] failed: %s", firstSrcID, err)- return &TxErr{code: TxErrCodeBlockNotFound, id: firstSrcID}- }-var avs []*av.AttributeViewavID := operation.ParentIDfor _, id := range operation.SrcIDs {var av *av.AttributeViewvar avErr error- if av, avErr = removeAttributeViewBlock(id, avID, tree); nil != avErr {+ if av, avErr = removeAttributeViewBlock(id, avID); nil != avErr {return &TxErr{code: TxErrWriteAttributeView, id: avID}}@@ -376,13 +369,7 @@ func sortAttributeViewRow(rowID, previousRowID, avID string) (err error) {return}-func removeAttributeViewBlock(blockID, avID string, tree *parse.Tree) (ret *av.AttributeView, err error) {- node := treenode.GetNodeInTree(tree, blockID)- if nil == node {- err = ErrBlockNotFound- return- }-+func removeAttributeViewBlock(blockID, avID string) (ret *av.AttributeView, err error) {ret, err = av.ParseAttributeView(avID)if nil != err {return