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: fix https://github.com/siyuan-note/siyuan/issues/8666
Vanessabbf86aeeba3e
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 06c08368d4..90b7dd100f 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -29,6 +29,7 @@ import {deleteFile} from "../../editor/deleteFile";import {Menu} from "../../plugin/Menu";import {getNoContainerElement} from "../wysiwyg/getBlock";import {openTitleMenu} from "../header/openTitleMenu";+import {emitOpenMenu} from "../../plugin/EventBus";export class Breadcrumb {public element: HTMLElement;@@ -426,6 +427,19 @@ export class Breadcrumb {submenu: editSubmenu}).element);window.siyuan.menus.menu.append(exportMd(protyle.block.showAll ? protyle.block.id : protyle.block.rootID));++ if (protyle?.app?.plugins) {+ emitOpenMenu({+ plugins: protyle.app.plugins,+ type: "open-menu-breadcrumbmore",+ detail: {+ protyle,+ data: response.data,+ },+ separatorPosition: "top",+ });+ }+window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);window.siyuan.menus.menu.append(new MenuItem({iconHTML: Constants.ZWSP,diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 4b3384050d..71a9080c2d 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -36,7 +36,7 @@ type TEventBus = "ws-main" |"click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon" |"open-noneditableblock" |"open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |- "open-menu-av" | "open-menu-content" |+ "open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" |"loaded-protyle"type TAVCol = "text" | "date" | "number" | "relation" | "rollup" | "select" | "block" | "mSelect"