跳到正文
AI NEWS JOURNAL
llama.cpp releasesAI NEWS / JOURNAL

b12475

The Llama Chat UI has been upgraded to SvelteKit 3, integrating its built-in service worker for improved update detection and offline functionality. The migration includes updates to Vite 8, TypeScript 6, Storybook 10, and ESLint 10, along with the replacement of deprecated packages and resolution of npm audit issues through dependency overrides, including pinning minimatch to version 11.0.5 to address a security vulnerability. Changes also align with current Svelte patterns, such as using $state instead of stores and adopting new syntax for actions and class bindings.

翻译服务暂未运行,当前显示原文。

<details open> ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) * ui: replace deprecated packages and fix npm audit findings Swap the mdast stub for @types/mdast, move the katex override to 0.19.0, and override glob, source-map and html-encoding-sniffer under workbox-build and http-server so installs no longer pull deprecated packages. Apply the non-breaking npm audit fixes to the lockfile. Assisted-by: Claude (Opus 5.5 Medium) * ui: migrate Llama Chat to SvelteKit 3 and its built-in service worker Move to SvelteKit 3, Vite 8, TypeScript 6 and Storybook 10.6. The SvelteKit options move from svelte.config.js into sveltekit() in vite.config.ts, $lib imports become #lib subpath imports from package.json, and $app/environment becomes $app/env. Modules named server.* or living under a server/ folder are server-only in SvelteKit 3, so the llama-server components, store and enums move to llama-server names. @vite-pwa/sveltekit and Workbox give way to SvelteKit's own service worker in src/service-worker, registered by usePwa(), which precaches the app files and leaves API requests to the network. A small plugin emits manifest.webmanifest. static/sw.js removes the worker of older builds, and llama-server serves a self-removing service-worker.js as well as sw.js when the built-in UI is off or replaced. Assisted-by: Claude (Opus 5.5 Medium) * ui: use SvelteKit 3's update detection and Svelte 5's current patterns A page the service worker doesn't control now learns of a new build from SvelteKit itself: `updated` from $app/state checks _app/version.json on navigation, on focus and every hour. It replaces the version Llama Chat kept in localStorage and compared by hand. Reload on the update prompt pulls in the new worker and activates it before reloading, so one click lands on the new build, whether or not a worker controlled the page. Following Svelte's current guidance: - usePwa keeps its state in $state rather than a store, and no effect checks `browser` - nearViewport, autoResizeTextarea and the custom CSS injection are attachments ({@attach}) rather than actions (use:) - class lists use arrays rather than class: directives - the chat contexts come from createContext, typed, in place of setContext/getContext with string keys - ActionIconCopyToClipboard takes $props() rather than `export let` Assisted-by: Claude (Opus 5.5 Medium) * ui: move to ESLint 10 ESLint 9 is out of support. Every plugin the app uses supports 10: typescript-eslint, eslint-plugin-svelte, perfectionist, simple-import-sort, eslint-plugin-storybook and eslint-config-prettier. @eslint/js and @eslint/compat follow. ESLint 10's recommended rules ask for two things the code now does: errors rethrown from a catch keep the caught error as their `cause`, and no variable starts with a value that every path overwrites. Assisted-by: Claude (Opus 5.5 Medium) * ui: override minimatch to clear npm audit's last finding ESLint 10.14, @eslint/config-array 0.23.5 and typescript-eslint 8.72 depend on minimatch 10, which GHSA-g3hv-75wg-m249 (denial of service via globparts amplification) affects below 11.0.1. Their fixed releases move to minimatch 11 but are all younger than the repo's 7-day min-release-age, so an override pins minimatch 11.0.5, the newest the rule allows. The three only call new Minimatch(), match() and minimatch(), which minimatch 11 keeps. npm audit now finds nothing. Assisted-by: Claude (Opus 5.5 Medium) </details> **Website:** - <https://llama.app> **Attestations:** - <https://github.com/ggml-org/llama.cpp/attestations/68640063> **macOS/iOS:** - [macOS Apple Silicon (arm64)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-macos-arm64.tar.gz) - macOS Apple Silicon (arm64, KleidiAI enabled) [DISABLED](https://github.com/ggml-org/llama.cpp/pull/23780) - [macOS Intel (x64)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-macos-x64.tar.gz) - [iOS XCFramework](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-xcframework.zip) **Linux:** - [Ubuntu x64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-x64.tar.gz) - [Ubuntu arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-arm64.tar.gz) - [Ubuntu 24.04 s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-s390x.tar.gz) - [Ubuntu 26.04 s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-26.04-s390x.tar.gz) - [Ubuntu 26.04 s390x (zDNN)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-zdnn-s390x.tar.gz) - [Ubuntu x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-vulkan-x64.tar.gz) - [Ubuntu arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-vulkan-arm64.tar.gz) - [Ubuntu x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-cuda-12.8-x64.tar.gz) - [CUDA 12.8 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-b12475-bin-ubuntu-cuda-12.8-x64.tar.gz) - [Ubuntu x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-cuda-13.5-x64.tar.gz) - [CUDA 13.5 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-b12475-bin-ubuntu-cuda-13.5-x64.tar.gz) - [Ubuntu arm64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-cuda-13.5-arm64.tar.gz) - [CUDA 13.5 libraries](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-b12475-bin-ubuntu-cuda-13.5-arm64.tar.gz) - [Ubuntu x64 (ROCm 10.0)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-rocm-10.0-x64.tar.gz) - [Ubuntu x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-openvino-2026.4.1-x64.tar.gz) - [Ubuntu x64 (SYCL FP32)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-sycl-fp32-x64.tar.gz) - [Ubuntu x64 (SYCL FP16)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-ubuntu-sycl-fp16-x64.tar.gz) - [Linux arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-linux-arm64-snapdragon.tar.gz) - [setup guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/snapdragon/linux.md) **Android:** - [Android arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-android-arm64.tar.gz) - [Android arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-android-arm64-snapdragon.tar.gz) - [setup guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/snapdragon/README.md) **Windows:** - [Windows x64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-cpu-x64.zip) - [Windows arm64 (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-cpu-arm64.zip) - [Windows arm64 (OpenCL Adreno)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-opencl-adreno-arm64.zip) - [Windows x64 (CUDA 12)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-cuda-12.4-x64.zip) - [CUDA 12.4 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-bin-win-cuda-12.4-x64.zip) - [Windows x64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-cuda-13.5-x64.zip) - [CUDA 13.5 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-bin-win-cuda-13.5-x64.zip) - [Windows arm64 (CUDA 13)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-cuda-13.5-arm64.zip) - [CUDA 13.5 DLLs](https://github.com/ggml-org/llama.cpp/releases/download/b12475/cudart-llama-bin-win-cuda-13.5-arm64.zip) - [Windows x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-vulkan-x64.zip) - [Windows arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-vulkan-arm64.zip) - [Windows x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-openvino-2026.4.1-x64.zip) - [Windows x64 (SYCL)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-sycl-x64.zip) - [Windows x64 (ROCm 10.0)](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-bin-win-rocm-10.0-x64.zip) **openEuler:** - [DISABLED](https://github.com/ggml-org/llama.cpp/pull/23705) - openEuler x86 (310p) - openEuler x86 (910b, ACL Graph) - openEuler aarch64 (310p) - openEuler aarch64 (910b, ACL Graph) **UI:** - [UI](https://github.com/ggml-org/llama.cpp/releases/download/b12475/llama-b12475-ui.tar.gz)

资料来源

阅读原文 ↗

相关主题

← 继续阅读全部动态