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: Inc sync after writing file via /file/ api
Daniel7868ffe3bc41
diff --git a/kernel/api/asset.go b/kernel/api/asset.goindex ad8ebbb344..f67c7ad0a4 100644--- a/kernel/api/asset.go+++ b/kernel/api/asset.go@@ -244,6 +244,7 @@ func setFileAnnotation(c *gin.Context) {ret.Msg = err.Error()return}+model.IncSync()}diff --git a/kernel/api/file.go b/kernel/api/file.goindex c9f64a4ce8..78d37064d0 100644--- a/kernel/api/file.go+++ b/kernel/api/file.go@@ -87,6 +87,8 @@ func globalCopyFiles(c *gin.Context) {return}}++ model.IncSync()}func copyFile(c *gin.Context) {@@ -132,6 +134,8 @@ func copyFile(c *gin.Context) {ret.Data = map[string]interface{}{"closeTimeout": 5000}return}++ model.IncSync()}func getFile(c *gin.Context) {@@ -320,6 +324,8 @@ func renameFile(c *gin.Context) {ret.Msg = err.Error()return}++ model.IncSync()}func removeFile(c *gin.Context) {@@ -357,6 +363,8 @@ func removeFile(c *gin.Context) {ret.Msg = err.Error()return}++ model.IncSync()}func putFile(c *gin.Context) {@@ -442,6 +450,8 @@ func putFile(c *gin.Context) {ret.Msg = err.Error()return}++ model.IncSync()}func millisecond2Time(t int64) time.Time {