Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Kernel API supports load plugins https://github.com/siyuan-note/siyuan/issues/8044

Liang Dingda31f5a7a643
diff --git a/kernel/util/working.go b/kernel/util/working.go
index ba36d9a2cc..55157ec35b 100644
--- a/kernel/util/working.go
+++ b/kernel/util/working.go
@@ -355,6 +355,11 @@ func initPathDir() {
logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data widgets folder [%s] failed: %s", widgets, err)
}
+ plugins := filepath.Join(DataDir, "plugins")
+ if err := os.MkdirAll(plugins, 0755); nil != err && !os.IsExist(err) {
+ logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data plugins folder [%s] failed: %s", widgets, err)
+ }
+
emojis := filepath.Join(DataDir, "emojis")
if err := os.MkdirAll(emojis, 0755); nil != err && !os.IsExist(err) {
logging.LogFatalf(logging.ExitCodeInitWorkspaceErr, "create data emojis folder [%s] failed: %s", widgets, err)