Scripts under scripts/rust/ and scripts/ci/ manage native cross-platform packaging, V8 prebuilt caching, third-party license/notice verification, and CI suite execution. See packages/cli for end-to-end release commands.
- macOS — Xcode 26+ and
libclang(required by SQLite preupdate-hook bindgen). - Linux — GLib, X11/XCB,
xkbcommon, Wayland, Fontconfig, FreeType dev headers,libclang,cargo-zigbuild, and Zig (exact versions match.github/workflows/nightly.yml). - V8 cache — Release builds pull pinned V8 archives (with LGPL glibc math disabled) from
v8-prebuilts.jsonintotarget/v8($CARGO_TARGET_DIR/v8) and verify SHA-256 digests. A missing pin falls back to a full V8 source build (requires Python, Git, Clang/libclang 19+, and significant disk/CPU).
After changing Cargo or bundled JavaScript dependencies, regenerate and verify the license inventories:
node scripts/rust/dependencies.mjs generate
node scripts/rust/notices.mjs generate
node scripts/rust/dependencies.mjs check
node scripts/rust/notices.mjs checknotices.json tracks reviewed Rust and bundled JS components across all distribution targets; notices-sources.json records reviewed upstream license URLs.
Suite definitions live in scripts/ci/suites.mjs and run identically in local just recipes, .github/workflows/pr.yml, and .github/workflows/ci.yml via scripts/ci.mjs:
node scripts/ci.mjs check pr
node scripts/ci.mjs plan --base origin/main
node scripts/ci.mjs run bridgePull requests run the fast test gate (node scripts/ci.mjs check pr). Pushes to main trace reverse Cargo dependencies plus declared runtime assets (skills/, product bundles, helper binaries) with full root coverage, and a daily schedule runs the full suite matrix. The root build job produces a single cargo nextest archive (including embedded runtime assets) that downstream OS test runners partition and execute.
host-comparison/ provides an offline Linux harness for comparing end-to-end Host throughput, RSS, and CPU usage against a local loopback SSE model fixture.
Maka creates State Root directories under %LOCALAPPDATA%\Maka owned by the current Windows user with a private ACL. If an older elevated process left state-root-owners or runtime-hosts owned by Administrators (S-1-5-32-544), Maka refuses to adopt it automatically and prints both SIDs. To recover your own directory after stopping all local Hosts, run in an elevated PowerShell:
$path = 'C:\Users\YOUR_ACCOUNT\AppData\Local\Maka\state-root-owners'
$acl = Get-Acl -LiteralPath $path
if ($acl.GetOwner([System.Security.Principal.SecurityIdentifier]).Value -ne 'S-1-5-32-544') {
throw 'Expected an Administrators-owned directory.'
}
$backup = [System.IO.Path]::GetTempFileName()
$acl.Sddl | Set-Content -LiteralPath $backup
$acl.SetOwner([System.Security.Principal.WindowsIdentity]::GetCurrent().User)
Set-Acl -LiteralPath $path -AclObject $acl
Write-Output "Backed up previous SDDL to: $backup"