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/8341 2
Vanessa157b2c7540ba
diff --git a/app/src/index.ts b/app/src/index.tsindex 79c0ffe15e..9d0f540e89 100644--- a/app/src/index.ts+++ b/app/src/index.ts@@ -41,7 +41,6 @@ export class App {addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");addBaseURL();- loadPlugins(this);window.siyuan = {transactions: [],reqIds: {},@@ -148,7 +147,7 @@ export class App {}),};- fetchPost("/api/system/getConf", {}, response => {+ fetchPost("/api/system/getConf", {}, async (response) => {window.siyuan.config = response.data.conf;// 历史数据兼容,202306后可删除if (window.siyuan.config.uiLayout.left && !window.siyuan.config.uiLayout.left.data) {@@ -165,6 +164,7 @@ export class App {data: response.data.conf.uiLayout.bottom};}+ await loadPlugins(this);getLocalStorage(() => {fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {window.siyuan.languages = lauguages;diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex db4e5b4f2b..9be25bf8b3 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -34,7 +34,6 @@ class App {addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");addBaseURL();- loadPlugins(this);window.siyuan = {notebooks: [],transactions: [],@@ -61,9 +60,10 @@ class App {window.siyuan.menus.menu.remove();}});- fetchPost("/api/system/getConf", {}, confResponse => {+ fetchPost("/api/system/getConf", {}, async (confResponse) => {confResponse.data.conf.keymap = Constants.SIYUAN_KEYMAP;window.siyuan.config = confResponse.data.conf;+ await loadPlugins(this);getLocalStorage(() => {fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {window.siyuan.languages = lauguages;diff --git a/app/src/window/index.ts b/app/src/window/index.tsindex b2123ece1a..79216a103b 100644--- a/app/src/window/index.ts+++ b/app/src/window/index.ts@@ -30,7 +30,6 @@ class App {addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");addBaseURL();- loadPlugins(this);window.siyuan = {transactions: [],reqIds: {},@@ -128,8 +127,9 @@ class App {}}),};- fetchPost("/api/system/getConf", {}, response => {+ fetchPost("/api/system/getConf", {}, async (response) => {window.siyuan.config = response.data.conf;+ await loadPlugins(this);getLocalStorage(() => {fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {window.siyuan.languages = lauguages;