Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/

Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
This commit is contained in:
Niko1221 committed 2026-11-17 13:19:21 +01:00
1 parent e60613ac7f
commit 4058aa782b
7472 files changed
+1355 -1426

No files matched your search

+16 -16
View File
@@ -1,40 +1,40 @@
# Frozen prompts are hashed byte for byte (manifest sha256): never convert their line endings.
bench/prompts/** -text
terminal/bench/prompts/** -text
# launchers keep their platform line endings wherever the repository is cloned
*.sh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
bin/strata text eol=lf
terminal/bin/strata text eol=lf
# copies of real packs' native_experts.txt, parsed byte for byte by tests/core/expert_layout_test.cpp
tests/data/native_experts/** -text
# copies of real packs' native_experts.txt, parsed byte for byte by engine/tests/core/expert_layout_test.cpp
engine/tests/data/native_experts/** -text
# the quant yardstick's text set: tokenized byte for byte (set.ids.json), never convert its line endings
data/quant_quality/** -text
terminal/data/quant_quality/** -text
# the license text is shipped and checked as LF text on every checkout
LICENSE text eol=lf
# container scripts run in Linux: always LF
docker/*.sh text eol=lf
Dockerfile text eol=lf
docker/Dockerfile text eol=lf
docker/compose/* text eol=lf
tools/docker/*.sh text eol=lf
tools/docker/Dockerfile.src text eol=lf
tools/docker/Dockerfile text eol=lf
tools/docker/compose/* text eol=lf
# Apple tools (codesign, plutil) read these: LF only, wherever the repository is cloned
*.plist text eol=lf
# vendored KaTeX (serve/web/vendor): the files are hashed byte for byte (PROVENANCE.json), never convert their line endings.
serve/web/vendor/** -text
third_party/strata-ggml/** text eol=lf
third_party/strata-gguf-py/** text eol=lf
third_party/strata-llama/** text eol=lf
# vendored KaTeX (terminal/serve/web/vendor): the files are hashed byte for byte (PROVENANCE.json), never convert their line endings.
terminal/serve/web/vendor/** -text
engine/third_party/strata-ggml/** text eol=lf
engine/third_party/strata-gguf-py/** text eol=lf
engine/third_party/strata-llama/** text eol=lf
# chat templates are read and hashed byte for byte (the served prompt, tools/test_qwen4_intake): LF wherever the repository is cloned
*.jinja text eol=lf
# the image gate's recorded data (merges with their ranks, expected token ids, table hashes) is read byte for byte by the test programs
# (tools/test_te_tokenizer.py: a CR at a line end made every merge unknown on a Windows checkout); never convert its line endings
tools/image/gate/data/** -text
# (terminal/tools/test_te_tokenizer.py: a CR at a line end made every merge unknown on a Windows checkout); never convert its line endings
terminal/tools/image/gate/data/** -text
+6 -6
View File
@@ -10,7 +10,7 @@ You should be able to explain every changed line and answer review questions abo
1. Search [issues](https://github.com/Niko1221/Strata/issues) and
[pull requests](https://github.com/Niko1221/Strata/pulls), including closed discussions. Add new evidence to an
existing thread when it covers your problem.
2. Read [AGENTS.md](AGENTS.md) and the documentation for the component you want to change.
2. Read [AGENTS.md](../AGENTS.md) and the documentation for the component you want to change.
3. Get maintainer agreement on scope before substantial features, refactors, architecture changes, or changes to
defaults. Describe the user problem, proposed behavior, and tradeoffs in an issue first. Agreement on scope
does not guarantee a merge. Focused fixes and benchmark reports can go straight to a PR.
@@ -61,7 +61,7 @@ an AI-generated summary of the diff is not a substitute for this explanation.
- Add documentation where it changes what a user or developer needs to know. Avoid repeated summaries,
speculative roadmaps, and generated documentation with no actionable information.
- Preserve existing behavior outside the intended change. New features are opt-in; follow the default-path
and performance requirements in [AGENTS.md](AGENTS.md).
and performance requirements in [AGENTS.md](../AGENTS.md).
- Read the complete diff, including generated files, before submitting. Remove debugging output, secrets,
private paths, and accidental files.
- Prefer a small relevant regression check over tests that only restate the implementation. Documentation-only
@@ -81,8 +81,8 @@ compatibility you have not tested.
Performance claims need before/after runs on the same hardware and workload, with every changed setting
identified. Preserve the individual runs, failures, and variability. Follow the
[community measurement guide](docs/COMMUNITY_BENCHMARKS.md); standard submissions will use the
[benchmark protocol](docs/BENCHMARK_PROTOCOL.md) once it is activated. One fast run does not justify changing a
[community measurement guide](../docs/COMMUNITY_BENCHMARKS.md); standard submissions will use the
[benchmark protocol](../docs/BENCHMARK_PROTOCOL.md) once it is activated. One fast run does not justify changing a
default or claiming a speedup for other machines.
Example PR body; placeholders are not test results:
@@ -117,6 +117,6 @@ is easier to review and maintain.
A results-only PR should contain the human report, raw measurements, sanitized configuration, and supporting
logs. Keep it separate from engine changes and include poor results and failed requests.
The [current community benchmark guide](docs/COMMUNITY_BENCHMARKS.md) remains available for measurements made
with today's tools. The [new protocol](docs/BENCHMARK_PROTOCOL.md) defines the draft standard and future approval
The [current community benchmark guide](../docs/COMMUNITY_BENCHMARKS.md) remains available for measurements made
with today's tools. The [new protocol](../docs/BENCHMARK_PROTOCOL.md) defines the draft standard and future approval
workflow. Its draft status must remain visible: existing reports are not automatically standard or approved.
+1 -1
View File
@@ -5,7 +5,7 @@ labels: ["bug"]
body:
- type: markdown
value: |
Thanks for the report. Please read [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md) first.
Thanks for the report. Please read [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/.github/CONTRIBUTING.md) first.
Search the [open and closed issues](https://github.com/Niko1221/Strata/issues?q=is%3Aissue) first: this may already be tracked, and new evidence belongs in that thread.
+1 -1
View File
@@ -5,7 +5,7 @@ labels: ["enhancement"]
body:
- type: markdown
value: |
Explain what you want in plain language. For a large feature, a change to a default or a refactor, please agree the scope here first. Read [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Explain what you want in plain language. For a large feature, a change to a default or a refactor, please agree the scope here first. Read [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/.github/CONTRIBUTING.md).
**The title must start with its area:** [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. Choose the same one below.
- type: dropdown
+1 -1
View File
@@ -5,7 +5,7 @@ labels: ["question"]
body:
- type: markdown
value: |
Not sure how to do something, or want to share numbers from your machine? Ask here. To share a full benchmark, see [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md#share-a-benchmark).
Not sure how to do something, or want to share numbers from your machine? Ask here. To share a full benchmark, see [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/.github/CONTRIBUTING.md#share-a-benchmark).
**The title must start with its area:** [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. Choose the same one below.
- type: dropdown
+3 -3
View File
@@ -17,7 +17,7 @@ Supported: the latest release. Fixes go into the next release, not into older on
## What the server exposes
Strata runs a model on your PC and serves it over HTTP (`serve/server.py`). Out of the box it is reachable from
this PC only. The details and every setting are in [docs/DETAILS.md](docs/DETAILS.md) ("From other devices",
this PC only. The details and every setting are in [docs/DETAILS.md](../docs/DETAILS.md) ("From other devices",
"Host names", "Web pages without an API key", "Tools from MCP servers").
- **Where it listens.** `127.0.0.1` by default. `--host 0.0.0.0` (or `"host"` in `strata-<model>.json`) opens it to
@@ -68,7 +68,7 @@ the model. The section above is about the engine's HTTP server. This is what the
one it accepted (a replayed old feed) or expired, and checks every engine package against its SHA-256, its signed manifest and the
card in your PC before it test-starts it and switches to it. Any failure keeps the engine you had. The app installer itself is signed
with a separate key (Tauri's minisign key) that the app and the Terminal both check. The private keys are kept offline by the owner.
See [packaging/UPDATES.md](packaging/UPDATES.md).
See [packaging/UPDATES.md](../tools/packaging/UPDATES.md).
### How far to trust `curl | sh` and `irm | iex`
@@ -93,4 +93,4 @@ If that is not enough: save the script (`curl -fsSLO --connect-timeout 15 --max-
run it from the file; or install the desktop app or build from source instead and check the code you build.
Strata has not had an outside security audit yet.
What Strata downloads, when it uses the internet, what stays on your PC and how downloads are checked is written up in [docs/SAFETY.md](docs/SAFETY.md).
What Strata downloads, when it uses the internet, what stays on your PC and how downloads are checked is written up in [docs/SAFETY.md](../docs/SAFETY.md).
+1 -1
View File
@@ -175,7 +175,7 @@ function checklist(missing) {
return missing.map((m) => '- [ ] ' + m).join('\n');
}
const CONTRIB = 'https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md';
const CONTRIB = 'https://github.com/Niko1221/Strata/blob/main/.github/CONTRIBUTING.md';
function intakeComment(isPull, missing) {
return [
+40 -40
View File
@@ -4,9 +4,9 @@ name: Backend compile checks
# exists for another backend (or an API a toolkit version dropped) fails here instead of on a user's machine. Hardware runs are separate.
# CUDA 12.9 and 13.0 nvidia/cuda devel container target strata (no MMQ, the default) (CMake preset cuda-compile)
# HIP (ROCm 7.2) rocm/dev container target strata (CMake preset hip-compile)
# SYCL (oneAPI 2026.1) ubuntu + Intel's apt repo target strata of sycl/ (the commands of packaging/build_sycl_linux.sh)
# Metal macOS runner target strata (metal/; metal-build.yml keeps its own strata build)
# ggml comes from the vendored third_party/strata-ggml (frozen at llama.cpp's pin), the same tree the release builds use: nothing is downloaded.
# SYCL (oneAPI 2026.1) ubuntu + Intel's apt repo target strata of engine/sycl/ (the commands of tools/packaging/build_sycl_linux.sh)
# Metal macOS runner target strata (engine/metal/; metal-build.yml keeps its own strata build)
# ggml comes from the vendored engine/third_party/strata-ggml (frozen at llama.cpp's pin), the same tree the release builds use: nothing is downloaded.
# Architectures are fewer than the release package's (compile time); the flags that decide which sources and defines are built are the release's.
on:
@@ -14,33 +14,33 @@ on:
branches: [main]
paths:
- .github/workflows/backends.yml
- CMakeLists.txt
- CMakePresets.json
- cmake/**
- src/**
- include/**
- third_party/**
- sycl/**
- metal/**
- setup.py
- packaging/build_cuda_linux.sh
- packaging/build_hip_linux.sh
- packaging/build_sycl_linux.sh
- engine/CMakeLists.txt
- engine/CMakePresets.json
- engine/cmake/**
- engine/src/**
- engine/include/**
- engine/third_party/**
- engine/sycl/**
- engine/metal/**
- terminal/setup.py
- tools/packaging/build_cuda_linux.sh
- tools/packaging/build_hip_linux.sh
- tools/packaging/build_sycl_linux.sh
pull_request:
paths:
- .github/workflows/backends.yml
- CMakeLists.txt
- CMakePresets.json
- cmake/**
- src/**
- include/**
- third_party/**
- sycl/**
- metal/**
- setup.py
- packaging/build_cuda_linux.sh
- packaging/build_hip_linux.sh
- packaging/build_sycl_linux.sh
- engine/CMakeLists.txt
- engine/CMakePresets.json
- engine/cmake/**
- engine/src/**
- engine/include/**
- engine/third_party/**
- engine/sycl/**
- engine/metal/**
- terminal/setup.py
- tools/packaging/build_cuda_linux.sh
- tools/packaging/build_hip_linux.sh
- tools/packaging/build_sycl_linux.sh
workflow_dispatch:
permissions:
@@ -64,7 +64,7 @@ jobs:
fail-fast: false
matrix:
include:
# the cuda12 package is the one for Pascal and Volta: sm_60 needs STRATA_EXPERIMENTAL_SM60 (packaging/build_cuda_linux.sh)
# the cuda12 package is the one for Pascal and Volta: sm_60 needs STRATA_EXPERIMENTAL_SM60 (tools/packaging/build_cuda_linux.sh)
- { cuda: '12.9', image: '12.9.1-devel-ubuntu24.04', archs: '60-real;61-real;70-real;86-real', sm60: 'ON' }
- { cuda: '13.0', image: '13.0.2-devel-ubuntu24.04', archs: '75-real;86-real;120-real', sm60: 'OFF' }
steps:
@@ -79,12 +79,12 @@ jobs:
- uses: actions/cache@v4
with:
path: .ccache
key: ccache-cuda${{ matrix.cuda }}-${{ hashFiles('CMakeLists.txt', 'src/**', 'include/**', 'cmake/**') }}
key: ccache-cuda${{ matrix.cuda }}-${{ hashFiles('engine/CMakeLists.txt', 'engine/src/**', 'engine/include/**', 'engine/cmake/**') }}
restore-keys: ccache-cuda${{ matrix.cuda }}-
- name: Configure (preset cuda-compile)
run: |
nvcc --version | tail -2
cmake --preset cuda-compile -B build \
cmake -S engine --preset cuda-compile -B build \
"-DCMAKE_CUDA_ARCHITECTURES=${{ matrix.archs }}" -DSTRATA_EXPERIMENTAL_SM60=${{ matrix.sm60 }} \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache
- name: Build strata
@@ -109,12 +109,12 @@ jobs:
- uses: actions/cache@v4
with:
path: .ccache
key: ccache-hip72-${{ hashFiles('CMakeLists.txt', 'src/**', 'include/**', 'cmake/**') }}
key: ccache-hip72-${{ hashFiles('engine/CMakeLists.txt', 'engine/src/**', 'engine/include/**', 'engine/cmake/**') }}
restore-keys: ccache-hip72-
- name: Configure (preset hip-compile)
run: |
/opt/rocm/llvm/bin/clang++ --version | head -1
cmake --preset hip-compile -B build \
cmake -S engine --preset hip-compile -B build \
-DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ -DCMAKE_HIP_COMPILER_ROCM_ROOT=/opt/rocm -DCMAKE_PREFIX_PATH=/opt/rocm \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_HIP_COMPILER_LAUNCHER=ccache
- name: Build strata
@@ -123,7 +123,7 @@ jobs:
run: ccache -s | head -8
sycl:
# The engine needs oneAPI 2026.1 or newer (sycl/include/dpct/util.hpp uses the entangle and chunked_partition extensions, which the
# The engine needs oneAPI 2026.1 or newer (engine/sycl/include/dpct/util.hpp uses the entangle and chunked_partition extensions, which the
# 2025.3.2 compiler does not have: it stops at "no member named 'entangle'"; the intel/oneapi-basekit images end at 2025.3), so the
# compiler comes from Intel's apt repository at a pinned version.
name: SYCL oneAPI 2026.1
@@ -146,14 +146,14 @@ jobs:
- uses: actions/cache@v4
with:
path: .ccache
key: ccache-sycl-${{ hashFiles('CMakeLists.txt', 'src/**', 'include/**', 'sycl/**') }}
key: ccache-sycl-${{ hashFiles('engine/CMakeLists.txt', 'engine/src/**', 'engine/include/**', 'engine/sycl/**') }}
restore-keys: ccache-sycl-
- name: Configure and build (the commands of packaging/build_sycl_linux.sh)
- name: Configure and build (the commands of tools/packaging/build_sycl_linux.sh)
shell: bash
run: |
. /opt/intel/oneapi/setvars.sh --force >/dev/null
icpx --version | head -1
cmake -S sycl -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx \
cmake -S engine/sycl -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx \
-DSTRATA_SYCL_PARITY=OFF -DSTRATA_SYCL_IQ_DECODE_FAST=ON \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build --target strata -j "$(nproc)"
@@ -162,11 +162,11 @@ jobs:
metal:
name: Metal strata
# the macOS 26 SDK: metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 behind @available (a run-time check); the names must be in the SDK
# the macOS 26 SDK: engine/metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 behind @available (a run-time check); the names must be in the SDK
runs-on: macos-26
timeout-minutes: 60
env:
# metal/setup_mac.py's metal-cpp pin (the same as metal-build.yml)
# engine/metal/setup_mac.py's metal-cpp pin (the same as metal-build.yml)
METAL_CPP_URL: https://developer.apple.com/metal/cpp/files/metal-cpp_26.zip
METAL_CPP_SHA256: 4df3c078b9aadcb516212e9cb03004cbc5ce9a3e9c068fa3144d021db585a3a4
steps:
@@ -183,11 +183,11 @@ jobs:
- uses: actions/cache@v4
with:
path: .ccache
key: ccache-metal-${{ hashFiles('CMakeLists.txt', 'src/**', 'include/**', 'metal/**') }}
key: ccache-metal-${{ hashFiles('engine/CMakeLists.txt', 'engine/src/**', 'engine/include/**', 'engine/metal/**') }}
restore-keys: ccache-metal-
- name: Configure
run: |
cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
cmake -S engine/metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DMETAL_CPP_DIR="$PWD/_mcpp/metal-cpp" \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Build and link strata
+52 -52
View File
@@ -11,51 +11,51 @@ on:
- .github/workflows/check.yml
- tools/check
- requirements*.txt
- CMakeLists.txt
- CMakePresets.json
- cmake/**
- src/**
- include/**
- bench/micro/**
- third_party/**
- engine/CMakeLists.txt
- engine/CMakePresets.json
- engine/cmake/**
- engine/src/**
- engine/include/**
- engine/bench/micro/**
- engine/third_party/**
- tests/**
- serve/**
- strata.py
- setup.py
- strata_cli/**
- strata_control/**
- tools/**
- packaging/**
- docker/**
- apps/host/**
- apps/desktop/**
- metal/**
- sycl/**
- terminal/serve/**
- terminal/strata.py
- terminal/setup.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/tools/**
- tools/packaging/**
- tools/docker/**
- app/host/**
- app/desktop/**
- engine/metal/**
- engine/sycl/**
pull_request:
paths:
- .github/workflows/check.yml
- tools/check
- requirements*.txt
- CMakeLists.txt
- CMakePresets.json
- cmake/**
- src/**
- include/**
- bench/micro/**
- third_party/**
- engine/CMakeLists.txt
- engine/CMakePresets.json
- engine/cmake/**
- engine/src/**
- engine/include/**
- engine/bench/micro/**
- engine/third_party/**
- tests/**
- serve/**
- strata.py
- setup.py
- strata_cli/**
- strata_control/**
- tools/**
- packaging/**
- docker/**
- apps/host/**
- apps/desktop/**
- metal/**
- sycl/**
- terminal/serve/**
- terminal/strata.py
- terminal/setup.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/tools/**
- tools/packaging/**
- tools/docker/**
- app/host/**
- app/desktop/**
- engine/metal/**
- engine/sycl/**
workflow_dispatch:
permissions:
@@ -76,8 +76,8 @@ jobs:
include:
- { name: cpu CMake preset, only: cmake-cpu }
- { name: Python tests/, only: py-tests }
- { name: Python serve/, only: py-serve }
- { name: Python tools/, only: py-tools }
- { name: Python terminal/serve/, only: py-serve }
- { name: Python terminal/tools/, only: py-tools }
- { name: host typecheck + test + build, only: "host-typecheck,host-test,host-build" }
steps:
- uses: actions/checkout@v4
@@ -93,9 +93,9 @@ jobs:
with:
node-version: '24'
cache: npm
cache-dependency-path: apps/host/package-lock.json
cache-dependency-path: app/host/package-lock.json
- name: Python packages
run: python -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-build.txt
run: python -m pip install -r terminal/requirements.txt -r terminal/requirements-dev.txt -r terminal/requirements-build.txt
- name: tools/check
run: python tools/check --only "${{ matrix.only }}" --keep --scratch "$RUNNER_TEMP/check" --json "$RUNNER_TEMP/check/result.json"
- name: Logs
@@ -118,8 +118,8 @@ jobs:
include:
- { name: cpu CMake preset (MSVC), only: cmake-cpu }
- { name: Python tests/, only: py-tests }
- { name: Python serve/, only: py-serve }
- { name: Python tools/, only: py-tools }
- { name: Python terminal/serve/, only: py-serve }
- { name: Python terminal/tools/, only: py-tools }
- { name: host typecheck + test + build, only: "host-typecheck,host-test,host-build" }
steps:
- uses: actions/checkout@v4
@@ -135,9 +135,9 @@ jobs:
with:
node-version: '24'
cache: npm
cache-dependency-path: apps/host/package-lock.json
cache-dependency-path: app/host/package-lock.json
- name: Python packages
run: python -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-build.txt
run: python -m pip install -r terminal/requirements.txt -r terminal/requirements-dev.txt -r terminal/requirements-build.txt
# Diagnostic, not a check: what a Windows PowerShell 5.1 child returns when its parent runs under PowerShell 7 (a user who starts
# the app or `strata` from a PowerShell 7 window). The tests drop PowerShell 7's PSModulePath entries; the product does not yet.
- name: PowerShell 7 parent (diagnostic)
@@ -151,10 +151,10 @@ jobs:
"--- powershell.exe Get-CimInstance | Select-Object (as hardware.mjs)"
powershell.exe -NoProfile -NonInteractive -Command "Get-CimInstance Win32_VideoController | Select-Object Name,PNPDeviceID | ConvertTo-Json -Compress"
"exit $LASTEXITCODE"
"--- the host's hardware probe (apps/host/server/hardware.mjs detect)"
"--- the host's hardware probe (app/host/server/hardware.mjs detect)"
node -e "import('./apps/host/server/hardware.mjs').then(m => m.detect({ force: true })).then(h => console.log(JSON.stringify({ cpu: h.cpu, gpus: h.gpus })), e => console.log('ERROR', e && e.stack))"
"--- setup.py cpu_info (powershell Get-CimInstance Win32_Processor)"
python -c "import setup; print(repr(setup.cpu_info()))"
"--- terminal/setup.py cpu_info (powershell Get-CimInstance Win32_Processor)"
python -c "import sys; sys.path.insert(0, 'terminal'); import setup; print(repr(setup.cpu_info()))"
# tools/check finds Visual Studio's compiler itself (vcvars64.bat); bash is Git for Windows' (the tester-README tests need it)
- name: tools/check
run: python tools/check --only "${{ matrix.only }}" --keep --scratch "$env:RUNNER_TEMP\check" --json "$env:RUNNER_TEMP\check\result.json"
@@ -179,7 +179,7 @@ jobs:
fail-fast: false
matrix:
include:
- { name: Python tools/, only: py-tools }
- { name: Python terminal/tools/, only: py-tools }
- { name: host typecheck + test + build, only: "host-typecheck,host-test,host-build" }
steps:
- uses: actions/checkout@v4
@@ -195,9 +195,9 @@ jobs:
with:
node-version: '24'
cache: npm
cache-dependency-path: apps/host/package-lock.json
cache-dependency-path: app/host/package-lock.json
- name: Python packages
run: python -m pip install -r requirements.txt -r requirements-dev.txt
run: python -m pip install -r terminal/requirements.txt -r terminal/requirements-dev.txt
- name: tools/check
run: python tools/check --only "${{ matrix.only }}" --keep --scratch "$RUNNER_TEMP/check" --json "$RUNNER_TEMP/check/result.json"
- name: Logs
+5 -5
View File
@@ -4,8 +4,8 @@ name: Docker images
# Run by hand only (Actions tab -> Docker images -> Run workflow). Nothing starts it on its own.
#
# For each flavor the job downloads the engine package from the release and checks it against the signed update feed
# (docker/fetch-engines.py: the feed's Ed25519 signature, the archive's SHA-256, the manifest hash, the package signature,
# every file's hash), builds the image with docker/build.sh and, only when "push" is on, pushes
# (tools/docker/fetch-engines.py: the feed's Ed25519 signature, the archive's SHA-256, the manifest hash, the package signature,
# every file's hash), builds the image with tools/docker/build.sh and, only when "push" is on, pushes
# ghcr.io/niko1221/strata:<version>-<flavor> and ghcr.io/niko1221/strata:latest-<flavor>
# The first run with "push" off builds everything without publishing it (a dry run).
@@ -32,7 +32,7 @@ on:
default: true
type: boolean
source_ref:
description: 'Git ref of the Dockerfile and the Terminal sources (empty: the release tag)'
description: 'Git ref of the tools/docker/Dockerfile.src and the Terminal sources (empty: the release tag)'
required: false
default: ''
type: string
@@ -61,7 +61,7 @@ jobs:
set -eu
args="--release-tag $TAG --list --skip-missing"
[ -n "$WANT" ] && args="$args --flavors $WANT"
python3 docker/fetch-engines.py $args > list.tsv
python3 tools/docker/fetch-engines.py $args > list.tsv
cat list.tsv
flavors=$(awk -F'\t' '$3 != "SKIP" {printf "%s\"%s\"", (n++ ? "," : ""), $1}' list.tsv)
[ -n "$flavors" ] || { echo "the release has no engine package for any requested flavor"; exit 1; }
@@ -101,7 +101,7 @@ jobs:
PUSH: ${{ inputs.push && '--push' || '' }}
LATEST: ${{ !inputs.latest && '--no-latest' || '' }}
run: |
docker/publish.sh --release-tag "$TAG" --flavors "$FLAVOR" --image "$IMAGE" $PUSH $LATEST
tools/docker/publish.sh --release-tag "$TAG" --flavors "$FLAVOR" --image "$IMAGE" $PUSH $LATEST
- name: Summary
if: ${{ always() }}
run: |
+11 -11
View File
@@ -3,7 +3,7 @@ name: Docs
# The documentation checks (python tools/check --only docs): every local link in the current pages resolves, the version lines and
# installer names agree with docs/data/release.json, the capability table and its summaries are what docs/data/capabilities.json says, and the
# settings page matches the register. Python standard library only; nothing is built, downloaded or run on a GPU.
# Archived pages (history/, release notes, bench/results) are not checked; their baseline is history/LINK-BASELINE.md.
# Archived pages (docs/history/, release notes, docs/bench-results) are not checked; their baseline is history/LINK-BASELINE.md.
on:
push:
@@ -13,34 +13,34 @@ on:
- '**/*.md'
- docs/data/release.json
- docs/data/capabilities.json
- data/settings-register.json
- terminal/data/settings-register.json
- tools/check
- tools/check_links.py
- tools/doc_pages.py
- tools/release_manifest.py
- tools/capability_table.py
- tools/settings_register.py
- strata_cli/__init__.py
- CMakeLists.txt
- apps/host/package.json
- apps/desktop/package.json
- terminal/strata_cli/__init__.py
- engine/CMakeLists.txt
- app/host/package.json
- app/desktop/package.json
pull_request:
paths:
- .github/workflows/docs.yml
- '**/*.md'
- docs/data/release.json
- docs/data/capabilities.json
- data/settings-register.json
- terminal/data/settings-register.json
- tools/check
- tools/check_links.py
- tools/doc_pages.py
- tools/release_manifest.py
- tools/capability_table.py
- tools/settings_register.py
- strata_cli/__init__.py
- CMakeLists.txt
- apps/host/package.json
- apps/desktop/package.json
- terminal/strata_cli/__init__.py
- engine/CMakeLists.txt
- app/host/package.json
- app/desktop/package.json
permissions:
contents: read
+1 -1
View File
@@ -1,6 +1,6 @@
name: Intake
# New issues and pull requests that do not follow CONTRIBUTING.md get the needs-format label and one friendly note.
# New issues and pull requests that do not follow .github/CONTRIBUTING.md get the needs-format label and one friendly note.
# Items that keep the label for 5 days are closed by the daily sweep, with a note on how to /reopen.
#
# pull_request_target is used instead of pull_request on purpose: a pull request from a fork gets a read-only
+9 -9
View File
@@ -1,17 +1,17 @@
name: Metal build
# Compile and link the Metal engine on a macOS runner (no GPU needed: the kernels are compiled at run time). The shared host files
# (src/core/verify.cpp, src/prefill, src/program/generate.cpp) call kernel entry points that exist only for CUDA / HIP until Metal gets a
# (engine/src/core/verify.cpp, engine/src/prefill, engine/src/program/generate.cpp) call kernel entry points that exist only for CUDA / HIP until Metal gets a
# stub or an implementation; a missing one is a link error here, not on a user's Mac (owner round 9, G6).
on:
pull_request:
paths:
- 'src/**'
- 'include/**'
- 'metal/**'
- 'third_party/**'
- 'CMakeLists.txt'
- 'engine/src/**'
- 'engine/include/**'
- 'engine/metal/**'
- 'engine/third_party/**'
- 'engine/CMakeLists.txt'
- '.github/workflows/metal-build.yml'
workflow_dispatch:
@@ -20,12 +20,12 @@ permissions:
jobs:
metal-link:
# the macOS 26 SDK: metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 (and MTLCompileOptions.mathMode, macOS 15) behind @available,
# the macOS 26 SDK: engine/metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 (and MTLCompileOptions.mathMode, macOS 15) behind @available,
# which is a run-time check; the names must still be in the SDK the engine is compiled against
runs-on: macos-26
timeout-minutes: 45
env:
# metal/setup_mac.py's metal-cpp pin (ggml is the vendored third_party/strata-ggml)
# engine/metal/setup_mac.py's metal-cpp pin (ggml is the vendored engine/third_party/strata-ggml)
METAL_CPP_URL: https://developer.apple.com/metal/cpp/files/metal-cpp_26.zip
METAL_CPP_SHA256: 4df3c078b9aadcb516212e9cb03004cbc5ce9a3e9c068fa3144d021db585a3a4
steps:
@@ -39,6 +39,6 @@ jobs:
unzip -q metal-cpp.zip -d _mcpp
- name: Configure
run: |
cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
cmake -S engine/metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DMETAL_CPP_DIR="$PWD/_mcpp/metal-cpp" - name: Build and link the engine
run: cmake --build build-metal --target strata
+23 -23
View File
@@ -1,39 +1,39 @@
name: Config snapshot
# tests/snapshot: what `strata launch`, the app's plain Load and the app's Models-screen Load hand the engine (arguments, environment, drafter,
# terminal/tests/snapshot: what `strata launch`, the app's plain Load and the app's Models-screen Load hand the engine (arguments, environment, drafter,
# confidence), for every simulated machine class and model set, against the golden files in tests/snapshot/golden. Nothing is loaded,
# downloaded or run on a GPU. Windows and Linux must give byte-identical output, so both run. A change that moves what users
# get has to update the golden files in the same commit (STRATA_SNAPSHOT_UPDATE=1 python -m pytest tests/snapshot, see tests/snapshot/README.md).
# get has to update the golden files in the same commit (STRATA_SNAPSHOT_UPDATE=1 python -m pytest terminal/tests/snapshot, see terminal/tests/snapshot/README.md).
on:
push:
branches: [main]
paths:
- .github/workflows/snapshot.yml
- tests/snapshot/**
- serve/**
- strata_cli/**
- strata_control/**
- setup.py
- strata.py
- terminal/tests/snapshot/**
- terminal/serve/**
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/setup.py
- terminal/strata.py
- requirements*.txt
- apps/host/server/**
- apps/host/package*.json
- packaging/**
- app/host/server/**
- app/host/package*.json
- tools/packaging/**
- tools/check
pull_request:
paths:
- .github/workflows/snapshot.yml
- tests/snapshot/**
- serve/**
- strata_cli/**
- strata_control/**
- setup.py
- strata.py
- terminal/tests/snapshot/**
- terminal/serve/**
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/setup.py
- terminal/strata.py
- requirements*.txt
- apps/host/server/**
- apps/host/package*.json
- packaging/**
- app/host/server/**
- app/host/package*.json
- tools/packaging/**
- tools/check
workflow_dispatch:
@@ -74,11 +74,11 @@ jobs:
with:
node-version: '24'
cache: npm
cache-dependency-path: apps/host/package-lock.json
cache-dependency-path: app/host/package-lock.json
- name: Python packages
run: python -m pip install -r requirements.txt -r requirements-dev.txt
run: python -m pip install -r terminal/requirements.txt -r terminal/requirements-dev.txt
- name: Host packages (the app's Load runs in Node)
working-directory: apps/host
working-directory: app/host
run: npm ci --no-audit --no-fund
- name: tools/check snapshot
run: python tools/check --only snapshot --keep --scratch "${{ runner.temp }}/check" --timeout-scale ${{ matrix.timeout_scale }}
+19 -19
View File
@@ -4,25 +4,25 @@ on:
push:
paths:
- .github/workflows/terminal-minimal-server.yml
- requirements.txt
- strata.py
- strata_cli/**
- strata_control/**
- serve/**
- tests/terminal/test_runtime.py
- tools/minimal_server_smoke.py
- tools/strata_tokenizer.py
- terminal/requirements.txt
- terminal/strata.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/serve/**
- terminal/tests/terminal/test_runtime.py
- terminal/tools/minimal_server_smoke.py
- terminal/tools/strata_tokenizer.py
pull_request:
paths:
- .github/workflows/terminal-minimal-server.yml
- requirements.txt
- strata.py
- strata_cli/**
- strata_control/**
- serve/**
- tests/terminal/test_runtime.py
- tools/minimal_server_smoke.py
- tools/strata_tokenizer.py
- terminal/requirements.txt
- terminal/strata.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/serve/**
- terminal/tests/terminal/test_runtime.py
- terminal/tools/minimal_server_smoke.py
- terminal/tools/strata_tokenizer.py
workflow_dispatch:
permissions:
@@ -44,7 +44,7 @@ jobs:
shell: bash
run: |
python -m venv "$RUNNER_TEMP/strata-runtime-venv"
"$RUNNER_TEMP/strata-runtime-venv/bin/python" -m pip install -r requirements.txt
"$RUNNER_TEMP/strata-runtime-venv/bin/python" -m pip install -r terminal/requirements.txt
- name: Check fake-engine serving without terminal packages
shell: bash
run: |
@@ -55,11 +55,11 @@ jobs:
report = Path(os.environ['RUNNER_TEMP']) / 'minimal-server-smoke.json'
python = str(Path(os.environ['RUNNER_TEMP']) / 'strata-runtime-venv' / 'bin' / 'python')
subprocess.run([python, 'tools/minimal_server_smoke.py',
subprocess.run([python, 'terminal/tools/minimal_server_smoke.py',
'--report', str(report)], check=True)
print(report.read_text())
PY
- name: Run full server suite without terminal packages
shell: bash
run: |
"$RUNNER_TEMP/strata-runtime-venv/bin/python" -m unittest discover -s serve -p 'test_*.py'
"$RUNNER_TEMP/strata-runtime-venv/bin/python" -m unittest discover -s terminal/serve -p 'test_*.py'
+22 -22
View File
@@ -4,26 +4,26 @@ on:
push:
paths:
- .github/workflows/terminal-portable-monitor.yml
- packaging/monitor_bundle.py
- strata.py
- strata_cli/**
- strata_control/**
- tools/minimal_cli_smoke.py
- tools/portable_monitor_smoke.py
- tools/portable_monitor_pty_smoke.py
- requirements-monitor.txt
- tools/packaging/monitor_bundle.py
- terminal/strata.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/tools/minimal_cli_smoke.py
- terminal/tools/portable_monitor_smoke.py
- terminal/tools/portable_monitor_pty_smoke.py
- terminal/requirements-monitor.txt
- LICENSE
pull_request:
paths:
- .github/workflows/terminal-portable-monitor.yml
- packaging/monitor_bundle.py
- strata.py
- strata_cli/**
- strata_control/**
- tools/minimal_cli_smoke.py
- tools/portable_monitor_smoke.py
- tools/portable_monitor_pty_smoke.py
- requirements-monitor.txt
- tools/packaging/monitor_bundle.py
- terminal/strata.py
- terminal/strata_cli/**
- terminal/strata_control/**
- terminal/tools/minimal_cli_smoke.py
- terminal/tools/portable_monitor_smoke.py
- terminal/tools/portable_monitor_pty_smoke.py
- terminal/requirements-monitor.txt
- LICENSE
workflow_dispatch:
@@ -56,7 +56,7 @@ jobs:
from pathlib import Path
report = Path(os.environ['RUNNER_TEMP']) / 'minimal-cli-smoke.json'
subprocess.run([sys.executable, 'tools/minimal_cli_smoke.py',
subprocess.run([sys.executable, 'terminal/tools/minimal_cli_smoke.py',
'--report', str(report)], check=True)
print(report.read_text())
PY
@@ -71,15 +71,15 @@ jobs:
bundle = Path(os.environ['RUNNER_TEMP']) / 'strata-monitor.pyz'
report = bundle.with_name('monitor-stdlib-smoke.json')
subprocess.run([sys.executable, 'packaging/monitor_bundle.py',
subprocess.run([sys.executable, 'tools/packaging/monitor_bundle.py',
'build', str(bundle)], check=True)
subprocess.run([sys.executable, 'tools/portable_monitor_smoke.py',
subprocess.run([sys.executable, 'terminal/tools/portable_monitor_smoke.py',
'--bundle', str(bundle), '--report', str(report)], check=True)
print(report.read_text())
PY
- name: Install optional Textual dependency
if: matrix.python == '3.11'
run: python -m pip install -r requirements-monitor.txt
run: python -m pip install -r terminal/requirements-monitor.txt
- name: Smoke test packaged interactive Overview
if: matrix.python == '3.11'
shell: bash
@@ -92,7 +92,7 @@ jobs:
bundle = Path(os.environ['RUNNER_TEMP']) / 'strata-monitor.pyz'
report = bundle.with_name('monitor-interactive-smoke.json')
subprocess.run([sys.executable, 'tools/portable_monitor_smoke.py',
subprocess.run([sys.executable, 'terminal/tools/portable_monitor_smoke.py',
'--bundle', str(bundle), '--interactive',
'--report', str(report)], check=True)
print(report.read_text())
@@ -109,7 +109,7 @@ jobs:
bundle = Path(os.environ['RUNNER_TEMP']) / 'strata-monitor.pyz'
report = bundle.with_name('monitor-pty-smoke.json')
subprocess.run([sys.executable, 'tools/portable_monitor_pty_smoke.py',
subprocess.run([sys.executable, 'terminal/tools/portable_monitor_pty_smoke.py',
'--bundle', str(bundle), '--report', str(report)], check=True)
print(report.read_text())
PY
+54 -27
View File
@@ -1,13 +1,13 @@
# Generated, not source: deterministic build products of tools/ (see docs/).
# Generated, not source: deterministic build products of terminal/tools/ (see docs/).
# tiny-qwen4exp.gguf is ~113 MB, over GitHub's 100 MB file limit -- regenerate with
# python tools/make_tiny_model.py
bench/tiny-*.gguf
bench/wide-*.gguf
bench/micro/*.exe
bench/micro/*.obj
bench/micro/*.bin
bench/micro/*.dll
bench/micro/*.txt
# python terminal/tools/make_tiny_model.py
tools/bench/tiny-*.gguf
tools/bench/wide-*.gguf
engine/bench/micro/*.exe
engine/bench/micro/*.obj
engine/bench/micro/*.bin
engine/bench/micro/*.dll
engine/bench/micro/*.txt
*.log
build*/
pack/
@@ -25,46 +25,68 @@ __pycache__/
*.occ1
td.log
# created by setup.py on the user's machine
# created by terminal/setup.py on the user's machine
/terminal/.venv/
/.venv/
/terminal/build/
/build/
/third_party/llama.cpp
/engine/third_party/llama.cpp
/terminal/third_party/llama.cpp
/terminal/models/
/models/
/terminal/packs/
/packs/
/terminal/mtp/
/mtp/
/terminal/run-*.bat
/run-*.bat
/terminal/run-*.sh
/run-*.sh
/terminal/strata-*.json
/strata-*.json
/terminal/strata-*.log
/strata-*.log
/terminal/build-strata.bat
/build-strata.bat
/terminal/build-strata-cuda12.bat
/build-strata-cuda12.bat
/terminal/build-cuda12/
/build-cuda12/
/terminal/.strata-mcp/
/.strata-mcp/
# image encoder (setup.py --vision): build output and the generated build script
# image encoder (terminal/setup.py --vision): build output and the generated build script
build-vision*/
build-vision.bat
build-vision-cuda12.bat
# setup.py outputs (engine, downloads) and release builds
/engine/
# terminal/setup.py outputs (engine, downloads) and release builds
/terminal/engine/
/terminal/engine-sycl/
/engine-sycl/
/terminal/engine-cuda12/
/engine-cuda12/
/terminal/build-release*/
/build-release*/
/terminal/dist/
/dist/
*.done
/third_party/*.zip
/engine/third_party/*.zip
/terminal/third_party/*.zip
# IDEs
.vscode/
.idea/
.cursor/
/terminal/.ccache/
/.ccache/
/terminal/.rocm-win/
/.rocm-win/
# Optional MCP raster cache
*.tool-media/
/terminal/.tool-media/
/.tool-media/
# local Windows HIP packaging output
@@ -75,23 +97,28 @@ dist-hip/
.terminal-test-venv/
node_modules/
*.dmg
/terminal/release/artifacts/
/release/artifacts/
/apps/host/dist/
/apps/desktop/src-tauri/target/
/apps/desktop/src-tauri/resources/node/*
!/apps/desktop/src-tauri/resources/node/.gitignore
# the Control component (bundled CPython + wheels + strata_control) is built by apps/desktop/scripts/stage-control.py
/apps/desktop/src-tauri/resources/control/*
!/apps/desktop/src-tauri/resources/control/.gitignore
# the pruned DeepSeek Harness (MIT) is built by apps/desktop/scripts/stage-harness.mjs
/apps/desktop/src-tauri/resources/harness/*
!/apps/desktop/src-tauri/resources/harness/.gitignore
/app/host/dist/
/app/desktop/src-tauri/target/
/app/desktop/src-tauri/resources/node/*
!/app/desktop/src-tauri/resources/node/.gitignore
# the Control component (bundled CPython + wheels + strata_control) is built by app/desktop/scripts/stage-control.py
/app/desktop/src-tauri/resources/control/*
!/app/desktop/src-tauri/resources/control/.gitignore
# the pruned DeepSeek Harness (MIT) is built by app/desktop/scripts/stage-harness.mjs
/app/desktop/src-tauri/resources/harness/*
!/app/desktop/src-tauri/resources/harness/.gitignore
# screenshots and checkpoints from the Mac rebuild live outside git (StrataSplit\evidence-archive)
/apps/host/docs/evidence/
/apps/host/docs/checkpoints/
/app/host/docs/evidence/
/app/host/docs/checkpoints/
# DGX Spark build outputs and local venv (docs/DGX_SPARK_LINUX.md)
/terminal/out-spark/
/out-spark/
/terminal/build-spark/
/build-spark/
/terminal/build-vision-spark/
/build-vision-spark/
/terminal/.venv-build/
/.venv-build/
+2 -2
View File
@@ -68,7 +68,7 @@ Source setup does not make an unsupported model or backend compatible. Strata's
- How the engine works, every measured number, the API and all settings: [docs/DETAILS.md](docs/DETAILS.md) and
the [paper](docs/paper/Strata-Paper.pdf).
- The Terminal: [docs/TERMINAL.md](docs/TERMINAL.md) and [docs/TERMINAL_LAUNCH.md](docs/TERMINAL_LAUNCH.md). The app,
the packages and the update feed: [packaging/README.md](packaging/README.md) and [packaging/UPDATES.md](packaging/UPDATES.md).
the packages and the update feed: [packaging/README.md](tools/packaging/README.md) and [packaging/UPDATES.md](tools/packaging/UPDATES.md).
- AMD (HIP) build and validation: [docs/AMD_HIP.md](docs/AMD_HIP.md); multi-GPU: [docs/MULTI_GPU.md](docs/MULTI_GPU.md);
Mac (Metal): [docs/MAC.md](docs/MAC.md).
- Tests: the Terminal and Control tests are in `tests/terminal` (`python -m pytest tests/terminal`). The app's UI
@@ -79,7 +79,7 @@ Source setup does not make an unsupported model or backend compatible. Strata's
## Contributing a change or report
The rules are in **[CONTRIBUTING.md](CONTRIBUTING.md)**. Read it before you open an issue or a pull request, and
The rules are in **[CONTRIBUTING.md](.github/CONTRIBUTING.md)**. Read it before you open an issue or a pull request, and
follow it whether a person or an agent writes the text. The short version:
- Start every issue and pull request title with its area: `[Engine]`, `[GUI]`, `[TUI]`, `[Benchmark]`, `[Docs]` or
+3 -3
View File
@@ -1,7 +1,7 @@
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="apps/host/public/brand/strata-lockup-dark.svg">
<img src="apps/host/public/brand/strata-lockup-light.svg" alt="Strata" width="340">
<img src="app/host/public/brand/strata-lockup-light.svg" alt="Strata" width="340">
</picture>
</p>
@@ -21,7 +21,7 @@
<a href="https://buymeacoffee.com/strataengine"><img src="https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buymeacoffee&logoColor=000" alt="Support Strata on Buy Me a Coffee"></a>
</p>
<p align="center"><sub><b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.de.md">Deutsch</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.pl.md">Polski</a></sub></p>
<p align="center"><sub><b>English</b> · <a href="docs/lang/README.zh-CN.md">简体中文</a> · <a href="docs/lang/README.ja.md">日本語</a> · <a href="docs/lang/README.de.md">Deutsch</a> · <a href="docs/lang/README.fr.md">Français</a> · <a href="docs/lang/README.es.md">Español</a> · <a href="docs/lang/README.pt-BR.md">Português</a> · <a href="docs/lang/README.pl.md">Polski</a></sub></p>
**Free, open source, and yours to run.** Use Strata on your desktop or with your favorite coding tools. No account needed.
@@ -144,7 +144,7 @@ Run **`strata connect`** to see setup instructions for your tool. [Connection gu
## Help
[All guides](docs) · [Troubleshooting](docs/TROUBLESHOOTING.md) · [Report a bug](https://github.com/Niko1221/Strata/issues/new/choose) ·
[Benchmarks](docs/COMMUNITY_BENCHMARKS.md) · [How it works](docs/HOW_IT_WORKS.md) · [Contribute](CONTRIBUTING.md)
[Benchmarks](docs/COMMUNITY_BENCHMARKS.md) · [How it works](docs/HOW_IT_WORKS.md) · [Contribute](.github/CONTRIBUTING.md)
## Support Strata
-3
View File
@@ -1,3 +0,0 @@
@echo off
rem Change settings or install another model (the same as START-HERE.bat --setup).
call "%~dp0START-HERE.bat" --setup %*
+6 -1
View File
@@ -6,8 +6,13 @@ rem Python reads and writes text as UTF-8, not in the Windows code page (cp1251,
set "PYTHONUTF8=1"
title Strata
cd /d "%~dp0"
rem the Terminal's sources and everything setup writes live in terminal\ (0.2.16 layout); an older clone's .venv moves there once
if exist "terminal\setup.py" (
if not exist "terminal\.venv" if exist ".venv\Scripts\python.exe" move ".venv" "terminal\.venv" >nul
cd /d "%~dp0terminal"
)
rem A bundled Python runtime (the python\ folder of the terminal archive) is used when it is there: nothing to find,
rem install or download. SETUP.bat and UPDATE.bat run this file, so they use it too.
rem install or download. (START-HERE.bat --setup, --update)
if exist "python\python.exe" goto bundled
if exist ".venv\Scripts\python.exe" goto run
-82
View File
@@ -1,82 +0,0 @@
@echo off
rem Update Strata without starting the model (#475): the newest code (git pull, when this folder is a git clone), then
rem what START-HERE.bat does before a start - the engine (a new one when this version needs it), the Python packages,
rem each installed model's settings and draft subset. The model files are not touched. Start the model later with
rem START-HERE.bat. Options are passed on to setup.py. The bundled Python (python\ beside this file) is used when
rem there is one: START-HERE.bat, which this file runs, picks it.
setlocal
title Strata - update
cd /d "%~dp0"
rem All of it in one block: cmd reads a .bat file while it runs it, and the git pull can change this very file.
(
if exist ".git" (
where git >nul 2>nul || (
echo This folder is a git clone, but git is not on PATH: install Git for Windows ^(winget install Git.Git^)
echo or run "git pull" here yourself, then run UPDATE.bat again.
pause
exit /b 1
)
echo Getting the newest Strata ^(git pull^) ...
git pull --ff-only
if errorlevel 1 (
rem The history was rewritten on 2026-10-06, see #1276: a clone from before has no commit in common with origin/main.
set "REWR="
git merge-base HEAD origin/main >nul 2>nul
if errorlevel 1 set "REWR=1"
git rev-parse --is-shallow-repository 2>nul | findstr /x true >nul && set "REWR="
if defined REWR (
echo.
echo This clone is on the repository's old history ^(cleaned up on 2026-10-06^): it has no commit in common
echo with origin/main, so it cannot be updated by git pull.
set "DIRTY="
for /f "delims=" %%i in ('git status --porcelain --untracked-files^=no') do set "DIRTY=1"
if defined DIRTY (
echo You have local changes to tracked files here, so nothing was touched. To move to the new history
echo yourself ^(your untracked files, models and settings stay where they are^):
echo git branch pre-cleanup-backup
echo git stash push
echo git checkout -B main origin/main
echo then run UPDATE.bat again.
pause
exit /b 1
)
set "BK=pre-cleanup-backup"
git rev-parse --verify -q refs/heads/pre-cleanup-backup >nul 2>nul && set "BK=pre-cleanup-backup-%RANDOM%"
set "BR=main"
for /f "delims=" %%i in ('git symbolic-ref --short -q HEAD 2^>nul') do set "BR=%%i"
call git branch %%BK%% HEAD
if errorlevel 1 (
echo Could not make the backup branch: nothing was updated.
pause
exit /b 1
)
call git checkout -q -B %%BR%% origin/main
if errorlevel 1 (
call git branch -D %%BK%% >nul 2>nul
echo.
echo Could not move to the new history ^(the reason is above^): nothing was updated. By hand:
echo git checkout -B main origin/main
pause
exit /b 1
)
call echo Moved to the new history. Your old commits are kept in the branch %%BK%%.
echo Untracked files ^(models, settings, the engine^) were not touched.
) else (
echo.
echo git pull did not succeed ^(the reason is above^): nothing was updated. Files you changed here can stop it:
echo "git status" lists them.
pause
exit /b 1
)
)
) else (
echo This copy of Strata was not made with git, so it cannot fetch new files itself. Download the newest one:
echo https://github.com/Niko1221/Strata/archive/refs/heads/main.zip
echo unzip it anywhere and run START-HERE.bat ^(or UPDATE.bat^) in it: it finds the model files in Strata-data
echo and sets itself up the same way - nothing big is downloaded again.
echo Checking this copy's engine and settings meanwhile ...
)
call "%~dp0START-HERE.bat" --update %*
if not errorlevel 1 pause
exit /b
)
File renamed without changes.
File renamed without changes.
@@ -27,7 +27,7 @@ import urllib.request
from ctypes import wintypes
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
ROOT = Path(__file__).resolve().parents[3] / "terminal"
sys.path.insert(0, str(ROOT))
import psutil # noqa: E402
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -31,7 +31,7 @@ from pathlib import Path
HERE = Path(__file__).resolve().parent
ROOT = HERE.parents[2]
OUT = HERE.parent / "src-tauri" / "resources" / "control"
sys.path.insert(0, str(ROOT / "packaging"))
sys.path.insert(0, str(ROOT / "tools" / "packaging"))
import package_terminal as pt # noqa: E402
@@ -44,7 +44,7 @@ def sha256(path: Path) -> str:
def build_archive(work: Path, wheelhouse: str | None) -> Path:
command = [sys.executable, str(ROOT / "packaging" / "package_terminal.py"), "--out", str(work)]
command = [sys.executable, str(ROOT / "tools" / "packaging" / "package_terminal.py"), "--out", str(work)]
if wheelhouse:
command += ["--wheelhouse", wheelhouse]
subprocess.run(command, check=True, cwd=str(ROOT))
@@ -81,7 +81,7 @@ local_imports = pt.local_imports
def add_installer(folder: Path) -> dict:
"""Copy the installer's files from the source tree into the staged Control (after the Terminal bundle is in place)."""
return pt.add_installer(folder, ROOT)
return pt.add_installer(folder, pt.ROOT)
#: What the other names of the interpreter become: Tauri copies a symlink as a full copy of its target, so `python`, `python3` and
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 433 B

After

Width:  |  Height:  |  Size: 433 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1004 B

After

Width:  |  Height:  |  Size: 1004 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 771 B

After

Width:  |  Height:  |  Size: 771 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 949 B

After

Width:  |  Height:  |  Size: 949 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 504 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1019 B

After

Width:  |  Height:  |  Size: 1019 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1019 B

After

Width:  |  Height:  |  Size: 1019 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 794 B

After

Width:  |  Height:  |  Size: 794 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1019 B

After

Width:  |  Height:  |  Size: 1019 B

Loaded 100 of 7472 files, more files were not shown because too many files have changed in this diff. Show more