croft-software 0.2.232

VSCode-style TUI written in Rust
refactor: every download croft reads into memory now goes through one capped reader that refuses past its cap, and every checksum through one rule (#2062). Nothing changes in use.
refactor: the review tab, its write side and code scanning start the GitHub CLI through one `gh::Client` holding the program, its folder and its time limit (#2062). Nothing changes in use.
refactor: Every git call the git module's shared helpers make is now built through one `Git` builder that names what it asks of git (#2062). Nothing changes in use.
refactor: git's diff and file-contents calls are now built through the `Git` builder (#2062). Nothing changes in use.
refactor: git's history and blame calls are now built through the `Git` builder (#2062). Nothing changes in use.
refactor: git's staging, patch and commit calls are now built through the `Git` builder (#2062). Nothing changes in use.
refactor: git's branch, remote and worktree calls are now built through the `Git` builder (#2062). Nothing changes in use.
refactor: the last hand-built git calls (Source Control's Initialize Repository, `croft edit`'s editor lookup, the update check) are now built through the `Git` builder, which also owns the never-prompt setup (#2062). Nothing changes in use.
refactor: The Linux clipboard's copy and paste helpers now run through `proc::Bounded` (#2062). Nothing changes in use.
refactor: Live Run's Python run now goes through `proc::Bounded` (#2062). Nothing changes in use.
refactor: Fleet runs (one command on many hosts) now go through `proc::Bounded` (#2062). Nothing changes in use.
refactor: Every ssh croft starts is now built in one place and named by what it is for, so each kind's options are written once (#2062). Nothing changes in use.
refactor: a saved record of every ssh, rsync and scp call croft makes now guards the coming move of them onto one ssh builder (#2062). Nothing changes in use.
refactor: A key press, click, paste, command or frame now marks itself as a UI turn, and in tests croft's program helpers fail when one waits on an outside program without saying why (#2062). Nothing changes in use.
fix: On macOS, when croft falls back to `pbcopy` or `pbpaste` for copy and paste, a hung one is now stopped after two seconds instead of freezing croft (#2771).
fix: Live Run no longer leaves behind what a script starts (a server, a background `sleep`) when the script finishes; before, each re-run on a pause in typing left one more running. A program the script deliberately detaches into a session of its own still outlives it (#2776).
fix: code scanning no longer freezes croft while it waits on GitHub: listing analyses, opening one, finding a result's alert and dismissing it now run in the background, and every code scanning call stops after 60 seconds on a stalled network and says so. A stalled branch lookup no longer stops code scanning from following later branch switches (#2786).
fix: posting to a pull request from the review tab (a reply, resolving a thread, submitting the review) now stops after 60 seconds in all on a stalled network and says so, where it waited for good and every later submit was refused as already running (#2787).
fix: a SARIF result's source file downloaded from GitHub that is larger than 64 MiB is now refused with that said, where it opened cut short as if it were the whole file (#2791).
fix: installing croft on a remote from inside croft no longer draws ssh and rsync output over the screen or swallows keys typed meanwhile: the prebuilt install's steps now report into the install log, as the rest of the install does (#2792).
fix: A command croft runs through the remote connection, once that connection has gone, no longer asks for a password over croft's screen: a fresh login that would need one fails at once (one with a key or agent still goes through), and an unreachable host is given up on in 10 seconds instead of the system's network timeout (#2793).
fix: `croft sync-config --diff` now writes the remote's copy to a temp file made fresh and readable by you only, under a name with the time in it; before, another local user could plant a symlink at its guessable name and have croft write the remote config wherever it pointed (#2794).
fix: a relay pull (a remote croft fetching a local file) no longer hangs for good, holding up every relay request after it, when the local `tar` prints many warnings, and a pull that fails after many warnings now reports tar's reason instead of timing out after 120 seconds (#2795).
fix: connecting to an unreachable host from the in-app connect dialog now gives up after 10 seconds, as `croft remote` does, instead of waiting out the system's TCP timeout (#2796).
fix: starting a Python or JavaScript debug session no longer freezes croft while the debugger is set up: building the debug environment, downloading the JavaScript debugger and finding a Node only the login shell knows now happen in the background, with the status bar saying so, and the session starts when they are done. Each step stops after five minutes on a stalled network instead of waiting for good, and a Node found once is remembered, so later launches do not wait for the shell again (#2803).
fix: Python debugging finds the same `uv` the Python language servers do, croft's own copy included, where the first F5 failed with "is uv installed and on PATH?" on a machine whose uv is not on croft's PATH (#2804).
fix: Go debugging finds a delve installed with `go install` when `GOPATH` lists more than one folder, where it said delve was missing (#2805).
fix: a Node installed with nvm, Volta or Homebrew while croft runs is found by the language-server installs without a restart, where croft kept saying Node was missing (#2806).
fix: a Go installed where its installer puts it (`/usr/local/go/bin`) or by Homebrew, but not on croft's `PATH`, is now found by the Go language server and the Go debugger as it already was by the Testing view: opening a `.go` file installs gopls with it, and Debug: Install Go Debugger installs delve with it, where both said Go was not installed (#2807).
fix: croft finds a program the way a shell does: a file it cannot run (no execute permission, or a folder), found earlier on `PATH` or in a fallback folder, is passed over for the next one. It was taken as the program, so the Dependencies panel stayed empty and cargo, Go, pytest and vitest/jest runs, Go debugging, CodeQL, the PDF preview and Prettier failed with "permission denied" where the same tool ran in a terminal; uv/poetry/pdm tasks and the ▷ on code fences were offered for tools that could not run; and on Termux, voice input reported Ready when `termux-dialog` was a folder (#2808).
fix: Prettier, vitest, jest and the TypeScript project check run with a Node that only nvm, Volta, Homebrew or your login shell knows, as the TypeScript language server already did, where they failed to start when croft was opened from a launcher; the ▷ on a JavaScript code fence shows for that Node too, and the JavaScript debugger finds nvm's Node without asking the shell (#2809).
fix: Run Test now runs a test under the same Python as Debug Test: a project venv named `.env` is used, and running one test or one file uses the venv nearest it, where Run Test used the workspace's `python3` or `pytest` and the same test could import under one and fail under the other. Python tasks and notebooks use a `.env` venv too (#2810).
fix: turning a PDF page, clicking a link in a PDF and opening a PDF no longer freeze croft while poppler works: the next page renders in the background and appears when it is ready, with the current page staying on screen meanwhile, a link click acts as soon as the page's links are read, and the page count is read after the PDF opens, so End pressed straight away still lands on the last page (#2824).
fix: opening a PDF no longer freezes croft while its first page renders: the tab opens at once saying it is rendering, and the page shows when it is ready. A file that only looks like a PDF and will not render lands in the hex viewer saying why, as before; a `.pdf` that will not render yet keeps its tab, and turning to a page tries again (#2827).
fix: a PDF rebuilt on disk (pdflatex finishing, say) no longer freezes croft while it renders again: the page on screen stays until the new one is ready, the status line says it reloaded once it has, and a rebuild that will not render yet keeps the last good page and your place, says so once, and is tried again (#2827).