* fix: Prevent spamming /health endpoint and improve startup and resolve compiler warnings This commit introduces a delay and improved logic to the /health endpoint checks in the llamacpp extension, preventing excessive requests during model loading. Additionally, it addresses several Rust compiler warnings by: - Commenting out an unused `handle_app_quit` function in `src/core/mcp.rs`. - Explicitly declaring `target_port`, `session_api_key`, and `buffered_body` as mutable in `src/core/server.rs`. - Commenting out unused `tokio` imports in `src/core/setup.rs`. - Enhancing the `load_llama_model` function in `src/core/utils/extensions/inference_llamacpp_extension/server.rs` to better monitor stdout/stderr for readiness and errors, and handle timeouts. - Commenting out an unused `std::path::Prefix` import and adjusting `normalize_path` in `src/core/utils/mod.rs`. - Updating the application version to 0.6.904 in `tauri.conf.json`. * fix grammar! Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * fix grammar 2 Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * reimport prefix but only on Windows * remove instead of commenting * remove redundant check * sync app version in cargo.toml with tauri.conf --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
89 lines
2.6 KiB
JSON
89 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Jan",
|
|
"version": "0.6.904",
|
|
"identifier": "jan.ai.app",
|
|
"build": {
|
|
"frontendDist": "../web-app/dist",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeDevCommand": "cross-env IS_TAURI=true CLEAN=true yarn dev:web",
|
|
"beforeBuildCommand": "cross-env IS_TAURI=true yarn build:web"
|
|
},
|
|
"app": {
|
|
"macOSPrivateApi": true,
|
|
"windows": [
|
|
{
|
|
"zoomHotkeysEnabled": true,
|
|
"label": "main",
|
|
"title": "Jan",
|
|
"width": 1024,
|
|
"minWidth": 375,
|
|
"minHeight": 667,
|
|
"height": 800,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"center": true,
|
|
"hiddenTitle": true,
|
|
"transparent": true,
|
|
"trafficLightPosition": {
|
|
"x": 12,
|
|
"y": 22
|
|
},
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"windowEffects": {
|
|
"effects": ["fullScreenUI", "mica", "tabbed", "blur", "acrylic"],
|
|
"state": "active",
|
|
"radius": 8
|
|
}
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": {
|
|
"default-src": "'self' customprotocol: asset: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*",
|
|
"connect-src": "ipc: http://ipc.localhost http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:* https: http:",
|
|
"font-src": [
|
|
"https://fonts.gstatic.com blob: data: tauri://localhost http://tauri.localhost"
|
|
],
|
|
"img-src": "'self' asset: http://asset.localhost blob: data: https://cdn.jsdelivr.net",
|
|
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
|
|
"script-src": "'self' asset: $APPDATA/**.* http://asset.localhost https://eu-assets.i.posthog.com https://posthog.com"
|
|
},
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": {
|
|
"requireLiteralLeadingDot": false,
|
|
"allow": ["**/*"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"plugins": {
|
|
"os": {
|
|
"version": "latest",
|
|
"resolve": true
|
|
},
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJFNDEzMEVCMUEzNUFENDQKUldSRXJUVWE2ekJCTGc1Mm1BVXgrWmtES3huUlBFR0lCdG5qbWFvMzgyNDhGN3VTTko5Q1NtTW0K",
|
|
"endpoints": [
|
|
"https://github.com/menloresearch/jan/releases/latest/download/latest.json"
|
|
],
|
|
"windows": {
|
|
"installMode": "passive"
|
|
}
|
|
},
|
|
"deep-link": { "schemes": ["jan"] }
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"createUpdaterArtifacts": false,
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|