mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-24 18:06:25 +01:00
Compare commits
2 Commits
c77dff2b07
...
fdf6251847
| Author | SHA1 | Date | |
|---|---|---|---|
| fdf6251847 | |||
| 47da4131a8 |
@ -11,6 +11,7 @@ dependencies = [
|
||||
"crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.2#subdirectory=crdt-sync",
|
||||
"freedays @ git+https://github.com/kuhyx/utils@freedays-v0.4.0#subdirectory=freedays",
|
||||
"earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.21.0#subdirectory=earned_time",
|
||||
"holds @ git+https://github.com/kuhyx/utils@holds-v0.1.0#subdirectory=holds",
|
||||
"sickdays @ git+https://github.com/kuhyx/utils@sickdays-v0.4.0#subdirectory=sickdays",
|
||||
]
|
||||
|
||||
|
||||
@ -2,11 +2,12 @@
|
||||
# Runtime: tkinter/subprocess/socket/sqlite3 (stdlib) plus gatelock (below).
|
||||
bandit==1.9.4
|
||||
codespell==2.4.3
|
||||
coverage==7.17.0
|
||||
coverage==7.17.1
|
||||
crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.9.2#subdirectory=crdt-sync
|
||||
earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.21.0#subdirectory=earned_time
|
||||
freedays @ git+https://github.com/kuhyx/utils@freedays-v0.4.0#subdirectory=freedays
|
||||
gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.11.0#subdirectory=gatelock
|
||||
holds @ git+https://github.com/kuhyx/utils@holds-v0.1.0#subdirectory=holds
|
||||
mcp==2.3.0
|
||||
mypy==2.4.1
|
||||
pre-commit==4.7.0
|
||||
|
||||
61
screen_locker/_hold.py
Normal file
61
screen_locker/_hold.py
Normal file
@ -0,0 +1,61 @@
|
||||
"""A declared test hold keeps the workout locker from showing any window.
|
||||
|
||||
``holds`` (kuhyx/utils, ``holds-v0.1.0``) is the shared "a proctored test is
|
||||
running, leave the PC usable" switch. Every workout-locker path -- the relaxed
|
||||
day's optional prompt, the strict lock and the early-bird re-check -- runs
|
||||
through ``_startup_checks._check_non_verify_exits``, so one rung there covers
|
||||
them all. It sits BELOW the reset/bonus/ingest/early-bird bookkeeping: a hold
|
||||
only suppresses the window, never a credit or a penalty term.
|
||||
|
||||
Fail closed: if ``holds`` cannot be imported or read, there is no hold and the
|
||||
locker behaves exactly as it did before, with an ERROR in the journal. A hold
|
||||
that fails open would be a free escape from the gate.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib
|
||||
import logging
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
from datetime import datetime
|
||||
|
||||
__all__ = ["HOLD_REASON", "skip_during_hold", "workout_hold_active"]
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
HOLD_REASON = "test_hold_active"
|
||||
_GATE = "workout"
|
||||
|
||||
|
||||
def workout_hold_active(now: datetime | None = None) -> bool:
|
||||
"""Whether a declared hold covers the workout gate right now."""
|
||||
try:
|
||||
# Imported at call time so a missing package fails closed, per call.
|
||||
holds = importlib.import_module("holds")
|
||||
return bool(holds.covers(_GATE, now))
|
||||
except ImportError, OSError, ValueError, TypeError, KeyError:
|
||||
_logger.exception(
|
||||
"Could not read the test holds — treating it as no hold, so "
|
||||
"the workout locker behaves as normal"
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
def skip_during_hold(record_skip: Callable[..., None]) -> bool:
|
||||
"""Skip enforcement while a hold is active.
|
||||
|
||||
Takes the locker's ``_record_skip`` (which exits the process) rather than
|
||||
the locker, like ``_night_lockdown``. Returns True when the skip was
|
||||
recorded, False when the ladder may go on.
|
||||
"""
|
||||
if not workout_hold_active():
|
||||
return False
|
||||
record_skip(
|
||||
HOLD_REASON,
|
||||
"A declared test hold is active — no workout prompt or lock window "
|
||||
"until it ends (credit and penalty bookkeeping already ran).",
|
||||
)
|
||||
return True
|
||||
@ -28,6 +28,7 @@ from screen_locker._decision_log import (
|
||||
)
|
||||
from screen_locker._degraded_sources import degraded_sources
|
||||
from screen_locker._extra_benefits import process_week_transition
|
||||
from screen_locker._hold import skip_during_hold
|
||||
from screen_locker._lock_invariant import refuse_to_lock_over_logged_workout
|
||||
from screen_locker._night_lockdown import skip_after_evening_lockdown
|
||||
from screen_locker._shutdown_base import (
|
||||
@ -125,7 +126,8 @@ class StartupChecksMixin(SyncMixin):
|
||||
# before any early-exit check, so gaps are closed regardless of today's
|
||||
# logged state (early_bird, sick_day, etc.).
|
||||
self._auto_fill_week_runnerup_bonus()
|
||||
if self._check_today_state_exits():
|
||||
# Test hold: no prompt/lock/heat dialog; bookkeeping above is untouched.
|
||||
if self._check_today_state_exits() or skip_during_hold(self._record_skip):
|
||||
return
|
||||
# Day-of-week routing: Tue/Wed/Thu relaxed (optional), Fri-Mon enforced.
|
||||
if is_relaxed_day():
|
||||
|
||||
@ -221,3 +221,13 @@ def _no_real_ntp() -> Iterator[None]:
|
||||
def _no_live_focus_project(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""No live focus project reshapes the registry (earned_time >= 0.19)."""
|
||||
monkeypatch.setenv("FOCUS_PROJECT_DATA", str(tmp_path / "focus_project"))
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _no_real_holds(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
||||
"""Point ``holds`` at an empty file: a real hold must not mute the ladder.
|
||||
|
||||
Without this the suite would read ``~/.local/share/holds/holds.json`` and
|
||||
every ladder test would start failing inside a declared test hold.
|
||||
"""
|
||||
monkeypatch.setenv("HOLDS_DATA", str(tmp_path / "holds-none.json"))
|
||||
|
||||
202
screen_locker/tests/test_hold_gate.py
Normal file
202
screen_locker/tests/test_hold_gate.py
Normal file
@ -0,0 +1,202 @@
|
||||
"""A declared test hold keeps every workout-locker path from showing a window.
|
||||
|
||||
``holds`` (kuhyx/utils, ``holds-v0.1.0``) answers "is a proctored-test hold
|
||||
active?". These tests fake it with a stand-in module so they pin only
|
||||
screen-locker's side: the rung, its placement below the bookkeeping, and the
|
||||
fail-closed behaviour when the package cannot be read.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from contextlib import ExitStack
|
||||
from datetime import datetime
|
||||
import logging
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from screen_locker import _hold
|
||||
from screen_locker._hold import HOLD_REASON, skip_during_hold, workout_hold_active
|
||||
from screen_locker.tests.conftest import create_locker
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
NOW = datetime(2026, 11, 5, 11, 5).astimezone()
|
||||
|
||||
|
||||
class _FakeHolds:
|
||||
"""A ``holds`` stand-in: ``covers`` returns the value, or raises it."""
|
||||
|
||||
def __init__(self, covers: object) -> None:
|
||||
self._covers = covers
|
||||
self.calls: list[tuple[str, datetime | None]] = []
|
||||
|
||||
def covers(self, gate: str, now: datetime | None = None) -> bool:
|
||||
"""Record the call, then answer like ``holds.covers``."""
|
||||
self.calls.append((gate, now))
|
||||
if isinstance(self._covers, BaseException):
|
||||
raise self._covers
|
||||
return bool(self._covers)
|
||||
|
||||
|
||||
def _fake_holds(*, covers: object) -> _FakeHolds:
|
||||
return _FakeHolds(covers)
|
||||
|
||||
|
||||
@pytest.fixture(name="fake_holds")
|
||||
def _fake_holds_fixture(monkeypatch: pytest.MonkeyPatch) -> _FakeHolds:
|
||||
"""Install a covering ``holds`` for the duration of one test."""
|
||||
mod = _fake_holds(covers=True)
|
||||
monkeypatch.setitem(sys.modules, "holds", mod)
|
||||
return mod
|
||||
|
||||
|
||||
class TestWorkoutHoldActive:
|
||||
"""The wrapper around ``holds.covers("workout", now)``."""
|
||||
|
||||
def test_covered_is_true_and_asks_for_the_workout_gate(
|
||||
self, fake_holds: _FakeHolds
|
||||
) -> None:
|
||||
"""An active hold reads True, asked about the 'workout' gate and now."""
|
||||
assert workout_hold_active(NOW) is True
|
||||
assert fake_holds.calls == [("workout", NOW)]
|
||||
|
||||
def test_not_covered_is_false(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""No active hold reads False."""
|
||||
monkeypatch.setitem(sys.modules, "holds", _fake_holds(covers=False))
|
||||
assert workout_hold_active(NOW) is False
|
||||
|
||||
def test_import_error_fails_closed_and_says_so(
|
||||
self, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""A missing package means the gate behaves normally, logged at error."""
|
||||
monkeypatch.setitem(sys.modules, "holds", None)
|
||||
with caplog.at_level(logging.ERROR, logger="screen_locker._hold"):
|
||||
assert workout_hold_active(NOW) is False
|
||||
assert "holds" in caplog.text
|
||||
assert "normal" in caplog.text
|
||||
|
||||
def test_runtime_error_fails_closed_and_says_so(
|
||||
self, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""A holds call that blows up means no hold, logged at error."""
|
||||
monkeypatch.setitem(sys.modules, "holds", _fake_holds(covers=OSError("boom")))
|
||||
with caplog.at_level(logging.ERROR, logger="screen_locker._hold"):
|
||||
assert workout_hold_active(NOW) is False
|
||||
assert "boom" in caplog.text
|
||||
|
||||
def test_default_now_is_passed_through_as_none(
|
||||
self, fake_holds: _FakeHolds
|
||||
) -> None:
|
||||
"""Without ``now`` the clock is holds' own (None)."""
|
||||
assert workout_hold_active() is True
|
||||
assert fake_holds.calls == [("workout", None)]
|
||||
|
||||
|
||||
class TestSkipDuringHold:
|
||||
"""The rung on its own."""
|
||||
|
||||
def test_no_hold_lets_the_ladder_proceed(
|
||||
self, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
"""Without a hold the rung records nothing."""
|
||||
monkeypatch.setitem(sys.modules, "holds", _fake_holds(covers=False))
|
||||
record_skip = MagicMock()
|
||||
assert skip_during_hold(record_skip) is False
|
||||
record_skip.assert_not_called()
|
||||
|
||||
def test_hold_records_the_skip(self, fake_holds: _FakeHolds) -> None:
|
||||
"""An active hold records a test_hold_active skip."""
|
||||
record_skip = MagicMock()
|
||||
assert skip_during_hold(record_skip) is True
|
||||
reason, detail = record_skip.call_args.args
|
||||
assert reason == HOLD_REASON == "test_hold_active"
|
||||
assert "hold" in detail.lower()
|
||||
|
||||
def test_the_seam_is_the_module_function(self) -> None:
|
||||
"""Tests patch ``_hold.workout_hold_active``, never a from-import."""
|
||||
record_skip = MagicMock()
|
||||
with patch.object(_hold, "workout_hold_active", return_value=True):
|
||||
assert skip_during_hold(record_skip) is True
|
||||
|
||||
|
||||
def _fall_through_the_ladder(locker: object) -> ExitStack:
|
||||
"""Every rung above the hold rung falls through (see test_night_lockdown_rung)."""
|
||||
stack = ExitStack()
|
||||
for patcher in (
|
||||
patch.object(locker, "_is_scheduled_skip_today", return_value=False),
|
||||
patch.object(locker, "_ingest_synced_manual_workouts"),
|
||||
patch.object(locker, "_auto_fill_week_runnerup_bonus"),
|
||||
patch.object(locker, "_check_today_state_exits", return_value=False),
|
||||
patch.object(locker, "has_logged_today", return_value=False),
|
||||
patch("screen_locker._startup_checks.has_weekly_minimum", return_value=False),
|
||||
patch("screen_locker._startup_checks.process_week_transition", return_value=[]),
|
||||
patch(
|
||||
"screen_locker._startup_checks.reset_to_base_if_new_day",
|
||||
return_value=False,
|
||||
),
|
||||
):
|
||||
stack.enter_context(patcher)
|
||||
return stack
|
||||
|
||||
|
||||
@pytest.mark.parametrize("relaxed", [True, False], ids=["relaxed_day", "strict_day"])
|
||||
class TestLadder:
|
||||
"""``_check_non_verify_exits`` during and outside a hold."""
|
||||
|
||||
def test_hold_means_no_prompt_and_no_lock(
|
||||
self,
|
||||
mock_tk: MagicMock,
|
||||
mock_sys_exit: MagicMock,
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
*,
|
||||
relaxed: bool,
|
||||
) -> None:
|
||||
"""The hold skips before the optional prompt, the heat dialog or the lock."""
|
||||
# After construction: building the locker runs the ladder itself.
|
||||
locker = create_locker(mock_tk, tmp_path)
|
||||
mock_sys_exit.reset_mock()
|
||||
monkeypatch.setitem(sys.modules, "holds", _fake_holds(covers=True))
|
||||
with (
|
||||
patch("screen_locker._startup_checks.record_decision") as record,
|
||||
patch("screen_locker._startup_checks.is_relaxed_day", return_value=relaxed),
|
||||
patch.object(locker, "_check_heat_skip_exit") as heat,
|
||||
patch("screen_locker._startup_checks.apply_flat_bonuses_if_new") as bonus,
|
||||
_fall_through_the_ladder(locker),
|
||||
):
|
||||
locker._check_non_verify_exits()
|
||||
assert [c.args[0].reason for c in record.call_args_list] == ["test_hold_active"]
|
||||
assert record.call_args.args[0].locked is False
|
||||
heat.assert_not_called()
|
||||
assert getattr(locker, "_relaxed_day_mode", False) is False
|
||||
# Credit bookkeeping above the rung is untouched.
|
||||
bonus.assert_called_once()
|
||||
mock_sys_exit.assert_called_once_with(0)
|
||||
|
||||
def test_without_a_hold_the_ladder_is_unchanged(
|
||||
self,
|
||||
mock_tk: MagicMock,
|
||||
mock_sys_exit: MagicMock,
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
*,
|
||||
relaxed: bool,
|
||||
) -> None:
|
||||
"""No hold: the relaxed prompt or the enforced lock still happen."""
|
||||
monkeypatch.setitem(sys.modules, "holds", _fake_holds(covers=False))
|
||||
locker = create_locker(mock_tk, tmp_path)
|
||||
with (
|
||||
patch("screen_locker._startup_checks.record_decision") as record,
|
||||
patch("screen_locker._startup_checks.is_relaxed_day", return_value=relaxed),
|
||||
patch.object(locker, "_check_heat_skip_exit", return_value="x"),
|
||||
patch("screen_locker._startup_checks.apply_flat_bonuses_if_new"),
|
||||
_fall_through_the_ladder(locker),
|
||||
):
|
||||
locker._check_non_verify_exits()
|
||||
expected = "relaxed_day" if relaxed else "enforced"
|
||||
assert [c.args[0].reason for c in record.call_args_list] == [expected]
|
||||
mock_sys_exit.assert_not_called()
|
||||
@ -16,7 +16,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@kuhyx/web-ui": "github:kuhyx/utils#web_ui-v0.5.0&path:/web_ui",
|
||||
"astro": "7.4.4"
|
||||
"astro": "7.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "0.9.12",
|
||||
@ -25,13 +25,13 @@
|
||||
"@testing-library/jest-dom": "7.0.1",
|
||||
"@testing-library/user-event": "14.6.8",
|
||||
"@types/node": "26.6.6",
|
||||
"@vitest/coverage-v8": "5.0.5",
|
||||
"@vitest/coverage-v8": "5.1.0",
|
||||
"eslint": "10.14.0",
|
||||
"eslint-plugin-astro": "3.2.1",
|
||||
"globals": "17.14.0",
|
||||
"jsdom": "30.1.3",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "8.72.1",
|
||||
"vitest": "5.0.5"
|
||||
"vitest": "5.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -168,10 +168,10 @@ importers:
|
||||
dependencies:
|
||||
'@kuhyx/web-ui':
|
||||
specifier: github:kuhyx/utils#web_ui-v0.5.0&path:/web_ui
|
||||
version: https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.4(@types/node@26.6.6)(yaml@2.9.1))
|
||||
version: https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
astro:
|
||||
specifier: 7.4.4
|
||||
version: 7.4.4(@types/node@26.6.6)(yaml@2.9.1)
|
||||
specifier: 7.4.5
|
||||
version: 7.4.5(@types/node@26.6.6)(yaml@2.9.1)
|
||||
devDependencies:
|
||||
'@astrojs/check':
|
||||
specifier: 0.9.12
|
||||
@ -184,7 +184,7 @@ importers:
|
||||
version: 10.4.2
|
||||
'@testing-library/jest-dom':
|
||||
specifier: 7.0.1
|
||||
version: 7.0.1(@testing-library/dom@10.4.2)(vitest@5.0.5)
|
||||
version: 7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.0)
|
||||
'@testing-library/user-event':
|
||||
specifier: 14.6.8
|
||||
version: 14.6.8(@testing-library/dom@10.4.2)
|
||||
@ -192,8 +192,8 @@ importers:
|
||||
specifier: 26.6.6
|
||||
version: 26.6.6
|
||||
'@vitest/coverage-v8':
|
||||
specifier: 5.0.5
|
||||
version: 5.0.5(vitest@5.0.5)
|
||||
specifier: 5.1.0
|
||||
version: 5.1.0(vitest@5.1.0)
|
||||
eslint:
|
||||
specifier: 10.14.0
|
||||
version: 10.14.0
|
||||
@ -213,8 +213,8 @@ importers:
|
||||
specifier: 8.72.1
|
||||
version: 8.72.1(eslint@10.14.0)(typescript@6.0.3)
|
||||
vitest:
|
||||
specifier: 5.0.5
|
||||
version: 5.0.5(@types/node@26.6.6)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
specifier: 5.1.0
|
||||
version: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
|
||||
packages:
|
||||
|
||||
@ -1045,25 +1045,25 @@ packages:
|
||||
'@ungap/structured-clone@1.4.0':
|
||||
resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==}
|
||||
|
||||
'@vitest/coverage-v8@5.0.5':
|
||||
resolution: {integrity: sha512-4KpkGdIrSqBihx/JyP/e+S+IKB98etg1XDQiLAxksLfcShnwi1VReGeOT9NI43hLHbknosKp/1CCLn9Zgcs8mg==}
|
||||
'@vitest/coverage-v8@5.1.0':
|
||||
resolution: {integrity: sha512-OY9aShBQG5KOIw2zCo9fDoCHI9RHliNHJ//nM7m6jGg41Hyke9JOGWmeMlK74xYErsxMoK8mIB3gAeEyFVA7LA==}
|
||||
peerDependencies:
|
||||
'@vitest/browser': 5.0.5
|
||||
vitest: 5.0.5
|
||||
'@vitest/browser': 5.1.0
|
||||
vitest: 5.1.0
|
||||
peerDependenciesMeta:
|
||||
'@vitest/browser':
|
||||
optional: true
|
||||
|
||||
'@vitest/istanbul-lib-coverage@1.0.2':
|
||||
resolution: {integrity: sha512-9J/JMwOf9AoJhAywhrn7ScKTL38hsWQP/qPG60OtaAFcQ5OXPwKsxZFlbnuCKmZ61m8/lGgHYnFpdyQZUvG/iA==}
|
||||
'@vitest/istanbul-lib-coverage@2.1.0':
|
||||
resolution: {integrity: sha512-WOjuS+xcjSIy7ruYBQ+9BUcV7XZQ0FyVcbWbWxW9TRx/kLGx5SQaeFRIFDJxjNplb6YsT7SpKo2zuXXUo91OIQ==}
|
||||
engines: {node: '>=22'}
|
||||
|
||||
'@vitest/istanbul-lib-report@1.0.2':
|
||||
resolution: {integrity: sha512-gUsfXZJbzPamoIY5TvHFiMMoXESBrUMo+xqaj+rYrWI69+EnvRlYBlP96ZnHPY4vX8kyUpgAnFUCg5wZG/HkDQ==}
|
||||
'@vitest/istanbul-lib-report@2.1.0':
|
||||
resolution: {integrity: sha512-+ZFta25nWtGCOBG9/IET8w1RO5Oawsd6H8Uf6AJ9EA/StFuKVtKAEJEJ6uRt84OH+T4YkI0ASmIHAhRA+0KVxw==}
|
||||
engines: {node: '>=22'}
|
||||
|
||||
'@vitest/mocker@5.0.5':
|
||||
resolution: {integrity: sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==}
|
||||
'@vitest/mocker@5.1.0':
|
||||
resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==}
|
||||
peerDependencies:
|
||||
msw: ^2.4.9 || ^3.0.0
|
||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
@ -1073,8 +1073,8 @@ packages:
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
'@vitest/spy@5.0.5':
|
||||
resolution: {integrity: sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==}
|
||||
'@vitest/spy@5.1.0':
|
||||
resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==}
|
||||
|
||||
'@volar/kit@2.4.30':
|
||||
resolution: {integrity: sha512-VocLtumfXnqnPQEWc9Yx7uC1uOh9gyjVNlrn2+6Zx/z9aM6yTLhPK8lSqM9Ilu81XRa48I00lcYJWLi2BLxx8Q==}
|
||||
@ -1188,8 +1188,8 @@ packages:
|
||||
resolution: {integrity: sha512-WavQUarfgwSbpCq4xsdcIBdX5KArfI2d6DD8EIloJIMthnB1508iNpx4C77EhUyMd03LpEt8HAPzwF/cG0V39g==}
|
||||
engines: {node: ^22.22.3 || ^24.16.0 || >=26.3.0}
|
||||
|
||||
astro@7.4.4:
|
||||
resolution: {integrity: sha512-e+BzhGCaIY/H1tV/BQPTbOPZVZ8wuu6+bbpc+3oSMH2UgoB1l9peSGASk6nswtYra9PO9OoMREhldKtQkZ5TVw==}
|
||||
astro@7.4.5:
|
||||
resolution: {integrity: sha512-n5lET11/qnrOWn4wNpXxD9g2VKkTIa162hHgrkMPChMQC5q/xh2lY2OerK5mpsEAFCNmXsYA7NISE+9Uo7Cxxg==}
|
||||
engines: {node: '>=22.23.4', npm: '>=9.6.5', pnpm: '>=7.1.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@ -1553,10 +1553,6 @@ packages:
|
||||
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
|
||||
engines: {node: '>=10.13.0'}
|
||||
|
||||
globals@17.13.0:
|
||||
resolution: {integrity: sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
globals@17.14.0:
|
||||
resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==}
|
||||
engines: {node: '>=18'}
|
||||
@ -2316,20 +2312,20 @@ packages:
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
vitest@5.0.5:
|
||||
resolution: {integrity: sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==}
|
||||
vitest@5.1.0:
|
||||
resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==}
|
||||
engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@edge-runtime/vm': '*'
|
||||
'@opentelemetry/api': ^1.9.0
|
||||
'@types/node': ^22.0.0 || >=24.0.0
|
||||
'@vitest/browser-playwright': 5.0.5
|
||||
'@vitest/browser-preview': 5.0.5
|
||||
'@vitest/browser-playwright': 5.1.0
|
||||
'@vitest/browser-preview': 5.1.0
|
||||
'@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
|
||||
'@vitest/coverage-istanbul': 5.0.5
|
||||
'@vitest/coverage-v8': 5.0.5
|
||||
'@vitest/ui': 5.0.5
|
||||
'@vitest/coverage-istanbul': 5.1.0
|
||||
'@vitest/coverage-v8': 5.1.0
|
||||
'@vitest/ui': 5.1.0
|
||||
happy-dom: '*'
|
||||
jsdom: '*'
|
||||
vite: ^6.4.0 || ^7.0.0 || ^8.0.0
|
||||
@ -3034,9 +3030,9 @@ snapshots:
|
||||
|
||||
'@keyv/serialize@1.1.1': {}
|
||||
|
||||
'@kuhyx/web-ui@https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.4(@types/node@26.6.6)(yaml@2.9.1))':
|
||||
'@kuhyx/web-ui@https://codeload.github.com/kuhyx/utils/tar.gz/decf5824e609b099f9455be93c4d09b4c1fd6cae#path:/web_ui(astro@7.4.5(@types/node@26.6.6)(yaml@2.9.1))':
|
||||
dependencies:
|
||||
astro: 7.4.4(@types/node@26.6.6)(yaml@2.9.1)
|
||||
astro: 7.4.5(@types/node@26.6.6)(yaml@2.9.1)
|
||||
|
||||
'@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)':
|
||||
dependencies:
|
||||
@ -3162,7 +3158,7 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
pretty-format: 27.5.1
|
||||
|
||||
'@testing-library/jest-dom@7.0.1(@testing-library/dom@10.4.2)(vitest@5.0.5)':
|
||||
'@testing-library/jest-dom@7.0.1(@testing-library/dom@10.4.2)(vitest@5.1.0)':
|
||||
dependencies:
|
||||
'@adobe/css-tools': 4.5.0
|
||||
'@testing-library/dom': 10.4.2
|
||||
@ -3172,7 +3168,7 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
redent: 3.0.0
|
||||
optionalDependencies:
|
||||
vitest: 5.0.5(@types/node@26.6.6)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
|
||||
'@testing-library/user-event@14.6.8(@testing-library/dom@10.4.2)':
|
||||
dependencies:
|
||||
@ -3312,34 +3308,34 @@ snapshots:
|
||||
|
||||
'@ungap/structured-clone@1.4.0': {}
|
||||
|
||||
'@vitest/coverage-v8@5.0.5(vitest@5.0.5)':
|
||||
'@vitest/coverage-v8@5.1.0(vitest@5.1.0)':
|
||||
dependencies:
|
||||
'@bcoe/v8-coverage': 1.0.2
|
||||
'@vitest/istanbul-lib-coverage': 1.0.2
|
||||
'@vitest/istanbul-lib-report': 1.0.2
|
||||
'@vitest/istanbul-lib-coverage': 2.1.0
|
||||
'@vitest/istanbul-lib-report': 2.1.0
|
||||
ast-v8-to-istanbul: 1.0.7
|
||||
magicast: 0.5.5
|
||||
obug: 3.0.0
|
||||
std-env: 4.3.0
|
||||
tinyrainbow: 3.2.0
|
||||
vitest: 5.0.5(@types/node@26.6.6)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
vitest: 5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
|
||||
'@vitest/istanbul-lib-coverage@1.0.2': {}
|
||||
'@vitest/istanbul-lib-coverage@2.1.0': {}
|
||||
|
||||
'@vitest/istanbul-lib-report@1.0.2':
|
||||
'@vitest/istanbul-lib-report@2.1.0':
|
||||
dependencies:
|
||||
'@vitest/istanbul-lib-coverage': 1.0.2
|
||||
'@vitest/istanbul-lib-coverage': 2.1.0
|
||||
|
||||
'@vitest/mocker@5.0.5(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))':
|
||||
'@vitest/mocker@5.1.0(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))':
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
'@vitest/spy': 5.0.5
|
||||
'@vitest/spy': 5.1.0
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 1.4.3
|
||||
optionalDependencies:
|
||||
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
|
||||
|
||||
'@vitest/spy@5.0.5': {}
|
||||
'@vitest/spy@5.1.0': {}
|
||||
|
||||
'@volar/kit@2.4.30(typescript@6.0.3)':
|
||||
dependencies:
|
||||
@ -3471,7 +3467,7 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
astro@7.4.4(@types/node@26.6.6)(yaml@2.9.1):
|
||||
astro@7.4.5(@types/node@26.6.6)(yaml@2.9.1):
|
||||
dependencies:
|
||||
'@astrojs/compiler-rs': 0.5.2
|
||||
'@astrojs/internal-helpers': 0.13.0
|
||||
@ -3736,7 +3732,7 @@ snapshots:
|
||||
astro-eslint-parser: 3.2.0
|
||||
eslint: 10.14.0
|
||||
espree: 11.2.0
|
||||
globals: 17.13.0
|
||||
globals: 17.14.0
|
||||
postcss: 8.5.30
|
||||
postcss-selector-parser: 7.1.7
|
||||
synckit: 0.11.13
|
||||
@ -3888,8 +3884,6 @@ snapshots:
|
||||
dependencies:
|
||||
is-glob: 4.0.3
|
||||
|
||||
globals@17.13.0: {}
|
||||
|
||||
globals@17.14.0: {}
|
||||
|
||||
h3@1.15.11:
|
||||
@ -4584,10 +4578,10 @@ snapshots:
|
||||
optionalDependencies:
|
||||
vite: 8.3.5(@types/node@26.6.6)(yaml@2.9.1)
|
||||
|
||||
vitest@5.0.5(@types/node@26.6.6)(@vitest/coverage-v8@5.0.5)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1)):
|
||||
vitest@5.1.0(@types/node@26.6.6)(@vitest/coverage-v8@5.1.0)(jsdom@30.1.3)(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1)):
|
||||
dependencies:
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/mocker': 5.0.5(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
'@vitest/mocker': 5.1.0(vite@8.3.5(@types/node@26.6.6)(yaml@2.9.1))
|
||||
chai: 6.3.0
|
||||
es-module-lexer: 2.3.2
|
||||
expect-type: 1.4.0
|
||||
@ -4602,7 +4596,7 @@ snapshots:
|
||||
why-is-node-running: 3.2.1
|
||||
optionalDependencies:
|
||||
'@types/node': 26.6.6
|
||||
'@vitest/coverage-v8': 5.0.5(vitest@5.0.5)
|
||||
'@vitest/coverage-v8': 5.1.0(vitest@5.1.0)
|
||||
jsdom: 30.1.3
|
||||
transitivePeerDependencies:
|
||||
- msw
|
||||
|
||||
Loading…
Reference in New Issue
Block a user