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/15516
Vanessaec15f672c38c
diff --git a/app/src/protyle/util/setEditMode.ts b/app/src/protyle/util/setEditMode.tsindex 4358355330..ad4792a7c1 100644--- a/app/src/protyle/util/setEditMode.ts+++ b/app/src/protyle/util/setEditMode.ts@@ -38,4 +38,7 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {resize(protyle);}hideElements(["gutterOnly", "toolbar", "select", "hint", "util"], protyle);+ protyle.app.plugins.forEach(item => {+ item.eventBus.emit("switch-protyle-mode", {protyle});+ });};diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 9d15701b99..d5bd83008e 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -81,7 +81,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |"paste" |"input-search" |"loaded-protyle-dynamic" | "loaded-protyle-static" |- "switch-protyle" |+ "switch-protyle" | "switch-protyle-mode" |"destroy-protyle" |"lock-screen" |"mobile-keyboard-show" | "mobile-keyboard-hide"