Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:rotating_light:

Vanessa86795a96a693
diff --git a/app/src/layout/dock/AgentChat.ts b/app/src/layout/dock/AgentChat.ts
index 737d08eca5..995ac2bd7f 100644
--- a/app/src/layout/dock/AgentChat.ts
+++ b/app/src/layout/dock/AgentChat.ts
@@ -1265,7 +1265,7 @@ export class AgentChat extends Model {
}
if (step.reasoningContent) {
detail += '<div class="agent-chat__thinking-round">Reasoning:</div>';
- detail += '<div>' + this.escapeHtml(step.reasoningContent) + "</div>";
+ detail += "<div>" + this.escapeHtml(step.reasoningContent) + "</div>";
}
const el = document.createElement("div");
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index 15da1d387a..ac21b2230f 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -17,7 +17,6 @@ import * as dayjs from "dayjs";
/// #if !MOBILE
import {openFileById} from "../../editor/util";
/// #endif
-import {setTitle} from "../../dialog/processSystem";
import {getDocDisplayName} from "../../util/pathName";
import {getContenteditableElement, getNoContainerElement} from "../wysiwyg/getBlock";
import {commonHotkey} from "../wysiwyg/commonHotkey";
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index 981b2f5839..72a32f3556 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -9,7 +9,7 @@ import {bgFade, scrollCenter} from "../../util/highlightById";
import {pushBack} from "../../util/backForward";
/// #endif
import {focusBlock, focusByOffset} from "./selection";
-import {hasClosestByAttribute, hasClosestByClassName} from "./hasClosest";
+import {hasClosestByAttribute} from "./hasClosest";
import {preventScroll} from "../scroll/preventScroll";
import {removeLoading} from "../ui/initUI";
import {isMobile} from "../../util/functions";
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 611416ea98..c7911cdd9f 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -8,7 +8,7 @@ import {getContenteditableElement, hasNextSibling, hasPreviousSibling, isNotEdit
import {genEmptyBlock} from "../../block/util";
import {blockRender} from "../render/blockRender";
import {hideElements} from "../ui/hideElements";
-import {hasClosestByAttribute, hasClosestByClassName, isInEmbedBlock} from "../util/hasClosest";
+import {hasClosestByAttribute, hasClosestByClassName} from "../util/hasClosest";
import {fetchPost, fetchSyncPost} from "../../util/fetch";
import {headingTurnIntoList, turnIntoTaskList} from "./turnIntoList";
import {updateAVName} from "../render/av/action";
@@ -214,7 +214,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
// 使用 md 闭合后继续输入应为普通文本, 转义不需要添加 zwsp
html = html.replace("</span><wbr>", "</span>" + Constants.ZWSP + "<wbr>");
}
- blockElement.insertAdjacentHTML('afterend', html);
+ blockElement.insertAdjacentHTML("afterend", html);
blockElement = blockElement.nextElementSibling as HTMLElement;
blockElement.previousElementSibling.remove();
// https://github.com/siyuan-note/siyuan/issues/8972