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/petal/pull/48
Vanessa65555e0fb2fb
diff --git a/app/src/plugin/platformUtils.ts b/app/src/plugin/platformUtils.tsindex 416f3876f0..c756604ea2 100644--- a/app/src/plugin/platformUtils.ts+++ b/app/src/plugin/platformUtils.ts@@ -20,12 +20,16 @@ export const updateHotkeyTip = compatibility.updateHotkeyTip;export const getLocalStorage = compatibility.getLocalStorage;export const setStorageVal = compatibility.setStorageVal;+/**+ * @param {string} [options.timeoutType="defalut"] 仅在 Windows 和 Linux 有效,"default" 表示使用默认的超时机制,"never" 表示通知将一直显示,直到用户手动关闭它。+ * @returns 通知 id+ */export const sendNotification = (options: {channel?: string,title?: string,body?: string,delayInSeconds?: number,- timeoutType?: "default" | "never" // 该参数仅在桌面端有效+ timeoutType?: "default" | "never"}): Promise<number> => {return new Promise((resolve) => {const title = options.title || "";