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: Support one-click enable/disable of all downloaded plugins https://github.com/siyuan-note/siyuan/issues/8523
Daniel585e11b329a0
diff --git a/kernel/conf/bazaar.go b/kernel/conf/bazaar.goindex 41bcc6c993..af41c340f4 100644--- a/kernel/conf/bazaar.go+++ b/kernel/conf/bazaar.go@@ -17,13 +17,13 @@package conftype Bazaar struct {- Trust bool `json:"trust"`- Petal bool `json:"petal"`+ Trust bool `json:"trust"`+ PetalDisabled bool `json:"petalDisabled"`}func NewBazaar() *Bazaar {return &Bazaar{- Trust: false,- Petal: true,+ Trust: false,+ PetalDisabled: false,}}diff --git a/kernel/model/plugin.go b/kernel/model/plugin.goindex 510b897971..93b7431ddf 100644--- a/kernel/model/plugin.go+++ b/kernel/model/plugin.go@@ -72,7 +72,7 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, erfunc LoadPetals(frontend string) (ret []*Petal) {ret = []*Petal{}- if !Conf.Bazaar.Petal {+ if Conf.Bazaar.PetalDisabled {return}