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/13579
Vanessa75b4b357e786
diff --git a/app/src/layout/getAll.ts b/app/src/layout/getAll.tsindex 3851a07993..04dcdcf6cf 100644--- a/app/src/layout/getAll.ts+++ b/app/src/layout/getAll.ts@@ -60,6 +60,7 @@ export const getAllEditor = () => {};export const getAllModels = () => {+ /// #if !MOBILEconst models: IModels = {editor: [],graph: [],@@ -109,6 +110,7 @@ export const getAllModels = () => {getTabs(window.siyuan.layout.layout);}return models;+ /// #endif};export const getAllWnds = (layout: Layout, wnds: Wnd[]) => {diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex ea73d57182..bf5eb9730d 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -20,7 +20,7 @@ import {openMobileFileById} from "../mobile/editor";import {lockScreen, exitSiYuan} from "../dialog/processSystem";import {Model} from "../layout/Model";import {getDockByType} from "../layout/tabUtil";-import {getAllEditor} from "../layout/getAll";+import {getAllEditor, getAllModels} from "../layout/getAll";let openTab;let openWindow;@@ -198,5 +198,6 @@ export const API = {Menu,Setting,getAllEditor,+ getAllModels,platformUtils};