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/10444
Vanessa892d166acf34
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex bf18c13d73..06ea1dd2e5 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -46,13 +46,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => {filter: ["ai chat"],value: Constants.ZWSP + 5,html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',- }];- allList.push({+ },{filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,- });- [{+ }, {filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"],value: Constants.ZWSP + 4,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span><span class="b3-menu__accelerator">${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</span></div>`,@@ -248,13 +246,10 @@ export const hintSlash = (key: string, protyle: IProtyle) => {filter: ["移除样式", "yichuyangshi", "ycys", "remove style"],value: `style${Constants.ZWSP}`,html: `<div class="b3-list-item__first"><div class="color__square">A</div><span class="b3-list-item__text">${window.siyuan.languages.clearFontStyle}</span></div>`,- }].forEach(item => {- allList.push(item);- });- allList.push({+ },{value: "",html: "separator",- });+ }];let hasPlugin = false;protyle.app.plugins.forEach((plugin) => {plugin.protyleSlash.forEach(slash => {diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 170a322d57..c8651b343b 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -784,7 +784,9 @@ ${genHintItemHTML(item)}} else if (value === "---") {focusBlock(nodeElement);} else if (nodeElement.classList.contains("av")) {- avRender(nodeElement, protyle);+ avRender(nodeElement, protyle, () => {+ focusBlock(nodeElement);+ });} else {focusByWbr(nodeElement, range);}