* Replace Git LFS with a custom Hugging Face bucket client
* Address review findings in the custom LFS client
- A failed download leaves the pointer (also for delayed blobs) and
filter.lfs.required is false, so git commands finish and ./lfs.py pull
fills the files in later.
- install() also replaces the unquoted pre-push hook from #38775 and a stock
git-lfs hook that `op post-commit` moved into post-commit.d.
- .git/lfs.py and the pre-push hook are replaced atomically.
- Pushing LFS objects without a token prints a one-line hint.
- op warns when the installed LFS client is missing or outdated.
- Ranged downloads write into one preallocated file instead of
concatenating parts.
- hf-xet moves from the core dependencies to the tools extra.
* Drop the ~/.local/bin PATH addition left from the uv-run transfer agent
* Keep filter.lfs.required so a broken LFS client can't commit raw files
* Keep shipping .lfsconfig only with the big model
* Keep a custom pre-push hook instead of failing the LFS pull
* Let the setup clone use the configured LFS client
The HF LFS repo is mirrored from the bucket, so stock Git LFS can smudge the clone.
* Keep git working without python3 with an sh LFS filter
scripts/lfs-filter runs lfs.py, or without python3 has git abort LFS filtering and keep the pointer files, like the git-lfs shim did. A process filter that can't start otherwise makes git fail regardless of filter.lfs.required. The abort only lets git continue when the filter isn't required.
* Drop the sh LFS filter and require the LFS filter again
lfs.py lives in the git dir and only needs python3, so a missing or rebuilt
venv, or a worktree without one, can't break git like the old git-lfs shim
guarded against. The sh fallback for a machine without python3 needed
filter.lfs.required=false, which also let a failing clean commit the raw file.
This reverts commit 437711998981c8c7bf65c2878881c547516d681a.
* added Romanian localization
* ro: fix plurals, revert stale app.pot, sync with master
- add ro to PLURAL_SELECTORS and PLURAL_FORMS (3 forms, like uk); without the selector every trn() returned the singular
- app.pot back to master's (regenerated output is identical)
- regenerate app_ro.po: drop obsolete strings, translate Following Distance / Initial Max Speed
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* ui: decode HTML character references in HtmlRenderer
parse_markdown escapes & and " in the release notes, but HtmlRenderer drew
the entities as-is, so the 0.10.0 notes showed "Learning to Drive from
a World Model".
* remove test
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* Install the target checkout's LFS client when switching versions
* Remove unused checkout-pr.sh
* Only activate the venv for the op switch git lfs pull fallback
NavWidget moves with last_mouse_event while it is dragged down. This was
the last event of any finger, so a second finger made the widget jump
back and forth. All users of last_mouse_event (NavWidget, BigInputDialog
backspace hold, initial cruise speed tap) only use the first finger.
* ui: mici keyboard multitouch and stable two finger scroll
Keyboard: a second finger types the key of the first finger, same as
phone keyboards. A new press also clears the last key, so the key
hysteresis does not select it again during its unselect animation.
Scroll: only one finger moves the content. A new finger takes control
from its position, and when it lifts a finger that is still down takes
control from its last position, same as Android scroll views. Before,
events from both fingers mixed and the content jumped back and forth.
* ui: multitouch only in the mici keyboard
Widget, Button, and the tici keyboard go back to one finger (slot 0).
MiciKeyboard reads the events of all fingers itself. The scroll panel
uses only the first finger, same as scroll_panel.py, which also stops
the content from jumping when a second finger touches.
* ui: keep Widget multitouch, mici keyboard uses it
Widget, Button, and the tici keyboard are the same as master again.
MiciKeyboard sets _multi_touch to get the events of all fingers.
* mici keyboard: remove reset of active slot when disabled
_update_state clears the closest key when the keyboard is disabled, thus a
stale active slot cannot type a key.
* move scroll panel fix to its own PR
* mici keyboard: simpler comments
* mici keyboard: add _unselect_key helper
* Revert "mici keyboard: add _unselect_key helper"
This reverts commit 5e270e0bcc2fa5bb8b89e844d7e43e5b1b66c404.
* ui: fit fling velocity over the last 50 ms
Release velocity was a weighted average of the last 3 per-sample
velocities. Each sample uses the poll time of the touch thread, which
is off by a few ms, so the 3 velocities (and the fling distance) vary a
lot for the same swipe. A least-squares slope over the last 50 ms
(approx. 5 samples) is much less sensitive to this. The deceleration
check that rejects swipe-stop-lift is unchanged.
* scroll_panel2: use np.polyfit, 54 ms window off the poll grid
50 ms is exactly 7 periods of the 140 Hz poll thread, so a sample can
be on the window edge and its inclusion flips on float rounding.
* scroll_panel2: fit the last 6 samples instead of a time window
Same result as the 54 ms window (approx. 6 samples at ~103Hz), without
the window edge.
* scroll_panel2: closed-form fit instead of np.polyfit
Same result, approx. 16x faster (2.5 us vs 40 us per release on a PC),
and no numpy import.
* scroll_panel2: simpler comments
* scroll_panel2: get velocities for the decel check from the position buffer
Removes _velocity_buffer, same behavior.
* Revert "scroll_panel2: get velocities for the decel check from the position buffer"
This reverts commit db8f0a647ec48f133d138b591c3c2e2681c4c59c.
* scroll_panel2: use len() for the empty check
* scroll_panel2: comment the first position sample
* scroll_panel2: blank line before comment