An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa4ca0c7ed532f
diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.tsindex 0bf4575fc0..747a8dc7a4 100644--- a/app/src/protyle/upload/index.ts+++ b/app/src/protyle/upload/index.ts@@ -106,7 +106,7 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {range.collapse(false);}// https://github.com/siyuan-note/siyuan/issues/7624- const nodeElement = hasClosestBlock(range.startContainer)+ const nodeElement = hasClosestBlock(range.startContainer);if (nodeElement) {if (nodeElement.classList.contains("table")) {insertBlock = false;diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex d0c5b6f524..361c12f65f 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -1121,24 +1121,24 @@ const renderNextSearchMark = (options: {edit: Protyle,target: Element,}) => {- let matchElement+ let matchElement;const allMatchElements = Array.from(options.edit.protyle.wysiwyg.element.querySelectorAll(`div[data-node-id="${options.id}"] span[data-type~="search-mark"]`));allMatchElements.find((item, itemIndex) => {if (item.classList.contains("search-mark--hl")) {- item.classList.remove("search-mark--hl")- matchElement = allMatchElements[itemIndex + 1]+ item.classList.remove("search-mark--hl");+ matchElement = allMatchElements[itemIndex + 1];return;}- })+ });if (!matchElement) {- matchElement = allMatchElements[0]+ matchElement = allMatchElements[0];}if (matchElement) {matchElement.classList.add("search-mark--hl");const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();options.edit.protyle.contentElement.scrollTop = options.edit.protyle.contentElement.scrollTop + matchElement.getBoundingClientRect().top - contentRect.top - contentRect.height / 2;}-}+};const getArticle = (options: {id: string,k: string,diff --git a/app/src/window/index.ts b/app/src/window/index.tsindex c05b6ed5e8..3a9897216b 100644--- a/app/src/window/index.ts+++ b/app/src/window/index.ts@@ -9,7 +9,6 @@ import {fetchGet, fetchPost} from "../util/fetch";import {addBaseURL, setNoteBook} from "../util/pathName";import {openFileById} from "../editor/util";import {- downloadProgress,processSync, progressBackgroundTask,progressLoading,progressStatus,