An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:arrow_up: Upgrade Electron to v44.4.5 and pnpm to v12.5.1 https://github.com/siyuan-note/siyuan/issues/19787
Danielbbd8d9c20433
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex b9651307f7..9cdef3cea2 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -10,7 +10,7 @@Electron 44 requires macOS 13 or later and supports only 64-bit Windows and Linux builds.-Install Node.js 24 to match CI, then install pnpm using npm: `npm install -g [email protected]`.+Install Node.js 24 to match CI, then install pnpm using npm: `npm install -g [email protected]`.Use the version specified by the `packageManager` field in [`app/package.json`](../app/package.json); update the version in the command above if that field changes. This uses the same installation method as [CI](workflows/cd.yml).@@ -21,10 +21,10 @@ Do not mix this method with pnpm's standalone installation scripts (`@pnpm/exe`)Set the Electron mirror environment variable and install Electron:-* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`+* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`* Windows:* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`- * `pnpm install [email protected] -D`+ * `pnpm install [email protected] -D`NPM mirror:@@ -34,7 +34,7 @@ NPM mirror:Enter the app folder and execute:-* `pnpm install [email protected] -D`+* `pnpm install [email protected] -D`* `pnpm run install:electron`* `pnpm run dev`* `pnpm run start`diff --git a/.github/CONTRIBUTING.zh-CN.md b/.github/CONTRIBUTING.zh-CN.mdindex cb90e984eb..bf75a7709f 100644--- a/.github/CONTRIBUTING.zh-CN.md+++ b/.github/CONTRIBUTING.zh-CN.md@@ -10,7 +10,7 @@Electron 44 要求 macOS 13 或更高版本,Windows 和 Linux 仅支持 64 位构建。-安装与 CI 一致的 Node.js 24,然后通过 npm 安装 pnpm:`npm install -g [email protected]`。+安装与 CI 一致的 Node.js 24,然后通过 npm 安装 pnpm:`npm install -g [email protected]`。版本以 [`app/package.json`](../app/package.json) 的 `packageManager` 字段为准;该字段变更后,请相应调整上述命令中的版本号。此安装方式与 [CI](workflows/cd.yml) 保持一致。@@ -21,10 +21,10 @@ Electron 44 要求 macOS 13 或更高版本,Windows 和 Linux 仅支持 64 位设置 Electron 镜像环境变量并安装 Electron:-* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`+* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`* Windows:* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`- * `pnpm install [email protected] -D`+ * `pnpm install [email protected] -D`NPM 镜像:@@ -34,7 +34,7 @@ NPM 镜像:进入 app 文件夹执行:-* `pnpm install [email protected] -D`+* `pnpm install [email protected] -D`* `pnpm run install:electron`* `pnpm run dev`* `pnpm run start`diff --git a/app/package.json b/app/package.jsonindex bca9a29831..058912898f 100644--- a/app/package.json+++ b/app/package.json@@ -5,7 +5,7 @@"description": "From thought to insight, with agents","homepage": "https://b3log.org/siyuan","main": "./electron/main.js",- "packageManager": "[email protected]",+ "packageManager": "[email protected]","scripts": {"lint": "pnpm run typecheck && eslint . --fix --cache","typecheck": "tsc -p tsconfig.typecheck.json && tsc -p tsconfig.api.json",@@ -68,7 +68,7 @@"cross-env": "^10.1.0","css-loader": "^7.1.2","dayjs": "^1.11.5",- "electron": "44.4.1",+ "electron": "44.4.5","electron-builder": "26.15.7","encoding": "^0.1.13","esbuild-loader": "^3.0.1",diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yamlindex f74dcf23ac..be751db316 100644--- a/app/pnpm-lock.yaml+++ b/app/pnpm-lock.yaml@@ -7,96 +7,153 @@ importers:configDependencies: {}packageManagerDependencies:pnpm:- specifier: 12.3.4- version: 12.3.4+ specifier: 12.5.1+ version: 12.5.1packages:- '@pnpm/[email protected]':- resolution: {integrity: sha512-PAyUol8T1+/+ViOiXAt51ECA+QnfXCqz6foL4bW+LsoX0NcVd5XVEM2mRQu+LV4oc7uRz9zf9U0P+XFfuQeDAw==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-6LGBmQuDzUmgpHSuy+haG0jrmkwFNa4EuShDZqK3cIBv4Wfb75CzjJmowkzr+iJg40vnBKMQ62t4Ko6mwsId7A==}+ cpu: [arm64]+ os: [android]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-091oCltP3Rx89yxL1Wh5rXkUXEyFzyxIzSHKRFDyDFlQkb8Ox8FaDcm+M8PNkMyqnLA+qeGOLzY7Rjj9izl1Ww==}+ cpu: [x64]+ os: [android]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-r1vEMQPVjRexZMyL2HonxJoo3+nuB/+G+tg+f2PK6faRdXX1TDwevKXOxJAfqlPInTy6W/pm912+s+m0NcR4BQ==}cpu: [arm64]os: [darwin]- '@pnpm/[email protected]':- resolution: {integrity: sha512-fxP9JCk0Cdye+ePuj+GJJLMUMTqHGWRdb1dtv4How876uQ2ehxvenpgiYAir/ceO9PsYUZkFTtyZdx+rRu5QOA==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-YHwI1g2B+Y2cAEylOR31r781GWijdJL7Gy7TEn/ZpZ5v/Cuwp5/Pz0EFCgo0M2MKLafAbL/laUMGvOpAdnerAw==}cpu: [x64]os: [darwin]- '@pnpm/[email protected]':- resolution: {integrity: sha512-FBOt0/7ye6O6q4AllVV5QMviB6qE6fqkeczV/+MDWQsmo+QJrlfsh6X7CpH/tClVpBZEyIbjpUoT8bNhCYBxEg==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-sFUMHiYFs6q5syFwgaVppzhQSmqnXoJIz/YwTXIOXTDE76ndIpTRpDGAnBCBKjsaEBnqjJA/2l6hpJcNDNoMiA==}+ cpu: [x64]+ os: [freebsd]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-zupuxYZBuBEGjUz805/4/Asq01UNziFADANt8yp+LdUjU9bbMa3xY78Bx1PsGDqBy7aiad4sdUMK8ZxH4n4gmQ==}cpu: [arm64]os: [linux]libc: [musl]- '@pnpm/[email protected]':- resolution: {integrity: sha512-t71AVA7LRqiKTyZ5xMYaZc2n5DfdpMbfokZuiIOXHBOM03ECnF0t4iYwaBDqJgVjlKYUOwaF/bRQajGNA4cJ4w==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-6hbMWW2/eQo1b5wvQPe/ndLHVTH88Rav6N+ffD4/h6IuFMjWCgasFYYsFv0GrvpqREAx3SwmZSvli+0NFXqbxA==}cpu: [arm64]os: [linux]libc: [glibc]- '@pnpm/[email protected]':- resolution: {integrity: sha512-RPmk7Jb/aYaFvL2iyDN/AtMY+hUEsue732WmXpcuQ9tBpMnGyA5py7Z3+e+qmQaJ0zY/4ni9jJiyPBQHujmv6w==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-Gg3maDzaE/ZFMV9HIx/BwMN0Y6QbEs13URfxmiYHtKjjLAs5wEQZRMUP87YNLYO7cNaEfbM8GRbS9vPosyD9Gw==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-6fgWxXYMBMsWQ8DAiRevscX4QZQjwh+FsyCj8ZOk8pMXvqeq84MqBLCmS6KckvnbdqJ+HlSVQ7fs/kd0ldwfhA==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-nzMZruRvxDhEfYUhzu+7EmM39+82Dgagc/6hPFPqGqzXNGcIG0anuxbUxfeNtI64SHt91KuuYUmCB/inlM+Pag==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-kHCbegdTNHpzmPtUD4S5fqkVkqgdQR47spF9p2VPP3dIIkZl6Ytk8w0vhlAsAGgge8FmucfwX+vvPKgm0NtOCQ==}cpu: [x64]os: [linux]libc: [musl]- '@pnpm/[email protected]':- resolution: {integrity: sha512-2ZqOlSPkfwX1h5cR+FPiWf8+F+2hZT/3TvhUK5sigHqwaQCIiq8R7CGxhndKs63JtcLi2a1Qpo+wX/EoyfjyJQ==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-3PkUBYo5z4dgtlnTNIFj7QGpcDUAuqXz9WGVigPDCeccEnhGiRkWmA5102TmYJHtwJP3LfmE+ZF9PGeWhn8p9Q==}cpu: [x64]os: [linux]libc: [glibc]- '@pnpm/[email protected]':- resolution: {integrity: sha512-ANyrHqyqco6SXBysUTRF74itDyyraea7IbFsKFdNXTjcFnfycTDx37EwuhdpPYFNSIh2JhUG4fByclsRfiHX7w==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-49NvjZIXHly56/PLoEDD7VphbO4N8dwMXoApElDFCpVGDNGeKlwlib1tXtnpTF6i2/XIsAj7GgatHB5KHXgBnA==}cpu: [arm64]os: [win32]- '@pnpm/[email protected]':- resolution: {integrity: sha512-WH/KqBPY/hq2Tb7SgQltEZytimcjgKRaCRL/aM9CI0c67iKc5TVmHUhIiL3Ux9FB4bWn36i6XewUcScQI+zG8w==}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-ePUmQFPAPJFNMwg1lelDx2PdjHqYRiF0yfg5e6qeDbPNOu97QNo557Ru/SxmCrmt8ydQWNuZXWpdEp019md5vw==}cpu: [x64]os: [win32]- resolution: {integrity: sha512-lhqkH7B32joEpEHZ+OFevAyW2o73ELLrZ7+e58sGEOq9SPH9hfUc/+c4RnhfoPh8VqOocqHYk/hEZ0G1zORUVw==}+ resolution: {integrity: sha512-4/MFvHhKK8ifWtO2E4iJRw+ujSr182thIW7JHCw9ZAiXdfneOKrDMQROpA8kXLDVZmOS399lgk4ZB+9qLGLeXw==}engines: {node: '>=18.*'}hasBin: truesnapshots:- '@pnpm/[email protected]':+ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':+ optional: true++ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: true- '@pnpm/[email protected]':+ '@pnpm/[email protected]':optional: trueoptionalDependencies:- '@pnpm/exe.darwin-arm64': 12.3.4- '@pnpm/exe.darwin-x64': 12.3.4- '@pnpm/exe.linux-arm64': 12.3.4- '@pnpm/exe.linux-arm64-musl': 12.3.4- '@pnpm/exe.linux-x64': 12.3.4- '@pnpm/exe.linux-x64-musl': 12.3.4- '@pnpm/exe.win32-arm64': 12.3.4- '@pnpm/exe.win32-x64': 12.3.4+ '@pnpm/exe.android-arm64': 12.5.1+ '@pnpm/exe.android-x64': 12.5.1+ '@pnpm/exe.darwin-arm64': 12.5.1+ '@pnpm/exe.darwin-x64': 12.5.1+ '@pnpm/exe.freebsd-x64': 12.5.1+ '@pnpm/exe.linux-arm64': 12.5.1+ '@pnpm/exe.linux-arm64-musl': 12.5.1+ '@pnpm/exe.linux-ppc64': 12.5.1+ '@pnpm/exe.linux-riscv64': 12.5.1+ '@pnpm/exe.linux-s390x': 12.5.1+ '@pnpm/exe.linux-x64': 12.5.1+ '@pnpm/exe.linux-x64-musl': 12.5.1+ '@pnpm/exe.win32-arm64': 12.5.1+ '@pnpm/exe.win32-x64': 12.5.1---lockfileVersion: '9.0'@@ -114,7 +171,7 @@ importers:dependencies:'@electron/remote':specifier: ^2.1.3- version: 2.1.3([email protected]([email protected]))+ version: 2.1.3([email protected]([email protected]))zxcvbn:specifier: 4.4.2version: 4.4.2@@ -156,8 +213,8 @@ importers:specifier: ^1.11.5version: 1.11.20electron:- specifier: 44.4.1- version: 44.4.1([email protected])+ specifier: 44.4.5+ version: 44.4.5([email protected])electron-builder:specifier: 26.15.7version: 26.15.7([email protected])([email protected])@@ -1592,8 +1649,8 @@ packages:resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==}engines: {node: '>=8.0.0'}- resolution: {integrity: sha512-gXJarQ2Utfn8G6bp/IqLXvckOSCtrxPWjFqQaqm02Gf4zYn1aP+RN9PKimoLH/DMqjKLfBrNC4C4CviPv0cXnQ==}+ resolution: {integrity: sha512-SjgoaeYsSWZfJzubgQU7juvuXMTvn6/e1gAHdGFA/yuMbpF+I+skYqIJ6DdXBXHeWbkbpNpmwZCTpiivtlWZSw==}engines: {node: '>= 22.12.0'}hasBin: true@@ -3166,9 +3223,9 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- electron: 44.4.1([email protected])+ electron: 44.4.5([email protected])'@electron/[email protected]([email protected])':dependencies:@@ -4416,7 +4473,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@electron-internal/extract-zip': 1.0.3'@electron/get': 4.0.3([email protected])diff --git a/app/pnpm-workspace.yaml b/app/pnpm-workspace.yamlindex e1043f3940..ee0cc29cb3 100644--- a/app/pnpm-workspace.yaml+++ b/app/pnpm-workspace.yaml@@ -5,7 +5,7 @@ allowBuilds:esbuild: trueblockExoticSubdeps: falseminimumReleaseAgeExclude: