An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/8337
Vanessa07b0ccbabed6
diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex ddc8b8041a..f67cf92acb 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -398,6 +398,7 @@ const newTab = (options: IOpenFileOptions) => {title: options.custom.title,callback(tab) {tab.addModel(options.custom.fn({+ app: options.app,tab,data: options.custom.data}));diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 0abd8079ba..ec45843c65 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -323,7 +323,11 @@ declare interface IOpenFileOptions {title: string,icon: string,data?: any- fn?: (options: { tab: import("../layout/Tab").Tab, data: any }) => import("../layout/Model").Model,+ fn?: (options: {+ tab: import("../layout/Tab").Tab,+ data: any,+ app: import("../index").App+ }) => import("../layout/Model").Model,}assetPath?: string, // asset 必填fileName?: string, // file 必填