Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:arrow_up: Upgrade pnpm

Daniel930e3a6580df
diff --git a/app/package.json b/app/package.json
index 2c44d09e3a..4990baa3b3 100644
--- a/app/package.json
+++ b/app/package.json
@@ -17,7 +17,7 @@
"build:desktop": "webpack --mode production --config webpack.desktop.js",
"build:export": "webpack --mode production --config webpack.export.js",
"gen:types": "tsc -d",
- "start": "NODE_ENV=development electron ./electron/main.js",
+ "start": "cross-env NODE_ENV=development electron ./electron/main.js",
"dist": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --config electron-builder.yml --publish=never",
"dist-arm64": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --arm64 --config electron-builder-arm64.yml --publish=never",
"dist-darwin": "ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --mac --config electron-builder-darwin.yml --publish=never",
@@ -55,6 +55,7 @@
"@typescript-eslint/parser": "^8.15.0",
"blueimp-md5": "^2.19.0",
"clean-webpack-plugin": "^4.0.0",
+ "cross-env": "^10.1.0",
"css-loader": "^7.1.2",
"dayjs": "^1.11.5",
"electron": "41.5.1",
diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml
index 7a82d06b23..83a694b739 100644
--- a/app/pnpm-lock.yaml
+++ b/app/pnpm-lock.yaml
@@ -33,12 +33,15 @@ importers:
clean-webpack-plugin:
specifier: ^4.0.0
version: 4.0.0([email protected])
+ cross-env:
+ specifier: ^10.1.0
+ version: 10.1.0
css-loader:
specifier: ^7.1.2
version: 7.1.4([email protected])
dayjs:
specifier: ^1.11.5
- version: 1.11.19
+ version: 1.11.20
electron:
specifier: 41.5.1
version: 41.5.1
@@ -59,7 +62,7 @@ importers:
version: 6.2.0([email protected])
filesize:
specifier: ^11.0.13
- version: 11.0.13
+ version: 11.0.17
globals:
specifier: ^15.12.0
version: 15.15.0
@@ -121,11 +124,6 @@ packages:
engines: {node: '>=10.12.0'}
hasBin: true
- '@electron/[email protected]':
- resolution: {integrity: sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==}
- engines: {node: '>=10.12.0'}
- hasBin: true
-
'@electron/[email protected]':
resolution: {integrity: sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==}
hasBin: true
@@ -135,7 +133,7 @@ packages:
engines: {node: '>=12'}
'@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2':
- resolution: {tarball: https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2}
+ resolution: {gitHosted: true, tarball: https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2}
version: 10.2.0-electron.1
engines: {node: '>=12.13.0'}
hasBin: true
@@ -168,6 +166,9 @@ packages:
engines: {node: '>=14.14'}
hasBin: true
+ '@epic-web/[email protected]':
+ resolution: {integrity: sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==}
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}
engines: {node: '>=12'}
@@ -503,8 +504,8 @@ packages:
resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
engines: {node: '>=10'}
- '@tootallnate/[email protected]':
- resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
+ '@tootallnate/[email protected]':
+ resolution: {integrity: sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==}
engines: {node: '>= 10'}
@@ -1034,6 +1035,11 @@ packages:
resolution: {integrity: sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==}
+ resolution: {integrity: sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==}
+ engines: {node: '>=20'}
+ hasBin: true
+
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
@@ -1062,8 +1068,8 @@ packages:
engines: {node: '>=4'}
hasBin: true
- resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==}
+ resolution: {integrity: sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==}
resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==}
@@ -1377,8 +1383,8 @@ packages:
resolution: {integrity: sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==}
- resolution: {integrity: sha512-mYJ/qXKvREuO0uH8LTQJ6v7GsUvVOguqxg2VTwQUkyTPXXRRWPdjuUPVqdBrJQhvci48OHlNGRnux+Slr2Rnvw==}
+ resolution: {integrity: sha512-oHLTvMLw6imZUl1se/RBQrFlyy50nXce4sU7yGR6Qc0JgCwqnfiFsAnEwotdGmfKLD7SArGUk2/5STU0k8LOBQ==}
engines: {node: '>= 10.8.0'}
@@ -1469,6 +1475,10 @@ packages:
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
hasBin: true
+ resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==}
+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
+
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
@@ -1663,8 +1673,8 @@ packages:
resolution: {integrity: sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==}
engines: {node: '>= 0.10'}
- resolution: {integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==}
+ resolution: {integrity: sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==}
engines: {node: '>= 12'}
@@ -2421,8 +2431,8 @@ packages:
resolution: {integrity: sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==}
engines: {node: '>= 10'}
- resolution: {integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==}
+ resolution: {integrity: sha512-NlGELfPrgX2f1TAAcz0WawlLn+0r3FyhhCRpFFK2CemXenPYvzMWWZINv3eDNo9ucdwme7oCHRY0Jnbs4aIkog==}
engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
@@ -2754,12 +2764,6 @@ snapshots:
glob: 7.2.3
minimatch: 3.1.5
- '@electron/[email protected]':
- dependencies:
- commander: 5.1.0
- glob: 7.2.3
- minimatch: 3.1.5
-
'@electron/[email protected]':
dependencies:
chalk: 4.1.2
@@ -2862,6 +2866,8 @@ snapshots:
- supports-color
optional: true
+ '@epic-web/[email protected]': {}
+
'@esbuild/[email protected]':
optional: true
@@ -3113,7 +3119,7 @@ snapshots:
dependencies:
defer-to-connect: 2.0.1
- '@tootallnate/[email protected]': {}
+ '@tootallnate/[email protected]': {}
dependencies:
@@ -3749,6 +3755,11 @@ snapshots:
optional: true
+ dependencies:
+ '@epic-web/invariant': 1.0.0
+ cross-spawn: 7.0.6
+
dependencies:
path-key: 3.1.1
@@ -3780,7 +3791,7 @@ snapshots:
@@ -3954,7 +3965,7 @@ snapshots:
dependencies:
- '@electron/asar': 3.4.1
+ '@electron/asar': 3.2.18
debug: 4.4.3
fs-extra: 7.0.1
lodash: 4.18.1
@@ -4181,7 +4192,7 @@ snapshots:
dependencies:
minimatch: 5.1.9
dependencies:
@@ -4297,6 +4308,15 @@ snapshots:
package-json-from-dist: 1.0.1
path-scurry: 1.11.1
+ dependencies:
+ fs.realpath: 1.0.0
+ inflight: 1.0.6
+ inherits: 2.0.4
+ minimatch: 3.1.5
+ once: 1.4.0
+ path-is-absolute: 1.0.1
+
dependencies:
fs.realpath: 1.0.0
@@ -4436,7 +4456,7 @@ snapshots:
dependencies:
- '@tootallnate/once': 2.0.0
+ '@tootallnate/once': 2.0.1
agent-base: 6.0.2
debug: 4.4.3
transitivePeerDependencies:
@@ -4523,7 +4543,7 @@ snapshots:
dependencies:
@@ -5097,7 +5117,7 @@ snapshots:
dependencies:
- glob: 7.2.3
+ glob: 7.2.0
dependencies:
@@ -5105,7 +5125,7 @@ snapshots:
dependencies:
- glob: 7.2.3
+ glob: 7.2.0
dependencies:
@@ -5210,13 +5230,13 @@ snapshots:
dependencies:
agent-base: 6.0.2
debug: 4.4.3
- socks: 2.8.7
+ socks: 2.8.8
transitivePeerDependencies:
- supports-color
dependencies:
- ip-address: 10.1.0
+ ip-address: 10.2.0
smart-buffer: 4.2.0
diff --git a/app/pnpm-workspace.yaml b/app/pnpm-workspace.yaml
index 29abe3b48c..bab728cd98 100644
--- a/app/pnpm-workspace.yaml
+++ b/app/pnpm-workspace.yaml
@@ -1,2 +1,5 @@
onlyBuiltDependencies:
- electron
+blockExoticSubdeps: false
+allowBuilds:
+ electron: true