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: https://github.com/siyuan-note/siyuan/issues/9943
Vanessa2232cec2bf72
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex 2126d47a33..01fe29b70f 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -65,7 +65,6 @@ export class Plugin {}) {this.app = options.app;this.i18n = options.i18n;- this.name = options.name;this.displayName = options.displayName;this.eventBus = new EventBus(options.name);}diff --git a/app/src/plugin/loader.ts b/app/src/plugin/loader.tsindex a63b19befe..4b9104d55e 100644--- a/app/src/plugin/loader.ts+++ b/app/src/plugin/loader.ts@@ -64,6 +64,11 @@ const loadPluginJS = async (app: App, item: IPluginData) => {name: item.name,i18n: item.i18n});+ // https://github.com/siyuan-note/siyuan/issues/9943+ Object.defineProperty(plugin, "name", {+ value: item.name,+ writable: false,+ });app.plugins.push(plugin);try {await plugin.onload();