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: https://github.com/siyuan-note/siyuan/issues/17409
Danielefed9d160464
diff --git a/kernel/api/file.go b/kernel/api/file.goindex 73db0c753e..bfd15fe0dc 100644--- a/kernel/api/file.go+++ b/kernel/api/file.go@@ -485,7 +485,13 @@ func renameFile(c *gin.Context) {return}- srcPath := arg["path"].(string)+ var srcPath string+ if !util.ParseJsonArgs(arg, ret,+ util.BindJsonArg("path", &srcPath, true, true),+ ) {+ return+ }+srcAbsPath, err := util.GetAbsPathInWorkspace(srcPath)if err != nil {ret.Code = http.StatusForbidden@@ -532,7 +538,13 @@ func removeFile(c *gin.Context) {return}- filePath := arg["path"].(string)+ var filePath string+ if !util.ParseJsonArgs(arg, ret,+ util.BindJsonArg("path", &filePath, true, true),+ ) {+ return+ }+fileAbsPath, err := util.GetAbsPathInWorkspace(filePath)if err != nil {ret.Code = http.StatusForbidden