Compare commits

...

2 Commits

Author SHA1 Message Date
6f351179d7 Flutter 3.47.6 and web deps to newest stable
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (flutter, flutter-analyze, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,flutter-analyze) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (0) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (1) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (2) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (3) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (4) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (5) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (6) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (7) (push) Waiting to run
Tests / flutter-coverage (push) Blocked by required conditions
Tests / web-coverage (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
Flutter 3.47.5 -> 3.47.6 (.fvmrc + CI); web: globals 17.13.0,
typescript-eslint 8.71.0, vite 8.3.2, vitest + coverage-v8 5.0.3.
Web lint, 100% coverage and build pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FBbkN4ZB4aUPJPzR2prRan
2026-10-02 14:19:46 +02:00
0b0cda6782 Morning-session reader moves to gatelock 0.9.0
_morning_session.py is now a thin binding of screen-locker's path and retry
budget over gatelock.morning_session, shared with leetcode-guard and
book-guard; the verdict tests live there once. Same behaviour, same string.
Also bumps mypy 2.4.0 / pylint 4.1.1 / ruff 0.16.10 (newest stable gate) and
the stale gatelock pins in install_systemd.sh and the pylint hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FBbkN4ZB4aUPJPzR2prRan
2026-10-02 14:05:40 +02:00
12 changed files with 180 additions and 322 deletions

2
.fvmrc
View File

@ -1,3 +1,3 @@
{
"flutter": "3.47.5"
"flutter": "3.47.6"
}

View File

@ -60,7 +60,7 @@ jobs:
- uses: subosito/flutter-action@v2
if: matrix.group == 'flutter'
with:
flutter-version: 3.47.5
flutter-version: 3.47.6
channel: stable
cache: true
# analyze needs resolved packages (.dart_tool); the hook runs analyze

View File

@ -96,7 +96,7 @@ jobs:
# the SDK download alone was ~57 s.
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.47.5
flutter-version: 3.47.6
channel: stable
cache: true

View File

@ -50,7 +50,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.47.5
flutter-version: 3.47.6
channel: stable
cache: true

View File

@ -126,7 +126,7 @@ repos:
# direct URLs for one distribution, so any pin that drifts from
# the manifest becomes an unresolvable hook environment rather
# than merely an old one.
- gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.8.1#subdirectory=gatelock
- gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.9.0#subdirectory=gatelock
- crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.1#subdirectory=crdt-sync
- freedays @ git+https://github.com/kuhyx/utils@freedays-v0.3.0#subdirectory=freedays
- mcp>=2,<3
@ -146,7 +146,7 @@ repos:
# direct URLs for one distribution, so any pin that drifts from
# the manifest becomes an unresolvable hook environment rather
# than merely an old one.
- gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.8.1#subdirectory=gatelock
- gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.9.0#subdirectory=gatelock
- crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.1#subdirectory=crdt-sync
- freedays @ git+https://github.com/kuhyx/utils@freedays-v0.3.0#subdirectory=freedays
- mcp>=2,<3

View File

@ -53,7 +53,7 @@ ensure_runtime_deps() {
echo "WARNING: could not install $1 automatically" >&2
}
_pip_runtime_dep gatelock \
"gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.8.1#subdirectory=gatelock"
"gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.9.0#subdirectory=gatelock"
_pip_runtime_dep crdt_sync \
"crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.0#subdirectory=crdt-sync"
}

View File

@ -7,7 +7,7 @@ requires-python = ">=3.14"
# crdt-sync: shared CRDT merge scheme + GitHub-Contents-API sync transport,
# also used by diet_guard; here for phone-workout GitHub sync (Workstream C)
dependencies = [
"gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.8.2#subdirectory=gatelock",
"gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.9.0#subdirectory=gatelock",
"crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.1#subdirectory=crdt-sync",
"freedays @ git+https://github.com/kuhyx/utils@freedays-v0.3.0#subdirectory=freedays",
]

View File

