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: Add more file formats supporting snapshots comparing https://github.com/siyuan-note/siyuan/issues/8438
Danielb5087a5eb1fd
diff --git a/kernel/model/repository.go b/kernel/model/repository.goindex dc558ce767..5eba5aa9f7 100644--- a/kernel/model/repository.go+++ b/kernel/model/repository.go@@ -165,6 +165,7 @@ type LeftRightDiff struct {type DiffFile struct {FileID string `json:"fileID"`Title string `json:"title"`+ Path string `json:"path"`Updated int64 `json:"updated"`}@@ -209,6 +210,7 @@ func DiffRepoSnapshots(left, right string) (ret *LeftRightDiff, err error) {ret.AddsLeft = append(ret.AddsLeft, &DiffFile{FileID: removeRight.ID,Title: title,+ Path: removeRight.Path,Updated: removeRight.Updated,})}@@ -225,6 +227,7 @@ func DiffRepoSnapshots(left, right string) (ret *LeftRightDiff, err error) {ret.RemovesRight = append(ret.RemovesRight, &DiffFile{FileID: addLeft.ID,Title: title,+ Path: addLeft.Path,Updated: addLeft.Updated,})}@@ -241,6 +244,7 @@ func DiffRepoSnapshots(left, right string) (ret *LeftRightDiff, err error) {ret.UpdatesLeft = append(ret.UpdatesLeft, &DiffFile{FileID: updateLeft.ID,Title: title,+ Path: updateLeft.Path,Updated: updateLeft.Updated,})}@@ -257,6 +261,7 @@ func DiffRepoSnapshots(left, right string) (ret *LeftRightDiff, err error) {ret.UpdatesRight = append(ret.UpdatesRight, &DiffFile{FileID: updateRight.ID,Title: title,+ Path: updateRight.Path,Updated: updateRight.Updated,})}