Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

expose to kernel api (#12767)

sommermorgentraume84d05965f84
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 2ce77f753e..4fd55ab9f8 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -16,7 +16,7 @@ import {Setting} from "./Setting";
import {Menu} from "./Menu";
import {Protyle} from "../protyle";
import {openMobileFileById} from "../mobile/editor";
-import {lockScreen} from "../dialog/processSystem";
+import {lockScreen, exitSiYuan} from "../dialog/processSystem";
import {Model} from "../layout/Model";
let openTab;
@@ -175,6 +175,7 @@ export const API = {
getFrontend,
getBackend,
lockScreen,
+ exitSiYuan,
openMobileFileById,
openTab,
openWindow,