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/17057
Vanessa94f33d671117
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex 43799ebd9c..6bfa208abf 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -32,6 +32,7 @@ import {saveScroll} from "../protyle/scroll/saveScroll";import {hasClosestByClassName} from "../protyle/util/hasClosest";import {Files} from "../layout/dock/Files";import {ProtyleMethod} from "./ProtyleMethod";+import {openEmojiPanel} from "../emoji";let openTab;let openWindow;@@ -305,6 +306,19 @@ export const expandDocTree = async (options: {file.getLeaf(liElement, notebookId);};+const openEmoji = (options: {+ position: IPosition,+ selectedCB?: (emoji: string) => void,+ dynamicIconURL?: string+}) => {+ let dynamicImgElement: HTMLImageElement;+ if (options.dynamicIconURL) {+ dynamicImgElement = document.createElement("img");+ dynamicImgElement.src = options.dynamicIconURL;+ }+ openEmojiPanel("", "av", options.position, options.selectedCB, dynamicImgElement);+};+export const API = {adaptHotkey: updateHotkeyTip,confirm: confirmDialog,@@ -339,5 +353,6 @@ export const API = {openAttributePanel,saveLayout,globalCommand,- expandDocTree+ expandDocTree,+ openEmoji};