mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-28 21:49:14 +01:00
Compare commits
2 Commits
0d93539944
...
d2a684ebf9
| Author | SHA1 | Date | |
|---|---|---|---|
| d2a684ebf9 | |||
| dc22bd557c |
@ -205,9 +205,12 @@ hard-codes it.
|
||||
`gaming_unblock{phrase}`, `gaming_reset_arm{phrase}`,
|
||||
`gaming_reset_heartbeat{pending_id}`, `gaming_reset_commit{pending_id, phrase}`,
|
||||
`gaming_reset_cancel{pending_id}`, `restart{}`. There is no `stop`.
|
||||
- `status` also lists the daemon's live steam-game-installer runs as
|
||||
`fast_installs: [{app_id, name, phase, percent, elapsed_seconds}]`, read
|
||||
from its log by the enforce loop; `percent` is the current depot's, or null.
|
||||
- `status` also lists the daemon's steam-game-installer runs as
|
||||
`fast_installs: [{app_id, name, phase, percent, elapsed_seconds, error}]`,
|
||||
read from its log by the enforce loop; `percent` is the current depot's, or
|
||||
null. A failed run stays listed with `phase: "failed"` and `error` set to
|
||||
the installer's own ERROR lines until a new run starts or the game is fully
|
||||
installed; `error` is null while a run is live.
|
||||
|
||||
## Verification record (2026-10-10)
|
||||
|
||||
|
||||
@ -140,6 +140,7 @@ def _fast_install_info(run: dict[str, object]) -> FastInstallInfo:
|
||||
phase=str(run["phase"]),
|
||||
percent=None if percent is None else float(cast("float", percent)),
|
||||
elapsed_seconds=int(cast("int", run["elapsed_seconds"])),
|
||||
error=None if run.get("error") is None else str(run["error"]),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@ class FastInstallInfo:
|
||||
phase: str
|
||||
percent: float | None
|
||||
elapsed_seconds: int
|
||||
# Why the run failed (``phase`` is then ``failed``); None while it runs.
|
||||
error: str | None = None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
||||
@ -27,29 +27,29 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
import pwd
|
||||
import re
|
||||
import shutil
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from steam_backlog_enforcer import _fast_install_progress as _fip
|
||||
from steam_backlog_enforcer import config as _config
|
||||
from steam_backlog_enforcer._desktop_env import desktop_user_cmd, resolve_desktop_user
|
||||
from steam_backlog_enforcer._desktop_env import resolve_desktop_user
|
||||
from steam_backlog_enforcer._echo import _echo
|
||||
from steam_backlog_enforcer._fast_install_cmd import build_cmd, installer_path
|
||||
from steam_backlog_enforcer._fast_install_failure import failure_reason
|
||||
from steam_backlog_enforcer._steam_restart_guard import game_is_running
|
||||
from steam_backlog_enforcer._steam_state import STEAMAPPS_PATH
|
||||
from steam_backlog_enforcer._steam_state import is_game_fully_installed
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
_INSTALLER = Path("src", "steam-game-installer", "run.sh")
|
||||
_INSTALLER_LOG = "~/.local/state/steam-game-installer/latest.log"
|
||||
# Depot content only: the app itself is ours to choose, the language is not
|
||||
# worth a prompt nobody is there to answer.
|
||||
_LANGUAGE = "english"
|
||||
# depotdownloader prints a line per finished chunk, so a healthy download is
|
||||
# never silent this long; a login prompt waiting on /dev/null is.
|
||||
STALL_SECONDS = 15 * 60
|
||||
@ -67,39 +67,10 @@ class _DetachedRun:
|
||||
|
||||
|
||||
_RUNS: list[_DetachedRun] = []
|
||||
# Apps whose installer run failed in this process. They go straight to the
|
||||
# steam:// fallback from then on, so a broken login cannot close Steam on
|
||||
# every 3-second pass.
|
||||
_FAILED: set[int] = set()
|
||||
|
||||
|
||||
def _installer_path(user: str | None) -> Path | None:
|
||||
"""steam-game-installer's ``run.sh`` in the desktop user's home, if present.
|
||||
|
||||
Resolved from the passwd entry rather than ``Path.home()``: the daemon runs
|
||||
as root, and the installer, its venv and its credentials are per-user.
|
||||
"""
|
||||
try:
|
||||
home = Path(pwd.getpwnam(user).pw_dir) if user else Path.home()
|
||||
except KeyError:
|
||||
return None
|
||||
path = home / _INSTALLER
|
||||
return path if path.is_file() else None
|
||||
|
||||
|
||||
def _steam_account_name() -> str | None:
|
||||
"""The account Steam itself last signed in with, from ``loginusers.vdf``.
|
||||
|
||||
Read from Steam's own state rather than a copy in the enforcer config, so
|
||||
it cannot drift from the account that actually owns the games.
|
||||
"""
|
||||
path = STEAMAPPS_PATH.parent / "config" / "loginusers.vdf"
|
||||
try:
|
||||
content = path.read_text(encoding="utf-8", errors="replace")
|
||||
except OSError:
|
||||
return None
|
||||
match = re.search(r'"AccountName"\s+"([^"]+)"', content)
|
||||
return match.group(1) if match else None
|
||||
# Apps whose installer run failed in this process, with the reason. They go
|
||||
# straight to the steam:// fallback from then on, so a broken login cannot
|
||||
# close Steam on every 3-second pass.
|
||||
_FAILED: dict[int, str] = {}
|
||||
|
||||
|
||||
def _refusal() -> str | None:
|
||||
@ -109,32 +80,16 @@ def _refusal() -> str | None:
|
||||
return None
|
||||
|
||||
|
||||
def _build_cmd(installer: Path, app_id: int, user: str | None) -> list[str]:
|
||||
"""The installer invocation, dropped to the desktop user when root."""
|
||||
cmd = [
|
||||
str(installer),
|
||||
# install.sh reaches for yay; dependencies are installed once, by hand.
|
||||
"--no-deps",
|
||||
"--appid",
|
||||
str(app_id),
|
||||
"--yes",
|
||||
"--language",
|
||||
_LANGUAGE,
|
||||
# Finishes the manifest from depotdownloader's own data, under the same
|
||||
# fail-closed checks: no second login, no 70 GB re-hash by steamcmd.
|
||||
"--skip-steamcmd",
|
||||
]
|
||||
account = _steam_account_name()
|
||||
if account:
|
||||
cmd += ["--username", account]
|
||||
return desktop_user_cmd(cmd, user)
|
||||
|
||||
|
||||
def is_fast_installing(app_id: int) -> bool:
|
||||
"""Whether this process has a live detached installer run for *app_id*."""
|
||||
return any(run.app_id == app_id for run in _RUNS)
|
||||
|
||||
|
||||
def fast_install_failure(app_id: int) -> str | None:
|
||||
"""Why this process's installer run for *app_id* failed, if it did."""
|
||||
return _FAILED.get(app_id)
|
||||
|
||||
|
||||
def _stalled(run: _DetachedRun) -> bool:
|
||||
"""Whether a live run has printed nothing for :data:`STALL_SECONDS`."""
|
||||
try:
|
||||
@ -167,15 +122,16 @@ def poll_fast_installs() -> None:
|
||||
if returncode == 0:
|
||||
logger.info("steam-game-installer finished AppID=%d.", run.app_id)
|
||||
continue
|
||||
_FAILED.add(run.app_id)
|
||||
_FAILED[run.app_id] = failure_reason(run.log_path, returncode)
|
||||
_fip.mark_failed(run.app_id, _FAILED[run.app_id])
|
||||
logger.warning(
|
||||
"steam-game-installer failed for AppID=%d (exit %d); falling back "
|
||||
"to Steam's own download. Log: %s",
|
||||
"steam-game-installer failed for AppID=%d: %s. Falling back to "
|
||||
"Steam's own download. Log: %s",
|
||||
run.app_id,
|
||||
returncode,
|
||||
_FAILED[run.app_id],
|
||||
run.log_path,
|
||||
)
|
||||
_fip.poll_trackers({run.app_id for run in _RUNS})
|
||||
_fip.poll_trackers({run.app_id for run in _RUNS}, is_game_fully_installed)
|
||||
|
||||
|
||||
def _spawn_detached(cmd: list[str], app_id: int, label: str = "") -> None:
|
||||
@ -211,12 +167,26 @@ def _wait_detached(app_id: int, label: str) -> bool:
|
||||
time.sleep(_WAIT_POLL_SECONDS)
|
||||
poll_fast_installs()
|
||||
reporter.report(time.monotonic())
|
||||
return app_id not in _FAILED
|
||||
if app_id not in _FAILED:
|
||||
return True
|
||||
# "Failed" first: a job takes such a line as its verdict, so the run can
|
||||
# no longer end on a full progress bar and "Succeeded".
|
||||
_echo(
|
||||
f"Failed: fast install of {label}: {_FAILED[app_id]}. Steam's own "
|
||||
f"download takes over (log: {_INSTALLER_LOG})."
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
def fast_install(app_id: int, label: str) -> bool:
|
||||
def fast_install(
|
||||
app_id: int, label: str, prepare: Callable[[], object] = lambda: None
|
||||
) -> bool:
|
||||
"""Install *app_id* with steam-game-installer.
|
||||
|
||||
*prepare* runs once the run is sure to start, before it does: the
|
||||
installer only finishes a manifest it finds, so this is where a fresh
|
||||
install gets one.
|
||||
|
||||
Returns:
|
||||
True if the game was installed (foreground) or the run was started
|
||||
(detached); False if the caller should fall back to Steam's download.
|
||||
@ -224,7 +194,7 @@ def fast_install(app_id: int, label: str) -> bool:
|
||||
if app_id in _FAILED:
|
||||
return False
|
||||
user = resolve_desktop_user()
|
||||
installer = _installer_path(user)
|
||||
installer = installer_path(user)
|
||||
if installer is None:
|
||||
logger.warning("steam-game-installer not found; using Steam's download.")
|
||||
return False
|
||||
@ -233,7 +203,8 @@ def fast_install(app_id: int, label: str) -> bool:
|
||||
_echo(f" Fast install of {label} skipped: {reason}.")
|
||||
return False
|
||||
|
||||
cmd = _build_cmd(installer, app_id, user)
|
||||
cmd = build_cmd(installer, app_id, user)
|
||||
prepare()
|
||||
if not sys.stdin.isatty():
|
||||
_spawn_detached(cmd, app_id, label)
|
||||
return os.geteuid() == 0 or _wait_detached(app_id, label)
|
||||
@ -242,9 +213,9 @@ def fast_install(app_id: int, label: str) -> bool:
|
||||
returncode = subprocess.run(cmd, check=False).returncode
|
||||
if returncode == 0:
|
||||
return True
|
||||
_FAILED.add(app_id)
|
||||
_FAILED[app_id] = f"exit {returncode}"
|
||||
_echo(
|
||||
f" steam-game-installer failed (exit {returncode}); falling back to "
|
||||
f"Steam's own download. Log: {_INSTALLER_LOG}"
|
||||
f"Failed: fast install of {label} (exit {returncode}, reasons above). "
|
||||
f"Steam's own download takes over (log: {_INSTALLER_LOG})."
|
||||
)
|
||||
return False
|
||||
|
||||
71
steam_backlog_enforcer/_fast_install_cmd.py
Normal file
71
steam_backlog_enforcer/_fast_install_cmd.py
Normal file
@ -0,0 +1,71 @@
|
||||
"""How steam-game-installer is invoked: where it lives, as whom, with what argv.
|
||||
|
||||
Split out of :mod:`_fast_install`, which runs and reaps the installer; this
|
||||
half only decides the command line, every choice it would otherwise prompt for
|
||||
pinned in advance.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
import pwd
|
||||
import re
|
||||
|
||||
from steam_backlog_enforcer._desktop_env import desktop_user_cmd
|
||||
from steam_backlog_enforcer._steam_state import STEAMAPPS_PATH
|
||||
|
||||
_INSTALLER = Path("src", "steam-game-installer", "run.sh")
|
||||
|
||||
# Depot content only: the app itself is ours to choose, the language is not
|
||||
# worth a prompt nobody is there to answer.
|
||||
_LANGUAGE = "english"
|
||||
|
||||
|
||||
def installer_path(user: str | None) -> Path | None:
|
||||
"""steam-game-installer's ``run.sh`` in the desktop user's home, if present.
|
||||
|
||||
Resolved from the passwd entry rather than ``Path.home()``: the daemon runs
|
||||
as root, and the installer, its venv and its credentials are per-user.
|
||||
"""
|
||||
try:
|
||||
home = Path(pwd.getpwnam(user).pw_dir) if user else Path.home()
|
||||
except KeyError:
|
||||
return None
|
||||
path = home / _INSTALLER
|
||||
return path if path.is_file() else None
|
||||
|
||||
|
||||
def steam_account_name() -> str | None:
|
||||
"""The account Steam itself last signed in with, from ``loginusers.vdf``.
|
||||
|
||||
Read from Steam's own state rather than a copy in the enforcer config, so
|
||||
it cannot drift from the account that actually owns the games.
|
||||
"""
|
||||
path = STEAMAPPS_PATH.parent / "config" / "loginusers.vdf"
|
||||
try:
|
||||
content = path.read_text(encoding="utf-8", errors="replace")
|
||||
except OSError:
|
||||
return None
|
||||
match = re.search(r'"AccountName"\s+"([^"]+)"', content)
|
||||
return match.group(1) if match else None
|
||||
|
||||
|
||||
def build_cmd(installer: Path, app_id: int, user: str | None) -> list[str]:
|
||||
"""The installer invocation, dropped to the desktop user when root."""
|
||||
cmd = [
|
||||
str(installer),
|
||||
# install.sh reaches for yay; dependencies are installed once, by hand.
|
||||
"--no-deps",
|
||||
"--appid",
|
||||
str(app_id),
|
||||
"--yes",
|
||||
"--language",
|
||||
_LANGUAGE,
|
||||
# Finishes the manifest from depotdownloader's own data, under the same
|
||||
# fail-closed checks: no second login, no 70 GB re-hash by steamcmd.
|
||||
"--skip-steamcmd",
|
||||
]
|
||||
account = steam_account_name()
|
||||
if account:
|
||||
cmd += ["--username", account]
|
||||
return desktop_user_cmd(cmd, user)
|
||||
55
steam_backlog_enforcer/_fast_install_failure.py
Normal file
55
steam_backlog_enforcer/_fast_install_failure.py
Normal file
@ -0,0 +1,55 @@
|
||||
"""Why a steam-game-installer run failed, in the installer's own words.
|
||||
|
||||
A bare exit status hid the BG3 run of 2026-10-23: 160 GB downloaded, then a
|
||||
refusal to mark it installed, and the job still read "Succeeded". The console
|
||||
output ends with ``Run log (send this): <path>``; that run log tags every line
|
||||
with its level, so its ERROR lines are exactly the reasons the run gave up.
|
||||
|
||||
Both files are read from the end only: a depotdownloader run writes a line
|
||||
per downloaded file, tens of megabytes of them.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
import re
|
||||
from typing import Final
|
||||
|
||||
# The reasons and the run log line are printed last; 64 KiB holds them.
|
||||
_TAIL_BYTES: Final = 1 << 16
|
||||
_RUN_LOG: Final = re.compile(r"^Run log(?: \(send this\))?: (/.+)$")
|
||||
_ERROR: Final = re.compile(r"^\S+ \S+ ERROR\s+[\w.]+: (.*)$")
|
||||
|
||||
|
||||
def _tail_lines(path: Path) -> list[str]:
|
||||
"""The last lines of *path* (empty if unreadable), first partial one dropped."""
|
||||
try:
|
||||
with path.open("rb") as log:
|
||||
size = log.seek(0, 2)
|
||||
log.seek(max(0, size - _TAIL_BYTES))
|
||||
data = log.read()
|
||||
except OSError:
|
||||
return []
|
||||
lines = data.decode("utf-8", "replace").splitlines()
|
||||
return lines[1:] if size > _TAIL_BYTES else lines
|
||||
|
||||
|
||||
def _run_log_errors(console: list[str]) -> list[str]:
|
||||
"""ERROR messages of the run log the console output names last."""
|
||||
for line in reversed(console):
|
||||
if match := _RUN_LOG.match(line.strip()):
|
||||
run_log = _tail_lines(Path(match.group(1)))
|
||||
return [m.group(1).strip() for ln in run_log if (m := _ERROR.match(ln))]
|
||||
return []
|
||||
|
||||
|
||||
def failure_reason(console_log: Path, returncode: int) -> str:
|
||||
"""One line saying why the run that just wrote *console_log* failed."""
|
||||
console = _tail_lines(console_log)
|
||||
errors = _run_log_errors(console)
|
||||
if errors:
|
||||
# Callers add their own full stop.
|
||||
return " ".join(errors).rstrip(".")
|
||||
# Died before the installer could log a reason (a traceback, a kill).
|
||||
last = next((ln.strip() for ln in reversed(console) if ln.strip()), "")
|
||||
return f"exit {returncode}: {last}" if last else f"exit {returncode}"
|
||||
@ -40,6 +40,7 @@ from steam_backlog_enforcer._echo import _echo
|
||||
from steam_backlog_enforcer._progress import current_progress
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
|
||||
STARTING: Final = "starting"
|
||||
@ -146,6 +147,9 @@ class InstallTracker:
|
||||
# Live detached runs of this process by app id, with the name to show. The
|
||||
# enforce loop polls them; ctl connection threads read snapshots.
|
||||
_TRACKERS: dict[int, tuple[str, InstallTracker]] = {}
|
||||
# Failed runs by app id: (name, reason). The daemon has no job to print a
|
||||
# failure to, so it stays listed until a new run or the game is installed.
|
||||
_FAILURES: dict[int, tuple[str, str]] = {}
|
||||
_LOCK = threading.Lock()
|
||||
|
||||
|
||||
@ -153,13 +157,25 @@ def track(app_id: int, name: str, log_path: Path, *, offset: int, now: float) ->
|
||||
"""Start following a run just spawned with its output at *offset* of the log."""
|
||||
with _LOCK:
|
||||
_TRACKERS[app_id] = (name, InstallTracker(log_path, offset=offset, started=now))
|
||||
_FAILURES.pop(app_id, None)
|
||||
|
||||
|
||||
def poll_trackers(live: set[int]) -> None:
|
||||
"""Read new log lines of the *live* runs and forget every other one."""
|
||||
def mark_failed(app_id: int, reason: str) -> None:
|
||||
"""List *app_id*'s run as failed with *reason*, under its tracked name."""
|
||||
with _LOCK:
|
||||
entry = _TRACKERS.get(app_id)
|
||||
_FAILURES[app_id] = (entry[0] if entry else f"AppID={app_id}", reason)
|
||||
|
||||
|
||||
def poll_trackers(
|
||||
live: set[int], installed: Callable[[int], bool] = lambda _app_id: False
|
||||
) -> None:
|
||||
"""Read the *live* runs' new lines; drop other runs and *installed* failures."""
|
||||
with _LOCK:
|
||||
for app_id in [aid for aid in _TRACKERS if aid not in live]:
|
||||
del _TRACKERS[app_id]
|
||||
for app_id in [aid for aid in _FAILURES if installed(aid)]:
|
||||
del _FAILURES[app_id]
|
||||
for _name, tracker in _TRACKERS.values():
|
||||
tracker.poll()
|
||||
|
||||
@ -172,9 +188,15 @@ def progress_of(app_id: int, now: float) -> InstallProgress | None:
|
||||
|
||||
|
||||
def fast_install_status(now: float) -> list[dict[str, object]]:
|
||||
"""Every tracked run as the ctl ``status`` op reports it (no file I/O)."""
|
||||
"""Every tracked and failed run as the ctl ``status`` op reports it (no I/O)."""
|
||||
with _LOCK:
|
||||
entries = [(aid, name, t.snapshot(now)) for aid, (name, t) in _TRACKERS.items()]
|
||||
failed = [
|
||||
{"app_id": aid, "name": name, "phase": "failed", "percent": None}
|
||||
| {"elapsed_seconds": 0, "error": reason}
|
||||
for aid, (name, reason) in _FAILURES.items()
|
||||
if aid not in _TRACKERS
|
||||
]
|
||||
return [
|
||||
{
|
||||
"app_id": app_id,
|
||||
@ -182,9 +204,10 @@ def fast_install_status(now: float) -> list[dict[str, object]]:
|
||||
"phase": snap.phase,
|
||||
"percent": None if snap.percent is None else round(snap.percent, 2),
|
||||
"elapsed_seconds": snap.elapsed_seconds,
|
||||
"error": None,
|
||||
}
|
||||
for app_id, name, snap in entries
|
||||
]
|
||||
] + failed
|
||||
|
||||
|
||||
class WaitReporter:
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from functools import partial
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
@ -168,7 +169,10 @@ def install_game(
|
||||
if ready is not None:
|
||||
return ready
|
||||
|
||||
if fast_install(app_id, label):
|
||||
# The installer only finishes a manifest it finds: queue a fresh install first.
|
||||
if fast_install(
|
||||
app_id, label, partial(_queue_download, app_id, game_name, steam_id)
|
||||
):
|
||||
return True
|
||||
# Steam already has a download of its own going: let it carry on, rather
|
||||
# than overwrite its manifest with the fabricated one below.
|
||||
@ -181,6 +185,16 @@ def install_game(
|
||||
return True
|
||||
logger.debug("steam:// protocol failed; falling back to manifest")
|
||||
|
||||
if not _queue_download(app_id, game_name, steam_id):
|
||||
return False
|
||||
_ensure_steam_running() # so it picks the manifest up
|
||||
return True
|
||||
|
||||
|
||||
def _queue_download(app_id: int, game_name: str, steam_id: str) -> bool:
|
||||
"""Make Steam download *app_id* with a minimal appmanifest; False if unwritable."""
|
||||
if is_game_installed(app_id):
|
||||
return True
|
||||
# Build a minimal appmanifest. StateFlags 1026 = UpdateRequired (2) +
|
||||
# UpdateStarted (1024), which tells Steam "this app needs downloading".
|
||||
manifest_content = (
|
||||
@ -219,7 +233,6 @@ def install_game(
|
||||
)
|
||||
|
||||
manifest_path = STEAMAPPS_PATH / f"appmanifest_{app_id}.acf"
|
||||
|
||||
try:
|
||||
with manifest_path.open("w", encoding="utf-8") as fh:
|
||||
fh.write(manifest_content)
|
||||
@ -230,13 +243,8 @@ def install_game(
|
||||
if os.geteuid() == 0 and real_user and real_user != "root":
|
||||
uid, gid = _get_uid_gid_for_user(real_user)
|
||||
os.chown(manifest_path, uid, gid)
|
||||
|
||||
logger.info("Created appmanifest for %s — Steam will auto-download", label)
|
||||
logger.info("Created appmanifest for %s — Steam will auto-download", game_name)
|
||||
except OSError:
|
||||
logger.exception("Failed to create appmanifest for %s", label)
|
||||
logger.exception("Failed to create appmanifest for %s", game_name)
|
||||
return False
|
||||
|
||||
# Make sure Steam is running so it picks up the manifest.
|
||||
_ensure_steam_running()
|
||||
|
||||
return True
|
||||
|
||||
@ -6,6 +6,7 @@ from typing import TYPE_CHECKING
|
||||
|
||||
from steam_backlog_enforcer._actions import allowed_app_ids, allowed_games
|
||||
from steam_backlog_enforcer._enforce_loop import get_all_owned_app_ids
|
||||
from steam_backlog_enforcer._fast_install import fast_install_failure
|
||||
from steam_backlog_enforcer._progress import current_progress
|
||||
from steam_backlog_enforcer._prompter import (
|
||||
PromptOption,
|
||||
@ -115,10 +116,13 @@ def cmd_install(config: Config, state: State) -> None:
|
||||
# install_game only *starts* the download (fast installer or steam://);
|
||||
# there is no download-progress loop to report on yet.
|
||||
current_progress().phase(f"Starting install of {name}")
|
||||
if install_game(app_id, name, config.steam_id, use_steam_protocol=True):
|
||||
if not install_game(app_id, name, config.steam_id, use_steam_protocol=True):
|
||||
_echo("Failed to start the install.")
|
||||
elif fast_install_failure(app_id) is None:
|
||||
_echo("Done!")
|
||||
else:
|
||||
_echo("Failed to start the install.")
|
||||
# The fast install already printed its "Failed: ..." line.
|
||||
_echo("Steam's own download was started instead.")
|
||||
|
||||
|
||||
def cmd_hide(config: Config, state: State) -> None:
|
||||
|
||||
@ -18,7 +18,11 @@ from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from steam_backlog_enforcer import _fast_install, _fast_install_progress
|
||||
from steam_backlog_enforcer import (
|
||||
_fast_install,
|
||||
_fast_install_cmd,
|
||||
_fast_install_progress,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Iterator
|
||||
@ -40,11 +44,14 @@ def _no_fast_install(tmp_path: Path) -> Iterator[None]:
|
||||
_fast_install._RUNS.clear()
|
||||
_fast_install._FAILED.clear()
|
||||
_fast_install_progress._TRACKERS.clear()
|
||||
_fast_install_progress._FAILURES.clear()
|
||||
patches = [patch(name, return_value=False) for name in _RUNNING_BINDINGS]
|
||||
patches += [
|
||||
# Absolute, so `home / _INSTALLER` resolves here and never under ~.
|
||||
patch.object(_fast_install, "_INSTALLER", tmp_path / "no-installer" / "run.sh"),
|
||||
patch.object(_fast_install, "STEAMAPPS_PATH", fake_steamapps),
|
||||
patch.object(
|
||||
_fast_install_cmd, "_INSTALLER", tmp_path / "no-installer" / "run.sh"
|
||||
),
|
||||
patch.object(_fast_install_cmd, "STEAMAPPS_PATH", fake_steamapps),
|
||||
]
|
||||
for p in patches:
|
||||
p.start()
|
||||
@ -56,3 +63,4 @@ def _no_fast_install(tmp_path: Path) -> Iterator[None]:
|
||||
_fast_install._RUNS.clear()
|
||||
_fast_install._FAILED.clear()
|
||||
_fast_install_progress._TRACKERS.clear()
|
||||
_fast_install_progress._FAILURES.clear()
|
||||
|
||||
@ -145,6 +145,14 @@ class TestTypedWrappers:
|
||||
FastInstallInfo(7, "G", "downloading depot 1/8", 46.9, 60),
|
||||
)
|
||||
|
||||
def test_status_failed_fast_install(self) -> None:
|
||||
run = {"app_id": 7, "name": "G", "phase": "failed", "percent": None}
|
||||
run |= {"elapsed_seconds": 0, "error": "exit 1"}
|
||||
data = {"state": "running", "started_at": "t", "pid": 4, "fast_installs": [run]}
|
||||
with self._call(data):
|
||||
info = _ctl_client.status()
|
||||
assert info.fast_installs[0].error == "exit 1"
|
||||
|
||||
def test_journal_tail(self) -> None:
|
||||
with self._call({"lines": ["a", 2]}) as call:
|
||||
assert _ctl_client.journal_tail(9) == ["a", "2"]
|
||||
|
||||
66
steam_backlog_enforcer/tests/test_fast_install_dashboard.py
Normal file
66
steam_backlog_enforcer/tests/test_fast_install_dashboard.py
Normal file
@ -0,0 +1,66 @@
|
||||
"""Tests for a failed daemon-started fast install staying visible.
|
||||
|
||||
The root daemon has no job to print to: before, a failed run's tracker was
|
||||
dropped and the Dashboard card simply vanished, as if nothing had happened.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from steam_backlog_enforcer import _fast_install
|
||||
from steam_backlog_enforcer import _fast_install_progress as fip
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
PKG = "steam_backlog_enforcer._fast_install"
|
||||
|
||||
|
||||
def _failed_run(tmp_path: Path, app_id: int = 7) -> None:
|
||||
"""A tracked daemon run of *app_id* that has just exited 1."""
|
||||
log = tmp_path / "log"
|
||||
log.write_text("Restarting the Steam client...\n")
|
||||
fip.track(app_id, "Baldur's Gate 3", log, offset=0, now=0.0)
|
||||
proc = MagicMock(pid=4321)
|
||||
proc.poll.return_value = 1
|
||||
_fast_install._RUNS.append(_fast_install._DetachedRun(app_id, proc, log))
|
||||
|
||||
|
||||
class TestFailedRunsStayListed:
|
||||
def test_status_carries_the_reason(self, tmp_path: Path) -> None:
|
||||
_failed_run(tmp_path)
|
||||
with patch(f"{PKG}.is_game_fully_installed", return_value=False):
|
||||
_fast_install.poll_fast_installs()
|
||||
assert fip.fast_install_status(now=9.0) == [
|
||||
{
|
||||
"app_id": 7,
|
||||
"name": "Baldur's Gate 3",
|
||||
"phase": "failed",
|
||||
"percent": None,
|
||||
"elapsed_seconds": 0,
|
||||
"error": "exit 1: Restarting the Steam client...",
|
||||
}
|
||||
]
|
||||
|
||||
def test_live_runs_have_no_error(self, tmp_path: Path) -> None:
|
||||
fip.track(8, "G", tmp_path / "log", offset=0, now=0.0)
|
||||
fip.poll_trackers({8})
|
||||
assert fip.fast_install_status(now=1.0)[0]["error"] is None
|
||||
|
||||
def test_gone_once_the_game_is_installed(self, tmp_path: Path) -> None:
|
||||
"""Steam's own download finished: the failure is history."""
|
||||
_failed_run(tmp_path)
|
||||
with patch(f"{PKG}.is_game_fully_installed", return_value=False):
|
||||
_fast_install.poll_fast_installs()
|
||||
with patch(f"{PKG}.is_game_fully_installed", return_value=True):
|
||||
_fast_install.poll_fast_installs()
|
||||
assert fip.fast_install_status(now=9.0) == []
|
||||
|
||||
def test_a_new_run_replaces_the_failure(self, tmp_path: Path) -> None:
|
||||
_failed_run(tmp_path)
|
||||
with patch(f"{PKG}.is_game_fully_installed", return_value=False):
|
||||
_fast_install.poll_fast_installs()
|
||||
fip.track(7, "Baldur's Gate 3", tmp_path / "log", offset=0, now=0.0)
|
||||
assert [s["phase"] for s in fip.fast_install_status(now=1.0)] == [fip.STARTING]
|
||||
54
steam_backlog_enforcer/tests/test_fast_install_failure.py
Normal file
54
steam_backlog_enforcer/tests/test_fast_install_failure.py
Normal file
@ -0,0 +1,54 @@
|
||||
"""Tests for _fast_install_failure: a failed run explained in the installer's words.
|
||||
|
||||
The text is the BG3 run of 2026-10-23, which downloaded 160 GB and then
|
||||
refused; all the job showed was a finished bar and "Succeeded".
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from steam_backlog_enforcer._fast_install_failure import failure_reason
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
_REFUSAL = (
|
||||
"2026-10-23 22:33:13,889 ERROR steam_installer: Refusing to mark "
|
||||
"Baldur's Gate 3 as installed:\n"
|
||||
"2026-10-23 22:33:13,889 ERROR steam_installer: - depot(s) 1419654 "
|
||||
"have no cached manifest -- the download did not finish\n"
|
||||
"2026-10-23 22:33:13,889 INFO steam_installer: Restarting the Steam client...\n"
|
||||
)
|
||||
|
||||
|
||||
def _console(tmp_path: Path, run_log: Path) -> Path:
|
||||
console = tmp_path / "fast_install-1000.log"
|
||||
console.write_text(
|
||||
f"Run log: {tmp_path / 'old.log'}\n"
|
||||
" 99.99% /x/Gustav.pak (403.89 Mbit/s)\n"
|
||||
"Refusing to mark Baldur's Gate 3 as installed:\n"
|
||||
f"Run log (send this): {run_log}\n"
|
||||
"Restarting the Steam client...\n"
|
||||
)
|
||||
return console
|
||||
|
||||
|
||||
def test_reason_is_the_run_logs_error_lines(tmp_path: Path) -> None:
|
||||
run_log = tmp_path / "run-1086940.log"
|
||||
hello = "2026-10-23 22:13:21,605 INFO steam_installer: hi\n"
|
||||
run_log.write_text(hello + _REFUSAL)
|
||||
assert failure_reason(_console(tmp_path, run_log), 1) == (
|
||||
"Refusing to mark Baldur's Gate 3 as installed: - depot(s) 1419654 have "
|
||||
"no cached manifest -- the download did not finish"
|
||||
)
|
||||
|
||||
|
||||
def test_without_a_run_log_the_last_console_line_is_shown(tmp_path: Path) -> None:
|
||||
console = tmp_path / "fast_install-0.log"
|
||||
console.write_text("Traceback (most recent call last):\nOSError: disk full\n")
|
||||
assert failure_reason(console, 1) == "exit 1: OSError: disk full"
|
||||
|
||||
|
||||
def test_an_unreadable_console_log_still_names_the_exit(tmp_path: Path) -> None:
|
||||
assert failure_reason(tmp_path / "missing.log", 3) == "exit 3"
|
||||
@ -1,4 +1,4 @@
|
||||
"""Tests for _fast_install's pure helpers: paths, account, refusal, argv.
|
||||
"""Tests for the fast install's pure helpers: paths, account, refusal, argv.
|
||||
|
||||
The run lifecycle (spawn, poll, fast_install) lives in test_fast_install_runs.py
|
||||
to keep both files under the 250-line cap.
|
||||
@ -10,9 +10,10 @@ from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from steam_backlog_enforcer import _fast_install, _steam_state
|
||||
from steam_backlog_enforcer import _fast_install, _fast_install_cmd, _steam_state
|
||||
|
||||
PKG = "steam_backlog_enforcer._fast_install"
|
||||
CMD = "steam_backlog_enforcer._fast_install_cmd"
|
||||
|
||||
|
||||
class TestInstallerPath:
|
||||
@ -26,44 +27,44 @@ class TestInstallerPath:
|
||||
# real relative one back so the home join itself is what is tested.
|
||||
relative = Path("src", "steam-game-installer", "run.sh")
|
||||
with (
|
||||
patch.object(_fast_install, "_INSTALLER", relative),
|
||||
patch(f"{PKG}.pwd.getpwnam", return_value=SimpleNamespace(pw_dir=tmp_path)),
|
||||
patch.object(_fast_install_cmd, "_INSTALLER", relative),
|
||||
patch(f"{CMD}.pwd.getpwnam", return_value=SimpleNamespace(pw_dir=tmp_path)),
|
||||
):
|
||||
assert _fast_install._installer_path("kuhy") == installer
|
||||
assert _fast_install_cmd.installer_path("kuhy") == installer
|
||||
|
||||
def test_missing_file_is_none(self, tmp_path: Path) -> None:
|
||||
with patch(
|
||||
f"{PKG}.pwd.getpwnam", return_value=SimpleNamespace(pw_dir=tmp_path)
|
||||
f"{CMD}.pwd.getpwnam", return_value=SimpleNamespace(pw_dir=tmp_path)
|
||||
):
|
||||
assert _fast_install._installer_path("kuhy") is None
|
||||
assert _fast_install_cmd.installer_path("kuhy") is None
|
||||
|
||||
def test_unknown_user_is_none(self) -> None:
|
||||
with patch(f"{PKG}.pwd.getpwnam", side_effect=KeyError("nobody")):
|
||||
assert _fast_install._installer_path("nobody") is None
|
||||
with patch(f"{CMD}.pwd.getpwnam", side_effect=KeyError("nobody")):
|
||||
assert _fast_install_cmd.installer_path("nobody") is None
|
||||
|
||||
def test_no_user_uses_own_home(self, tmp_path: Path) -> None:
|
||||
with patch(f"{PKG}.Path.home", return_value=tmp_path):
|
||||
assert _fast_install._installer_path(None) is None
|
||||
with patch(f"{CMD}.Path.home", return_value=tmp_path):
|
||||
assert _fast_install_cmd.installer_path(None) is None
|
||||
|
||||
|
||||
class TestSteamAccountName:
|
||||
"""The username comes from Steam's own loginusers.vdf."""
|
||||
|
||||
def _write(self, content: str) -> None:
|
||||
config = _fast_install.STEAMAPPS_PATH.parent / "config"
|
||||
config = _fast_install_cmd.STEAMAPPS_PATH.parent / "config"
|
||||
config.mkdir(parents=True, exist_ok=True)
|
||||
(config / "loginusers.vdf").write_text(content)
|
||||
|
||||
def test_reads_account_name(self) -> None:
|
||||
self._write('"users"\n{\n\t"7656"\n\t{\n\t\t"AccountName"\t\t"krzys"\n')
|
||||
assert _fast_install._steam_account_name() == "krzys"
|
||||
assert _fast_install_cmd.steam_account_name() == "krzys"
|
||||
|
||||
def test_no_account_field(self) -> None:
|
||||
self._write('"users"\n{\n}\n')
|
||||
assert _fast_install._steam_account_name() is None
|
||||
assert _fast_install_cmd.steam_account_name() is None
|
||||
|
||||
def test_missing_file(self) -> None:
|
||||
assert _fast_install._steam_account_name() is None
|
||||
assert _fast_install_cmd.steam_account_name() is None
|
||||
|
||||
|
||||
class TestRefusal:
|
||||
@ -90,10 +91,10 @@ class TestBuildCmd:
|
||||
|
||||
def test_with_account(self) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._steam_account_name", return_value="krzys"),
|
||||
patch(f"{PKG}.desktop_user_cmd", side_effect=lambda cmd, _u: cmd),
|
||||
patch(f"{CMD}.steam_account_name", return_value="krzys"),
|
||||
patch(f"{CMD}.desktop_user_cmd", side_effect=lambda cmd, _u: cmd),
|
||||
):
|
||||
cmd = _fast_install._build_cmd(Path("/i/run.sh"), 42, "kuhy")
|
||||
cmd = _fast_install_cmd.build_cmd(Path("/i/run.sh"), 42, "kuhy")
|
||||
assert cmd == [
|
||||
"/i/run.sh",
|
||||
"--no-deps",
|
||||
@ -109,10 +110,10 @@ class TestBuildCmd:
|
||||
|
||||
def test_without_account_and_drops_privileges(self) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._steam_account_name", return_value=None),
|
||||
patch(f"{PKG}.desktop_user_cmd", return_value=["wrapped"]) as wrap,
|
||||
patch(f"{CMD}.steam_account_name", return_value=None),
|
||||
patch(f"{CMD}.desktop_user_cmd", return_value=["wrapped"]) as wrap,
|
||||
):
|
||||
assert _fast_install._build_cmd(Path("/i/run.sh"), 42, "kuhy") == [
|
||||
assert _fast_install_cmd.build_cmd(Path("/i/run.sh"), 42, "kuhy") == [
|
||||
"wrapped"
|
||||
]
|
||||
argv, user = wrap.call_args.args
|
||||
|
||||
@ -51,13 +51,13 @@ class TestJobWaitsForInstaller:
|
||||
|
||||
def _install(self, tmp_path: Path, spawn: MagicMock, euid: int) -> bool:
|
||||
with (
|
||||
patch(f"{PKG}._installer_path", return_value=_ready(tmp_path)),
|
||||
patch(f"{PKG}.installer_path", return_value=_ready(tmp_path)),
|
||||
patch(f"{PKG}._refusal", return_value=None),
|
||||
patch(f"{PKG}.sys.stdin.isatty", return_value=False),
|
||||
patch(f"{PKG}.os.geteuid", return_value=euid),
|
||||
patch(f"{PKG}._spawn_detached", spawn),
|
||||
patch(f"{PKG}.time.sleep"),
|
||||
patch(f"{PKG}._echo"),
|
||||
patch(f"{PKG}._echo") as self.echo,
|
||||
):
|
||||
return _fast_install.fast_install(7, "G")
|
||||
|
||||
@ -67,7 +67,18 @@ class TestJobWaitsForInstaller:
|
||||
|
||||
def test_failure_falls_back(self, tmp_path: Path) -> None:
|
||||
assert self._install(tmp_path, _fake_spawn(None, 3), 1000) is False
|
||||
assert {7} == _fast_install._FAILED
|
||||
assert {7} == set(_fast_install._FAILED)
|
||||
|
||||
def test_failure_is_an_error_line_with_the_reason(self, tmp_path: Path) -> None:
|
||||
"""A job turns a line starting "Failed" into its failed verdict."""
|
||||
log = b"Refusing to mark G as installed:\nRestarting the Steam client...\n"
|
||||
with patch(f"{PKG}._fip.current_progress"):
|
||||
self._install(tmp_path, _fake_spawn(None, 1, log_text=log), 1000)
|
||||
echoed = [c.args[0] for c in self.echo.call_args_list]
|
||||
assert any(
|
||||
line.startswith("Failed: fast install of G") and "exit 1" in line
|
||||
for line in echoed
|
||||
), echoed
|
||||
|
||||
def test_progress_is_reported_while_waiting(self, tmp_path: Path) -> None:
|
||||
text = b"Shutting down the Steam client...\r\nDownloading via depot\r\n"
|
||||
|
||||
@ -154,6 +154,7 @@ class TestRegistry:
|
||||
"phase": "downloading depot 1/8",
|
||||
"percent": 59.16,
|
||||
"elapsed_seconds": 60,
|
||||
"error": None,
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@ -34,13 +34,13 @@ class TestPollFastInstalls:
|
||||
_run(1, 0, tmp_path / "log")
|
||||
_fast_install.poll_fast_installs()
|
||||
assert _fast_install._RUNS == []
|
||||
assert set() == _fast_install._FAILED
|
||||
assert not _fast_install._FAILED
|
||||
|
||||
def test_failure_is_remembered(self, tmp_path: Path) -> None:
|
||||
_run(2, 3, tmp_path / "log")
|
||||
_fast_install.poll_fast_installs()
|
||||
assert _fast_install._RUNS == []
|
||||
assert {2} == _fast_install._FAILED
|
||||
assert {2} == set(_fast_install._FAILED)
|
||||
|
||||
def test_live_and_chatty_is_left_alone(self, tmp_path: Path) -> None:
|
||||
log = tmp_path / "log"
|
||||
@ -123,8 +123,8 @@ class TestFastInstall:
|
||||
return installer
|
||||
|
||||
def test_previously_failed_goes_straight_to_fallback(self) -> None:
|
||||
_fast_install._FAILED.add(7)
|
||||
with patch(f"{PKG}._installer_path") as find:
|
||||
_fast_install._FAILED[7] = "exit 1"
|
||||
with patch(f"{PKG}.installer_path") as find:
|
||||
assert _fast_install.fast_install(7, "G") is False
|
||||
find.assert_not_called()
|
||||
|
||||
@ -134,7 +134,7 @@ class TestFastInstall:
|
||||
|
||||
def test_refused(self, tmp_path: Path) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}.installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}._refusal", return_value="a game is running"),
|
||||
patch(f"{PKG}._echo") as echo,
|
||||
patch(f"{PKG}.subprocess.run") as run,
|
||||
@ -145,7 +145,7 @@ class TestFastInstall:
|
||||
|
||||
def test_no_terminal_spawns_detached(self, tmp_path: Path) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}.installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}._refusal", return_value=None),
|
||||
patch(f"{PKG}.sys.stdin.isatty", return_value=False),
|
||||
patch(f"{PKG}._spawn_detached") as spawn,
|
||||
@ -157,23 +157,23 @@ class TestFastInstall:
|
||||
|
||||
def test_terminal_runs_in_foreground(self, tmp_path: Path) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}.installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}._refusal", return_value=None),
|
||||
patch(f"{PKG}.sys.stdin.isatty", return_value=True),
|
||||
patch(f"{PKG}._echo"),
|
||||
patch(f"{PKG}.subprocess.run", return_value=MagicMock(returncode=0)),
|
||||
):
|
||||
assert _fast_install.fast_install(7, "G") is True
|
||||
assert set() == _fast_install._FAILED
|
||||
assert not _fast_install._FAILED
|
||||
|
||||
def test_foreground_failure_falls_back(self, tmp_path: Path) -> None:
|
||||
with (
|
||||
patch(f"{PKG}._installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}.installer_path", return_value=self._ready(tmp_path)),
|
||||
patch(f"{PKG}._refusal", return_value=None),
|
||||
patch(f"{PKG}.sys.stdin.isatty", return_value=True),
|
||||
patch(f"{PKG}._echo") as echo,
|
||||
patch(f"{PKG}.subprocess.run", return_value=MagicMock(returncode=2)),
|
||||
):
|
||||
assert _fast_install.fast_install(7, "G") is False
|
||||
assert {7} == _fast_install._FAILED
|
||||
assert {7} == set(_fast_install._FAILED)
|
||||
assert "exit 2" in echo.call_args.args[0]
|
||||
|
||||
50
steam_backlog_enforcer/tests/test_game_install_queue.py
Normal file
50
steam_backlog_enforcer/tests/test_game_install_queue.py
Normal file
@ -0,0 +1,50 @@
|
||||
"""Tests for queueing an install with Steam before the fast installer runs.
|
||||
|
||||
steam-game-installer only finishes a manifest it finds. A fresh install used
|
||||
to reach it with none (Oct 22, BG3: "nothing to finish"), so the enforcer now
|
||||
writes Steam's own "needs downloading" manifest first.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import patch
|
||||
|
||||
from steam_backlog_enforcer.game_install import _queue_download, install_game
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
|
||||
PKG = "steam_backlog_enforcer.game_install"
|
||||
|
||||
|
||||
class TestQueueBeforeFastInstall:
|
||||
def test_fast_install_gets_a_manifest_to_finish(self, tmp_path: Path) -> None:
|
||||
"""steam-game-installer only finishes a manifest it finds, so a fresh
|
||||
install is queued with Steam before the installer runs, not after."""
|
||||
seen: list[bool] = []
|
||||
|
||||
def fast(_app_id: int, _label: str, prepare: Callable[[], object]) -> bool:
|
||||
prepare()
|
||||
seen.append((tmp_path / "appmanifest_440.acf").exists())
|
||||
return True
|
||||
|
||||
with (
|
||||
patch(f"{PKG}.STEAMAPPS_PATH", tmp_path),
|
||||
patch(f"{PKG}.fast_install", side_effect=fast),
|
||||
patch(f"{PKG}.os.geteuid", return_value=1000),
|
||||
):
|
||||
assert install_game(440, "TF2", "s1", use_steam_protocol=True) is True
|
||||
assert seen == [True]
|
||||
|
||||
def test_a_manifest_steam_already_has_is_kept(self, tmp_path: Path) -> None:
|
||||
"""Steam's own download in progress: its manifest is never overwritten."""
|
||||
manifest = tmp_path / "appmanifest_440.acf"
|
||||
manifest.write_text('"StateFlags"\t\t"1042"\n')
|
||||
with (
|
||||
patch(f"{PKG}.STEAMAPPS_PATH", tmp_path),
|
||||
patch("steam_backlog_enforcer._steam_client.STEAMAPPS_PATH", tmp_path),
|
||||
):
|
||||
assert _queue_download(440, "TF2", "s1") is True
|
||||
assert manifest.read_text() == '"StateFlags"\t\t"1042"\n'
|
||||
@ -112,6 +112,19 @@ class TestCmdInstall:
|
||||
):
|
||||
cmd_install(Config(steam_id="i"), state)
|
||||
|
||||
def test_failed_fast_install_never_says_done(self) -> None:
|
||||
"""Steam's fallback download started, but the fast one failed: "Done!"
|
||||
after the "Failed: ..." line was the success the BG3 job showed."""
|
||||
state = State(current_app_id=1, current_game_name="G")
|
||||
with (
|
||||
patch(f"{PKG}.is_game_fully_installed", return_value=False),
|
||||
patch(f"{PKG}.install_game", return_value=True),
|
||||
patch(f"{PKG}.fast_install_failure", return_value="exit 1"),
|
||||
patch(f"{PKG}._echo") as echo,
|
||||
):
|
||||
cmd_install(Config(steam_id="i"), state)
|
||||
echo.assert_called_with("Steam's own download was started instead.")
|
||||
|
||||
|
||||
class TestCmdHide:
|
||||
"""Tests for cmd_hide."""
|
||||
|
||||
@ -91,6 +91,7 @@ class TestDaemonView:
|
||||
"phase": "downloading depot 3/8",
|
||||
"percent": 46.9,
|
||||
"elapsed_seconds": 60,
|
||||
"error": None,
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
32
web/package-lock.json
generated
32
web/package-lock.json
generated
@ -9,7 +9,7 @@
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "5.104.5",
|
||||
"@tanstack/react-router": "1.170.45",
|
||||
"@tanstack/react-router": "1.170.46",
|
||||
"react": "19.3.1",
|
||||
"react-dom": "19.3.1"
|
||||
},
|
||||
@ -1552,14 +1552,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@tanstack/react-router": {
|
||||
"version": "1.170.45",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.45.tgz",
|
||||
"integrity": "sha512-6tuiIAFb82zsk/YxveJRyGjbsm6kIfgUuoH7qCp2R2aSHveW6W0t/6j+Sn4m1iIlA2lLU4cvooqks08/YMOThw==",
|
||||
"version": "1.170.46",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.46.tgz",
|
||||
"integrity": "sha512-ez1iNIhsPjGlaDHg3BXWs67EWVIYzB2tbopEHYDESdkO7owgkGb5de52+5Kv2v1fxdkggcNzo35bdk4arTVGQw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tanstack/history": "1.162.5",
|
||||
"@tanstack/react-store": "^0.11.2",
|
||||
"@tanstack/router-core": "1.171.38",
|
||||
"@tanstack/router-core": "1.171.39",
|
||||
"isbot": "^5.1.22"
|
||||
},
|
||||
"engines": {
|
||||
@ -1593,9 +1593,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@tanstack/router-core": {
|
||||
"version": "1.171.38",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.38.tgz",
|
||||
"integrity": "sha512-XRZVxiO6BIexICmEo3XfPmpoyyLhbjgaMJsONz4gIf5oYys0UiaG1BJGRyj9x8QZPDZcBhvAMuTYN70wSxV0gA==",
|
||||
"version": "1.171.39",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.39.tgz",
|
||||
"integrity": "sha512-qUhoJ0meuSUqGYQbHbcJYdASr06YtK+bulbj6vtrhKYFkLgkSsZ6tXmMyym7sFxiSJSPYgasgozrL01LyyR/6A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tanstack/history": "1.162.5",
|
||||
@ -4091,21 +4091,21 @@
|
||||
}
|
||||
},
|
||||
"node_modules/seroval": {
|
||||
"version": "1.6.11",
|
||||
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.6.11.tgz",
|
||||
"integrity": "sha512-hpb6XnMCGN/A+79Uf8V7/iTGkyyyazNn5X0CoCAp7Uy9vT3RT8jZ9GLcnxGoVjg3P8AArbe4ZVHq6C8oT2a0kA==",
|
||||
"version": "1.7.1",
|
||||
"resolved": "https://registry.npmjs.org/seroval/-/seroval-1.7.1.tgz",
|
||||
"integrity": "sha512-tSRMcPkD/bu1rmY0/XfFP2zLPD8jXVuzHli6Y2UFi9AiG/d0kOd8LAc/G6NolpW8MA1PtgDUhywKCmerS4E3tg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/seroval-plugins": {
|
||||
"version": "1.6.11",
|
||||
"resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.6.11.tgz",
|
||||
"integrity": "sha512-LmB3nd8pL39jKHKvnpTUjcjBtNwR8MLty/ydAR8qbfXt5j6/6KqR1atuw8cVmD2/lDxAkvAwq5tI/HsisD9Fqg==",
|
||||
"version": "1.7.1",
|
||||
"resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.7.1.tgz",
|
||||
"integrity": "sha512-5EiMqQiw2/KqzTCyJNdpMvBFbKlidtcinyRwZg77pW5Z+QllOp2JUkEpTdThkdsEFXsPGf8ofTpu5yC1kXwv0g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": ">=20"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"seroval": "^1.0"
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "5.104.5",
|
||||
"@tanstack/react-router": "1.170.45",
|
||||
"@tanstack/react-router": "1.170.46",
|
||||
"react": "19.3.1",
|
||||
"react-dom": "19.3.1"
|
||||
},
|
||||
|
||||
@ -9,11 +9,11 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@tanstack/react-query':
|
||||
specifier: 5.104.4
|
||||
version: 5.104.4(@types/react@19.3.0)(react@19.3.1)
|
||||
specifier: 5.104.5
|
||||
version: 5.104.5(@types/react@19.3.0)(react@19.3.1)
|
||||
'@tanstack/react-router':
|
||||
specifier: 1.170.45
|
||||
version: 1.170.45(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
specifier: 1.170.46
|
||||
version: 1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
react:
|
||||
specifier: 19.3.1
|
||||
version: 19.3.1
|
||||
@ -29,7 +29,7 @@ importers:
|
||||
version: 10.0.1(eslint@10.13.0(supports-color@7.2.0))
|
||||
'@rolldown/plugin-babel':
|
||||
specifier: 0.2.4
|
||||
version: 0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.13)(vite@8.3.4(@types/node@26.6.5))
|
||||
version: 0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5))
|
||||
'@testing-library/dom':
|
||||
specifier: 10.4.2
|
||||
version: 10.4.2
|
||||
@ -53,7 +53,7 @@ importers:
|
||||
version: 19.3.0(@types/react@19.3.0)
|
||||
'@vitejs/plugin-react':
|
||||
specifier: 6.1.2
|
||||
version: 6.1.2(@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.13)(vite@8.3.4(@types/node@26.6.5)))(babel-plugin-react-compiler@1.0.0)(vite@8.3.4(@types/node@26.6.5))
|
||||
version: 6.1.2(@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)))(babel-plugin-react-compiler@1.0.0)(vite@8.3.5(@types/node@26.6.5))
|
||||
'@vitest/coverage-v8':
|
||||
specifier: 5.0.5
|
||||
version: 5.0.5(vitest@5.0.5)
|
||||
@ -79,14 +79,14 @@ importers:
|
||||
specifier: 6.0.3
|
||||
version: 6.0.3
|
||||
typescript-eslint:
|
||||
specifier: 8.71.2
|
||||
version: 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
specifier: 8.72.0
|
||||
version: 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
vite:
|
||||
specifier: 8.3.4
|
||||
version: 8.3.4(@types/node@26.6.5)
|
||||
specifier: 8.3.5
|
||||
version: 8.3.5(@types/node@26.6.5)
|
||||
vitest:
|
||||
specifier: 5.0.5
|
||||
version: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.4(@types/node@26.6.5))
|
||||
version: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.5))
|
||||
|
||||
packages:
|
||||
|
||||
@ -374,101 +374,101 @@ packages:
|
||||
'@keyv/serialize@1.1.1':
|
||||
resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==}
|
||||
|
||||
'@oxc-project/types@0.153.0':
|
||||
resolution: {integrity: sha512-jSNrRIyvPVLL5E1z/tS5zLAprosGz/FuI1PWwEOz59j3E4TTTzSpqKb/RDGqJhhW0QHYISGXxq582wGx6T11Tw==}
|
||||
'@oxc-project/types@0.155.0':
|
||||
resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==}
|
||||
|
||||
'@rolldown/binding-android-arm-eabi@1.2.13':
|
||||
resolution: {integrity: sha512-Vu/NICrgdRvUOeaJZIyB2FP63s6fO/4ud5l8dXmxDx9yDyn+mN0y+gsvsVviSli+T361Aqo0h46EuMoobrwawA==}
|
||||
'@rolldown/binding-android-arm-eabi@1.2.15':
|
||||
resolution: {integrity: sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm]
|
||||
os: [android]
|
||||
|
||||
'@rolldown/binding-android-arm64@1.2.13':
|
||||
resolution: {integrity: sha512-6LEoIrGy5vvCd2boNnv2soPSUZj/PRvhp8R/t9KlX+mIZxThIE/ZqxrGXxmuNX0FuvQFvLdZr7S4HrYpYBVhEQ==}
|
||||
'@rolldown/binding-android-arm64@1.2.15':
|
||||
resolution: {integrity: sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
'@rolldown/binding-darwin-arm64@1.2.13':
|
||||
resolution: {integrity: sha512-CaJSRzlQ6Q+zkDMVA9OkVxBjVoPRCDEE3v0FSJ9kIQBgRjFApA3Si4ijhbNVUji7ZJt+PfO0e46qy4nPInHUPA==}
|
||||
'@rolldown/binding-darwin-arm64@1.2.15':
|
||||
resolution: {integrity: sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@rolldown/binding-darwin-x64@1.2.13':
|
||||
resolution: {integrity: sha512-e4r340I5hxSzJkD3YJBxgzq/rJ3wwxwdLLb2FPt1Zpyem20nrQPT11DDEEkazwxaHumH8wpglsp/Ozgj/wT6mw==}
|
||||
'@rolldown/binding-darwin-x64@1.2.15':
|
||||
resolution: {integrity: sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@rolldown/binding-freebsd-x64@1.2.13':
|
||||
resolution: {integrity: sha512-hoBWDZ4/K/mJKVMbsgUd1jfpA2DiOrJ54mpegObU9TBHBBrtX4FLIXJJQRDPZ/2Dn91GvPob+Z2hwKJzf4E5SQ==}
|
||||
'@rolldown/binding-freebsd-x64@1.2.15':
|
||||
resolution: {integrity: sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.13':
|
||||
resolution: {integrity: sha512-oF9fZu3vTWnTiVAkDFxU9PJLt1nh20K9RRpuHsR7ZnE2L7XookBbDBVLojCVSLGbvtSlxeUNnjAj6DbNsKyzbg==}
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.15':
|
||||
resolution: {integrity: sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.13':
|
||||
resolution: {integrity: sha512-DTpb/+jMiqWMPgphn4ksW1zW+XLJ6dJJ9FMvnIk9I291LhCctMPhMYJrP5t9p6C9qa3KXadDdUEZHBaPh3kNxQ==}
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.15':
|
||||
resolution: {integrity: sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.13':
|
||||
resolution: {integrity: sha512-xU+Kvv9N2A3SY35zFh1FWWNjxbadE/BKeqnkXe7vScU4GZsw757BlVmDLITZEq8DPpk6m7uoDYkK7P+x/uU5Ow==}
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.15':
|
||||
resolution: {integrity: sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.13':
|
||||
resolution: {integrity: sha512-XMk/hnhh25oQ756Lclb1Q11h4ll0xC0Esa5w4Vzp+mAE2S3AGJgeM0SonrIgY8fHhjarb6hcoTuwoFG0VVP2ig==}
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.15':
|
||||
resolution: {integrity: sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.13':
|
||||
resolution: {integrity: sha512-U1BoTHYmlywE2n3HUWjzZ+8EQsKr+OwpxYuDWaubx42tUL8QSL7nOqRz/NVHanibbFP3M1Rxuprz/wNcbMKjqw==}
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.15':
|
||||
resolution: {integrity: sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.13':
|
||||
resolution: {integrity: sha512-J4cm80Pc6wEwV5AZ42o62sIQgDk+Y7R2s646jIwuvO+4V46QB58N4vVuMPWCBaNgursXLpmUWJV//WQAkPvHBQ==}
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.15':
|
||||
resolution: {integrity: sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-x64-musl@1.2.13':
|
||||
resolution: {integrity: sha512-W0euZS40U4V6JkmEnVCIX9mcsL6cbXQ4X8c2w+MMOIjFg68TXUW+u3RT+2e1t1pv9mg/EP3pDtK3POXdQ7Rxyw==}
|
||||
'@rolldown/binding-linux-x64-musl@1.2.15':
|
||||
resolution: {integrity: sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/binding-openharmony-arm64@1.2.13':
|
||||
resolution: {integrity: sha512-do/AF/4n9MRshia3a5aXoy8xM2c6mgfT6D7H/dY6my5z+hfCIR4ab7mk4IRj++nsEQpKy39kd0DQnDq+r692tw==}
|
||||
'@rolldown/binding-openharmony-arm64@1.2.15':
|
||||
resolution: {integrity: sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [openharmony]
|
||||
|
||||
'@rolldown/binding-win32-arm64-msvc@1.2.13':
|
||||
resolution: {integrity: sha512-6FtUf2cJZobutJdxnGYX8z0vtbgqU0b2v8vfBhkXb9wp2MppMFtkunE+IaOntyi01rkIQoPW2GHABtfzsC0BRQ==}
|
||||
'@rolldown/binding-win32-arm64-msvc@1.2.15':
|
||||
resolution: {integrity: sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.13':
|
||||
resolution: {integrity: sha512-UKhFaZTeTcbKrb3iU82m17jVcPEAoqDkCN5MBqgPyZSwp/cQmib21crTS0DdH7T1B7wZRWEI89YQAOJMet5yhg==}
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.15':
|
||||
resolution: {integrity: sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@ -497,11 +497,11 @@ packages:
|
||||
resolution: {integrity: sha512-w1+YvwmTkwt5n8yUqEH3IWZ9DsmorCZW/EQ3KYHnqEgIkOZpH54NvW6/Epq3Dzb8H0ifIeYX8PExvrNLIH5FIA==}
|
||||
engines: {node: '>=20.19'}
|
||||
|
||||
'@tanstack/query-core@5.104.4':
|
||||
resolution: {integrity: sha512-nU4Yrb8Sjn0DeVb7PKG9uiepNavys3yoxy1FX0hViY4/P6Ng/mBje2SMl7i9812rtyHKtHyqiaC/td6GkI8StA==}
|
||||
'@tanstack/query-core@5.104.5':
|
||||
resolution: {integrity: sha512-Q94gI8Opd+CbdVNOdj8ZCyV8WqLYitrDq1t96Xc8WZT6lY0r5iRnJLXYDxMex7EEf2v+mXvn4FcjaBKSxXZQ9A==}
|
||||
|
||||
'@tanstack/react-query@5.104.4':
|
||||
resolution: {integrity: sha512-YD5QkvUNy8Ey3LbOy2vwL97JjoYycwDv++cWAibTe+9BLYvl3c09XpYp5dZ2VcxcguwoDhGF+utYJYb79RB36w==}
|
||||
'@tanstack/react-query@5.104.5':
|
||||
resolution: {integrity: sha512-RORgFe052U+93weaNuqg7qHq7vNVNzXN/VrXqD4bbAuQCWUqOl2lV5Ui9flWk5CVvMyL/Bh27QWhzwH0aaOx9g==}
|
||||
peerDependencies:
|
||||
'@types/react': ^18 || ^19
|
||||
react: ^18 || ^19
|
||||
@ -509,8 +509,8 @@ packages:
|
||||
'@types/react':
|
||||
optional: true
|
||||
|
||||
'@tanstack/react-router@1.170.45':
|
||||
resolution: {integrity: sha512-6tuiIAFb82zsk/YxveJRyGjbsm6kIfgUuoH7qCp2R2aSHveW6W0t/6j+Sn4m1iIlA2lLU4cvooqks08/YMOThw==}
|
||||
'@tanstack/react-router@1.170.46':
|
||||
resolution: {integrity: sha512-ez1iNIhsPjGlaDHg3BXWs67EWVIYzB2tbopEHYDESdkO7owgkGb5de52+5Kv2v1fxdkggcNzo35bdk4arTVGQw==}
|
||||
engines: {node: '>=20.19'}
|
||||
peerDependencies:
|
||||
react: '>=18.0.0 || >=19.0.0'
|
||||
@ -522,8 +522,8 @@ packages:
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
||||
|
||||
'@tanstack/router-core@1.171.38':
|
||||
resolution: {integrity: sha512-XRZVxiO6BIexICmEo3XfPmpoyyLhbjgaMJsONz4gIf5oYys0UiaG1BJGRyj9x8QZPDZcBhvAMuTYN70wSxV0gA==}
|
||||
'@tanstack/router-core@1.171.39':
|
||||
resolution: {integrity: sha512-qUhoJ0meuSUqGYQbHbcJYdASr06YtK+bulbj6vtrhKYFkLgkSsZ6tXmMyym7sFxiSJSPYgasgozrL01LyyR/6A==}
|
||||
engines: {node: '>=20.19'}
|
||||
|
||||
'@tanstack/store@0.11.2':
|
||||
@ -599,63 +599,63 @@ packages:
|
||||
'@types/react@19.3.0':
|
||||
resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
|
||||
|
||||
'@typescript-eslint/eslint-plugin@8.71.2':
|
||||
resolution: {integrity: sha512-K72/pvT7qpm8q3k8G5u93NCSN1RcLxX5h7Gw0bQpbMXviBHeY6Nx1WEwmk9wP+eKTSQ8ecxvcgt/ZX/rB938xQ==}
|
||||
'@typescript-eslint/eslint-plugin@8.72.0':
|
||||
resolution: {integrity: sha512-aysKgysPX9XOv/dk95UkvUDe++Q3n3dJPG9CEWT3RUccxfkPJ+Qn6nhKPDhZXU6Ofo9kgwGWwKyQCnZIXTgngg==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
'@typescript-eslint/parser': ^8.71.2
|
||||
'@typescript-eslint/parser': ^8.72.0
|
||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/parser@8.71.2':
|
||||
resolution: {integrity: sha512-aTtmZjp/x3gsGHkDs04/1I8kNogBJkpQaeGaN0PfiG43NzDEmW2n+OP5im9wfsvyX0yP1UZWBrAGtDBfH9jEVw==}
|
||||
'@typescript-eslint/parser@8.72.0':
|
||||
resolution: {integrity: sha512-0O+x3ynciD6zuXb1CKSu165haQV6ey53DKhHHUnujP7U+XlltJG+/keT0Xhd1HXCze+IHf7Tvt39ovyepX/LNw==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/project-service@8.71.2':
|
||||
resolution: {integrity: sha512-Pd68GsLVh5ZXlcEccFPdhSOvtHZ/2WU0XsA8zmXOS3F158lVlcTLhfQ6qvtL1RzbMie0Kp8xtbVwAg4nejKPHw==}
|
||||
'@typescript-eslint/project-service@8.72.0':
|
||||
resolution: {integrity: sha512-bzHngBbmIgzj6TsTjVUCntGx6FFLgE7mPjpO0PzHycOaZHXqS43XnrkFIHRS16LLr/xO6FHSXG3GJFo/F4bSBQ==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/scope-manager@8.71.2':
|
||||
resolution: {integrity: sha512-YF4wgg5iUX5Obywoac27B56FhozMNFhdJSbh11H5GBAwmBtfyRhmgTQqW9tRNNmHDvsZ2CX6UGzoz+YfYn2Leg==}
|
||||
'@typescript-eslint/scope-manager@8.72.0':
|
||||
resolution: {integrity: sha512-JewPyJOYcXBSAS7PIgufscHOwZqhTGyBRiQJhhuDln66tMchxvvt7nJ90JKKIoOelmdHA3kAQbm9cEUHc4JSEA==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@typescript-eslint/tsconfig-utils@8.71.2':
|
||||
resolution: {integrity: sha512-jz49TAWokm/7yWD9/o837nYax9DyALxIPOImdImvVzo6canBCZYzin8zJyqNR5k1j9K1DE0bVvr0XYB+99uAdg==}
|
||||
'@typescript-eslint/tsconfig-utils@8.72.0':
|
||||
resolution: {integrity: sha512-0vbxCf7xLVPSjcOdm6eQbgViH8EDJ8xnl1laLT9yoqSz2YmcSfSg5Vdl0JUvZf6rcuJ0ZivJIuMD4edTg8obaA==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/type-utils@8.71.2':
|
||||
resolution: {integrity: sha512-cC8UaalCViJkb3rH/xLIvidEwoFRtMZMUqDjjJMGEKaTFwYRHYBcoczlEGHuvkHEO8svRDrgZ0yQgOArFmwang==}
|
||||
'@typescript-eslint/type-utils@8.72.0':
|
||||
resolution: {integrity: sha512-gEXxmmbSTSOVTC37IYYvremOM31v+UN2W772bJxmVYPhAOPSUxtacyb7wkm1EhkYKU6KzFJsdU44DCV4to0LWw==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/types@8.71.2':
|
||||
resolution: {integrity: sha512-y5Ukl3oVp7e/VGxqIoEXoeb/Roj71PAJ4WG/N/RGj+eeDvKRLM15kGr9MijLbN0i03S52zxu31Z98E5gWChJKw==}
|
||||
'@typescript-eslint/types@8.72.0':
|
||||
resolution: {integrity: sha512-Adfoy59kxNEjT5E5fnyrp7GpHYuWs8ONbdohu4ez6IU46qDq8LltG90tLmkucZB2uhYL8mqBjtXqGd8yhfjXqQ==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@typescript-eslint/typescript-estree@8.71.2':
|
||||
resolution: {integrity: sha512-DgNOEsl4pdYzwSL+N/Cl33tX1Hlw3FvId73LnKXfq7jnrF2viOEn7X+P7RBkkSWCVm92gnWd28GIC5vJuLREeA==}
|
||||
'@typescript-eslint/typescript-estree@8.72.0':
|
||||
resolution: {integrity: sha512-gwLfFgWcw15tN2KXDCJvxEOQjPn+P3j/n3eSqkZ5sX4VpW9Cosodr+tWwBZRvJT3TcKx6HnPRGZMCNAiP1Xhug==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/utils@8.71.2':
|
||||
resolution: {integrity: sha512-RyKa1G1M9rKHDhrk+HJtiF1MvLD5Ux2JW3TSkzw+02pRALdpJb+QzG1Y5em+LvCgzGwgg8H7mBRFKljNz7ImPw==}
|
||||
'@typescript-eslint/utils@8.72.0':
|
||||
resolution: {integrity: sha512-0up3oArJZBYnzOaEXKo8DmI43QvMZyPoFEt9LWzRJcyl/RcJjfKKPebknN1VbTgXBf3M/KggUh5uUMdURLnseg==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||
typescript: '>=4.8.4 <6.1.0'
|
||||
|
||||
'@typescript-eslint/visitor-keys@8.71.2':
|
||||
resolution: {integrity: sha512-zozlN0UA32bSG2zkKAgQyRYSbEISVoyU6vvkKYo2aSny74D8Jh4e+POkJ6Lk0dlezZi5x7TtD+88Xb06IB8nhg==}
|
||||
'@typescript-eslint/visitor-keys@8.72.0':
|
||||
resolution: {integrity: sha512-E2mroviasaWecDzTGiGMtuEguuLVOeRggnrIn93CJuxYJzQBHbyymlT08aVQydbBal5538o+JkBKXh2sRuCyIA==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@vitejs/plugin-react@6.1.2':
|
||||
@ -1214,8 +1214,8 @@ packages:
|
||||
resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
postcss@8.5.29:
|
||||
resolution: {integrity: sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ==}
|
||||
postcss@8.5.31:
|
||||
resolution: {integrity: sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
prelude-ls@1.2.1:
|
||||
@ -1254,8 +1254,8 @@ packages:
|
||||
resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
rolldown@1.2.13:
|
||||
resolution: {integrity: sha512-/5apOkwWxtACcQtZ5WlrAsKS4JwXVThQPJZ3RqIruRY9UG9M8e0VlXN068xum/JRKA4aIUoJ13ghe/kGCvidiQ==}
|
||||
rolldown@1.2.15:
|
||||
resolution: {integrity: sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
|
||||
@ -1348,8 +1348,8 @@ packages:
|
||||
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
|
||||
typescript-eslint@8.71.2:
|
||||
resolution: {integrity: sha512-Rz4effbMy2g9wnvOJZG6SbVavX313Lap1vNEbk1RUochzickvzP8P4HB+bkNg5e50eVz1hQGjh9K1omI1xB4Bw==}
|
||||
typescript-eslint@8.72.0:
|
||||
resolution: {integrity: sha512-r26Fkc8As+mZvqp7SLsMmNFyYUup/6CjK7/eHBHmhOw6GH6n6YFxHVFrG0jN1c5CMpDzelLPxvgeCOzx7BjN+A==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
|
||||
@ -1384,13 +1384,13 @@ packages:
|
||||
resolution: {integrity: sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==}
|
||||
engines: {node: '>=18.12.0'}
|
||||
|
||||
vite@8.3.4:
|
||||
resolution: {integrity: sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==}
|
||||
vite@8.3.5:
|
||||
resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@types/node': ^20.19.0 || >=22.12.0
|
||||
'@vitejs/devtools': ^0.7.1
|
||||
'@vitejs/devtools': ^0.7.1 || ^0.8.0
|
||||
esbuild: ^0.27.0 || ^0.28.0
|
||||
jiti: '>=1.21.0'
|
||||
less: ^4.0.0
|
||||
@ -1849,80 +1849,80 @@ snapshots:
|
||||
|
||||
'@keyv/serialize@1.1.1': {}
|
||||
|
||||
'@oxc-project/types@0.153.0': {}
|
||||
'@oxc-project/types@0.155.0': {}
|
||||
|
||||
'@rolldown/binding-android-arm-eabi@1.2.13':
|
||||
'@rolldown/binding-android-arm-eabi@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-android-arm64@1.2.13':
|
||||
'@rolldown/binding-android-arm64@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-darwin-arm64@1.2.13':
|
||||
'@rolldown/binding-darwin-arm64@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-darwin-x64@1.2.13':
|
||||
'@rolldown/binding-darwin-x64@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-freebsd-x64@1.2.13':
|
||||
'@rolldown/binding-freebsd-x64@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.13':
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.13':
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.13':
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.13':
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.13':
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.13':
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-x64-musl@1.2.13':
|
||||
'@rolldown/binding-linux-x64-musl@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-openharmony-arm64@1.2.13':
|
||||
'@rolldown/binding-openharmony-arm64@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-win32-arm64-msvc@1.2.13':
|
||||
'@rolldown/binding-win32-arm64-msvc@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.13':
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.15':
|
||||
optional: true
|
||||
|
||||
'@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.13)(vite@8.3.4(@types/node@26.6.5))':
|
||||
'@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5))':
|
||||
dependencies:
|
||||
'@babel/core': 8.0.7
|
||||
picomatch: 4.0.7
|
||||
rolldown: 1.2.13
|
||||
rolldown: 1.2.15
|
||||
optionalDependencies:
|
||||
'@babel/runtime': 7.29.7
|
||||
vite: 8.3.4(@types/node@26.6.5)
|
||||
vite: 8.3.5(@types/node@26.6.5)
|
||||
|
||||
'@rolldown/pluginutils@1.0.1': {}
|
||||
|
||||
'@tanstack/history@1.162.5': {}
|
||||
|
||||
'@tanstack/query-core@5.104.4': {}
|
||||
'@tanstack/query-core@5.104.5': {}
|
||||
|
||||
'@tanstack/react-query@5.104.4(@types/react@19.3.0)(react@19.3.1)':
|
||||
'@tanstack/react-query@5.104.5(@types/react@19.3.0)(react@19.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/query-core': 5.104.4
|
||||
'@tanstack/query-core': 5.104.5
|
||||
react: 19.3.1
|
||||
optionalDependencies:
|
||||
'@types/react': 19.3.0
|
||||
|
||||
'@tanstack/react-router@1.170.45(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
|
||||
'@tanstack/react-router@1.170.46(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
|
||||
dependencies:
|
||||
'@tanstack/history': 1.162.5
|
||||
'@tanstack/react-store': 0.11.2(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
|
||||
'@tanstack/router-core': 1.171.38
|
||||
'@tanstack/router-core': 1.171.39
|
||||
isbot: 5.2.2
|
||||
react: 19.3.1
|
||||
react-dom: 19.3.1(react@19.3.1)
|
||||
@ -1934,7 +1934,7 @@ snapshots:
|
||||
react-dom: 19.3.1(react@19.3.1)
|
||||
use-sync-external-store: 1.7.0(react@19.3.1)
|
||||
|
||||
'@tanstack/router-core@1.171.38':
|
||||
'@tanstack/router-core@1.171.39':
|
||||
dependencies:
|
||||
'@tanstack/history': 1.162.5
|
||||
cookie-es: 3.1.1
|
||||
@ -1964,7 +1964,7 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
redent: 3.0.0
|
||||
optionalDependencies:
|
||||
vitest: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.4(@types/node@26.6.5))
|
||||
vitest: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.5))
|
||||
|
||||
'@testing-library/react@16.3.3(@testing-library/dom@10.4.2)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
|
||||
dependencies:
|
||||
@ -2011,14 +2011,14 @@ snapshots:
|
||||
dependencies:
|
||||
csstype: 3.2.3
|
||||
|
||||
'@typescript-eslint/eslint-plugin@8.71.2(@typescript-eslint/parser@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/eslint-plugin@8.72.0(@typescript-eslint/parser@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@eslint-community/regexpp': 4.12.2
|
||||
'@typescript-eslint/parser': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/scope-manager': 8.71.2
|
||||
'@typescript-eslint/type-utils': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/visitor-keys': 8.71.2
|
||||
'@typescript-eslint/parser': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/scope-manager': 8.72.0
|
||||
'@typescript-eslint/type-utils': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/visitor-keys': 8.72.0
|
||||
eslint: 10.13.0(supports-color@7.2.0)
|
||||
ignore: 7.0.6
|
||||
natural-compare: 1.4.0
|
||||
@ -2027,41 +2027,41 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/parser@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/parser@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 8.71.2
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/typescript-estree': 8.71.2(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/visitor-keys': 8.71.2
|
||||
'@typescript-eslint/scope-manager': 8.72.0
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
'@typescript-eslint/typescript-estree': 8.72.0(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/visitor-keys': 8.72.0
|
||||
debug: 4.4.3(supports-color@7.2.0)
|
||||
eslint: 10.13.0(supports-color@7.2.0)
|
||||
typescript: 6.0.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/project-service@8.71.2(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/project-service@8.72.0(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@typescript-eslint/tsconfig-utils': 8.71.2(typescript@6.0.3)
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/tsconfig-utils': 8.72.0(typescript@6.0.3)
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
debug: 4.4.3(supports-color@7.2.0)
|
||||
typescript: 6.0.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/scope-manager@8.71.2':
|
||||
'@typescript-eslint/scope-manager@8.72.0':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/visitor-keys': 8.71.2
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
'@typescript-eslint/visitor-keys': 8.72.0
|
||||
|
||||
'@typescript-eslint/tsconfig-utils@8.71.2(typescript@6.0.3)':
|
||||
'@typescript-eslint/tsconfig-utils@8.72.0(typescript@6.0.3)':
|
||||
dependencies:
|
||||
typescript: 6.0.3
|
||||
|
||||
'@typescript-eslint/type-utils@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/type-utils@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/typescript-estree': 8.71.2(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
'@typescript-eslint/typescript-estree': 8.72.0(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
debug: 4.4.3(supports-color@7.2.0)
|
||||
eslint: 10.13.0(supports-color@7.2.0)
|
||||
ts-api-utils: 2.5.0(typescript@6.0.3)
|
||||
@ -2069,14 +2069,14 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/types@8.71.2': {}
|
||||
'@typescript-eslint/types@8.72.0': {}
|
||||
|
||||
'@typescript-eslint/typescript-estree@8.71.2(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/typescript-estree@8.72.0(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@typescript-eslint/project-service': 8.71.2(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/tsconfig-utils': 8.71.2(typescript@6.0.3)
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/visitor-keys': 8.71.2
|
||||
'@typescript-eslint/project-service': 8.72.0(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/tsconfig-utils': 8.72.0(typescript@6.0.3)
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
'@typescript-eslint/visitor-keys': 8.72.0
|
||||
debug: 4.4.3(supports-color@7.2.0)
|
||||
minimatch: 10.2.6
|
||||
semver: 7.8.5
|
||||
@ -2086,28 +2086,28 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/utils@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
'@typescript-eslint/utils@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)':
|
||||
dependencies:
|
||||
'@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0(supports-color@7.2.0))
|
||||
'@typescript-eslint/scope-manager': 8.71.2
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/typescript-estree': 8.71.2(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/scope-manager': 8.72.0
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
'@typescript-eslint/typescript-estree': 8.72.0(supports-color@7.2.0)(typescript@6.0.3)
|
||||
eslint: 10.13.0(supports-color@7.2.0)
|
||||
typescript: 6.0.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@typescript-eslint/visitor-keys@8.71.2':
|
||||
'@typescript-eslint/visitor-keys@8.72.0':
|
||||
dependencies:
|
||||
'@typescript-eslint/types': 8.71.2
|
||||
'@typescript-eslint/types': 8.72.0
|
||||
eslint-visitor-keys: 5.0.1
|
||||
|
||||
'@vitejs/plugin-react@6.1.2(@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.13)(vite@8.3.4(@types/node@26.6.5)))(babel-plugin-react-compiler@1.0.0)(vite@8.3.4(@types/node@26.6.5))':
|
||||
'@vitejs/plugin-react@6.1.2(@rolldown/plugin-babel@0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5)))(babel-plugin-react-compiler@1.0.0)(vite@8.3.5(@types/node@26.6.5))':
|
||||
dependencies:
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
vite: 8.3.4(@types/node@26.6.5)
|
||||
vite: 8.3.5(@types/node@26.6.5)
|
||||
optionalDependencies:
|
||||
'@rolldown/plugin-babel': 0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.13)(vite@8.3.4(@types/node@26.6.5))
|
||||
'@rolldown/plugin-babel': 0.2.4(@babel/core@8.0.7)(@babel/runtime@7.29.7)(rolldown@1.2.15)(vite@8.3.5(@types/node@26.6.5))
|
||||
babel-plugin-react-compiler: 1.0.0
|
||||
|
||||
'@vitest/coverage-v8@5.0.5(vitest@5.0.5)':
|
||||
@ -2120,7 +2120,7 @@ snapshots:
|
||||
obug: 3.0.0
|
||||
std-env: 4.3.0
|
||||
tinyrainbow: 3.2.0
|
||||
vitest: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.4(@types/node@26.6.5))
|
||||
vitest: 5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.5))
|
||||
|
||||
'@vitest/istanbul-lib-coverage@1.0.2': {}
|
||||
|
||||
@ -2128,14 +2128,14 @@ snapshots:
|
||||
dependencies:
|
||||
'@vitest/istanbul-lib-coverage': 1.0.2
|
||||
|
||||
'@vitest/mocker@5.0.5(vite@8.3.4(@types/node@26.6.5))':
|
||||
'@vitest/mocker@5.0.5(vite@8.3.5(@types/node@26.6.5))':
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
'@vitest/spy': 5.0.5
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 1.4.3
|
||||
optionalDependencies:
|
||||
vite: 8.3.4(@types/node@26.6.5)
|
||||
vite: 8.3.5(@types/node@26.6.5)
|
||||
|
||||
'@vitest/spy@5.0.5': {}
|
||||
|
||||
@ -2596,7 +2596,7 @@ snapshots:
|
||||
|
||||
picomatch@4.0.7: {}
|
||||
|
||||
postcss@8.5.29:
|
||||
postcss@8.5.31:
|
||||
dependencies:
|
||||
nanoid: 3.3.20
|
||||
picocolors: 1.1.1
|
||||
@ -2632,26 +2632,26 @@ snapshots:
|
||||
|
||||
require-from-string@2.0.2: {}
|
||||
|
||||
rolldown@1.2.13:
|
||||
rolldown@1.2.15:
|
||||
dependencies:
|
||||
'@oxc-project/types': 0.153.0
|
||||
'@oxc-project/types': 0.155.0
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
optionalDependencies:
|
||||
'@rolldown/binding-android-arm-eabi': 1.2.13
|
||||
'@rolldown/binding-android-arm64': 1.2.13
|
||||
'@rolldown/binding-darwin-arm64': 1.2.13
|
||||
'@rolldown/binding-darwin-x64': 1.2.13
|
||||
'@rolldown/binding-freebsd-x64': 1.2.13
|
||||
'@rolldown/binding-linux-arm-gnueabihf': 1.2.13
|
||||
'@rolldown/binding-linux-arm64-gnu': 1.2.13
|
||||
'@rolldown/binding-linux-arm64-musl': 1.2.13
|
||||
'@rolldown/binding-linux-ppc64-gnu': 1.2.13
|
||||
'@rolldown/binding-linux-s390x-gnu': 1.2.13
|
||||
'@rolldown/binding-linux-x64-gnu': 1.2.13
|
||||
'@rolldown/binding-linux-x64-musl': 1.2.13
|
||||
'@rolldown/binding-openharmony-arm64': 1.2.13
|
||||
'@rolldown/binding-win32-arm64-msvc': 1.2.13
|
||||
'@rolldown/binding-win32-x64-msvc': 1.2.13
|
||||
'@rolldown/binding-android-arm-eabi': 1.2.15
|
||||
'@rolldown/binding-android-arm64': 1.2.15
|
||||
'@rolldown/binding-darwin-arm64': 1.2.15
|
||||
'@rolldown/binding-darwin-x64': 1.2.15
|
||||
'@rolldown/binding-freebsd-x64': 1.2.15
|
||||
'@rolldown/binding-linux-arm-gnueabihf': 1.2.15
|
||||
'@rolldown/binding-linux-arm64-gnu': 1.2.15
|
||||
'@rolldown/binding-linux-arm64-musl': 1.2.15
|
||||
'@rolldown/binding-linux-ppc64-gnu': 1.2.15
|
||||
'@rolldown/binding-linux-s390x-gnu': 1.2.15
|
||||
'@rolldown/binding-linux-x64-gnu': 1.2.15
|
||||
'@rolldown/binding-linux-x64-musl': 1.2.15
|
||||
'@rolldown/binding-openharmony-arm64': 1.2.15
|
||||
'@rolldown/binding-win32-arm64-msvc': 1.2.15
|
||||
'@rolldown/binding-win32-x64-msvc': 1.2.15
|
||||
|
||||
saxes@6.0.0:
|
||||
dependencies:
|
||||
@ -2721,12 +2721,12 @@ snapshots:
|
||||
dependencies:
|
||||
prelude-ls: 1.2.1
|
||||
|
||||
typescript-eslint@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3):
|
||||
typescript-eslint@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3):
|
||||
dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 8.71.2(@typescript-eslint/parser@8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/parser': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/typescript-estree': 8.71.2(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.71.2(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/eslint-plugin': 8.72.0(@typescript-eslint/parser@8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/parser': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/typescript-estree': 8.72.0(supports-color@7.2.0)(typescript@6.0.3)
|
||||
'@typescript-eslint/utils': 8.72.0(eslint@10.13.0(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)
|
||||
eslint: 10.13.0(supports-color@7.2.0)
|
||||
typescript: 6.0.3
|
||||
transitivePeerDependencies:
|
||||
@ -2754,21 +2754,21 @@ snapshots:
|
||||
|
||||
verkit@0.5.0: {}
|
||||
|
||||
vite@8.3.4(@types/node@26.6.5):
|
||||
vite@8.3.5(@types/node@26.6.5):
|
||||
dependencies:
|
||||
lightningcss: 1.33.0
|
||||
picomatch: 4.0.7
|
||||
postcss: 8.5.29
|
||||
rolldown: 1.2.13
|
||||
postcss: 8.5.31
|
||||
rolldown: 1.2.15
|
||||
tinyglobby: 0.2.17
|
||||
optionalDependencies:
|
||||
'@types/node': 26.6.5
|
||||
fsevents: 2.3.3
|
||||
|
||||
vitest@5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.4(@types/node@26.6.5)):
|
||||
vitest@5.0.5(@types/node@26.6.5)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.5)):
|
||||
dependencies:
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/mocker': 5.0.5(vite@8.3.4(@types/node@26.6.5))
|
||||
'@vitest/mocker': 5.0.5(vite@8.3.5(@types/node@26.6.5))
|
||||
chai: 6.3.0
|
||||
es-module-lexer: 2.3.2
|
||||
expect-type: 1.4.0
|
||||
@ -2779,7 +2779,7 @@ snapshots:
|
||||
tinybench: 6.2.2
|
||||
tinyexec: 1.3.1
|
||||
tinyglobby: 0.2.17
|
||||
vite: 8.3.4(@types/node@26.6.5)
|
||||
vite: 8.3.5(@types/node@26.6.5)
|
||||
why-is-node-running: 3.2.1
|
||||
optionalDependencies:
|
||||
'@types/node': 26.6.5
|
||||
|
||||
@ -173,6 +173,8 @@ export interface FastInstallRun {
|
||||
/** The current depot's percent; null until depotdownloader reports one. */
|
||||
percent: number | null
|
||||
elapsed_seconds: number
|
||||
/** Why the run failed (`phase` is then `failed`); null while it runs. */
|
||||
error?: string | null
|
||||
}
|
||||
|
||||
export interface DaemonStatus {
|
||||
|
||||
@ -114,6 +114,14 @@ describe('Dashboard', () => {
|
||||
expect(screen.getByRole('progressbar', { name: "Baldur's Gate 3 download" })).toHaveClass('bar-indeterminate')
|
||||
})
|
||||
|
||||
it('keeps a failed daemon run on screen with its reason', async () => {
|
||||
const failed = { ...bg3, phase: 'failed', percent: null, elapsed_seconds: 0, error: 'Refusing to mark it as installed' }
|
||||
show({ 'GET /api/daemon': daemon([failed]) })
|
||||
expect(await screen.findByText("Fast install of Baldur's Gate 3 failed: Refusing to mark it as installed")).toHaveClass('text-danger')
|
||||
expect(screen.getByText("Steam's own download took over.")).toBeInTheDocument()
|
||||
expect(screen.queryByRole('progressbar', { name: "Baldur's Gate 3 download" })).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('stays out of the way when nothing is installing', async () => {
|
||||
show()
|
||||
expect(await screen.findByText('Hollow Knight')).toBeInTheDocument()
|
||||
|
||||
@ -55,13 +55,21 @@ function FastInstalls() {
|
||||
if (!runs.length) return null
|
||||
return (
|
||||
<Card title="Fast install">
|
||||
{runs.map((r) => (
|
||||
<div key={r.app_id}>
|
||||
<p>{fastInstallLine(r)}</p>
|
||||
<ProgressBar fraction={r.percent === null ? null : Math.floor(r.percent) / 100} label={`${r.name} download`} />
|
||||
<p className="field-help">{fmtDuration(r.elapsed_seconds)} elapsed</p>
|
||||
</div>
|
||||
))}
|
||||
{runs.map((r) =>
|
||||
r.error ? (
|
||||
// The daemon has no job to report to: a failure stays here until Steam finishes.
|
||||
<div key={r.app_id}>
|
||||
<p className="text-danger">{`Fast install of ${r.name} failed: ${r.error}`}</p>
|
||||
<p className="field-help">Steam's own download took over.</p>
|
||||
</div>
|
||||
) : (
|
||||
<div key={r.app_id}>
|
||||
<p>{fastInstallLine(r)}</p>
|
||||
<ProgressBar fraction={r.percent === null ? null : Math.floor(r.percent) / 100} label={`${r.name} download`} />
|
||||
<p className="field-help">{fmtDuration(r.elapsed_seconds)} elapsed</p>
|
||||
</div>
|
||||
),
|
||||
)}
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user