An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Narrow plugin i18n and IBlock.ial to Record<string, string>
Danieldf520f35b2bf
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex a29bccd18d..1fc72bb9f0 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -28,7 +28,7 @@ import {registerAction} from "../layout/dock/agent/frontendActions";export class Plugin {private app: App;- public i18n: IObject;+ public i18n: Record<string, string>;public eventBus: EventBus;public kernel: Kernel;public data: any = {};@@ -77,7 +77,7 @@ export class Plugin {app: App,name: string,displayName: string,- i18n: IObject+ i18n: Record<string, string>}) {this.app = options.app;this.i18n = options.i18n;diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 41d7942983..07df46746d 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -962,7 +962,7 @@ export class Toolbar {title = window.siyuan.languages.memo;}const isPin = this.subElement.querySelector('[data-type="pin"]')?.getAttribute("aria-label") === window.siyuan.languages.unpin;- const pinData: IObject = {};+ const pinData: Record<string, string> = {};if (isPin) {const textElement = this.subElement.querySelector(".b3-text-field") as HTMLTextAreaElement;pinData.styleH = textElement.style.height;diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex f9cf827351..c7ee1825e1 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -719,7 +719,7 @@ interface IPluginData {name: string,js: string,css: string,- i18n: IObject+ i18n: Record<string, string>}interface IPluginDockTab {@@ -883,7 +883,7 @@ interface IBlock {refs?: IBlock[];children?: IBlock[]length?: number- ial: IObject+ ial: Record<string, string>refCount?: number}