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/7976
Daniel7d4d79f292f1
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.htmlindex 7505e7bf61..cf75962c28 100644--- a/app/appearance/icons/index.html+++ b/app/appearance/icons/index.html@@ -28,6 +28,24 @@<body><h2>SiYuan</h2><div class="fn__clear">+ <div>+ <svg>+ <use xlink:href="#iconEnterBack"></use>+ </svg>+ iconEnterBack+ </div>+ <div>+ <svg>+ <use xlink:href="#iconEnter"></use>+ </svg>+ iconEnter+ </div>+ <div>+ <svg>+ <use xlink:href="#iconRecentDocs"></use>+ </svg>+ iconRecentDocs+ </div><div><svg><use xlink:href="#iconOutline"></use>diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.jsindex 1a8649ebdd..f6e1e2806e 100644--- a/app/appearance/icons/material/icon.js+++ b/app/appearance/icons/material/icon.js@@ -1,5 +1,11 @@document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;"><defs>+ <symbol id="iconEnterBack" viewBox="30 -930 900 900">+ <path d="M450-514.54v152.23q0 12.75 8.63 21.38 8.63 8.62 21.38 8.62 12.76 0 21.57-8.73 8.8-8.74 8.8-21.65v-151.85l53.31 53.31q8.31 8.31 20.89 8.11 12.57-.19 20.88-8.5 8.31-8.3 8.31-20.94t-8.31-20.82l-99.77-99.39q-10.84-10.84-25.31-10.84-14.46 0-25.3 10.84L355.31-503q-8.31 8.31-8.31 20.69 0 12.39 8.31 20.69 8.31 8.31 20.95 8.31 12.64 0 20.82-8.31L450-514.54ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/>+ </symbol>+ <symbol id="iconEnter" viewBox="30 -930 900 900">+ <path d="m450-445.84-53.31-53.31q-8.31-8.31-20.69-8.31t-20.69 8.31q-8.31 8.3-8.31 20.94 0 12.65 8.31 20.82l99.77 99.77q10.84 10.85 25.3 10.85 14.47 0 25.31-10.85l99.77-99.77q8.31-8.17 8.31-20.82 0-12.64-8.31-20.94-8.31-8.31-20.95-8.31-12.64 0-20.82 8.31l-53.31 53.31v-152.24q0-12.75-8.62-21.37-8.63-8.63-21.39-8.63-12.75 0-21.56 8.63-8.81 8.62-8.81 21.37v152.24ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/>+ </symbol><symbol id="iconRecentDocs" viewBox="30 -930 900 900"><path d="M847.46-112.54Q900-165.08 900-240q0-74.92-52.54-127.46Q794.92-420 720-420q-74.92 0-127.46 52.54Q540-314.92 540-240q0 74.92 52.54 127.46Q645.08-60 720-60q74.92 0 127.46-52.54ZM737.69-247.23l60.77 60.77q5.62 5.61 5.62 12.46 0 6.85-5.62 12.46-5.61 5.62-12.65 5.42-7.04-.19-12.27-5.42l-60.39-60.38q-5.61-5.62-8.23-12.16-2.61-6.54-2.61-13.77V-340q0-7.23 5.23-12.46t12.46-5.23q7.23 0 12.46 5.23t5.23 12.46v92.77ZM172.31-180Q142-180 121-201q-21-21-21-51.31v-455.38Q100-738 121-759q21-21 51.31-21h615.38Q818-780 839-759q21 21 21 51.31v209.61q0 12.77-8.62 21.39-8.61 8.61-21.38 8.61t-21.38-8.3q-8.62-8.31-8.62-21.08v-81.77H571.54q-15.46 0-25.81-10.35-10.34-10.34-10.34-25.81V-720H172.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v455.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85H430q12.77 0 21.39 8.62Q460-222.77 460-210t-8.61 21.38Q442.77-180 430-180H172.31ZM160-252.31V-720v480V-252.31Z"/></symbol>diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 1ca993cf85..a8f4d4e68e 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -1928,6 +1928,7 @@ export class Gutter {if (!protyle.options.backlinkData) {window.siyuan.menus.menu.append(new MenuItem({id: "enter",+ icon: "iconEnter",accelerator: `${window.siyuan.config.keymap.general.enter.custom ? updateHotkeyTip(window.siyuan.config.keymap.general.enter.custom) + "/" : ""}${updateHotkeyAfterTip("⌘" + window.siyuan.languages.click)}`,label: window.siyuan.languages.enter,click: () => {@@ -1936,6 +1937,7 @@ export class Gutter {}).element);window.siyuan.menus.menu.append(new MenuItem({id: "enterBack",+ icon: "iconEnterBack",accelerator: window.siyuan.config.keymap.general.enterBack.custom,label: window.siyuan.languages.enterBack,click: () => {