AI, fully local on your computer.
TypeScript aiai-toolskiwixllama-cpplocal-ailocal-llmofflineoffline-aioffline-firstprivacy-firstragwikipediazim
# Runtime sources — prebuilt llama.cpp sidecar binaries (Phase 12; GPU defaults Phase 14).
#
# The `llama-server` sidecar is NOT a model, so it lives here rather than in a model
# manifest. `fetch-runtime` reads this file, picks the build matching the host
# OS/arch (or --os/--arch/--backend overrides), downloads + SHA-256-verifies the release
# archive (.zip or .tar.gz), and extracts it into the build's extract_to dir. Archives
# that nest their binaries in a subfolder (the macOS/Linux tarballs) are flattened so
# llama-server lands at the extract_to root. After extraction a `.hilbertraum-runtime.json`
# install marker ({ version, backend, os, arch, binaries }) is written next to the binary so
# re-runs can skip idempotently — and so a version/backend change actually re-fetches.
# `binaries` holds the SHA-256 of every file the archive put there (#998), so each copy is
# judged complete by its own list, never by this file's.
#
# DEFAULT BACKEND = VULKAN-FIRST (Phase 14, docs/architecture.md GPU record). The win/linux
# Vulkan release archives are STANDALONE FULL BUILDS: they ship llama-server + every
# ggml-cpu-* variant library + the Vulkan backend, loaded dynamically (GGML_BACKEND_DL).
# On a machine with no usable Vulkan device the same binary simply runs on its bundled
# CPU backends — so the Vulkan build degrades to exactly the old CPU behavior on
# GPU-less machines, which is why it is safe as the default for an unknown laptop.
# (The Phase-12 assumption "a GPU build fails or runs worse on a non-GPU machine" was
# verified FALSE for Vulkan-the-archive against b9585.) The pure-CPU builds remain as a
# last-resort safety net, extracted to runtime/llama.cpp/<os>/cpu/ (the app's fallback
# ladder rung 3 — used only if the default binary itself cannot start). The macOS arm64
# build ships with Metal enabled by default upstream (already GPU; no cpu/ net needed).
#
# Ordering matters: with no --backend override, fetch-runtime and selectRuntimeBuild
# take the FIRST os/arch match — list the default (vulkan/metal) build first per OS.
# (os, arch, backend) triples must be unique (validated).
#
# Schema (validated by apps/desktop/src/shared/runtime-sources.ts validateRuntimeSources):
# llama_cpp:
# version: <pinned ggml-org/llama.cpp release tag>
# builds:
# - { os, arch, backend, url, sha256, extract_to }
#
# PINNED RELEASE: b12110 (2026-11-04, upstream commit cd959bae) — the build named by upstream's
# STABLE release v0.9.0: the `v0.9.0` tag and `b12110` resolve to the same commit. BUMPED from
# b11146 (v0.5.0, 2026-09-23, 7fe450e1) under issue #729: b11146 carries the llama-server context-
# checkpoint bug that made a Gemma 4 answer depend on earlier requests to the same server
# (upstream #30666, first in v0.8.0). Owner calls 2026-11-07: v0.9.0 rather than v0.8.0 (b11960),
# merged no earlier than 2026-11-11. #729 records what was verified on it (argv, `--list-devices`,
# load log, SSE shape, error bodies, auth, speed, the manual smokes, the grounded-QA gate).
# The sha256 values below are the OFFICIAL release-asset digests from the ggml-org/llama.cpp
# GitHub Releases API (the `digest` field, one per asset), same five-asset topology as before
# (win vulkan + win cpu, mac arm64 metal, linux vulkan + linux cpu), and ALL FIVE were confirmed
# against a local download on 2026-11-07 (SHA-256 exact). fetch-runtime re-SHA-256-verifies each
# archive BEFORE extracting, so a wrong/changed digest deletes the archive and fails the run — a
# bad binary can never silently install.
# size_bytes (#843): each asset's GitHub Releases API asset `size`, read 2026-11-18, same call as the
# `digest`. The in-app engine dialog shows it before anything is downloaded; it is a label only (the
# download is checked by its sha256, never by its size, and a bad value reads as "unknown").
# What changed in the archives since b11146: every one now carries `llama-connect` (v0.8.0+), the
# separately built peer-to-peer tunnel that `llama-server --connect` starts. The installers leave
# it out (`neverInstalled` in assets.ts SIDECAR_FAMILY_SPECS, mirrored in both fetch-runtime
# twins); otherwise only the macOS/Linux library version suffixes moved (licence record:
# docs/model-policy.md). The Windows executables now embed a manifest selecting the UTF-8 code page
# and long paths (upstream #31329).
# Since August 2026 upstream publishes stable `vX.Y.Z` releases WITHOUT assets, each naming a
# nightly build, and marks every `bNNNNN` tag `prerelease: true`; fetch-runtime ignores that flag,
# so pinning the build tag works as before.
# To bump again: pin ONLY a build that an upstream stable `vX.Y.Z` release names (the release's
# notes / `nightly-tag.txt` asset give the `bNNNNN`; confirm both tags resolve to one commit) —
# a plain nightly needs an explicit, recorded exception here. Update version + per-OS asset URLs
# (asset names vary by release), capture each asset's real SHA-256 (release `digest` metadata AND
# a local download) and its `size_bytes` (the same metadata's asset `size`), diff the archive file
# lists against this pin's (a new executable is either required or `neverInstalled`), re-verify
# the llama.cpp facts the app depends on (docs/architecture.md GPU record "llama.cpp facts"), and
# promote it here as a deliberate, reviewed change.
llama_cpp:
version: b12110
builds:
- os: win
arch: x64
backend: vulkan
url: https://github.com/ggml-org/llama.cpp/releases/download/b12110/llama-b12110-bin-win-vulkan-x64.zip
sha256: 9732a5e48887ca54d0bfe4af4324dc85fd56cd8cda19b52df3542fa6ebe6874f
size_bytes: 37661146
extract_to: runtime/llama.cpp/win
- os: win
arch: x64
backend: cpu
url: https://github.com/ggml-org/llama.cpp/releases/download/b12110/llama-b12110-bin-win-cpu-x64.zip
sha256: 98901e327c252875accaf2d1bf364e10e868843b0b63468baad1aa945cdc5da2
size_bytes: 24708445
extract_to: runtime/llama.cpp/win/cpu
- os: mac
arch: arm64
backend: metal
url: https://github.com/ggml-org/llama.cpp/releases/download/b12110/llama-b12110-bin-macos-arm64.tar.gz
sha256: 4f5b8de12e0b9516658ca6a5764c6ffb3d7c659c3dd538556b1413c7b4050662
size_bytes: 16650691
extract_to: runtime/llama.cpp/mac
- os: linux
arch: x64
backend: vulkan
url: https://github.com/ggml-org/llama.cpp/releases/download/b12110/llama-b12110-bin-ubuntu-vulkan-x64.tar.gz
sha256: a5d741940956ec62e8783aee7e5a4c7c761af867d6f027c3277a51e1a3ac59b0
size_bytes: 35858360
extract_to: runtime/llama.cpp/linux
- os: linux
arch: x64
backend: cpu
url: https://github.com/ggml-org/llama.cpp/releases/download/b12110/llama-b12110-bin-ubuntu-x64.tar.gz
sha256: 368227edcc229be5f9bed16a2223d79b5e41d0ac2e19bcf5825e82291c060e55
size_bytes: 23051958
extract_to: runtime/llama.cpp/linux/cpu
# SECOND SIDECAR FAMILY (Phase 36): whisper.cpp — the audio transcriber. ADDITIVE
# block; an app from before Phase 36 reads only `llama_cpp:` and ignores this
# (verified forward-compatibility, wave-3 plan §9). Same schema, own pinned tag.
#
# PINNED RELEASE: v1.8.6 (2026-06-02). Inspected 2026-06-11 (R-W1): the upstream
# release ships PREBUILT BINARIES FOR WINDOWS ONLY (whisper-bin-x64.zip — a plain-CPU
# build whose Release/ folder contains whisper-cli.exe + whisper-server.exe + ggml
# DLLs; flattened on extraction) plus BLAS/CUDA variants and an Apple xcframework.
# There are NO prebuilt mac/linux CLI binaries — on those OSes the drive builder
# compiles the pinned tag from source (cmake; see docs/packaging.md) into
# runtime/whisper.cpp/<os>/, writing the .hilbertraum-runtime.json marker by hand or via
# fetch-runtime's marker step. CPU-only by design (E5/reranker precedent: ASR is a
# batch job; GPU whisper would be a later opt-in, never a default risk).
# The sha256 below was computed from a fresh download on 2026-06-11. Its size_bytes (#843) is the
# GitHub Releases API asset `size`, read 2026-11-18, same call as the `digest` (which equals the sha256).
# To bump: capture the new asset's sha256 and size_bytes (the release metadata's `digest` and
# `size`, and a local download); re-run the non-ASCII command-line layouts on the real binary and model
# (tests/manual/whisper-smoke.test.ts "#869 layout matrix": three roots, a foreign original that is
# copied in, a dictation with VAD, a Kit on another drive, the model-path refusal; architecture.md
# "Audio transcription (Phase 36)", "#869 amendment"), and read the new whisper-cli.exe for a UTF-8
# activeCodePage manifest: v1.8.6 has none, so Windows hands it its argv in the ANSI code page. With
# one, the relative spellings, the transient copy and the refusal can be retired, as #729 did for
# llama-server; until then each child starts in workspace/documents (never this engine folder).
whisper_cpp:
version: v1.8.6
builds:
- os: win
arch: x64
backend: cpu
url: https://github.com/ggml-org/whisper.cpp/releases/download/v1.8.6/whisper-bin-x64.zip
sha256: b07ea0b1b4115a38e1a7b07debf581f0b77d999925f8acb8f39d322b0ba0a822
size_bytes: 4093849
extract_to: runtime/whisper.cpp/win
# THIRD SIDECAR FAMILY (#339, P8-1): kiwix-tools — the knowledge-pack (ZIM) tools.
# ADDITIVE block; an app from before #339 reads only llama_cpp/whisper_cpp/ocr and ignores
# this (the whisper_cpp forward-compatibility contract). TWO NEW KEYS this family
# introduces, both validated by shared/runtime-sources.ts:
# optional: true — the family is NEVER part of the default engine install and never
# counted in engineStatus().installed. Only an explicit
# families: ['kiwix_tools'] installs it (the code-side FamilySpec is
# the load-bearing copy of this flag; the yaml key is declarative and
# asserted to agree — a drive's yaml must not be able to promote a
# family into the "Install the AI engine" button).
# executables: [...] — the family ships MORE THAN ONE executable. Base names, no OS
# suffix (`sidecarBinaryName` adds `.exe` on win). The FIRST entry is
# the primary binary (plan.binaryPath). Every entry is required to
# exist after extraction and is hashed into the install marker.
# runtime_files: [...] (per build) — non-executable files the executables cannot start
# without. Windows only here: the five ICU DLLs. Verbatim filenames
# (they already carry their extension and the ICU major version).
#
# PINNED RELEASE: 3.8.1 (upstream build 2025-12-02). The kiwix download server is the only
# binary distribution for 3.8.1 (the GitHub release carries source archives only) and it
# publishes MD5 sidecars only (`<file>.md5`) — there is no `.sha256`. So, exactly like
# whisper_cpp above, the sha256 values were COMPUTED FROM FRESH DOWNLOADS on 2026-09-06 whose
# upstream MD5 matched the published sidecar (per-file provenance: docs/model-policy.md
# "Sidecar binaries — kiwix-tools"). download.kiwix.org 301s to mirror.download.kiwix.org;
# the downloader follows redirects manually and re-validates every hop (assets.ts
# assertSafeDownloadUrl, MAX_REDIRECTS = 5), so the canonical host is pinned here.
# LICENSE: this is the product's FIRST copyleft third-party native binary — GPL-3.0-or-later
# (kiwix-tools, libkiwix), statically linked against GPL-2.0-or-later (libzim "with
# GPL-3.0-or-later files", Xapian) and LGPL-2.1-or-later (libmicrohttpd). DRIVE-NOTICES.md
# carries the grants + the corresponding-source record; a preloaded Kit must carry the source
# archives — pinned in source_bundle: below and enforced by the sell gate (P8-4). To bump: re-download every asset, re-verify its MD5 against the upstream
# sidecar, recompute each SHA-256, re-read the COPYING/headers of the source trees, re-capture
# the two kiwix-serve stderr phrases `services/zim/serve.ts` classifies (a held port, an
# unloadable library — #712; its bind-race retry keys on the first), re-run the non-ASCII launch
# layouts on the real tools (tests/manual/zim-real.test.ts "#787" — both programs started from the
# library's folder, a Windows archive path spelled in ASCII; rag-design.md §17 D-Z1 "#787
# amendment"), and promote it here together with a fresh licence review.
kiwix_tools:
version: '3.8.1'
optional: true
executables: [kiwix-serve, kiwix-manage, kiwix-search]
# COMPLETE CORRESPONDING SOURCE (#339 P8-4, owner ruling 2026-09-06). Five of this build's
# components are copyleft, so a preloaded Kit that CONVEYS these binaries must carry their
# corresponding source beside them. ONE directory per drive, OS-independent (the source is the
# same whichever platform's binaries the Kit ships). This block is the single source of truth:
# the sell gate hashes against it (checks.kiwixSourceBundle), scripts/install-kiwix-source-bundle.mjs
# copies + verifies against it and generates SOURCES.md from it, and scripts/lib/drive-notices.mjs
# prints the DRIVE-NOTICES record from it. The tarballs are NEVER in this repo (maintainer-local
# archive). A commercial build that cannot carry these archives must not ship kiwix-tools at all.
# Grants are the exact wording read from the pinned source trees (docs/model-policy.md) — libzim
# is "GPL-2.0-or-later, with GPL-3.0-or-later files", never "all GPL-3". No kiwix-build recipe
# commit is pinned (recipe_url only): the recipe state at the 3.8.1 build date is the owner's
# open review item, and a guessed commit would be worse than none.
source_bundle:
dir: runtime/kiwix-tools/source
recipe_url: https://github.com/kiwix/kiwix-build
files:
- component: kiwix-tools
version: '3.8.1'
license: GPL-3.0-or-later
name: kiwix-tools-3.8.1.tar.xz
sha256: dd769c9bd3d75b59ad9e451b128187b128da6a10b1241bb2d0325fe4aafe51a3
size_bytes: 531416
url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools-3.8.1.tar.xz
- component: libkiwix
version: '14.1.1'
license: GPL-3.0-or-later, with one GPL-2.0-or-later file
name: libkiwix-14.1.1.tar.xz
sha256: e232f42bba33561493e2d7318c3be60d8508e83a8891a8358135519dedc5ff5a
size_bytes: 1123600
url: https://download.kiwix.org/release/libkiwix/libkiwix-14.1.1.tar.xz
- component: libzim
version: '9.4.0'
license: GPL-2.0-or-later, with GPL-3.0-or-later files
name: libzim-9.4.0.tar.xz
sha256: 7fa374f4714b23c43afa3fb406d7e21c483d77e8218895e1408e2f037969b6ea
size_bytes: 217752
url: https://download.openzim.org/release/libzim/libzim-9.4.0.tar.xz
- component: xapian-core
version: '1.4.23'
license: GPL-2.0-or-later
name: xapian-core-1.4.23.tar.xz
sha256: 30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c
size_bytes: 3024644
url: https://oligarchy.co.uk/xapian/1.4.23/xapian-core-1.4.23.tar.xz
- component: libmicrohttpd
version: '0.9.76'
license: LGPL-2.1-or-later
name: libmicrohttpd-0.9.76.tar.gz
sha256: f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c
size_bytes: 2199858
url: https://dev.kiwix.org/kiwix-build/libmicrohttpd-0.9.76.tar.gz
builds:
- os: win
arch: x64
backend: cpu
url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_win-x86_64-3.8.1.zip
sha256: fcd01ed2b93e9a68632c7863c83b9f66bf64406a66357be1df7b8b75596f3e45
# size_bytes (#339 P8-2): the pinned archive's size, shown by the consent dialog before
# any request is made. Measured with the SHA-256 (docs/model-policy.md).
size_bytes: 18301924
extract_to: runtime/kiwix-tools/win
# The win zip is FLAT (eight files, no top folder): three exes + these five DLLs.
# The exes do not start without them.
runtime_files: [icudt74.dll, icuin74.dll, icuio74.dll, icutu74.dll, icuuc74.dll]
- os: mac
arch: arm64
backend: cpu
url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_macos-arm64-3.8.1.tar.gz
sha256: 222e8398ca50ac005a7e92cf0116e0c83e3c44c79cab0bb7f6537943d517e8d3
size_bytes: 10254751
extract_to: runtime/kiwix-tools/mac
- os: mac
arch: x64
backend: cpu
url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_macos-x86_64-3.8.1.tar.gz
sha256: 70219e56f7c274e1fc0db8487abdcc91bde9a6f2923958894c0c81ee24b06c01
size_bytes: 10768392
extract_to: runtime/kiwix-tools/mac
- os: linux
arch: x64
backend: cpu
url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64-3.8.1.tar.gz
sha256: 46557f9a3c3eaada2556a957cf5bc662c07dc6286e8924e04fa3a173f83ff6dd
size_bytes: 21503420
extract_to: runtime/kiwix-tools/linux
# OCR LANGUAGE DATA (Phase 38, D32): a NEW ASSET CLASS on this yaml — plain verified
# files, no extraction, no per-OS variance. ADDITIVE block (the whisper_cpp
# forward-compatibility contract). The drive carries ONLY these traineddata files;
# the tesseract.js worker + WASM core ship inside the app as pinned npm deps (R-O2).
#
# PINNED DATA: @tesseract.js-data/{deu,eng}@1.0.0, variant 4.0.0_best_int — the
# INTEGERIZED tessdata_best (R-O3: the WASM core cannot run float `best` models, and
# best_int beat `fast` clearly on degraded German scans: 3 vs 7 misses of 104 words).
# Shipped AS the .gz tesseract.js reads natively (langPath + gzip:true — one hash,
# no decompression step in the scripts). Upstream license: Apache-2.0 (tesseract-ocr
# traineddata; reviewed in docs/model-policy.md). The sha256 values were computed
# from fresh downloads on 2026-06-11. #538 (2026-10-05) added @tesseract.js-data/[email protected]
# from the same variant directory: the orientation data, run by the app's legacy-capable core
# in a second worker (never a recognition language); sha256 computed from a fresh download.
ocr:
version: 4.0.0_best_int
files:
- lang: deu
url: https://cdn.jsdelivr.net/npm/@tesseract.js-data/[email protected]/4.0.0_best_int/deu.traineddata.gz
sha256: 306c4280d0cbed46fbff727486bd43b92730181bae80f56941a091f363bdf28b
dest: ocr/deu.traineddata.gz
- lang: eng
url: https://cdn.jsdelivr.net/npm/@tesseract.js-data/[email protected]/4.0.0_best_int/eng.traineddata.gz
sha256: 45b4cb346724ac1774f1c36f42f182b887bcdb28ebe63e6fff90ac41f3fcff91
dest: ocr/eng.traineddata.gz
# Not a language: Tesseract's orientation data (OSD, legacy engine) — turns sideways and
# upside-down pages upright before they are read (#538). Same tessdata source and licence.
- lang: osd
url: https://cdn.jsdelivr.net/npm/@tesseract.js-data/[email protected]/4.0.0_best_int/osd.traineddata.gz
sha256: be028ddaac8b03402b92cbf526075c068ec39a9f1dbbcd7536dddb9b22209934
dest: ocr/osd.traineddata.gz