Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15415

Vanessae7c90f4709f0
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts
index 36ff5e66b5..f17eb98016 100644
--- a/app/src/plugin/API.ts
+++ b/app/src/plugin/API.ts
@@ -19,7 +19,7 @@ import {Protyle} from "../protyle";
import {openMobileFileById} from "../mobile/editor";
import {lockScreen, exitSiYuan} from "../dialog/processSystem";
import {Model} from "../layout/Model";
-import {getDockByType} from "../layout/tabUtil";
+import {getActiveTab, getDockByType} from "../layout/tabUtil";
/// #if !MOBILE
import {getAllModels} from "../layout/getAll";
/// #endif
@@ -226,6 +226,7 @@ export const API = {
getModelByDockType,
openTab,
openWindow,
+ getActiveTab,
openMobileFileById,
lockScreen,
exitSiYuan,