@ -5,11 +5,11 @@ codespell==2.4.3
coverage==7.16.2
crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.1#subdirectory=crdt-sync
freedays @ git+https://github.com/kuhyx/utils@freedays-v0.3.0#subdirectory=freedays
gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.8.2#subdirectory=gatelock
gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.9.0#subdirectory=gatelock
mcp==2.2.0
mypy==2.3.1
mypy==2.4.0
pre-commit==4.6.2
pylint==4.0.9
pylint==4.1.1
pytest==9.1.1
pytest-cov==7.1.0
pytest-randomly==5.0.0
@ -19,5 +19,5 @@ pytest-xdist==3.8.0
# token over the REST endpoint; crdt-sync already pulls requests in, but this
# module imports it itself, so it is declared rather than assumed.
requests==2.34.2
ruff==0.16.9
ruff==0.16.10
types-requests==2.33.0.20260906

View File

@ -1,101 +1,33 @@
"""Read the morning-session carrot the wake-alarm service signed for today.
The phone's morning (weigh-in, shower, dress, desk) is published to the PC
and distilled by wake-alarm into ``MORNING_SESSION_FILE``. This module never
re-derives the policy: the file carries a signed ``exempt_until``, and the
only decision here is *HMAC ok, dated today, now < exempt_until*. Anything
else -- missing file, stale date, failed session, bad signature -- is "no
skip", i.e. today's ordinary ladder.
The one wrinkle is a PC booted mid-morning: the file is missing or yesterday's
until wake-alarm's ``Persistent=true`` timer catches up, which needs the
network. The enforce path waits for that, bounded; status paths never do.
The reader itself is ``gatelock.morning_session``, shared with leetcode-guard
and book-guard; this module only binds screen-locker's path and retry budget,
which the test suite redirects. The policy lives in wake-alarm: the only
decision anywhere is *HMAC ok, dated today, now < exempt_until*.
"""
from __future__ import annotations
from dataclasses import dataclass
from datetime import UTC, datetime
import json
import logging
import time
from typing import TYPE_CHECKING
from gatelock.log_integrity import verify_entry_hmac
from gatelock.morning_session import (
MORNING_RETRY_SECONDS as _SHARED_RETRY_SECONDS,
)
from gatelock.morning_session import (
MorningSkip,
morning_skip,
)
from screen_locker._constants import MORNING_SESSION_FILE
from screen_locker._day import today_str
if TYPE_CHECKING:
from collections.abc import Callable
from datetime import datetime
_logger = logging.getLogger(__name__)
__all__ = ["MorningSkip", "has_workout_skip_today", "morning_skip_today"]
# Only inside this local window is a non-today file worth waiting for: the
# refresher runs 05:00-11:00, so outside it "not today's" is simply the truth.
MORNING_WINDOW: tuple[tuple[int, int], tuple[int, int]] = ((5, 0), (11, 0))
MORNING_RETRY_SECONDS: float = 30.0
MORNING_POLL_SECONDS: float = 5.0
@dataclass(frozen=True)
class MorningSkip:
"""A skip the morning session earned: what the phone said, and until when."""
outcome: str
exempt_until: datetime
def __str__(self) -> str:
return f"{self.outcome} session, no lock until {self.exempt_until:%H:%M}"
def _read_verified() -> dict[str, object] | None:
"""The file's entry when it exists, parses and verifies; else None.
Missing is debug (it is the normal state outside the morning); anything
else is a warning, because it means the refresher or the key is broken.
"""
if not MORNING_SESSION_FILE.exists():
_logger.debug("No morning session file at %s", MORNING_SESSION_FILE)
return None
try:
entry = json.loads(MORNING_SESSION_FILE.read_text())
except (OSError, json.JSONDecodeError) as exc:
_logger.warning("Cannot read %s: %s", MORNING_SESSION_FILE, exc)
return None
if not isinstance(entry, dict) or not verify_entry_hmac(entry):
_logger.warning("Morning session file is not a signed object")
return None
return entry
def _load_today(now: datetime) -> dict[str, object] | None:
"""Today's verified entry, or None."""
entry = _read_verified()
if entry is None or entry.get("date") != today_str(now):
return None
return entry
def _skip_from(entry: dict[str, object], now: datetime) -> MorningSkip | None:
"""The skip an entry grants at ``now``, if its window is still open."""
until = entry.get("exempt_until")
if not isinstance(until, str):
return None
try:
exempt_until = datetime.fromisoformat(until)
except ValueError:
_logger.warning("Morning session exempt_until unreadable: %r", until)
return None
if now >= exempt_until:
return None
return MorningSkip(outcome=str(entry.get("outcome")), exempt_until=exempt_until)
def _in_window(now: datetime) -> bool:
(start_h, start_m), (end_h, end_m) = MORNING_WINDOW
minutes = now.hour * 60 + now.minute
return start_h * 60 + start_m <= minutes < end_h * 60 + end_m
MORNING_RETRY_SECONDS: float = _SHARED_RETRY_SECONDS
def morning_skip_today(
@ -107,26 +39,16 @@ def morning_skip_today(
"""The skip the morning session earned, or None.
With ``wait`` (the enforce path only), a file that is not today's during
the morning window is retried for up to ``MORNING_RETRY_SECONDS`` so a
freshly booted PC gives wake-alarm's catch-up run a chance to land.
the morning window is retried so a freshly booted PC gives wake-alarm's
catch-up run a chance to land.
"""
now = (now or datetime.now(tz=UTC)).astimezone()
entry = _load_today(now)
waited = 0.0
while entry is None and wait and _in_window(now) and waited < MORNING_RETRY_SECONDS:
sleep(MORNING_POLL_SECONDS)
waited += MORNING_POLL_SECONDS
now = datetime.now(tz=UTC).astimezone()
entry = _load_today(now)
if entry is None:
if waited:
_logger.warning(
"No morning session for today after %.0fs; "
"is wake-alarm-session.timer running?",
waited,
)
return None
return _skip_from(entry, now)
return morning_skip(
MORNING_SESSION_FILE,
now,
wait=wait,
retry_seconds=MORNING_RETRY_SECONDS,
sleep=sleep,
)
def has_workout_skip_today() -> bool:

View File

@ -1,8 +1,12 @@
"""screen_locker._morning_session — the carrot file, read and never re-derived."""
"""screen_locker._morning_session — binds screen-locker's file to gatelock's reader.
The verdict rules themselves (signed, today, not expired, the boot retry) are
tested once, in gatelock.morning_session.
"""
from __future__ import annotations
from datetime import UTC, datetime, timedelta
from datetime import UTC, datetime
import json
from typing import TYPE_CHECKING
from unittest.mock import patch
@ -18,122 +22,54 @@ from screen_locker._morning_session import (
)
if TYPE_CHECKING:
from collections.abc import Iterator
from pathlib import Path
NOW = datetime(2026, 9, 19, 9, 0).astimezone()
def _write(entry: dict[str, object], *, sign: bool = True) -> Path:
"""Write an entry to the redirected file; signed unless told otherwise."""
if sign:
entry["hmac"] = compute_entry_hmac(entry)
path = _morning_session.MORNING_SESSION_FILE
path.write_text(json.dumps(entry))
return path
def _entry(
outcome: str = "completed",
exempt_until: str | None = "11:00",
date: str = "2026-09-19",
) -> dict[str, object]:
entry: dict[str, object] = {"date": date, "outcome": outcome}
if exempt_until is not None:
entry["exempt_until"] = (
datetime.fromisoformat(f"{date}T{exempt_until}").astimezone().isoformat()
)
return entry
@pytest.fixture(autouse=True)
def _signing_key(tmp_path: Path) -> None:
def _signing_key(tmp_path: Path) -> Iterator[None]:
key = tmp_path / "hmac.key"
key.write_bytes(b"1" * 32)
with patch("gatelock.log_integrity.DEFAULT_HMAC_KEY_FILE", key):
yield
class TestVerdict:
"""One rule: signed, today, not yet expired."""
def test_completed_grants_until_the_signed_instant(self) -> None:
_write(_entry())
skip = morning_skip_today(NOW, wait=False)
assert skip == MorningSkip("completed", NOW.replace(hour=11))
assert "no lock until 11:00" in str(skip)
def test_expired_and_absent_exemptions_grant_nothing(self) -> None:
_write(_entry())
assert morning_skip_today(NOW + timedelta(hours=3), wait=False) is None
_write(_entry("failed", exempt_until=None))
assert morning_skip_today(NOW, wait=False) is None
_write({**_entry(), "exempt_until": "later"})
assert morning_skip_today(NOW, wait=False) is None
def test_yesterdays_file_is_not_today(self) -> None:
_write(_entry(date="2026-09-18"))
assert morning_skip_today(NOW, wait=False) is None
def test_missing_unreadable_tampered_are_all_nothing(self, tmp_path: Path) -> None:
assert morning_skip_today(NOW, wait=False) is None
path = _write(_entry(), sign=False)
assert morning_skip_today(NOW, wait=False) is None
path.write_text("[1]")
assert morning_skip_today(NOW, wait=False) is None
path.write_text("{")
assert morning_skip_today(NOW, wait=False) is None
path.unlink()
path.mkdir()
assert morning_skip_today(NOW, wait=False) is None
assert tmp_path in path.parents
def test_default_now_is_the_wall_clock(self) -> None:
_write(
_entry(
date=datetime.now(tz=UTC).astimezone().strftime("%Y-%m-%d"),
exempt_until="23:59",
)
)
assert has_workout_skip_today() is True
def _write(date: str, exempt_until: str) -> None:
"""Sign an entry into the file the conftest redirected."""
entry: dict[str, object] = {
"date": date,
"outcome": "completed",
"exempt_until": datetime.fromisoformat(f"{date}T{exempt_until}")
.astimezone()
.isoformat(),
}
entry["hmac"] = compute_entry_hmac(entry)
_morning_session.MORNING_SESSION_FILE.write_text(json.dumps(entry))
class TestBootRetry:
"""The enforce path waits for the refresher, bounded; status never does."""
def test_reads_the_redirected_file() -> None:
_write("2026-09-19", "11:00")
skip = morning_skip_today(NOW, wait=False)
assert skip == MorningSkip("completed", NOW.replace(hour=11))
assert "no lock until 11:00" in str(skip)
def test_waits_inside_the_window_then_warns(
self, caplog: pytest.LogCaptureFixture
) -> None:
naps: list[float] = []
# The window is re-checked against the real clock after each nap.
with (
patch.object(_morning_session, "MORNING_RETRY_SECONDS", 10.0),
patch.object(_morning_session, "MORNING_WINDOW", ((0, 0), (23, 59))),
):
assert morning_skip_today(NOW, wait=True, sleep=naps.append) is None
assert naps == [5.0, 5.0]
assert "is wake-alarm-session.timer running" in caplog.text
def test_a_file_landing_mid_wait_is_honoured(self) -> None:
def land(_seconds: float) -> None:
_write(
_entry(
date=datetime.now(tz=UTC).astimezone().strftime("%Y-%m-%d"),
exempt_until="23:59",
)
)
def test_missing_file_is_no_skip() -> None:
assert morning_skip_today(NOW, wait=False) is None
with (
patch.object(_morning_session, "MORNING_RETRY_SECONDS", 10.0),
patch.object(_morning_session, "MORNING_WINDOW", ((0, 0), (23, 59))),
):
assert morning_skip_today(NOW, wait=True, sleep=land) is not None
def test_never_waits_outside_the_window_or_without_wait(self) -> None:
naps: list[float] = []
with patch.object(_morning_session, "MORNING_RETRY_SECONDS", 10.0):
assert (
morning_skip_today(NOW.replace(hour=14), wait=True, sleep=naps.append)
is None
)
assert morning_skip_today(NOW, wait=False, sleep=naps.append) is None
assert naps == []
def test_has_workout_skip_today_uses_the_wall_clock() -> None:
_write(datetime.now(tz=UTC).astimezone().strftime("%Y-%m-%d"), "23:59")
assert has_workout_skip_today() is True
def test_the_retry_budget_is_screen_lockers_own() -> None:
"""The conftest zeroes it; raising it here makes the shared reader wait."""
naps: list[float] = []
assert morning_skip_today(NOW, wait=True, sleep=naps.append) is None
assert naps == []
with patch.object(_morning_session, "MORNING_RETRY_SECONDS", 10.0):
assert morning_skip_today(NOW, wait=True, sleep=naps.append) is None
assert naps

202
web/package-lock.json generated
View File

@ -21,16 +21,16 @@
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "6.1.1",
"@vitest/coverage-v8": "5.0.2",
"@vitest/coverage-v8": "5.0.3",
"eslint": "10.11.0",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.5.7",
"globals": "17.12.0",
"globals": "17.13.0",
"jsdom": "30.1.1",
"typescript": "6.0.3",
"typescript-eslint": "8.70.1",
"vite": "8.3.1",
"vitest": "5.0.2"
"typescript-eslint": "8.71.0",
"vite": "8.3.2",
"vitest": "5.0.3"
}
},
"node_modules/@adobe/css-tools": {
@ -1281,17 +1281,17 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.70.1.tgz",
"integrity": "sha512-nDNrUQ/4ruSNYbu749TRY7cfrzPtoLHEXSNBI8aaNY32LlZCajixqRf3FqcKC4p5Cam4VOHYx/t+i5+nKXvrqA==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.0.tgz",
"integrity": "sha512-pqcS9c1HxZTHt7End4nXqd0s5lJrrFzrgCkKFJrsbUnaL6M3+6oBFZaslg6Gjsl3argl2DDRFROnXARaZ2e4Nw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint-community/regexpp": "^4.12.2",
"@typescript-eslint/scope-manager": "8.70.1",
"@typescript-eslint/type-utils": "8.70.1",
"@typescript-eslint/utils": "8.70.1",
"@typescript-eslint/visitor-keys": "8.70.1",
"@typescript-eslint/scope-manager": "8.71.0",
"@typescript-eslint/type-utils": "8.71.0",
"@typescript-eslint/utils": "8.71.0",
"@typescript-eslint/visitor-keys": "8.71.0",
"ignore": "^7.0.5",
"natural-compare": "^1.4.0",
"ts-api-utils": "^2.5.0"
@ -1304,15 +1304,15 @@
"url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
"@typescript-eslint/parser": "^8.70.1",
"@typescript-eslint/parser": "^8.71.0",
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
"typescript": ">=4.8.4 <6.1.0"
}
},
"node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
"version": "7.0.10",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.10.tgz",
"integrity": "sha512-HpbUakT7xp5miBUywCHf36ZEuAJNklBJDDsGpUIjMzOSmM8ELSfA9Sa/QDPeNeqeoN31u+UTCkL4klCOVvRm4Q==",
"version": "7.0.11",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.11.tgz",
"integrity": "sha512-YChdK5txDjwGUvgR7oCJcLGkwi3LDh8Zx8tS7ndYciLEg/oOCL26VUBSUEtgS7EjiybcBqFxh5j0rAdDX7/bbg==",
"dev": true,
"license": "MIT",
"engines": {
@ -1320,16 +1320,16 @@
}
},
"node_modules/@typescript-eslint/parser": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.70.1.tgz",
"integrity": "sha512-nO974WLllwhSFWQXnMLj6nDGa8f0khKEz1JzpPJ1u7Vm/4X1X6ZHajpoknU4bb41vJyMB0HHVyS2GqdhWfIXZw==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.0.tgz",
"integrity": "sha512-CG4nPk1f2zc8yw4pALqHsFYH2hdo+h1T9daSp21+Hnxi9LOE3GT9hAfTKJCBXVNM2GmYs1eMEP615wPoeOgk3A==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/scope-manager": "8.70.1",
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/typescript-estree": "8.70.1",
"@typescript-eslint/visitor-keys": "8.70.1",
"@typescript-eslint/scope-manager": "8.71.0",
"@typescript-eslint/types": "8.71.0",
"@typescript-eslint/typescript-estree": "8.71.0",
"@typescript-eslint/visitor-keys": "8.71.0",
"debug": "^4.4.3"
},
"engines": {
@ -1345,14 +1345,14 @@
}
},
"node_modules/@typescript-eslint/project-service": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.70.1.tgz",
"integrity": "sha512-62xOgboPfwc3/IgPSX/W6oQR3ZbF04194FPGUGH8HL8iLFHbt/456/8Ph1wLNUgVF+s94FlHoipBsz+v7+LMnA==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.0.tgz",
"integrity": "sha512-aABjw5rjBacYONVPaPiWOCjJu0vEF4a25iQuodlmQYL1trtLZ0X/y+2Vzl3BKI1odM4LnwLE1oUDXYp1wzx1TQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/tsconfig-utils": "^8.70.1",
"@typescript-eslint/types": "^8.70.1",
"@typescript-eslint/tsconfig-utils": "^8.71.0",
"@typescript-eslint/types": "^8.71.0",
"debug": "^4.4.3"
},
"engines": {
@ -1367,14 +1367,14 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.70.1.tgz",
"integrity": "sha512-Pa0EeSeAusQc1WbjQMac+YfenewYTBu0KjgYvkUKwhXaHUKbFog23Dm/rp0DX/6tyYOQ3Xl1a+3EcFNZynGHCw==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.0.tgz",
"integrity": "sha512-gWF0BhUcnjZxSpLE8ngS/59n2SB0J3YqRxvX1+2aoRJk9hNtHSLOV+TcarFiOr5ipXm3yc1QrI4c9YZc8zyCxw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/visitor-keys": "8.70.1"
"@typescript-eslint/types": "8.71.0",
"@typescript-eslint/visitor-keys": "8.71.0"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -1385,9 +1385,9 @@
}
},
"node_modules/@typescript-eslint/tsconfig-utils": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.70.1.tgz",
"integrity": "sha512-jumze1fPI+sDOaM2TWGQdn39PDxTr7TZGeuyLkAbNyx2vtMT3uRnVKChN0hfht5V2TugphJzF6bYXvBcE09qqg==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.0.tgz",
"integrity": "sha512-Z1UlWHADEK2Mlb9NpWfDeSjqoZ5EyrOv4R3eQpbkzqn/EwaIdOpXXupEA1+0ZIOSJSZZDBHG0BrQyN8zUG6Pwg==",
"dev": true,
"license": "MIT",
"engines": {
@ -1402,15 +1402,15 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.70.1.tgz",
"integrity": "sha512-7zKTnyvaVWqzLZHPFQtX1hVHqgkMC+WebPWakNCSyrQVbIP1AM0L0TlBZtACldIRb6PptI8Odk+jyZ5kP3B1VA==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.0.tgz",
"integrity": "sha512-i8uO1qbdxeKgRnS5sCRt6On3/nfo2d2DwQe3Yvjx543zLy7r8ySqRuPPiIIXAhS03U0v5NfAFx+rUgxFzKKwNw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/typescript-estree": "8.70.1",
"@typescript-eslint/utils": "8.70.1",
"@typescript-eslint/types": "8.71.0",
"@typescript-eslint/typescript-estree": "8.71.0",
"@typescript-eslint/utils": "8.71.0",
"debug": "^4.4.3",
"ts-api-utils": "^2.5.0"
},
@ -1427,9 +1427,9 @@
}
},
"node_modules/@typescript-eslint/types": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.70.1.tgz",
"integrity": "sha512-Dm1ypdhhrGCTyyehxElhgJ6kgk8MVCv5qXdoOVqPr1uqk42jX8KjrZqhROvdShczA8qrDoYiOWn1ykWlx2k81Q==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.0.tgz",
"integrity": "sha512-cJ4OoxPGWvFnBTnSZyaU+qJzGTqPTGJY+gDchj6cRyLRdmIdt4rcsE4twj+zPfrNiWuVi38wijHzShL++Z9atQ==",
"dev": true,
"license": "MIT",
"engines": {
@ -1441,16 +1441,16 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.70.1.tgz",
"integrity": "sha512-TU8PwyGN0PQJUcE96mw8eCQ44SmxGdQlJmlWakHaHQ15eIuuvye5yNtmh/i6oS88jzXVQB71xdNkbkB/fMwL0g==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.0.tgz",
"integrity": "sha512-PEEF4G5sLLWAS5BpPrUvms4ySZkiBQQZM4z+3ReI46axK5Vqr/vXBQatJQIZZOYdGyPUAKTtsrWzpqKuU+3DEw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/project-service": "8.70.1",
"@typescript-eslint/tsconfig-utils": "8.70.1",
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/visitor-keys": "8.70.1",
"@typescript-eslint/project-service": "8.71.0",
"@typescript-eslint/tsconfig-utils": "8.71.0",
"@typescript-eslint/types": "8.71.0",
"@typescript-eslint/visitor-keys": "8.71.0",
"debug": "^4.4.3",
"minimatch": "^10.2.2",
"semver": "^7.7.3",
@ -1482,16 +1482,16 @@
}
},
"node_modules/@typescript-eslint/utils": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.70.1.tgz",
"integrity": "sha512-Esgul8MsnKnRLdYU2Eb2cRV9bS5HJYtKj1ByJnOzzG2M58DGdSUQ1jUuILxipqcpB2h9WLrbD5GijIWUjX/Tqw==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.0.tgz",
"integrity": "sha512-pKR/tEMVrXZG23UFKUn5BQf3zfmfk7KQceI2cGzywZ5nxM5Eu3hEJU1utjWzydtzBbcJAQhHN8iPCxobHpPcZQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint-community/eslint-utils": "^4.9.1",
"@typescript-eslint/scope-manager": "8.70.1",
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/typescript-estree": "8.70.1"
"@typescript-eslint/scope-manager": "8.71.0",
"@typescript-eslint/types": "8.71.0",
"@typescript-eslint/typescript-estree": "8.71.0"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -1506,13 +1506,13 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.70.1.tgz",
"integrity": "sha512-Vwj9lUIW5Xq3wQ9w6gv3R86g1hMK8f2zNOdGTAgeXUMMXFK78G9ruCjjqutHMNJc0+CH7LYRnHeUB9IT8wFmcw==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.0.tgz",
"integrity": "sha512-8eQ9R218XORK+KLosnf4bu/QsUXvUyVwTbArg7/0NMB1Pu87OJKvj4nhFblkYE8gQV73mW1dx1ptlPCkwRGa7A==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/types": "8.70.1",
"@typescript-eslint/types": "8.71.0",
"eslint-visitor-keys": "^5.0.0"
},
"engines": {
@ -1554,9 +1554,9 @@
}
},
"node_modules/@vitest/coverage-v8": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-5.0.2.tgz",
"integrity": "sha512-3ffHBEi8DOOBLwIGBhOBZbRfYFYWjMUuxZicONdhuFEFEG5AVsMOSrVeuROskqnqpbOmEJwxM2eTVZ9N3a1t+A==",
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-5.0.3.tgz",
"integrity": "sha512-+klsyz7BvT1vCU28Zkfzms1Ia78XD0V41U3FUtRaa3S+vOr/EXvK1O6BvVD7l1RzEjm6SONR2aybOvDDf9u0mQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -1573,8 +1573,8 @@
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
"@vitest/browser": "5.0.2",
"vitest": "5.0.2"
"@vitest/browser": "5.0.3",
"vitest": "5.0.3"
},
"peerDependenciesMeta": {
"@vitest/browser": {
@ -1606,14 +1606,14 @@
}
},
"node_modules/@vitest/mocker": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.2.tgz",
"integrity": "sha512-Z5FS00Q1SJHkB35xATsmWGdQ5WA1/0MV3CDjqyv7GavHv1OfOj145MNfHOlHk7QLes21dKFDHr8EO2zvL+9WGA==",
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.3.tgz",
"integrity": "sha512-T8sWAIbkSyAjkwTcaEc3Iu0o9A27X1/kdXrizhZkGuSKScRQtRzclfAMpOTcGdXCsqxeWlpGy3XjqaW8CpLORg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/trace-mapping": "0.3.31",
"@vitest/spy": "5.0.2",
"@vitest/spy": "5.0.3",
"estree-walker": "^3.0.3",
"magic-string": "^1.2.3"
},
@ -1634,9 +1634,9 @@
}
},
"node_modules/@vitest/spy": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.2.tgz",
"integrity": "sha512-Ijc7T1nT9efNb5LxvjaBrEqw3f/QwUv5EE0nKqZxgqsaV/FxAAZ8baGylA8X/Z2oS4Lp+K74Jr6dTJsDKxJDeg==",
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.3.tgz",
"integrity": "sha512-XhFysQTB8AZ+P4gMi+Lpo99vg2AZi0qKpaB9yXQl37+CaMEAPO3iH/wGVnSyL5MPERiLezpqTVtrR6UZH5GCXg==",
"dev": true,
"license": "MIT",
"funding": {
@ -2387,9 +2387,9 @@
}
},
"node_modules/globals": {
"version": "17.12.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-17.12.0.tgz",
"integrity": "sha512-cezEd/DTyyht9cvSSURyygXPfy04GtWO/5e6ZPvH7fCtjKz9PYOmuawphw1Ctd1f6C+5JypXfGD7ahNMXvevBA==",
"version": "17.13.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-17.13.0.tgz",
"integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==",
"dev": true,
"license": "MIT",
"engines": {
@ -3535,16 +3535,16 @@
}
},
"node_modules/typescript-eslint": {
"version": "8.70.1",
"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.70.1.tgz",
"integrity": "sha512-AcWG7KDjZ2THNXsgwttMaGmzVi0VFRlFYfqFHYQRbDpF3owuYbuiL8c7UUrd2k8s3PoSfIQrWfrGXfcElrWLYA==",
"version": "8.71.0",
"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.0.tgz",
"integrity": "sha512-fBdHYiqQ14RW6mOMXD14Svn82ZsCYAoQSzGRzyEjR59S5A2Krh/l7fGTOQ7iCr8gGy/mHVXtEF7s5fgjEdV0Pw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@typescript-eslint/eslint-plugin": "8.70.1",
"@typescript-eslint/parser": "8.70.1",
"@typescript-eslint/typescript-estree": "8.70.1",
"@typescript-eslint/utils": "8.70.1"
"@typescript-eslint/eslint-plugin": "8.71.0",
"@typescript-eslint/parser": "8.71.0",
"@typescript-eslint/typescript-estree": "8.71.0",
"@typescript-eslint/utils": "8.71.0"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@ -3617,16 +3617,16 @@
}
},
"node_modules/vite": {
"version": "8.3.1",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz",
"integrity": "sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==",
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.2.tgz",
"integrity": "sha512-SQr1x6W5vVSbROg7vsyXIaxK9b0G7zsT68acdWWRmnBUsgDieLCRG+Rep9WdZgcposvv/GSnr4GUUBqB3vXq6w==",
"dev": true,
"license": "MIT",
"dependencies": {
"lightningcss": "^1.33.0",
"picomatch": "^4.0.7",
"postcss": "^8.5.28",
"rolldown": "~1.2.9",
"rolldown": "~1.2.11",
"tinyglobby": "^0.2.17"
},
"bin": {
@ -3695,14 +3695,14 @@
}
},
"node_modules/vitest": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.2.tgz",
"integrity": "sha512-7MQrx9pDv5aHiUcovIb/70Ys3tgtkUVgCtledvKdCmEO+/1Dicq5ZqoSxOW034m03oqC+oHOKui2dM6qtMLoJg==",
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.3.tgz",
"integrity": "sha512-xMw97S3rjdtj5dkVat7jCsqWBpvchs3RlpQctUqwJD0KkERk40vz2fJ77lDwW/Vzh/pk18eItYAzkodhSes3jQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/chai": "^5.2.2",
"@vitest/mocker": "5.0.2",
"@vitest/mocker": "5.0.3",
"chai": "^6.2.2",
"es-module-lexer": "^2.3.2",
"expect-type": "^1.4.0",
@ -3713,7 +3713,7 @@
"tinybench": "^6.1.4",
"tinyexec": "^1.3.0",
"tinyglobby": "^0.2.17",
"why-is-node-running": "^3.2.1"
"why-is-node-running": "3.2.1"
},
"bin": {
"vitest": "vitest.mjs"
@ -3728,12 +3728,12 @@
"@edge-runtime/vm": "*",
"@opentelemetry/api": "^1.9.0",
"@types/node": "^22.0.0 || >=24.0.0",
"@vitest/browser-playwright": "5.0.2",
"@vitest/browser-preview": "5.0.2",
"@vitest/browser-playwright": "5.0.3",
"@vitest/browser-preview": "5.0.3",
"@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
"@vitest/coverage-istanbul": "5.0.2",
"@vitest/coverage-v8": "5.0.2",
"@vitest/ui": "5.0.2",
"@vitest/coverage-istanbul": "5.0.3",
"@vitest/coverage-v8": "5.0.3",
"@vitest/ui": "5.0.3",
"happy-dom": "*",
"jsdom": "*",
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
@ -3842,9 +3842,9 @@
}
},
"node_modules/why-is-node-running": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.2.tgz",
"integrity": "sha512-NKUzAelcoCXhXL4dJzKIwXeR8iEVqsA0Lq6Vnd0UXvgaKbzVo4ZTHROF2Jidrv+SgxOQ03fMinnNhzZATxOD3A==",
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz",
"integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==",
"dev": true,
"license": "MIT",
"bin": {

View File

@ -27,15 +27,15 @@
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "6.1.1",
"@vitest/coverage-v8": "5.0.2",
"@vitest/coverage-v8": "5.0.3",
"eslint": "10.11.0",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.5.7",
"globals": "17.12.0",
"globals": "17.13.0",
"jsdom": "30.1.1",
"typescript": "6.0.3",
"typescript-eslint": "8.70.1",
"vite": "8.3.1",
"vitest": "5.0.2"
"typescript-eslint": "8.71.0",
"vite": "8.3.2",
"vitest": "5.0.3"
}
}