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/5159
Liang Ding5c1cbef02574
diff --git a/kernel/api/repo.go b/kernel/api/repo.goindex 45659c3b8a..da8035ea41 100644--- a/kernel/api/repo.go+++ b/kernel/api/repo.go@@ -27,10 +27,6 @@ import ("github.com/siyuan-note/siyuan/kernel/util")-func getRepoFile(c *gin.Context) {--}-func checkoutRepo(c *gin.Context) {ret := gulu.Ret.NewResult()defer c.JSON(http.StatusOK, ret)diff --git a/kernel/api/router.go b/kernel/api/router.goindex 1d10aacd41..fc807c0608 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -251,7 +251,6 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/repo/indexRepo", model.CheckAuth, indexRepo)ginServer.Handle("POST", "/api/repo/checkoutRepo", model.CheckAuth, checkoutRepo)ginServer.Handle("POST", "/api/repo/getRepoIndexLogs", model.CheckAuth, getRepoIndexLogs)- ginServer.Handle("POST", "/api/repo/getRepoFile", model.CheckAuth, getRepoFile)ginServer.Handle("POST", "/api/notification/pushMsg", model.CheckAuth, pushMsg)ginServer.Handle("POST", "/api/notification/pushErrMsg", model.CheckAuth, pushErrMsg)diff --git a/kernel/go.mod b/kernel/go.modindex 0c0d8b3556..dcc882d4da 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -40,7 +40,7 @@ require (github.com/patrickmn/go-cache v2.1.0+incompatiblegithub.com/qiniu/go-sdk/v7 v7.13.0github.com/radovskyb/watcher v1.0.7- github.com/siyuan-note/dejavu v0.0.0-20220613153354-81a47b3b32e4+ github.com/siyuan-note/dejavu v0.0.0-20220613154907-7c4058d9f1e1github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676github.com/vmihailenco/msgpack/v5 v5.3.5github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673diff --git a/kernel/go.sum b/kernel/go.sumindex 20834a80e2..50520a9950 100644--- a/kernel/go.sum+++ b/kernel/go.sum@@ -419,8 +419,8 @@ github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJgithub.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=-github.com/siyuan-note/dejavu v0.0.0-20220613153354-81a47b3b32e4 h1:T/9WkfZBN2xTsSpkAwx2u6iNNA2t0j5M86M6o59G4pE=-github.com/siyuan-note/dejavu v0.0.0-20220613153354-81a47b3b32e4/go.mod h1:Oa/Y6fvTUCg8h9/t6GNWXiu8T7aQri/ZvyDRygnlikI=+github.com/siyuan-note/dejavu v0.0.0-20220613154907-7c4058d9f1e1 h1:Z0Q4sjonCyTc0SHor86LM+oP6DM8wL6Xx+BKtReees4=+github.com/siyuan-note/dejavu v0.0.0-20220613154907-7c4058d9f1e1/go.mod h1:Oa/Y6fvTUCg8h9/t6GNWXiu8T7aQri/ZvyDRygnlikI=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676 h1:QB9TjJQFhXhZ6dAtPpY02DlzHAQm1C+WqZq6OadG8mI=github.com/siyuan-note/encryption v0.0.0-20220612074546-f1dd94fe8676/go.mod h1:H8fyqqAbp9XreANjeSbc72zEdFfKTXYN34tc1TjZwtw=github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex 9f752724b7..86813ec715 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -46,6 +46,7 @@ func GetRepoIndexLogs(page int) (logs []*dejavu.Log, err error) {return}+ page-- // 从 0 开始logs, err = repo.GetIndexLogs(page, 32)if nil != err {util.LogErrorf("get repo index logs failed: %s", err)