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
Danielb12f402b46fb
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.htmlindex de30afa813..4de249a9db 100644--- a/app/appearance/icons/index.html+++ b/app/appearance/icons/index.html@@ -28,6 +28,12 @@<body><h2>SiYuan</h2><div class="fn__clear">+ <div>+ <svg>+ <use xlink:href="#iconExpandLevel"></use>+ </svg>+ iconExpandLevel+ </div><div><svg><use xlink:href="#iconWidth"></use>diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.jsindex 20c7194ba5..f8cbddd152 100644--- a/app/appearance/icons/material/icon.js+++ b/app/appearance/icons/material/icon.js@@ -1,5 +1,8 @@document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;"><defs>+ <symbol id="iconExpandLevel" viewBox="30 -930 900 900">+ <path d="M170-302.31q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.38-8.63 8.61-21.38 8.61H170ZM170-450q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q157.25-510 170-510h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170Zm0-147.69q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.38 8.62-8.61 21.37-8.61h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170ZM787.69-300q-13.73 0-23.02-9.18t-9.29-22.74q0-13.9 9.29-23.3t23.02-9.4q13.73 0 23.02 9.4t9.29 23.3q0 13.56-9.29 22.74-9.29 9.18-23.02 9.18Zm0-147.31q-13.73 0-23.02-9.19t-9.29-23.5q0-13.57 9.29-22.74 9.29-9.18 23.02-9.18t23.02 9.18Q820-493.57 820-480q0 14.31-9.29 23.5t-23.02 9.19Zm0-148.07q-13.73 0-23.02-9.18t-9.29-22.75q0-13.89 9.29-23.29 9.29-9.4 23.02-9.4t23.02 9.4q9.29 9.4 9.29 23.29 0 13.57-9.29 22.75t-23.02 9.18Z"/>+ </symbol><symbol id="iconWidth" viewBox="30 -930 900 900"><path d="M140-172.31v-615.38q0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92v615.38q0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39-9.39-9.38-9.39-22.92Zm615.38 0v-615.38q0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92v615.38q0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39-9.39-9.38-9.39-22.92Zm-298.3-284.77q-9.39-9.38-9.39-22.92 0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92 0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39Zm-153.85 0q-9.38-9.38-9.38-22.92 0-13.54 9.38-22.92 9.39-9.39 22.92-9.39 13.54 0 22.93 9.39 9.38 9.38 9.38 22.92 0 13.54-9.38 22.92-9.39 9.39-22.93 9.39-13.53 0-22.92-9.39Zm307.69 0q-9.38-9.38-9.38-22.92 0-13.54 9.38-22.92 9.39-9.39 22.93-9.39 13.53 0 22.92 9.39 9.38 9.38 9.38 22.92 0 13.54-9.38 22.92-9.39 9.39-22.92 9.39-13.54 0-22.93-9.39Z"/></symbol>@@ -422,7 +425,7 @@ document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="p<path d="m610-475-27-27q-9-9-21-8.5t-21 9.5q-9 9-9 21t9 21l71 71q12 12 28 12t28-12l71-71q9-9 9-21t-9-21q-9-9-21.5-9t-21.5 9l-26 26v-95q0-13-8.5-21.5T640-600q-13 0-21.5 8.5T610-570v95ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Zm120-300h40v90q0 13 8.5 21.5T350-420q13 0 21.5-8.5T380-450v-90h40v150q0 13 8.5 21.5T450-360q13 0 21.5-8.5T480-390v-170q0-17-11.5-28.5T440-600H260q-17 0-28.5 11.5T220-560v170q0 13 8.5 21.5T250-360q13 0 21.5-8.5T280-390v-150Z"/></symbol><symbol id="iconLanguage" viewBox="30 -930 900 900">- <path d="M325-111.5q-73-31.5-127.5-86t-86-127.5Q80-398 80-480.5t31.5-155q31.5-72.5 86-127t127.5-86Q398-880 480.5-880t155 31.5q72.5 31.5 127 86t86 127Q880-563 880-480.5T848.5-325q-31.5 73-86 127.5t-127 86Q563-80 480.5-80T325-111.5ZM480-162q26-36 45-75t31-83H404q12 44 31 83t45 75Zm-104-16q-18-33-31.5-68.5T322-320H204q29 50 72.5 87t99.5 55Zm208 0q56-18 99.5-55t72.5-87H638q-9 38-22.5 73.5T584-178ZM170-400h136q-3-20-4.5-39.5T300-480q0-21 1.5-40.5T306-560H170q-5 20-7.5 39.5T160-480q0 21 2.5 40.5T170-400Zm216 0h188q3-20 4.5-39.5T580-480q0-21-1.5-40.5T574-560H386q-3 20-4.5 39.5T380-480q0 21 1.5 40.5T386-400Zm268 0h136q5-20 7.5-39.5T800-480q0-21-2.5-40.5T790-560H654q3 20 4.5 39.5T660-480q0 21-1.5 40.5T654-400Zm-16-240h118q-29-50-72.5-87T584-782q18 33 31.5 68.5T638-640Zm-234 0h152q-12-44-31-83t-45-75q-26 36-45 75t-31 83Zm-200 0h118q9-38 22.5-73.5T376-782q-56 18-99.5 55T204-640Z"/>+ <path d="M332.5-129.96q-69.35-29.96-120.96-81.58-51.62-51.61-81.58-120.96T100-480.31q0-78.46 29.96-147.5t81.58-120.65q51.61-51.62 120.96-81.58T480.31-860q78.46 0 147.5 29.96t120.65 81.58q51.62 51.61 81.58 120.65T860-480.31q0 78.46-29.96 147.81-29.96 69.35-81.58 120.96-51.61 51.62-120.65 81.58T480.31-100q-78.46 0-147.81-29.96ZM480-160.85q30.62-40.61 51.54-81.92 20.92-41.31 34.08-90.31H394.38q13.93 50.54 34.47 91.85 20.53 41.31 51.15 80.38Zm-77.46-11q-23-33-41.31-75.03-18.31-42.04-28.46-86.2H197.08q31.69 62.31 85 104.7 53.31 42.38 120.46 56.53Zm154.92 0q67.15-14.15 120.46-56.53 53.31-42.39 85-104.7H627.23q-12.08 44.54-30.39 86.58-18.3 42.04-39.38 74.65ZM171.92-393.08h148.7q-3.77-22.3-5.47-43.73-1.69-21.42-1.69-43.19 0-21.77 1.69-43.19 1.7-21.43 5.47-43.73h-148.7q-5.77 20.38-8.84 42.38-3.08 22-3.08 44.54t3.08 44.54q3.07 22 8.84 42.38Zm208.69 0h198.78q3.76-22.3 5.46-43.34 1.69-21.04 1.69-43.58t-1.69-43.58q-1.7-21.04-5.46-43.34H380.61q-3.76 22.3-5.46 43.34-1.69 21.04-1.69 43.58t1.69 43.58q1.7 21.04 5.46 43.34Zm258.77 0h148.7q5.77-20.38 8.84-42.38 3.08-22 3.08-44.54t-3.08-44.54q-3.07-22-8.84-42.38h-148.7q3.77 22.3 5.47 43.73 1.69 21.42 1.69 43.19 0 21.77-1.69 43.19-1.7 21.43-5.47 43.73Zm-12.15-233.84h135.69Q730.85-690 678.5-731.62q-52.35-41.61-121.04-56.92 23 34.92 40.92 76.39 17.93 41.46 28.85 85.23Zm-232.85 0h171.24q-13.93-50.16-35.04-92.43-21.12-42.27-50.58-79.8-29.46 37.53-50.58 79.8-21.11 42.27-35.04 92.43Zm-197.3 0h135.69q10.92-43.77 28.85-85.23 17.92-41.47 40.92-76.39-69.08 15.31-121.23 57.12-52.16 41.8-84.23 104.5Z"/></symbol><symbol id="iconBookmarks" viewBox="30 -930 900 900"><path d="m400-200-182 91q-20 10-39-1.5T160-145v-495q0-33 23.5-56.5T240-720h320q33 0 56.5 23.5T640-640v495q0 23-19 34.5t-39 1.5l-182-91Zm-160-1 122-66q18-10 38-10t38 10l122 66v-439H240v439Zm491.5-50.5Q720-263 720-280v-520H320q-17 0-28.5-11.5T280-840q0-17 11.5-28.5T320-880h400q33 0 56.5 23.5T800-800v520q0 17-11.5 28.5T760-240q-17 0-28.5-11.5ZM240-640h320-320Z"/>@@ -644,7 +647,7 @@ document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="p<path d="M212.31-140Q182-140 161-161q-21-21-21-51.31v-535.38Q140-778 161-799q21-21 51.31-21h535.38Q778-820 799-799q21 21 21 51.31v535.38Q820-182 799-161q-21 21-51.31 21H212.31ZM450-371.92H200v159.61q0 5.39 3.46 8.85t8.85 3.46H450v-171.92Zm60 0V-200h237.69q5.39 0 8.85-3.46t3.46-8.85v-159.61H510Zm-60-60v-172.7H200v172.7h250Zm60 0h250v-172.7H510v172.7ZM200-664.61h560v-83.08q0-5.39-3.46-8.85t-8.85-3.46H212.31q-5.39 0-8.85 3.46t-3.46 8.85v83.08Z"/></symbol><symbol id="iconList" viewBox="30 -930 900 900">- <path d="M323.08-597.69q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.38 8.63-8.61 21.38-8.61H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37-8.62 8.62-21.37 8.62H323.08Zm0 147.69q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37 8.63-8.62 21.38-8.62H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-450 790-450H323.08Zm0 147.69q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37 8.63-8.62 21.38-8.62H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.38-8.62 8.61-21.37 8.61H323.08ZM172.31-595.38q-13.73 0-23.02-9.4t-9.29-23.3q0-13.56 9.29-22.74 9.29-9.18 23.02-9.18t23.02 9.18q9.29 9.18 9.29 22.74 0 13.9-9.29 23.3t-23.02 9.4Zm0 147.3q-13.73 0-23.02-9.18Q140-466.43 140-480q0-14.31 9.29-23.5t23.02-9.19q13.73 0 23.02 9.19t9.29 23.5q0 13.57-9.29 22.74-9.29 9.18-23.02 9.18Zm0 148.08q-13.73 0-23.02-9.4T140-332.69q0-13.57 9.29-22.75t23.02-9.18q13.73 0 23.02 9.18t9.29 22.75q0 13.89-9.29 23.29-9.29 9.4-23.02 9.4Z"/>+ <path d="M402.31-210q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37 8.63-8.62 21.38-8.62H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-210 790-210H402.31Zm0-240q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37 8.63-8.62 21.38-8.62H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-450 790-450H402.31Zm0-240q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37 8.63-8.62 21.38-8.62H790q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-690 790-690H402.31ZM206.54-173.46q-27.45 0-46.99-19.55Q140-212.55 140-240q0-27.45 19.55-46.99 19.54-19.55 46.99-19.55 27.45 0 46.99 19.55 19.55 19.54 19.55 46.99 0 27.45-19.55 46.99-19.54 19.55-46.99 19.55Zm0-240q-27.45 0-46.99-19.46Q140-452.39 140-480t19.55-47.08q19.54-19.46 46.99-19.46 27.45 0 46.99 19.46 19.55 19.47 19.55 47.08t-19.55 47.08q-19.54 19.46-46.99 19.46Zm-47.08-259.46Q140-692.39 140-720t19.46-47.08q19.46-19.46 47.08-19.46 27.61 0 47.08 19.46 19.46 19.47 19.46 47.08t-19.46 47.08q-19.47 19.46-47.08 19.46-27.62 0-47.08-19.46Z"/></symbol><symbol id="iconZhihu" viewBox="-3 -3 38 38"><path d="M17.167 17.769s0-2.583-1.25-2.667c-1.25-0.167-5.167 0-5.167 0v-8h5.833s-0.083-2.667-1.167-2.667h-9.5l1.583-4.25s-2.333 0.167-3.25 1.667c-0.833 1.5-3.5 9.167-3.5 9.167s0.917 0.417 2.417-0.75c1.5-1.083 2-3.083 2-3.083l2.75-0.167 0.083 8.083s-4.917-0.083-5.833 0c-1 0.083-1.5 2.667-1.5 2.667h7.417s-0.667 4.583-2.5 7.75c-1.917 3.333-5.583 5.917-5.583 5.917s2.583 1.083 5.167-0.417 4.417-8.083 4.417-8.083l5.917 7.417s0.5-3.5-0.083-4.583c-0.667-1-4.167-5-4.167-5l-1.5 1.333 1.083-4.417 6.333 0.083zM18.667 4.269l-0.083 23.999h2.417l0.833 2.917 4.25-2.917h5.917v-23.999h-13.333zM29.333 25.602h-2.75l-3.5 2.667-0.75-2.667h-0.75v-18.582h7.75v18.582z"></path>diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.tsindex 9d5bf17b7b..ef176f613a 100644--- a/app/src/layout/dock/Outline.ts+++ b/app/src/layout/dock/Outline.ts@@ -111,7 +111,7 @@ export class Outline extends Model {</span><span class="fn__space"></span><span data-type="expandLevel" class="block__icon ariaLabel" data-position="north" aria-label="${window.siyuan.languages.expandLevel}">- <svg><use xlink:href="#iconList"></use></svg>+ <svg><use xlink:href="#iconExpandLevel"></use></svg></span><span class="fn__space"></span><span data-type="expand" class="block__icon ariaLabel" data-position="north" aria-label="${window.siyuan.languages.expandAll}${updateHotkeyAfterTip(window.siyuan.config.keymap.editor.general.expand.custom)}">