diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 715231f..df4c4ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,6 +138,23 @@ jobs: # tauri::generate_context! needs the built frontend to exist. pnpm build + # Accessibility audit (axe, keyboard, focus, reduced motion) on the demo + # build in Chromium: the same on every OS, so it runs once. + - name: Accessibility audit (Linux) + if: runner.os == 'Linux' + working-directory: crates/app/ui + run: | + pnpm exec playwright install --with-deps chromium + pnpm test:web + - name: Upload the accessibility report + if: failure() && runner.os == 'Linux' + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: a11y-report + path: crates/app/ui/test-results/ + retention-days: 7 + if-no-files-found: ignore + - name: Clippy (workspace) run: cargo clippy --workspace --all-targets -- -D warnings - name: Test (app) @@ -157,6 +174,90 @@ jobs: retention-days: 7 if-no-files-found: error + # The real app (Rust backend, IPC, WebKitGTK) on copies of the KeePassXC + # fixtures, driven through tauri-driver. Runs on every event: it verifies + # branches too, not only pull requests. + e2e: + name: e2e (ubuntu-24.04) + runs-on: ubuntu-24.04 + timeout-minutes: 45 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install the Rust toolchain from rust-toolchain.toml + run: rustup toolchain install + - name: Install Tauri prerequisites, WebKitWebDriver, Xvfb and KeePassXC + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev \ + libayatana-appindicator3-dev libxdo-dev libssl-dev \ + webkit2gtk-driver xvfb dbus + sudo apt-get install -y --no-install-recommends keepassxc + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 + with: + key: e2e + - name: Install tauri-driver + run: cargo install tauri-driver --locked --version 2.1.0 + - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 + with: + package_json_file: crates/app/ui/package.json + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + cache: pnpm + cache-dependency-path: | + crates/app/ui/pnpm-lock.yaml + crates/app/e2e/pnpm-lock.yaml + - name: Build the app (debug, no installer, unsigned) + working-directory: crates/app/ui + run: | + pnpm install --frozen-lockfile + pnpm tauri build --debug --no-bundle + - name: Smoke test + run: | + set -o pipefail + echo "KEYRUST_E2E_DIR=$RUNNER_TEMP/keyrust-e2e" >> "$GITHUB_ENV" + export KEYRUST_E2E_DIR="$RUNNER_TEMP/keyrust-e2e" KEYRUST_LOG=info + pnpm --dir crates/app/e2e install --frozen-lockfile + pnpm --dir crates/app/e2e check + # A session bus, as on a desktop: without one GTK waits ~25 s for the + # desktop portal before the window appears. + xvfb-run -a dbus-run-session -- pnpm --dir crates/app/e2e test 2>&1 | + tee "$RUNNER_TEMP/e2e.log" + # The file the real app saved is still a database KeePassXC reads, with + # the new title; the KDBX 3.1 copy was opened but never written. + - name: KeePassXC reads the saved file + run: | + printf '%s\n' keyrust-test-password | + keepassxc-cli show -q -a Title "$KEYRUST_E2E_DIR/vaults/keepassxc-rich.kdbx" \ + "/Work/Dev/GitHub (e2e)" | tee "$RUNNER_TEMP/title.txt" + test "$(cat "$RUNNER_TEMP/title.txt")" = "GitHub (e2e)" + cmp "$KEYRUST_E2E_DIR/vaults/keepassxc-kdbx31.kdbx" tests/fixtures/keepassxc-kdbx31.kdbx + # Job logs need a login to read; annotations are public. The logs carry no + # field values (logging policy) and the fixture password is public. + - name: Report the end of the log as an annotation + if: failure() + run: | + if [ -f "$RUNNER_TEMP/e2e.log" ]; then + # Test results and app logs only, without the D-Bus and portal noise; + # an annotation holds about 4 KB. + clean=$(sed 's/\x1b\[[0-9;]*[A-Za-z]//g' "$RUNNER_TEMP/e2e.log") + { grep -m 2 -E 'page (state|boot)' <<<"$clean" | cut -c 1-1200 + grep -E '^\[(0-0|wry)|Error|keyrust_' <<<"$clean" | + grep -vE 'WARNING|dbus-daemon|page (state|boot)|^\[0-0\] *$' | tail -c 1500 + } | + python3 -c "import sys; print('::error title=e2e log (filtered)::' + sys.stdin.read().replace('%','%25').replace('\r','').replace('\n','%0A'))" + fi + - name: Upload logs and screenshots + if: failure() + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: e2e-logs + path: | + ${{ runner.temp }}/e2e.log + ${{ runner.temp }}/keyrust-e2e/artifacts/ + retention-days: 7 + if-no-files-found: ignore + deny: name: cargo deny runs-on: ubuntu-24.04 diff --git a/Cargo.lock b/Cargo.lock index bc6fa28..b59202b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2365,6 +2365,7 @@ name = "keyrust-core" version = "0.0.1" dependencies = [ "arbitrary", + "base64 0.22.1", "chrono", "getrandom 0.3.4", "keepass", diff --git a/README.md b/README.md index 820ec83..efe11a7 100644 --- a/README.md +++ b/README.md @@ -2,62 +2,155 @@ [![CI](https://github.com/downlevel/keyrust/actions/workflows/ci.yml/badge.svg)](https://github.com/downlevel/keyrust/actions/workflows/ci.yml) -**A modern KeePass client, written in Rust.** +**A calm, minimal KeePass client for the desktop, written in Rust.** + +Keyrust is an open source password manager for Linux, Windows and macOS. It reads and writes the +standard **KDBX** format, so your database stays a plain file you own: open it with KeePassXC, +KeePassDX (Android) or Strongbox (iOS), and sync it with Syncthing, Nextcloud or Dropbox. No +account, no cloud, no telemetry, no network access. + +> **Status: alpha, not audited.** Keyrust opens and saves real databases and is tested against +> KeePassXC in CI, but it is young software. Keep backups of your database. + +![The Keyrust vault: groups, entries and the details of an entry](docs/screenshots/vault.png) + +

+ Unlock screen with recent databases + Entry editor with the password generator + Settings: clipboard, auto-lock and generator +

