An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: https://github.com/siyuan-note/siyuan/pull/5058
Vanessaaae6247e3ce3
diff --git a/DEV.md b/DEV.mdindex d61a55875f..b5dad6d93c 100644--- a/DEV.md+++ b/DEV.md@@ -7,15 +7,19 @@## NPM dependencies+Install pnpm++`npm install -g pnpm`+In China, it may be necessary to set the Electron mirror environment variable:-* macOS/Linux: ELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" npm install [email protected] -D+* macOS/Linux: ELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" pnpm install [email protected] -D* Windows: `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`NPM mirror:-* May need to use mirror repository in China `npm --registry https://r.cnpmjs.org/ i -D --sass_binary_site=https://cnpmjs.org/mirrors/node-sass/`-* Revert to using official repository `npm --registry https://registry.npmjs.org i -D`+* May need to use mirror repository in China `pnpm --registry https://r.cnpmjs.org/ i -D --sass_binary_site=https://cnpmjs.org/mirrors/node-sass/`+* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`## Kernel@@ -44,4 +48,4 @@ On the desktop, go to the app folder to compile and run:* `npm run dev`* `npm run start`-For the mobile-end, please refer to the corresponding project repository.\ No newline at end of file+For the mobile-end, please refer to the corresponding project repository.diff --git a/DEV_zh_CN.md b/DEV_zh_CN.mdindex f653ac76b5..91d65d901b 100644--- a/DEV_zh_CN.md+++ b/DEV_zh_CN.md@@ -7,15 +7,19 @@## NPM 依赖+安装 pnpm++`npm install -g pnpm`+在中国可能需要设置 Electron 镜像环境变量:-* macOS/Linux:ELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" npm install [email protected] -D+* macOS/Linux:ELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" pnpm install [email protected] -D* Windows: `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`NPM 镜像:-* 在中国可能需要使用镜像仓库 `npm --registry https://r.cnpmjs.org/ i -D --sass_binary_site=https://cnpmjs.org/mirrors/node-sass/`-* 恢复使用官方仓库 `npm --registry https://registry.npmjs.org i -D`+* 在中国可能需要使用镜像仓库 `pnpm --registry https://r.cnpmjs.org/ i -D --sass_binary_site=https://cnpmjs.org/mirrors/node-sass/`+* 恢复使用官方仓库 `pnpm --registry https://registry.npmjs.org i`## 内核diff --git a/app/src/layout/dock/Bookmark.ts b/app/src/layout/dock/Bookmark.tsindex f23191249e..da372ab32e 100644--- a/app/src/layout/dock/Bookmark.ts+++ b/app/src/layout/dock/Bookmark.ts@@ -77,7 +77,7 @@ export class Bookmark extends Model {element: this.element.lastElementChild as HTMLElement,data: null,click(element: HTMLElement) {- const id = element.getAttribute("data-node-id")+ const id = element.getAttribute("data-node-id");fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {openFileById({id,diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.tsindex acc05d115e..d90690531c 100644--- a/app/src/util/Tree.ts+++ b/app/src/util/Tree.ts@@ -104,9 +104,9 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>}let iconHTML;if (item.type === "NodeDocument") {- iconHTML = `<span data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}">${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`+ iconHTML = `<span data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}">${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;} else {- iconHTML = `<svg data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.type, item.subType)}"></use></svg>`+ iconHTML = `<svg data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.type, item.subType)}"></use></svg>`;}html += `<li ${type === "backlink" ? 'draggable="true"' : ""}class="b3-list-item ${isMobile() ? "" : "b3-list-item--hide-action"}"