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: Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Daniel7c9acda46527
diff --git a/kernel/api/av.go b/kernel/api/av.goindex e6fdde5cac..16570205a4 100644--- a/kernel/api/av.go+++ b/kernel/api/av.go@@ -37,10 +37,10 @@ func removeUnusedAttributeView(c *gin.Context) {return}- p := arg["path"].(string)- asset := model.RemoveUnusedAttributeView(p)+ avID := arg["id"].(string)+ model.RemoveUnusedAttributeView(avID)ret.Data = map[string]interface{}{- "path": asset,+ "id": avID,}}diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 0cfcf36a03..0e9472e33f 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -46,10 +46,10 @@ import ("github.com/xrash/smetrics")-func RemoveUnusedAttributeView(p string) (ret string) {- absPath := filepath.Join(util.DataDir, "storage", "av", p+".json")+func RemoveUnusedAttributeView(id string) {+ absPath := filepath.Join(util.DataDir, "storage", "av", id+".json")if !filelock.IsExist(absPath) {- return absPath+ return}historyDir, err := GetHistoryDir(HistoryOpClean)@@ -71,7 +71,6 @@ func RemoveUnusedAttributeView(p string) (ret string) {util.PushErrMsg(fmt.Sprintf("%s", err), 7000)return}- ret = absPathIncSync()