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/pull/13547
Vanessa350b1bf51cd5
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex 856a0b65f1..ea73d57182 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -16,7 +16,6 @@ import {Constants} from "../constants";import {Setting} from "./Setting";import {Menu} from "./Menu";import {Protyle} from "../protyle";-import {renderAVAttribute as blockAttrRenderAVAttribute} from "../protyle/render/av/blockAttr";import {openMobileFileById} from "../mobile/editor";import {lockScreen, exitSiYuan} from "../dialog/processSystem";import {Model} from "../layout/Model";@@ -25,7 +24,6 @@ import {getAllEditor} from "../layout/getAll";let openTab;let openWindow;-let renderAVAttribute;/// #if MOBILEopenTab = () => {// TODO: Mobile@@ -33,9 +31,6 @@ openTab = () => {openWindow = () => {// TODO: Mobile};-renderAVAttribute = (element: HTMLElement, id: string, protyle: IProtyle, cb?: (element: HTMLElement) => void) => {- // TODO: Mobile-};/// #elseopenWindow = (options: {position?: IPosition,@@ -171,11 +166,6 @@ openTab = (options: {}};--renderAVAttribute = (element: HTMLElement, id: string, protyle: IProtyle, cb?: (element: HTMLElement) => void) => {- blockAttrRenderAVAttribute(element, id, protyle, cb);-};-/// #endifconst getModelByDockType = (type: TDock | string) => {@@ -208,6 +198,5 @@ export const API = {Menu,Setting,getAllEditor,- renderAVAttribute,platformUtils};diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.tsindex 64ddd1327f..ca106b10b6 100644--- a/app/src/protyle/index.ts+++ b/app/src/protyle/index.ts@@ -43,6 +43,7 @@ import {setStorageVal} from "./util/compatibility";import {merge} from "./util/merge";import {getAllModels} from "../layout/getAll";import {isSupportCSSHL} from "./render/searchMarkRender";+import {renderAVAttribute} from "./render/av/blockAttr";export class Protyle {@@ -463,4 +464,8 @@ export class Protyle {public enable() {enableProtyle(this.protyle);}++ public renderAVAttribute(element: HTMLElement, id: string, cb?: (element: HTMLElement) => void) {+ renderAVAttribute(element, id, this.protyle, cb);+ }}