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/7566
Liang Ding20589471aa40
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.tsindex 85e5b38667..5dcf74ced0 100644--- a/app/src/ai/actions.ts+++ b/app/src/ai/actions.ts@@ -7,6 +7,7 @@ import {isMobile} from "../util/functions";export const fillContent = (protyle:IProtyle, data:string, elements:Element[]) => {setLastNodeRange(elements[elements.length - 1], protyle.toolbar.range);+ protyle.toolbar.range.collapse(true);insertHTML(data, protyle, true, true);}diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex dab55537f9..999fc38d8c 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -435,7 +435,6 @@ export class Gutter {return true;}});- AIActions(selectsElement, protyle);if (!isList && !protyle.disabled) {const turnIntoSubmenu: IMenu[] = [];if (isContinue) {@@ -571,6 +570,7 @@ export class Gutter {}).element);}}+ AIActions(selectsElement, protyle);const copyMenu: IMenu[] = [{label: window.siyuan.languages.copy,accelerator: "⌘C",@@ -738,7 +738,6 @@ export class Gutter {hideElements(["select"], protyle);nodeElement.classList.add("protyle-wysiwyg--select");countBlockWord([id], protyle.block.rootID);- AIActions([nodeElement], protyle);// "heading1-6", "list", "ordered-list", "check", "quote", "code", "table", "line", "math", "paragraph"if (type === "NodeParagraph" && !protyle.disabled) {turnIntoSubmenu.push(this.turnsIntoOne({@@ -978,6 +977,7 @@ export class Gutter {submenu: turnIntoSubmenu}).element);}+ AIActions([nodeElement], protyle);const copyMenu = (copySubMenu(id, true, nodeElement) as IMenu[]).concat([{label: window.siyuan.languages.copy,accelerator: "⌘C",