Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge remote-tracking branch 'origin/dev' into mobile/dev
Vanalite5e57caee43ec
diff --cc Makefileindex da43f4960,e2262a842..890f612c8--- a/Makefile+++ b/Makefile@@@ -41,26 -41,8 +41,25 @@@ els@echo "Not macOS; skipping Rust target installation."endif+# Install required Rust targets for Android builds+install-android-rust-targets:+ @echo "Checking and installing Android Rust targets..."+ @rustup target list --installed | grep -q "aarch64-linux-android" || rustup target add aarch64-linux-android+ @rustup target list --installed | grep -q "armv7-linux-androideabi" || rustup target add armv7-linux-androideabi+ @rustup target list --installed | grep -q "i686-linux-android" || rustup target add i686-linux-android+ @rustup target list --installed | grep -q "x86_64-linux-android" || rustup target add x86_64-linux-android+ @echo "Android Rust targets ready!"++# Install required Rust targets for iOS builds+install-ios-rust-targets:+ @echo "Checking and installing iOS Rust targets..."+ @rustup target list --installed | grep -q "aarch64-apple-ios" || rustup target add aarch64-apple-ios+ @rustup target list --installed | grep -q "aarch64-apple-ios-sim" || rustup target add aarch64-apple-ios-sim+ @rustup target list --installed | grep -q "x86_64-apple-ios" || rustup target add x86_64-apple-ios+ @echo "iOS Rust targets ready!"+dev: install-and-buildyarn download:bin- yarn download:libyarn dev# Web application targetsdiff --cc package.jsonindex 5efd4db37,fe5fdff21..d191e9f44--- a/package.json+++ b/package.json@@@ -26,18 -24,11 +26,18 @@@"serve:web-app": "yarn workspace @janhq/web-app serve:web","build:serve:web-app": "yarn build:web-app && yarn serve:web-app","dev:tauri": "yarn build:icon && yarn copy:assets:tauri && cross-env IS_CLEAN=true tauri dev",+ "dev:ios": "yarn build:extensions-web && yarn copy:assets:mobile && RUSTC_WRAPPER= yarn tauri ios dev --features mobile",+ "dev:android": "yarn build:extensions-web && yarn copy:assets:mobile && cross-env IS_CLEAN=true TAURI_ANDROID_BUILD=true yarn tauri android dev --features mobile",+ "build:android": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_CLEAN=true TAURI_ANDROID_BUILD=true yarn tauri android build -- --no-default-features --features mobile",+ "build:ios": "yarn copy:assets:mobile && yarn tauri ios build -- --no-default-features --features mobile",+ "build:ios:device": "yarn build:icon && yarn copy:assets:mobile && yarn tauri ios build -- --no-default-features --features mobile --export-method debugging","copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\" && cpx \"LICENSE\" \"src-tauri/resources/\"",+ "copy:assets:mobile": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\" && cpx \"LICENSE\" \"src-tauri/resources/\"",+ "download:lib": "node ./scripts/download-lib.mjs","download:bin": "node ./scripts/download-bin.mjs","download:windows-installer": "node ./scripts/download-win-installer-deps.mjs",- "build:tauri:win32": "yarn download:bin && yarn download:lib && yarn download:windows-installer && yarn tauri build",- "build:tauri:linux": "yarn download:bin && yarn download:lib && NO_STRIP=1 ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build && ./src-tauri/build-utils/buildAppImage.sh",+ "build:tauri:win32": "yarn download:bin && yarn download:windows-installer && yarn tauri build",+ "build:tauri:linux": "yarn download:bin && NO_STRIP=1 ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build && ./src-tauri/build-utils/buildAppImage.sh","build:tauri:darwin": "yarn download:bin && yarn tauri build --target universal-apple-darwin","build:tauri": "yarn build:icon && yarn copy:assets:tauri && run-script-os","build:tauri:plugin:api": "cd src-tauri/plugins && yarn install && yarn workspaces foreach -Apt run build",diff --cc src-tauri/src/lib.rsindex 169ee5b19,dad155875..d7ff7693c--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@@ -138,11 -156,16 +139,10 @@@ pub fn run()log::error!("Failed to install extensions: {}", e);}- if option_env!("ENABLE_SYSTEM_TRAY_ICON").unwrap_or("false") == "true" {- log::info!("Enabling system tray icon");- let _ = setup_tray(app);- }-- #[cfg(any(windows, target_os = "linux"))]+ #[cfg(all(feature = "deep-link", any(windows, target_os = "linux")))]{use tauri_plugin_deep_link::DeepLinkExt;- // Register the deep-link scheme programmatically- app.deep_link().register("jan")?;-+ app.deep_link().register_all()?;}setup_mcp(app);Ok(())diff --cc src-tauri/tauri.windows.conf.jsonindex 1030563ee,dad811467..a1438c385--- a/src-tauri/tauri.windows.conf.json+++ b/src-tauri/tauri.windows.conf.json@@@ -1,13 -1,11 +1,17 @@@{+ "app": {+ "security": {+ "capabilities": ["default"]+ }+ },+"bundle": {"targets": ["nsis"],- "resources": ["resources/pre-install/**/*", "resources/lib/vulkan-1.dll", "resources/lib/vc_redist.x64.exe", "resources/LICENSE"],+ "resources": [+ "resources/pre-install/**/*",+ "resources/lib/vc_redist.x64.exe",+ "resources/LICENSE"+ ],"externalBin": ["resources/bin/bun", "resources/bin/uv"],"windows": {"nsis": {diff --cc yarn.lockindex b12b0ef4f,2cb509689..963824f9c--- a/yarn.lock+++ b/yarn.lock@@@ -1592,7 -1603,7 +1592,7 @@@ __metadatalanguageName: nodelinkType: hard--"@babel/parser@npm:^7.27.2, @babel/parser@npm:^7.27.5, @babel/parser@npm:^7.27.7":++"@babel/parser@npm:^7.27.2, @babel/parser@npm:^7.27.7":version: 7.27.7resolution: "@babel/parser@npm:7.27.7"dependencies:@@@ -2547,18 -2528,18 +2517,18 @@@languageName: nodelinkType: hard- "@babel/traverse@npm:^7.23.7, @babel/traverse@npm:^7.27.7, @babel/traverse@npm:^7.28.0, @babel/traverse@npm:^7.28.3, @babel/traverse@npm:^7.28.4":-"@babel/traverse@npm:^7.23.7, @babel/traverse@npm:^7.26.10, @babel/traverse@npm:^7.26.8":- version: 7.27.0- resolution: "@babel/traverse@npm:7.27.0"++"@babel/traverse@npm:^7.23.7, @babel/traverse@npm:^7.28.0, @babel/traverse@npm:^7.28.3, @babel/traverse@npm:^7.28.4":+ version: 7.28.4+ resolution: "@babel/traverse@npm:7.28.4"dependencies:- "@babel/code-frame": "npm:^7.26.2"- "@babel/generator": "npm:^7.27.0"- "@babel/parser": "npm:^7.27.0"- "@babel/template": "npm:^7.27.0"- "@babel/types": "npm:^7.27.0"+ "@babel/code-frame": "npm:^7.27.1"+ "@babel/generator": "npm:^7.28.3"+ "@babel/helper-globals": "npm:^7.28.0"+ "@babel/parser": "npm:^7.28.4"+ "@babel/template": "npm:^7.27.2"+ "@babel/types": "npm:^7.28.4"debug: "npm:^4.3.1"- globals: "npm:^11.1.0"- checksum: 10c0/c7af29781960dacaae51762e8bc6c4b13d6ab4b17312990fbca9fc38e19c4ad7fecaae24b1cf52fb844e8e6cdc76c70ad597f90e496bcb3cc0a1d66b41a0aa5b+ checksum: 10c0/ee678fdd49c9f54a32e07e8455242390d43ce44887cea6567b233fe13907b89240c377e7633478a32c6cf1be0e17c2f7f3b0c59f0666e39c5074cc47b968489clanguageName: nodelinkType: hard@@@ -2577,21 -2558,6 +2547,21 @@@languageName: nodelinkType: hard- "@babel/traverse@npm:^7.26.10":++"@babel/traverse@npm:^7.26.10, @babel/traverse@npm:^7.26.8":+ version: 7.27.0+ resolution: "@babel/traverse@npm:7.27.0"+ dependencies:+ "@babel/code-frame": "npm:^7.26.2"+ "@babel/generator": "npm:^7.27.0"+ "@babel/parser": "npm:^7.27.0"+ "@babel/template": "npm:^7.27.0"+ "@babel/types": "npm:^7.27.0"+ debug: "npm:^4.3.1"+ globals: "npm:^11.1.0"+ checksum: 10c0/c7af29781960dacaae51762e8bc6c4b13d6ab4b17312990fbca9fc38e19c4ad7fecaae24b1cf52fb844e8e6cdc76c70ad597f90e496bcb3cc0a1d66b41a0aa5b+ languageName: node+ linkType: hard+"@babel/traverse@npm:^7.27.1":version: 7.27.7resolution: "@babel/traverse@npm:7.27.7"@@@ -3193,17 -3167,17 +3163,28 @@@languageName: nodelinkType: hard- "@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.7.0, @eslint-community/eslint-utils@npm:^4.8.0":-"@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0":++"@eslint-community/eslint-utils@npm:^4.2.0":+ version: 4.9.0+ resolution: "@eslint-community/eslint-utils@npm:4.9.0"+ dependencies:+ eslint-visitor-keys: "npm:^3.4.3"+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0+ checksum: 10c0/8881e22d519326e7dba85ea915ac7a143367c805e6ba1374c987aa2fbdd09195cc51183d2da72c0e2ff388f84363e1b220fd0d19bef10c272c63455162176817+ languageName: node+ linkType: hard+++"@eslint-community/eslint-utils@npm:^4.4.0":+ version: 4.4.1+ resolution: "@eslint-community/eslint-utils@npm:4.4.1"+ dependencies:+ eslint-visitor-keys: "npm:^3.4.3"+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0+ checksum: 10c0/2aa0ac2fc50ff3f234408b10900ed4f1a0b19352f21346ad4cc3d83a1271481bdda11097baa45d484dd564c895e0762a27a8240be7a256b3ad47129e96528252+ languageName: node+ linkType: hard+"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.6.1":version: 4.12.1resolution: "@eslint-community/regexpp@npm:4.12.1"@@@ -7574,21 -7908,21 +7778,30 @@@languageName: nodelinkType: hard+ "@types/node@npm:22.14.1":+ version: 22.14.1+ resolution: "@types/node@npm:22.14.1"+ dependencies:+ undici-types: "npm:~6.21.0"+ checksum: 10c0/d49c4d00403b1c2348cf0701b505fd636d80aabe18102105998dc62fdd36dcaf911e73c7a868c48c21c1022b825c67b475b65b1222d84b704d8244d152bb7f86+ languageName: node+ linkType: hard+"@types/node@npm:^18.11.18":- version: 18.19.86- resolution: "@types/node@npm:18.19.86"+ version: 18.19.124+ resolution: "@types/node@npm:18.19.124"dependencies:undici-types: "npm:~5.26.4"- checksum: 10c0/1017c4ba61661ab30e4b4a78040cb66980919549f56d85755326dcccbe7a0405be7d6be1b2a91bace8eaef0d2a24b63d4f104b381be7f957c2483e465d829690+ checksum: 10c0/a1b1aa2d21a0b0dec473b9b15e048a25f86cd26f7fc1b9036b43b838ee50b33534518c503f12c9a86be4cebb0f957fd3583fee9c78372ece973a1081c9fc7966+ languageName: node+ linkType: hard++"@types/node@npm:^22.10.0":+ version: 22.18.3+ resolution: "@types/node@npm:22.18.3"+ dependencies:+ undici-types: "npm:~6.21.0"+ checksum: 10c0/29ec5674a7eaac50c4c779e937c4449e813ff70c411eb525b6e12837e7b88c39219c3c2f29e39ea8f72cd6b7975f8696dc05f78c07bce35a241e0c9eaf5523a8languageName: nodelinkType: hard@@@ -8144,6 -8443,15 +8322,15 @@@languageName: nodelinkType: hard-"acorn@npm:^8.14.0, acorn@npm:^8.14.1":++"acorn@npm:^8.14.0":+ version: 8.14.1+ resolution: "acorn@npm:8.14.1"+ bin:+ acorn: bin/acorn+ checksum: 10c0/dbd36c1ed1d2fa3550140000371fcf721578095b18777b85a79df231ca093b08edc6858d75d6e48c73e431c174dcf9214edbd7e6fa5911b93bd8abfa54e47123+ languageName: node+ linkType: hard+"acorn@npm:^8.15.0":version: 8.15.0resolution: "acorn@npm:8.15.0"@@@ -8484,23 -8792,14 +8671,14 @@@languageName: nodelinkType: hard- "ast-types@npm:^0.16.1":- version: 0.16.1- resolution: "ast-types@npm:0.16.1"- dependencies:- tslib: "npm:^2.0.1"- checksum: 10c0/abcc49e42eb921a7ebc013d5bec1154651fb6dbc3f497541d488859e681256901b2990b954d530ba0da4d0851271d484f7057d5eff5e07cb73e8b10909f711bf- languageName: node- linkType: hard-"ast-v8-to-istanbul@npm:^0.3.3":- version: 0.3.3- resolution: "ast-v8-to-istanbul@npm:0.3.3"+ version: 0.3.5+ resolution: "ast-v8-to-istanbul@npm:0.3.5"dependencies:- "@jridgewell/trace-mapping": "npm:^0.3.25"+ "@jridgewell/trace-mapping": "npm:^0.3.30"estree-walker: "npm:^3.0.3"js-tokens: "npm:^9.0.1"- checksum: 10c0/ffc39bc3ab4b8c1f7aea945960ce6b1e518bab3da7c800277eab2da07d397eeae4a2cb8a5a5f817225646c8ea495c1e4434fbe082c84bae8042abddef53f50b2+ checksum: 10c0/6796d2e79dc82302543f8109a6d75944278903cee6269b46df4a7d923c289754f1c97390df48536657741d387046e11dbedcda8ce2e6441bcbe26f8586a6d715languageName: nodelinkType: hard@@@ -10104,10 -10384,10 +10275,10 @@@languageName: nodelinkType: hard- "detect-libc@npm:^2.0.3, detect-libc@npm:^2.0.4":+ "detect-libc@npm:^2.0.3":- version: 2.0.4- resolution: "detect-libc@npm:2.0.4"- checksum: 10c0/c15541f836eba4b1f521e4eecc28eefefdbc10a94d3b8cb4c507689f332cc111babb95deda66f2de050b22122113189986d5190be97d51b5a2b23b938415e67c+ version: 2.1.0+ resolution: "detect-libc@npm:2.1.0"+ checksum: 10c0/4d0d36c77fdcb1d3221779d8dfc7d5808dd52530d49db67193fb3cd8149e2d499a1eeb87bb830ad7c442294929992c12e971f88ae492965549f8f83e5336eba6languageName: nodelinkType: hard@@@ -10735,13 -11012,13 +10906,20 @@@languageName: nodelinkType: hard+ "eslint-visitor-keys@npm:^4.2.0":+ version: 4.2.0+ resolution: "eslint-visitor-keys@npm:4.2.0"+ checksum: 10c0/2ed81c663b147ca6f578312919483eb040295bbab759e5a371953456c636c5b49a559883e2677112453728d66293c0a4c90ab11cab3428cf02a0236d2e738269+ languageName: node+ linkType: hard++"eslint-visitor-keys@npm:^4.2.1":+ version: 4.2.1+ resolution: "eslint-visitor-keys@npm:4.2.1"+ checksum: 10c0/fcd43999199d6740db26c58dbe0c2594623e31ca307e616ac05153c9272f12f1364f5a0b1917a8e962268fdecc6f3622c1c2908b4fcc2e047a106fe6de69dc43+ languageName: node+ linkType: hard+"eslint@npm:8.57.0":version: 8.57.0resolution: "eslint@npm:8.57.0"@@@ -10840,17 -11117,17 +11018,28 @@@languageName: nodelinkType: hard- "espree@npm:^10.0.1, espree@npm:^10.4.0":-"espree@npm:^10.0.1, espree@npm:^10.3.0":++"espree@npm:^10.0.1":+ version: 10.4.0+ resolution: "espree@npm:10.4.0"+ dependencies:+ acorn: "npm:^8.15.0"+ acorn-jsx: "npm:^5.3.2"+ eslint-visitor-keys: "npm:^4.2.1"+ checksum: 10c0/c63fe06131c26c8157b4083313cb02a9a54720a08e21543300e55288c40e06c3fc284bdecf108d3a1372c5934a0a88644c98714f38b6ae8ed272b40d9ea08d6b+ languageName: node+ linkType: hard+++"espree@npm:^10.3.0":+ version: 10.3.0+ resolution: "espree@npm:10.3.0"+ dependencies:+ acorn: "npm:^8.14.0"+ acorn-jsx: "npm:^5.3.2"+ eslint-visitor-keys: "npm:^4.2.0"+ checksum: 10c0/272beeaca70d0a1a047d61baff64db04664a33d7cfb5d144f84bc8a5c6194c6c8ebe9cc594093ca53add88baa23e59b01e69e8a0160ab32eac570482e165c462+ languageName: node+ linkType: hard+"espree@npm:^9.6.0, espree@npm:^9.6.1":version: 9.6.1resolution: "espree@npm:9.6.1"@@@ -13565,6 -13855,16 +13762,16 @@@languageName: nodelinkType: hard-"istanbul-reports@npm:3.1.7, istanbul-reports@npm:^3.1.7":++"istanbul-reports@npm:3.1.7":+ version: 3.1.7+ resolution: "istanbul-reports@npm:3.1.7"+ dependencies:+ html-escaper: "npm:^2.0.0"+ istanbul-lib-report: "npm:^3.0.0"+ checksum: 10c0/a379fadf9cf8dc5dfe25568115721d4a7eb82fbd50b005a6672aff9c6989b20cc9312d7865814e0859cd8df58cbf664482e1d3604be0afde1f7fc3ccc1394a51+ languageName: node+ linkType: hard+"istanbul-reports@npm:^2.2.5":version: 2.2.7resolution: "istanbul-reports@npm:2.2.7"@@@ -13903,7 -14201,7 +14110,7 @@@languageName: nodelinkType: hard- "katex@npm:^0.16.0, katex@npm:^0.16.22":-"katex@npm:0.16.22":++"katex@npm:0.16.22, katex@npm:^0.16.0":version: 0.16.22resolution: "katex@npm:0.16.22"dependencies:@@@ -18082,19 -18458,19 +18291,19 @@@languageName: nodelinkType: hard- "seroval-plugins@npm:^1.3.2, seroval-plugins@npm:~1.3.0":-"seroval-plugins@npm:^1.1.0":- version: 1.2.1- resolution: "seroval-plugins@npm:1.2.1"++"seroval-plugins@npm:~1.3.0":+ version: 1.3.3+ resolution: "seroval-plugins@npm:1.3.3"peerDependencies:seroval: ^1.0- checksum: 10c0/668f9ce1271076da63cbd55e63fdd51f6ad1575fb8e31878e1bf75e58ec6fda6eb74b21c57a986603242b7702082914f08413c2c555abbd67e95f70b7e589514+ checksum: 10c0/cb6d0119ddf26241d62b78cf924a701bfde2d1a4f8fed924f0076b1edde5f8c6f3e38d8c71975010ba58e94804619c9aed59cb3985774ce7a725aa882dc021f1languageName: nodelinkType: hard- "seroval@npm:^1.3.2, seroval@npm:~1.3.0":-"seroval@npm:^1.1.0":- version: 1.2.1- resolution: "seroval@npm:1.2.1"- checksum: 10c0/9dba0c983d29f8a463392f40d4654dc36499a42e418daeb09927b89fad6c3b5e33d8adf552d8d54a9bd7b8a14cf62062dc645f5b351a4034578cd11564990344++"seroval@npm:~1.3.0":+ version: 1.3.2+ resolution: "seroval@npm:1.3.2"+ checksum: 10c0/19e74825643786d22e5c58054bd28065238de0156545afba82f9a7d3ee70ea4f0249b427f317bc6bf983849dde8e4190264728d90c84620aa163bfbc5971f1bclanguageName: nodelinkType: hard@@@ -19131,7 -19483,7 +19326,7 @@@languageName: nodelinkType: hard- "tinyglobby@npm:^0.2.10, tinyglobby@npm:^0.2.13, tinyglobby@npm:^0.2.15":-"tinyglobby@npm:^0.2.10":++"tinyglobby@npm:^0.2.10, tinyglobby@npm:^0.2.15":version: 0.2.15resolution: "tinyglobby@npm:0.2.15"dependencies:@@@ -20349,26 -20722,26 +20543,26 @@@languageName: nodelinkType: hard- "vite@npm:^6.3.0":- version: 6.3.6- resolution: "vite@npm:6.3.6"+ "vite@npm:^5.0.0 || ^6.0.0 || ^7.0.0-0":- version: 7.0.0-beta.2- resolution: "vite@npm:7.0.0-beta.2"++ version: 7.1.5++ resolution: "vite@npm:7.1.5"dependencies:esbuild: "npm:^0.25.0"- fdir: "npm:^6.4.4"- fdir: "npm:^6.4.6"++ fdir: "npm:^6.5.0"fsevents: "npm:~2.3.3"-- picomatch: "npm:^4.0.2"- postcss: "npm:^8.5.3"- rollup: "npm:^4.34.9"- tinyglobby: "npm:^0.2.13"- postcss: "npm:^8.5.5"- rollup: "npm:^4.40.0"- tinyglobby: "npm:^0.2.14"++ picomatch: "npm:^4.0.3"++ postcss: "npm:^8.5.6"++ rollup: "npm:^4.43.0"++ tinyglobby: "npm:^0.2.15"peerDependencies:- "@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0+ "@types/node": ^20.19.0 || >=22.12.0jiti: ">=1.21.0"- less: "*"+ less: ^4.0.0lightningcss: ^1.21.0- sass: "*"- sass-embedded: "*"- stylus: "*"- sugarss: "*"+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: ">=0.54.8"+ sugarss: ^5.0.0terser: ^5.16.0tsx: ^4.8.1yaml: ^2.4.2@@@ -20400,7 -20773,7 +20594,7 @@@optional: truebin:vite: bin/vite.js- checksum: 10c0/add701f1e72596c002275782e38d0389ab400c1be330c93a3009804d62db68097a936ca1c53c3301df3aaacfe5e328eab547060f31ef9c49a277ae50df6ad4fb- checksum: 10c0/2cd51b6749171e255e478329c3f5c6fad9a3de0f36731396d1bebd77411bd93b5d835d0d8549fe707ddf5fb0e0c2f562e29b04d095d73408e4d340464182d140++ checksum: 10c0/782d2f20c25541b26d1fb39bef5f194149caff39dc25b7836e25f049ca919f2e2ce186bddb21f3f20f6195354b3579ec637a8ca08d65b117f8b6f81e3e730a9clanguageName: nodelinkType: hard