An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Support for searching asset content https://github.com/siyuan-note/siyuan/issues/8874
Daniel9f6d08ac01a7
diff --git a/kernel/model/asset_content.go b/kernel/model/asset_content.goindex 1863962e24..6a1e5cd55b 100644--- a/kernel/model/asset_content.go+++ b/kernel/model/asset_content.go@@ -28,6 +28,7 @@ import ("code.sajari.com/docconv""github.com/88250/gulu""github.com/88250/lute/ast"+ "github.com/dustin/go-humanize""github.com/siyuan-note/eventbus""github.com/siyuan-note/filelock""github.com/siyuan-note/logging"@@ -43,6 +44,7 @@ type AssetContent struct {Ext string `json:"ext"`Path string `json:"path"`Size int64 `json:"size"`+ HSize string `json:"hSize"`Updated int64 `json:"updated"`Content string `json:"content"`}@@ -219,6 +221,7 @@ func fromSQLAssetContent(assetContent *sql.AssetContent, beforeLen int) *AssetCoExt: assetContent.Ext,Path: assetContent.Path,Size: assetContent.Size,+ HSize: humanize.Bytes(uint64(assetContent.Size)),Updated: assetContent.Updated,Content: assetContent.Content,}