record() and upsert() use partition_point on the path-sorted file list
and reconcile_inventory appends records in order instead of upserting
each one, dropping full rescans from O(n^2) to O(n log n).
mirror_dir now copies into a sibling temp directory and renames it
into place only when complete, instead of deleting the destination
up front where a mid-copy failure destroyed the current config.
rename() now runs validate_name on the new name so paths like ../x or
.x cannot move instances out of (or hide them inside) the instances
root; failures surface as an error toast in the TUI.
Update labels disappeared at random and only came back after switching
instances, and mods installed from a modpack never got one.
- display no longer requires the snapshot inventory to match the manifest
exactly; a single changed file wiped every label in the instance even
though each update is keyed by its exact installed version
- a finished scan is applied instead of discarded when the manifest moved
on in the meantime, and the pending queue no longer leaks or replays
stale snapshots over newer ones
- compare versions by publish date and ask the provider for the installed
version when it is missing from the compatible list, which is the normal
case for modpack pinned files; also fixes the modpack update label
- keep known updates for checks that failed so an offline scan no longer
overwrites a good cache
- rescan only when the inventory changed or the snapshot is older than
30 minutes, with one pooled http client per scan instead of one per mod