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:
Vanessacbc71dadb589
diff --git a/app/src/layout/dock/AgentChat.ts b/app/src/layout/dock/AgentChat.tsindex b1170af758..68018fba13 100644--- a/app/src/layout/dock/AgentChat.ts+++ b/app/src/layout/dock/AgentChat.ts@@ -1205,7 +1205,7 @@ export class AgentChat extends Model {private appendThinking(reasoning: string) {const L = window.siyuan.languages;if (this.currentThinkingText) {- let doneText = this.currentThinkingText;+ const doneText = this.currentThinkingText;this.currentThinkingText = doneText;const tc = this.currentToolCalls.map(function (t) {return {name: t.name, result: t.result};@@ -1220,7 +1220,7 @@ export class AgentChat extends Model {this.currentThinkingText = "";this.currentThinkingReasoning = reasoning;this.currentThinkingReasoningContent = "";- let text = L.agentThinking || "Thinking...";+ const text = L.agentThinking || "Thinking...";this.currentThinkingText = text;@@ -2063,7 +2063,7 @@ export class AgentChat extends Model {private finishActiveThinking() {const L = window.siyuan.languages;const dur = this.requestStartTime ? ((Date.now() - this.requestStartTime) / 1000).toFixed(1) + "s" : "";- let doneText = L.agentThinkingDoneTime ? L.agentThinkingDoneTime.replace("%s", dur) : (L.agentThinking || "Thinking...");+ const doneText = L.agentThinkingDoneTime ? L.agentThinkingDoneTime.replace("%s", dur) : (L.agentThinking || "Thinking...");this.currentThinkingText = doneText || this.currentThinkingText;const items = this.messagesContainer.querySelectorAll(diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex ca0cd3f9ce..6263b57a4d 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -2191,7 +2191,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:const theadElement = nodeElement.querySelector("thead");while (prueTrElement !== theadElement.lastElementChild) {theadElement.lastElementChild.querySelectorAll("th").forEach(item => {- const td = document.createElement('td');+ const td = document.createElement("td");Array.from(item.attributes).forEach(attr => {td.setAttribute(attr.name, attr.value);});diff --git a/app/src/protyle/render/av/gallery/render.ts b/app/src/protyle/render/av/gallery/render.tsindex 1479c8f7be..757cd24c92 100644--- a/app/src/protyle/render/av/gallery/render.ts+++ b/app/src/protyle/render/av/gallery/render.ts@@ -1,16 +1,11 @@import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../../../util/hasClosest";import {Constants} from "../../../../constants";import {fetchSyncPost} from "../../../../util/fetch";-import {escapeAttr} from "../../../../util/escape";-import {unicode2Emoji} from "../../../../emoji";-import {cellValueIsEmpty, renderCell} from "../cell";import {focusBlock} from "../../../util/selection";import {electronUndo} from "../../../undo";import {addClearButton} from "../../../../util/addClearButton";import {avRender, genTabHeaderHTML, getGroupTitleHTML, updateSearch} from "../render";import {processRender} from "../../../util/processCode";-import {getColIconByType, getColNameByType} from "../col";-import {getCompressURL} from "../../../../util/image";import {getPageSize} from "../groups";/// #if MOBILEimport {activeBlur} from "../../../../mobile/util/keyboardToolbar";diff --git a/app/src/util/reloadSync.ts b/app/src/util/reloadSync.tsindex 8d829baed5..1eab8f1609 100644--- a/app/src/util/reloadSync.ts+++ b/app/src/util/reloadSync.ts@@ -1,7 +1,6 @@import type {App} from "../index";import {hideMessage} from "../dialog/message";import {hideElements} from "../protyle/ui/hideElements";-import {reloadProtyle} from "../protyle/util/reload";import {setEmpty} from "../mobile/util/setEmpty";import {fetchPost} from "./fetch";import {Constants} from "../constants";