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: Remove petal id
Liang Dingfe9d83df1365
diff --git a/kernel/model/plugin.go b/kernel/model/plugin.goindex fca4d34829..f8d421d3a4 100644--- a/kernel/model/plugin.go+++ b/kernel/model/plugin.go@@ -17,8 +17,6 @@package modelimport (- "crypto/sha1"- "fmt""os""path/filepath""sync"@@ -32,7 +30,6 @@ import (// Petal represents a plugin's management status.type Petal struct {- ID string `json:"id"` // Plugin IDName string `json:"name"` // Plugin nameEnabled bool `json:"enabled"` // Whether enabled@@ -60,7 +57,6 @@ func SetPetalEnabled(name string, enabled bool) {petal := getPetalByName(plugin.Name, petals)if nil == petal {petal = &Petal{- ID: hash(plugin.Name),Name: plugin.Name,Enabled: enabled,}@@ -220,7 +216,3 @@ func getPetalByName(name string, petals []*Petal) (ret *Petal) {}return}--func hash(str string) string {- return fmt.Sprintf("%x", sha1.Sum([]byte(str)))-}