+ +The screenshots show the built-in demo data. + +## Features + +- Create, open and save KDBX databases protected by a master password. New databases use KDBX 4 + with Argon2id, calibrated to about one second on your computer. +- Groups (nested) and entries with title, username, password, URL and notes; entry history; a + recycle bin with restore. +- Instant search over titles, usernames and URLs (never passwords). +- Password generator using the system's secure random source, with a strength estimate. +- Copy to the clipboard from the Rust process, cleared automatically after a delay, on lock and on + exit. +- Auto-lock on inactivity, when the screen locks, when the computer sleeps, and optionally when + the window is minimized. +- Safe saving: atomic writes, and detection of changes made by another app before saving + (*Reload* or *Keep mine*). A write that lands in the instant between the last check and the + save cannot be detected ([details](SECURITY.md#what-keyrust-does-not-protect-against)). +- Database settings: name, cipher, key-derivation parameters, recycle bin, master password. +- Everything works from the keyboard, with a command palette (Ctrl+K) and a shortcuts panel. +- Accessibility checked in CI: WCAG 2.1 AA contrast, visible focus, screen-reader roles and + announcements, reduced motion ([details](docs/ACCESSIBILITY.md)). + +### Not in this version + +Auto-type, browser integration, keyfiles, hardware keys, TOTP codes, import from other password +managers, attachments in the UI (existing attachments are preserved), a dark theme, and merging +sync conflicts. Some are planned ([roadmap](docs/TASKS.md)); auto-type, a browser extension and a +sync server of our own are not ([product requirements](docs/PRD.md)). + +## Security in one minute + +- The file is encrypted and authenticated (KDBX4). Its safety rests on your master password. +- Key-derivation parameters are checked before the key is derived, so a file tampered with by a + sync provider cannot freeze your computer. +- Passwords are not in the entry list, the details or search results, and copying happens in Rust. + The webview sees a password only while you edit, reveal or generate it. +- The vault locks itself, from the Rust process, even if the UI hangs. +- Memory-safe Rust, `unsafe` confined to a few operating-system calls, no hand-written + cryptography, audited dependencies, fuzzing of the file parser. +- Not protected: malware on an unlocked computer, a weak master password, a sync provider deleting + or rolling back your file. + +The full threat model is in [SECURITY.md](SECURITY.md). -Keyrust is an open source desktop password manager for Linux, Windows and macOS. It reads and -writes the standard **KDBX4** format, so your database stays a plain file you own: open it with -KeePassXC, KeePassDX (Android) or Strongbox (iOS), and sync it with Syncthing, Nextcloud or -Dropbox. No account, no cloud, no telemetry. - -> **Status: pre-alpha.** Milestone 2 (UI) runs on demo data; opening real databases arrives in Milestone 3. -> Do not store real passwords in it. - -## Planned features (v1) - -- Create, open and save KDBX4 databases protected by a master password (Argon2id). -- Entries (title, username, password, URL, notes) organised in groups; recycle bin. -- Instant search, configurable password generator. -- Copy to clipboard with automatic clearing; auto-lock on inactivity, screen lock, sleep and - (optionally) minimize. -- Two-way compatibility with KeePassXC, verified by automated tests. -- Full keyboard navigation. +## Architecture -Out of scope: auto-type, browser extension, a sync server of our own. See [docs/PRD.md](docs/PRD.md). +```mermaid +flowchart LR + subgraph rust["Keyrust process (Rust)"] + core["crates/core
vault, KDBX, crypto"] + app["crates/app
Tauri shell, IPC commands,
clipboard, auto-lock"] + os["crates/os
screen lock, sleep"] + end + ui["Webview
crates/app/ui (Svelte)"] + file[("KDBX file")] + clip["Clipboard"] + sys["Operating system"] + ui <-->|IPC| app + app --> core + app --> os + core <--> file + app --> clip + os <--> sys +``` -## Why another KeePass client? +`crates/core` is the vault and the file format, with no UI dependency, built on keepass-rs and +RustCrypto. `crates/app` is the Tauri 2 desktop shell: the only way the UI reaches the vault is a +fixed list of IPC commands. `crates/os` detects screen lock and sleep, and is the only crate with +`unsafe` code. Details are in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md). + +## Compatibility + +- **KeePassXC:** tested automatically both ways in CI on Linux, Windows and macOS. Keyrust opens + files made by KeePassXC and saves them without losing custom fields, attachments, history or + anything it does not display, and KeePassXC reads every file Keyrust writes. +- **KeePassDX and Strongbox:** use the same format, but have not been verified by hand yet. +- **KDBX 3.1 and 4.0:** open normally; the first save converts the file to KDBX 4.1, and Keyrust + tells you so when you open it. Very old clients that only read KDBX 3.1 cannot open the + converted file. + +## Keyrust and KeePassXC + +[KeePassXC](https://keepassxc.org) is mature and full-featured, and Keyrust uses it as the +reference for compatibility. The comparison below is as of KeePassXC 2.7. + +| | KeePassXC 2.7 | Keyrust 0.1 | +|---|---|---| +| KDBX 4 format | ✅ | ✅ | +| Auto-type | ✅ | ❌ | +| Browser integration | ✅ | ❌ | +| Keyfiles, YubiKey | ✅ | ❌ | +| TOTP codes | ✅ | ❌ | +| Import (CSV, 1Password, Bitwarden…) | ✅ | ❌ | +| KeeShare, SSH agent | ✅ | ❌ | +| Interface | Feature-rich | Minimal, three columns, keyboard-first | +| Language | C++ | Rust (memory-safe) | +| Where passwords are held | One C++ / Qt process | The Rust process; the UI webview only while you edit, reveal or generate one | +| Compatibility with KeePassXC | — | Verified in CI against `keepassxc-cli` | + +If you need any of the features Keyrust lacks, KeePassXC is the right choice, and your database +works in both. -KeePassXC is excellent and battle-tested; Keyrust aims at a calmer, more minimal everyday -experience on top of the same file format, with memory-safe code and visible engineering -quality: a written threat model ([SECURITY.md](SECURITY.md)), compatibility tests against -KeePassXC itself, fuzzing and CI on three operating systems. +## Building -## Architecture +Prerequisites for each OS are in [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md). In short: +```sh +cd crates/app/ui +pnpm install +pnpm tauri dev # run the desktop app +pnpm tauri build # build an installer for this OS ``` -crates/core vault, crypto and KDBX4 format (no UI dependencies) — keepass-rs, RustCrypto -crates/app Tauri 2 desktop shell + SvelteKit / Svelte 5 UI (crates/app/ui) -crates/os screen lock and suspend detection; the only crate with (FFI) unsafe code -``` - -Secrets stay on the Rust side: the webview only receives what it displays, and copying a -password to the clipboard happens in Rust. Details in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md). -The KDBX4 compatibility of keepass-rs with KeePassXC has been verified in -[spike 0001](docs/spikes/0001-keepass-rs-kdbx4.md). +`pnpm dev` alone runs the UI in a browser on demo data (password `secret`). -## Building - -See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for prerequisites on each OS. In short: +## Testing ```sh -cargo test -p keyrust-core # core tests (KeePassXC compatibility needs keepassxc-cli) -cd crates/app/ui && pnpm install -pnpm tauri dev # run the desktop app +cargo test -p keyrust-core # core; KeePassXC compatibility needs keepassxc-cli +cd crates/app/ui +pnpm test # UI unit and component tests (Vitest) +pnpm test:web # accessibility audit in Chromium (Playwright + axe) ``` +The end-to-end test of the real app (`crates/app/e2e`, WebdriverIO and tauri-driver) runs in CI +on Linux. See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md). + ## Documentation - [Product requirements](docs/PRD.md) · [Architecture](docs/ARCHITECTURE.md) · [Design](docs/DESIGN.md) + · [Accessibility](docs/ACCESSIBILITY.md) - [Roadmap](docs/TASKS.md) · [Development guide](docs/DEVELOPMENT.md) · [Contributing](CONTRIBUTING.md) - [Security policy and threat model](SECURITY.md) diff --git a/SECURITY.md b/SECURITY.md index 88f4078..f2d8bd7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,7 +1,7 @@ # Security policy -> **Draft (Milestone 0).** Keyrust is pre-alpha and has not been audited. Do not use it to -> store real secrets yet. +Keyrust is **alpha software and has not been audited by a third party**. It is designed to be +safe to use, and this document says exactly what that means. Keep backups of your database. ## Reporting a vulnerability @@ -17,93 +17,215 @@ reporters are credited unless they prefer otherwise. | Version | Supported | |---|---| -| `main` (pre-release) | ✅ best effort | +| `0.1.x` | ✅ once released | +| `main` | ✅ best effort, until `0.1.0` is released | | anything else | ❌ | -## Threat model +## Scope -### Assets -The contents of the user's KDBX database (passwords, usernames, notes, attachments), and the -master password that protects it. +This threat model covers Keyrust 0.1: the desktop app for Linux, Windows and macOS, opening and +saving KDBX files protected by a master password. Keyfiles, hardware keys, TOTP, browser +integration and auto-type do not exist in this version. Every statement below refers to code or +tests in this repository. When the code and this document disagree, that is a bug. -### What Keyrust protects against -These are design goals; most of them are implemented in Milestone 3 (see [docs/TASKS.md](docs/TASKS.md)). +## Assets -- **Theft or leak of the database file** (lost laptop, compromised cloud sync, backups): the file is - encrypted per the KDBX4 specification, with the key derived by Argon2id using configurable, - deliberately expensive parameters. Its security then rests on the strength of the master password. -- **Tampering with the file**: KDBX4 authenticates the header and the payload with HMAC; a modified - file is rejected rather than silently opened. -- **Casual exposure while unlocked**: passwords are masked by default, the clipboard is cleared - automatically after a short time, and the vault locks automatically. The lock is decided and done in - the Rust process (the vault is dropped and zeroized there, even if the webview hangs): +| Asset | Where it lives | +|---|---| +| Passwords, entry history, attachments, protected custom fields | The KDBX file, encrypted. While unlocked, in clear in the Rust process; a password also reaches the webview while it is edited, revealed or generated ([The webview boundary](#the-webview-boundary)) | +| Titles, usernames, URLs, notes, group names | The KDBX file, encrypted. While unlocked, in clear in the Rust process and in the webview, which displays them | +| The master password | Typed by the user in the webview; the Rust process keeps it in a `SecretString` while unlocked | +| The derived key | Rust process memory, while unlocked | +| Values copied to the clipboard | The system clipboard, until cleared | +| `settings.json` in the app config folder | Not secret, but it reveals the paths of recent databases | + +## Trust boundaries + +```mermaid +flowchart LR + subgraph process["Keyrust process (Rust)"] + core["keyrust-core
vault, KDBX, crypto"] + app["keyrust-app
IPC commands, clipboard, auto-lock"] + os["keyrust-os
screen lock, suspend (FFI)"] + end + webview["Webview
(SvelteKit UI)"] + fs[("KDBX file
local disk or sync folder")] + clip["System clipboard"] + osys["Operating system
session, power"] + + webview <-->|"IPC: a fixed list of commands"| app + app --- core + app --- os + core <-->|"atomic save, bounded reads"| fs + app -->|"copy, clear"| clip + os <-->|"lock and sleep notifications"| osys +``` + +- **Rust ↔ webview.** The webview is treated as less trusted than the Rust process. It talks to + the backend only through the IPC commands listed [below](#ipc-surface), with the default Tauri + core permissions and no file system, shell or opener plugin access. +- **Rust ↔ file system and sync provider.** The file may be read and modified by other programs + at any time: a sync client, another KeePass app, or an attacker who controls the sync account. +- **Rust ↔ clipboard.** Anything on the clipboard is readable by every program of the same user. +- **Rust ↔ operating system.** Screen-lock and sleep notifications come from the OS. Only + `crates/os` makes foreign function calls to obtain them. + +## Attackers considered + +| Attacker | Capability | Mitigation | Where | Residual risk | +|---|---|---|---|---| +| Thief of the file (lost laptop, leaked backup, cloud breach) | Reads the file offline | KDBX4 encryption; Argon2id for new databases (64 MiB, 2 lanes, iterations calibrated to about 1 s) | `crates/core/src/vault.rs` (`create`, `argon2id`) | A weak master password can still be guessed | +| Hostile sync provider | Reads, alters, deletes or rolls back the file | HMAC-authenticated header and content; key-derivation limits checked before deriving the key; bounded reads; external changes detected before every save | `crates/core/src/kdbx/limits.rs`, `crates/core/src/file.rs`, fuzz targets in `fuzz/` | Deletion and rollback to an older valid file cannot be detected: keep backups | +| Compromised webview content (a hypothetical XSS) | Runs script in the UI | Strict CSP (no inline or remote script, no network except IPC), minimal capabilities; file paths come only from native dialogs or the recent files; lists and entry details never carry passwords | `crates/app/tauri.conf.json`, `crates/app/capabilities/`, `crates/app/src/commands.rs`, `crates/app/tests/security_config.rs` | It can read what is open in the editor, revealed or generated, and call the allowed commands, including `copy_field` and `reveal_field` (see [The webview boundary](#the-webview-boundary)) | +| Someone at the computer | Uses an unlocked or locked session | Auto-lock on inactivity, screen lock, sleep and optionally minimize; masked passwords; clipboard cleared | `crates/app/src/autolock/`, `crates/os/` | An unlocked, unattended session before the idle delay expires | +| Other programs of the same user | Read the clipboard, memory, the screen, input | Clipboard cleared after a delay, on lock and on exit, and excluded from clipboard history where the platform supports it | `crates/app/src/clipboard.rs` | Not defended: see [What Keyrust does not protect against](#what-keyrust-does-not-protect-against) | +| Supply chain | Malicious or vulnerable dependency | Pinned lockfiles, `cargo deny` (advisories, licenses, sources), no hand-written cryptography, pinned CI actions | `deny.toml`, `.github/workflows/ci.yml` | A compromised upstream release that passes these checks | + +## Mitigations + +- **Encryption at rest.** The file is encrypted per the KDBX4 specification. New databases use + Argon2id with explicit parameters, never library defaults; the parameters can be changed in + *Database settings*. KDBX 3.1 and 4.0 files open normally; the first save converts them to + KDBX 4.1, and Keyrust says so with a notice when such a file is opened. +- **Tampering.** KDBX4 authenticates the header and the payload with HMAC. KDBX 3.1 has no header + HMAC: Keyrust compares the header with the `HeaderHash` stored in the encrypted part, which + keepass-rs does not check, so a changed header field is caught there too. A modified file is + rejected rather than silently opened. KDBX 3.1 files written by KeePass before 2.20 carry no + `HeaderHash` and are opened without that check, as KeePassXC does. +- **Hostile files.** The key-derivation parameters are read before anything is authenticated, + so a tampered file could ask for any amount of memory or time. Keyrust checks them before + deriving the key and refuses files beyond Argon2 2 GiB of memory, 1000 iterations or 256 lanes, + 2·10⁹ AES-KDF rounds, or a file size of 512 MiB ("This database asks for more memory or time + than Keyrust allows"). The same limits bound what Keyrust itself lets you create, and a save + that would write a file beyond the size limit is refused, leaving the file on disk as it was. + Reads are bounded too, including the checks for external changes. The parsing path is fuzzed: + headers, whole files, and save/open round trips ([fuzz/README.md](fuzz/README.md)). +- **Data loss on save.** Saves are atomic: a temporary file in the same folder, fsync, then + rename. Before replacing the file, Keyrust checks twice that it still holds exactly the bytes + it last read or wrote (length and SHA-256). If another program changed it, the save is refused + and you choose between *Reload* and *Keep mine*. Keyrust instances on the same computer also + coordinate through a lock file. The reported KDBX version changes only once the file has been + replaced. +- **Resurrected deletions.** Permanently deleted entries and groups are recorded as KDBX + tombstones, so merging in another KeePass client does not bring them back. +- **Secrets in the Rust process.** Secret values are held in `zeroize` / `secrecy` types and + wiped when dropped. They are never logged (a test checks the log output), never written to + disk in clear text, and redacted in `Debug` output. +- **Clipboard.** Copying happens in Rust (`copy_field`): the password does not pass through the + webview. Keyrust keeps only a hash of what it copied, and clears the clipboard after the + configured time, on lock and on exit, only if the clipboard still holds that value. It asks the + platform to exclude copied secrets from clipboard history where supported. +- **Auto-lock, decided in the Rust process.** The vault is dropped and zeroized there, even if + the webview hangs: - after the configured minutes of inactivity (keyboard, pointer and wheel input in the window); - - when the screen locks (option, on by default): Windows and macOS poll the session state every 2 s, - Linux listens to the desktop's `ScreenSaver.ActiveChanged` signal on D-Bus; + - when the screen locks (option, on by default): Windows and macOS poll the session state + every 2 s, Linux listens to the desktop's `ScreenSaver.ActiveChanged` signal on D-Bus; - when the computer goes to sleep, always: Windows power notification, Linux logind `PrepareForSleep`, and everywhere a detector of wall-clock jumps (the only one on macOS); - when the window is minimized (option, off by default). - An unlock still deriving the key when a lock arrives is discarded, so it cannot undo the lock. Like - the manual Lock, an automatic lock asks nothing: changes that could not be saved are lost, and the - Unlock screen says so. -- **Hostile files from a sync provider**: the key-derivation parameters are read before anything is - authenticated, so a tampered file could ask for any amount of memory or time. Keyrust checks them - before deriving the key and refuses files beyond Argon2 2 GiB of memory, 1000 iterations or 256 lanes, - 2·10⁹ AES-KDF rounds, or a file size of 512 MiB ("This database asks for more memory or time than - Keyrust allows"). The same limits bound what Keyrust itself lets you create, and a save that would - write a file beyond the size limit is refused (the file on disk stays as it was). Reads are bounded - too, including the checks for external changes. -- **Secrets lingering in memory or leaking to logs**: secret values are held in `zeroize`/`secrecy` - types and wiped when dropped; they are never logged, never written to disk in clear text, and the - webview only receives secrets the user explicitly asks to reveal. -- **Data loss on save**: saves are atomic (temporary file in the same folder, fsync, rename). Before - replacing the file Keyrust checks, twice, that it still holds exactly the bytes it last read or wrote - (length and SHA-256); if another program changed it, the save is refused and you choose between - *Reload* and *Keep mine*. Keyrust instances on the same computer also coordinate through a lock. -- **Resurrected deletions**: permanently deleted entries and groups are recorded as KDBX tombstones, - so merging in another KeePass client does not bring them back. -- **Supply-chain and memory-safety bugs**, as far as practical: Rust with `unsafe_code` forbidden in - our crates, no hand-written cryptography, pinned and audited dependencies (`cargo deny`), fuzzing - of the parsing path (whole files and save/open round trips, see [fuzz/README.md](fuzz/README.md)). - The only `unsafe` code is in `crates/os/src/lib.rs`, a few FFI calls: whether the screen is locked + An unlock still deriving the key when a lock arrives is discarded, so it cannot undo the lock. + Like the manual Lock, an automatic lock asks nothing: changes that could not be saved are lost, + and the Unlock screen says so. +- **Memory safety.** Rust with `unsafe_code` forbidden in `keyrust-core` and `keyrust-app`. The + only `unsafe` code is in `crates/os/src/lib.rs`, a few FFI calls: whether the screen is locked (Windows `OpenInputDesktop`, macOS `CGSessionCopyCurrentDictionary`) and the Windows suspend - notification (`PowerRegisterSuspendResumeNotification`). There it is denied crate-wide and allowed - function by function, each block with a `SAFETY:` comment (enforced by clippy). - -### What Keyrust does not protect against -- **A compromised computer while the vault is unlocked**: malware running as your user (keyloggers, - screen capture, memory readers, clipboard monitors) can read what you can read. No password manager - can defend against this. -- **A weak or reused master password**: the KDF slows guessing down, it cannot make a weak password strong. + notification (`PowerRegisterSuspendResumeNotification`). There it is denied crate-wide and + allowed function by function, each block with a `SAFETY:` comment (enforced by clippy). +- **Compatibility as a safety property.** Files written by Keyrust are read back by KeePassXC + (`keepassxc-cli`) in CI, and KeePassXC files are opened and saved by Keyrust without loss + (`crates/core/tests/`). An end-to-end test drives the real app and checks the saved file with + KeePassXC (`crates/app/e2e/`). + +### The webview boundary + +The UI runs in a webview, whose JavaScript strings cannot be reliably erased. Keyrust therefore +keeps passwords out of it except when the user is working with one: + +- **Never sent to the webview:** the group tree, the entry list (`EntrySummary`: title, username, + URL), the entry details (`EntryDetail`: notes, dates, whether a password exists), search results + and custom protected fields. Copying a password to the clipboard happens in Rust. The end-to-end + test checks that no fixture password appears anywhere in the page (text, attributes, field + values) after unlocking and after selecting an entry. +- **Sent to the webview, on request:** the password of the entry being edited + (`get_entry_for_edit`), a password the user reveals (`reveal_field`), and a generated password + (`generate_password`). +- **Typed in the webview:** the master password (Unlock, Create, Change master password) and the + entry fields the user types. The Unlock field is cleared after every attempt. + +Everything the webview displays (titles, usernames, URLs, notes, group names) is in its memory too. +From there the limit above applies: those strings may remain in the webview's memory until it +reuses it. A compromised webview could read whatever is open in the editor, revealed or generated, +and could call the allowed IPC commands. It could not choose which files to open or create: paths +come only from native dialogs and the recent files. + +## What Keyrust does not protect against + +- **A compromised computer while the vault is unlocked.** Malware running as your user + (keyloggers, screen capture, memory readers, clipboard monitors) can read what you can read. No + password manager can defend against this. +- **A weak or reused master password.** The key derivation slows guessing down; it cannot make a + weak password strong. - **Physical access to an unlocked session.** -- **Memory forensics after the fact**: wiping is best effort. The operating system may swap memory to - disk or produce crash dumps, and the webview's JavaScript engine does not guarantee that strings are - erased. -- **Clipboard managers and history**: copying happens in Rust (the password never passes through the - webview); Keyrust keeps only a hash of what it copied and clears the clipboard after the configured - time, on lock and on exit, only if it still holds that value. It asks the platform to exclude copied secrets from clipboard - history where supported, but cannot control third-party clipboard tools. -- **Sync conflicts and malicious sync providers**: a provider cannot read the file, but it can delete it - or roll it back to an older version. Keep backups. A program that does not use Keyrust's lock - (another KeePass client, a sync tool) can still write in the instant between Keyrust's last check and - its rename; that window cannot be closed without operating-system support. Keyrust does not merge - concurrent changes. -- **Auto-lock gaps**: screen-lock detection on Linux depends on the desktop sending the D-Bus signal - (GNOME, KDE, MATE and Cinnamon do; some minimal window managers do not). On macOS sleep is detected - from a jump of the clock, so a sleep and wake cycle shorter than 4 seconds, with "require password - after sleep" turned off, is not noticed. Setting the clock forward by more than 4 seconds locks - needlessly (the safe side). The idle timer only counts input inside Keyrust's window. -- **Decompression bombs inside an authenticated file**: keepass-rs decompresses the content only after - verifying its HMAC with your key, so such a file can only be made by someone who has your master - password, and with it they already have everything. A decompression cap is to be requested upstream. -- **Side channels and a compromised build or update channel.** Releases will be signed; verify signatures. - -## Security design rules +- **Memory forensics after the fact.** Wiping is best effort. The operating system may swap memory + to disk or produce crash dumps, and the webview's JavaScript engine does not guarantee that + strings are erased (see [The webview boundary](#the-webview-boundary)). +- **Clipboard managers and history.** Keyrust cannot control third-party clipboard tools. +- **Sync conflicts and malicious sync providers.** A provider cannot read the file, but it can + delete it or roll it back to an older version. Keep backups. A program that does not use + Keyrust's lock (another KeePass client, a sync tool) can still write in the instant between + Keyrust's last check and its rename; that window cannot be closed without operating-system + support. Keyrust does not merge concurrent changes: it detects them and asks. +- **Auto-lock gaps.** Screen-lock detection on Linux depends on the desktop sending the D-Bus + signal (GNOME, KDE, MATE and Cinnamon do; some minimal window managers do not). On macOS sleep is + detected from a jump of the clock, so a sleep and wake cycle shorter than 4 seconds, with + "require password after sleep" turned off, is not noticed. Setting the clock forward by more than + 4 seconds locks needlessly (the safe side). The idle timer only counts input inside Keyrust's + window. +- **Decompression bombs inside an authenticated file.** keepass-rs decompresses the content only + after verifying its HMAC with your key, so such a file can only be made by someone who has your + master password, and with it they already have everything. A decompression cap is to be + requested upstream. +- **Very old KeePass clients.** After the first save a database is KDBX 4.1; clients that only + read KDBX 3.1 cannot open it any more. +- **Side channels, and a compromised build or update channel.** + +## IPC surface + +The webview can call exactly these commands, defined in +[`crates/app/src/commands.rs`](crates/app/src/commands.rs). A test +([`crates/app/tests/security_config.rs`](crates/app/tests/security_config.rs)) fails if one is added +or removed without updating it, and also checks the capabilities, the plugin permissions and the +production CSP. + +| Commands | What they expose or do | +|---|---| +| `app_info`, `get_settings`, `update_settings`, `exit_app` | Version, preferences (no secrets); the recent files belong to the backend and cannot be set from the webview | +| `recent_files`, `choose_database_file`, `choose_new_database_path` | File names and paths; new paths only from native dialogs | +| `unlock`, `create`, `lock_vault`, `activity` | Open or create a database at an allowed path, lock it, report activity for the idle timer | +| `database_info`, `tree`, `list_entries`, `get_entry` | Names, cipher, KDF parameters, version; groups; summaries and details without passwords | +| `get_entry_for_edit`, `reveal_field` | The editable entry, password included; one field on request | +| `copy_field` | Copies a field to the clipboard from Rust and returns the clear delay | +| `save_entry`, `delete_entry`, `restore_entry`, `create_group`, `rename_group`, `delete_group` | Changes to entries and groups | +| `update_database`, `change_master_password` | Database name, cipher, KDF and recycle bin; master password | +| `save`, `save_overwrite`, `reload`, `check_file` | Write the file (refused if it changed on disk, unless *Keep mine*), re-read it, detect an external change | +| `generate_password`, `estimate_strength`, `benchmark_kdf` | Generated passwords (system CSPRNG), strength estimates, KDF calibration | +| `open_url` | Opens an entry's URL in the system browser, `http` and `https` only | + +## Development rules - No hand-written cryptographic primitives: only standard, maintained libraries (RustCrypto, keepass-rs). - Argon2id for new databases, with explicit parameters (never library defaults). -- Secrets: `zeroize`/`secrecy`, never logged, never serialised in clear text, never in `Debug` output. +- Secrets: `zeroize` / `secrecy`, never logged, never serialised in clear text, never in `Debug` + output. - Minimal Tauri capabilities and a strict Content Security Policy; no remote resources and no network access in v1. +- A new IPC command is a security change: it is added to the test above and to the table in this + document. + +## Verifying releases + +Starting with v0.1.0, release artifacts will be published with SHA-256 checksums and signatures, +and this section will explain how to verify them. Until then, build from source +([docs/DEVELOPMENT.md](docs/DEVELOPMENT.md)). diff --git a/crates/app/e2e/package.json b/crates/app/e2e/package.json new file mode 100644 index 0000000..c3d2a11 --- /dev/null +++ b/crates/app/e2e/package.json @@ -0,0 +1,23 @@ +{ + "name": "keyrust-e2e", + "version": "0.0.1", + "description": "End-to-end smoke test of the real Keyrust app (Tauri + WebKitGTK) through tauri-driver; Linux CI only", + "type": "module", + "private": true, + "license": "GPL-3.0-or-later", + "scripts": { + "test": "wdio run ./wdio.conf.ts", + "check": "tsc --noEmit" + }, + "packageManager": "pnpm@12.15.0", + "devDependencies": { + "@types/mocha": "10.0.10", + "@types/node": "24.19.2", + "@wdio/cli": "9.32.0", + "@wdio/globals": "9.31.3", + "@wdio/local-runner": "9.32.0", + "@wdio/mocha-framework": "9.32.0", + "@wdio/spec-reporter": "9.32.0", + "typescript": "6.0.3" + } +} diff --git a/crates/app/e2e/pnpm-lock.yaml b/crates/app/e2e/pnpm-lock.yaml new file mode 100644 index 0000000..cc836e1 --- /dev/null +++ b/crates/app/e2e/pnpm-lock.yaml @@ -0,0 +1,3972 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.15.0 + version: 12.15.0 + +packages: + + '@pnpm/exe.android-arm64@12.15.0': + resolution: {integrity: sha512-eVCqmscY70LGvgRzu3mi8IBWBFGix+a6mNZoWmXxESsBdeiKEF9xQSuaeel10yn+zI7TXy2jlI63vFLzETk+aQ==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.15.0': + resolution: {integrity: sha512-Gx/WbkFcdUFUg8g8AShezcS9EiQxfYvdAm2hfKLO8sfJmJvKOCt5fzlgHWDzmGhoclibgW+tUGZ/KF4F4wOTCA==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.15.0': + resolution: {integrity: sha512-N0ZykiDWCvqSBJvt71j7cSoBR993FqvYZFtmpCtqvW3pguiI+NAgraLPA5OTwu5mV+/d8hYpVcPktJA3xFDLtA==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.15.0': + resolution: {integrity: sha512-7Ntr2HlBUxzwWOg7NwDxCbRW/3vXuqKO+hcXm+w3SBi9rrHY53li1wLqWVT7Gjxd+lVEHM1QJZo6WJEGFU8C6A==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.15.0': + resolution: {integrity: sha512-btOiyL7fL7W4uQGH0aqFai2TNC3IoKcZ7gNHBVbEFZt2dWrnrD0SufL3iGs3fLlmb4OtuU35uf4Zpr9V9Jh9mA==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.15.0': + resolution: {integrity: sha512-pNC38k+O+90FOjbPNSnw0E7apq1PKTmz3fFe1amn+lys/U5kL++uzir8bRiho8ONcyA3d9EU7wdqcY0DKkj+JA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.15.0': + resolution: {integrity: sha512-qML/8aCXslh8td/w4U+HJNqUcZ2+m6EfTbWScIzZRmyPsRFN+xB4LP1U/hymxc1iSJiKtG56HJx2fvUErWFIGw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.15.0': + resolution: {integrity: sha512-tjRDUUl7RCJ6T/6eoNPxOqkwU4Mzi5RtTXmSAxujyz37OTwwsMU7Ps087Zk4gHcUvRSeyF40ZFsew3vtE+nmUA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.15.0': + resolution: {integrity: sha512-bF1uBWEfbwaeryz6lIiaJ8AWD082otZfvzGX5l+6LZRpRwUEpJHUsJrORaYP5/cNMv5ZR2p6TvvcJcQzwtDzmw==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.15.0': + resolution: {integrity: sha512-zKMhIzsexYMToeLmqV5jPsvV/f9vwsJb2kUH2NFYzalbxImeBrlA4kL7GwF8gD4pagV6jYYcJb8RjbZIdjHptg==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.15.0': + resolution: {integrity: sha512-A9J0Jg0Rdx+qQU4qXtwyST5tto9IOu1zi4fDk35nbc6DWahggbcKtFvZPKFwL2qgUXGXOX//hXv6z/sp6emO8A==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.15.0': + resolution: {integrity: sha512-yc+QlZR+9+nr29J4fRzhMoapgxTBDndq/+peyoq1XUufnQFnfbXUMFudDIKzHi545linGqmOmXfn0NoufNgcOg==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.win32-arm64@12.15.0': + resolution: {integrity: sha512-fPXZxuY1VclkOga9bc53qNCXcegfeoBR8+Ue+AospDwKzuGGSHll0oDxkLfkmpjyRqpe7bH5DyQPYp/xSMaIVA==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.15.0': + resolution: {integrity: sha512-nrd+Tp1We1DGj4DGG5Bea9lZNh9y1PjlLBdEwdInS4D0h0UIDtM7JaGGGDJhNzIwcHASyihWI7HLV+dtG+fhYg==} + cpu: [x64] + os: [win32] + + pnpm@12.15.0: + resolution: {integrity: sha512-s5UdbW/0qfE9x89WzSjSuOs328ycaOUuHhGRhz6p+CoBcoerULqtxczElPA2xnwOR+sTYIwvo29HcRth6hKOYQ==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.15.0': + optional: true + + '@pnpm/exe.android-x64@12.15.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.15.0': + optional: true + + '@pnpm/exe.darwin-x64@12.15.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.15.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.15.0': + optional: true + + '@pnpm/exe.linux-arm64@12.15.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.15.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.15.0': + optional: true + + '@pnpm/exe.linux-s390x@12.15.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.15.0': + optional: true + + '@pnpm/exe.linux-x64@12.15.0': + optional: true + + '@pnpm/exe.win32-arm64@12.15.0': + optional: true + + '@pnpm/exe.win32-x64@12.15.0': + optional: true + + pnpm@12.15.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.15.0 + '@pnpm/exe.android-x64': 12.15.0 + '@pnpm/exe.darwin-arm64': 12.15.0 + '@pnpm/exe.darwin-x64': 12.15.0 + '@pnpm/exe.freebsd-x64': 12.15.0 + '@pnpm/exe.linux-arm64': 12.15.0 + '@pnpm/exe.linux-arm64-musl': 12.15.0 + '@pnpm/exe.linux-ppc64': 12.15.0 + '@pnpm/exe.linux-riscv64': 12.15.0 + '@pnpm/exe.linux-s390x': 12.15.0 + '@pnpm/exe.linux-x64': 12.15.0 + '@pnpm/exe.linux-x64-musl': 12.15.0 + '@pnpm/exe.win32-arm64': 12.15.0 + '@pnpm/exe.win32-x64': 12.15.0 + +--- +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@types/mocha': + specifier: 10.0.10 + version: 10.0.10 + '@types/node': + specifier: 24.19.2 + version: 24.19.2 + '@wdio/cli': + specifier: 9.32.0 + version: 9.32.0(@types/node@24.19.2)(expect-webdriverio@6.1.0)(supports-color@8.1.1) + '@wdio/globals': + specifier: 9.31.3 + version: 9.31.3(expect-webdriverio@6.1.0)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/local-runner': + specifier: 9.32.0 + version: 9.32.0(@wdio/globals@9.31.3)(supports-color@8.1.1)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/mocha-framework': + specifier: 9.32.0 + version: 9.32.0(supports-color@8.1.1) + '@wdio/spec-reporter': + specifier: 9.32.0 + version: 9.32.0 + typescript: + specifier: 6.0.3 + version: 6.0.3 + +packages: + + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@inquirer/ansi@1.0.2': + resolution: {integrity: sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==} + engines: {node: '>=18'} + + '@inquirer/checkbox@4.3.2': + resolution: {integrity: sha512-VXukHf0RR1doGe6Sm4F0Em7SWYLTHSsbGfJdS9Ja2bX5/D5uwVOEjr07cncLROdBvmnvCATYEWlHqYmXv2IlQA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@5.1.21': + resolution: {integrity: sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@10.3.2': + resolution: {integrity: sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@4.2.23': + resolution: {integrity: sha512-aLSROkEwirotxZ1pBaP8tugXRFCxW94gwrQLxXfrZsKkfjOYC1aRvAZuhpJOb5cu4IBTJdsCigUlf2iCOu4ZDQ==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@4.0.23': + resolution: {integrity: sha512-nRzdOyFYnpeYTTR2qFwEVmIWypzdAx/sIkCMeTNTcflFOovfqUk+HcFhQQVBftAh9gmGrpFj6QcGEqrDMDOiew==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@1.0.3': + resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@1.0.15': + resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==} + engines: {node: '>=18'} + + '@inquirer/input@4.3.1': + resolution: {integrity: sha512-kN0pAM4yPrLjJ1XJBjDxyfDduXOuQHrBB8aLDMueuwUGn+vNpF7Gq7TvyVxx8u4SHlFFj4trmj+a2cbpG4Jn1g==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@3.0.23': + resolution: {integrity: sha512-5Smv0OK7K0KUzUfYUXDXQc9jrf8OHo4ktlEayFlelCjwMXz0299Y8OrI+lj7i4gCBY15UObk76q0QtxjzFcFcg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@4.0.23': + resolution: {integrity: sha512-zREJHjhT5vJBMZX/IUbyI9zVtVfOLiTO66MrF/3GFZYZ7T4YILW5MSkEYHceSii/KtRk+4i3RE7E1CUXA2jHcA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@7.10.1': + resolution: {integrity: sha512-Dx/y9bCQcXLI5ooQ5KyvA4FTgeo2jYj/7plWfV5Ak5wDPKQZgudKez2ixyfz7tKXzcJciTxqLeK7R9HItwiByg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@4.1.11': + resolution: {integrity: sha512-+LLQB8XGr3I5LZN/GuAHo+GpDJegQwuPARLChlMICNdwW7OwV2izlCSCxN6cqpL0sMXmbKbFcItJgdQq5EBXTw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@3.2.2': + resolution: {integrity: sha512-p2bvRfENXCZdWF/U2BXvnSI9h+tuA8iNqtUKb9UWbmLYCRQxd8WkvwWvYn+3NgYaNwdUkHytJMGG4MMLucI1kA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@4.4.2': + resolution: {integrity: sha512-l4xMuJo55MAe+N7Qr4rX90vypFwCajSakx59qe/tMaC1aEHWLyw68wF4o0A4SLAY4E0nd+Vt+EyskeDIqu1M6w==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@3.0.10': + resolution: {integrity: sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@jest/diff-sequences@30.5.0': + resolution: {integrity: sha512-OsqBjHXCn8cadasoAZBP6nWYvMsRhpMzGXTpxJ5aO04NlbdhIz+FVe3q49l0AwVhsz/cEmIpBes6gAFl1/dWQg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/expect-utils@30.5.2': + resolution: {integrity: sha512-d/HOLSrJUlBIl6n3LzOa7cjW3xdePm5H5gQw2lixZ/0h157l9sw3mLblzFqnPcTbhDzhRQdBOX3A3KcG73nm5Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/get-type@30.5.0': + resolution: {integrity: sha512-9/2VUPitAjmBzbvDvqrxmvB7BzWsBW0WmkkojX1ODuxX1NLGxx9gfaZpHB0z8DtJ9uhGNmZG/VXBhf8uO0OV8Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/pattern@30.5.0': + resolution: {integrity: sha512-HdNQYSdRTEBNrginaqzQtTjG0HRMfrra/z6Ok7uL3S87vSlarIVohEsJsSj5edu3MiHoHjAkvPROz5ZjoKai+w==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/schemas@30.5.0': + resolution: {integrity: sha512-/hunigyNpc4RCjC0VaW3f5RCUZVM2+WQ65qP7z083Gmvac7or2LI50XVNOtE4YPgBpV0yxYiAgorAPGniCoJmg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jest/types@30.5.1': + resolution: {integrity: sha512-LvVYn83nnXPl+Rg98nvcFgjx6nRMTArhSn6RAX/w3ELn54S8A42TYZvsCMdGUqTM8S0wyXbtlQdU6Hi6dykj9g==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@promptbook/utils@0.69.5': + resolution: {integrity: sha512-xm5Ti/Hp3o4xHrsK9Yy3MS6KbDxYbq485hDsFvxqaNA7equHLPdo8H8faTitTeb14QCDfLW4iwCxdVYu5sn6YQ==} + + '@puppeteer/browsers@2.13.2': + resolution: {integrity: sha512-5EUZSUIc37H6aIXyWO0Z4y8NlF8NnjgmqeQgOGiswAU7pY0HOo16ho4+alIWmSfdZnjqBRawMsP3I5YqLSn6kw==} + engines: {node: '>=18'} + hasBin: true + + '@sec-ant/readable-stream@0.4.1': + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + + '@sinclair/typebox@0.34.52': + resolution: {integrity: sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==} + + '@sindresorhus/merge-streams@4.0.0': + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + + '@tootallnate/quickjs-emscripten@0.23.0': + resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} + + '@types/istanbul-lib-coverage@2.0.6': + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + + '@types/istanbul-lib-report@3.0.3': + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} + + '@types/istanbul-reports@3.0.4': + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} + + '@types/mocha@10.0.10': + resolution: {integrity: sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==} + + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} + + '@types/node@24.19.2': + resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==} + + '@types/normalize-package-data@2.4.4': + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + + '@types/sinonjs__fake-timers@8.1.5': + resolution: {integrity: sha512-mQkU2jY8jJEF7YHjHvsQO8+3ughTL1mcnn96igfhONmR+fUPSKIkefQYpSe8bsly2Ep7oQbn/6VG5/9/0qcArQ==} + + '@types/stack-utils@2.0.3': + resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} + + '@types/which@2.0.2': + resolution: {integrity: sha512-113D3mDkZDjo+EeUEHCFy0qniNc1ZpecGiAU7WSo7YDoSzolZIQKpYFHrPpjkB2nuyahcKfrmLXeQlh7gqJYdw==} + + '@types/ws@8.18.2': + resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==} + + '@types/yargs-parser@21.0.3': + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + + '@types/yargs@17.0.35': + resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} + + '@types/yauzl@2.10.3': + resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} + + '@vitest/pretty-format@3.2.7': + resolution: {integrity: sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==} + + '@vitest/pretty-format@4.1.12': + resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} + + '@vitest/snapshot@3.2.7': + resolution: {integrity: sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==} + + '@vitest/snapshot@4.1.12': + resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} + + '@vitest/utils@4.1.12': + resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} + + '@wdio/cli@9.32.0': + resolution: {integrity: sha512-JQvracXVFvRT4bTkWdcRL5HfsZS/JL3GQGTcNkGPuaL/u5S+W7nHU1loAhefGBJnUQ2MRWpCE4XRikpXLP7KsQ==} + engines: {node: '>=18.20.0'} + hasBin: true + + '@wdio/config@9.32.0': + resolution: {integrity: sha512-HjIANiNoL5ehIuot/KbZyNa26r5SaOaVRscYBxZ6fE4BxZMoHqthiuzGsmbr54Hn6pqQm4nn46GCsEfhPxYzEA==} + engines: {node: '>=18.20.0'} + + '@wdio/dot-reporter@9.32.0': + resolution: {integrity: sha512-Pp+1yqen+G2CnGErvkUdUoRpSKyrm/utKRcY/CpNSLOtMag8+B3mfEq/1VvrT6D0+nl8IVESNl5HQLVtycozbQ==} + engines: {node: '>=18.20.0'} + + '@wdio/globals@9.31.3': + resolution: {integrity: sha512-ZzmRKUlwUBahNoNxHbAzst+9dNInEjLQc7Z3c86OhDRxAf3Ivw8k2rc56UCbyYiZnkd1dOpuA91zFiTrUNNORw==} + engines: {node: '>=18.20.0'} + peerDependencies: + expect-webdriverio: ^6.0.9 + webdriverio: ^9.28.0 + + '@wdio/local-runner@9.32.0': + resolution: {integrity: sha512-6AhK9OHXzOMfoZb3iU95jOVwjM2VspsVVkxBmWyYBYrpnM+DluHJzPnf0kXlb0h+osnRpIL35ZNon4XmVI0Izw==} + engines: {node: '>=18.20.0'} + + '@wdio/logger@9.29.1': + resolution: {integrity: sha512-0ZAEIo6PNyMIJPlOGkIgyOJUjcd0pC8/QHlVAAe1c91/IcjZ1X+k0yidXHaboJdN7dq1XPUacmhRdtua0U5EZg==} + engines: {node: '>=18.20.0'} + + '@wdio/mocha-framework@9.32.0': + resolution: {integrity: sha512-POrOuA9pEN03sB7eLh13hmrhgvyZ20rQC6PwAZ/9v2LeebmW9xlSIC1UoBqiSiIKQ9qiGGf7lf7CX4NWIqzC2w==} + engines: {node: '>=18.20.0'} + + '@wdio/protocols@9.31.5': + resolution: {integrity: sha512-e4H5exl5xCcITF0y/3zd6pf9kX4TmV8/0nnWDGt4X0KbgDi/+tGqlquZ+YS4YBEPbv95yTqVhnazEsaBiH85Tw==} + + '@wdio/repl@9.16.2': + resolution: {integrity: sha512-FLTF0VL6+o5BSTCO7yLSXocm3kUnu31zYwzdsz4n9s5YWt83sCtzGZlZpt7TaTzb3jVUfxuHNQDTb8UMkCu0lQ==} + engines: {node: '>=18.20.0'} + + '@wdio/reporter@9.32.0': + resolution: {integrity: sha512-9z8pG7zAayRXwheN8BH6YNuzyPJ/kFIRyPl2fsD+6IvF/LFSptXPlk2XjcnKvY9Am6Lif5oAwebDFcLHp1ztAA==} + engines: {node: '>=18.20.0'} + + '@wdio/runner@9.32.0': + resolution: {integrity: sha512-/qGB9id4fX+bmC0HxdelZdh+Rm/u0uAW4y4xs7PoD0B+5qHQ137tRMwq/HAcPLeDJh/LaMYlhqcIj1LyMi6eEA==} + engines: {node: '>=18.20.0'} + peerDependencies: + expect-webdriverio: ^6.0.9 + webdriverio: ^9.28.0 + + '@wdio/spec-reporter@9.32.0': + resolution: {integrity: sha512-WXL98WXqSGLffvDhLNsn4zD/sCGaWK1GF+i/gQsBxJN86vRiktL8XsB7q4SfBr7doyrR5+POwceX248M26bRgA==} + engines: {node: '>=18.20.0'} + + '@wdio/types@9.32.0': + resolution: {integrity: sha512-7jMZQ4TGX45bPLgCv9du7mw/Kq7FrjEbQ5vTGg/pUgQy/wSygJ3u4FvPu8FS+DNeQUmvjSPKEUGfl4N+rZjpUg==} + engines: {node: '>=18.20.0'} + + '@wdio/utils@9.32.0': + resolution: {integrity: sha512-LsU+PxRQVXJKISaj9v1NZQTmp4m9uugCh55qjN0cKvdqi3bI17V+3orMXNvDYufBgzzZ1eoGxYejJpdIKx98jA==} + engines: {node: '>=18.20.0'} + + '@wdio/xvfb@9.32.0': + resolution: {integrity: sha512-K1DL05PngTMKY8mkzMNYpKNqZNPTrdJheuvTeWwwYlm4Yn9hLc8V3hw6EDsuEYw4cyEyiVeukLbLOEW+AhvqVw==} + engines: {node: '>=18.20.0'} + + '@zip.js/zip.js@2.24.0': + resolution: {integrity: sha512-WlaVKzdqBK+RF3bdiXZWbdCnvGB6PdO4IHC1mn/2Yfl3bASgqUNegnU3+PNg61iecwoPfUi5BgLUPqBukXpyWw==} + engines: {bun: '>=0.7.0', deno: '>=1.0.0', node: '>=18.0.0'} + + abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} + + ansi-colors@4.1.3: + resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} + engines: {node: '>=6'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.4.0: + resolution: {integrity: sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + + ansi-styles@6.2.3: + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} + engines: {node: '>=12'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + archiver@8.0.0: + resolution: {integrity: sha512-fV1orZfsnPn9BaSByR/qE67rJCLJEy2Ox5bq7nJh+jquWaNh6Sfec75kJ2T6PtdGUbPQlrVoSVCEOa5SdiTQ1g==} + engines: {node: '>=18'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + aria-query@5.3.2: + resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} + engines: {node: '>= 0.4'} + + ast-types@0.13.4: + resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} + engines: {node: '>=4'} + + async-exit-hook@2.0.1: + resolution: {integrity: sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==} + engines: {node: '>=0.12.0'} + + async@3.2.6: + resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} + + b4a@1.9.0: + resolution: {integrity: sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==} + peerDependencies: + react-native-b4a: '*' + peerDependenciesMeta: + react-native-b4a: + optional: true + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + bare-events@2.9.2: + resolution: {integrity: sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==} + peerDependencies: + bare-abort-controller: '*' + peerDependenciesMeta: + bare-abort-controller: + optional: true + + bare-fs@4.8.4: + resolution: {integrity: sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==} + engines: {bare: '>=1.28.0'} + peerDependencies: + bare-buffer: '*' + peerDependenciesMeta: + bare-buffer: + optional: true + + bare-path@3.1.2: + resolution: {integrity: sha512-ZyKbsuuqK6Ag0K8pX6V5Txq6XeJRvY+wXucnFGRjiyVYP9YWDpIQugk/b+enRYrEYBJaqLzghRQpXPMR7341Nw==} + + bare-stream@2.13.4: + resolution: {integrity: sha512-PcrQ8lVLbiJscNm1Kez+Yp4Gy4AHGcN1lzwjvf5NybWen7VvEgUfyfnXYJ2zNqWnzOfCb1Abq6lH8ti0syQszA==} + peerDependencies: + bare-abort-controller: '*' + bare-buffer: '*' + bare-events: '*' + peerDependenciesMeta: + bare-abort-controller: + optional: true + bare-buffer: + optional: true + bare-events: + optional: true + + bare-url@2.5.5: + resolution: {integrity: sha512-iM9qJCruvpt2rPaLsrumVDru9pogI7PHziHIa9kTNRFt8C8HuSa+kI9kFezK+NvHEFnnz71rKGZ1EAilq/3V/Q==} + + base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + + basic-ftp@5.3.1: + resolution: {integrity: sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==} + engines: {node: '>=10.0.0'} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + + brace-expansion@1.1.21: + resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} + + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} + + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browser-stdout@1.3.1: + resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} + + buffer-crc32@0.2.13: + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + + buffer-crc32@1.0.0: + resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} + engines: {node: '>=8.0.0'} + + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + + camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + cheerio-select@2.1.0: + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} + + cheerio@1.2.0: + resolution: {integrity: sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==} + engines: {node: '>=20.18.1'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + + ci-info@4.4.0: + resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} + engines: {node: '>=8'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + + clone@1.0.4: + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + commander@14.0.3: + resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} + engines: {node: '>=20'} + + commander@9.5.0: + resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} + engines: {node: ^12.20.0 || >=14} + + compress-commons@7.0.1: + resolution: {integrity: sha512-g0S8KAD8qf4+V//pr3BfB1aBnARLXNz2Gx+jmHU0LEriUuoQUOPOulVquHKTJ8+EAIIO7fhseNDr9wK5Q9FKBQ==} + engines: {node: '>=18'} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + core-util-is@1.0.3: + resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + + crc-32@1.2.2: + resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} + engines: {node: '>=0.8'} + hasBin: true + + crc32-stream@7.0.1: + resolution: {integrity: sha512-IBWsY8xznyQrcHn8h4bC8/4ErNke5elzgG8GcqF4RFPw6aHkWWRc7Tgw6upjaTX/CT/yQgqYENkxYsTYN+hW2g==} + engines: {node: '>=18'} + + create-wdio@9.32.0: + resolution: {integrity: sha512-FDPY5NE41kNMMzvMCHMVuNOebHiwpb9fLYrX7836UYPqJ8Ntkdf0qq1CYfbM0p+Oji6GKlDV6FBrmJN/GRX7AQ==} + engines: {node: '>=18.20.0'} + hasBin: true + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + css-select@5.2.2: + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} + + css-shorthand-properties@1.1.2: + resolution: {integrity: sha512-C2AugXIpRGQTxaCW0N7n5jD/p5irUmCrwl03TrnMFBHDbdq44CFWR2zO7rK9xPN4Eo3pUxC4vQzQgbIpzrD1PQ==} + + css-value@0.0.1: + resolution: {integrity: sha512-FUV3xaJ63buRLgHrLQVlVgQnQdR4yqdLGaDu7g8CQcWjInDfM9plBTPI9FRfpahju1UBSaMckeb2/46ApS/V1Q==} + + css-what@6.2.2: + resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} + engines: {node: '>= 6'} + + data-uri-to-buffer@6.0.2: + resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==} + engines: {node: '>= 14'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decamelize@4.0.0: + resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} + engines: {node: '>=10'} + + decamelize@6.0.1: + resolution: {integrity: sha512-G7Cqgaelq68XHJNGlZ7lrNQyhZGsFqpwtGFexqUv4IQdjKoSYF7ipZ9UuTJZUSQXFj/XaoBLuEVIVqr8EJngEQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + deepmerge-ts@8.0.2: + resolution: {integrity: sha512-uqbvqLUMrc6p0MO+WBRtTxY55hmyh94WRwI5a++PZe54X+bfVh59FSN7uWCBCW1CCVjzjnrwzfI8zidE2obMMw==} + engines: {node: '>=16.9.0'} + + defaults@1.0.4: + resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} + + degenerator@5.0.1: + resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} + engines: {node: '>= 14'} + + diff@5.2.2: + resolution: {integrity: sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==} + engines: {node: '>=0.3.1'} + + diff@8.0.4: + resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} + engines: {node: '>=0.3.1'} + + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + easy-table@1.2.0: + resolution: {integrity: sha512-OFzVOv03YpvtcWGe5AayU5G2hgybsg3iqA6drU8UaoZyB9jLGMTrz9+asnLp/E+6qPh88yEI1gvyZFZ41dmgww==} + + edge-paths@3.0.5: + resolution: {integrity: sha512-sB7vSrDnFa4ezWQk9nZ/n0FdpdUuC6R1EOrlU3DL+bovcNFK28rqu2emmAUjujYEJTWIgQGqgVVWUZXMnc8iWg==} + engines: {node: '>=14.0.0'} + + edgedriver@6.3.1: + resolution: {integrity: sha512-wCL/Ydgt0DPkWecjhhPj2/lnDxsGeHLPKeJYKKMTNol+ULFVg4WaTvxoB19GU4tieM6LSA3vZEdZxmDC0DwIpQ==} + engines: {node: '>=20.0.0'} + hasBin: true + + ejs@3.1.10: + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} + hasBin: true + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + encoding-sniffer@0.2.1: + resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==} + + end-of-stream@1.4.5: + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + entities@6.0.1: + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + engines: {node: '>=0.12'} + + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + + error-ex@1.3.4: + resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + + events-universal@1.0.1: + resolution: {integrity: sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==} + + events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + + execa@9.6.1: + resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==} + engines: {node: ^18.19.0 || >=20.5.0} + + exit-hook@4.0.0: + resolution: {integrity: sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ==} + engines: {node: '>=18'} + + expect-webdriverio@6.1.0: + resolution: {integrity: sha512-RXgaXoH1U8IiAHPelkMhZSnWUT0HfIhkjKK8nBkIpnXRO+zJ8dRafoyZhVy5mu/LtoyIr9juRWRwN284OSNM6Q==} + engines: {node: '>=20'} + peerDependencies: + '@wdio/globals': ^9.0.0 + '@wdio/logger': ^9.0.0 + webdriverio: ^9.28.0 + + expect@30.5.2: + resolution: {integrity: sha512-0LNuMvs8/5mRYhnCR4k+lGV7fqPMs6Bnksda4S3zsCUmdxBpAn4zU4NNzXdq1pMKe/H4W5t/zVIDSJ/H3e0vDA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + extract-zip@2.0.1: + resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} + engines: {node: '>= 10.17.0'} + hasBin: true + + fast-deep-equal@2.0.1: + resolution: {integrity: sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==} + + fast-fifo@1.3.2: + resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} + + fd-slicer@1.1.0: + resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==} + + figures@6.1.0: + resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} + engines: {node: '>=18'} + + filelist@1.0.6: + resolution: {integrity: sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + find-up@6.3.0: + resolution: {integrity: sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + flat@5.0.2: + resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} + hasBin: true + + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + geckodriver@6.1.1: + resolution: {integrity: sha512-/AcCyc9o9o6hUbudaSJM2iOtXbxSLqQPOb4GrPvEN40cjraUeaX/j5kH3mSgwiroyMn7qzx2wM61AQ2XY8j3sA==} + engines: {node: '>=20.0.0'} + hasBin: true + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-port@7.2.0: + resolution: {integrity: sha512-afP4W205ONCuMoPBqcR6PSXnzX35KTcJygfJfcp+QY+uwm3p20p1YczWXhlICIzGMCxYBQcySEcOgsJcrkyobg==} + engines: {node: '>=16'} + + get-stream@5.2.0: + resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} + engines: {node: '>=8'} + + get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + + get-uri@6.0.5: + resolution: {integrity: sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==} + engines: {node: '>= 14'} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob@10.5.0: + resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + hasBin: true + + glob@8.1.0: + resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} + engines: {node: '>=12'} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + grapheme-splitter@1.0.4: + resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + + hosted-git-info@7.0.2: + resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} + engines: {node: ^16.14.0 || >=18.0.0} + + hosted-git-info@8.1.0: + resolution: {integrity: sha512-Rw/B2DNQaPBICNXEm8balFz9a6WpZrkCGpcWFpy7nCj+NyhSdqXipmfvtmWt9xGfp0wZnBxB+iVpLmQMYt47Tw==} + engines: {node: ^18.17.0 || >=20.5.0} + + htmlfy@0.8.1: + resolution: {integrity: sha512-xWROBw9+MEGwxpotll0h672KCaLrKKiCYzsyN8ZgL9cQbVumFnyvsk2JqiB9ELAV1GLj1GG/jxZUjV9OZZi/yQ==} + + htmlparser2@10.1.0: + resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} + + http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + human-signals@8.0.1: + resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} + engines: {node: '>=18.18.0'} + + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + immediate@3.0.6: + resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} + + import-meta-resolve@4.2.0: + resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + inquirer@12.11.1: + resolution: {integrity: sha512-9VF7mrY+3OmsAfjH3yKz/pLbJ5z22E23hENKw3/LNSaA/sAt3v49bDRY+Ygct1xwuKT+U+cBfTzjCPySna69Qw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + ip-address@10.7.5: + resolution: {integrity: sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==} + engines: {node: '>= 12'} + + is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-plain-obj@2.1.0: + resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} + engines: {node: '>=8'} + + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + + is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + + is-unicode-supported@0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + isarray@1.0.0: + resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + isexe@4.0.0: + resolution: {integrity: sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==} + engines: {node: '>=20'} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + jake@10.9.4: + resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==} + engines: {node: '>=10'} + hasBin: true + + jest-diff@30.5.2: + resolution: {integrity: sha512-rBtHnI6BWTiWj3lM7fOLVfChx7R9B0u9VV3PRHawKs79x6ZjW1QoSrKenaigNGWlvhtoi2BqvDbABDie+Os3xQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-matcher-utils@30.5.2: + resolution: {integrity: sha512-lFkB365PTIHOhPzwrb9T6gvlDnPpOZ7/c3ewOKKB7bzztqjVrtlyRL2MkyfJXpyY2u2SKw001JKrTx14fBUFcQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-message-util@30.5.1: + resolution: {integrity: sha512-UdQlLdd9wL/Ys7xRErckqwD6wPlSZYueosSWuHc1r2ztGLwlgPvtSJq2+BPEgaEY13WLvfFbmhTj8pba0Sd1jg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-mock@30.5.2: + resolution: {integrity: sha512-KTHb37Fhj8xY8qPFvTFaFJHcdsumQp+ExsUlgoX232Agmc706gagBs53+CYvulV7MVQo9AgXOUxsqzzVBoJlrA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-regex-util@30.5.0: + resolution: {integrity: sha512-Mg0WK7A6xRHLSA1udJ8y9f3lM0uUhFTBnLKzwPmqB9AylvpleJ6BLemR8K9dK27DY+cesDryoA7yLZCAHsPG1A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jest-util@30.5.1: + resolution: {integrity: sha512-yKuxmNy2rSbTXw+3SIPanJo+nV4/BS1p26v44IYBFMsswSQySfMMcPHErnOncda7i9HEz0q605rIhSTBVgrZTg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.3.2: + resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} + hasBin: true + + json-parse-even-better-errors@3.0.2: + resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + + jszip@3.10.2: + resolution: {integrity: sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ==} + + lazystream@1.0.1: + resolution: {integrity: sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==} + engines: {node: '>= 0.6.3'} + + lie@3.3.0: + resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==} + + lines-and-columns@2.0.4: + resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + locate-app@2.5.0: + resolution: {integrity: sha512-xIqbzPMBYArJRmPGUZD9CzV9wOqmVtQnaAn3wrj3s6WYW0bQvPI7x+sPYUGmDTYMHefVK//zc6HEYZ1qnxIK+Q==} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + locate-path@7.2.0: + resolution: {integrity: sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + lodash.clonedeep@4.5.0: + resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==} + + lodash.flattendeep@4.4.0: + resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==} + + lodash.pickby@4.6.0: + resolution: {integrity: sha512-AZV+GsS/6ckvPOVQPXSiFFacKvKB4kOQu6ynt9wz0F3LO4R9Ij4K1ddYsIytDpSgLz88JHd9P+oaLeej5/Sl7Q==} + + lodash.union@4.6.0: + resolution: {integrity: sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==} + + lodash.zip@4.2.0: + resolution: {integrity: sha512-C7IOaBBK/0gMORRBd8OETNx3kmOkgIWIPvyDpZSCTwUrpYmgZwJkjZeOD8ww4xbOUOs4/attY+pciKvadNfFbg==} + + log-symbols@4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + + loglevel-plugin-prefix@0.8.4: + resolution: {integrity: sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g==} + + loglevel@1.9.2: + resolution: {integrity: sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==} + engines: {node: '>= 0.6.0'} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + + minimatch@3.1.5: + resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} + + minimatch@5.1.9: + resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==} + engines: {node: '>=10'} + + minimatch@9.0.9: + resolution: {integrity: sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + + mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} + engines: {node: '>= 14.0.0'} + hasBin: true + + modern-tar@0.7.7: + resolution: {integrity: sha512-t9VmxaqrmANnEOBhpSDI6HD192Ge48k8vmWqQQL7hSFEqHEYwZbbsu49+aKLWZeRvFs3j1pMhXOqqF4kPlvjkQ==} + engines: {node: '>=18.0.0'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + mute-stream@2.0.0: + resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} + engines: {node: ^18.17.0 || >=20.5.0} + + netmask@2.1.1: + resolution: {integrity: sha512-eonl3sLUha+S1GzTPxychyhnUzKyeQkZ7jLjKrBagJgPla13F+uQ71HgpFefyHgqrjEbCPkDArxYsjY8/+gLKA==} + engines: {node: '>= 0.4.0'} + + normalize-package-data@6.0.2: + resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==} + engines: {node: ^16.14.0 || >=18.0.0} + + normalize-package-data@7.0.1: + resolution: {integrity: sha512-linxNAT6M0ebEYZOx2tO6vBEFsVgnPpv+AVjk0wJHfaUIbq31Jm3T6vvZaarnOeWDh8ShnwXuaAyM7WT3RzErA==} + engines: {node: ^18.17.0 || >=20.5.0} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + npm-run-path@6.0.0: + resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} + engines: {node: '>=18'} + + nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-limit@4.0.0: + resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + p-locate@6.0.0: + resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + pac-proxy-agent@7.2.0: + resolution: {integrity: sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==} + engines: {node: '>= 14'} + + pac-resolver@7.0.1: + resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} + engines: {node: '>= 14'} + + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + + pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + + parse-json@7.1.1: + resolution: {integrity: sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==} + engines: {node: '>=16'} + + parse-ms@4.0.0: + resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} + engines: {node: '>=18'} + + parse5-htmlparser2-tree-adapter@7.1.0: + resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} + + parse5-parser-stream@7.1.2: + resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} + + parse5@7.3.0: + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-exists@5.0.0: + resolution: {integrity: sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pend@1.2.0: + resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + pretty-format@30.5.1: + resolution: {integrity: sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} + + pretty-ms@9.3.1: + resolution: {integrity: sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA==} + engines: {node: '>=18'} + + process-nextick-args@2.0.1: + resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + + progress@2.0.3: + resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} + engines: {node: '>=0.4.0'} + + proxy-agent@6.5.0: + resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==} + engines: {node: '>= 14'} + + proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + + pump@3.0.4: + resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==} + + query-selector-shadow-dom@1.0.1: + resolution: {integrity: sha512-lT5yCqEBgfoMYpf3F2xQRK7zEr1rhIIZuceDK6+xRkJQ4NMbHTwXqk4NkwDwQMNqXgG9r9fyHnzwNVs6zV5KRw==} + + randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + + react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + + react-is@19.3.1: + resolution: {integrity: sha512-RRieF6IyxQBkcK6pP8xOHprLTPW6QjRkbGdImtqNme+/hYVwCZkLQLdlZGOhUqXwkS9IEynaGvPJtv6XB/cz0Q==} + + read-pkg-up@10.1.0: + resolution: {integrity: sha512-aNtBq4jR8NawpKJQldrQcSW9y/d+KWH4v24HWkHljOZ7H0av+YTGANBzRh9A5pw7v/bLVsLVPpOhJ7gHNVy8lA==} + engines: {node: '>=16'} + + read-pkg@8.1.0: + resolution: {integrity: sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==} + engines: {node: '>=16'} + + readable-stream@2.3.8: + resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + + readable-stream@4.8.0: + resolution: {integrity: sha512-2jhTTU3Eilp/2DMT71gbcoqC35eQHasMJH0RHkYxwlxIv3+FR6Y5xAFZIwEGLxKkjZYEFlsiMNIdwUqjK2lLHQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + readdir-glob@3.0.0: + resolution: {integrity: sha512-AhNB2KgKeVJr16nK9LLZbJNWnYoT23ZrumNKFDebHBdkC8KHSqWo871JAUhoWC/RtjEVdqNMFpM6qrwRbaUqpw==} + engines: {node: '>=18'} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} + + recursive-readdir@2.2.3: + resolution: {integrity: sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==} + engines: {node: '>=6.0.0'} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + resq@1.11.0: + resolution: {integrity: sha512-G10EBz+zAAy3zUd/CDoBbXRL6ia9kOo3xRHrMDsHljI0GDkhYlyjwoCx5+3eCC4swi1uCoZQhskuJkj7Gp57Bw==} + + ret@0.5.1: + resolution: {integrity: sha512-Z/nyvABwcRnRD2mMP7Kz6G1dFZZqX1mNErOnxF42OCQKE07b9k9hK9SQxHL3LFEZUdzQaLM4dId1E/E6Vm4WhA==} + engines: {node: '>=10'} + + rgb2hex@0.2.5: + resolution: {integrity: sha512-22MOP1Rh7sAo1BZpDG6R5RFYzR2lYEgwq7HEmyW2qcsOqR2lQKmn+O//xV3YG/0rrhMC6KVX2hU+ZXuaw9a5bw==} + + run-async@4.0.6: + resolution: {integrity: sha512-IoDlSLTs3Yq593mb3ZoKWKXMNu3UpObxhgA/Xuid5p4bbfi2jdY1Hj0m1K+0/tEuQTxIGMhQDqGjKb7RuxGpAQ==} + engines: {node: '>=0.12.0'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safaridriver@1.0.1: + resolution: {integrity: sha512-jkg4434cYgtrIF2AeY/X0Wmd2W73cK5qIEFE3hDrrQenJH/2SDJIXGvPAigfvQTcE9+H31zkiNHbUqcihEiMRA==} + engines: {node: '>=18.0.0'} + + safe-buffer@5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safe-regex2@5.1.2: + resolution: {integrity: sha512-tAtCGFPPP02VroDVzp4daGi6bC7jWG+41D47GKf18FeH/ubvKQHT9VmhAkvtjNOmJwqtApzWeUpEhkyEYULvmw==} + hasBin: true + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + engines: {node: '>=10'} + hasBin: true + + serialize-error@12.0.0: + resolution: {integrity: sha512-ZYkZLAvKTKQXWuh5XpBw7CdbSzagarX39WyZ2H07CDLC5/KfsRGlIXV8d4+tfqX1M7916mRqR1QfNHSij+c9Pw==} + engines: {node: '>=18'} + + serialize-javascript@6.0.2: + resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} + + setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + + smart-buffer@4.2.0: + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + + socks-proxy-agent@8.0.5: + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} + engines: {node: '>= 14'} + + socks@2.8.10: + resolution: {integrity: sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + spacetrim@0.11.59: + resolution: {integrity: sha512-lLYsktklSRKprreOm7NXReW8YiX2VBjbgmXYEziOoGf/qsJqAEACaDvoTtUOycwjpaSh+bT8eu0KrJn7UNxiCg==} + + spdx-correct@3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} + + spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + + spdx-expression-parse@3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + + spdx-license-ids@3.0.24: + resolution: {integrity: sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + stack-utils@2.0.6: + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} + + stream-buffers@3.0.3: + resolution: {integrity: sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==} + engines: {node: '>= 0.10.0'} + + streamx@2.28.1: + resolution: {integrity: sha512-zEzXb0s5Cds7tqMH6rhZ05lcJydCWiQPEwiNngVqzsxCc962vLY4Uw+mW7od8kDH258k2Uz/JrOkdIAAhSh9VA==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + string_decoder@1.1.1: + resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + + tar-fs@3.1.3: + resolution: {integrity: sha512-/hU4AXnIdZu+Gvl1pk0oI5f5HxWsCJRtY2aFaJdk9VvyL48DWU6iU5WAIPG+wIi1YvWA6eTJvIviP/tMAZZNwQ==} + + tar-stream@3.2.2: + resolution: {integrity: sha512-+8NeqHRjQWH9nYlwo2gamAMImZCVzI4UoEgDpWorBt9OEfppiZn+uSkskzQKPWIZyji/C8fpWO7u69G0DX0tbg==} + + teex@1.0.1: + resolution: {integrity: sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==} + + text-decoder@1.2.7: + resolution: {integrity: sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + tsx@4.23.15: + resolution: {integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==} + engines: {node: '>=18.0.0'} + hasBin: true + + type-fest@3.13.1: + resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==} + engines: {node: '>=14.16'} + + type-fest@4.26.0: + resolution: {integrity: sha512-OduNjVJsFbifKb57UqZ2EMP1i4u64Xwow3NYXUtBbD4vIwJdQd4+xl8YDou1dlm4DVrtwT/7Ky8z8WyCULVfxw==} + engines: {node: '>=16'} + + type-fest@4.41.0: + resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} + engines: {node: '>=16'} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + undici-types@7.24.6: + resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + + undici@6.29.1: + resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==} + engines: {node: '>=18.17'} + + undici@7.30.1: + resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} + engines: {node: '>=20.18.1'} + + unicorn-magic@0.3.0: + resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} + engines: {node: '>=18'} + + urlpattern-polyfill@10.1.0: + resolution: {integrity: sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==} + + userhome@1.0.1: + resolution: {integrity: sha512-5cnLm4gseXjAclKowC4IjByaGsjtAoV6PrOQOljplNB54ReUYJP8HdAFq2muHinSDAh09PPX/uXDPfdxRHvuSA==} + engines: {node: '>= 0.8.0'} + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + validate-npm-package-license@3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + + wait-port@1.1.0: + resolution: {integrity: sha512-3e04qkoN3LxTMLakdqeWth8nih8usyg+sf1Bgdf9wwUkp05iuK1eSY/QpLvscT/+F/gA89+LpUmmgBtesbqI2Q==} + engines: {node: '>=10'} + hasBin: true + + wcwidth@1.0.1: + resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} + + webdriver@9.32.0: + resolution: {integrity: sha512-1Z7mydyw3v3UfzQ6UtrRvu3ij1eHuSoitxBMWlnKi2e3Zpvc1EBPp6FhsXBYhdFg0F4900j6sUTkoF//CkpbpQ==} + engines: {node: '>=18.20.0'} + + webdriverio@9.32.0: + resolution: {integrity: sha512-A7r7SnvZ6eEJROIWAG6GMOlV82W2Pl7FDjXLn/tJ4L8BEc3yjCrDWzY4EB9i4MtPZwlNZoHgNV9fYYKn7JWAew==} + engines: {node: '>=18.20.0'} + peerDependencies: + puppeteer-core: '>=22.x <=24.x' + peerDependenciesMeta: + puppeteer-core: + optional: true + + whatwg-encoding@3.1.1: + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} + deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation + + whatwg-mimetype@4.0.0: + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + which@6.0.1: + resolution: {integrity: sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==} + engines: {node: ^20.17.0 || >=22.9.0} + hasBin: true + + workerpool@6.5.1: + resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + ws@8.22.0: + resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + + yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs-unparser@2.0.0: + resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} + engines: {node: '>=10'} + + yargs@16.2.2: + resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} + engines: {node: '>=10'} + + yargs@17.7.3: + resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} + engines: {node: '>=12'} + + yauzl@2.10.0: + resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + yocto-queue@1.2.2: + resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==} + engines: {node: '>=12.20'} + + yoctocolors-cjs@2.1.3: + resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zip-stream@7.0.5: + resolution: {integrity: sha512-dSvYKdvLsAHCDqPOhIwk/q5CvuWtTB3Dgpoe0uVEFjTzIOAmsQpprX25InCvrvJsirEbu1OHyy67n/kAj1Sw/w==} + engines: {node: '>=18'} + +snapshots: + + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/helper-validator-identifier@7.29.7': {} + + '@esbuild/aix-ppc64@0.28.2': + optional: true + + '@esbuild/android-arm64@0.28.2': + optional: true + + '@esbuild/android-arm@0.28.2': + optional: true + + '@esbuild/android-x64@0.28.2': + optional: true + + '@esbuild/darwin-arm64@0.28.2': + optional: true + + '@esbuild/darwin-x64@0.28.2': + optional: true + + '@esbuild/freebsd-arm64@0.28.2': + optional: true + + '@esbuild/freebsd-x64@0.28.2': + optional: true + + '@esbuild/linux-arm64@0.28.2': + optional: true + + '@esbuild/linux-arm@0.28.2': + optional: true + + '@esbuild/linux-ia32@0.28.2': + optional: true + + '@esbuild/linux-loong64@0.28.2': + optional: true + + '@esbuild/linux-mips64el@0.28.2': + optional: true + + '@esbuild/linux-ppc64@0.28.2': + optional: true + + '@esbuild/linux-riscv64@0.28.2': + optional: true + + '@esbuild/linux-s390x@0.28.2': + optional: true + + '@esbuild/linux-x64@0.28.2': + optional: true + + '@esbuild/netbsd-arm64@0.28.2': + optional: true + + '@esbuild/netbsd-x64@0.28.2': + optional: true + + '@esbuild/openbsd-arm64@0.28.2': + optional: true + + '@esbuild/openbsd-x64@0.28.2': + optional: true + + '@esbuild/openharmony-arm64@0.28.2': + optional: true + + '@esbuild/sunos-x64@0.28.2': + optional: true + + '@esbuild/win32-arm64@0.28.2': + optional: true + + '@esbuild/win32-ia32@0.28.2': + optional: true + + '@esbuild/win32-x64@0.28.2': + optional: true + + '@inquirer/ansi@1.0.2': {} + + '@inquirer/checkbox@4.3.2(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/figures': 1.0.15 + '@inquirer/type': 3.0.10(@types/node@24.19.2) + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/confirm@5.1.21(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/core@10.3.2(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/figures': 1.0.15 + '@inquirer/type': 3.0.10(@types/node@24.19.2) + cli-width: 4.1.0 + mute-stream: 2.0.0 + signal-exit: 4.1.0 + wrap-ansi: 6.2.0 + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/editor@4.2.23(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/external-editor': 1.0.3(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/expand@4.0.23(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/external-editor@1.0.3(@types/node@24.19.2)': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/figures@1.0.15': {} + + '@inquirer/input@4.3.1(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/number@3.0.23(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/password@4.0.23(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/prompts@7.10.1(@types/node@24.19.2)': + dependencies: + '@inquirer/checkbox': 4.3.2(@types/node@24.19.2) + '@inquirer/confirm': 5.1.21(@types/node@24.19.2) + '@inquirer/editor': 4.2.23(@types/node@24.19.2) + '@inquirer/expand': 4.0.23(@types/node@24.19.2) + '@inquirer/input': 4.3.1(@types/node@24.19.2) + '@inquirer/number': 3.0.23(@types/node@24.19.2) + '@inquirer/password': 4.0.23(@types/node@24.19.2) + '@inquirer/rawlist': 4.1.11(@types/node@24.19.2) + '@inquirer/search': 3.2.2(@types/node@24.19.2) + '@inquirer/select': 4.4.2(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/rawlist@4.1.11(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/search@3.2.2(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/figures': 1.0.15 + '@inquirer/type': 3.0.10(@types/node@24.19.2) + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/select@4.4.2(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/figures': 1.0.15 + '@inquirer/type': 3.0.10(@types/node@24.19.2) + yoctocolors-cjs: 2.1.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/type@3.0.10(@types/node@24.19.2)': + optionalDependencies: + '@types/node': 24.19.2 + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.2.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@jest/diff-sequences@30.5.0': {} + + '@jest/expect-utils@30.5.2': + dependencies: + '@jest/get-type': 30.5.0 + + '@jest/get-type@30.5.0': {} + + '@jest/pattern@30.5.0': + dependencies: + '@types/node': 24.19.2 + jest-regex-util: 30.5.0 + + '@jest/schemas@30.5.0': + dependencies: + '@sinclair/typebox': 0.34.52 + + '@jest/types@30.5.1': + dependencies: + '@jest/pattern': 30.5.0 + '@jest/schemas': 30.5.0 + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 24.19.2 + '@types/yargs': 17.0.35 + chalk: 4.1.2 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@promptbook/utils@0.69.5': + dependencies: + spacetrim: 0.11.59 + + '@puppeteer/browsers@2.13.2(supports-color@8.1.1)': + dependencies: + debug: 4.4.3(supports-color@8.1.1) + extract-zip: 2.0.1(supports-color@8.1.1) + progress: 2.0.3 + proxy-agent: 6.5.0(supports-color@8.1.1) + semver: 7.8.5 + tar-fs: 3.1.3 + yargs: 17.7.3 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + - supports-color + + '@sec-ant/readable-stream@0.4.1': {} + + '@sinclair/typebox@0.34.52': {} + + '@sindresorhus/merge-streams@4.0.0': {} + + '@tootallnate/quickjs-emscripten@0.23.0': {} + + '@types/istanbul-lib-coverage@2.0.6': {} + + '@types/istanbul-lib-report@3.0.3': + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + + '@types/istanbul-reports@3.0.4': + dependencies: + '@types/istanbul-lib-report': 3.0.3 + + '@types/mocha@10.0.10': {} + + '@types/node@20.19.43': + dependencies: + undici-types: 6.21.0 + + '@types/node@24.19.2': + dependencies: + undici-types: 7.24.6 + + '@types/normalize-package-data@2.4.4': {} + + '@types/sinonjs__fake-timers@8.1.5': {} + + '@types/stack-utils@2.0.3': {} + + '@types/which@2.0.2': {} + + '@types/ws@8.18.2': + dependencies: + '@types/node': 24.19.2 + + '@types/yargs-parser@21.0.3': {} + + '@types/yargs@17.0.35': + dependencies: + '@types/yargs-parser': 21.0.3 + + '@types/yauzl@2.10.3': + dependencies: + '@types/node': 24.19.2 + optional: true + + '@vitest/pretty-format@3.2.7': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/pretty-format@4.1.12': + dependencies: + tinyrainbow: 3.2.0 + + '@vitest/snapshot@3.2.7': + dependencies: + '@vitest/pretty-format': 3.2.7 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + '@vitest/utils': 4.1.12 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/utils@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + convert-source-map: 2.0.0 + tinyrainbow: 3.2.0 + + '@wdio/cli@9.32.0(@types/node@24.19.2)(expect-webdriverio@6.1.0)(supports-color@8.1.1)': + dependencies: + '@vitest/snapshot': 3.2.7 + '@wdio/config': 9.32.0(supports-color@8.1.1) + '@wdio/globals': 9.31.3(expect-webdriverio@6.1.0)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/logger': 9.29.1 + '@wdio/protocols': 9.31.5 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + async-exit-hook: 2.0.1 + chalk: 5.6.2 + chokidar: 4.0.3 + create-wdio: 9.32.0(@types/node@24.19.2) + dotenv: 17.4.2 + import-meta-resolve: 4.2.0 + lodash.flattendeep: 4.4.0 + lodash.pickby: 4.6.0 + lodash.union: 4.6.0 + read-pkg-up: 10.1.0 + tsx: 4.23.15 + webdriverio: 9.32.0(supports-color@8.1.1) + yargs: 17.7.3 + transitivePeerDependencies: + - '@types/node' + - bare-abort-controller + - bare-buffer + - bufferutil + - expect-webdriverio + - puppeteer-core + - react-native-b4a + - supports-color + - utf-8-validate + + '@wdio/config@9.32.0(supports-color@8.1.1)': + dependencies: + '@wdio/logger': 9.29.1 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + deepmerge-ts: 8.0.2 + glob: 10.5.0 + import-meta-resolve: 4.2.0 + jiti: 2.7.0 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + - supports-color + + '@wdio/dot-reporter@9.32.0': + dependencies: + '@wdio/reporter': 9.32.0 + '@wdio/types': 9.32.0 + chalk: 5.6.2 + + '@wdio/globals@9.31.3(expect-webdriverio@6.1.0)(webdriverio@9.32.0(supports-color@8.1.1))': + dependencies: + expect-webdriverio: 6.1.0(@wdio/globals@9.31.3)(@wdio/logger@9.29.1)(webdriverio@9.32.0(supports-color@8.1.1)) + webdriverio: 9.32.0(supports-color@8.1.1) + + '@wdio/local-runner@9.32.0(@wdio/globals@9.31.3)(supports-color@8.1.1)(webdriverio@9.32.0(supports-color@8.1.1))': + dependencies: + '@types/node': 20.19.43 + '@wdio/logger': 9.29.1 + '@wdio/repl': 9.16.2 + '@wdio/runner': 9.32.0(expect-webdriverio@6.1.0)(supports-color@8.1.1)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/types': 9.32.0 + '@wdio/xvfb': 9.32.0 + exit-hook: 4.0.0 + expect-webdriverio: 6.1.0(@wdio/globals@9.31.3)(@wdio/logger@9.29.1)(webdriverio@9.32.0(supports-color@8.1.1)) + split2: 4.2.0 + stream-buffers: 3.0.3 + transitivePeerDependencies: + - '@wdio/globals' + - bare-abort-controller + - bare-buffer + - bufferutil + - react-native-b4a + - supports-color + - utf-8-validate + - webdriverio + + '@wdio/logger@9.29.1': + dependencies: + chalk: 5.6.2 + loglevel: 1.9.2 + loglevel-plugin-prefix: 0.8.4 + safe-regex2: 5.1.2 + strip-ansi: 7.2.0 + + '@wdio/mocha-framework@9.32.0(supports-color@8.1.1)': + dependencies: + '@types/mocha': 10.0.10 + '@types/node': 20.19.43 + '@wdio/logger': 9.29.1 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + mocha: 10.8.2 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + - supports-color + + '@wdio/protocols@9.31.5': {} + + '@wdio/repl@9.16.2': + dependencies: + '@types/node': 20.19.43 + + '@wdio/reporter@9.32.0': + dependencies: + '@types/node': 20.19.43 + '@wdio/logger': 9.29.1 + '@wdio/types': 9.32.0 + diff: 8.0.4 + object-inspect: 1.13.4 + + '@wdio/runner@9.32.0(expect-webdriverio@6.1.0)(supports-color@8.1.1)(webdriverio@9.32.0(supports-color@8.1.1))': + dependencies: + '@types/node': 20.19.43 + '@wdio/config': 9.32.0(supports-color@8.1.1) + '@wdio/dot-reporter': 9.32.0 + '@wdio/globals': 9.31.3(expect-webdriverio@6.1.0)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/logger': 9.29.1 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + deepmerge-ts: 8.0.2 + expect-webdriverio: 6.1.0(@wdio/globals@9.31.3)(@wdio/logger@9.29.1)(webdriverio@9.32.0(supports-color@8.1.1)) + webdriver: 9.32.0(supports-color@8.1.1) + webdriverio: 9.32.0(supports-color@8.1.1) + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - bufferutil + - react-native-b4a + - supports-color + - utf-8-validate + + '@wdio/spec-reporter@9.32.0': + dependencies: + '@wdio/reporter': 9.32.0 + '@wdio/types': 9.32.0 + chalk: 5.6.2 + easy-table: 1.2.0 + pretty-ms: 9.3.1 + + '@wdio/types@9.32.0': + dependencies: + '@types/node': 20.19.43 + + '@wdio/utils@9.32.0(supports-color@8.1.1)': + dependencies: + '@puppeteer/browsers': 2.13.2(supports-color@8.1.1) + '@wdio/logger': 9.29.1 + '@wdio/types': 9.32.0 + decamelize: 6.0.1 + deepmerge-ts: 8.0.2 + edgedriver: 6.3.1(supports-color@8.1.1) + geckodriver: 6.1.1(supports-color@8.1.1) + get-port: 7.2.0 + import-meta-resolve: 4.2.0 + locate-app: 2.5.0 + mitt: 3.0.1 + safaridriver: 1.0.1 + split2: 4.2.0 + wait-port: 1.1.0(supports-color@8.1.1) + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + - supports-color + + '@wdio/xvfb@9.32.0': + dependencies: + '@wdio/logger': 9.29.1 + + '@zip.js/zip.js@2.24.0': {} + + abort-controller@3.0.0: + dependencies: + event-target-shim: 5.0.1 + + agent-base@7.1.4: {} + + ansi-colors@4.1.3: {} + + ansi-regex@5.0.1: {} + + ansi-regex@6.4.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@5.2.0: {} + + ansi-styles@6.2.3: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.2 + + archiver@8.0.0: + dependencies: + async: 3.2.6 + buffer-crc32: 1.0.0 + is-stream: 4.0.1 + lazystream: 1.0.1 + normalize-path: 3.0.0 + readable-stream: 4.8.0 + readdir-glob: 3.0.0 + tar-stream: 3.2.2 + zip-stream: 7.0.5 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + + argparse@2.0.1: {} + + aria-query@5.3.2: {} + + ast-types@0.13.4: + dependencies: + tslib: 2.8.1 + + async-exit-hook@2.0.1: {} + + async@3.2.6: {} + + b4a@1.9.0: {} + + balanced-match@1.0.2: {} + + balanced-match@4.0.4: {} + + bare-events@2.9.2: {} + + bare-fs@4.8.4: + dependencies: + bare-events: 2.9.2 + bare-path: 3.1.2 + bare-stream: 2.13.4(bare-events@2.9.2) + bare-url: 2.5.5 + fast-fifo: 1.3.2 + transitivePeerDependencies: + - bare-abort-controller + - react-native-b4a + + bare-path@3.1.2: {} + + bare-stream@2.13.4(bare-events@2.9.2): + dependencies: + b4a: 1.9.0 + streamx: 2.28.1 + teex: 1.0.1 + optionalDependencies: + bare-events: 2.9.2 + transitivePeerDependencies: + - react-native-b4a + + bare-url@2.5.5: + dependencies: + bare-path: 3.1.2 + + base64-js@1.5.1: {} + + basic-ftp@5.3.1: {} + + binary-extensions@2.3.0: {} + + boolbase@1.0.0: {} + + brace-expansion@1.1.21: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.1.7: + dependencies: + balanced-match: 1.0.2 + + brace-expansion@5.0.12: + dependencies: + balanced-match: 4.0.4 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browser-stdout@1.3.1: {} + + buffer-crc32@0.2.13: {} + + buffer-crc32@1.0.0: {} + + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + + camelcase@6.3.0: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + chalk@5.6.2: {} + + chardet@2.2.0: {} + + cheerio-select@2.1.0: + dependencies: + boolbase: 1.0.0 + css-select: 5.2.2 + css-what: 6.2.2 + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + + cheerio@1.2.0: + dependencies: + cheerio-select: 2.1.0 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + domutils: 3.2.2 + encoding-sniffer: 0.2.1 + htmlparser2: 10.1.0 + parse5: 7.3.0 + parse5-htmlparser2-tree-adapter: 7.1.0 + parse5-parser-stream: 7.1.2 + undici: 7.30.1 + whatwg-mimetype: 4.0.0 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + + ci-info@4.4.0: {} + + cli-width@4.1.0: {} + + cliui@7.0.4: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + + clone@1.0.4: + optional: true + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + commander@14.0.3: {} + + commander@9.5.0: {} + + compress-commons@7.0.1: + dependencies: + crc-32: 1.2.2 + crc32-stream: 7.0.1 + is-stream: 4.0.1 + normalize-path: 3.0.0 + readable-stream: 4.8.0 + + concat-map@0.0.1: {} + + convert-source-map@2.0.0: {} + + core-util-is@1.0.3: {} + + crc-32@1.2.2: {} + + crc32-stream@7.0.1: + dependencies: + crc-32: 1.2.2 + readable-stream: 4.8.0 + + create-wdio@9.32.0(@types/node@24.19.2): + dependencies: + chalk: 5.6.2 + commander: 14.0.3 + cross-spawn: 7.0.6 + ejs: 3.1.10 + execa: 9.6.1 + import-meta-resolve: 4.2.0 + inquirer: 12.11.1(@types/node@24.19.2) + normalize-package-data: 7.0.1 + read-pkg-up: 10.1.0 + recursive-readdir: 2.2.3 + semver: 7.8.5 + type-fest: 4.41.0 + yargs: 17.7.3 + transitivePeerDependencies: + - '@types/node' + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + css-select@5.2.2: + dependencies: + boolbase: 1.0.0 + css-what: 6.2.2 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + + css-shorthand-properties@1.1.2: {} + + css-value@0.0.1: {} + + css-what@6.2.2: {} + + data-uri-to-buffer@6.0.2: {} + + debug@4.4.3(supports-color@8.1.1): + dependencies: + ms: 2.1.3 + optionalDependencies: + supports-color: 8.1.1 + + decamelize@4.0.0: {} + + decamelize@6.0.1: {} + + deep-eql@5.0.2: {} + + deepmerge-ts@8.0.2: {} + + defaults@1.0.4: + dependencies: + clone: 1.0.4 + optional: true + + degenerator@5.0.1: + dependencies: + ast-types: 0.13.4 + escodegen: 2.1.0 + esprima: 4.0.1 + + diff@5.2.2: {} + + diff@8.0.4: {} + + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + + domelementtype@2.3.0: {} + + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + + dotenv@17.4.2: {} + + eastasianwidth@0.2.0: {} + + easy-table@1.2.0: + dependencies: + ansi-regex: 5.0.1 + optionalDependencies: + wcwidth: 1.0.1 + + edge-paths@3.0.5: + dependencies: + '@types/which': 2.0.2 + which: 2.0.2 + + edgedriver@6.3.1(supports-color@8.1.1): + dependencies: + '@wdio/logger': 9.29.1 + '@zip.js/zip.js': 2.24.0 + decamelize: 6.0.1 + edge-paths: 3.0.5 + http-proxy-agent: 7.0.2(supports-color@8.1.1) + https-proxy-agent: 7.0.6(supports-color@8.1.1) + which: 6.0.1 + transitivePeerDependencies: + - supports-color + + ejs@3.1.10: + dependencies: + jake: 10.9.4 + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + encoding-sniffer@0.2.1: + dependencies: + iconv-lite: 0.6.3 + whatwg-encoding: 3.1.1 + + end-of-stream@1.4.5: + dependencies: + once: 1.4.0 + + entities@4.5.0: {} + + entities@6.0.1: {} + + entities@7.0.1: {} + + error-ex@1.3.4: + dependencies: + is-arrayish: 0.2.1 + + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + + escalade@3.2.0: {} + + escape-string-regexp@2.0.0: {} + + escape-string-regexp@4.0.0: {} + + escodegen@2.1.0: + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + + esprima@4.0.1: {} + + estraverse@5.3.0: {} + + esutils@2.0.3: {} + + event-target-shim@5.0.1: {} + + events-universal@1.0.1: + dependencies: + bare-events: 2.9.2 + transitivePeerDependencies: + - bare-abort-controller + + events@3.3.0: {} + + execa@9.6.1: + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.6 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 8.0.1 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 6.0.0 + pretty-ms: 9.3.1 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.2.0 + + exit-hook@4.0.0: {} + + expect-webdriverio@6.1.0(@wdio/globals@9.31.3)(@wdio/logger@9.29.1)(webdriverio@9.32.0(supports-color@8.1.1)): + dependencies: + '@vitest/snapshot': 4.1.12 + '@wdio/globals': 9.31.3(expect-webdriverio@6.1.0)(webdriverio@9.32.0(supports-color@8.1.1)) + '@wdio/logger': 9.29.1 + deep-eql: 5.0.2 + expect: 30.5.2 + jest-matcher-utils: 30.5.2 + webdriverio: 9.32.0(supports-color@8.1.1) + + expect@30.5.2: + dependencies: + '@jest/expect-utils': 30.5.2 + '@jest/get-type': 30.5.0 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-util: 30.5.1 + + extract-zip@2.0.1(supports-color@8.1.1): + dependencies: + debug: 4.4.3(supports-color@8.1.1) + get-stream: 5.2.0 + yauzl: 2.10.0 + optionalDependencies: + '@types/yauzl': 2.10.3 + transitivePeerDependencies: + - supports-color + + fast-deep-equal@2.0.1: {} + + fast-fifo@1.3.2: {} + + fd-slicer@1.1.0: + dependencies: + pend: 1.2.0 + + figures@6.1.0: + dependencies: + is-unicode-supported: 2.1.0 + + filelist@1.0.6: + dependencies: + minimatch: 5.1.9 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + find-up@6.3.0: + dependencies: + locate-path: 7.2.0 + path-exists: 5.0.0 + + flat@5.0.2: {} + + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + fs.realpath@1.0.0: {} + + fsevents@2.3.3: + optional: true + + geckodriver@6.1.1(supports-color@8.1.1): + dependencies: + '@wdio/logger': 9.29.1 + '@zip.js/zip.js': 2.24.0 + decamelize: 6.0.1 + http-proxy-agent: 7.0.2(supports-color@8.1.1) + https-proxy-agent: 7.0.6(supports-color@8.1.1) + modern-tar: 0.7.7 + transitivePeerDependencies: + - supports-color + + get-caller-file@2.0.5: {} + + get-port@7.2.0: {} + + get-stream@5.2.0: + dependencies: + pump: 3.0.4 + + get-stream@9.0.1: + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + + get-uri@6.0.5(supports-color@8.1.1): + dependencies: + basic-ftp: 5.3.1 + data-uri-to-buffer: 6.0.2 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob@10.5.0: + dependencies: + foreground-child: 3.3.1 + jackspeak: 3.4.3 + minimatch: 9.0.9 + minipass: 7.1.3 + package-json-from-dist: 1.0.1 + path-scurry: 1.11.1 + + glob@8.1.0: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 5.1.9 + once: 1.4.0 + + graceful-fs@4.2.11: {} + + grapheme-splitter@1.0.4: {} + + has-flag@4.0.0: {} + + he@1.2.0: {} + + hosted-git-info@7.0.2: + dependencies: + lru-cache: 10.4.3 + + hosted-git-info@8.1.0: + dependencies: + lru-cache: 10.4.3 + + htmlfy@0.8.1: {} + + htmlparser2@10.1.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 7.0.1 + + http-proxy-agent@7.0.2(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + https-proxy-agent@7.0.6(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + human-signals@8.0.1: {} + + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + ieee754@1.2.1: {} + + immediate@3.0.6: {} + + import-meta-resolve@4.2.0: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + inquirer@12.11.1(@types/node@24.19.2): + dependencies: + '@inquirer/ansi': 1.0.2 + '@inquirer/core': 10.3.2(@types/node@24.19.2) + '@inquirer/prompts': 7.10.1(@types/node@24.19.2) + '@inquirer/type': 3.0.10(@types/node@24.19.2) + mute-stream: 2.0.0 + run-async: 4.0.6 + rxjs: 7.8.2 + optionalDependencies: + '@types/node': 24.19.2 + + ip-address@10.7.5: {} + + is-arrayish@0.2.1: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + is-plain-obj@2.1.0: {} + + is-plain-obj@4.1.0: {} + + is-stream@4.0.1: {} + + is-unicode-supported@0.1.0: {} + + is-unicode-supported@2.1.0: {} + + isarray@1.0.0: {} + + isexe@2.0.0: {} + + isexe@4.0.0: {} + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + jake@10.9.4: + dependencies: + async: 3.2.6 + filelist: 1.0.6 + picocolors: 1.1.1 + + jest-diff@30.5.2: + dependencies: + '@jest/diff-sequences': 30.5.0 + '@jest/get-type': 30.5.0 + chalk: 4.1.2 + pretty-format: 30.5.1 + + jest-matcher-utils@30.5.2: + dependencies: + '@jest/get-type': 30.5.0 + chalk: 4.1.2 + jest-diff: 30.5.2 + pretty-format: 30.5.1 + + jest-message-util@30.5.1: + dependencies: + '@babel/code-frame': 7.29.7 + '@jest/types': 30.5.1 + '@types/stack-utils': 2.0.3 + chalk: 4.1.2 + graceful-fs: 4.2.11 + jest-util: 30.5.1 + picomatch: 4.0.7 + pretty-format: 30.5.1 + slash: 3.0.0 + stack-utils: 2.0.6 + + jest-mock@30.5.2: + dependencies: + '@jest/expect-utils': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 + jest-util: 30.5.1 + + jest-regex-util@30.5.0: {} + + jest-util@30.5.1: + dependencies: + '@jest/types': 30.5.1 + '@types/node': 24.19.2 + chalk: 4.1.2 + ci-info: 4.4.0 + graceful-fs: 4.2.11 + picomatch: 4.0.7 + + jiti@2.7.0: {} + + js-tokens@4.0.0: {} + + js-yaml@4.3.2: + dependencies: + argparse: 2.0.1 + + json-parse-even-better-errors@3.0.2: {} + + jszip@3.10.2: + dependencies: + lie: 3.3.0 + pako: 1.0.11 + readable-stream: 2.3.8 + setimmediate: 1.0.5 + + lazystream@1.0.1: + dependencies: + readable-stream: 2.3.8 + + lie@3.3.0: + dependencies: + immediate: 3.0.6 + + lines-and-columns@2.0.4: {} + + locate-app@2.5.0: + dependencies: + '@promptbook/utils': 0.69.5 + type-fest: 4.26.0 + userhome: 1.0.1 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + locate-path@7.2.0: + dependencies: + p-locate: 6.0.0 + + lodash.clonedeep@4.5.0: {} + + lodash.flattendeep@4.4.0: {} + + lodash.pickby@4.6.0: {} + + lodash.union@4.6.0: {} + + lodash.zip@4.2.0: {} + + log-symbols@4.1.0: + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + + loglevel-plugin-prefix@0.8.4: {} + + loglevel@1.9.2: {} + + lru-cache@10.4.3: {} + + lru-cache@7.18.3: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.12 + + minimatch@3.1.5: + dependencies: + brace-expansion: 1.1.21 + + minimatch@5.1.9: + dependencies: + brace-expansion: 2.1.7 + + minimatch@9.0.9: + dependencies: + brace-expansion: 2.1.7 + + minipass@7.1.3: {} + + mitt@3.0.1: {} + + mocha@10.8.2: + dependencies: + ansi-colors: 4.1.3 + browser-stdout: 1.3.1 + chokidar: 3.6.0 + debug: 4.4.3(supports-color@8.1.1) + diff: 5.2.2 + escape-string-regexp: 4.0.0 + find-up: 5.0.0 + glob: 8.1.0 + he: 1.2.0 + js-yaml: 4.3.2 + log-symbols: 4.1.0 + minimatch: 5.1.9 + ms: 2.1.3 + serialize-javascript: 6.0.2 + strip-json-comments: 3.1.1 + supports-color: 8.1.1 + workerpool: 6.5.1 + yargs: 16.2.2 + yargs-parser: 20.2.9 + yargs-unparser: 2.0.0 + + modern-tar@0.7.7: {} + + ms@2.1.3: {} + + mute-stream@2.0.0: {} + + netmask@2.1.1: {} + + normalize-package-data@6.0.2: + dependencies: + hosted-git-info: 7.0.2 + semver: 7.8.5 + validate-npm-package-license: 3.0.4 + + normalize-package-data@7.0.1: + dependencies: + hosted-git-info: 8.1.0 + semver: 7.8.5 + validate-npm-package-license: 3.0.4 + + normalize-path@3.0.0: {} + + npm-run-path@6.0.0: + dependencies: + path-key: 4.0.0 + unicorn-magic: 0.3.0 + + nth-check@2.1.1: + dependencies: + boolbase: 1.0.0 + + object-inspect@1.13.4: {} + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-limit@4.0.0: + dependencies: + yocto-queue: 1.2.2 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + p-locate@6.0.0: + dependencies: + p-limit: 4.0.0 + + pac-proxy-agent@7.2.0(supports-color@8.1.1): + dependencies: + '@tootallnate/quickjs-emscripten': 0.23.0 + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + get-uri: 6.0.5(supports-color@8.1.1) + http-proxy-agent: 7.0.2(supports-color@8.1.1) + https-proxy-agent: 7.0.6(supports-color@8.1.1) + pac-resolver: 7.0.1 + socks-proxy-agent: 8.0.5(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + pac-resolver@7.0.1: + dependencies: + degenerator: 5.0.1 + netmask: 2.1.1 + + package-json-from-dist@1.0.1: {} + + pako@1.0.11: {} + + parse-json@7.1.1: + dependencies: + '@babel/code-frame': 7.29.7 + error-ex: 1.3.4 + json-parse-even-better-errors: 3.0.2 + lines-and-columns: 2.0.4 + type-fest: 3.13.1 + + parse-ms@4.0.0: {} + + parse5-htmlparser2-tree-adapter@7.1.0: + dependencies: + domhandler: 5.0.3 + parse5: 7.3.0 + + parse5-parser-stream@7.1.2: + dependencies: + parse5: 7.3.0 + + parse5@7.3.0: + dependencies: + entities: 6.0.1 + + path-exists@4.0.0: {} + + path-exists@5.0.0: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.3 + + pathe@2.0.3: {} + + pend@1.2.0: {} + + picocolors@1.1.1: {} + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + pretty-format@30.5.1: + dependencies: + '@jest/react-is-18': react-is@18.3.1 + '@jest/react-is-19': react-is@19.3.1 + '@jest/schemas': 30.5.0 + ansi-styles: 5.2.0 + + pretty-ms@9.3.1: + dependencies: + parse-ms: 4.0.0 + + process-nextick-args@2.0.1: {} + + process@0.11.10: {} + + progress@2.0.3: {} + + proxy-agent@6.5.0(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + http-proxy-agent: 7.0.2(supports-color@8.1.1) + https-proxy-agent: 7.0.6(supports-color@8.1.1) + lru-cache: 7.18.3 + pac-proxy-agent: 7.2.0(supports-color@8.1.1) + proxy-from-env: 1.1.0 + socks-proxy-agent: 8.0.5(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + proxy-from-env@1.1.0: {} + + pump@3.0.4: + dependencies: + end-of-stream: 1.4.5 + once: 1.4.0 + + query-selector-shadow-dom@1.0.1: {} + + randombytes@2.1.0: + dependencies: + safe-buffer: 5.2.1 + + react-is@18.3.1: {} + + react-is@19.3.1: {} + + read-pkg-up@10.1.0: + dependencies: + find-up: 6.3.0 + read-pkg: 8.1.0 + type-fest: 4.41.0 + + read-pkg@8.1.0: + dependencies: + '@types/normalize-package-data': 2.4.4 + normalize-package-data: 6.0.2 + parse-json: 7.1.1 + type-fest: 4.41.0 + + readable-stream@2.3.8: + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 1.0.0 + process-nextick-args: 2.0.1 + safe-buffer: 5.1.2 + string_decoder: 1.1.1 + util-deprecate: 1.0.2 + + readable-stream@4.8.0: + dependencies: + abort-controller: 3.0.0 + buffer: 6.0.3 + events: 3.3.0 + process: 0.11.10 + string_decoder: 1.3.0 + + readdir-glob@3.0.0: + dependencies: + minimatch: 10.2.6 + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.2 + + readdirp@4.1.2: {} + + recursive-readdir@2.2.3: + dependencies: + minimatch: 3.1.5 + + require-directory@2.1.1: {} + + resq@1.11.0: + dependencies: + fast-deep-equal: 2.0.1 + + ret@0.5.1: {} + + rgb2hex@0.2.5: {} + + run-async@4.0.6: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.8.1 + + safaridriver@1.0.1: {} + + safe-buffer@5.1.2: {} + + safe-buffer@5.2.1: {} + + safe-regex2@5.1.2: + dependencies: + ret: 0.5.1 + + safer-buffer@2.1.2: {} + + semver@7.8.5: {} + + serialize-error@12.0.0: + dependencies: + type-fest: 4.41.0 + + serialize-javascript@6.0.2: + dependencies: + randombytes: 2.1.0 + + setimmediate@1.0.5: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + signal-exit@4.1.0: {} + + slash@3.0.0: {} + + smart-buffer@4.2.0: {} + + socks-proxy-agent@8.0.5(supports-color@8.1.1): + dependencies: + agent-base: 7.1.4 + debug: 4.4.3(supports-color@8.1.1) + socks: 2.8.10 + transitivePeerDependencies: + - supports-color + + socks@2.8.10: + dependencies: + ip-address: 10.7.5 + smart-buffer: 4.2.0 + + source-map@0.6.1: + optional: true + + spacetrim@0.11.59: {} + + spdx-correct@3.2.0: + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.24 + + spdx-exceptions@2.5.0: {} + + spdx-expression-parse@3.0.1: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.24 + + spdx-license-ids@3.0.24: {} + + split2@4.2.0: {} + + stack-utils@2.0.6: + dependencies: + escape-string-regexp: 2.0.0 + + stream-buffers@3.0.3: {} + + streamx@2.28.1: + dependencies: + events-universal: 1.0.1 + fast-fifo: 1.3.2 + text-decoder: 1.2.7 + transitivePeerDependencies: + - bare-abort-controller + - react-native-b4a + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.2.0 + + string_decoder@1.1.1: + dependencies: + safe-buffer: 5.1.2 + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.4.0 + + strip-final-newline@4.0.0: {} + + strip-json-comments@3.1.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + supports-color@8.1.1: + dependencies: + has-flag: 4.0.0 + + tar-fs@3.1.3: + dependencies: + pump: 3.0.4 + tar-stream: 3.2.2 + optionalDependencies: + bare-fs: 4.8.4 + bare-path: 3.1.2 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + + tar-stream@3.2.2: + dependencies: + b4a: 1.9.0 + bare-fs: 4.8.4 + fast-fifo: 1.3.2 + streamx: 2.28.1 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - react-native-b4a + + teex@1.0.1: + dependencies: + streamx: 2.28.1 + transitivePeerDependencies: + - bare-abort-controller + - react-native-b4a + + text-decoder@1.2.7: + dependencies: + b4a: 1.9.0 + transitivePeerDependencies: + - react-native-b4a + + tinyrainbow@2.0.0: {} + + tinyrainbow@3.2.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.8.1: {} + + tsx@4.23.15: + dependencies: + esbuild: 0.28.2 + optionalDependencies: + fsevents: 2.3.3 + + type-fest@3.13.1: {} + + type-fest@4.26.0: {} + + type-fest@4.41.0: {} + + typescript@6.0.3: {} + + undici-types@6.21.0: {} + + undici-types@7.24.6: {} + + undici@6.29.1: {} + + undici@7.30.1: {} + + unicorn-magic@0.3.0: {} + + urlpattern-polyfill@10.1.0: {} + + userhome@1.0.1: {} + + util-deprecate@1.0.2: {} + + validate-npm-package-license@3.0.4: + dependencies: + spdx-correct: 3.2.0 + spdx-expression-parse: 3.0.1 + + wait-port@1.1.0(supports-color@8.1.1): + dependencies: + chalk: 4.1.2 + commander: 9.5.0 + debug: 4.4.3(supports-color@8.1.1) + transitivePeerDependencies: + - supports-color + + wcwidth@1.0.1: + dependencies: + defaults: 1.0.4 + optional: true + + webdriver@9.32.0(supports-color@8.1.1): + dependencies: + '@types/node': 20.19.43 + '@types/ws': 8.18.2 + '@wdio/config': 9.32.0(supports-color@8.1.1) + '@wdio/logger': 9.29.1 + '@wdio/protocols': 9.31.5 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + deepmerge-ts: 8.0.2 + https-proxy-agent: 7.0.6(supports-color@8.1.1) + undici: 6.29.1 + ws: 8.22.0 + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - bufferutil + - react-native-b4a + - supports-color + - utf-8-validate + + webdriverio@9.32.0(supports-color@8.1.1): + dependencies: + '@types/node': 20.19.43 + '@types/sinonjs__fake-timers': 8.1.5 + '@wdio/config': 9.32.0(supports-color@8.1.1) + '@wdio/logger': 9.29.1 + '@wdio/protocols': 9.31.5 + '@wdio/repl': 9.16.2 + '@wdio/types': 9.32.0 + '@wdio/utils': 9.32.0(supports-color@8.1.1) + archiver: 8.0.0 + aria-query: 5.3.2 + cheerio: 1.2.0 + css-shorthand-properties: 1.1.2 + css-value: 0.0.1 + grapheme-splitter: 1.0.4 + htmlfy: 0.8.1 + is-plain-obj: 4.1.0 + jszip: 3.10.2 + lodash.clonedeep: 4.5.0 + lodash.zip: 4.2.0 + query-selector-shadow-dom: 1.0.1 + resq: 1.11.0 + rgb2hex: 0.2.5 + serialize-error: 12.0.0 + urlpattern-polyfill: 10.1.0 + webdriver: 9.32.0(supports-color@8.1.1) + transitivePeerDependencies: + - bare-abort-controller + - bare-buffer + - bufferutil + - react-native-b4a + - supports-color + - utf-8-validate + + whatwg-encoding@3.1.1: + dependencies: + iconv-lite: 0.6.3 + + whatwg-mimetype@4.0.0: {} + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + which@6.0.1: + dependencies: + isexe: 4.0.0 + + workerpool@6.5.1: {} + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.3 + string-width: 5.1.2 + strip-ansi: 7.2.0 + + wrappy@1.0.2: {} + + ws@8.22.0: {} + + y18n@5.0.8: {} + + yargs-parser@20.2.9: {} + + yargs-parser@21.1.1: {} + + yargs-unparser@2.0.0: + dependencies: + camelcase: 6.3.0 + decamelize: 4.0.0 + flat: 5.0.2 + is-plain-obj: 2.1.0 + + yargs@16.2.2: + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + + yargs@17.7.3: + dependencies: + cliui: 8.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + + yauzl@2.10.0: + dependencies: + buffer-crc32: 0.2.13 + fd-slicer: 1.1.0 + + yocto-queue@0.1.0: {} + + yocto-queue@1.2.2: {} + + yoctocolors-cjs@2.1.3: {} + + yoctocolors@2.2.0: {} + + zip-stream@7.0.5: + dependencies: + compress-commons: 7.0.1 + normalize-path: 3.0.0 + readable-stream: 4.8.0 diff --git a/crates/app/e2e/pnpm-workspace.yaml b/crates/app/e2e/pnpm-workspace.yaml new file mode 100644 index 0000000..81b2fbd --- /dev/null +++ b/crates/app/e2e/pnpm-workspace.yaml @@ -0,0 +1,6 @@ +# Build scripts: esbuild verifies its binary; the Edge and Firefox drivers +# would download browsers this test never uses (it drives WebKitGTK). +allowBuilds: + esbuild: true + edgedriver: false + geckodriver: false diff --git a/crates/app/e2e/setup.ts b/crates/app/e2e/setup.ts new file mode 100644 index 0000000..58224ab --- /dev/null +++ b/crates/app/e2e/setup.ts @@ -0,0 +1,77 @@ +import { + copyFileSync, + existsSync, + mkdirSync, + readdirSync, + rmSync, + writeFileSync, +} from "node:fs"; +import { tmpdir } from "node:os"; +import { join, resolve } from "node:path"; + +/** The app's Tauri identifier: its config dir is `$XDG_CONFIG_HOME/`. */ +export const IDENTIFIER = "io.github.downlevel.keyrust"; +export const FIXTURE_PASSWORD = "keyrust-test-password"; + +const FIXTURES = resolve(import.meta.dirname, "../../../tests/fixtures"); + +/** Everything the test owns: copies of the fixtures and the app's XDG dirs. */ +export function e2eDir(): string { + return process.env.KEYRUST_E2E_DIR ?? join(tmpdir(), "keyrust-e2e"); +} + +export function paths() { + const root = e2eDir(); + return { + root, + rich: join(root, "vaults", "keepassxc-rich.kdbx"), + kdbx31: join(root, "vaults", "keepassxc-kdbx31.kdbx"), + config: join(root, "config"), + settings: join(root, "config", IDENTIFIER, "settings.json"), + artifacts: join(root, "artifacts"), + }; +} + +/** + * Prepares a fresh directory the way a user would leave it: two databases in + * the recent files. No test hook in the app: it reads its usual settings file, + * found through XDG_CONFIG_HOME. The original fixtures are never touched. + */ +export function prepare() { + const p = paths(); + // Only a folder this test created (it holds the marker) is ever deleted: + // KEYRUST_E2E_DIR pointing at anything else is refused. + const marker = join(p.root, ".keyrust-e2e"); + if (existsSync(p.root)) { + if (!existsSync(marker) && readdirSync(p.root).length > 0) { + throw new Error( + `${p.root} exists and was not created by the e2e test: choose an empty or new KEYRUST_E2E_DIR`, + ); + } + rmSync(p.root, { recursive: true, force: true }); + } + mkdirSync(join(p.root, "vaults"), { recursive: true }); + writeFileSync( + marker, + "Created by crates/app/e2e: deleted at the next run.\n", + ); + mkdirSync(join(p.config, IDENTIFIER), { recursive: true }); + mkdirSync(p.artifacts, { recursive: true }); + copyFileSync(join(FIXTURES, "keepassxc-rich.kdbx"), p.rich); + copyFileSync(join(FIXTURES, "keepassxc-kdbx31.kdbx"), p.kdbx31); + // Same schema as keyrust_core::settings::Settings; missing fields (the + // idle delay included) take their defaults. + writeFileSync( + p.settings, + JSON.stringify({ version: 1, recent_files: [p.rich, p.kdbx31] }), + ); + for (const dir of ["data", "cache"]) + mkdirSync(join(p.root, dir), { recursive: true }); + Object.assign(process.env, { + XDG_CONFIG_HOME: p.config, + XDG_DATA_HOME: join(p.root, "data"), + XDG_CACHE_HOME: join(p.root, "cache"), + KEYRUST_LOG: process.env.KEYRUST_LOG ?? "info", + }); + return p; +} diff --git a/crates/app/e2e/specs/smoke.e2e.ts b/crates/app/e2e/specs/smoke.e2e.ts new file mode 100644 index 0000000..f2f2cb8 --- /dev/null +++ b/crates/app/e2e/specs/smoke.e2e.ts @@ -0,0 +1,186 @@ +import { $, browser, expect } from "@wdio/globals"; +import { FIXTURE_PASSWORD, paths } from "../setup.ts"; + +// One run of the real app on copies of the KeePassXC fixtures +// (tests/fixtures/README.md). Waits are on conditions only, never fixed pauses. + +/** Every password of keepassxc-rich.kdbx (current, history, protected custom field, bin). */ +const SECRETS = [ + "gh-current-ω-3", + "gh-old-1", + "gh-old-2", + "RC-1234-5678", + "gm-p@ss", + "old-pass", + FIXTURE_PASSWORD, +]; +const NEW_TITLE = "GitHub (e2e)"; + +/** + * Looks for the passwords anywhere in the document: text of every node + * (hidden ones and portals included), every attribute value and the current + * value of every input and textarea. + */ +async function secretsInDom(): Promise { + return browser.execute((secrets: string[]) => { + const found = new Set(); + const check = (text: string | null | undefined, where: string) => { + if (!text) return; + for (const s of secrets) + if (text.includes(s)) found.add(`${s} in ${where}`); + }; + check(document.documentElement.textContent, "text"); + for (const el of document.querySelectorAll("*")) { + for (const attr of el.attributes) + check(attr.value, `@${attr.name} of <${el.tagName}>`); + if ( + el instanceof HTMLInputElement || + el instanceof HTMLTextAreaElement + ) { + check(el.value, `value of <${el.tagName}#${el.id}>`); + } + } + return [...found]; + }, SECRETS); +} + +/** Titles of the entries in the list, in order. */ +async function optionTitles(): Promise { + return browser.execute(() => + [ + ...document.querySelectorAll( + '[role="listbox"] [role="option"] span.font-medium', + ), + ].map((el) => el.textContent?.trim() ?? ""), + ); +} + +/** + * Waits for an element's text. Read from the DOM: WebKitWebDriver's "Get + * Element Text" returns "" for `truncate` (overflow hidden) elements. + */ +async function expectText(selector: string, expected: string) { + const read = () => + browser.execute( + (sel: string) => + document.querySelector(sel)?.textContent?.trim() ?? null, + selector, + ); + await browser.waitUntil(async () => (await read()) === expected, { + timeoutMsg: `${selector}: expected "${expected}", found "${await read()}"`, + }); +} + +function option(title: string) { + return $( + `//*[@role="listbox"]//*[@role="option"][.//span[normalize-space()="${title}"]]`, + ); +} + +async function recentButton(stem: string) { + return $( + `//section[@aria-labelledby="recent-heading"]//button[.//span[normalize-space()="${stem}"]]`, + ); +} + +async function unlockWith(password: string) { + const field = await $("#master-password"); + await field.waitForEnabled(); + await field.setValue(password); + await $('form button[type="submit"]').click(); +} + +describe("Keyrust smoke test", () => { + it("lists the two databases from the recent files", async () => { + const p = paths(); + const count = () => + browser.execute( + () => + document.querySelectorAll( + 'section[aria-labelledby="recent-heading"] li button', + ).length, + ); + // The first start of WebKitGTK in CI can be slow. + await browser.waitUntil(async () => (await count()) > 0, { + timeout: 60_000, + timeoutMsg: `no recent files: is the settings file read from ${p.settings}?`, + }); + expect(await count()).toBe(2); + await expect(await recentButton("keepassxc-rich")).toBeDisplayed(); + await expect(await recentButton("keepassxc-kdbx31")).toBeDisplayed(); + await expectText('[data-testid="unlock-db-name"]', "keepassxc-rich"); + }); + + it("refuses a wrong password and keeps the focus in the field", async () => { + await unlockWith("not-the-password"); + const error = await $("#master-password-error"); + await error.waitUntil(async () => (await error.getText()).length > 0); + expect(await error.getAttribute("role")).toBe("alert"); + await browser.waitUntil( + async () => + (await browser.execute(() => document.activeElement?.id)) === + "master-password", + { timeoutMsg: "the password field lost the focus" }, + ); + }); + + it("opens the vault with no password in the page", async () => { + await unlockWith(FIXTURE_PASSWORD); + await $('[role="listbox"]').waitForDisplayed(); + expect((await optionTitles()).sort()).toEqual(["GitHub", "Gmail"]); + expect(await secretsInDom()).toEqual([]); + + await option("GitHub").click(); + await $("#entry-title").waitForDisplayed(); + await expectText('[data-testid="password-value"]', "••••••••••••"); + expect(await secretsInDom()).toEqual([]); + }); + + it("filters the list by search and restores it", async () => { + const search = await $('input[type="search"]'); + await search.setValue("Gma"); + await browser.waitUntil( + async () => (await optionTitles()).length === 1, + ); + expect(await optionTitles()).toEqual(["Gmail"]); + await $('button[aria-label="Clear search"]').click(); + await browser.waitUntil( + async () => (await optionTitles()).length === 2, + ); + }); + + it("renames an entry and saves the file from the editor", async () => { + await option("GitHub").click(); + await $('//article//header//button[normalize-space()="Edit"]').click(); + const title = await $("#editor-title"); + await title.waitForDisplayed(); + await title.clearValue(); + await title.setValue(NEW_TITLE); + await $('form button[type="submit"]').click(); + await expectText("#entry-title", NEW_TITLE); + await browser.waitUntil( + async () => + (await $('[data-testid="save-status"]').getText()) === + "Saved" && + !(await $('[data-testid="unsaved-dot"]').isExisting()), + { timeoutMsg: "the save did not complete" }, + ); + }); + + it("locks back to the Unlock screen", async () => { + await $('button[aria-label="Lock database"]').click(); + await $("#master-password").waitForDisplayed(); + expect(await $('[role="listbox"]').isExisting()).toBe(false); + }); + + it("opens a KDBX 3.1 file with the conversion notice, without saving", async () => { + await (await recentButton("keepassxc-kdbx31")).click(); + await expectText('[data-testid="unlock-db-name"]', "keepassxc-kdbx31"); + await unlockWith(FIXTURE_PASSWORD); + const notice = await $( + '//*[@role="status"][contains(., "This database uses KDBX 3.1")]', + ); + await notice.waitForDisplayed(); + expect(await optionTitles()).toEqual(["Legacy"]); + }); +}); diff --git a/crates/app/e2e/tsconfig.json b/crates/app/e2e/tsconfig.json new file mode 100644 index 0000000..415a2ec --- /dev/null +++ b/crates/app/e2e/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es2023", + "module": "nodenext", + "moduleResolution": "nodenext", + "allowImportingTsExtensions": true, + "noEmit": true, + "strict": true, + "skipLibCheck": true, + "types": ["node", "mocha", "@wdio/globals/types"] + }, + "include": ["*.ts", "specs/**/*.ts"] +} diff --git a/crates/app/e2e/wdio.conf.ts b/crates/app/e2e/wdio.conf.ts new file mode 100644 index 0000000..e4d4d46 --- /dev/null +++ b/crates/app/e2e/wdio.conf.ts @@ -0,0 +1,133 @@ +import { spawn, type ChildProcess } from "node:child_process"; +import { homedir } from "node:os"; +import { join, resolve } from "node:path"; +import { paths, prepare } from "./setup.ts"; + +// The real app (Rust backend, IPC, WebKitGTK) driven through tauri-driver, +// following the Tauri 2 "WebdriverIO" guide. Linux only: tauri-driver has no +// macOS support, and Windows needs a matching msedgedriver. + +const APPLICATION = resolve( + import.meta.dirname, + "../../../target/debug/keyrust", +); +let driver: ChildProcess | undefined; + +export const config: WebdriverIO.Config = { + hostname: "127.0.0.1", + port: 4444, + specs: ["./specs/**/*.e2e.ts"], + maxInstances: 1, + capabilities: [ + { + maxInstances: 1, + // WebKitWebDriver speaks classic WebDriver only, not BiDi. + "wdio:enforceWebDriverClassic": true, + "tauri:options": { application: APPLICATION }, + } as WebdriverIO.Capabilities, + ], + logLevel: "warn", + waitforTimeout: 15_000, + connectionRetryTimeout: 120_000, + connectionRetryCount: 2, + framework: "mocha", + reporters: ["spec"], + mochaOpts: { ui: "bdd", timeout: 120_000 }, + + onPrepare: () => { + const p = prepare(); + console.log(`e2e directory: ${p.root}`); + }, + + beforeSession: () => { + // The app inherits this environment (XDG dirs, KEYRUST_LOG) from tauri-driver. + driver = spawn( + process.env.TAURI_DRIVER ?? + join(homedir(), ".cargo", "bin", "tauri-driver"), + [], + { + stdio: [null, process.stdout, process.stderr], + env: process.env, + }, + ); + }, + + before: async () => { + // Collect script errors from the first moment, for the failure report. + await browser.execute(() => { + const w = window as unknown as { __errors: string[] }; + w.__errors = []; + addEventListener("error", (e) => + w.__errors.push(String(e.message)), + ); + addEventListener("unhandledrejection", (e) => + w.__errors.push(String(e.reason)), + ); + }); + }, + + afterTest: async (test, _context, { passed }) => { + if (!passed) { + // What the webview shows (no secret is on screen before an entry is + // edited or revealed, and the fixture password is public anyway). + const state = await browser + .execute(() => ({ + url: location.href, + pathname: location.pathname, + readyState: document.readyState, + tauri: "__TAURI_INTERNALS__" in window, + errors: + (window as unknown as { __errors?: string[] }) + .__errors ?? [], + text: + document.body?.innerText + .replace(/\s+/g, " ") + .slice(0, 300) ?? "", + })) + .catch((e: unknown) => ({ error: String(e) })); + console.log( + `page state after "${test.title}": ${JSON.stringify(state)}`, + ); + // Did SvelteKit's inline bootstrap run (a CSP block would stop it), + // and do its module imports load? + const boot = await browser + .execute(async () => { + const kit = Object.keys(window).filter((k) => + k.startsWith("__sveltekit"), + ); + const source = [...document.scripts] + .map((s) => s.textContent ?? "") + .join("\n"); + const imports = [ + ...source.matchAll(/import\("([^"]+)"\)/g), + ].map((m) => m[1]); + const results: string[] = []; + for (const url of imports) { + try { + await import(/* @vite-ignore */ url); + results.push(`${url}: ok`); + } catch (e) { + results.push(`${url}: ${String(e)}`); + } + } + return { + kit, + results, + body: document.body?.innerHTML.slice(0, 400) ?? "", + }; + }) + .catch((e: unknown) => ({ error: String(e) })); + console.log( + `page boot after "${test.title}": ${JSON.stringify(boot)}`, + ); + const name = test.title.replace(/[^\w-]+/g, "_"); + await browser.saveScreenshot( + join(paths().artifacts, `${name}.png`), + ); + } + }, + + afterSession: () => { + driver?.kill(); + }, +}; diff --git a/crates/app/tauri.conf.json b/crates/app/tauri.conf.json index 2e7b13d..bdd1e56 100644 --- a/crates/app/tauri.conf.json +++ b/crates/app/tauri.conf.json @@ -13,6 +13,7 @@ "windows": [ { "label": "main", + "url": "/", "title": "Keyrust", "width": 1100, "height": 720, diff --git a/crates/app/tests/security_config.rs b/crates/app/tests/security_config.rs index 477511d..3ce80a3 100644 --- a/crates/app/tests/security_config.rs +++ b/crates/app/tests/security_config.rs @@ -148,3 +148,13 @@ fn ipc_commands_are_the_expected_ones() { .collect(); assert_eq!(registered, keyrust_app_lib::COMMANDS); } + +#[test] +fn the_window_loads_a_url_with_a_path() { + // Linux and macOS serve the UI from `tauri://localhost`, a non-special URL + // whose path is empty: SvelteKit's router then finds no route and reloads + // the page forever (found by the e2e smoke test). An explicit "/" gives + // every platform the path the router expects. + let conf = read_json("tauri.conf.json"); + assert_eq!(conf["app"]["windows"][0]["url"], "/"); +} diff --git a/crates/app/ui/.gitignore b/crates/app/ui/.gitignore index 15df642..df1f3b2 100644 --- a/crates/app/ui/.gitignore +++ b/crates/app/ui/.gitignore @@ -7,3 +7,7 @@ vite.config.ts.timestamp-* # Generated by Paraglide src/lib/paraglide/ + +# Playwright (e2e-web) +/test-results/ +/playwright-report/ diff --git a/crates/app/ui/.prettierignore b/crates/app/ui/.prettierignore index addaf0e..9e6aa8c 100644 --- a/crates/app/ui/.prettierignore +++ b/crates/app/ui/.prettierignore @@ -4,3 +4,5 @@ node_modules/ pnpm-lock.yaml src/lib/paraglide/ project.inlang/ +test-results/ +playwright-report/ diff --git a/crates/app/ui/e2e-web/a11y.spec.ts b/crates/app/ui/e2e-web/a11y.spec.ts new file mode 100644 index 0000000..cee1a38 --- /dev/null +++ b/crates/app/ui/e2e-web/a11y.spec.ts @@ -0,0 +1,149 @@ +import { expect, test } from "@playwright/test"; +import { audit, openApp, palette, unlock } from "./helpers"; + +// Every screen and overlay of the app, in each state a user can reach. + +test.describe("unlock and create", () => { + test("unlock with recent files", async ({ page }, info) => { + await openApp(page); + await audit(page, info, "unlock"); + }); + + test("unlock after a wrong password", async ({ page }, info) => { + await openApp(page); + await page.getByLabel("Master password").fill("wrong"); + await page.getByRole("button", { name: "Unlock" }).click(); + await expect(page.getByText("Wrong password or key.", { exact: false })).toBeVisible(); + await audit(page, info, "unlock-wrong-password"); + }); + + test("welcome (no recent files)", async ({ page }, info) => { + await openApp(page); + await palette(page, "Demo: show the first-run screen"); + await expect(page.getByRole("heading", { level: 1 })).toBeVisible(); + await audit(page, info, "welcome"); + }); + + test("create database, with advanced settings and an error", async ({ page }, info) => { + await openApp(page); + await page.getByRole("button", { name: "Create new database" }).click(); + await expect(page.getByRole("heading", { name: "Create a new database" })).toBeVisible(); + await audit(page, info, "create"); + + await page.getByLabel("Master password", { exact: true }).fill("correct horse battery"); + await page.getByLabel("Confirm master password").fill("correct horse"); + await page.getByRole("button", { name: "Advanced encryption settings" }).click(); + await audit(page, info, "create-advanced-mismatch"); + }); +}); + +test.describe("vault", () => { + test.beforeEach(async ({ page }) => unlock(page)); + + test("list", async ({ page }, info) => { + await audit(page, info, "vault-list"); + }); + + test("selected entry, revealed password, toast", async ({ page }, info) => { + await page.getByRole("option", { name: /GitHub/ }).click(); + await expect(page.getByRole("heading", { name: "GitHub" })).toBeVisible(); + await audit(page, info, "vault-entry"); + await page.getByRole("button", { name: "Copy username" }).click(); + await expect(page.getByTestId("toast")).toBeVisible(); + await audit(page, info, "vault-toast"); + }); + + test("search without results", async ({ page }, info) => { + await page.getByRole("searchbox").fill("nothing matches this"); + await expect(page.getByText("No matches for", { exact: false })).toBeVisible(); + await audit(page, info, "vault-search-empty"); + }); + + test("recycle bin and an empty group", async ({ page }, info) => { + await page.getByRole("treeitem", { name: /Recycle Bin/ }).click(); + await audit(page, info, "vault-recycle-bin"); + await page.getByRole("button", { name: "New group" }).click(); + await page.getByRole("textbox", { name: "New group" }).fill("Empty"); + await page.keyboard.press("Enter"); + await page.getByRole("treeitem", { name: /Empty/ }).click(); + await audit(page, info, "vault-empty-group"); + }); + + test("entry editor: new, edit, generator popover", async ({ page }, info) => { + await page.getByRole("button", { name: "New entry" }).first().click(); + await expect(page.getByRole("heading", { level: 1 })).toBeVisible(); + await audit(page, info, "editor-new"); + await page.keyboard.press("Escape"); + + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Edit" }).click(); + await expect(page.getByLabel("Title")).toBeVisible(); + await audit(page, info, "editor-edit"); + await page.getByRole("button", { name: "Generate", exact: true }).click(); + await expect(page.getByRole("dialog", { name: "Password generator" })).toBeVisible(); + await audit(page, info, "editor-generator"); + }); + + test("settings, every tab", async ({ page }, info) => { + await page.keyboard.press("Control+,"); + for (const tab of ["General", "Database", "About"]) { + await page.getByRole("tab", { name: tab }).click(); + await expect(page.getByRole("tab", { name: tab })).toHaveAttribute( + "aria-selected", + "true", + ); + await audit(page, info, `settings-${tab.toLowerCase()}`); + } + }); + + test("keyboard shortcuts panel and command palette", async ({ page }, info) => { + await page.keyboard.press("Control+/"); + await expect(page.getByRole("dialog", { name: "Keyboard shortcuts" })).toBeVisible(); + await audit(page, info, "shortcuts"); + await page.keyboard.press("Escape"); + await page.keyboard.press("Control+k"); + await expect(page.getByRole("combobox", { name: "Command palette" })).toBeFocused(); + await audit(page, info, "palette"); + }); + + test("standalone generator", async ({ page }, info) => { + await page.keyboard.press("Control+g"); + await expect(page.getByRole("dialog", { name: "Password generator" })).toBeVisible(); + await audit(page, info, "generator"); + }); + + test("confirm dialog", async ({ page }, info) => { + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Delete" }).click(); + await expect(page.getByRole("alertdialog")).toBeVisible(); + await audit(page, info, "confirm"); + }); + + test("banners: external change and save failure", async ({ page }, info) => { + await palette(page, "Demo: simulate a change by another app"); + await expect(page.getByRole("alert")).toContainText("changed by another app"); + await audit(page, info, "banner-external"); + await page.getByRole("button", { name: "Reload" }).click(); + await palette(page, "Demo: simulate a save failure"); + await expect(page.getByRole("alert")).toContainText("Couldn’t save"); + await audit(page, info, "banner-save-failed"); + }); + // The KDBX 3.1 / 4.0 notice cannot appear in the demo (always 4.1); its + // tone is checked by the token contrast test and src/tests/version-notice.test.ts. +}); + +test.describe("narrow window (collapsed sidebar)", () => { + test.use({ viewport: { width: 900, height: 720 } }); + + test("saves are still announced, and the layout passes axe (M4A-R10)", async ({ + page, + }, info) => { + await unlock(page); + await expect(page.getByRole("button", { name: "Expand sidebar" })).toBeVisible(); + const status = page.getByTestId("save-status"); + await expect(status).toHaveAttribute("role", "status"); + await page.keyboard.press("Control+s"); + await expect(status).toHaveText("Saved"); + await audit(page, info, "vault-narrow"); + }); +}); diff --git a/crates/app/ui/e2e-web/focus.spec.ts b/crates/app/ui/e2e-web/focus.spec.ts new file mode 100644 index 0000000..2c066bc --- /dev/null +++ b/crates/app/ui/e2e-web/focus.spec.ts @@ -0,0 +1,293 @@ +import { expect, test, type Page } from "@playwright/test"; +import { contrastRatio, parseColor } from "../src/lib/a11y/contrast"; +import { openApp, palette, unlock } from "./helpers"; + +/** + * Elements whose focus indicator is drawn by an ancestor: [element selector, + * selector of the ancestor that carries the indicator]. Everything else + * carries its own. + */ +const CARRIERS: [string, string][] = [ + // SecretInput: the ring is on the wrapper around the field and its toggle. + [ + "#master-password, #create-password, #create-confirm, #editor-password, #new-master, #confirm-master", + "div.focus-within\\:ring-2", + ], + // Search field and the command palette field. + ['input[type="search"]', "div.focus-within\\:ring-2"], + ['[data-slot="command-input"]', '[data-slot="input-group"]'], +]; + +interface Style { + outlineStyle: string; + outlineWidth: string; + outlineColor: string; + boxShadow: string; +} + +interface Stop { + /** Unique per element, for cycle detection. */ + key: number; + selector: string; + before: Style | null; + after: Style; + background: string; +} + +/** Prepares the page: every element's indicator styles are recorded before each Tab. */ +async function install(page: Page) { + await page.evaluate((carriers) => { + const w = window as unknown as { + __styles: WeakMap; + __snapshot: () => void; + __stop: () => unknown; + __keys: WeakMap; + }; + w.__keys = new WeakMap(); + let nextKey = 0; + const style = (el: Element) => { + const s = getComputedStyle(el); + return { + outlineStyle: s.outlineStyle, + outlineWidth: s.outlineWidth, + outlineColor: s.outlineColor, + boxShadow: s.boxShadow, + }; + }; + const carrierOf = (el: Element) => { + for (const [match, carrier] of carriers) { + if (el.matches(match)) { + const c = el.closest(carrier); + if (!c) throw new Error(`no carrier ${carrier} for ${match}`); + return c; + } + } + return el; + }; + const describe = (el: Element) => { + const id = el.id ? `#${el.id}` : ""; + const name = el.getAttribute("aria-label") ?? el.textContent?.trim().slice(0, 30) ?? ""; + return `${el.tagName.toLowerCase()}${id}[${el.getAttribute("role") ?? ""}] "${name}"`; + }; + w.__snapshot = () => { + w.__styles = new WeakMap(); + for (const el of document.querySelectorAll("body *")) w.__styles.set(el, style(el)); + }; + w.__stop = () => { + const el = document.activeElement; + if (!el || el === document.body) return null; + const carrier = carrierOf(el); + // Adjacent background: first ancestor of the carrier with an opaque one. + let background = "rgb(255, 255, 255)"; + for (let a = carrier.parentElement; a; a = a.parentElement) { + const bg = getComputedStyle(a).backgroundColor; + const alpha = /\/\s*([\d.]+)\)|rgba\([^)]*,\s*([\d.]+)\)/.exec(bg); + if (bg !== "rgba(0, 0, 0, 0)" && bg !== "transparent" && !alpha) { + background = bg; + break; + } + } + if (!w.__keys.has(el)) w.__keys.set(el, nextKey++); + return { + key: w.__keys.get(el), + selector: `${describe(el)}${carrier === el ? "" : ` via ${describe(carrier)}`}`, + before: w.__styles.get(carrier) ?? null, + after: style(carrier), + background, + }; + }; + }, CARRIERS); +} + +/** Splits a computed `box-shadow` into [colour, spread] pairs. */ +function shadows(value: string): { color: string; spread: number }[] { + if (value === "none") return []; + const parts: string[] = []; + let depth = 0; + let current = ""; + for (const ch of value) { + if (ch === "(") depth++; + if (ch === ")") depth--; + if (ch === "," && depth === 0) { + parts.push(current.trim()); + current = ""; + } else current += ch; + } + parts.push(current.trim()); + return parts.map((p) => { + const color = + /^(?:[a-z]+\([^)]*\)|#[0-9a-f]+)|(?:[a-z]+\([^)]*\)|#[0-9a-f]+)$/i.exec(p)?.[0] ?? ""; + const lengths = p + .replace(color, "") + .trim() + .split(/\s+/) + .filter((x) => x.endsWith("px")); + return { color, spread: parseFloat(lengths[3] ?? "0") }; + }); +} + +/** The indicator drawn on focus, or why there is none. */ +function check(stop: Stop): string | null { + const { after, before } = stop; + const outline = + after.outlineStyle !== "none" && parseFloat(after.outlineWidth) > 0 + ? after.outlineColor + : null; + const ring = shadows(after.boxShadow).find( + (s) => + s.spread > 0 && + parseColor(s.color).a === 1 && + !shadows(before?.boxShadow ?? "none").some( + (b) => b.color === s.color && b.spread === s.spread, + ), + ); + let color: string | null = null; + if (outline && parseColor(outline).a === 1) { + const unchanged = + before && + before.outlineStyle === after.outlineStyle && + before.outlineWidth === after.outlineWidth && + before.outlineColor === after.outlineColor; + if (!unchanged) color = outline; + } + color ??= ring?.color ?? null; + if (!color) return `no opaque outline or ring that appears on focus (${JSON.stringify(after)})`; + const ratio = contrastRatio(color, stop.background); + if (ratio < 3) return `indicator ${color} on ${stop.background}: ${ratio.toFixed(2)}:1`; + return null; +} + +async function tabThrough(page: Page, max = 60, minStops = 3) { + await install(page); + // Start unfocused, so a single-stop dialog is also seen gaining focus. + await page.evaluate(() => (document.activeElement as HTMLElement | null)?.blur()); + const failures: string[] = []; + const seen = new Map(); + for (let i = 0; i < max; i++) { + await page.evaluate(() => (window as unknown as { __snapshot: () => void }).__snapshot()); + await page.keyboard.press("Tab"); + // Measure the end state of any transition the focus started. + await page.evaluate(() => + Promise.allSettled(document.getAnimations().map((a) => a.finished)), + ); + const stop = (await page.evaluate(() => + (window as unknown as { __stop: () => unknown }).__stop(), + )) as Stop | null; + if (!stop) continue; + if (seen.has(stop.key)) break; + seen.set(stop.key, stop.selector); + const problem = check(stop); + if (problem) failures.push(`${stop.selector}: ${problem}`); + } + expect(seen.size, `tab stops: ${[...seen.values()].join(" | ")}`).toBeGreaterThanOrEqual( + minStops, + ); + expect(failures).toEqual([]); + return [...seen.values()]; +} + +/** The indicator of the element that `action` focuses (it may not exist before). */ +async function focusedBy(page: Page, action: () => Promise) { + await install(page); + await page.evaluate(() => (window as unknown as { __snapshot: () => void }).__snapshot()); + await action(); + await page.evaluate(() => Promise.allSettled(document.getAnimations().map((a) => a.finished))); + const stop = (await page.evaluate(() => + (window as unknown as { __stop: () => unknown }).__stop(), + )) as Stop | null; + expect(stop, "something has the focus").not.toBeNull(); + expect(stop && check(stop), stop?.selector).toBeNull(); +} + +test.describe("focus is visible on every tab stop", () => { + test("unlock", async ({ page }) => { + await openApp(page); + await tabThrough(page); + }); + + test("create", async ({ page }) => { + await openApp(page); + await page.getByRole("button", { name: "Create new database" }).click(); + await page.getByRole("button", { name: "Advanced encryption settings" }).click(); + await tabThrough(page); + }); + + test("vault with an entry", async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await tabThrough(page); + }); + + test("entry editor", async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Edit" }).click(); + await tabThrough(page); + }); + + for (const tab of ["General", "Database", "About"]) { + test(`settings: ${tab}`, async ({ page }) => { + await unlock(page); + await page.keyboard.press("Control+,"); + await page.getByRole("tab", { name: tab }).click(); + await tabThrough(page); + }); + } + + // Overlays and transient controls (M4A-R03). + test("toast", async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Copy username" }).click(); + await expect(page.getByTestId("toast")).toBeVisible(); + const stops = await tabThrough(page); + expect(stops.some((s) => s.includes('"Dismiss"'))).toBe(true); + }); + + test("generator and keyboard shortcuts", async ({ page }) => { + await unlock(page); + await page.keyboard.press("Control+g"); + await expect(page.getByRole("dialog", { name: "Password generator" })).toBeVisible(); + await tabThrough(page, 20); + await page.keyboard.press("Escape"); + await page.keyboard.press("Control+/"); + await expect(page.getByRole("dialog", { name: "Keyboard shortcuts" })).toBeVisible(); + await tabThrough(page, 20, 1); + }); + + test("banners", async ({ page }) => { + await unlock(page); + await palette(page, "Demo: simulate a change by another app"); + await expect(page.getByRole("alert")).toContainText("changed by another app"); + let stops = await tabThrough(page); + expect(stops.some((s) => s.includes('"Keep mine"'))).toBe(true); + await page.getByRole("button", { name: "Reload" }).click(); + await palette(page, "Demo: simulate a save failure"); + await expect(page.getByRole("alert")).toContainText("Couldn’t save"); + stops = await tabThrough(page); + expect(stops.some((s) => s.includes('"Retry"'))).toBe(true); + }); + + test("group name fields", async ({ page }) => { + await unlock(page); + const work = page.getByRole("treeitem", { name: /^Work/ }); + await work.click(); + await focusedBy(page, () => page.keyboard.press("F2")); + await expect(page.getByRole("textbox", { name: "Rename group" })).toBeFocused(); + await page.keyboard.press("Escape"); + await focusedBy(page, () => page.getByRole("button", { name: "New group" }).click()); + await expect(page.getByRole("textbox", { name: "New group" })).toBeFocused(); + }); + + test("command palette and confirm dialog", async ({ page }) => { + await unlock(page); + await page.keyboard.press("Control+k"); + // Arrow keys move through the results: the field is the only stop. + await tabThrough(page, 10, 1); + await page.keyboard.press("Escape"); + await expect(page.getByRole("dialog", { name: "Command palette" })).toBeHidden(); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.keyboard.press("Delete"); + await tabThrough(page, 10, 2); + }); +}); diff --git a/crates/app/ui/e2e-web/helpers.ts b/crates/app/ui/e2e-web/helpers.ts new file mode 100644 index 0000000..e870c78 --- /dev/null +++ b/crates/app/ui/e2e-web/helpers.ts @@ -0,0 +1,62 @@ +import AxeBuilder from "@axe-core/playwright"; +import { expect, type Page, type TestInfo } from "@playwright/test"; + +/** The demo's master password (`src/lib/api/demo.ts`). */ +export const DEMO_PASSWORD = "secret"; + +export async function openApp(page: Page) { + await page.goto("/"); + await expect(page.getByLabel("Master password")).toBeFocused(); +} + +export async function unlock(page: Page) { + await openApp(page); + await page.getByLabel("Master password").fill(DEMO_PASSWORD); + await page.getByRole("button", { name: "Unlock" }).click(); + await expect(page.getByRole("listbox", { name: /entries/i })).toBeVisible(); +} + +export async function palette(page: Page, label: string) { + await page.keyboard.press("Control+k"); + const input = page.getByRole("combobox", { name: "Command palette" }); + await expect(input).toBeFocused(); + await input.fill(label); + await page.getByRole("option", { name: label, exact: true }).click(); +} + +const IMPACT_FAILS = new Set(["serious", "critical"]); + +/** + * Runs axe (WCAG 2.0/2.1 A and AA) on the current page. Serious and critical + * violations fail; moderate and minor ones are attached to the report and must + * be fixed or justified in docs/ACCESSIBILITY.md. + */ +export async function audit(page: Page, testInfo: TestInfo, state: string) { + // The steady state is audited, not a colour half-way through a transition. + await page.evaluate(() => Promise.allSettled(document.getAnimations().map((a) => a.finished))); + const results = await new AxeBuilder({ page }) + .withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"]) + .analyze(); + const summary = results.violations.map((v) => ({ + id: v.id, + impact: v.impact, + help: v.help, + targets: v.nodes.map((n) => n.target.join(" ")), + })); + if (summary.length) { + await testInfo.attach(`axe-${state}.json`, { + body: JSON.stringify(summary, null, 2), + contentType: "application/json", + }); + for (const v of summary) { + const line = `[axe] ${state}: ${v.impact} ${v.id} — ${v.help} — ${v.targets.join(", ")}`; + console.log(line); + if (!IMPACT_FAILS.has(v.impact ?? "")) + testInfo.annotations.push({ type: "axe", description: line }); + } + } + expect( + summary.filter((v) => IMPACT_FAILS.has(v.impact ?? "")), + `serious or critical axe violations in "${state}"`, + ).toEqual([]); +} diff --git a/crates/app/ui/e2e-web/keyboard.spec.ts b/crates/app/ui/e2e-web/keyboard.spec.ts new file mode 100644 index 0000000..ba41444 --- /dev/null +++ b/crates/app/ui/e2e-web/keyboard.spec.ts @@ -0,0 +1,295 @@ +import { expect, test, type Locator, type Page } from "@playwright/test"; +import registry from "../src/lib/commands/commands.json" with { type: "json" }; +import { openApp, palette, unlock } from "./helpers"; + +/** What the focused element is, for readable order assertions. */ +async function focused(page: Page): Promise { + return page.evaluate(() => { + const el = document.activeElement as HTMLElement | null; + if (!el || el === document.body) return "body"; + const implicit: Record = { + button: "button", + a: "link", + textarea: "textbox", + }; + const input = + el instanceof HTMLInputElement + ? el.type === "search" + ? "searchbox" + : "textbox" + : null; + const role = + el.getAttribute("role") ?? + input ?? + implicit[el.tagName.toLowerCase()] ?? + el.tagName.toLowerCase(); + const name = + el.getAttribute("aria-label") ?? + (el as HTMLInputElement).placeholder ?? + el.textContent?.trim().replace(/\s+/g, " ") ?? + ""; + return `${role}:${name}`.slice(0, 60); + }); +} + +/** Tab stops from the current focus until it comes back (at most `max`). */ +async function cycle(page: Page, key: "Tab" | "Shift+Tab", max = 60): Promise { + const start = await focused(page); + const stops = [start]; + for (let i = 0; i < max; i++) { + await page.keyboard.press(key); + const now = await focused(page); + if (now === start) return stops; + stops.push(now); + } + throw new Error(`focus did not cycle within ${max} stops: ${stops.join(" | ")}`); +} + +async function expectFocusInside(page: Page, container: Locator) { + expect(await container.evaluate((el) => el.contains(document.activeElement))).toBe(true); +} + +test.describe("vault tab order", () => { + test.beforeEach(async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.keyboard.press("Control+f"); + await expect(page.getByRole("searchbox")).toBeFocused(); + }); + + test("the tree and the list are one stop each, in reading order", async ({ page }) => { + const forward = await cycle(page, "Tab"); + const index = (prefix: string) => forward.findIndex((s) => s.startsWith(prefix)); + expect(forward.filter((s) => s.startsWith("treeitem:"))).toHaveLength(1); + expect(forward.filter((s) => s.startsWith("option:"))).toHaveLength(1); + // Search → list → detail actions, then round to the sidebar (tree) and back. + expect(index("searchbox:")).toBe(0); + expect(index("option:")).toBeGreaterThan(index("searchbox:")); + expect(index("button:Delete")).toBeGreaterThan(index("option:")); + expect(index("button:Copy password")).toBeGreaterThan(index("button:Delete")); + expect(index("treeitem:")).toBeGreaterThan(index("button:Copy password")); + // The selected entry and group are the stops. + expect(forward[index("option:")]).toContain("GitHub"); + expect(forward[index("treeitem:")]).toContain("All entries"); + + const backward = await cycle(page, "Shift+Tab"); + expect(backward).toEqual([forward[0], ...forward.slice(1).reverse()]); + }); +}); + +test.describe("tree and list keys", () => { + test.beforeEach(async ({ page }) => unlock(page)); + + test("arrows, Home and End move through the groups", async ({ page }) => { + const tree = page.getByRole("tree", { name: "Groups" }); + await tree.getByRole("treeitem", { name: /^All entries/ }).focus(); + await page.keyboard.press("ArrowDown"); + await expect(tree.getByRole("treeitem", { name: /^Email/ })).toBeFocused(); + await expect(tree.getByRole("treeitem", { name: /^Email/ })).toHaveAttribute( + "aria-selected", + "true", + ); + await page.keyboard.press("ArrowUp"); + await expect(tree.getByRole("treeitem", { name: /^All entries/ })).toBeFocused(); + await page.keyboard.press("End"); + await expect(tree.getByRole("treeitem", { name: /^Recycle Bin/ })).toBeFocused(); + await page.keyboard.press("Home"); + await expect(tree.getByRole("treeitem", { name: /^All entries/ })).toBeFocused(); + // Groups are never collapsed, so no node claims to be expandable. + expect(await tree.locator("[aria-expanded]").count()).toBe(0); + // Structure for screen readers: levels and positions among siblings. + const dev = tree.getByRole("treeitem", { name: /^Dev/ }); + await expect(dev).toHaveAttribute("aria-level", "2"); + await expect(dev).toHaveAttribute("aria-setsize", "1"); + await expect(tree.getByRole("treeitem", { name: /^Work/ })).toHaveAccessibleName( + "Work, 1 entry", + ); + }); + + test("End with no selection goes to the last entry (M4A-R02)", async ({ page }) => { + const options = page.getByRole("listbox").getByRole("option"); + const count = await options.count(); + await options.first().focus(); + await page.keyboard.press("End"); + await expect(options.nth(count - 1)).toBeFocused(); + await expect(options.nth(count - 1)).toHaveAttribute("aria-selected", "true"); + }); + + test("arrows, Home, End and Enter in the list", async ({ page }) => { + const list = page.getByRole("listbox"); + await expect(list).toHaveAccessibleName("All entries"); + const options = list.getByRole("option"); + const count = await options.count(); + await options.first().focus(); + await page.keyboard.press("ArrowDown"); + await expect(options.nth(0)).toHaveAttribute("aria-selected", "true"); + await page.keyboard.press("ArrowDown"); + await expect(options.nth(1)).toBeFocused(); + await expect(options.nth(1)).toHaveAttribute("aria-selected", "true"); + await page.keyboard.press("End"); + await expect(options.nth(count - 1)).toBeFocused(); + await expect(options.nth(count - 1)).toHaveAttribute("aria-selected", "true"); + await page.keyboard.press("Home"); + await expect(options.nth(0)).toBeFocused(); + await page.keyboard.press("ArrowUp"); + await expect(options.nth(0)).toBeFocused(); + // One selected option at a time, roving tabindex (no aria-activedescendant). + await expect(list.locator('[aria-selected="true"]')).toHaveCount(1); + await expect(list.locator('[tabindex="0"]')).toHaveCount(1); + expect(await list.getAttribute("aria-activedescendant")).toBeNull(); + await page.keyboard.press("Enter"); + await expect(page.getByLabel("Title")).toBeVisible(); + }); + + test("the list is named after the group or the search", async ({ page }) => { + await page.getByRole("searchbox").fill("git"); + await expect(page.getByRole("listbox")).toHaveAccessibleName("Entries matching “git”"); + // Announced once typing pauses. + await expect(page.getByTestId("search-announcement")).toHaveText("2 entries"); + await page.getByRole("searchbox").fill(""); + await expect(page.getByTestId("search-announcement")).toHaveText(""); + await page.getByRole("treeitem", { name: /^Banking/ }).click(); + await expect(page.getByRole("listbox")).toHaveAccessibleName("Entries in Banking"); + }); +}); + +test.describe("dialogs trap focus and give it back", () => { + test.beforeEach(async ({ page }) => unlock(page)); + + async function trapAndReturn(page: Page, dialog: Locator, opener: Locator) { + await expect(dialog).toBeVisible(); + await expectFocusInside(page, dialog); + for (let i = 0; i < 25; i++) { + await page.keyboard.press("Tab"); + await expectFocusInside(page, dialog); + } + await page.keyboard.press("Escape"); + await expect(dialog).toBeHidden(); + await expect(opener).toBeFocused(); + } + + test("Settings", async ({ page }) => { + const opener = page.getByRole("button", { name: "Settings" }); + await opener.focus(); + await page.keyboard.press("Enter"); + await trapAndReturn(page, page.getByRole("dialog", { name: "Settings" }), opener); + }); + + test("Confirm", async ({ page }) => { + await page.getByRole("option", { name: /GitHub/ }).click(); + const opener = page.getByRole("button", { name: "Delete" }); + await opener.focus(); + await page.keyboard.press("Enter"); + await trapAndReturn(page, page.getByRole("alertdialog"), opener); + }); + + test("Command palette", async ({ page }) => { + const opener = page.getByRole("searchbox"); + await opener.focus(); + await page.keyboard.press("Control+k"); + await trapAndReturn(page, page.getByRole("dialog", { name: "Command palette" }), opener); + }); +}); + +interface RegistryCommand { + id: string; + menu: string | null; + shortcut: string | null; + nativeAccelerator: boolean; + demoOnly?: boolean; +} +const COMMANDS = registry.commands as RegistryCommand[]; + +/** Only the native menu can do these: the webview never sees the key. */ +const NATIVE_ONLY = new Set(["quit"]); + +function keys(shortcut: string): string { + return shortcut + .replace("CmdOrCtrl", "Control") + .replace("Comma", ",") + .replace("Slash", "/") + .split("+") + .map((k) => (k.length === 1 ? k.toLowerCase() : k)) + .join("+"); +} + +/** Each shortcut's observable effect, starting from an unlocked vault with GitHub selected. */ +const EFFECTS: Record Promise> = { + new_database: (p) => + expect(p.getByRole("heading", { name: "Create a new database" })).toBeVisible(), + open_database: (p) => expect(p.getByLabel("Master password")).toBeVisible(), + save: (p) => expect(p.getByRole("alert")).toContainText("Couldn’t save"), + lock: (p) => expect(p.getByLabel("Master password")).toBeVisible(), + find: (p) => expect(p.getByRole("searchbox")).toBeFocused(), + command_palette: (p) => + expect(p.getByRole("combobox", { name: "Command palette" })).toBeFocused(), + new_entry: (p) => expect(p.getByRole("heading", { name: "New entry" })).toBeVisible(), + edit_entry: (p) => expect(p.getByLabel("Title")).toHaveValue("GitHub"), + copy_username: (p) => expect(p.getByTestId("toast")).toContainText("Username copied"), + copy_password: (p) => expect(p.getByTestId("toast")).toContainText("Password copied"), + copy_url: (p) => expect(p.getByTestId("toast")).toContainText("URL copied"), + delete_entry: (p) => expect(p.getByRole("alertdialog")).toBeVisible(), + rename_group: (p) => expect(p.getByRole("textbox", { name: "Rename group" })).toBeFocused(), + password_generator: (p) => + expect(p.getByRole("dialog", { name: "Password generator" })).toBeVisible(), + settings: (p) => + expect(p.getByRole("tab", { name: "General" })).toHaveAttribute("aria-selected", "true"), + keyboard_shortcuts: (p) => + expect(p.getByRole("dialog", { name: "Keyboard shortcuts" })).toBeVisible(), +}; + +test.describe("every documented shortcut works without the mouse", () => { + const withShortcut = COMMANDS.filter((c) => c.shortcut && !NATIVE_ONLY.has(c.id)); + + test("the list of effects covers the registry", () => { + expect(Object.keys(EFFECTS).sort()).toEqual(withShortcut.map((c) => c.id).sort()); + }); + + for (const c of withShortcut) { + test(`${c.id} (${c.shortcut})`, async ({ page }) => { + if (c.id === "save") { + // Arm the demo's failure before unlocking: the failed save is visible. + await openApp(page); + await palette(page, "Demo: simulate a save failure"); + await page.getByLabel("Master password").fill("secret"); + await page.getByRole("button", { name: "Unlock" }).click(); + await expect(page.getByRole("listbox")).toBeVisible(); + } else { + await unlock(page); + } + const github = page.getByRole("option", { name: /GitHub/ }); + await github.click(); + if (c.id === "rename_group") { + await page.getByRole("treeitem", { name: /^Work/ }).click(); + } + await page.keyboard.press(keys(c.shortcut ?? "")); + await EFFECTS[c.id](page); + }); + } + + test("menu commands without a shortcut are in the command palette", async ({ page }) => { + await unlock(page); + await page.keyboard.press("Control+k"); + const labels = await page.getByRole("option").allTextContents(); + const text = labels.join("\n"); + for (const id of [ + "close_database", + "new_group", + "delete_group", + "database_settings", + "about", + ]) { + const c = COMMANDS.find((x) => x.id === id); + expect(c?.shortcut, id).toBeNull(); + } + for (const label of [ + "Close Database", + "New Group", + "Delete Group", + "Database Settings", + "About Keyrust", + ]) { + expect(text).toContain(label); + } + }); +}); diff --git a/crates/app/ui/e2e-web/motion.spec.ts b/crates/app/ui/e2e-web/motion.spec.ts new file mode 100644 index 0000000..380f46a --- /dev/null +++ b/crates/app/ui/e2e-web/motion.spec.ts @@ -0,0 +1,75 @@ +import { expect, test, type Page } from "@playwright/test"; +import { unlock } from "./helpers"; + +/** Longest animation and transition (seconds) on any element, and smooth scrolling. */ +async function motion(page: Page) { + return page.evaluate(() => { + const seconds = (list: string) => + Math.max( + ...list.split(",").map((t) => { + const v = parseFloat(t); + return t.trim().endsWith("ms") ? v / 1000 : v; + }), + ); + let animation = 0; + let transition = 0; + let smooth: string[] = []; + for (const el of [document.documentElement, ...document.querySelectorAll("body *")]) { + for (const pseudo of [null, "::before", "::after"]) { + const s = getComputedStyle(el, pseudo); + if (s.animationName !== "none") + animation = Math.max(animation, seconds(s.animationDuration)); + transition = Math.max(transition, seconds(s.transitionDuration)); + if (pseudo === null && s.scrollBehavior === "smooth") + smooth = [...smooth, el.tagName]; + } + } + return { animation, transition, smooth }; + }); +} + +/** Opens each animated overlay in turn and returns the worst motion seen. */ +async function overlays(page: Page) { + const seen: Awaited>[] = []; + await unlock(page); + await page.keyboard.press("Control+,"); + await expect(page.getByRole("dialog", { name: "Settings" })).toBeVisible(); + seen.push(await motion(page)); + await page.keyboard.press("Escape"); + await expect(page.getByRole("dialog", { name: "Settings" })).toBeHidden(); + await page.keyboard.press("Control+k"); + await expect(page.getByRole("dialog", { name: "Command palette" })).toBeVisible(); + seen.push(await motion(page)); + await page.keyboard.press("Escape"); + await expect(page.getByRole("dialog", { name: "Command palette" })).toBeHidden(); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Copy username" }).click(); + await expect(page.getByTestId("toast")).toBeVisible(); + seen.push(await motion(page)); + await page.getByRole("button", { name: "Edit" }).click(); + await page.getByRole("button", { name: "Generate", exact: true }).click(); + await expect(page.getByRole("dialog", { name: "Password generator" })).toBeVisible(); + seen.push(await motion(page)); + return { + animation: Math.max(...seen.map((s) => s.animation)), + transition: Math.max(...seen.map((s) => s.transition)), + smooth: seen.flatMap((s) => s.smooth), + }; +} + +test.describe("reduced motion", () => { + test.use({ contextOptions: { reducedMotion: "reduce" } }); + + test("no animation or transition longer than 0.01 s, no smooth scrolling", async ({ page }) => { + const worst = await overlays(page); + expect(worst.animation).toBeLessThanOrEqual(0.01); + expect(worst.transition).toBeLessThanOrEqual(0.01); + expect(worst.smooth).toEqual([]); + }); +}); + +test("without the preference the animations remain", async ({ page }) => { + const worst = await overlays(page); + expect(worst.animation).toBeGreaterThan(0.01); + expect(worst.transition).toBeGreaterThan(0.01); +}); diff --git a/crates/app/ui/e2e-web/playwright.config.ts b/crates/app/ui/e2e-web/playwright.config.ts new file mode 100644 index 0000000..ef334c9 --- /dev/null +++ b/crates/app/ui/e2e-web/playwright.config.ts @@ -0,0 +1,33 @@ +import { defineConfig, devices } from "@playwright/test"; + +/** + * Accessibility audit and README screenshots on the static demo build in + * Chromium. The real app (Rust backend + WebKitGTK) is covered by `../../e2e`. + * The production CSP is not applied here: the Tauri webview enforces it. + */ +export default defineConfig({ + testDir: ".", + // Screenshots run only through `pnpm screenshots`. + testIgnore: process.env.KEYRUST_SCREENSHOTS ? [] : ["screenshots.spec.ts"], + fullyParallel: true, + forbidOnly: !!process.env.CI, + reporter: process.env.CI ? [["list"], ["github"]] : "list", + use: { + baseURL: "http://127.0.0.1:4173", + // The default Tauri window size. + viewport: { width: 1100, height: 720 }, + trace: "retain-on-failure", + }, + projects: [ + { + name: "chromium", + use: { ...devices["Desktop Chrome"], viewport: { width: 1100, height: 720 } }, + }, + ], + webServer: { + command: "pnpm build && pnpm preview --host 127.0.0.1 --port 4173 --strictPort", + url: "http://127.0.0.1:4173", + reuseExistingServer: !process.env.CI, + timeout: 180_000, + }, +}); diff --git a/crates/app/ui/e2e-web/screenshots.spec.ts b/crates/app/ui/e2e-web/screenshots.spec.ts new file mode 100644 index 0000000..af06a34 --- /dev/null +++ b/crates/app/ui/e2e-web/screenshots.spec.ts @@ -0,0 +1,57 @@ +import { statSync } from "node:fs"; +import { resolve } from "node:path"; +import { expect, test, type Page } from "@playwright/test"; +import { openApp, unlock } from "./helpers"; + +// README screenshots of the demo (`pnpm screenshots`, never in CI). Demo data +// only; no password is shown in clear. + +const OUT = resolve(import.meta.dirname, "../../../../docs/screenshots"); +const MAX_BYTES = 400 * 1024; +// 2× unless the PNGs get too large without an optimiser: then 1.5×. +const SCALE = Number(process.env.KEYRUST_SCREENSHOT_SCALE ?? 2); + +test.use({ deviceScaleFactor: SCALE, viewport: { width: 1100, height: 720 } }); + +async function shoot(page: Page, name: string, mask: string[] = []) { + await page.evaluate(() => document.fonts.ready); + const path = resolve(OUT, `${name}.png`); + await page.screenshot({ + path, + animations: "disabled", + caret: "hide", + mask: mask.map((s) => page.locator(s)), + maskColor: "#f4f4f5", + }); + expect(statSync(path).size, `${name}.png size`).toBeLessThan(MAX_BYTES); +} + +test("unlock", async ({ page }) => { + await openApp(page); + await shoot(page, "unlock"); +}); + +test("vault", async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await expect(page.getByTestId("password-value")).toHaveText("••••••••••••"); + await page.mouse.move(0, 0); + await shoot(page, "vault"); +}); + +test("editor with the generator", async ({ page }) => { + await unlock(page); + await page.getByRole("option", { name: /GitHub/ }).click(); + await page.getByRole("button", { name: "Edit" }).click(); + await page.getByRole("button", { name: "Generate", exact: true }).click(); + await expect(page.getByTestId("generated-password")).not.toBeEmpty(); + // The generated password is a real random value: masked. + await shoot(page, "editor-generator", ['[data-testid="generated-password"]']); +}); + +test("settings", async ({ page }) => { + await unlock(page); + await page.keyboard.press("Control+,"); + await expect(page.getByRole("dialog", { name: "Settings" })).toBeVisible(); + await shoot(page, "settings"); +}); diff --git a/crates/app/ui/e2e-web/tsconfig.json b/crates/app/ui/e2e-web/tsconfig.json new file mode 100644 index 0000000..84bf439 --- /dev/null +++ b/crates/app/ui/e2e-web/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { "noEmit": true, "types": ["node"] }, + "include": ["./**/*.ts", "../src/lib/a11y/**/*.ts"] +} diff --git a/crates/app/ui/eslint.config.js b/crates/app/ui/eslint.config.js index c14e21c..0567b55 100644 --- a/crates/app/ui/eslint.config.js +++ b/crates/app/ui/eslint.config.js @@ -6,7 +6,16 @@ import ts from "typescript-eslint"; import svelteConfig from "./svelte.config.js"; export default ts.config( - { ignores: [".svelte-kit/", "build/", "node_modules/", "src/lib/paraglide/"] }, + { + ignores: [ + ".svelte-kit/", + "build/", + "node_modules/", + "src/lib/paraglide/", + "test-results/", + "playwright-report/", + ], + }, js.configs.recommended, ...ts.configs.recommended, ...svelte.configs.recommended, diff --git a/crates/app/ui/messages/en.json b/crates/app/ui/messages/en.json index 4bccdb4..baff9a0 100644 --- a/crates/app/ui/messages/en.json +++ b/crates/app/ui/messages/en.json @@ -88,6 +88,11 @@ "search_placeholder": "Search", "search_clear": "Clear search", "entries_label": "Entries", + "entries_in_group": "Entries in {group}", + "entries_matching": "Entries matching “{query}”", + "group_with_count_one": "{name}, 1 entry", + "group_with_count_many": "{name}, {count} entries", + "search_results_none": "No matches", "entry_count_one": "1 entry", "entry_count_many": "{count} entries", "new_entry": "New entry", @@ -147,6 +152,7 @@ "dialog_close": "Close", "toast_copied": "{field} copied · clears in {secs}s", + "toast_copied_announcement": "{field} copied. The clipboard clears in {secs} seconds.", "toast_dismiss": "Dismiss", "banner_external": "This database was changed by another app.", @@ -155,6 +161,8 @@ "banner_save_failed": "Couldn’t save the database. The folder is read-only or the disk is full. Your changes are kept.", "banner_retry": "Retry", "banner_save_as": "Save as…", + "banner_version": "This database uses KDBX {version}. Saving converts it to KDBX 4.1, which very old KeePass clients cannot open.", + "banner_dismiss": "Dismiss", "confirm_cancel": "Cancel", "confirm_delete_entry_title": "Move “{title}” to the Recycle Bin?", diff --git a/crates/app/ui/package.json b/crates/app/ui/package.json index 3b222f1..e1c40e3 100644 --- a/crates/app/ui/package.json +++ b/crates/app/ui/package.json @@ -8,13 +8,15 @@ "build": "vite build", "preview": "vite preview", "prepare": "svelte-kit sync || echo ''", - "check": "pnpm paraglide && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check": "pnpm paraglide && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && tsc -p e2e-web", "lint": "eslint .", "format": "prettier --write .", "format:check": "prettier --check .", "tauri": "cd .. && tauri", "test": "pnpm paraglide && vitest run", - "paraglide": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide" + "paraglide": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide", + "test:web": "playwright test -c e2e-web", + "screenshots": "KEYRUST_SCREENSHOTS=1 playwright test -c e2e-web screenshots.spec.ts" }, "license": "GPL-3.0-or-later", "dependencies": { @@ -23,11 +25,13 @@ "@tauri-apps/api": "^2" }, "devDependencies": { + "@axe-core/playwright": "4.14.0", "@eslint/js": "^10.0.1", "@inlang/paraglide-js": "^2.29.1", "@inlang/plugin-message-format": "^4.5.5", "@internationalized/date": "^3.12.4", "@lucide/svelte": "^1.61.0", + "@playwright/test": "1.48.2", "@sveltejs/adapter-static": "^3.0.10", "@sveltejs/kit": "^2.65.1", "@sveltejs/vite-plugin-svelte": "^7.1.2", diff --git a/crates/app/ui/pnpm-lock.yaml b/crates/app/ui/pnpm-lock.yaml index 2be542f..fd6e51e 100644 --- a/crates/app/ui/pnpm-lock.yaml +++ b/crates/app/ui/pnpm-lock.yaml @@ -176,6 +176,9 @@ importers: specifier: ^2 version: 2.12.4 devDependencies: + '@axe-core/playwright': + specifier: 4.14.0 + version: 4.14.0(playwright-core@1.48.2) '@eslint/js': specifier: ^10.0.1 version: 10.0.1(eslint@10.13.0(jiti@2.7.0)) @@ -191,6 +194,9 @@ importers: '@lucide/svelte': specifier: ^1.61.0 version: 1.61.0(svelte@5.57.2(@typescript-eslint/types@8.72.0)) + '@playwright/test': + specifier: 1.48.2 + version: 1.48.2 '@sveltejs/adapter-static': specifier: ^3.0.10 version: 3.0.10(@sveltejs/kit@2.70.3(@sveltejs/vite-plugin-svelte@7.3.1(svelte@5.57.2(@typescript-eslint/types@8.72.0))(vite@8.3.5(@types/node@24.19.2)(jiti@2.7.0)))(svelte@5.57.2(@typescript-eslint/types@8.72.0))(typescript@6.0.3)(vite@8.3.5(@types/node@24.19.2)(jiti@2.7.0))) @@ -295,6 +301,12 @@ packages: resolution: {integrity: sha512-EgmJ7oEaGQECTn3H3wmnQpEy4hKY66VvM7VQndwPIQob3p877BgbyOUE3EX0LgXQCciF2H8KMdR+RznqjMNOLw==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + '@axe-core/playwright@4.14.0': + resolution: {integrity: sha512-SGUhG5PIHd2eMdpgBF2PyQLOhX+qyDR2PT4cmoS4Qk2ak+jX/rrSvst9l0PGv5WTHolKpUMvVmoHpr4cZgf1RQ==} + engines: {node: '>=22.12.0'} + peerDependencies: + playwright-core: '>= 1.0.0' + '@babel/code-frame@7.29.7': resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'} @@ -711,6 +723,11 @@ packages: '@oxc-project/types@0.155.0': resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==} + '@playwright/test@1.48.2': + resolution: {integrity: sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==} + engines: {node: '>=18'} + hasBin: true + '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} @@ -1206,6 +1223,10 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} + axe-core@4.14.0: + resolution: {integrity: sha512-9WTZxEjsZ7b13TH8JPmbV2z8CHbl80/2hm3XPEG4JgNdQLK81IBRXmSxHfMAOkSqQeRxT/0dwNDz2GOm3zzpcQ==} + engines: {node: '>=4'} + axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} @@ -1470,6 +1491,11 @@ packages: flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + fsevents@2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -1836,6 +1862,16 @@ packages: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} + playwright-core@1.48.2: + resolution: {integrity: sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==} + engines: {node: '>=18'} + hasBin: true + + playwright@1.48.2: + resolution: {integrity: sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==} + engines: {node: '>=18'} + hasBin: true + postcss-load-config@3.1.4: resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} engines: {node: '>= 10'} @@ -2333,6 +2369,11 @@ snapshots: is-potential-custom-element-name: 1.0.1 lru-cache: 11.5.3 + '@axe-core/playwright@4.14.0(playwright-core@1.48.2)': + dependencies: + axe-core: 4.14.0 + playwright-core: 1.48.2 + '@babel/code-frame@7.29.7': dependencies: '@babel/helper-validator-identifier': 7.29.7 @@ -2668,6 +2709,10 @@ snapshots: '@oxc-project/types@0.155.0': {} + '@playwright/test@1.48.2': + dependencies: + playwright: 1.48.2 + '@polka/url@1.0.0-next.29': {} '@rolldown/binding-android-arm-eabi@1.2.15': @@ -3076,6 +3121,8 @@ snapshots: assertion-error@2.0.1: {} + axe-core@4.14.0: {} + axobject-query@4.1.0: {} balanced-match@4.0.4: {} @@ -3333,6 +3380,9 @@ snapshots: flatted@3.4.4: {} + fsevents@2.3.2: + optional: true + fsevents@2.3.3: optional: true @@ -3630,6 +3680,14 @@ snapshots: picomatch@4.0.7: {} + playwright-core@1.48.2: {} + + playwright@1.48.2: + dependencies: + playwright-core: 1.48.2 + optionalDependencies: + fsevents: 2.3.2 + postcss-load-config@3.1.4(postcss@8.5.31): dependencies: lilconfig: 2.1.0 diff --git a/crates/app/ui/src/app.css b/crates/app/ui/src/app.css index 0a210b3..b548b85 100644 --- a/crates/app/ui/src/app.css +++ b/crates/app/ui/src/app.css @@ -22,7 +22,9 @@ --secondary: var(--color-zinc-100); --secondary-foreground: var(--color-zinc-900); --muted: var(--color-zinc-100); - --muted-foreground: var(--color-zinc-500); + /* Between zinc-500 and zinc-600: zinc-500 is below 4.5:1 on muted and + selection backgrounds (src/tests/contrast.test.ts). */ + --muted-foreground: oklch(52% 0.016 285.938); --accent: var(--color-zinc-100); --accent-foreground: var(--color-zinc-900); /* Selected rows: indigo-50 background, indigo-800 text, indigo bar. */ @@ -45,9 +47,10 @@ --warning-soft-foreground: var(--color-amber-900); --warning-strong: var(--color-amber-700); --strength-1: var(--color-red-600); - --strength-2: var(--color-amber-500); - --strength-3: var(--color-emerald-500); - --strength-4: var(--color-emerald-600); + /* Segments are graphics: at least 3:1 against the background. */ + --strength-2: var(--color-amber-600); + --strength-3: var(--color-emerald-600); + --strength-4: var(--color-emerald-700); --toast: var(--color-zinc-900); --toast-foreground: var(--color-zinc-50); --toast-icon: var(--color-emerald-400); @@ -66,7 +69,8 @@ --avatar-5-bg: var(--color-violet-50); --avatar-5-fg: var(--color-violet-700); --border: var(--color-zinc-200); - --input: var(--color-zinc-300); + /* Input boundaries: at least 3:1 against every surface (WCAG 1.4.11). */ + --input: oklch(63% 0.015 286.067); --ring: var(--color-indigo-600); --chart-1: var(--color-zinc-300); --chart-2: var(--color-zinc-500); diff --git a/crates/app/ui/src/lib/a11y/contrast.ts b/crates/app/ui/src/lib/a11y/contrast.ts new file mode 100644 index 0000000..3c53046 --- /dev/null +++ b/crates/app/ui/src/lib/a11y/contrast.ts @@ -0,0 +1,137 @@ +/** + * WCAG 2.x contrast for CSS colours, including the `oklch()` / `oklab()` + * values Tailwind v4 and Chromium produce. Shared by the token test + * (`src/tests/contrast.test.ts`) and the focus check of the Playwright audit + * (`e2e-web/keyboard.spec.ts`), so both measure colours the same way. + */ + +/** Gamma-encoded sRGB channels in 0..1, plus alpha. */ +export interface Rgba { + r: number; + g: number; + b: number; + a: number; +} + +const NUMBER = String.raw`[-+]?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?`; + +function channel(raw: string, scale: number): number { + const value = parseFloat(raw); + return raw.endsWith("%") ? (value / 100) * scale : value; +} + +function alpha(raw: string | undefined): number { + if (raw === undefined) return 1; + return raw.endsWith("%") ? parseFloat(raw) / 100 : parseFloat(raw); +} + +function encode(linear: number): number { + const c = Math.min(1, Math.max(0, linear)); + return c <= 0.0031308 ? 12.92 * c : 1.055 * c ** (1 / 2.4) - 0.055; +} + +function decode(encoded: number): number { + return encoded <= 0.04045 ? encoded / 12.92 : ((encoded + 0.055) / 1.055) ** 2.4; +} + +/** OKLab → gamma-encoded sRGB (clipped to the sRGB gamut). */ +export function oklabToRgb(L: number, a: number, b: number): Omit { + const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3; + const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3; + const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3; + return { + r: encode(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s), + g: encode(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s), + b: encode(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s), + }; +} + +/** + * Parses `#rgb[a]`, `#rrggbb[aa]`, `rgb()/rgba()`, `oklch()`, `oklab()` and + * `color(srgb …)`. Throws on anything else, so an unexpected computed value + * fails loudly instead of being measured wrong. + */ +export function parseColor(css: string): Rgba { + const text = css.trim().toLowerCase(); + if (text === "transparent") return { r: 0, g: 0, b: 0, a: 0 }; + const hex = /^#([0-9a-f]{3,8})$/.exec(text); + if (hex) { + let h = hex[1]; + if (h.length <= 4) h = [...h].map((c) => c + c).join(""); + const n = (i: number) => parseInt(h.slice(i, i + 2), 16) / 255; + return { r: n(0), g: n(2), b: n(4), a: h.length === 8 ? n(6) : 1 }; + } + const fn = /^([a-z]+)\((.*)\)$/.exec(text); + if (!fn) throw new Error(`unsupported colour: ${css}`); + const [, name, body] = fn; + const [main, slash] = body.split("/").map((s) => s.trim()); + const parts = main + .replace(/,/g, " ") + .split(/\s+/) + .filter(Boolean) + .map((p) => (p === "none" ? "0" : p)); + const valid = new RegExp(`^${NUMBER}(%|deg)?$`); + const values = name === "color" ? parts.slice(1) : parts; + if (!values.every((p) => valid.test(p))) throw new Error(`unsupported colour: ${css}`); + switch (name) { + case "rgb": + case "rgba": { + const a = slash ?? parts[3]; + return { + r: channel(parts[0], 255) / 255, + g: channel(parts[1], 255) / 255, + b: channel(parts[2], 255) / 255, + a: alpha(a), + }; + } + case "oklch": { + const L = channel(parts[0], 1); + const C = channel(parts[1], 0.4); + const h = (parseFloat(parts[2]) * Math.PI) / 180; + return { ...oklabToRgb(L, C * Math.cos(h), C * Math.sin(h)), a: alpha(slash) }; + } + case "oklab": + return { + ...oklabToRgb(channel(parts[0], 1), channel(parts[1], 0.4), channel(parts[2], 0.4)), + a: alpha(slash), + }; + case "color": + if (parts[0] !== "srgb") throw new Error(`unsupported colour space: ${css}`); + return { + r: channel(parts[1], 1), + g: channel(parts[2], 1), + b: channel(parts[3], 1), + a: alpha(slash), + }; + default: + throw new Error(`unsupported colour: ${css}`); + } +} + +/** `top` painted over an opaque `bottom` (simple alpha compositing in sRGB). */ +export function over(top: Rgba, bottom: Rgba): Rgba { + const a = top.a; + return { + r: top.r * a + bottom.r * (1 - a), + g: top.g * a + bottom.g * (1 - a), + b: top.b * a + bottom.b * (1 - a), + a: 1, + }; +} + +/** WCAG relative luminance. */ +export function luminance(c: Rgba): number { + return 0.2126 * decode(c.r) + 0.7152 * decode(c.g) + 0.0722 * decode(c.b); +} + +/** + * WCAG contrast ratio of `fg` on `bg`. A translucent foreground is first + * composited over the background; the background must be opaque. + */ +export function contrastRatio(fg: Rgba | string, bg: Rgba | string): number { + const back = typeof bg === "string" ? parseColor(bg) : bg; + if (back.a < 1) throw new Error("the background must be opaque"); + const front = over(typeof fg === "string" ? parseColor(fg) : fg, back); + const [hi, lo] = [luminance(front), luminance(back)].sort((x, y) => y - x); + return (hi + 0.05) / (lo + 0.05); +} diff --git a/crates/app/ui/src/lib/components/app/Banner.svelte b/crates/app/ui/src/lib/components/app/Banner.svelte index 07e2938..18dd4f7 100644 --- a/crates/app/ui/src/lib/components/app/Banner.svelte +++ b/crates/app/ui/src/lib/components/app/Banner.svelte @@ -1,5 +1,6 @@ + @@ -115,13 +116,14 @@ - +
@@ -156,7 +158,7 @@ diff --git a/crates/app/ui/src/lib/components/app/SearchInput.svelte b/crates/app/ui/src/lib/components/app/SearchInput.svelte index dc8704e..bfabe40 100644 --- a/crates/app/ui/src/lib/components/app/SearchInput.svelte +++ b/crates/app/ui/src/lib/components/app/SearchInput.svelte @@ -28,7 +28,7 @@
diff --git a/crates/app/ui/src/lib/components/app/Toast.svelte b/crates/app/ui/src/lib/components/app/Toast.svelte index 43a4a06..bb163a2 100644 --- a/crates/app/ui/src/lib/components/app/Toast.svelte +++ b/crates/app/ui/src/lib/components/app/Toast.svelte @@ -14,18 +14,27 @@ }; - -
+ +
+ {#if app.toast} + + {#key app.toast.id}{m.toast_copied_announcement({ + field: fieldNames[app.toast.field](), + secs: String(app.toast.total), + })}{/key} + {/if} +
+
{#if app.toast}
diff --git a/crates/app/ui/src/lib/screens/UnlockScreen.svelte b/crates/app/ui/src/lib/screens/UnlockScreen.svelte index 7089a7c..2aa6f06 100644 --- a/crates/app/ui/src/lib/screens/UnlockScreen.svelte +++ b/crates/app/ui/src/lib/screens/UnlockScreen.svelte @@ -91,6 +91,7 @@ {#if noticeText}

@@ -152,7 +188,10 @@ }} />
- {caption} + {caption} + {announcement}
+
{#each app.visibleEntries as entry, index (entry.id)} @@ -241,6 +281,18 @@ {/snippet} {/if} + {#if app.versionNotice} + + {#snippet actions()} + + {/snippet} + + {/if} {#if app.isDemo}
{/if} diff --git a/crates/app/ui/src/lib/state/app.svelte.ts b/crates/app/ui/src/lib/state/app.svelte.ts index 7362fa5..31b5bbe 100644 --- a/crates/app/ui/src/lib/state/app.svelte.ts +++ b/crates/app/ui/src/lib/state/app.svelte.ts @@ -123,8 +123,12 @@ export class AppState { /** An editor save is in flight: the form and navigation wait for it. */ savingEntry = $state(false); - toast = $state<{ field: Field; secs: number } | null>(null); + /** `id` changes with every copy, so each one is announced, even an identical one. */ + toast = $state<{ field: Field; secs: number; total: number; id: number } | null>(null); + private copies = 0; banner = $state<"externalChange" | "saveFailed" | null>(null); + /** The KDBX 3.1 / 4.0 conversion notice was dismissed for this session. */ + versionNoticeDismissed = $state(false); saveState = $state<"saved" | "saving" | "failed">("saved"); /** * The vault has changes that are not in the file: set by every change, @@ -185,6 +189,18 @@ export class AppState { // ---------------------------------------------------------------- derived + /** + * The open file is older than KDBX 4.1, which every save writes. Gone once + * a save replaced the file (the backend then reports 4.1) or on Dismiss; + * back at the next unlock of a file that was never saved. + */ + readonly versionNotice: string | null = $derived.by(() => { + const version = this.db?.version; + if (!version || this.versionNoticeDismissed) return null; + const [major, minor] = version; + return major < 4 || (major === 4 && minor < 1) ? `${major}.${minor}` : null; + }); + readonly groups: FlatGroup[] = $derived.by(() => { const out: FlatGroup[] = []; const walk = (node: GroupNode, depth: number, recycled: boolean) => { @@ -414,6 +430,7 @@ export class AppState { this.revealed = null; this.editor = null; this.banner = null; + this.versionNoticeDismissed = false; this.saveState = "saved"; this.screen = "vault"; } @@ -581,7 +598,10 @@ export class AppState { const list = this.visibleEntries; if (!list.length) return; const index = list.findIndex((e) => e.id === this.selectedId); - const next = list[Math.min(list.length - 1, Math.max(0, index < 0 ? 0 : index + delta))]; + // Without a visible selection, End goes to the last entry and any + // other move to the first; Home and End are absolute either way. + const target = index < 0 ? (delta === Infinity ? list.length - 1 : 0) : index + delta; + const next = list[Math.min(list.length - 1, Math.max(0, target))]; if (next.id !== this.selectedId) void this.selectEntry(next.id); } @@ -613,7 +633,8 @@ export class AppState { return; } if (session !== this.session) return; - this.toast = { field, secs: secs ?? this.settings.clipboard_clear_secs }; + const total = secs ?? this.settings.clipboard_clear_secs; + this.toast = { field, secs: total, total, id: ++this.copies }; this.startToastTimer(); } @@ -871,6 +892,10 @@ export class AppState { // follows the file; the banner offers to write it again. this.vaultDirty = false; this.banner = "saveFailed"; + // The file was replaced, so its version is now the one written + // (a KDBX 3.1 file is 4.1 now). + const info = await this.api.vault.databaseInfo().catch(() => null); + if (info && session === this.session) this.db = info; } else { this.banner = kind === "externalChange" ? "externalChange" : "saveFailed"; } diff --git a/crates/app/ui/src/tests/app.test.ts b/crates/app/ui/src/tests/app.test.ts index 7629daa..e944019 100644 --- a/crates/app/ui/src/tests/app.test.ts +++ b/crates/app/ui/src/tests/app.test.ts @@ -21,12 +21,12 @@ async function unlock(user: ReturnType, password = "secr async function openVault() { const ctx = setup(); await unlock(ctx.user); - await screen.findByRole("listbox", { name: "Entries" }); + await screen.findByRole("listbox", { name: /entries/i }); return ctx; } const option = (name: RegExp | string) => - within(screen.getByRole("listbox", { name: "Entries" })).getByRole("option", { name }); + within(screen.getByRole("listbox", { name: /entries/i })).getByRole("option", { name }); afterEach(() => { vi.useRealTimers(); @@ -101,6 +101,24 @@ describe("vault", () => { expect(screen.queryByText(/copied · clears/)).not.toBeInTheDocument(); }); + it("announces every copy once, even an identical one, and not the countdown (M4A-R04)", async () => { + const { user } = await openVault(); + await user.click(option(/GitHub/)); + await screen.findByRole("heading", { name: "GitHub" }); + vi.useFakeTimers(); + const region = screen.getByTestId("toast-announcement"); + const sentence = "Password copied. The clipboard clears in 20 seconds."; + await fireEvent.click(screen.getByRole("button", { name: "Copy password" })); + await vi.waitFor(() => expect(region).toHaveTextContent(sentence)); + const first = region.firstElementChild; + await vi.advanceTimersByTimeAsync(1000); + // The countdown changes the visible toast, not the announcement. + expect(region.firstElementChild).toBe(first); + await fireEvent.click(screen.getByRole("button", { name: "Copy password" })); + await vi.waitFor(() => expect(region.firstElementChild).not.toBe(first)); + expect(region).toHaveTextContent(sentence); + }); + it("creates an entry, requiring a title", async () => { const { user } = await openVault(); await user.click(screen.getByRole("button", { name: "New entry" })); @@ -288,7 +306,7 @@ describe("database settings (milestone 3b)", () => { const user = userEvent.setup(); render(App, { apis: { vault, app: new MemoryAppApi() } }); await unlock(user); - await screen.findByRole("listbox", { name: "Entries" }); + await screen.findByRole("listbox", { name: /entries/i }); await user.keyboard("{Control>}k{/Control}"); await user.type(await screen.findByRole("combobox"), "Database Settings"); await user.keyboard("{Enter}"); @@ -337,7 +355,7 @@ describe("master password fields (M3B-R03)", () => { await waitFor(() => expect(screen.queryByRole("dialog")).not.toBeInTheDocument()); await waitFor(() => expect(document.body.style.pointerEvents).not.toBe("none")); await unlock(user); - await screen.findByRole("listbox", { name: "Entries" }); + await screen.findByRole("listbox", { name: /entries/i }); await user.keyboard("{Control>}k{/Control}"); await user.type(await screen.findByRole("combobox"), "Database Settings"); await user.keyboard("{Enter}"); diff --git a/crates/app/ui/src/tests/autolock.test.ts b/crates/app/ui/src/tests/autolock.test.ts index caf56a3..acae043 100644 --- a/crates/app/ui/src/tests/autolock.test.ts +++ b/crates/app/ui/src/tests/autolock.test.ts @@ -21,7 +21,7 @@ async function openVault() { render(App, { apis: { vault: new DemoVault({ delayMs: 0 }), app: new MemoryAppApi() } }); await user.type(await screen.findByLabelText("Master password"), "secret"); await user.click(screen.getByRole("button", { name: "Unlock" })); - await screen.findByRole("listbox", { name: "Entries" }); + await screen.findByRole("listbox", { name: /entries/i }); await vi.waitFor(() => expect(handlers.has("locked")).toBe(true)); } @@ -35,7 +35,7 @@ describe("the locked event", () => { await openVault(); handlers.get("locked")?.({ payload: { reason } }); expect(await screen.findByTestId("lock-notice")).toHaveTextContent(text); - expect(screen.queryByRole("listbox", { name: "Entries" })).toBeNull(); + expect(screen.queryByRole("listbox", { name: /entries/i })).toBeNull(); expect(screen.getByLabelText("Master password")).toHaveValue(""); }); }); diff --git a/crates/app/ui/src/tests/contrast.test.ts b/crates/app/ui/src/tests/contrast.test.ts new file mode 100644 index 0000000..1df1e6d --- /dev/null +++ b/crates/app/ui/src/tests/contrast.test.ts @@ -0,0 +1,153 @@ +import { readFileSync } from "node:fs"; +import { resolve as resolvePath } from "node:path"; +import { describe, expect, it } from "vitest"; +import { contrastRatio, parseColor } from "$lib/a11y/contrast"; + +// Colour tokens as the app defines them: `:root` in app.css, resolved against +// Tailwind's palette. Nothing is copied by hand, so changing a token changes +// what this test measures. + +// Vitest runs from crates/app/ui (jsdom gives `import.meta.url` no file path). +const themeCss = readFileSync(resolvePath("node_modules/tailwindcss/theme.css"), "utf8"); +const appCss = readFileSync(resolvePath("src/app.css"), "utf8"); + +function declarations(css: string): Map { + const out = new Map(); + for (const [, name, value] of css.matchAll(/(--[\w-]+)\s*:\s*([^;]+);/g)) { + if (!out.has(name)) out.set(name, value.trim()); + } + return out; +} + +const palette = declarations(themeCss); +const rootBlock = /:root\s*\{([\s\S]*?)\n\}/.exec(appCss)?.[1] ?? ""; +const tokens = declarations(rootBlock); + +function resolve(value: string, seen: string[] = []): string { + const ref = /^var\((--[\w-]+)\)$/.exec(value); + if (!ref) return value; + const name = ref[1]; + if (seen.includes(name)) throw new Error(`cycle: ${[...seen, name].join(" → ")}`); + const next = tokens.get(name) ?? palette.get(name); + if (!next) throw new Error(`undefined variable ${name}`); + return resolve(next, [...seen, name]); +} + +/** The colour of a token from app.css, e.g. `muted-foreground`. */ +function token(name: string): string { + const value = tokens.get(`--${name}`); + if (!value) throw new Error(`no token --${name} in app.css`); + return resolve(value); +} + +const TEXT = 4.5; +const LARGE_TEXT = 3; +const NON_TEXT = 3; + +/** [foreground, background, minimum ratio, where it is used] */ +const PAIRS: [string, string, number, string][] = [ + // Body text and secondary text on every surface they appear on. + ...["background", "surface", "sidebar", "card", "popover", "muted", "selection"].map( + (bg) => ["foreground", bg, TEXT, "body text"] as [string, string, number, string], + ), + ...["background", "surface", "sidebar", "card", "popover", "muted", "accent", "selection"].map( + (bg) => + ["muted-foreground", bg, TEXT, "secondary text, counts, hints"] as [ + string, + string, + number, + string, + ], + ), + ["sidebar-foreground", "sidebar", TEXT, "group names"], + ["sidebar-foreground", "muted", TEXT, "group names on hover"], + ["selection-foreground", "selection", TEXT, "selected group"], + ["accent-foreground", "accent", TEXT, "palette highlighted item"], + ["secondary-foreground", "secondary", TEXT, "secondary buttons"], + // Links and text buttons. + ["primary", "background", TEXT, "links, New entry"], + ["primary", "surface", TEXT, "links on the Unlock screen"], + ["primary", "muted", TEXT, "New entry on hover"], + ["primary-hover", "background", TEXT, "links on hover"], + ["primary-hover", "surface", TEXT, "links on hover"], + // Filled buttons. + ["primary-foreground", "primary", TEXT, "primary button"], + ["primary-foreground", "primary-hover", TEXT, "primary button on hover"], + ["destructive-foreground", "destructive", TEXT, "destructive button"], + ["destructive-foreground", "destructive-hover", TEXT, "destructive button on hover"], + ["primary-foreground", "warning-strong", TEXT, "Reload in the external-change banner"], + // Messages. + ["destructive", "background", TEXT, "error text"], + ["destructive", "card", TEXT, "error text on the Unlock card"], + ["destructive-soft-foreground", "destructive-soft", TEXT, "save-failed banner"], + ["warning-soft-foreground", "warning-soft", TEXT, "external-change banner"], + ["warning-soft-foreground", "background", TEXT, "Caps Lock warning, Fair strength"], + ["success-text", "background", TEXT, "Passwords match, Good / Strong"], + ["foreground", "surface", TEXT, "KDBX conversion notice"], + ["toast-foreground", "toast", TEXT, "toast"], + // Entry initials. + ...[0, 1, 2, 3, 4, 5].map( + (i) => + [`avatar-${i}-fg`, `avatar-${i}-bg`, TEXT, "entry initials"] as [ + string, + string, + number, + string, + ], + ), + // Large text (the detail header initials are 18 px semibold: normal text). + ["primary", "selection", LARGE_TEXT, "empty-vault icon"], + // Non-text: component boundaries, focus indicator, icons that carry meaning. + ["input", "background", NON_TEXT, "input borders"], + ["input", "surface", NON_TEXT, "search field border"], + ["input", "card", NON_TEXT, "input borders on cards"], + ...["background", "surface", "sidebar", "card", "selection", "muted"].map( + (bg) => ["ring", bg, NON_TEXT, "focus indicator"] as [string, string, number, string], + ), + ...[1, 2, 3, 4].map( + (i) => + [`strength-${i}`, "background", NON_TEXT, "strength meter segments"] as [ + string, + string, + number, + string, + ], + ), + ["strength-1", "popover", NON_TEXT, "strength meter in the generator"], + ["strength-2", "popover", NON_TEXT, "strength meter in the generator"], + ["toast-icon", "toast", NON_TEXT, "toast check mark"], + ["toast-foreground", "toast", NON_TEXT, "focus indicator on the toast"], + ["warning-strong", "warning-soft", NON_TEXT, "banner warning icon"], + ["destructive", "destructive-soft", NON_TEXT, "banner error icon"], + ["primary", "background", NON_TEXT, "selected entry bar, switches on"], +]; + +describe("colour conversion", () => { + it("matches known sRGB values", () => { + const white = parseColor("oklch(1 0 0)"); + expect(white.r).toBeCloseTo(1, 3); + expect(contrastRatio("#000", "#fff")).toBeCloseTo(21, 5); + expect(contrastRatio("#777", "#fff")).toBeCloseTo(4.48, 2); + // Tailwind's indigo-600 is about #4f39f6. + const indigo = parseColor("oklch(51.1% 0.262 276.966)"); + expect(Math.round(indigo.r * 255)).toBeGreaterThanOrEqual(78); + expect(Math.round(indigo.r * 255)).toBeLessThanOrEqual(80); + expect(Math.round(indigo.b * 255)).toBeGreaterThanOrEqual(245); + expect(parseColor("rgba(79, 57, 246, 0.5)").a).toBe(0.5); + expect(parseColor("color(srgb 1 0.5 0 / 50%)").g).toBe(0.5); + expect(() => parseColor("hsl(0 0% 0%)")).toThrow(); + }); + + it("composites translucent colours over the background", () => { + const half = contrastRatio("rgba(0, 0, 0, 0.5)", "#fff"); + expect(half).toBeGreaterThan(3); + expect(half).toBeLessThan(contrastRatio("#000", "#fff")); + }); +}); + +describe("token contrast (WCAG 2.1 AA)", () => { + it.each(PAIRS)("%s on %s ≥ %d:1 (%s)", (fg, bg, min) => { + const ratio = contrastRatio(token(fg), token(bg)); + expect(ratio, `${fg} on ${bg}: ${ratio.toFixed(2)}:1`).toBeGreaterThanOrEqual(min); + }); +}); diff --git a/crates/app/ui/src/tests/editor-password.test.ts b/crates/app/ui/src/tests/editor-password.test.ts index b54f87d..69e0dda 100644 --- a/crates/app/ui/src/tests/editor-password.test.ts +++ b/crates/app/ui/src/tests/editor-password.test.ts @@ -14,7 +14,7 @@ it("the password of a new entry can be typed and is saved", async () => { render(App, { apis: { vault, app: new MemoryAppApi() } }); await user.type(await screen.findByLabelText("Master password"), "secret"); await user.click(screen.getByRole("button", { name: "Unlock" })); - await screen.findByRole("listbox", { name: "Entries" }); + await screen.findByRole("listbox", { name: /entries/i }); await user.click(screen.getByRole("button", { name: "New entry" })); const field = await screen.findByLabelText("Password"); await user.type(screen.getByLabelText("Title"), "Typed"); diff --git a/crates/app/ui/src/tests/state.test.ts b/crates/app/ui/src/tests/state.test.ts index 43b67f1..cf0747c 100644 --- a/crates/app/ui/src/tests/state.test.ts +++ b/crates/app/ui/src/tests/state.test.ts @@ -191,6 +191,24 @@ describe("leaving a modified editor", () => { }); }); +describe("list navigation", () => { + it("Home and End are absolute, with or without a visible selection (M4A-R02)", async () => { + const { app } = await unlocked(); + const titles = () => app.visibleEntries.map((e) => e.id); + expect(app.selectedId).toBeNull(); + app.moveSelection(Infinity); + await vi.waitFor(() => expect(app.selectedId).toBe(titles().at(-1))); + app.moveSelection(-Infinity); + await vi.waitFor(() => expect(app.selectedId).toBe(titles()[0])); + // The selected entry is filtered out of the list: End still goes last. + app.setQuery("git"); + const visible = titles(); + expect(visible).not.toContain(app.selectedId); + app.moveSelection(Infinity); + await vi.waitFor(() => expect(app.selectedId).toBe(visible.at(-1))); + }); +}); + describe("entries, groups and saving", () => { it("delete moves to the recycle bin, restore brings it back", async () => { const { app } = await unlocked(); diff --git a/crates/app/ui/src/tests/version-notice.test.ts b/crates/app/ui/src/tests/version-notice.test.ts new file mode 100644 index 0000000..3b328eb --- /dev/null +++ b/crates/app/ui/src/tests/version-notice.test.ts @@ -0,0 +1,137 @@ +import { render, screen } from "@testing-library/svelte"; +import userEvent from "@testing-library/user-event"; +import { describe, expect, it } from "vitest"; +import App from "$lib/App.svelte"; +import { MemoryAppApi } from "$lib/api/app"; +import { DemoVault } from "$lib/api/demo"; +import { VaultError, type DatabaseInfo } from "$lib/api"; +import { AppState } from "$lib/state/app.svelte"; + +/** + * The demo with a file of the given KDBX version: like the Rust core, a save + * that replaced the file reports 4.1 and a refused save keeps the old version. + */ +class VersionedVault extends DemoVault { + constructor(private version: [number, number]) { + super({ delayMs: 0 }); + } + + private copy(): [number, number] { + return [this.version[0], this.version[1]]; + } + + override async unlock(path: string, password: string): Promise { + return { ...(await super.unlock(path, password)), version: this.copy() }; + } + + override async databaseInfo(): Promise { + return { ...(await super.databaseInfo()), version: this.copy() }; + } + + override async updateDatabase(patch: Parameters[0]) { + return { ...(await super.updateDatabase(patch)), version: this.copy() }; + } + + /** The next save replaces the file but its durability is not confirmed. */ + notDurableNext = false; + + override async save(): Promise { + const info = await super.save(); + return this.replaced(info); + } + + override async saveOverwrite(): Promise { + const info = await super.saveOverwrite(); + return this.replaced(info); + } + + private replaced(info: DatabaseInfo): DatabaseInfo { + this.version = [4, 1]; + if (this.notDurableNext) { + this.notDurableNext = false; + throw new VaultError("notDurable"); + } + return { ...info, version: [4, 1] }; + } +} + +async function unlocked(version: [number, number]) { + const vault = new VersionedVault(version); + const app = new AppState({ vault, app: new MemoryAppApi() }); + await app.init(); + await app.unlock("secret"); + expect(app.screen).toBe("vault"); + return { app, vault }; +} + +describe("KDBX conversion notice", () => { + it("is shown for KDBX 3.1 and 4.0, not for 4.1", async () => { + expect((await unlocked([3, 1])).app.versionNotice).toBe("3.1"); + expect((await unlocked([4, 0])).app.versionNotice).toBe("4.0"); + expect((await unlocked([4, 1])).app.versionNotice).toBeNull(); + }); + + it("the demo database is KDBX 4.1: no notice", async () => { + const app = new AppState({ vault: new DemoVault({ delayMs: 0 }), app: new MemoryAppApi() }); + await app.init(); + await app.unlock("secret"); + expect(app.versionNotice).toBeNull(); + }); + + it("stays after a failed save and goes after a successful one", async () => { + const { app, vault } = await unlocked([3, 1]); + vault.failNextSave = true; + expect(await app.persist()).toBe(false); + expect(app.banner).toBe("saveFailed"); + expect(app.versionNotice).toBe("3.1"); + expect(await app.persist()).toBe(true); + expect(app.versionNotice).toBeNull(); + }); + + it("goes when the file was replaced but not confirmed durable (M4A-R01)", async () => { + for (const overwrite of [false, true]) { + const { app, vault } = await unlocked([3, 1]); + vault.notDurableNext = true; + expect(await app.persist(overwrite)).toBe(false); + expect(app.lastSaveError).toBe("notDurable"); + expect(app.banner).toBe("saveFailed"); + expect(app.versionNotice).toBeNull(); + } + }); + + it("stays after a save refused for an external change", async () => { + const { app, vault } = await unlocked([4, 0]); + vault.externalChange = true; + expect(await app.persist()).toBe(false); + expect(app.banner).toBe("externalChange"); + expect(app.versionNotice).toBe("4.0"); + }); + + it("Dismiss hides it until the next unlock of a file that was not saved", async () => { + const { app } = await unlocked([3, 1]); + app.versionNoticeDismissed = true; + expect(app.versionNotice).toBeNull(); + app.lock(); + await app.unlock("secret"); + expect(app.versionNotice).toBe("3.1"); + }); + + it("is rendered as a status next to the other banners, never instead of them", async () => { + const vault = new VersionedVault([3, 1]); + const user = userEvent.setup(); + render(App, { apis: { vault, app: new MemoryAppApi() } }); + await user.type(await screen.findByLabelText("Master password"), "secret"); + await user.click(screen.getByRole("button", { name: "Unlock" })); + const notice = await screen.findByText(/This database uses KDBX 3\.1\./); + expect(notice.closest('[role="status"]')).not.toBeNull(); + + vault.failNextSave = true; + await user.keyboard("{Control>}s{/Control}"); + expect(await screen.findByRole("alert")).toHaveTextContent("Couldn’t save the database."); + expect(screen.getByText(/This database uses KDBX 3\.1\./)).toBeInTheDocument(); + + await user.click(screen.getByRole("button", { name: "Dismiss" })); + expect(screen.queryByText(/This database uses KDBX/)).toBeNull(); + expect(screen.getByRole("alert")).toBeInTheDocument(); + }); +}); diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index becc668..cd6994b 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -19,6 +19,10 @@ secrecy = { version = "0.10", features = ["serde"] } serde = { version = "1", features = ["derive"] } serde_json = "1" sha2 = "0.10" +# Already in the lockfile through keepass-rs: KDBX 3 HeaderHash comparison. +base64 = "0.22" +# Already in the lockfile (tests): reads the KDBX 3 HeaderHash as XML. +roxmltree = "0.20" thiserror = "2" tracing = "0.1" uuid = { version = "1", features = ["serde"] } @@ -31,7 +35,6 @@ arbitrary = { version = "1", features = ["derive"], optional = true } fuzzing = ["dep:arbitrary"] [dev-dependencies] -roxmltree = "0.20" tempfile = "3" tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "std"] } uuid = "1" diff --git a/crates/core/src/kdbx/header.rs b/crates/core/src/kdbx/header.rs index 95644fb..2df606e 100644 --- a/crates/core/src/kdbx/header.rs +++ b/crates/core/src/kdbx/header.rs @@ -237,6 +237,17 @@ pub fn peek(data: &[u8]) -> Result { /// compression (3) and inner stream id (10) are exactly 4 bytes, the rounds /// (6) exactly 8; the header must end (id 0) within [`MAX_HEADER_LEN`]. pub fn kdbx3_transform_rounds(data: &[u8]) -> Result { + kdbx3_header(data).map(|(rounds, _)| rounds) +} + +/// Length in bytes of a KDBX 3 outer header, end field included: the bytes +/// its `HeaderHash` covers. Validated like [`kdbx3_transform_rounds`]. +pub fn kdbx3_header_len(data: &[u8]) -> Result { + kdbx3_header(data).map(|(_, len)| len) +} + +/// Transform rounds and header length of a KDBX 3 file. +fn kdbx3_header(data: &[u8]) -> Result<(u64, usize), HeaderError> { const FIELD_COMMENT: u8 = 1; const FIELD_TRANSFORM_ROUNDS: u8 = 6; const FIELD_INNER_STREAM: u8 = 10; @@ -279,7 +290,11 @@ pub fn kdbx3_transform_rounds(data: &[u8]) -> Result { _ => return Err(HeaderError::InvalidField("unknown KDBX 3 field")), } } - rounds.ok_or(HeaderError::MissingField("transform rounds")) + let len = data.len().min(MAX_HEADER_LEN) - r.data.len(); + Ok(( + rounds.ok_or(HeaderError::MissingField("transform rounds"))?, + len, + )) } /// Value of a KeePass `VariantDictionary` item. Every type of the format is diff --git a/crates/core/src/vault.rs b/crates/core/src/vault.rs index 9c10738..5b421fc 100644 --- a/crates/core/src/vault.rs +++ b/crates/core/src/vault.rs @@ -97,6 +97,77 @@ fn check_limits(bytes: &[u8], limits: &Limits) -> Result<()> { }) } +/// Parses a database. For KDBX 3.1 it also checks the `HeaderHash` that +/// keepass-rs 0.17 ignores: a KDBX 3 outer header has no HMAC, so without it +/// a changed field (the protected stream key, field 8) would go unnoticed and +/// protected values would decrypt to garbage that the next save makes +/// permanent. KDBX 4 authenticates its header itself. +fn parse(bytes: &[u8], password: &SecretString) -> Result { + let db = Database::parse(bytes, key(password)).map_err(map_open_error)?; + if matches!(db.config.version, DatabaseVersion::KDB3(_)) { + check_kdbx3_header_hash(bytes, password)?; + } + Ok(db) +} + +fn check_kdbx3_header_hash(bytes: &[u8], password: &SecretString) -> Result<()> { + use sha2::{Digest, Sha256}; + let len = header::kdbx3_header_len(bytes).map_err(|_| VaultError::InvalidFormat)?; + // The decrypted XML holds field values: wiped when dropped, and read in + // place (no copy of the whole text). + let xml = zeroize::Zeroizing::new( + Database::get_xml(&mut &bytes[..], key(password)).map_err(map_open_error)?, + ); + let text = std::str::from_utf8(&xml).map_err(|_| VaultError::InvalidFormat)?; + match header_hash_from_xml(text)? { + Some(expected) if expected[..] == Sha256::digest(&bytes[..len])[..] => Ok(()), + Some(_) => { + tracing::warn!("database refused: KDBX 3 header does not match its HeaderHash"); + Err(VaultError::InvalidFormat) + } + None => { + // KeePass before 2.20 did not write it (KeePassXC also accepts that); + // it cannot be removed without the key, being inside the encrypted part. + tracing::warn!("KDBX 3 file without HeaderHash: header not verified"); + Ok(()) + } + } +} + +/// `KeePassFile/Meta/HeaderHash`, read as XML (whitespace in tags, comments, +/// CDATA): `None` only when the element is absent. A duplicate element, or a +/// value that is not the base64 of 32 bytes, makes the file invalid. +fn header_hash_from_xml(xml: &str) -> Result> { + use base64::Engine as _; + let doc = roxmltree::Document::parse(xml).map_err(|_| VaultError::InvalidFormat)?; + let root = doc.root_element(); + if !root.has_tag_name("KeePassFile") { + return Err(VaultError::InvalidFormat); + } + let mut metas = root.children().filter(|n| n.has_tag_name("Meta")); + let (Some(meta), None) = (metas.next(), metas.next()) else { + return Err(VaultError::InvalidFormat); + }; + let mut hashes = meta.children().filter(|n| n.has_tag_name("HeaderHash")); + let hash = match (hashes.next(), hashes.next()) { + (None, _) => return Ok(None), + (Some(hash), None) => hash, + (Some(_), Some(_)) => return Err(VaultError::InvalidFormat), + }; + let value: String = hash + .children() + .filter(|n| n.is_text()) + .filter_map(|n| n.text()) + .collect(); + let decoded = base64::engine::general_purpose::STANDARD + .decode(value.trim()) + .map_err(|_| VaultError::InvalidFormat)?; + decoded + .try_into() + .map(Some) + .map_err(|_| VaultError::InvalidFormat) +} + fn map_open_error(e: DatabaseOpenError) -> VaultError { match e { DatabaseOpenError::Key(DatabaseKeyError::IncorrectKey | DatabaseKeyError::EmptyKey) => { @@ -220,7 +291,7 @@ impl Vault { ) -> Result { check_limits(bytes, limits)?; check_version(bytes)?; - let db = Database::parse(bytes, key(&password)).map_err(map_open_error)?; + let db = parse(bytes, &password)?; Ok(Self { db, path: None, @@ -295,11 +366,38 @@ impl Vault { fn write(&mut self, expected: Option, overwrite: bool) -> Result<()> { let path = self.path.clone().ok_or(VaultError::NoFile)?; // keepass-rs writes KDBX 4.1 only: KDBX 3.1 and 4.0 files (KeePassXC - // writes 4.0 when no 4.1 feature is used) are upgraded on save. - let latest = DatabaseConfig::default().version; - if self.db.config.version != latest { - self.db.config.version = latest; + // writes 4.0 when no 4.1 feature is used) are upgraded on save. The + // version only changes once the file is replaced, so `info()` always + // reports the version of the file on disk. + let previous = std::mem::replace( + &mut self.db.config.version, + DatabaseConfig::default().version, + ); + let written = self.serialise_and_replace(&path, expected, overwrite); + let (bytes, durability) = match written { + Ok(done) => done, + Err(e) => { + self.db.config.version = previous; + return Err(e); + } + }; + self.stamp = Some(Stamp::of(&bytes)); + if let Some(new) = self.pending.take() { + self.committed = new; } + self.dirty = false; + tracing::info!(entries = self.db.num_entries(), "vault saved"); + durability + } + + /// Serialises the database and replaces the file. On `Ok` the file was + /// replaced; the second value is whether that is confirmed durable. + fn serialise_and_replace( + &self, + path: &Path, + expected: Option, + overwrite: bool, + ) -> Result<(Vec, Result<()>)> { let secret = self.pending.as_ref().unwrap_or(&self.committed); let mut bytes = Vec::new(); self.db.save(&mut bytes, key(secret)).map_err(|e| { @@ -314,31 +412,23 @@ impl Vault { ); return Err(VaultError::TooExpensive); } - let mut durability = Ok(()); - match file::replace(&path, &bytes, expected.as_ref(), overwrite) { - Ok(()) => {} + match file::replace(path, &bytes, expected.as_ref(), overwrite) { + Ok(()) => Ok((bytes, Ok(()))), // The file was replaced but the directory sync failed: the state - // below must follow the file on disk, and the caller is told. + // must follow the file on disk, and the caller is told. Err(ReplaceError::NotDurable(e)) => { tracing::warn!(error_kind = ?e.kind(), "saved, but not confirmed durable"); - durability = Err(VaultError::NotDurable(e.kind())); + Ok((bytes, Err(VaultError::NotDurable(e.kind())))) } Err(ReplaceError::Changed) => { tracing::warn!("save refused: file changed by another application"); - return Err(VaultError::ExternalChange); + Err(VaultError::ExternalChange) } Err(ReplaceError::Io(e)) => { tracing::warn!(error_kind = ?e.kind(), "cannot save vault"); - return Err(e.into()); + Err(e.into()) } } - self.stamp = Some(Stamp::of(&bytes)); - if let Some(new) = self.pending.take() { - self.committed = new; - } - self.dirty = false; - tracing::info!(entries = self.db.num_entries(), "vault saved"); - durability } /// Re-reads the file with the committed key ("Reload"), dropping unsaved @@ -349,7 +439,7 @@ impl Vault { .ok_or(VaultError::TooExpensive)?; check_limits(&bytes, &Limits::DEFAULT)?; check_version(&bytes)?; - let db = Database::parse(&bytes, key(&self.committed)).map_err(map_open_error)?; + let db = parse(&bytes, &self.committed)?; self.db = db; self.stamp = Some(Stamp::of(&bytes)); self.pending = None; diff --git a/crates/core/src/vault/tests.rs b/crates/core/src/vault/tests.rs index c5ebfbb..8d8b65a 100644 --- a/crates/core/src/vault/tests.rs +++ b/crates/core/src/vault/tests.rs @@ -171,6 +171,116 @@ fn kdbx31_is_read_and_saved_as_kdbx4() { ); } +/// The KDBX 3.1 fixture with one byte of its protected stream key (outer +/// header field 8) changed, as a sync provider could without the password. +fn kdbx31_with_changed_stream_key() -> Vec { + let mut bytes = std::fs::read( + Path::new(env!("CARGO_MANIFEST_DIR")).join("../../tests/fixtures/keepassxc-kdbx31.kdbx"), + ) + .expect("fixture"); + let mut pos = 12; + loop { + let id = bytes[pos]; + let len = usize::from(u16::from_le_bytes([bytes[pos + 1], bytes[pos + 2]])); + if id == 8 { + bytes[pos + 3] ^= 0x01; + return bytes; + } + assert_ne!(id, 0, "no protected stream key field"); + pos += 3 + len; + } +} + +#[test] +fn a_kdbx31_header_that_does_not_match_its_header_hash_is_refused() { + let tampered = kdbx31_with_changed_stream_key(); + // keepass-rs alone accepts it: protected values would decrypt to garbage. + assert!(Database::parse(&tampered, key(&secret(FIXTURE_PASSWORD))).is_ok()); + assert!(matches!( + Vault::open_bytes(&tampered, secret(FIXTURE_PASSWORD)), + Err(VaultError::InvalidFormat) + )); + + // Reload too: the file is replaced on disk by the tampered copy. + let (f, mut vault) = fixture_copy("keepassxc-kdbx31.kdbx"); + std::fs::write(&f.path, &tampered).expect("tamper"); + assert!(matches!(vault.reload(), Err(VaultError::InvalidFormat))); + assert_eq!(vault.info().version, (3, 1), "the vault is left as it was"); +} + +#[test] +fn the_kdbx3_header_hash_is_read_as_xml() { + use base64::Engine as _; + let hash = [7u8; 32]; + let b64 = base64::engine::general_purpose::STANDARD.encode(hash); + let doc = |meta: &str| format!("{meta}"); + // Whitespace in the tag and around the value, CDATA, a comment beside it. + for meta in [ + format!("{b64}"), + format!("\n {b64}\n"), + format!(""), + format!("{b64}"), + ] { + assert_eq!( + header_hash_from_xml(&doc(&meta)).expect(&meta), + Some(hash), + "{meta}" + ); + } + // Absent: only a commented-out one, or none at all. + for meta in [ + String::new(), + format!(""), + ] { + assert_eq!( + header_hash_from_xml(&doc(&meta)).expect(&meta), + None, + "{meta}" + ); + } + // Duplicate, not base64, wrong length, outside Meta's structure. + for meta in [ + format!("{b64}{b64}"), + "not base64!".to_owned(), + "AAAA".to_owned(), + ] { + assert!( + matches!( + header_hash_from_xml(&doc(&meta)), + Err(VaultError::InvalidFormat) + ), + "{meta}" + ); + } + assert!(header_hash_from_xml("").is_err()); + assert!(header_hash_from_xml("").is_err()); +} + +#[test] +fn the_reported_version_changes_only_when_the_file_is_replaced() { + use crate::kdbx::limits::Limits; + let (f, mut vault) = fixture_copy("keepassxc-kdbx31.kdbx"); + vault.rename_database("Renamed").expect("rename"); + + vault.max_file_bytes = 100; + let before = std::fs::read(&f.path).expect("read"); + assert!(matches!(vault.save(), Err(VaultError::TooExpensive))); + assert_eq!(vault.info().version, (3, 1), "after a refused save"); + assert_eq!(std::fs::read(&f.path).expect("read"), before); + vault.max_file_bytes = Limits::DEFAULT.max_file_bytes; + + let external = external_bytes(); + std::fs::write(&f.path, &external).expect("external write"); + assert!(matches!(vault.save(), Err(VaultError::ExternalChange))); + assert_eq!(vault.info().version, (3, 1), "after an external change"); + assert_eq!(std::fs::read(&f.path).expect("read"), external); + + vault.save_overwrite().expect("keep mine"); + assert_eq!(vault.info().version, (4, 1)); + let reopened = Vault::open(&f.path, secret(FIXTURE_PASSWORD)).expect("reopen"); + assert_eq!(reopened.info().version, (4, 1)); +} + #[test] fn an_aes_kdf_database_keeps_its_kdf_unless_asked() { let (f, mut vault) = fixture_copy("keepassxc-rich.kdbx"); diff --git a/docs/ACCESSIBILITY.md b/docs/ACCESSIBILITY.md new file mode 100644 index 0000000..6f162d7 --- /dev/null +++ b/docs/ACCESSIBILITY.md @@ -0,0 +1,79 @@ +# Accessibility + +Keyrust aims at **WCAG 2.1 level AA** for its whole interface: complete keyboard operation, visible +focus, sufficient contrast, roles and announcements for screen readers, and respect for reduced +motion. This is a target checked by automated tests and a manual checklist, not a certified +conformance claim. + +## What is checked automatically + +Every check runs in CI, in the Linux `app` job. The browser audits run on the demo build in +Chromium, through Playwright (`crates/app/ui/e2e-web/`, `pnpm test:web`). + +| Check | How | File | +|---|---|---| +| WCAG 2.0 / 2.1 A and AA rules | axe-core on every screen and overlay: Unlock (recent files, wrong password, first run), Create (with advanced settings and a mismatch), Vault (list, selected entry, toast, search without results, recycle bin, empty group), entry editor (new, edit, generator popover), standalone generator, Settings (each tab), Keyboard shortcuts, Command palette, Confirm dialog, external-change and save-failed banners. Fails on any *serious* or *critical* violation; *moderate* and *minor* ones are reported in the test output | `a11y.spec.ts` | +| Keyboard | Tab order in the vault (the group tree and the entry list are one tab stop each, Shift+Tab is the exact reverse); arrows, Home and End in the tree and in the list, Enter opens the editor; focus enters Settings, the Confirm dialog and the palette, stays inside, and returns to the element that opened them on Escape; every shortcut of the command registry produces its effect; menu commands without a shortcut are in the palette | `keyboard.spec.ts` | +| Visible focus | On every tab stop of Unlock, Create, Vault, the editor, each Settings tab, the palette, the Confirm dialog, the generator, the shortcuts panel, the toast and both banners, and on the group rename and new-group fields: an opaque outline, or an opaque box-shadow ring with a spread, appears when the element receives keyboard focus, with at least 3:1 contrast against the background next to it, measured on the computed colour | `focus.spec.ts` | +| Reduced motion | With `prefers-reduced-motion: reduce`, no animation or transition lasts more than 0.01 s and nothing scrolls smoothly while Settings, the palette, a toast and the generator popover are open; without the preference the animations remain | `motion.spec.ts` | +| Colour contrast of the design tokens | Every text/background pair the components use, at 4.5:1 for text and 3:1 for non-text elements (input borders, the focus ring, strength-meter segments, meaningful icons). Colours are read from `src/app.css` and Tailwind's palette and converted from OKLCH, so a changed token is measured as it is | `src/tests/contrast.test.ts` (Vitest) | +| Roles and names | Component tests assert the roles and names of the tree, the list, dialogs and fields | `src/tests/*.test.ts` | + +The colour conversion and the WCAG contrast formula live in `src/lib/a11y/contrast.ts`; the token +test and the focus test both use it. + +## What the audit changed (Milestone 4a) + +The first run found 7 kinds of serious or critical axe violations, and the other tests found more. +All are fixed: + +- `--muted-foreground` darkened from zinc-500 to `oklch(52% …)`: zinc-500 was 4.3:1 on the + selected-row and muted backgrounds. +- `--input` darkened to `oklch(63% …)` so that field borders reach 3:1; the search field uses it too. +- Strength meter segments: amber-600, emerald-600 and emerald-700 instead of lighter shades below + 3:1. +- Primary buttons on hover use `--primary-hover` (indigo-700) instead of a translucent indigo at + 4.4:1. +- Focus rings are 2 px and opaque everywhere (they were 20–50 % translucent), and the command + palette's field shows one (it had none). +- The command palette's field declares the list it controls; the list can be focused for scrolling. +- An empty entry list is no longer an empty `listbox`. The list is named after the current group + or search ("Entries in Work", "Entries matching “git”"), and Home and End work in it. +- Group tree items are named with their count ("Work, 3 entries") and expose `aria-setsize` and + `aria-posinset`, since the rows are flat in the page. +- The clipboard toast announces one sentence per copy instead of every second of its countdown. + The search result count is announced once typing pauses. +- Unlock and Create errors are alerts linked to their fields; the lock notice describes the + password field; the strength caption describes the password it rates. +- Show/hide and reveal buttons keep one name and expose their state with `aria-pressed`. +- The generator popover in the editor is a named dialog. +- After the independent inspection: the toast's Dismiss button has a light focus outline (indigo was + 2.75:1 on the dark toast), the group name fields show a focus ring, End goes to the last entry + even when nothing is selected, and copying the same field twice is announced twice. + +## Exceptions + +No axe rule is disabled. Two choices are deliberate: + +- **Empty strength-meter segments** use the border colour, below 3:1. The segments are decorative + (`aria-hidden`): the strength is always written next to them ("Strong · 131 bits") and that text + meets 4.5:1. +- **The command palette has a single tab stop.** Arrow keys in its field move through the results, + as in a combobox; Tab does not visit each result. + +## Known limits + +- The audit runs in Chromium, while the app runs in WebKitGTK (Linux), WebView2 (Windows) and + WKWebView (macOS). Colours and the DOM are the same, so contrast and roles carry over; how a + screen reader announces them depends on the engine and is covered only by the manual checklist. +- The end-to-end test of the real app (`crates/app/e2e/`) checks behaviour, not accessibility. +- Windows high-contrast mode is not specifically styled; the app must stay usable in it. + +## Manual checklist + +The steps, for Windows with Narrator and no extra software, are in +[DEVELOPMENT.md](DEVELOPMENT.md#manual-accessibility-checklist). Record each run here. + +| Date | Platform | Screen reader | Result | +|---|---|---|---| +| — | — | — | Not run yet | diff --git a/docs/DESIGN.md b/docs/DESIGN.md index e3360cf..090384f 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -106,11 +106,16 @@ App desktop: finestra minima 800×560. ## Accessibilità e contenuti - **Accessibilità**: - - contrasto WCAG AA su testo e componenti (verificare `zinc-500` su bianco per il testo secondario); - - focus ring indaco visibile su ogni elemento interattivo; ordine di tab logico sidebar → ricerca → lista → dettaglio; + - contrasto WCAG AA su testo e componenti, verificato sui token da `src/tests/contrast.test.ts`; dopo + l'audit della Milestone 4a il testo secondario è `oklch(52% …)` (zinc-500 non bastava su `muted` e + sulla selezione), i bordi dei campi `oklch(63% …)`, i segmenti di robustezza amber-600 / emerald-600 / + emerald-700; + - focus ring indaco **pieno, 2 px**, visibile su ogni elemento interattivo; ordine di tab logico + sidebar → ricerca → lista → dettaglio; - navigazione completa da tastiera e pannello "Keyboard Shortcuts" (Ctrl+/); - ruoli ARIA: `tree` per i gruppi, `listbox` per le voci, `aria-live="polite"` per toast e countdown appunti; - - la robustezza password è comunicata anche via testo, non solo colore; rispetto di `prefers-reduced-motion`. + - la robustezza password è comunicata anche via testo, non solo colore; rispetto di `prefers-reduced-motion`; + - verifiche automatiche, eccezioni e checklist manuale: [ACCESSIBILITY.md](ACCESSIBILITY.md). - **Microcopy / tono**: inglese, breve, diretto, rassicurante, mai allarmista; verbi d'azione sui pulsanti ("Unlock", "Copy password", "Create database"). Spiegazioni tecniche solo in "Advanced". Esempi: - errore sblocco: "Wrong password or key. Check Caps Lock and try again." diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index bf47d8a..7ecc88c 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -80,6 +80,38 @@ a verification). To skip them knowingly, set `KEYRUST_SKIP_KEEPASSXC=1` Regenerate the KeePassXC fixtures (Linux/macOS/Git Bash): `scripts/gen-fixtures.sh`. +### Accessibility audit and screenshots + +The audit (axe, keyboard, focus, reduced motion; see [ACCESSIBILITY.md](ACCESSIBILITY.md)) drives the +demo build in Chromium through Playwright: + +```sh +cd crates/app/ui +pnpm exec playwright install chromium # once; CI adds --with-deps +pnpm test:web # builds, serves on 127.0.0.1:4173, runs e2e-web/ +pnpm test:web keyboard # one file +pnpm screenshots # regenerates docs/screenshots/*.png (never in CI) +``` + +Failures leave a trace in `crates/app/ui/test-results/` (`pnpm exec playwright show-trace …`). +`KEYRUST_SCREENSHOT_SCALE=1.5 pnpm screenshots` makes smaller PNGs if one exceeds 400 KB. + +### End-to-end test of the desktop app + +`crates/app/e2e` drives the real app (Rust backend, IPC, WebKitGTK) with WebdriverIO and +[tauri-driver](https://v2.tauri.app/develop/tests/webdriver/). It runs in the CI `e2e` job on Linux only: +tauri-driver does not support macOS, and on Windows it needs a matching msedgedriver. It opens copies +of the fixtures from a pre-filled recent-files list in a temporary `XDG_CONFIG_HOME`; the app has no test +hook. On a Linux machine with the Tauri prerequisites: + +```sh +sudo apt-get install webkit2gtk-driver xvfb dbus +cargo install tauri-driver --locked --version 2.1.0 +(cd crates/app/ui && pnpm install && pnpm tauri build --debug --no-bundle) +pnpm --dir crates/app/e2e install +xvfb-run -a dbus-run-session -- pnpm --dir crates/app/e2e test # KEYRUST_E2E_DIR chooses the work folder +``` + ### Logs The app logs to stderr only. `KEYRUST_LOG=debug pnpm tauri dev` shows more detail (still no @@ -102,7 +134,8 @@ to `main` and manually (*Actions* → *CI* → *Run workflow*): | Job | What it does | |---|---| | `core` (Linux, Windows, macOS) | installs KeePassXC; fmt (Linux), clippy and tests of `keyrust-core` | -| `app` (Linux, Windows, macOS) | frontend check/lint/format/test/build; workspace clippy; `keyrust-app` tests (security configuration); debug build of the desktop app | +| `app` (Linux, Windows, macOS) | frontend check/lint/format/test/build; accessibility audit (Linux); workspace clippy; `keyrust-app` tests (security configuration); debug build of the desktop app | +| `e2e` (Linux) | builds the app, runs the smoke test under Xvfb, then checks the saved file with `keepassxc-cli` | | `deny` | `cargo deny check` (licences, advisories, sources) | | `fuzz` | every cargo-fuzz target for 60 s | @@ -164,3 +197,25 @@ on pull requests, pushes to `main` and manual runs). With an installer from a gr - [ ] Optional: in the KeePassXC GUI create two databases with password `keyrust-test-password` (Database → Database Settings → Security → Encryption settings): one with **ChaCha20 + Argon2id**, one with **AES-256 + Argon2d**; send them back to be added as fixtures. + +## Manual accessibility checklist + +On Windows, with tools already present (no installation): run `pnpm tauri dev` or an installer from +CI. Record the result in [ACCESSIBILITY.md](ACCESSIBILITY.md#manual-checklist). + +- [ ] Start Narrator (Ctrl+Win+Enter). On the Unlock screen it reads the database name and the + "Master password" field; a wrong password is announced as an error +- [ ] Unlock with the keyboard only. In the vault, Tab goes sidebar → search → list → details; in the + group tree Narrator reads each group with its count ("Work, 3 entries"), in the list each entry + as an option with its position +- [ ] Select an entry and copy its password (Ctrl+C): Narrator announces "Password copied. The + clipboard clears in 20 seconds." once, not every second +- [ ] Type in the search field: the number of results is announced after a pause +- [ ] Open the editor (Enter or Ctrl+E): every field has its label; the password field is described by + its strength; the show/hide button says whether it is pressed +- [ ] Open Settings (Ctrl+,): the focus moves into it, Tab stays inside, Escape closes it and returns + the focus where it was +- [ ] Zoom to 200% (Ctrl+plus, four times): nothing is cut off and no content needs horizontal + scrolling to be read; Ctrl+0 restores +- [ ] Windows high contrast (Settings → Accessibility → Contrast themes), observation only: text, + focus and selection stay visible and the app stays usable diff --git a/docs/PRD.md b/docs/PRD.md index 0f8deef..11a37f6 100644 --- a/docs/PRD.md +++ b/docs/PRD.md @@ -97,7 +97,10 @@ Il modello è quello di KDBX4; Keyrust non aggiunge entità proprie nel file. - Gestione allegati in UI (gli allegati esistenti vengono comunque preservati). - Merge automatico dei conflitti di sync. -## Domande aperte -- Strategia sui **conflitti di sync** (file modificato da un altro client mentre è aperto): in V1 basta - rilevare la modifica esterna e avvisare prima di sovrascrivere? DA DEFINIRE. -- Gestione in sola lettura dei **database KDBX3.1** (aprire e proporre l'upgrade a KDBX4?). DA DEFINIRE. +## Decisioni (ex domande aperte, chiuse nella Milestone 4a) +- **Conflitti di sync**: in V1 Keyrust rileva la modifica esterna (lunghezza + SHA-256 del file, prima e + durante il salvataggio) e rifiuta di sovrascrivere; l'utente sceglie *Reload* (rilegge il file, perde le + modifiche non salvate) o *Keep mine* (sovrascrive). Nessun merge (fuori scope). +- **KDBX 3.1 e 4.0**: si aprono in lettura e scrittura; il primo salvataggio li converte in KDBX 4.1. + All'apertura un avviso informativo e non bloccante lo dice ("Saving converts it to KDBX 4.1, which very + old KeePass clients cannot open"); sparisce dopo il primo salvataggio riuscito o con *Dismiss*. diff --git a/docs/TASKS.md b/docs/TASKS.md index 07c0f06..20a9161 100644 --- a/docs/TASKS.md +++ b/docs/TASKS.md @@ -65,10 +65,17 @@ - [ ] Verifica manuale con KeePassDX (Android) e Strongbox (iOS) su un DB sincronizzato ## Milestone 4 — Polish & deploy +### 4a — accessibilità, e2e, documentazione - [ ] Audit accessibilità: contrasto AA, focus, ARIA (`tree`, `listbox`, `aria-live`), ordine di tab, reduced motion -- [ ] Test e2e smoke (tauri-driver) su Linux in CI -- [ ] `SECURITY.md` definitivo con threat model completo -- [ ] README curato: screenshot, feature, threat model sintetico, diagramma architettura, istruzioni di build, confronto con KeePassXC + - [x] verifiche automatiche in CI (axe, tastiera, focus, reduced motion, contrasto dei token) e correzioni (4a) + - [ ] checklist manuale con Narrator e zoom 200% su Windows *(task utente, [DEVELOPMENT.md](DEVELOPMENT.md#manual-accessibility-checklist))* +- [x] Test e2e smoke (tauri-driver) su Linux in CI (4a) +- [x] `SECURITY.md` definitivo con threat model completo (4a) +- [x] README curato: screenshot, feature, threat model sintetico, diagramma architettura, istruzioni di build, confronto con KeePassXC (4a) +- [x] Domande aperte del PRD chiuse: conflitti di sync, KDBX 3.1/4.0 con avviso di conversione (4a) +- [x] `DatabaseInfo.version` segue il file su disco anche dopo un salvataggio rifiutato (4a) + +### 4b — rilascio - [ ] Pipeline di release su tag: build tre OS, checksum SHA-256, firma artefatti (minisign/cosign), bozza GitHub Release - [ ] Decidere ed eventualmente configurare la firma codice Windows (Authenticode) e macOS (Developer ID + notarizzazione) - [ ] Build riproducibili "best effort" (`SOURCE_DATE_EPOCH`, lockfile, toolchain fissata) e documentazione per verificarle diff --git a/docs/plans/milestone-4a-review-log.md b/docs/plans/milestone-4a-review-log.md new file mode 100644 index 0000000..12dfdf7 --- /dev/null +++ b/docs/plans/milestone-4a-review-log.md @@ -0,0 +1,150 @@ +# Log di revisione — Milestone 4a (accessibilità, e2e smoke, documentazione definitiva) + +- Ruoli: host/planner/builder **Claude** (Claude Code, Opus 5.5), reviewer e inspector **Codex** (CLI, modello di default). +- Piano: `docs/plans/milestone-4a.md`. Base `a747fef`, branch `milestone-4a`. +- Autorizzazione: preparare il piano con claudex-loop; implementazione solo su conferma dell'utente; push solo sul branch. +- Decisioni utente (2026-10-28): e2e con file recente pre-caricato (nessun hook); audit axe + Playwright sulla demo; + screenshot Playwright sulla demo; KDBX 3.1/4.0 con avviso non bloccante. +- Limiti: MAX_ROUNDS=5, MAX_FIX_ROUNDS=2, MAX_INSPECTION_ROUNDS=2, inspect=on. + +## Round 1 — Codex codex-cli 0.164.0 (sessione 01a18315-f210-7f43-bbb7-805b403ae655) — REVISE (1 high, 2 medium) — plan sha256 46b42158…a40 +- Result: `/tmp/claude-0/-opt-apps-password-manager/ed4fe123-bb03-4dee-b36b-94caf3d40ad8/scratchpad/claudex/r1/claudex-8aypp4_e/result.json` +- M4A-01 (medium) `Vault::write` porta la versione a 4.1 prima della sostituzione e non la ripristina su errore → + ACCETTATO (verificato): correzione nel core, versione 4.1 solo a file sostituito; test di salvataggi falliti/riusciti. +- M4A-02 (high) il README avrebbe detto "segreti mai nel webview", falso (modifica, reveal, generatore) → ACCETTATO: + confine descritto con esattezza in README e SECURITY.md. +- M4A-03 (medium) controllo del focus aggirabile (outline 0, trasparente, ombra immutata) → ACCETTATO: indicatore reso, + opaco, che cambia col focus, contrasto calcolato sul colore effettivo. + +## Round 2 — stessa sessione — REVISE (1 medium) — plan sha256 09216da4…081 +- Result: `/tmp/claude-0/-opt-apps-password-manager/ed4fe123-bb03-4dee-b36b-94caf3d40ad8/scratchpad/claudex/r2/claudex-7q1lhhpp/result.json`. M4A-01/02/03 risolti secondo il reviewer. +- M4A-04 (medium) `innerText` non vede nodi nascosti, attributi e valori degli input → ACCETTATO: scansione di + textContent, attributi e `.value` su tutto il documento, in lista e con il dettaglio aperto. + +## Round 3 — stessa sessione — **APPROVED**, 0 findings — plan sha256 0ff713d9…67b +- Result: `/tmp/claude-0/-opt-apps-password-manager/ed4fe123-bb03-4dee-b36b-94caf3d40ad8/scratchpad/claudex/r3/claudex-u5ikznlh/result.json`. Limiti dichiarati: approvazione del piano, non dell'implementazione; revisione statica; browser, + accessibilità desktop e CI non verificati. + +## Build — Claude (builder), base `6229bfe` +- Autorizzazione: l'utente ha confermato l'implementazione il 2026-10-29. Approvazione del piano verificata + (`runner.py check`): sha256 `0ff713d9…67b` invariato. +- Commit: `2fc628e` (core), `6a5e1a4` (UI, audit), `aad5931` (e2e, screenshot, CI), `3674b65` (documenti), + poi le correzioni emerse in CI (sotto), fino a `ed7ebc2`. + Autore di tutto il codice: Claude. Codex non ha scritto codice. + +### Baseline dell'audit (prima delle correzioni, `pnpm test:web a11y`) +Prima esecuzione: 7 test su 14 falliti, nessuna violazione moderate/minor; gli stati dopo il primo errore +di ciascun test non erano raggiunti. +- `color-contrast` (serious): `muted-foreground` (zinc-500) sulla riga selezionata (`selection`, 4,32:1) — + vault-entry, editor-edit, confirm; bottone primario in hover `primary/80` (4,39:1) — unlock-wrong-password. +- `aria-required-attr` (critical): combobox del palette senza `aria-controls`. +- `scrollable-region-focusable` (serious): lista del palette. +- `aria-required-children` (critical): `listbox` vuoto (gruppo senza voci). +- Test dei token (Vitest): 9 coppie sotto soglia (muted-foreground su muted/accent/selection; bordi degli + input 1,5:1; strength-2/3 sotto 3:1). +- Test del focus: anelli al 20–50 % di alfa su input, bottoni, switch; palette senza anello (`shadow-none!` + e `has-[data-slot=input-group-control]` mai vero). Tastiera: Home/End assenti nella lista. + +### Deviazioni dal piano (motivate) +- Ordine di tab: il DOM segue la lettura sidebar → ricerca → lista → dettaglio (come DESIGN.md). Il test + parte dalla ricerca e verifica ricerca → lista → dettaglio → (giro) albero, una tappa ciascuno, e + Shift+Tab esattamente inverso. +- Create non ha passi: un solo modulo; coperti stato iniziale, avanzate aperte, conferma diversa. +- Banner di versione non raggiungibile nella demo (sempre 4.1): coperto da `version-notice.test.ts`. +- Il campo di ricerca usa la classe `border-input` invece di `border-border` (è un campo, non un divisore): + cambio di classe, non di token. +- Focus: il test attende la fine delle transizioni (`document.getAnimations()`) invece di emulare reduced + motion, che lascia comunque transizioni di 0,01 ms. +- Screenshot: la password generata è mascherata (`mask`), per la regola "nessuna password in chiaro". +- e2e: WebdriverIO 9.32 (la 10 ha tre settimane, la guida Tauri usa la 9), tauri-driver 2.1.0 (la 3 è + alpha); salvataggio tramite il pulsante Save dell'editor, che scrive il file. +- In più rispetto al piano: Home/End nella lista, ruolo `dialog` del popover del generatore, verifica in CI + che la copia KDBX 3.1 resti identica (nessun salvataggio). + +### Verifica locale +- `cargo test -p keyrust-core` verde (68 + 11 + 5 + 3), clippy `-D warnings` e fmt puliti. +- UI: `pnpm check` (incluso `tsc -p e2e-web`), `lint`, `format:check`, `pnpm test` 246 test verdi. +- `pnpm test:web`: 49 test verdi, 0 violazioni axe di qualsiasi impatto. +- `pnpm screenshots`: 4 PNG da 89–219 KB a scala 2, controllati a occhio. +- e2e: `pnpm --dir crates/app/e2e check` verde; preparazione dati eseguita in locale (copie identiche, + `settings.json` nel percorso XDG atteso). Lo scenario gira solo in CI. +- Link relativi di README, SECURITY e documenti: nessuno rotto. +- `keyrust-app` (Rust) non modificato: clippy Windows con il finto `llvm-rc` non necessario. + +### CI e difetto trovato dall'e2e +- Audit a11y in CI: il pulsante *Benchmark* di Create ritorna attivo con `transition-all` alla fine del + benchmark automatico; axe lo misurava a metà dissolvenza. L'audit ora attende le animazioni + (`Promise.allSettled`, perché quelle annullate rifiutano `finished`). +- E2E: senza bus di sessione GTK aspettava ~25 s il portale → `dbus-run-session`. Log non leggibili senza + login: in caso di errore la coda filtrata del log diventa un'annotazione pubblica, con lo stato della + pagina e del bootstrap di SvelteKit. +- **Difetto dell'app (non del test)**: su Linux (e quasi certamente macOS) la UI è servita da + `tauri://localhost`, URL non speciale con percorso vuoto e origin opaco; il router di SvelteKit non trovava + la rotta e ricaricava la pagina all'infinito: finestra vuota. Windows (`http://tauri.localhost/`) non era + colpito. Correzione `4ed52f7`: finestra caricata a `"url": "/"`, con test di configurazione + (`the_window_loads_a_url_with_a_path`). macOS da verificare a mano. +- WebKitWebDriver restituisce testo vuoto per gli elementi `truncate`: lo smoke test legge `textContent`. +- Run finale `ed7ebc2`: tutti i job verdi — core ×3, app ×3 (audit a11y su Linux), deny, fuzz, e2e (scenario + completo e `keepassxc-cli show` sulla copia salvata con il titolo modificato; copia KDBX 3.1 identica). + +## Ispezione 1 — Codex codex-cli 0.165.0, `gpt-6.1-sol` (sessione 01a18748-6df9-7231-a1d5-e959f2e435e9) — **BLOCKED** +- Result: `…/scratchpad/claudex/i1/claudex-9uicz0jh/result.json`. 29 s, nessuna lettura del repository: con la + 0.165.0 il modello ha usato solo strumenti MCP e si è rifiutato di eseguire comandi di sola lettura (con la + 0.164.0 le revisioni del piano ne eseguivano 4–12). Non conta come approvazione. L'utente ha scelto di + riprovare con effort alto. + +## Ispezione 2 — stesso CLI e modello, effort `high` (sessione 01a1874a-545f-7f51-8c08-f42261d1605c) — REVISE (5 medium, 2 low) +- Result: `…/scratchpad/claudex/i2/claudex-649qo4vw/result.json`. 52 letture, 347 s, snapshot `2ef1eef`. +- M4A-R01 (medium) salvataggio `notDurable` di un file 3.1: la UI non rileggeva la versione → ACCETTATO + (verificato): `databaseInfo` riletto in quel ramo; test per save e saveOverwrite. +- M4A-R02 (medium) End senza selezione andava alla prima voce → ACCETTATO: Home/End assoluti; test di stato e + Playwright senza selezione. +- M4A-R03 (medium) focus: X del toast 2,75:1 sul fondo scuro, campi di rinomina senza anello, overlay non + coperti → ACCETTATO: contorno chiaro sul toast, anello sui campi, test del focus esteso a toast, generatore, + scorciatoie, banner e campi; verificato che i nuovi casi falliscono senza le correzioni. +- M4A-R04 (medium) due copie identiche annunciate una volta sola → ACCETTATO: un nodo nuovo per copia + (`toast.id`); test che il conto alla rovescia non cambia l'annuncio e una seconda copia sì. +- M4A-R05 (medium) `SECURITY.md`, tabella degli asset in contraddizione col confine del webview → ACCETTATO. +- M4A-R06 (low) README: la ricerca della UI non copre le note → ACCETTATO (affermazione corretta). +- M4A-R07 (low) README: "never silently overwrite" troppo forte → ACCETTATO, con rimando alla corsa residua. +- Verifica dopo le correzioni: Vitest 250, Playwright 54, check/lint/format verdi. + +## Ispezione 3 (fuori budget, autorizzata dall'utente) — stesso CLI e modello, effort `high` (sessione 01a1875b-e55b-7ea3-8df0-531c3c4915bd) — REVISE (1 high, 2 medium) +- Result: `…/scratchpad/claudex/i3/claudex-zyy4gcgq/result.json`. 150 letture, 418 s, snapshot `e63f65e`. + Nessun rilievo sulle correzioni M4A-R01…R07. CI di `e63f65e`: tutti i job verdi. +- M4A-R08 (high, preesistente) keepass-rs 0.17.0 non verifica `HeaderHash` nei KDBX 3.1: un campo 8 + (`ProtectedStreamKey`) alterato da un provider di sync rende illeggibili le password protette senza errore, + e il primo salvataggio lo rende permanente in 4.1 → VERIFICATO nel sorgente (`format/kdbx3.rs`: nessun + controllo; il lettore KDBX4 lo fa). Correzione possibile nel core via `Database::get_xml` + SHA-256 + dell'intestazione. Disposizione (utente: correggere nella 4a): ACCETTATO. `Vault` verifica `HeaderHash` + dei KDBX 3 in `open` e `reload` (`Database::get_xml`, XML azzerato dopo l'uso; senza `HeaderHash`, KeePass + < 2.20, si apre come in KeePassXC); test con il campo 8 alterato: keepass-rs lo accetta, Keyrust lo + rifiuta (`InvalidFormat`) e `reload` lascia il vault com'era. Costo: la chiave dei soli file 3.1 è + derivata due volte all'apertura. SECURITY.md aggiornato. +- M4A-R09 (medium) `setup.ts` cancella ricorsivamente `KEYRUST_E2E_DIR` senza controlli → VERIFICATO, + ACCETTATO: si cancella solo una cartella con il marcatore `.keyrust-e2e` (o vuota); provato in locale che + una cartella estranea è rifiutata e resta intatta. +- M4A-R10 (medium) sotto 1100 px la sidebar compressa rimuove la regione `status` del salvataggio → VERIFICATO, + ACCETTATO: la regione resta montata (`sr-only` se compressa); test Playwright a 900 px con axe. +- Verifica: core 69 + 11 + 5 + 3 e fuzz_seeds verdi, clippy, fmt, `cargo deny`; UI check/lint/format, Vitest 250. + +## Ispezione 4 (mirata a `863c07b..5c20eca`) — stesso CLI e modello, effort `high` (sessione 01a1876a-23ab-7dd0-b9f5-a9de0b377561) — REVISE (1 medium) +- Result: `…/scratchpad/claudex/i4/claudex-88h22rm9/result.json`. 50 letture, 219 s. Nessun rilievo su R09/R10. +- M4A-R11 (medium) `HeaderHash` estratto con una ricerca testuale: `` o un commento potevano + saltare o falsare il controllo → ACCETTATO (difetto del codice nuovo di R08): lettura XML con `roxmltree` + (già nel lockfile, da dev-dependency a dipendenza), `KeePassFile/Meta/HeaderHash`, base64 di 32 byte + confrontati come byte; assente → accettato come in KeePassXC; duplicato o malformato → rifiutato; test per + spazi nel tag, CDATA, commenti, assenza, duplicati, base64 non valido, lunghezza errata. +- Verifica: core 70 + 11 + 5 + 3, fuzz_seeds, clippy, fmt, `cargo deny` verdi. + +## Ispezione 5 (mirata a `5c20eca..0dc6afc`) — stesso CLI e modello, effort `high` (sessione 01a18779-6ad4-7000-bf8f-d3eefac0a5a6) — **APPROVED**, 0 rilievi +- Result: `…/scratchpad/claudex/i5/…/result.json`, 99 s. Limiti dichiarati: revisione statica; copre il diff + incrementale, non un nuovo audit dell'intera 4a. +- CI di `0dc6afc`: tutti i job verdi (core ×3, app ×3 con audit a11y, deny, fuzz, e2e). + +## Esito +- Copertura dell'ispezione: build completo ispezionato da Codex (ispezione 2: REVISE, corretto; ispezione 3: + REVISE, corretto); correzioni successive ispezionate in modo mirato (4: REVISE, corretto; 5: APPROVED). + Tutto il codice è di Claude; nessuna modifica successiva all'ultima ispezione oltre a questo log. +- Aperti, a carico dell'utente: checklist manuale di accessibilità (Narrator, zoom 200%) su Windows; verifica + a mano su macOS dell'avvio corretto (difetto `tauri://localhost`, corretto in `4ed52f7`). diff --git a/docs/plans/milestone-4a.md b/docs/plans/milestone-4a.md new file mode 100644 index 0000000..1081f3b --- /dev/null +++ b/docs/plans/milestone-4a.md @@ -0,0 +1,312 @@ +# Piano — Milestone 4a (accessibilità, e2e smoke, documentazione definitiva) di Keyrust + +Riferimenti: `docs/TASKS.md` (Milestone 4: audit accessibilità, e2e smoke, `SECURITY.md` definitivo, README curato), +`docs/PRD.md` (requisiti di accessibilità, "Domande aperte"), `docs/DESIGN.md` § Accessibilità, `docs/ARCHITECTURE.md`, +`SECURITY.md`, `README.md`, `.github/workflows/ci.yml`. Base: `main` @ `a747fef`. Branch: `milestone-4a`. + +La Milestone 4 è divisa in due: **4a** (questo piano) chiude qualità e documentazione; **4b** (pipeline di release, +firma degli artefatti, firma codice Windows/macOS, build riproducibili, `v0.1.0`) è un piano separato. + +## Obiettivo +1. L'interfaccia rispetta il requisito di accessibilità del PRD (tastiera completa, focus visibile, contrasto WCAG AA, + ARIA sui componenti, `prefers-reduced-motion`), con una **verifica automatica in CI** che impedisce le regressioni. +2. Un **test e2e smoke** guida l'app Tauri vera (backend Rust + WebKitGTK) su Linux in CI, su un database reale. +3. `SECURITY.md` e `README.md` diventano **definitivi** per la v0.1.0 (non più "Draft"/"pre-alpha Milestone 2"). +4. Le due **domande aperte del PRD** sono chiuse; per KDBX 3.1/4.0 l'utente viene avvisato della conversione. + +## Contesto e vincoli (confermati) +- **Macchina di sviluppo** (memoria `keyrust-workflow`): Linux, disco piccolo (38 GB, ~5 GB liberi ora), niente + WebKitGTK → il crate app non si compila né si avvia qui; nessuna build Tauri locale. Il frontend (Vite, Vitest) e + Chromium via Playwright invece girano qui: Playwright **1.48.2** e il browser `chromium-1140` sono già nella cache + (`~/.cache/ms-playwright`). L'e2e Tauri si verifica **solo in CI**. +- **Macchina di test dell'utente**: PC Windows aziendale, nessuna installazione non firmata, nessuna modifica alla + sicurezza. Strumenti già presenti: Assistente vocale (Narrator), `pnpm tauri dev`. +- **Decisioni dell'utente (2026-10-28)**: + - (a) e2e: il database si apre da un **file recente pre-caricato** in un `XDG_CONFIG_HOME` temporaneo; **nessun + hook di test** nel codice di produzione; la creazione di un database resta fuori dall'e2e; + - (b) audit automatico: **axe-core + Playwright sulla build demo** (Chromium), CI fallisce su violazioni + `serious`/`critical`; in più controlli manuali da tastiera e con Narrator; + - (c) screenshot del README: **Playwright sulla demo**, PNG committati; + - (d) KDBX 3.1/4.0: **avviso non bloccante** all'apertura ("salvando, il database diventa KDBX 4.1"). +- **Fatti dal codice**: + - percorsi aperti solo da dialog o file recenti: `AllowedPaths` è popolato da `choose_*` e da `recent_files` + (`crates/app/src/commands.rs:54,159-170,251`); le impostazioni sono in `app_config_dir()/settings.json` + (`crates/app/src/lib.rs:115`), che su Linux segue `XDG_CONFIG_HOME` → l'e2e non richiede hook; + - `DatabaseInfo.version: (u16, u16)` esiste già (`crates/core/src/model.rs:145`), ma `Vault::write` porta la + versione a 4.1 **prima** di serializzare e sostituire il file (`crates/core/src/vault.rs:297-301`) e non la + ripristina se il salvataggio fallisce → serve una piccola correzione nel core (§ 4.2, revisione M4A-01); + - il webview **riceve** password in chiaro in tre casi: modifica di una voce (`get_entry_for_edit` → `DraftView`, + `crates/app/src/commands.rs:404`), rivelazione esplicita (`reveal_field`) e generatore; liste e dettaglio non le + contengono e la copia negli appunti avviene in Rust (revisione M4A-02); + - ARIA già presente: `tree`/`treeitem` con roving tabindex (`SidebarTree.svelte`), `listbox`/`option` + (`VaultScreen.svelte`, `EntryListItem.svelte`), `aria-live`/`role=status`/`role=alert` in Toast, Banner, Unlock, + Create, Settings; `:focus-visible` globale e una regola `prefers-reduced-motion` in `app.css` → il lavoro è un + **audit con correzioni mirate**, non una riscrittura; + - la demo (`DemoVault`) si attiva quando `isTauri()` è falso (`crates/app/ui/src/lib/api/index.ts:15`), quindi anche + in `vite preview` della build statica; password demo `secret`; + - fixture: `tests/fixtures/keepassxc-rich.kdbx` (KDBX 4) e `keepassxc-kdbx31.kdbx`, password + `keyrust-test-password` (`tests/fixtures/README.md`). +- **Autorizzato**: commit e push su `milestone-4a`. **Non autorizzato**: push su `main` (PR e merge li fa l'utente). + L'implementazione parte solo dopo l'approvazione del piano e la conferma dell'utente. + +## Criteri di accettazione + +### 1. Audit di accessibilità +1. **Harness Playwright** in `crates/app/ui/e2e-web/` (nome distinto dall'e2e Tauri): + - dipendenze dev esatte: `@playwright/test@1.48.2` (stesso browser già in cache) e `@axe-core/playwright` della + serie compatibile (versione esatta nel lockfile); + - `playwright.config.ts` con `webServer` = `pnpm build && pnpm preview --port 4173 --strictPort` (build demo + statica, CSP di produzione non applicata: è il webview a imporla, non Vite), un solo progetto Chromium, + viewport 1100×720 (la finestra Tauri di default); + - script `pnpm test:web` (`playwright test -c e2e-web`); escluso da `pnpm test` (Vitest) e dal lint dei sorgenti + solo se necessario, mai dal typecheck. +2. **Scansione axe** (`e2e-web/a11y.spec.ts`) con tag `wcag2a`, `wcag2aa`, `wcag21a`, `wcag21aa`, su ogni stato: + Unlock (vuoto, con file recenti, password errata), Create (passi del wizard), Vault (lista, voce selezionata, + ricerca senza risultati, cestino, gruppo vuoto), Entry editor (nuova voce e modifica), popover del Generator, + Settings (ogni scheda), pannello Shortcuts, Command palette, ConfirmDialog, Banner (es. modifica esterna simulata + dalla demo se disponibile, altrimenti saltato con motivazione nel test), Toast. + - Il test **fallisce** su qualunque violazione d'impatto `serious` o `critical`; quelle `moderate`/`minor` vengono + stampate e annotate e vanno corrette o motivate in `docs/ACCESSIBILITY.md`. + - Nessuna regola axe disattivata globalmente; un'eccezione puntuale è ammessa solo con commento nel test e voce in + `docs/ACCESSIBILITY.md`. +3. **Tastiera e ordine di tab** (`e2e-web/keyboard.spec.ts`), asserzioni sull'elemento attivo: + - Vault: Tab percorre nell'ordine ricerca → albero dei gruppi (**una** tappa) → lista voci (**una** tappa) → + azioni del dettaglio; Shift+Tab percorre lo stesso ordine al contrario; + - albero: frecce Su/Giù cambiano gruppo, Home/End vanno al primo/ultimo; se l'albero ha nodi espandibili, + Destra/Sinistra espandono/comprimono (APG Tree View), altrimenti nessun `aria-expanded` è esposto; + - lista: frecce Su/Giù, Home/End, Invio apre l'editor; + - dialog (Settings, Confirm, Palette): il focus entra nel dialog, resta intrappolato, Esc chiude e il focus torna + all'elemento che l'ha aperto; + - ogni azione del menu "Keyboard Shortcuts" raggiungibile anche senza mouse: le scorciatoie JS documentate in + `commands.json` vengono invocate una per una e producono l'effetto atteso (quelle solo native del menu sono + escluse ed elencate). +4. **Focus visibile** (revisione M4A-03): per ogni elemento interattivo raggiunto col Tab nelle schermate sopra: + - l'indicatore è **reso davvero**: sull'elemento o su un antenato dichiarato nel test (es. il wrapper + `focus-within` di SecretInput, mappa esplicita elemento → portatore dell'indicatore) c'è un `outline` con + `outline-width` > 0, `outline-style` ≠ `none` e colore con alfa 1, **oppure** un `box-shadow` con spread > 0 e + colore con alfa 1; + - l'indicatore **compare o cambia con il focus da tastiera**: gli stili calcolati del portatore prima del focus e + dopo il Tab sono diversi (un'ombra decorativa preesistente e immutata non conta); + - il **colore effettivo** dell'indicatore (quello calcolato, non il token di base) ha contrasto ≥ 3:1 con lo sfondo + adiacente calcolato del portatore (primo antenato con sfondo opaco). Il colore calcolato viene convertito in sRGB + nel test con la stessa funzione del punto 5 (esportata da un modulo condiviso, `src/lib/a11y/contrast.ts`); + - un portatore che non soddisfa una delle tre condizioni fa fallire il test con il selettore dell'elemento. +5. **Contrasto dei token** (`src/tests/contrast.test.ts`, Vitest, nessun browser): + - elenco esplicito delle coppie testo/sfondo usate dai componenti (foreground, muted-foreground su background, + surface, sidebar, muted/accent, selection; destructive/warning/success text sui rispettivi sfondi soft; avatar; + toast) con la soglia corretta (4,5:1 testo normale, 3:1 testo grande ≥ 18,66 px bold o ≥ 24 px, 3:1 componenti + non testuali: bordi degli input, anello di focus, segmenti dello StrengthMeter rispetto allo sfondo); + - i valori sono letti dal CSS di Tailwind v4 (`tailwindcss/theme.css`, colori `oklch`) e convertiti in sRGB nel + test (conversione OKLCH → OKLab → sRGB lineare → luminanza relativa WCAG): niente valori copiati a mano; + - ogni coppia che non passa viene corretta cambiando il **token** in `app.css` (non la singola classe), poi + ricontrollata da axe. Caso noto da verificare: `muted-foreground` (zinc-500) su `muted`/`accent` (zinc-100). +6. **Reduced motion**: con `reducedMotion: 'reduce'` emulato, aprire Settings, Palette, Toast e popover non produce + animazioni/transizioni > 0,01 s (durate calcolate da `getComputedStyle` sugli elementi animati) e nessuno + `scroll-behavior: smooth`; senza emulazione le animazioni restano. +7. **ARIA**: correzioni emerse dall'audit; in particolare verificare e, se manca, aggiungere: + - albero: `aria-level`, `aria-setsize`/`aria-posinset` se il raggruppamento visivo non è DOM-annidato, nome + accessibile di ogni `treeitem` comprensivo del conteggio ("Work, 12 entries") senza duplicazioni lette; + - lista: `aria-activedescendant` **oppure** roving tabindex (uno solo dei due, coerente), `aria-selected` su ogni + `option`, nome della lista che riflette il gruppo o la ricerca corrente; + - annunci `aria-live`: esito di copia ("Password copied, clears in 20 s"), salvataggio, lock automatico e risultati + della ricerca (conteggio, `polite`, con debounce per non annunciare a ogni tasto); errori di Unlock/Create con + `role="alert"` e collegati al campo via `aria-describedby`; + - StrengthMeter: la robustezza è anche testo (già nel DESIGN) ed esposta come `aria-valuetext` o testo associato; + - SecretInput: il pulsante mostra/nascondi ha `aria-pressed` e un nome che non cambia lingua/forma a metà. +8. **`docs/ACCESSIBILITY.md`** (nuovo, in inglese): cosa viene verificato automaticamente e come, la checklist + manuale, le eccezioni motivate, i limiti noti (es. la CSP/WebKitGTK e WebView2 non sono il Chromium del test; + annunci di Narrator/Orca dipendono dal motore). +9. **Checklist manuale** in `docs/DEVELOPMENT.md` per l'utente su Windows, senza installazioni: con `pnpm tauri dev`, + Narrator (Ctrl+Win+Invio) su Unlock → Vault → copia password → editor → Settings; zoom al 200% (Ctrl+più) senza + perdita di contenuto; contrasto elevato di Windows (solo osservazione, nessun requisito V1 oltre "resta usabile"). + +### 2. Test e2e smoke (Tauri, Linux, CI) +1. **Pacchetto** `crates/app/e2e/` con `package.json` proprio (pnpm, `packageManager` uguale alla UI), lockfile + committato, dipendenze esatte: WebdriverIO (`@wdio/cli`, `@wdio/local-runner`, `@wdio/mocha-framework`, + `@wdio/spec-reporter`, `@wdio/globals`) e TypeScript. Il config segue la guida ufficiale Tauri 2 "WebdriverIO": + capability `tauri:options.application` = `target/debug/keyrust`, `tauri-driver` avviato in `beforeSession` e + chiuso in `afterSession`. +2. **Preparazione dati, senza hook** (`e2e/setup.ts`, in `onPrepare`): + - crea una cartella temporanea; vi **copia** `keepassxc-rich.kdbx` e `keepassxc-kdbx31.kdbx` (le fixture + originali non vengono mai modificate); + - scrive `$XDG_CONFIG_HOME/io.github.downlevel.keyrust/settings.json` con i due percorsi in `recent_files` + (stesso schema di `keyrust_core::settings::Settings`, campi mancanti lasciati ai default via `serde(default)`), + e `idle_lock_mins` al default; + - esporta `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_CACHE_HOME` temporanei per l'app (nessuno stato del runner + toccato); il percorso esatto della config dir è verificato all'avvio dal test (se il file recente non compare, + il test fallisce con un messaggio che stampa la directory attesa). +3. **Scenario** (`e2e/specs/smoke.e2e.ts`), un solo avvio dell'app: + 1. la schermata Unlock elenca i due file recenti; + 2. scelta di `keepassxc-rich.kdbx`, password errata → messaggio d'errore (`role=alert`), il campo resta + focalizzato; + 3. password corretta → Vault visibile, la lista contiene le voci attese della fixture (titoli dal + `tests/fixtures/README.md`), nessuna password in chiaro nel DOM prima di modifica o rivelazione (revisione + M4A-04): uno script nel webview percorre l'intero documento (anche i nodi nascosti e i portali) e cerca le + password note delle voci della fixture in `textContent` di ogni nodo, in **ogni valore di attributo** e nel + valore corrente (`.value`) di ogni `input`/`textarea`; il controllo si ripete dopo la selezione di una voce + (dettaglio aperto, password mascherata); + 4. ricerca per una parte del titolo → la lista si riduce alla voce attesa; cancellare la ricerca la ripristina; + 5. modifica del titolo di una voce e salvataggio tramite un percorso gestito dal **frontend** (pulsante Save + dell'editor/Command palette, non l'acceleratore nativo del menu GTK, che WebDriver non può premere) → indicatore + "unsaved" sparito, stato "Saved"; + 6. Lock → torna la schermata Unlock; + 7. apertura di `keepassxc-kdbx31.kdbx` → banner informativo di conversione (vedi § 4) visibile; nessun + salvataggio. + - Dopo la sessione, un passo della CI esegue `keepassxc-cli show` sulla **copia** salvata e verifica il nuovo + titolo: la prova che il file scritto dall'app vera resta leggibile da KeePassXC. +4. **CI**: nuovo job `e2e` (ubuntu-24.04), su ogni evento di CI (non solo PR) perché serve a verificare il branch: + - prerequisiti Tauri come nel job `app` + `webkit2gtk-driver`, `xvfb`, `keepassxc`; + - `cargo install tauri-driver --locked --version ` con cache; + - build `pnpm tauri build --debug --no-bundle` (nessun installer, nessuna firma); + - `xvfb-run -a pnpm --dir crates/app/e2e test`; + - in caso di errore carica come artefatto log dell'app (`KEYRUST_LOG=info`, stderr) e screenshot WebDriver + (retention 7 giorni). I log non contengono valori di campo (policy M1), ma la password delle fixture è pubblica. + - `timeout-minutes` dichiarato; il job `e2e` non sostituisce il job `app`. +5. **Rischi dichiarati**: WebKitWebDriver può richiedere ritardi per il rendering; si usano solo attese su + condizioni (`waitUntil`/`waitForDisplayed`), mai `pause` fisse. La KDF della fixture deve stare sotto i limiti + M3c (lo è: creata da `keepassxc-cli` con i default). + +### 3. Screenshot per il README +1. `e2e-web/screenshots.spec.ts`, eseguito **solo** con `pnpm screenshots` (non in CI, non in `test:web`): demo, + viewport 1100×720, `deviceScaleFactor: 2`, font bundlati già caricati (`document.fonts.ready`), animazioni + disattivate. +2. PNG in `docs/screenshots/`: `unlock.png`, `vault.png`, `editor-generator.png`, `settings.png`; ottimizzati + (nessun file > 400 KB; se serve `oxipng`/`pngquant` locale, altrimenti scala 1,5). +3. I dati mostrati sono quelli della demo (nessun dato reale, nessun nome di persona reale oltre a quelli già nella + demo); nessuna password in chiaro negli screenshot. + +### 4. Domande aperte del PRD +1. **Conflitti di sync** → decisione registrata nel PRD (§ Domande aperte diventa "Decisioni"): in V1 Keyrust rileva + la modifica esterna (lunghezza + SHA-256, prima e dopo) e chiede *Reload* / *Keep mine*; nessun merge (già fuori + scope). Nessun cambiamento al codice. +2. **KDBX 3.1 e 4.0** → decisione: si aprono in lettura e scrittura; al primo salvataggio diventano KDBX 4.1. Avviso: + - frontend: dopo l'unlock, se `DatabaseInfo.version` < (4, 1), banner **informativo** (tono neutro, non errore) + nel Vault: "This database uses KDBX {version}. Saving converts it to KDBX 4.1, which very old KeePass clients + cannot open." con azione "Dismiss"; + - il banner sparisce dopo il primo salvataggio riuscito (la versione diventa 4.1: rileggere `DatabaseInfo` dopo + il save o aggiornarla localmente) o con Dismiss; ricompare al prossimo unlock se il file non è stato salvato; + - non blocca nulla, non chiede conferme, non cambia il salvataggio; + - priorità rispetto agli altri banner (modifica esterna, salvataggio fallito, lock): quelli esistenti hanno + precedenza; l'avviso di versione non ne nasconde nessuno; + - stringa in `messages/en.json` (i18n), test Vitest su: 3.1 → banner; 4.0 → banner; 4.1 → nessun banner; + sparisce dopo save; Dismiss; la demo resta 4.1 (nessun banner); + - se l'IPC `database_info` non è già chiamato dopo l'unlock, si usa il comando esistente, senza nuovi comandi + IPC. + - **Correzione nel core** (revisione M4A-01): `Vault::write` non modifica più `self.db.config.version` prima di + sapere se il file è stato sostituito. Serializza una configurazione con la versione 4.1 (o imposta 4.1 e la + **ripristina** su ogni ritorno prima della sostituzione: errore di serializzazione, `TooExpensive`, + `ExternalChange`, `Io`); la versione resta 4.1 solo quando il file è stato sostituito (`Ok` e `NotDurable`). + Così `DatabaseInfo.version` è sempre la versione del file su disco. + - Test del core: apertura della copia di `keepassxc-kdbx31.kdbx` → `info().version == (3, 1)`; salvataggio + rifiutato (`ExternalChange` con il file modificato da fuori, e `TooExpensive` con un `max_file_bytes` ridotto) + → ancora `(3, 1)` e file su disco invariato; salvataggio riuscito → `(4, 1)` e il file riaperto è 4.1. + - Test frontend: dopo un salvataggio fallito il banner resta; dopo uno riuscito sparisce. +3. PRD, README e `SECURITY.md` descrivono il comportamento. + +### 5. `SECURITY.md` definitivo +Riscritto in inglese, senza "Draft", con questa struttura (contenuto esistente conservato e riorganizzato, nessuna +affermazione non verificabile nel codice): +1. Reporting (invariato) e **Supported versions** aggiornate a `0.1.x` (la tabella dice che fino al rilascio vale + `main`). +2. **Scope e stato**: non auditato da terzi; cosa copre la v0.1. +3. **Assets** (DB, master password, chiave derivata in memoria, segreti in clipboard, file `settings.json` — non + segreto, ma rivela percorsi). +4. **Trust boundaries** con diagramma Mermaid: processo Rust ↔ webview (IPC), Rust ↔ file system / provider di sync, + Rust ↔ clipboard di sistema, Rust ↔ OS (lock schermo, sospensione). +5. **Attaccanti considerati** (tabella: capacità → mitigazione → dove nel codice/test → rischio residuo): ladro del + file, provider di sync ostile, contenuto del webview compromesso (XSS ipotetico: CSP, capabilities minime, + percorsi solo da dialog/recenti, nessun segreto nelle liste), persona con accesso fisico a sessione bloccata/ + sbloccata, altri processi dello stesso utente, catena di fornitura. +6. **Mitigazioni** (l'elenco attuale, con riferimenti a file/test). Il confine webview è descritto con esattezza + (revisione M4A-02): liste, dettaglio e albero non contengono password; copia negli appunti in Rust; il webview + riceve la password in chiaro solo modificando una voce (`get_entry_for_edit`), rivelandola (`reveal_field`) e + generandola; da lì vale il limite già scritto sulle stringhe JavaScript non azzerabili, e un webview compromesso + (XSS ipotetico) può leggere ciò che è aperto in modifica o rivelato e chiamare i comandi IPC consentiti, ma non + scegliere percorsi di file. Ogni frase di `SECURITY.md` e README che dica di più viene corretta. +7. **Non protegge** (elenco attuale + residui sopra). +8. **Superficie IPC**: elenco dei comandi e cosa espongono (riferimento a `crates/app/src/commands.rs`), test di + configurazione di sicurezza (`crates/app/tests/`). +9. **Regole di sviluppo** (attuali) e **verifica dei rilasci**: rimando a 4b, senza promettere date; frase al futuro + esplicita ("Starting with v0.1.0, release artifacts will be signed…"). +Coerenza: ogni affermazione è stata confrontata con il codice; dove il codice e `SECURITY.md` divergono si corregge +il documento (o si segnala come bug, fuori scope). + +### 6. README curato +In inglese, al posto dell'attuale (status M2 obsoleto): +1. intestazione, badge CI, una frase; **stato**: "alpha — not audited; keep backups" (nessun "production ready"); +2. screenshot (`vault.png` grande, gli altri in una riga); +3. **Features** (solo ciò che esiste), **Not yet / out of scope** (dal PRD); +4. **Security in one minute**: 5–7 punti con link a `SECURITY.md`; +5. **Architecture**: diagramma Mermaid (core / app Rust / webview / os / file KDBX / clipboard / OS) + 3 righe; +6. **Compatibility**: KeePassXC (test automatici a due vie), KeePassDX/Strongbox (non ancora verificati + manualmente: detto esplicitamente finché la voce di TASKS è aperta), KDBX 3.1/4.0 → 4.1; +7. **Keyrust vs KeePassXC**: tabella onesta (auto-type, integrazione browser, keyfile, TOTP, YubiKey, import, KeeShare + presenti in KeePassXC e assenti in Keyrust v0.1; Keyrust: UI minimale, Rust memory-safe, password assenti da liste e dettagli e copia negli appunti fatta in Rust + (non "segreti mai nel webview": in modifica, rivelazione e generazione la password passa al webview, revisione + M4A-02), + compatibilità verificata in CI) con "as of KeePassXC 2.7"; conclusione: per chi ha bisogno di quelle funzioni, + KeePassXC resta la scelta giusta; +8. **Building** per Linux/Windows/macOS (comandi brevi, rimando a DEVELOPMENT), **Testing** (core, UI, a11y, e2e); +9. Documentazione, licenza (invariati). +I link relativi sono verificati (vedi Verifica). + +### 7. Roadmap e documenti +- `docs/TASKS.md`: spunte per audit, e2e, `SECURITY.md`, README; voci nuove della 4a; 4b invariata. +- `docs/DEVELOPMENT.md`: come eseguire `pnpm test:web`, `pnpm screenshots`, l'e2e (solo CI su Linux, comandi per chi + ha WebKitGTK), checklist manuale accessibilità. +- `docs/DESIGN.md` § Accessibilità: riferimento a `docs/ACCESSIBILITY.md`, eventuali token cambiati. +- `docs/plans/milestone-4a-review-log.md`: log della revisione e dell'ispezione. + +## Approccio e decisioni +- **Due harness distinti, ciascuno per ciò che sa fare**: Playwright/Chromium sulla demo per la copertura completa + delle schermate (gira in locale e in CI), WebdriverIO/tauri-driver per la prova che backend, IPC e WebKitGTK reali + funzionano insieme (solo CI). L'audit non dipende dall'e2e. +- **Nessun hook di test nel prodotto**: l'e2e passa per la stessa via di un utente (file recente), così la regola + "percorsi solo da dialog o recenti" resta senza eccezioni. +- **Correzioni sui token, non sui singoli componenti**, per il contrasto: la V2 (tema scuro) erediterà lo stesso test + con il secondo set di token. +- **Documenti in inglese** (pubblico del repo), piani e log in italiano (come nelle milestone precedenti). +- **Non-goal**: tema scuro; traduzione italiana; creazione del database nell'e2e; e2e su Windows/macOS (tauri-driver + non supporta macOS e su Windows richiede msedgedriver allineato: rinviato); release, firma, build riproducibili + (4b); KeePassDX/Strongbox (task manuale dell'utente); conformità WCAG certificata. + +## Rischi residui +- axe vede il DOM in Chromium, non in WebKitGTK/WebView2: differenze di rendering del contrasto sono improbabili + (stessi colori sRGB), quelle degli annunci dei lettori di schermo restano coperte solo dalla checklist manuale. +- Playwright 1.48.2 è vecchio, scelto per riusare il browser in cache (disco); aggiornarlo è un cambiamento isolato. +- WebKitWebDriver su xvfb può essere instabile: un fallimento intermittente si corregge con attese su condizioni, non + con retry ciechi; se resta instabile il job si marca come informativo solo con decisione dell'utente. +- Il percorso della config dir Tauri su Linux usa l'identificatore (`io.github.downlevel.keyrust`): se Tauri lo + calcolasse diversamente, il test lo segnala subito (§ 2.2). + +## Toolchain per provider +- **Claude (builder)**: Node/pnpm già presenti; Playwright 1.48.2 + chromium-1140 in cache; Vitest; `cargo test -p + keyrust-core` e clippy dei crate compilabili qui. Nessuna build Tauri locale. Controllo `df` prima dei passi + pesanti; dopo i test cancellare `target/debug/incremental` e gli eseguibili di test in `target/debug/deps`. +- **Codex (reviewer/inspector)**: sola lettura del repository; non esegue comandi. + +## Verifica +Locale (Linux, questa macchina): +1. `cd crates/app/ui && pnpm install --frozen-lockfile && pnpm check && pnpm lint && pnpm format:check && pnpm test` + → tutto verde, inclusi `contrast.test.ts` e i test del banner di versione. +2. `pnpm test:web` → axe 0 violazioni `serious`/`critical` su tutti gli stati elencati; tastiera, focus e reduced + motion verdi. Prima delle correzioni, l'output della prima esecuzione (violazioni trovate) è salvato nel log di + revisione come baseline: la prova che l'audit misura qualcosa. +3. `pnpm screenshots` → i 4 PNG prodotti, < 400 KB ciascuno, controllati a occhio (nessun segreto in chiaro). +4. `cargo test -p keyrust-core` e `cargo clippy -p keyrust-core --all-targets -- -D warnings` (nessuna regressione; + nel core cambia solo la gestione della versione in `Vault::write`, con i test del § 4.2); `cargo clippy -p keyrust-app --all-targets --target x86_64-pc-windows-msvc` + con il finto `llvm-rc` (memoria) se il crate app viene toccato. +5. Link del README/SECURITY: script che estrae i link relativi e verifica l'esistenza dei file (`docs/…`, + `docs/screenshots/…`, ancore escluse); i diagrammi Mermaid controllati con il renderer di GitHub sulla pagina + del branch. +6. `pnpm --dir crates/app/e2e install --frozen-lockfile && pnpm --dir crates/app/e2e exec tsc --noEmit` (l'e2e non + gira qui, ma compila). + +CI (su push di `milestone-4a`, stato letto dall'API pubblica di GitHub): +7. Job `core` ×3, `app` ×3 (con `pnpm test:web` aggiunto nel job Linux, Chromium installato con + `playwright install --with-deps chromium`), `deny`, `fuzz`: verdi. +8. Job `e2e`: verde, con lo scenario completo e il passo `keepassxc-cli show` sul file salvato dall'app che mostra il + titolo modificato. + +Manuale (utente, Windows, nessuna installazione): checklist di accessibilità di `docs/DEVELOPMENT.md` con Narrator e +zoom 200%; esito annotato in `docs/ACCESSIBILITY.md`. Non blocca la PR, ma la voce di TASKS si spunta solo dopo. diff --git a/docs/screenshots/editor-generator.png b/docs/screenshots/editor-generator.png new file mode 100644 index 0000000..aaa975f Binary files /dev/null and b/docs/screenshots/editor-generator.png differ diff --git a/docs/screenshots/settings.png b/docs/screenshots/settings.png new file mode 100644 index 0000000..32d6cd9 Binary files /dev/null and b/docs/screenshots/settings.png differ diff --git a/docs/screenshots/unlock.png b/docs/screenshots/unlock.png new file mode 100644 index 0000000..667d7a5 Binary files /dev/null and b/docs/screenshots/unlock.png differ diff --git a/docs/screenshots/vault.png b/docs/screenshots/vault.png new file mode 100644 index 0000000..6f75da9 Binary files /dev/null and b/docs/screenshots/vault.png differ