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/issues/5066 removeData
Vanessafdf9f0d9e4af
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex eb05a9a62b..d95f8fb5fc 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -109,6 +109,18 @@ export class Plugin {});}+ public removeData(storageName: string) {+ return new Promise((resolve) => {+ if (!this.data) {+ this.data = {};+ }+ fetchPost("/api/file/removeFile", {path: `/data/storage/petal/${this.name}/${storageName}`}, (response) => {+ delete this.data[storageName];+ resolve(response);+ });+ });+ }+public addTab(options: {type: string,destroy?: () => void,