diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md index d7d9468..17328f2 100644 --- a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md @@ -1,21 +1,33 @@ -## Pull Request - -### Summary -Please describe the purpose of this PR and the user-facing change it contains. - -### Changes -- What changed -- Why it changed -- How it was verified - -### Checklist -- [ ] Code changes are covered by tests when appropriate -- [ ] Documentation has been updated for user-facing changes -- [ ] The package metadata is correct for installable builds -- [ ] No generated or sensitive files are committed -- [ ] This PR is ready for review - -### Notes -- The repository uses `master` as the mainline branch. -- Workflow names: `Python Tests`, `Build package`, `Publish docs`, `Release Please`. -- If AI assistance was used, describe the role of the AI and any verification performed. +## Squash-merge commit message + + + +```text +{{MESSAGE}} +``` + +## Summary + +{{SUMMARY}} + +## Checks + +- [{{CHECK_TITLE}}] The title is a Conventional Commits subject. +- [{{CHECK_FILES}}] No database files (`*.duckdb`) or local `settings.json` are tracked. +- [{{CHECK_AI}}] AI assistance disclosed per [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md#ai-transparency): {{AI_MODEL}} +- [{{CHECK_SUITES}}] Suites run locally: {{SUITES}} +- Linked issue: {{ISSUE}} diff --git a/.github/knowledge/electron-python-runtime.md b/.github/knowledge/electron-python-runtime.md index 2fd89af..5c91c5d 100644 --- a/.github/knowledge/electron-python-runtime.md +++ b/.github/knowledge/electron-python-runtime.md @@ -1,148 +1,75 @@ # Finance Mosaix Electron App -This note covers the Electron desktop wrapper and the packaged Python runtime used by -Finance Mosaix. +This note covers the Electron desktop shell and the bundled Python runtime used by +Finance Mosaix. Commands and the variants are described in `electron/README.md`. ## Electron app overview -The `electron/` directory contains the desktop wrapper that launches the Streamlit -dashboard from `dashboard/app.py` inside a native Electron window. +The `electron/` directory contains the desktop shell. It starts the Streamlit dashboard +from `src/finance_mosaix/dashboard/app.py` on a free local port and shows it in an +Electron window. The shell is split into modules under `electron/src/`: -### Local development +- `resolve-runtime.js`: picks the Python interpreter (see below) +- `python-locator.js`, `venv-manager.js`: system Python and the managed venv +- `server-process.js`: starts, health-checks and stops the Streamlit process +- `legacy-notice.js`, `smoke.js`, `chrome.js`, `i18n.js`: legacy data notice, `--smoke` + check, window chrome and texts -1. Open a terminal at the project root. -2. Install Node dependencies inside `electron/`: +## Packaged Python runtime -```bash -cd electron -npm install -``` +The full variant ships a relocatable CPython built by +[python-build-standalone](https://github.com/astral-sh/python-build-standalone). The +slim variant has no interpreter and uses a system Python. -3. Start the Electron app: +### How the runtime is built -```bash -npm start -``` +`npm run build:runtime` (in `electron/`) runs `runtime/build-runtime.js`: -The app launches the Streamlit dashboard and embeds it in a desktop window. +1. The archive for the current platform is read from `runtime/runtime.lock.json` + (release, Python version, asset name and SHA-256 per target). It is downloaded to + `build/cache/` if it is not cached yet. +2. The SHA-256 sum is checked, both for a cached archive and for a new download. A + cached archive with a wrong sum is deleted and downloaded again. +3. The archive is unpacked into `build/python/`. On Windows the script uses the + system `tar.exe`, because the GNU tar of Git Bash reads `D:\...` as a remote host. +4. `build/requirements.txt` is installed into the runtime with `pip`. The environment + variables `PYTHONNOUSERSITE=1` and the `PYTHONPATH` and `PYTHONHOME` variables are + removed for this step, so the build does not depend on the user's Python. +5. An import check runs for streamlit, duckdb, pandas, numpy, openpyxl, altair, + matplotlib and seaborn. -### Packaging +`build/requirements.txt` comes from `scripts/write_requirements.py` through +`npm run build:requirements`. -From the `electron/` directory: +The packaged app finds the runtime at `/python/bin/python3` (Windows: +`python.exe`). Packaging copies `electron/build/python/` there (`electron-builder.full.yml`). -```bash -npm run dist -``` +### Updating the Python version -The build is configured for Windows with `nsis` and includes the project files -required to launch the dashboard. +Change `release`, `python` and the `asset` and `sha256` values of each target in +`runtime/runtime.lock.json`. Each target needs its own SHA-256 sum. Then run +`npm run build:runtime` on each platform that is packaged. -### Icon regeneration - -If the packaged icon needs to be rebuilt from the SVG source, run: - -```bash -npm run generate-icon -``` - -This generates `docs/img/favicon.ico` from `docs/img/favicon.svg` at 256x256. - -### Notes - -- The Electron wrapper looks for Python either from the host environment or via the - `PYTHON_EXECUTABLE` environment variable. -- For a bundled runtime, use: - -```bash -npm run build-runtime -``` - -- `npm run dist` now builds the embedded Python runtime automatically before packaging. -- Generated Electron folder artifacts include `python-runtime/`, `dist/`, and `build_log.txt`. -- To clean the Electron folder before a fresh build, remove `electron/node_modules/`, - `electron/python-runtime/`, `electron/dist/`, and `electron/build_log.txt`. -- `electron/build_python_runtime.py` is the canonical runtime builder; the shell script - `electron/build-python-runtime.sh` may be removed if you want a smaller folder. - -## Electron Packaged Python Runtime - -The Electron desktop wrapper (`electron/`) bundles a private Python runtime so the -Streamlit dashboard can run on a machine without a system-wide Python install. This -runtime is built by [`electron/build_python_runtime.py`](../electron/build_python_runtime.py) -into `electron/python-runtime` (gitignored, regenerated locally and in CI — never -committed). - -### Why the previous runtime approach broke - -The original script created the runtime with a plain `venv.EnvBuilder`, then rewrote -`pyvenv.cfg` to try to make it relocatable, and installed the project with -`pip install -e .`. - -This was broken for two independent reasons: - -1. **A stock Windows venv is not self-contained.** `Scripts/python.exe` is only a thin - stub — it has no interpreter DLL or standard library of its own. It relies entirely - on `pyvenv.cfg`'s `home = ...` value to locate the *original* base Python - installation's DLL and stdlib. The old script rewrote `home` to point at the venv's - own `Scripts` folder, which doesn't contain the stdlib/DLLs either — so - `python.exe` could no longer initialize. In practice this showed up as `python.exe` - hanging or exiting immediately without useful output whenever Electron tried to - launch Streamlit. -2. **Editable installs aren't relocatable.** `pip install -e ROOT` writes a path finder - pointing at the absolute dev checkout path. That path doesn't exist once the runtime - is packaged and moved to another machine. - -Even without those bugs, a regular venv is always tied to whatever base Python produced -it — it can never be a truly portable, drop-in runtime for an end user's machine. - -### Current approach - -On Windows, `build_python_runtime.py` now: - -1. Downloads the official **embeddable CPython distribution** - (`python.org/ftp/python//python--embed-amd64.zip`), which ships - its own interpreter DLL and standard library — no dependency on any Python - installation on the build machine or the end user's machine. -2. Enables `site-packages` support by editing the shipped `python311._pth` file - (uncommenting `import site` and adding `Lib\site-packages`). -3. Bootstraps `pip` via `get-pip.py`. -4. Installs the project with a normal (non-editable) `pip install ROOT` so the package - files are copied into the runtime's own `site-packages`, not linked back to the dev - checkout. - -The result is a fully self-contained `python-runtime` folder: no external Python -dependency, and no absolute paths back to the build machine. It is genuinely -relocatable, which is what the packaged Electron installer (built by -`npm run dist` / `.github/workflows/electron-package.yml`) requires to work on a fresh -system. - -`python.exe` now lives directly at `python-runtime/python.exe` (embeddable layout) -rather than `python-runtime/Scripts/python.exe` (venv layout). `electron/main.js`'s -`getPythonExecutable()` checks the new location first and falls back to the old -`Scripts/python.exe` path for backward compatibility with any previously built runtime. +### Repairing a broken runtime -For non-Windows platforms (no official embeddable distribution exists), the script -falls back to a plain venv via `build_posix_venv_runtime()` — this still requires a -compatible system Python to be present at runtime and is not fully self-contained. +If the bundled interpreter fails to start or the dashboard does not import its +dependencies, delete `electron/build/python/` and run `npm run build:runtime` again. -### Repairing a broken runtime +For the system Python variant, use Tools → Reinstall Python environment in the app, or +delete the `venv/` folder in the data folder. The next start recreates it. -If the packaged app's `python.exe` hangs or fails to start (e.g. after moving the app, -or after `pyvenv.cfg` corruption from an older build), rebuild the runtime from -scratch: +### Interpreter order at runtime -```powershell -cd electron -Remove-Item -Recurse -Force python-runtime -python build_python_runtime.py -npm start -``` +`src/resolve-runtime.js` checks, in this order: `FINANCE_MOSAIX_PYTHON`, the development +venv `.venv` (not packaged), the bundled runtime, then the system Python with the managed +venv in the user data folder. The order is also described in `electron/README.md`. -## Electron Version Resolution In CI +## Electron version resolution in CI ### Symptom -During `npm run dist`, the version sync step (`electron/sync_version.js`) can report: +When the version sync step (`electron/sync_version.js`, `npm run sync-version`) runs +without a tag, it can report: - `Electron package version updated -> 0.0.0` @@ -150,7 +77,7 @@ This causes Electron package metadata to regress to a placeholder version. ### Root cause pattern -`electron/sync_version.js` asks Python for `src.version.get_canonical_version()`. +`electron/sync_version.js` asks Python for `finance_mosaix.core.version.get_canonical_version()`. If `setuptools_scm` is not available in the Python environment used by the workflow, SCM-based version resolution may fail and fallback selection becomes critical. @@ -160,12 +87,13 @@ Electron version. ### Guardrails implemented -1. `src/version.py` now treats installed metadata version `0.0.0` as a placeholder +1. `finance_mosaix/core/version.py` treats installed metadata version `0.0.0` as a placeholder and ignores it. -2. `src/version.py` now reads `[tool.setuptools_scm].fallback_version` from +2. `finance_mosaix/core/version.py` reads `[tool.setuptools_scm].fallback_version` from `pyproject.toml` and uses it before installed package metadata. -3. `.github/workflows/electron-package.yml` now installs `setuptools_scm` in both - Windows and Linux packaging jobs. +3. In `.github/workflows/electron.yml` a release build takes the version from the tag + (`npm version`, `electron/VERSION`). Other runs call `npm run sync-version` after + `actions/checkout` with `fetch-depth: 0`. 4. `test/test_version_sync.py` includes regression tests for this exact fallback scenario. @@ -183,6 +111,7 @@ Electron version. ### CI checklist for future changes - Keep `actions/checkout` with `fetch-depth: 0` so tags/history are available. -- Ensure `setuptools_scm` is installed before `npm run dist`. +- Make sure the Python used by `npm run sync-version` can resolve the version in the + workflow (`.github/workflows/electron.yml`). - If versioning behavior changes, run `pytest test/test_version_sync.py -q`. - Do not rely on installed package metadata alone for canonical versioning. diff --git a/.github/workflows/electron-package.yml b/.github/workflows/electron-package.yml deleted file mode 100644 index ea7459b..0000000 --- a/.github/workflows/electron-package.yml +++ /dev/null @@ -1,97 +0,0 @@ -name: Electron packaging - -on: - workflow_dispatch: - pull_request: - paths: - - 'electron/**' - - 'dashboard/**' - - 'src/**' - - 'pyproject.toml' - - '.github/workflows/electron-package.yml' - push: - branches: - - master - paths: - - 'electron/**' - - 'dashboard/**' - - 'src/**' - - 'pyproject.toml' - - '.github/workflows/electron-package.yml' - -jobs: - build-windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install Node.js 20 - uses: actions/setup-node@v5 - with: - node-version: '20' - - - name: Install Python dependencies - run: | - python -m pip install --upgrade pip - python -m pip install setuptools wheel setuptools_scm - - - name: Install Electron dependencies - run: | - cd electron - npm install - - - name: Package Windows Electron app - run: | - cd electron - npm run dist - - - name: Upload Windows packaged artifact - uses: actions/upload-artifact@v4 - with: - name: finance-mosaix-electron-windows - path: electron/dist/** - - build-linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install Node.js 20 - uses: actions/setup-node@v5 - with: - node-version: '20' - - - name: Install Python dependencies - run: | - python -m pip install --upgrade pip - python -m pip install setuptools wheel setuptools_scm - - - name: Install Electron dependencies - run: | - cd electron - npm install - - - name: Package Linux Electron app - run: | - cd electron - npm run dist -- --linux - - - name: Upload Linux packaged artifact - uses: actions/upload-artifact@v4 - with: - name: finance-mosaix-electron-linux - path: electron/dist/** diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml new file mode 100644 index 0000000..d1419a5 --- /dev/null +++ b/.github/workflows/electron.yml @@ -0,0 +1,179 @@ +# Electron app: tests, installers for all platforms with smoke tests, and the GitHub release. +# On push/PR only the tests run. Installers are built when started by hand (workflow_dispatch, +# uploaded as workflow artifacts) or when release-please.yml calls it with a release tag. +name: Electron + +on: + pull_request: + paths: + - 'electron/**' + - 'src/**' + - 'pyproject.toml' + - '.github/workflows/electron.yml' + push: + branches: + - master + paths: + - 'electron/**' + - 'src/**' + - 'pyproject.toml' + - '.github/workflows/electron.yml' + workflow_dispatch: + workflow_call: + inputs: + tag: + type: string + required: false + default: '' + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Python tests + run: | + python -m pip install '.[test]' + pytest + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: electron/package-lock.json + - name: Electron tests + working-directory: electron + run: | + npm ci + npm test + + build: + needs: test + # In a called workflow github.event_name is the caller's event, so the release is recognised by its tag. + if: github.event_name == 'workflow_dispatch' || inputs.tag != '' + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest # AppImage + Flatpak (full), AppImage (slim), x64 + - macos-latest # dmg, arm64 + - macos-15-intel # dmg, x64 + - windows-latest # NSIS installer, x64 + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash + working-directory: electron + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # setuptools_scm derives the version from git tags + - uses: actions/setup-python@v5 + with: + python-version: '3.13' # write_requirements.py and sync-version + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: electron/package-lock.json + + - name: Version + env: + TAG: ${{ inputs.tag }} + run: | + if [ -n "$TAG" ]; then + npm version "${TAG#v}" --no-git-tag-version --allow-same-version + echo "${TAG#v}" > VERSION + else + python -m pip install setuptools_scm + npm run sync-version + fi + + - run: npm ci + - name: Bundled Python runtime + run: npm run build:runtime + + - name: Flatpak tooling + if: runner.os == 'Linux' + run: | + sudo apt-get update -q && sudo apt-get install -yq flatpak flatpak-builder + flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak install --user -y --noninteractive flathub \ + org.freedesktop.Platform//26.08 org.freedesktop.Sdk//26.08 org.electronjs.Electron2.BaseApp//26.08 + + - name: Installers + env: + CSC_IDENTITY_AUTO_DISCOVERY: "false" # no code signing yet + run: | + npm run dist:full + npm run dist:slim + + - name: Smoke test full without Python in PATH (Linux) + if: runner.os == 'Linux' + run: | + sudo apt-get install -yq xvfb + xvfb-run -a bash -c 'env -i HOME="$HOME" DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" dist/full/linux-unpacked/finance-mosaix --smoke --no-sandbox' + + - name: Smoke test full without Python in PATH (macOS) + if: runner.os == 'macOS' + run: | + app=$(compgen -G 'dist/full/mac*/Finance Mosaix.app' | head -n 1) + [ -n "$app" ] || { echo "Finance Mosaix.app not found"; exit 1; } + env -i HOME="$HOME" "$app/Contents/MacOS/Finance Mosaix" --smoke + + - name: Smoke test full without Python in PATH (Windows) + if: runner.os == 'Windows' + run: | + env -i SYSTEMROOT="$SYSTEMROOT" "dist/full/win-unpacked/Finance Mosaix.exe" --smoke + + - name: Smoke test slim with the runner's Python (Linux) + if: runner.os == 'Linux' + run: | + xvfb-run -a dist/slim/linux-unpacked/finance-mosaix --smoke --no-sandbox + + - uses: actions/upload-artifact@v4 + with: + name: installer-${{ matrix.os }} + if-no-files-found: error + path: | + electron/dist/full/*-full.AppImage + electron/dist/full/*-full.flatpak + electron/dist/full/*-full.dmg + electron/dist/full/*-full.exe + electron/dist/slim/*-slim.AppImage + electron/dist/slim/*-slim.dmg + electron/dist/slim/*-slim.exe + + release: + if: inputs.tag != '' + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write # Sigstore certificate for the attestation + attestations: write + env: + TAG: ${{ inputs.tag }} + GH_TOKEN: ${{ github.token }} + steps: + - uses: actions/download-artifact@v4 + with: + path: installers + merge-multiple: true + - name: Checksums + run: cd installers && sha256sum * > SHA256SUMS.txt + - uses: actions/attest-build-provenance@v2 + with: + subject-path: installers/* + - name: GitHub release + # release-please creates the release first, so this only uploads the files. + run: | + cd installers + gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" --clobber * diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 9f18f54..dfca61b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -10,6 +10,9 @@ jobs: test: name: Run pytest runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.11', '3.13'] steps: - uses: actions/checkout@v4 with: @@ -17,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index db02c09..8b96110 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,12 +15,27 @@ on: jobs: release: runs-on: ubuntu-latest + outputs: + release_created: ${{ steps.release.outputs.release_created }} + tag_name: ${{ steps.release.outputs.tag_name }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: google-github-actions/release-please-action@v3 + - id: release + uses: googleapis/release-please-action@v4 with: release-type: python - package-name: finance-mosaix token: ${{ secrets.GITHUB_TOKEN }} + + # Tags created with GITHUB_TOKEN do not trigger other workflows, so the installers are built here. + electron: + needs: release + if: needs.release.outputs.release_created == 'true' + uses: ./.github/workflows/electron.yml + with: + tag: ${{ needs.release.outputs.tag_name }} + permissions: + contents: write + id-token: write + attestations: write diff --git a/.gitignore b/.gitignore index ad15200..6360732 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ .dashboard.pid *~$* -dashboard/settings.json +src/finance_mosaix/dashboard/settings.json # IDE / editor settings .vscode/ @@ -39,4 +39,6 @@ docs/.jekyll-cache/ Thumbs.db # Lock files -*.lock \ No newline at end of file +*.lock +# Local planning notes (gitignored) +/.docs/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92b4b9b..288eb65 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,6 +11,18 @@ Thank you for considering a contribution to Finance mosaix. Your work helps impr 4. Make your changes and test locally. 5. Submit a pull request against the `master` branch. +### Opening and merging a PR + +Open PRs with `scripts/dev/create-pr.sh` and merge them with +`scripts/dev/merge-pr.sh`. The script fills the whole PR template, so nothing +is maintained by hand afterwards. The PR title is the squash subject and a +Conventional Commits subject, release-please builds the changelog from it. The +fenced block in the description is the squash body: it never repeats the title +and ends with `Co-authored-by: Claude Sonnet|Opus|Fable x.y `, +never Haiku. Pass the model as `PR_AI_MODEL="Sonnet 5.5"`, the test suites you +ran as `PR_SUITES`, and optionally `PR_SUMMARY`, `PR_ISSUE` or +`PR_MESSAGE_FILE`. `merge-pr.sh --check` validates the message without merging. + ## Review process - Contributions will be reviewed by the maintainer. diff --git a/README.md b/README.md index 86bc1f7..3a2afe9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Finance mosaix +Finance mosaix icon + [![Python Tests](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/pytest.yml/badge.svg)](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/pytest.yml) [![Build package](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/package.yml/badge.svg)](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/package.yml) [![Publish docs](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/pages.yml/badge.svg)](https://github.com/Developer-Simon/finance-mosaix/actions/workflows/pages.yml) @@ -15,8 +17,8 @@ Finance mosaix is a DuckDB-based personal finance application for importing Exce ## What it includes -- `src/`: core finance logic, database schema, import and query helpers -- `dashboard/`: Streamlit dashboard UI, charts, and data views +- `src/finance_mosaix/core/`: core finance logic, database schema, migrations, import and query helpers, CLI +- `src/finance_mosaix/dashboard/`: Streamlit dashboard UI, charts, and data views - `test/`: automated tests for import logic and queries - `docs/`: project-specific documentation and usage guides - `CONTRIBUTING.md`: contribution guidelines @@ -35,9 +37,18 @@ Finance mosaix is named for the way it brings many finance data pieces together ## Quick start -1. Create a Python virtual environment in the project root: +1. Create a Python virtual environment in the project root. + +Linux/macOS: ```bash +python3 -m venv .venv +source .venv/bin/activate +``` + +Windows: + +```powershell python -m venv .venv .\.venv\Scripts\activate ``` @@ -46,16 +57,16 @@ python -m venv .venv ```bash python -m pip install --upgrade pip -python -m pip install . +python -m pip install -e . ``` 3. Generate a sample database with realistic data: ```bash -python create_sample_database.py +python -m finance_mosaix.dashboard.create_sample_database ``` -This creates `finance_sample.duckdb` in the current project directory. +This creates `finance_sample.duckdb` in the project root. 4. Start the dashboard: @@ -79,14 +90,14 @@ This dataset is suitable for taking a dashboard screenshot or exploring the app ## Command-line usage -From the project root: +After `pip install -e .` the `finance-mosaix` console script is available: ```bash -python src/finance_cli.py --init -python src/finance_cli.py --import path/to/file.xlsx -python src/finance_cli.py --balance -python src/finance_cli.py --spending 30 -python src/finance_cli.py --search "rent" +finance-mosaix --init +finance-mosaix --import path/to/file.xlsx +finance-mosaix --balance +finance-mosaix --spending 30 +finance-mosaix --search "rent" ``` ## Docs diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 726f323..0000000 --- a/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -"""FinanceMosaix package alias for Finance mosaix. - -This package exists as a code-friendly alias to the local finance-mosaix checkout, -so internal imports can use `FinanceMosaix.*` while the local folder remains -named `finance-mosaix`. -""" - -from __future__ import annotations - -from pathlib import Path - -ROOT_DIR = Path(__file__).resolve().parent.parent - -# Allow the alias package to expose the existing finance-mosaix package contents. -if '__path__' in globals(): - __path__.insert(0, str(ROOT_DIR)) -else: - __path__ = [str(ROOT_DIR)] - -__all__ = ["dashboard", "src"] \ No newline at end of file diff --git a/branding/README.md b/branding/README.md new file mode 100644 index 0000000..5d346c1 --- /dev/null +++ b/branding/README.md @@ -0,0 +1,23 @@ +# Branding + +Source for the Finance mosaix logo ("Mosaik-M": two legs of tiles with a wedge, wordmark `finance**mosaix**` in Sora). + +`build_logo.py` generates every logo file in the repository, so edit the mark or the colours there and rerun it: + +```bash +python branding/build_logo.py +``` + +It needs `fontTools` (installed with the dashboard dependencies) and ImageMagick (`magick`) with SVG support for the PNG and ICO files. + +| Output | Used by | +|---|---| +| `src/finance_mosaix/dashboard/assets/logo-{light,dark,mark}.svg` | Streamlit sidebar logo and page icon | +| `electron/assets/logo.svg` | Electron title bar (wordmark in `currentColor`) | +| `electron/assets/icon.svg`, `icon.png`, `icons/*.png` | App icons for electron-builder | +| `docs/assets/img/favicons/*` | Docs favicons and web app icons (Chirpy theme) | +| `docs/img/logo.svg` | Docs sidebar avatar | + +Colours: tiles `#4F46E5`, `#6366F1`, `#818CF8`; wedge `#EC4899`. + +`fonts/` holds Sora under the SIL Open Font License (`fonts/OFL.txt`). diff --git a/branding/build_logo.py b/branding/build_logo.py new file mode 100644 index 0000000..456680a --- /dev/null +++ b/branding/build_logo.py @@ -0,0 +1,111 @@ +"""Generates every logo file of the project from the mark below and the Sora font. + +Run from the repository root: python branding/build_logo.py +Needs fontTools (Python) and ImageMagick with SVG support (magick) for the PNG/ICO files. +""" +import shutil +import subprocess +import tempfile +from pathlib import Path + +from fontTools.pens.svgPathPen import SVGPathPen +from fontTools.pens.transformPen import TransformPen +from fontTools.ttLib import TTFont +from fontTools.varLib import instancer + +ROOT = Path(__file__).resolve().parent.parent +FONT = ROOT / "branding" / "fonts" / "Sora[wght].ttf" +DASHBOARD = ROOT / "src" / "finance_mosaix" / "dashboard" / "assets" +ELECTRON = ROOT / "electron" / "assets" +DOCS = ROOT / "docs" / "img" +FAVICONS = ROOT / "docs" / "assets" / "img" / "favicons" # where the Chirpy theme looks for them + +# Mosaik-M on a 64 unit grid: two legs of three tiles and a wedge in the middle. +MARK = """ + + + + + +""" + +FONT_SIZE = 30.4 # wordmark size next to the 64 unit mark +GAP = 16 # space between mark and wordmark +LIGHT_INK = "#31333F" # Streamlit text colour, light theme +DARK_INK = "#FAFAFA" # Streamlit text colour, dark theme +LABEL = 'role="img" aria-label="finance mosaix"' +ICON_SIZES = (16, 24, 32, 48, 64, 128, 256, 512) + + +def svg(view_box, body): + _, _, w, h = view_box.split() + return f'\n{body}\n\n' + + +def text_path(font, text, x, baseline): + """Outlines text as one SVG path (no kerning) and returns it with the end position.""" + scale = FONT_SIZE / font["head"].unitsPerEm + glyphs, cmap, hmtx = font.getGlyphSet(), font.getBestCmap(), font["hmtx"] + pen = SVGPathPen(glyphs, ntos=lambda v: f"{v:.2f}".rstrip("0").rstrip(".")) + for ch in text: + name = cmap[ord(ch)] + glyphs[name].draw(TransformPen(pen, (scale, 0, 0, -scale, x, baseline))) + x += hmtx[name][0] * scale + return pen.getCommands(), x + + +def lockup(ink): + light = instancer.instantiateVariableFont(TTFont(FONT), {"wght": 300}) + bold = instancer.instantiateVariableFont(TTFont(FONT), {"wght": 700}) + # Centre the x-height on the mark. + x_height = light["OS/2"].sxHeight * FONT_SIZE / light["head"].unitsPerEm + baseline = 32 + x_height / 2 + d_light, x = text_path(light, "finance", 64 + GAP, baseline) + d_bold, x = text_path(bold, "mosaix", x, baseline) + return svg(f"0 0 {round(x + 2)} 64", f'{MARK}\n') + + +def rasterize(source, target, size, *extra): + subprocess.run(["magick", "-background", "none", "-density", "1200", str(source), + "-resize", f"{size}x{size}", "-depth", "8", "-strip", *extra, str(target)], check=True) + + +def main(): + mark = svg("0 0 64 64", MARK) + files = { + DASHBOARD / "logo-mark.svg": mark, + DASHBOARD / "logo-light.svg": lockup(LIGHT_INK), + DASHBOARD / "logo-dark.svg": lockup(DARK_INK), + ELECTRON / "icon.svg": mark, + ELECTRON / "logo.svg": lockup("currentColor"), # title bar, inherits the bar colour + FAVICONS / "favicon.svg": mark, + # The docs avatar is cropped to a circle; the margin keeps the tile corners inside it. + DOCS / "logo.svg": svg("-12 -12 88 88", MARK), + } + for path, content in files.items(): + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(content, encoding="utf-8") + print("wrote", path.relative_to(ROOT)) + + if not shutil.which("magick"): + print("magick not found: PNG and ICO files were not updated") + return + icon = ELECTRON / "icon.svg" + rasterize(icon, ELECTRON / "icon.png", 512) + for size in ICON_SIZES: + rasterize(icon, ELECTRON / "icons" / f"{size}x{size}.png", size) + rasterize(icon, FAVICONS / "favicon-96x96.png", 96) + rasterize(icon, FAVICONS / "favicon.ico", 256, "-define", "icon:auto-resize=48,32,16") + # Home screen icons need an opaque background; the margin keeps the mark inside + # the safe zone of a maskable icon (a circle of 80 % of the size). + with tempfile.TemporaryDirectory() as tmp: + tile = Path(tmp) / "tile.svg" + tile.write_text(svg("-18 -18 100 100", f'\n{MARK}')) + rasterize(tile, FAVICONS / "apple-touch-icon.png", 180) + for size in (192, 512): + rasterize(tile, FAVICONS / f"web-app-manifest-{size}x{size}.png", size) + print("wrote PNG icons and favicons") + + +if __name__ == "__main__": + main() diff --git a/branding/fonts/OFL.txt b/branding/fonts/OFL.txt new file mode 100644 index 0000000..f1d9d6a --- /dev/null +++ b/branding/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2019 The Sora Project Authors (https://github.com/sora-xor/sora-font) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/branding/fonts/Sora[wght].ttf b/branding/fonts/Sora[wght].ttf new file mode 100644 index 0000000..3b93d66 Binary files /dev/null and b/branding/fonts/Sora[wght].ttf differ diff --git a/docs/_config.yml b/docs/_config.yml index 3ddf553..cbfddd3 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -15,7 +15,6 @@ social: theme: jekyll-theme-chirpy tagline: "DuckDB-backed personal finance tracker documentation" -favicon: "/img/favicon.ico" avatar: "/img/logo.svg" tabs: - title: "Installation" diff --git a/docs/architecture.md b/docs/architecture.md index a63b30e..1820e7d 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -9,9 +9,9 @@ tags: [architecture, design, duckdb] Finance mosaix is structured around a shared DuckDB backend that is used by: -- a CLI surface (`src/finance_cli.py`) -- a Streamlit dashboard surface (`dashboard/app.py`) -- shared query and import helpers in `src/` +- a CLI surface (`finance_mosaix/core/finance_cli.py`) +- a Streamlit dashboard surface (`finance_mosaix/dashboard/app.py`) +- shared query and import helpers in `finance_mosaix/core/` The project root is `finance-mosaix/`. @@ -19,8 +19,8 @@ The project root is `finance-mosaix/`. ```mermaid graph TD - CLI["CLI
src/finance_cli.py"] - Dashboard["Streamlit Dashboard
dashboard/"] + CLI["CLI
finance_mosaix/core/finance_cli.py"] + Dashboard["Streamlit Dashboard
finance_mosaix/dashboard/"] Importer["Importer
import_transactions.py"] QFinance["Query Layer
query_finance.py + pool queries"] Schema["Schema & Migration
db_schema.py / db_migrate.py"] @@ -38,14 +38,14 @@ graph TD ## Project Layout -- `src/`: database schema, migrations, importer, query layer, and CLI entry point -- `dashboard/`: Streamlit pages, charts, metrics, and data maintenance views +- `finance_mosaix/core/`: database schema, migrations, importer, query layer, and CLI entry point +- `finance_mosaix/dashboard/`: Streamlit pages, charts, metrics, and data maintenance views - `test/`: pytest suite for schema, importer behavior, and query outputs -- `knowledge/`: deep technical notes for migration history, schema decisions, and chart coverage +- `.github/knowledge/`: deep technical notes for migration history, schema decisions, and chart coverage -## Core API Reference (`src/`) +## Core API Reference (`finance_mosaix/core/`) -### `src/db_schema.py` +### `finance_mosaix/core/db_schema.py` Purpose: initialize and access the DuckDB schema and apply migrations when needed. @@ -55,7 +55,7 @@ Public API: - `get_connection(db_path="finance.duckdb", force_migration=False)`: returns a migration-aware DB connection proxy. - `show_schema(db_path="finance.duckdb")`: prints tables and columns for schema inspection. -### `src/db_migrate.py` +### `finance_mosaix/core/db_migrate.py` Purpose: manage schema version metadata and migrate older databases to the current format. @@ -66,7 +66,7 @@ Public API: - `set_db_version(conn, version)`: writes the database schema version. - `migrate_database(conn, db_path)`: performs end-to-end migration to `CURRENT_DB_VERSION`. -### `src/finance_cli.py` +### `finance_mosaix/core/finance_cli.py` Purpose: command-line entry point for initialization, import, inspection, and normalization tasks. @@ -74,14 +74,14 @@ Public API: - `default_db_path()`: returns the default DB location in the project root. - `main()`: argparse-based CLI handler (`--init`, `--import`, `--balance`, `--spending`, `--search`, `--schema`, `--normalize`, `--db`, related options). -### `src/import_transactions.py` +### `finance_mosaix/core/import_transactions.py` Purpose: parse Excel sheets and import normalized records into pool-specific tables. Public API: - `FinanceImporter`: main importer class for sheet loading, parsing, account/category mapping, and database writes. -### `src/query_finance.py` +### `finance_mosaix/core/query_finance.py` Purpose: aggregate facade that delegates to pool-specific query classes. @@ -92,7 +92,7 @@ Public API: - `print_balance_summary()`: terminal helper for account balance summaries. - `print_category_summary(days=30)`: terminal helper for spending category summaries. -### `src/account_balance_queries.py` +### `finance_mosaix/core/account_balance_queries.py` Purpose: account balance snapshot reads/writes, reconciliation, and generated snapshot support. @@ -100,7 +100,7 @@ Public API: - `default_db_path()`: returns the default DB location. - `AccountBalanceQueries`: pool-specific query class for account balances. -### `src/cash_queries.py` +### `finance_mosaix/core/cash_queries.py` Purpose: cash transaction, account, category, and merge operations. @@ -108,7 +108,7 @@ Public API: - `default_db_path()`: returns the default DB location. - `CashQueries`: pool-specific query class for cash data. -### `src/stock_queries.py` +### `finance_mosaix/core/stock_queries.py` Purpose: stock position snapshots, merge workflows, and historical views. @@ -116,7 +116,7 @@ Public API: - `default_db_path()`: returns the default DB location. - `StockQueries`: pool-specific query class for stock data. -### `src/interest_queries.py` +### `finance_mosaix/core/interest_queries.py` Purpose: interest balance change history and consolidation helpers. @@ -124,7 +124,7 @@ Public API: - `default_db_path()`: returns the default DB location. - `InterestQueries`: pool-specific query class for interest data. -### `src/goods_queries.py` +### `finance_mosaix/core/goods_queries.py` Purpose: goods valuations, merge operations, and normalization support. @@ -132,30 +132,30 @@ Public API: - `default_db_path()`: returns the default DB location. - `GoodsQueries`: pool-specific query class for goods valuation data. -### `src/goods_depreciation.py` +### `finance_mosaix/core/goods_depreciation.py` Purpose: calculate derived goods values from depreciation rules. Public API: - `calculate_goods_current_value(purchase_value, depreciation_input, previous_value, months_diff)`: computes normalized goods current value. -## Dashboard Modules (`dashboard/`) +## Dashboard Modules (`finance_mosaix/dashboard/`) -`dashboard/` provides the interactive Streamlit application surface: +`finance_mosaix/dashboard/` provides the interactive Streamlit application surface: -- `dashboard/app.py`: app shell, navigation, and page rendering orchestration. -- `dashboard/charts.py`: Plotly chart builders used by the Charts page. -- `dashboard/charts_pyplot.py`: Matplotlib-based chart helpers (legacy/alternate plotting paths). -- `dashboard/metrics.py`: metric-card and summary rendering helpers. -- `dashboard/data.py`: shared data loading and transformation helpers for pages. -- `dashboard/import.py`: Excel import page and import workflow UI. -- `dashboard/onboarding.py`: first-run and connection setup flow. -- `dashboard/settings.py`: dashboard settings and persistence helpers. -- `dashboard/sheets.py`: sheet/table rendering and tabular helper utilities. -- `dashboard/data_creator.py`: create and seed data workflows. -- `dashboard/data_editor.py`: direct data editing workflows. -- `dashboard/data_organizer.py`: normalization, merge, and cleanup workflows. -- `dashboard/create_sample_database.py`: sample/demo data generator used by onboarding/demo mode. +- `finance_mosaix/dashboard/app.py`: app shell, navigation, and page rendering orchestration. +- `finance_mosaix/dashboard/charts.py`: Plotly chart builders used by the Charts page. +- `finance_mosaix/dashboard/charts_pyplot.py`: Matplotlib-based chart helpers (legacy/alternate plotting paths). +- `finance_mosaix/dashboard/metrics.py`: metric-card and summary rendering helpers. +- `finance_mosaix/dashboard/data.py`: shared data loading and transformation helpers for pages. +- `finance_mosaix/dashboard/import_view.py`: Excel import page and import workflow UI. +- `finance_mosaix/dashboard/onboarding.py`: first-run and connection setup flow. +- `finance_mosaix/dashboard/settings.py`: dashboard settings and persistence helpers. +- `finance_mosaix/dashboard/sheets.py`: sheet/table rendering and tabular helper utilities. +- `finance_mosaix/dashboard/data_creator.py`: create and seed data workflows. +- `finance_mosaix/dashboard/data_editor.py`: direct data editing workflows. +- `finance_mosaix/dashboard/data_organizer.py`: normalization, merge, and cleanup workflows. +- `finance_mosaix/dashboard/create_sample_database.py`: sample/demo data generator used by onboarding/demo mode. For page-by-page behavior and screenshots, see [Dashboard](dashboard.md). @@ -178,6 +178,6 @@ Data is immediately shared between both surfaces because they use the same backe For implementation rationale and historical context, see: -- `knowledge/DataBaseSetup.md` -- `knowledge/DataBaseMigrationKnowledge.md` -- `knowledge/DashboardChartsNMetrics.md` +- `.github/knowledge/DataBaseSetup.md` +- `.github/knowledge/DataBaseMigrationKnowledge.md` +- `.github/knowledge/DashboardChartsNMetrics.md` diff --git a/docs/assets/img/favicons/apple-touch-icon.png b/docs/assets/img/favicons/apple-touch-icon.png new file mode 100644 index 0000000..f46b81e Binary files /dev/null and b/docs/assets/img/favicons/apple-touch-icon.png differ diff --git a/docs/assets/img/favicons/favicon-96x96.png b/docs/assets/img/favicons/favicon-96x96.png new file mode 100644 index 0000000..f9ed58a Binary files /dev/null and b/docs/assets/img/favicons/favicon-96x96.png differ diff --git a/docs/assets/img/favicons/favicon.ico b/docs/assets/img/favicons/favicon.ico new file mode 100644 index 0000000..9899596 Binary files /dev/null and b/docs/assets/img/favicons/favicon.ico differ diff --git a/docs/assets/img/favicons/favicon.svg b/docs/assets/img/favicons/favicon.svg new file mode 100644 index 0000000..5794925 --- /dev/null +++ b/docs/assets/img/favicons/favicon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/assets/img/favicons/web-app-manifest-192x192.png b/docs/assets/img/favicons/web-app-manifest-192x192.png new file mode 100644 index 0000000..211f829 Binary files /dev/null and b/docs/assets/img/favicons/web-app-manifest-192x192.png differ diff --git a/docs/assets/img/favicons/web-app-manifest-512x512.png b/docs/assets/img/favicons/web-app-manifest-512x512.png new file mode 100644 index 0000000..fb32dbf Binary files /dev/null and b/docs/assets/img/favicons/web-app-manifest-512x512.png differ diff --git a/docs/cli.md b/docs/cli.md index 70f0a83..335504d 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -21,7 +21,7 @@ Use the CLI when you want: From the project root: ```bash -python src/finance_cli.py --help +finance-mosaix --help ``` If the package is installed, you may also use the installed entry point instead of the local script. @@ -33,7 +33,7 @@ The project public name is Finance mosaix, while the internal package/project di ### Initialize the database ```bash -python src/finance_cli.py --init +finance-mosaix --init ``` This creates the default DuckDB database file if it does not already exist. @@ -41,7 +41,7 @@ This creates the default DuckDB database file if it does not already exist. ### Import transactions from Excel ```bash -python src/finance_cli.py --import path/to/file.xlsx +finance-mosaix --import path/to/file.xlsx ``` The importer will: @@ -54,31 +54,31 @@ The importer will: ### Show account balances ```bash -python src/finance_cli.py --balance +finance-mosaix --balance ``` ### Show spending for the last N days ```bash -python src/finance_cli.py --spending 30 +finance-mosaix --spending 30 ``` ### Search transactions ```bash -python src/finance_cli.py --search "rent" +finance-mosaix --search "rent" ``` ### View database schema ```bash -python src/finance_cli.py --schema +finance-mosaix --schema ``` ### Normalize goods valuations ```bash -python src/finance_cli.py --normalize goods +finance-mosaix --normalize goods ``` ## Database file diff --git a/docs/img/favicon.ico b/docs/img/favicon.ico deleted file mode 100644 index 01e71fb..0000000 Binary files a/docs/img/favicon.ico and /dev/null differ diff --git a/docs/img/favicon.svg b/docs/img/favicon.svg deleted file mode 100644 index 3223f0a..0000000 --- a/docs/img/favicon.svg +++ /dev/null @@ -1,24 +0,0 @@ -RealFaviconGeneratorhttps://realfavicongenerator.net - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/img/logo.svg b/docs/img/logo.svg index 9c7c63c..bc1d066 100644 --- a/docs/img/logo.svg +++ b/docs/img/logo.svg @@ -1,36 +1,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + diff --git a/docs/installation.md b/docs/installation.md index 5b2e468..359efc6 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -16,7 +16,19 @@ tags: [installation, setup, getting-started] From the `finance-mosaix/` directory: +Linux/macOS: + ```bash +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install . +``` + +Windows: + +```powershell +python -m venv .venv .\.venv\Scripts\activate python -m pip install --upgrade pip python -m pip install . @@ -36,34 +48,71 @@ Then open the local URL provided by Streamlit in your browser. ## Electron desktop app -A desktop wrapper is available under `electron/`. +The desktop app shows the dashboard in its own window. Packages for Linux, macOS and Windows are attached to each [GitHub release](https://github.com/Developer-Simon/finance-mosaix/releases). + +### Variants + +Each release has two variants: + +- **full**: contains a Python interpreter, so no Python has to be installed. Linux: AppImage and Flatpak bundle. macOS: dmg. Windows: installer. +- **slim**: contains no interpreter. The system needs Python 3.11 or newer with the `venv` module. On first start the app creates its own environment and installs the dependencies into it. Linux: AppImage. macOS: dmg. Windows: installer. + +Both variants are named `Finance Mosaix---.`. The file `SHA256SUMS.txt` in each release lists the checksums of all files. + +### Unsigned packages + +The packages are not signed yet. The operating system warns on the first start: + +- **macOS**: right-click (or Control-click) the app and choose Open, then confirm. On recent macOS versions this may be blocked. In that case open System Settings → Privacy & Security and click Open Anyway. +- **Windows**: SmartScreen shows "Windows protected your PC". Click "More info", then "Run anyway". + +### Data folder + +The database (`finance.duckdb`) and the settings are stored in a folder of the app that is not inside the program folder: + +| System | Folder | +|---------|--------| +| Linux | `~/.config/Finance Mosaix` | +| macOS | `~/Library/Application Support/Finance Mosaix` | +| Windows | `%APPDATA%\Finance Mosaix` | +| Flatpak | `~/.var/app/io.github.developer_simon.finance_mosaix/config/Finance Mosaix` | + +To open the folder, press Alt to show the menu and choose Tools → Open data folder. + +An earlier Windows build kept its database in the program folder, `finance-mosaix-electron\resources\finance.duckdb`. The app shows a notice on the first start when it finds this file. To keep the data, close the app and copy `finance.duckdb` into `%APPDATA%\Finance Mosaix\`. ### Development run -```bash -cd electron -npm install -npm start -``` +Before running Electron on Linux, create and activate the project `.venv` at the repository root and install the Python dependencies: -This launches the Streamlit dashboard in an embedded desktop window using the local Python environment. If you want to use the packaged Python runtime, first build it with: +Linux/macOS: ```bash +cd /path/to/finance-mosaix +python3 -m venv .venv +source .venv/bin/activate +python -m pip install --upgrade pip +python -m pip install . cd electron -npm run build-runtime +npm install +npm start ``` -### Packaging for Windows +Windows: -```bash +```powershell +cd \path\to\finance-mosaix +python -m venv .venv +.\.venv\Scripts\activate +python -m pip install --upgrade pip +python -m pip install . cd electron -npm run dist +npm install +npm start ``` -The build is configured to include the dashboard sources and the bundled Python runtime. - -### Packaging workflow +This launches the Streamlit dashboard in an embedded desktop window using the local Python environment. Without a `.venv`, the app uses the bundled runtime from `npm run build:runtime` if it exists, and otherwise a system Python. -A GitHub Actions workflow is available at `.github/workflows/electron-package.yml`. -It builds the Python runtime, installs Node dependencies, and runs `npm run dist` on Windows. +### Building packages and releases +The build commands, the Flatpak requirements and the release workflow are described in `electron/README.md`. diff --git a/electron/README.md b/electron/README.md new file mode 100644 index 0000000..ee91b7a --- /dev/null +++ b/electron/README.md @@ -0,0 +1,108 @@ +# Electron shell for Finance Mosaix + +The shell starts the Streamlit dashboard (`src/finance_mosaix/dashboard/app.py`) on a free local port and shows it in an Electron window. The dashboard and the Python package are not changed by the shell. The shell lives in the `electron/` folder. + +## Development + +```bash +cd electron +npm install +npm start # starts the app from source +npm test # unit tests (node --test) +``` + +`npm start` runs `scripts/start.js`, which removes `ELECTRON_RUN_AS_NODE` from the environment before Electron starts. Some environments set this variable, and Electron would then run as plain Node.js. Further arguments are passed to the app, e.g. `npm start -- --smoke`. + +In development the dashboard uses the Python environment described under Runtime. The database stays in the repository root unless `FINANCE_MOSAIX_DATA_DIR` is set. + +## Runtime + +At startup `src/resolve-runtime.js` picks the interpreter for the dashboard. The first matching step wins: + +1. **`FINANCE_MOSAIX_PYTHON`**: the interpreter named in this environment variable is used as it is. No venv is created. +2. **Development venv** (not packaged): `.venv` in the repository root, i.e. `.venv/bin/python` on Linux and macOS, `.venv\Scripts\python.exe` on Windows. +3. **Bundled runtime**: `python/` in the app resources of a packaged build, `electron/build/python/` in development. It is created by `npm run build:runtime`. +4. **System Python**: the first of `python3` and `python` (on Windows `py -3`, `python`, `python3`) with version 3.11 or newer that also has the `venv` and `ensurepip` modules. The shell creates a venv in `venv/` in the data folder and installs `requirements.txt` into it. The requirements are installed again when the app version or the requirements change. A change of the Python minor version recreates the venv. + +If no step matches, the app shows "No usable Python found." together with the rejected candidates. Tools → Reinstall Python environment repeats step 4 with a fresh install. It is only enabled when the system Python is used. + +## Variants + +Both variants are built with electron-builder on each platform. + +- **slim** (`electron-builder.yml`): contains no interpreter. The app needs a system Python as described in step 4. Built as AppImage (Linux), dmg (macOS) and NSIS installer (Windows). +- **full** (`electron-builder.full.yml`, extends the slim configuration): adds the bundled interpreter from `build/python/`. Built as AppImage and Flatpak bundle (Linux), dmg (macOS) and NSIS installer (Windows). + +The bundled interpreter is built with: + +```bash +npm run build:runtime +``` + +This command writes `build/requirements.txt` from `pyproject.toml` (`npm run build:requirements`) and then runs `runtime/build-runtime.js`. The script downloads the python-build-standalone archive for the current platform, pinned in `runtime/runtime.lock.json` (CPython 3.13.16, release 20261013). It checks the SHA-256 sum, unpacks the archive into `build/python/`, installs the requirements into it and checks that the main dependencies can be imported. The archives are cached in `build/cache/`. Supported targets are `linux-x64`, `darwin-arm64`, `darwin-x64` and `win32-x64`. + +Packages: + +```bash +npm run dist:slim # -> dist/slim/ +npm run dist:full # -> dist/full/ (run npm run build:runtime first) +``` + +The artifact names follow the pattern `Finance Mosaix---.`, for example `Finance Mosaix-0.2.0-x86_64-full.AppImage`. On Linux the full variant also builds a Flatpak bundle. This needs `flatpak-builder` and the Flathub runtimes `org.freedesktop.Platform` and `org.freedesktop.Sdk` in version 26.08, and `org.electronjs.Electron2.BaseApp` in version 26.08. The configuration is in `electron-builder.yml` and `electron-builder.full.yml`. The `dist/` and `build/` folders are not checked in. + +The dmg and NSIS packages are built on macOS and Windows respectively. The packages are not signed yet. + +## Data folder + +In a packaged app the database (`finance.duckdb`), `settings.json`, the sample database and the managed venv are stored in the Electron user data folder. Tools → Open data folder opens it. + +| System | Folder | +|---------|--------| +| Linux | `~/.config/Finance Mosaix` | +| macOS | `~/Library/Application Support/Finance Mosaix` | +| Windows | `%APPDATA%\Finance Mosaix` | +| Flatpak | `~/.var/app/io.github.developer_simon.finance_mosaix/config/Finance Mosaix` | + +The Flatpak ID is derived from the `appId` by electron-builder, which replaces hyphens with underscores. + +### Data of earlier Windows builds + +Earlier Windows builds installed to a folder named `finance-mosaix-electron` and kept the database in its `resources` folder, for example `%LOCALAPPDATA%\Programs\finance-mosaix-electron\resources\finance.duckdb`. When the new data folder has no database and such a file exists, the app shows a one-time notice. To keep the data, close the app and copy `finance.duckdb` into `%APPDATA%\Finance Mosaix\`. + +## Smoke test + +`--smoke` starts the server, requests `/_stcore/health` and `/`, and quits the app. The exit code is 0 when both requests return 200 and the page contains a ` + + + + + + + + diff --git a/electron/assets/icons/128x128.png b/electron/assets/icons/128x128.png new file mode 100644 index 0000000..c1a428b Binary files /dev/null and b/electron/assets/icons/128x128.png differ diff --git a/electron/assets/icons/16x16.png b/electron/assets/icons/16x16.png new file mode 100644 index 0000000..9ebd2b1 Binary files /dev/null and b/electron/assets/icons/16x16.png differ diff --git a/electron/assets/icons/24x24.png b/electron/assets/icons/24x24.png new file mode 100644 index 0000000..3af138a Binary files /dev/null and b/electron/assets/icons/24x24.png differ diff --git a/electron/assets/icons/256x256.png b/electron/assets/icons/256x256.png new file mode 100644 index 0000000..7e2d24b Binary files /dev/null and b/electron/assets/icons/256x256.png differ diff --git a/electron/assets/icons/32x32.png b/electron/assets/icons/32x32.png new file mode 100644 index 0000000..b680a33 Binary files /dev/null and b/electron/assets/icons/32x32.png differ diff --git a/electron/assets/icons/48x48.png b/electron/assets/icons/48x48.png new file mode 100644 index 0000000..8a09a6c Binary files /dev/null and b/electron/assets/icons/48x48.png differ diff --git a/electron/assets/icons/512x512.png b/electron/assets/icons/512x512.png new file mode 100644 index 0000000..ef42887 Binary files /dev/null and b/electron/assets/icons/512x512.png differ diff --git a/electron/assets/icons/64x64.png b/electron/assets/icons/64x64.png new file mode 100644 index 0000000..859ab12 Binary files /dev/null and b/electron/assets/icons/64x64.png differ diff --git a/electron/assets/logo.svg b/electron/assets/logo.svg new file mode 100644 index 0000000..78dd013 --- /dev/null +++ b/electron/assets/logo.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/electron/build-python-runtime.sh b/electron/build-python-runtime.sh deleted file mode 100644 index 311f455..0000000 --- a/electron/build-python-runtime.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -set -e - -ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd) -PYTHON=${PYTHON:-python3} -RUNTIME_DIR="$ROOT_DIR/electron/python-runtime" - -rm -rf "$RUNTIME_DIR" -mkdir -p "$RUNTIME_DIR" - -echo "Creating Python virtual environment in $RUNTIME_DIR" -$PYTHON -m venv "$RUNTIME_DIR" - -source "$RUNTIME_DIR/bin/activate" -python -m pip install --upgrade pip setuptools wheel -# Non-editable install: an editable install (`-e`) only writes a path finder -# pointing back at this checkout, which breaks once the runtime is moved to -# another machine. Install a real copy instead so the runtime is relocatable. -python -m pip install --no-cache-dir "$ROOT_DIR" -deactivate - -echo "Python runtime bundle created at $RUNTIME_DIR" diff --git a/electron/build_python_runtime.py b/electron/build_python_runtime.py deleted file mode 100644 index 6af20cb..0000000 --- a/electron/build_python_runtime.py +++ /dev/null @@ -1,131 +0,0 @@ -"""Build a self-contained, relocatable Python runtime for the packaged Electron app. - -On Windows this downloads the official "embeddable" CPython distribution, which -ships its own interpreter DLL and standard library, so the resulting -``python-runtime`` folder has no dependency on any Python installation on the -build machine or the end user's machine. A regular ``venv`` (the previous -approach) only contains a thin ``python.exe`` stub plus ``pyvenv.cfg`` that -points back at the base interpreter used to create it - it is NOT relocatable, -which is why the packaged app's python.exe stopped responding once moved to a -system (or even the same system, after the config-rewrite step blanked out the -only valid "home" path) where that base interpreter path no longer resolved. - -On other platforms we fall back to a plain venv (still requires a system -Python at runtime) since no official embeddable distribution exists there. -""" -from pathlib import Path -import shutil -import subprocess -import sys -import urllib.request -import venv -import zipfile - -ROOT = Path(__file__).resolve().parent.parent -RUNTIME_DIR = Path(__file__).resolve().parent / "python-runtime" -PYTHON_VERSION = "3.11.9" -EMBED_URL = ( - f"https://www.python.org/ftp/python/{PYTHON_VERSION}/" - f"python-{PYTHON_VERSION}-embed-amd64.zip" -) -GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py" - - -def build_windows_runtime() -> None: - if RUNTIME_DIR.exists(): - shutil.rmtree(RUNTIME_DIR) - RUNTIME_DIR.mkdir(parents=True) - - zip_path = RUNTIME_DIR.parent / f"python-embed-{PYTHON_VERSION}.zip" - print(f"Downloading embeddable Python {PYTHON_VERSION} from {EMBED_URL}") - urllib.request.urlretrieve(EMBED_URL, zip_path) - try: - with zipfile.ZipFile(zip_path) as zf: - zf.extractall(RUNTIME_DIR) - finally: - zip_path.unlink(missing_ok=True) - - python_executable = RUNTIME_DIR / "python.exe" - - # The embeddable distribution disables site-packages handling by default - # (via the python*._pth file). Re-enable it so pip-installed packages are - # importable. - pth_candidates = list(RUNTIME_DIR.glob("python*._pth")) - if not pth_candidates: - raise RuntimeError("Could not locate the ._pth file in the embeddable Python distribution") - pth_file = pth_candidates[0] - lines = pth_file.read_text(encoding="utf-8").splitlines() - new_lines = [] - has_site_packages_entry = False - for line in lines: - stripped = line.strip() - if stripped == "#import site": - new_lines.append("import site") - else: - new_lines.append(line) - if stripped == "Lib\\site-packages": - has_site_packages_entry = True - if not has_site_packages_entry: - new_lines.append("Lib\\site-packages") - pth_file.write_text("\n".join(new_lines) + "\n", encoding="utf-8") - - # Bootstrap pip (the embeddable distribution ships without pip/ensurepip). - get_pip_path = RUNTIME_DIR / "get-pip.py" - print(f"Downloading get-pip.py from {GET_PIP_URL}") - urllib.request.urlretrieve(GET_PIP_URL, get_pip_path) - try: - subprocess.run( - [str(python_executable), str(get_pip_path), "--no-warn-script-location"], - check=True, - cwd=str(RUNTIME_DIR), - ) - finally: - get_pip_path.unlink(missing_ok=True) - - subprocess.run( - [str(python_executable), "-m", "pip", "install", "--upgrade", "pip", "setuptools", "wheel"], - check=True, - ) - # Install a real (non-editable) copy of the project into the runtime's - # site-packages. An editable install (`pip install -e`) only writes a - # path finder that points back at this ROOT checkout, which does not - # exist on a machine the packaged app is later moved to. - subprocess.run( - [str(python_executable), "-m", "pip", "install", "--no-cache-dir", str(ROOT)], - check=True, - ) - - print(f"Self-contained Python runtime ready at {RUNTIME_DIR}") - - -def build_posix_venv_runtime() -> None: - if RUNTIME_DIR.exists(): - shutil.rmtree(RUNTIME_DIR) - - print(f"Creating Python runtime at {RUNTIME_DIR}") - venv.EnvBuilder(with_pip=True).create(RUNTIME_DIR) - - python_executable = RUNTIME_DIR / "bin" / "python" - subprocess.run( - [str(python_executable), "-m", "pip", "install", "--upgrade", "pip", "setuptools", "wheel"], - check=True, - ) - # Non-editable install: keeps the runtime relocatable (see note above). - subprocess.run( - [str(python_executable), "-m", "pip", "install", "--no-cache-dir", str(ROOT)], - check=True, - ) - - print( - "Python runtime bundle created at " - f"{RUNTIME_DIR} (note: this venv still requires a compatible system " - "Python installation to be present at runtime; only the Windows " - "embeddable build is fully self-contained)." - ) - - -if __name__ == "__main__": - if sys.platform.startswith("win"): - build_windows_runtime() - else: - build_posix_venv_runtime() diff --git a/electron/electron-builder.full.yml b/electron/electron-builder.full.yml new file mode 100644 index 0000000..1c693a2 --- /dev/null +++ b/electron/electron-builder.full.yml @@ -0,0 +1,42 @@ +# Full variant: like electron-builder.yml, plus a bundled Python interpreter +# (electron/build/python, created by `npm run build:runtime`). +extends: ./electron-builder.yml +appId: io.github.developer-simon.finance-mosaix +productName: Finance Mosaix +# directories and files are repeated here in full, so buildResources and the icon +# still apply if extends doesn't merge objects deeply. +directories: + output: dist/full + buildResources: assets +files: + - src/**/* + - assets/**/* + - package.json +# extends concatenates arrays: the base entries are inherited, only the runtime is added here. +# Repeating them copied every file twice in parallel, which fails on Windows with EBUSY. +extraResources: + - from: build/python + to: python +linux: + # Flatpak only here: the sandbox has no system Python, so the slim variant wouldn't run there. + target: [AppImage, flatpak] + # Separate sizes up to 512 px: Flatpak takes no larger icons, and with only icon.png it had none at all. + icon: assets/icons + category: Office + desktop: + entry: + "Comment[de]": Persönliche Finanzen mit DuckDB und Streamlit + artifactName: "${productName}-${version}-${arch}-full.${ext}" +flatpak: + runtimeVersion: "26.08" + baseVersion: "26.08" + finishArgs: + - --socket=wayland + - --socket=fallback-x11 + - --share=ipc + - --device=dri + - --filesystem=home +mac: + artifactName: "${productName}-${version}-${arch}-full.${ext}" +win: + artifactName: "${productName}-${version}-${arch}-full.${ext}" diff --git a/electron/electron-builder.yml b/electron/electron-builder.yml new file mode 100644 index 0000000..aeab3c7 --- /dev/null +++ b/electron/electron-builder.yml @@ -0,0 +1,41 @@ +# Slim variant: no Python interpreter, the app uses a system Python with a managed venv. +# The full variant is in electron-builder.full.yml and extends this file. +appId: io.github.developer-simon.finance-mosaix +productName: Finance Mosaix +directories: + output: dist/slim + buildResources: assets +files: + - src/**/* + - assets/**/* + - package.json +extraResources: + - from: ../src + to: src + filter: + - "**/*" + - "!**/__pycache__/**" + - "!**/*.pyc" + - "!**/settings.json" + - "!**/*.duckdb" + - from: build/requirements.txt + to: requirements.txt + - from: VERSION + to: VERSION + - from: ../pyproject.toml + to: pyproject.toml +linux: + target: AppImage + # Separate sizes up to 512 px: Flatpak takes no larger icons, and with only icon.png it had none at all. + icon: assets/icons + category: Office + desktop: + entry: + "Comment[de]": Persönliche Finanzen mit DuckDB und Streamlit + artifactName: "${productName}-${version}-${arch}-slim.${ext}" +mac: + target: dmg + artifactName: "${productName}-${version}-${arch}-slim.${ext}" +win: + target: nsis + artifactName: "${productName}-${version}-${arch}-slim.${ext}" diff --git a/electron/generate-icon.js b/electron/generate-icon.js deleted file mode 100644 index 5d3c5fb..0000000 --- a/electron/generate-icon.js +++ /dev/null @@ -1,23 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const sharp = require('sharp'); -const pngToIco = require('png-to-ico'); - -(async () => { - const svgFile = path.resolve(__dirname, '../docs/img/favicon.svg'); - const pngFile = path.resolve(__dirname, '../docs/img/favicon-256.png'); - const icoFile = path.resolve(__dirname, '../docs/img/favicon.ico'); - - if (!fs.existsSync(svgFile)) { - throw new Error(`SVG source not found: ${svgFile}`); - } - - await sharp(svgFile) - .resize(256, 256) - .png() - .toFile(pngFile); - - const icoBuffer = await pngToIco(pngFile); - fs.writeFileSync(icoFile, icoBuffer); - console.log(`Created ${icoFile}`); -})(); diff --git a/electron/main.js b/electron/main.js deleted file mode 100644 index d459f4d..0000000 --- a/electron/main.js +++ /dev/null @@ -1,249 +0,0 @@ -const { app, BrowserWindow, dialog } = require('electron'); -const { spawn, spawnSync } = require('child_process'); -const fs = require('fs'); -const net = require('net'); -const path = require('path'); - -const HOST = '127.0.0.1'; -const PORT = Number(process.env.STREAMLIT_PORT || process.env.PORT || 8501); -const STREAMLIT_URL = `http://${HOST}:${PORT}`; -const APP_ROOT = path.resolve(__dirname, '..'); -const PACKAGED_PYTHON_RUNTIME = path.join(process.resourcesPath, 'python-runtime'); -const DEV_PYTHON_RUNTIME = path.join(APP_ROOT, 'electron', 'python-runtime'); -const electronPackage = require('./package.json'); -const ELECTRON_PACKAGE_VERSION = electronPackage.version; - -function normalizePythonExecutablePath(value) { - if (!value || typeof value !== 'string') { - return null; - } - - const trimmed = value.trim(); - if ((trimmed.startsWith('"') && trimmed.endsWith('"')) || - (trimmed.startsWith("'") && trimmed.endsWith("'"))) { - return trimmed.slice(1, -1); - } - return trimmed; -} - -function rewriteVenvConfig(runtimePath) { - const cfgPath = path.join(runtimePath, 'pyvenv.cfg'); - if (!fs.existsSync(cfgPath)) { - return; - } - - try { - let text = fs.readFileSync(cfgPath, 'utf8'); - const runtimePython = process.platform === 'win32' - ? path.join(runtimePath, 'Scripts', 'python.exe') - : path.join(runtimePath, 'bin', 'python'); - const runtimeHome = process.platform === 'win32' - ? path.join(runtimePath, 'Scripts') - : path.join(runtimePath, 'bin'); - const runtimeCommand = `${runtimePython} -m venv --without-scm-ignore-files ${runtimePath}`; - - const replacements = [ - [/^home = .*$/m, `home = ${runtimeHome}`], - [/^executable = .*$/m, `executable = ${runtimePython}`], - [/^command = .*$/m, `command = ${runtimeCommand}`], - ]; - - let changed = false; - for (const [regex, replacement] of replacements) { - if (regex.test(text)) { - const updated = text.replace(regex, replacement); - if (updated !== text) { - text = updated; - changed = true; - } - } - } - - if (changed) { - fs.writeFileSync(cfgPath, text, 'utf8'); - console.log(`[Electron] Rewritten venv config at ${cfgPath}`); - } - } catch (error) { - console.warn(`[Electron] Failed to rewrite venv config at ${cfgPath}: ${error.message}`); - } -} - -function getPythonExecutable() { - for (const runtimePath of [PACKAGED_PYTHON_RUNTIME, DEV_PYTHON_RUNTIME]) { - if (fs.existsSync(runtimePath)) { - rewriteVenvConfig(runtimePath); - // The Windows runtime is built from the official embeddable CPython - // distribution, which places python.exe directly in the runtime root. - // Fall back to the classic venv layout (Scripts/python.exe) for any - // older, locally built runtimes that still use that structure. - const candidates = process.platform === 'win32' - ? [path.join(runtimePath, 'python.exe'), path.join(runtimePath, 'Scripts', 'python.exe')] - : [path.join(runtimePath, 'bin', 'python')]; - const candidate = candidates.find((candidatePath) => fs.existsSync(candidatePath)); - if (candidate) { - console.log(`[Electron] Using embedded Python runtime: ${candidate}`); - return candidate; - } - } - } - - const envPythonPath = normalizePythonExecutablePath(process.env.PYTHON_EXECUTABLE); - if (envPythonPath) { - if (fs.existsSync(envPythonPath)) { - console.log(`[Electron] Using PYTHON_EXECUTABLE from environment: ${envPythonPath}`); - return envPythonPath; - } - console.warn(`[Electron] Ignoring PYTHON_EXECUTABLE because it does not exist: ${envPythonPath}`); - } - - const defaultPython = process.platform === 'win32' ? 'python.exe' : 'python3'; - console.log(`[Electron] Using default Python executable: ${defaultPython}`); - return defaultPython; -} - -let pythonProcess = null; -let mainWindow = null; - -function waitForServer(host, port, timeout = 30000) { - return new Promise((resolve, reject) => { - const startTime = Date.now(); - - const attempt = () => { - const socket = new net.Socket(); - socket.setTimeout(1000); - socket.once('error', () => { - socket.destroy(); - if (Date.now() - startTime > timeout) { - reject(new Error(`Streamlit did not become available within ${timeout}ms`)); - } else { - setTimeout(attempt, 300); - } - }); - socket.once('timeout', () => { - socket.destroy(); - if (Date.now() - startTime > timeout) { - reject(new Error(`Streamlit did not become available within ${timeout}ms`)); - } else { - setTimeout(attempt, 300); - } - }); - socket.connect(port, host, () => { - socket.end(); - resolve(); - }); - }; - - attempt(); - }); -} - -function startStreamlit() { - const python = getPythonExecutable(); - const args = [ - '-m', - 'streamlit', - 'run', - 'dashboard/app.py', - '--server.headless', - 'true', - '--server.address', - HOST, - '--server.port', - String(PORT), - '--server.enableCORS', - 'false', - '--server.enableXsrfProtection', - 'false', - ]; - - pythonProcess = spawn(python, args, { - cwd: APP_ROOT, - env: process.env, - }); - - pythonProcess.stdout.on('data', (chunk) => { - console.log(`[Streamlit] ${chunk.toString().trim()}`); - }); - - pythonProcess.stderr.on('data', (chunk) => { - console.error(`[Streamlit] ${chunk.toString().trim()}`); - }); - - pythonProcess.on('exit', (code, signal) => { - console.log(`Streamlit process exited with code=${code} signal=${signal}`); - pythonProcess = null; - if (mainWindow && !mainWindow.isDestroyed()) { - mainWindow.close(); - } - }); - - pythonProcess.on('error', (error) => { - dialog.showErrorBox('Streamlit Launch Error', error.message); - stopStreamlit(); - app.quit(); - }); -} - -function stopStreamlit() { - if (pythonProcess && !pythonProcess.killed) { - pythonProcess.kill(); - pythonProcess = null; - } -} - -function createWindow() { - mainWindow = new BrowserWindow({ - width: 1280, - height: 900, - webPreferences: { - preload: path.join(__dirname, 'preload.js'), - contextIsolation: true, - nodeIntegration: false, - }, - }); - - mainWindow.loadURL(STREAMLIT_URL); - mainWindow.on('closed', () => { - mainWindow = null; - }); -} - -async function start() { - try { - startStreamlit(); - await waitForServer(HOST, PORT, 30000); - createWindow(); - } catch (error) { - dialog.showErrorBox('Streamlit startup failed', error.message); - stopStreamlit(); - app.quit(); - } -} - -if (ELECTRON_PACKAGE_VERSION) { - app.once('ready', () => { - try { - app.setVersion(ELECTRON_PACKAGE_VERSION); - } catch (error) { - console.warn('Unable to set Electron app version:', error.message); - } - }); -} - -app.on('ready', start); - -app.on('before-quit', () => { - stopStreamlit(); -}); - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit(); - } -}); - -app.on('activate', () => { - if (BrowserWindow.getAllWindows().length === 0) { - createWindow(); - } -}); diff --git a/electron/package-lock.json b/electron/package-lock.json index 8d1e539..52717e0 100644 --- a/electron/package-lock.json +++ b/electron/package-lock.json @@ -1,34 +1,25 @@ { - "name": "finance-mosaix-electron", - "version": "0.1.0", + "name": "finance-mosaix", + "version": "0.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "finance-mosaix-electron", - "version": "0.1.0", + "name": "finance-mosaix", + "version": "0.2.0", "devDependencies": { - "electron": "^26.0.0", - "electron-builder": "^24.0.0", - "png-to-ico": "^2.0.0", - "sharp": "^0.32.0" + "electron": "^44.9.0", + "electron-builder": "^26.15.3" } }, - "node_modules/@develar/schema-utils": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz", - "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==", + "node_modules/@electron-internal/extract-zip": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.5.tgz", + "integrity": "sha512-+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==", "dev": true, - "dependencies": { - "ajv": "^6.12.0", - "ajv-keywords": "^3.4.1" - }, + "license": "BSD-2-Clause", "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "node": ">=22.12.0" } }, "node_modules/@electron/asar": { @@ -36,6 +27,7 @@ "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz", "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==", "dev": true, + "license": "MIT", "dependencies": { "commander": "^5.0.0", "glob": "^7.1.6", @@ -48,11 +40,19 @@ "node": ">=10.12.0" } }, + "node_modules/@electron/asar/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, "node_modules/@electron/asar/node_modules/brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -63,6 +63,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -70,32 +71,64 @@ "node": "*" } }, + "node_modules/@electron/fuses": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz", + "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.1", + "fs-extra": "^9.0.1", + "minimist": "^1.2.5" + }, + "bin": { + "electron-fuses": "dist/bin.js" + } + }, + "node_modules/@electron/fuses/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz", + "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "got": "^11.8.5", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", "progress": "^2.0.3", - "semver": "^6.2.0", + "semver": "^7.6.3", "sumchecker": "^3.0.1" }, "engines": { - "node": ">=12" + "node": ">=22.12.0" }, "optionalDependencies": { - "global-agent": "^3.0.0" + "undici": "^7.24.4" } }, "node_modules/@electron/notarize": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.2.1.tgz", - "integrity": "sha512-aL+bFMIkpR0cmmj5Zgy0LMKEpgy43/hw5zadEArgmAMWWlKc5buwFvFT9G/o/YJkvXAJm5q3iuTuLaiaXW39sg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.1.1", "fs-extra": "^9.0.1", @@ -110,6 +143,7 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, + "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -120,32 +154,12 @@ "node": ">=10" } }, - "node_modules/@electron/notarize/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@electron/notarize/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/@electron/osx-sign": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.0.5.tgz", - "integrity": "sha512-k9ZzUQtamSoweGQDV2jILiRIHUu7lYlJ3c6IEmjv1hC17rclE+eb9U+f6UFlOOETo0JzY1HNlXy4YOlCvl+Lww==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz", + "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "compare-version": "^0.1.2", "debug": "^4.3.4", @@ -162,25 +176,12 @@ "node": ">=12.0.0" } }, - "node_modules/@electron/osx-sign/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@electron/osx-sign/node_modules/isbinaryfile": { "version": "4.0.10", "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8.0.0" }, @@ -188,203 +189,163 @@ "url": "https://github.com/sponsors/gjtorikian/" } }, - "node_modules/@electron/osx-sign/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/@electron/rebuild": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz", + "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==", "dev": true, + "license": "MIT", "dependencies": { - "universalify": "^2.0.0" + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.1.1", + "node-abi": "^4.2.0", + "node-api-version": "^0.2.1", + "node-gyp": "^12.2.0", + "read-binary-file-arch": "^1.0.6" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "bin": { + "electron-rebuild": "lib/cli.js" + }, + "engines": { + "node": ">=22.12.0" } }, - "node_modules/@electron/osx-sign/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/@electron/rebuild/node_modules/node-abi": { + "version": "4.39.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.39.0.tgz", + "integrity": "sha512-pULjI3qsVrn6K5DZz5tCpX2dL8IKM9/xBMRz29hBko8UFXZ/C3QxRMl/Z7wKaQwaxPmYU+7UPKbDf7EO+ASvfA==", "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.6.3" + }, "engines": { - "node": ">= 10.0.0" + "node": ">=22.12.0" } }, "node_modules/@electron/universal": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-1.5.1.tgz", - "integrity": "sha512-kbgXxyEauPJiQQUNG2VgUeyfQNFk6hBF11ISN2PNI6agUgPl55pv4eQmaqHzTAzchBvqZ2tQuRVaPStGf0mxGw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz", + "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==", "dev": true, + "license": "MIT", "dependencies": { - "@electron/asar": "^3.2.1", - "@malept/cross-spawn-promise": "^1.1.0", + "@electron/asar": "^3.3.1", + "@malept/cross-spawn-promise": "^2.0.0", "debug": "^4.3.1", - "dir-compare": "^3.0.0", - "fs-extra": "^9.0.1", - "minimatch": "^3.0.4", - "plist": "^3.0.4" + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" }, "engines": { - "node": ">=8.6" + "node": ">=16.4" } }, + "node_modules/@electron/universal/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, "node_modules/@electron/universal/node_modules/brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/@electron/universal/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, + "license": "MIT", "dependencies": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=10" - } - }, - "node_modules/@electron/universal/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "node": ">=14.14" } }, "node_modules/@electron/universal/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@electron/universal/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", "dev": true, + "license": "ISC", "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "engines": { - "node": ">=12" + "brace-expansion": "^2.0.2" }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, "engines": { - "node": ">=12" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/@electron/windows-sign": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz", + "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==", "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "peer": true, "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "cross-dirname": "^0.1.0", + "debug": "^4.3.4", + "fs-extra": "^11.1.1", + "minimist": "^1.2.8", + "postject": "^1.0.0-alpha.6" }, - "engines": { - "node": ">=12" + "bin": { + "electron-windows-sign": "bin/electron-windows-sign.js" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=14.14" } }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "node_modules/@electron/windows-sign/node_modules/fs-extra": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, + "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "ansi-regex": "^6.2.2" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=14.14" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", "dev": true, + "license": "ISC", "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "minipass": "^7.0.4" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "node": ">=18.0.0" } }, "node_modules/@malept/cross-spawn-promise": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", - "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", + "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", "dev": true, "funding": [ { @@ -396,11 +357,12 @@ "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" } ], + "license": "Apache-2.0", "dependencies": { "cross-spawn": "^7.0.1" }, "engines": { - "node": ">= 10" + "node": ">= 12.13.0" } }, "node_modules/@malept/flatpak-bundler": { @@ -408,6 +370,7 @@ "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz", "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.1.1", "fs-extra": "^9.0.0", @@ -423,6 +386,7 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, + "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -433,35 +397,72 @@ "node": ">=10" } }, - "node_modules/@malept/flatpak-bundler/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/@noble/hashes": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz", + "integrity": "sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@peculiar/asn1-schema": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.0.tgz", + "integrity": "sha512-8xh4avo53/vXO6UEv9yaoJ83hY581geaLTygf61NPIXP5AeIZCPjJhpTaYU23IZkG+NpLN/C9FYzWp7hphIT9A==", "dev": true, + "license": "MIT", "dependencies": { - "universalify": "^2.0.0" + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">=14" } }, - "node_modules/@malept/flatpak-bundler/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, "engines": { - "node": ">= 10.0.0" + "node": ">=8.0.0" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "node_modules/@peculiar/utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz", + "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==", "dev": true, - "optional": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/@peculiar/webcrypto": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.1.tgz", + "integrity": "sha512-ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "tslib": "^2.8.1", + "webcrypto-core": "^1.9.2" + }, "engines": { - "node": ">=14" + "node": ">=14.18.0" } }, "node_modules/@sindresorhus/is": { @@ -469,6 +470,7 @@ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -481,6 +483,7 @@ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", "dev": true, + "license": "MIT", "dependencies": { "defer-to-connect": "^2.0.0" }, @@ -488,20 +491,12 @@ "node": ">=10" } }, - "node_modules/@tootallnate/once": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.1.tgz", - "integrity": "sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, "node_modules/@types/cacheable-request": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", "dev": true, + "license": "MIT", "dependencies": { "@types/http-cache-semantics": "*", "@types/keyv": "^3.1.4", @@ -514,6 +509,7 @@ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", "dev": true, + "license": "MIT", "dependencies": { "@types/ms": "*" } @@ -523,6 +519,7 @@ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -531,13 +528,15 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/keyv": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -546,26 +545,17 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.19.130", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", - "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==", "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } + "license": "MIT" }, - "node_modules/@types/plist": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz", - "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==", + "node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", "dev": true, - "optional": true, + "license": "MIT", "dependencies": { - "@types/node": "*", - "xmlbuilder": ">=11.0.1" + "undici-types": ">=7.24.0 <7.24.7" } }, "node_modules/@types/responselike": { @@ -573,79 +563,58 @@ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, - "node_modules/@types/verror": { - "version": "1.10.11", - "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz", - "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==", - "dev": true, - "optional": true - }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "node_modules/@xmldom/xmldom": { + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz", + "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==", "dev": true, - "optional": true, - "dependencies": { - "@types/node": "*" + "license": "MIT", + "engines": { + "node": ">=10.0.0" } }, - "node_modules/@xmldom/xmldom": { - "version": "0.9.10", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.10.tgz", - "integrity": "sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==", + "node_modules/abbrev": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", "dev": true, + "license": "ISC", "engines": { - "node": ">=14.6" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/7zip-bin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz", - "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==", - "dev": true - }, "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, - "dependencies": { - "debug": "4" - }, + "license": "MIT", "engines": { - "node": ">= 6.0.0" + "node": ">= 14" } }, "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, "funding": { "type": "github", "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" - } - }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -670,212 +639,204 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/app-builder-bin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz", - "integrity": "sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA==", - "dev": true - }, "node_modules/app-builder-lib": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-24.13.3.tgz", - "integrity": "sha512-FAzX6IBit2POXYGnTCT8YHFO/lr5AapAII6zzhQO3Rw4cEDOgK+t1xhLc5tNcKlicTHlo9zxIwnYCX9X2DLkig==", - "dev": true, - "dependencies": { - "@develar/schema-utils": "~2.6.5", - "@electron/notarize": "2.2.1", - "@electron/osx-sign": "1.0.5", - "@electron/universal": "1.5.1", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.15.3.tgz", + "integrity": "sha512-2VnyWkqsP5v5XbBhL3tD5Syx8iNPBYsoU7kY4S2fz7wg8Rj/nztWKCUzGKaFRTv0Xwf3/H058CR1Kvtd/3lRow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@electron/asar": "3.4.1", + "@electron/fuses": "^1.8.0", + "@electron/get": "^3.0.0", + "@electron/notarize": "2.5.0", + "@electron/osx-sign": "1.3.3", + "@electron/rebuild": "^4.0.4", + "@electron/universal": "2.0.3", "@malept/flatpak-bundler": "^0.4.0", + "@noble/hashes": "^2.2.0", + "@peculiar/webcrypto": "^1.7.1", "@types/fs-extra": "9.0.13", + "ajv": "^8.18.0", + "asn1js": "^3.0.10", "async-exit-hook": "^2.0.1", - "bluebird-lst": "^1.0.9", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", "chromium-pickle-js": "^0.2.0", + "ci-info": "4.3.1", "debug": "^4.3.4", + "dotenv": "^16.4.5", + "dotenv-expand": "^11.0.6", "ejs": "^3.1.8", - "electron-publish": "24.13.1", - "form-data": "^4.0.0", + "electron-publish": "26.15.3", "fs-extra": "^10.1.0", "hosted-git-info": "^4.1.0", - "is-ci": "^3.0.0", "isbinaryfile": "^5.0.0", + "jiti": "^2.4.2", "js-yaml": "^4.1.0", + "json5": "^2.2.3", "lazy-val": "^1.0.5", - "minimatch": "^5.1.1", - "read-config-file": "6.3.2", - "sanitize-filename": "^1.6.3", - "semver": "^7.3.8", - "tar": "^6.1.12", - "temp-file": "^3.4.0" + "minimatch": "^10.2.5", + "pkijs": "^3.4.0", + "plist": "3.1.0", + "proper-lockfile": "^4.1.2", + "resedit": "^1.7.0", + "semver": "~7.7.3", + "tar": "^7.5.7", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0", + "unzipper": "^0.12.3", + "which": "^5.0.0" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "dmg-builder": "24.13.3", - "electron-builder-squirrel-windows": "24.13.3" + "dmg-builder": "26.15.3", + "electron-builder-squirrel-windows": "26.15.3" } }, - "node_modules/app-builder-lib/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "node_modules/app-builder-lib/node_modules/@electron/get": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz", + "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==", "dev": true, + "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" }, "engines": { - "node": ">=12" + "node": ">=14" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" } }, - "node_modules/app-builder-lib/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dev": true, + "license": "MIT", "dependencies": { - "universalify": "^2.0.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">=6 <7 || >=8" } }, - "node_modules/app-builder-lib/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" } }, - "node_modules/app-builder-lib/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/app-builder-lib/node_modules/ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", "engines": { - "node": ">= 10.0.0" + "node": ">=8" } }, - "node_modules/archiver": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", - "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", + "node_modules/app-builder-lib/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, - "peer": true, - "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^3.2.4", - "buffer-crc32": "^0.2.1", - "readable-stream": "^3.6.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^2.2.0", - "zip-stream": "^4.1.0" - }, + "license": "MIT", "engines": { - "node": ">= 10" + "node": ">=6" } }, - "node_modules/archiver-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", - "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", + "node_modules/app-builder-lib/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, - "peer": true, - "dependencies": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, - "engines": { - "node": ">= 6" + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/archiver-utils/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "node_modules/app-builder-lib/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, - "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/archiver-utils/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - }, - "node_modules/archiver-utils/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/app-builder-lib/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, - "peer": true, - "dependencies": { - "safe-buffer": "~5.1.0" + "license": "MIT", + "engines": { + "node": ">= 4.0.0" } }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "dev": true, - "optional": true, - "engines": { - "node": ">=0.8" - } + "license": "Python-2.0" }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/asn1js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz", + "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==", "dev": true, - "optional": true, + "license": "BSD-3-Clause", + "dependencies": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.2.0", + "tslib": "^2.8.1" + }, "engines": { - "node": ">=8" + "node": ">=12.0.0" } }, "node_modules/async": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/async-exit-hook": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz", "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -884,115 +845,34 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, + "license": "ISC", "engines": { "node": ">= 4.0.0" } }, - "node_modules/b4a": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.1.tgz", - "integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==", + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", "dev": true, - "peerDependencies": { - "react-native-b4a": "*" - }, - "peerDependenciesMeta": { - "react-native-b4a": { - "optional": true - } - } + "license": "MIT" }, "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/bare-events": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.9.1.tgz", - "integrity": "sha512-Z0oHEHAFDZkffN8Qc39zNZjQlMDkPJRyyyZieU1VH7u8c5S+qHZ2S8ixdKIAxEjfHO7FJxXmJWgteOghVanIsg==", - "dev": true, - "peerDependencies": { - "bare-abort-controller": "*" - }, - "peerDependenciesMeta": { - "bare-abort-controller": { - "optional": true - } - } - }, - "node_modules/bare-fs": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.7.4.tgz", - "integrity": "sha512-y1kC+ffIx/tPLdTE693uNjHfzTfr+ravR5tvWlMXe25nELbkqV400S71qHDwbkAQ1FVEZobB1NFRzFbCCcyBCQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true, - "dependencies": { - "bare-events": "^2.5.4", - "bare-path": "^3.0.0", - "bare-stream": "^2.6.4", - "bare-url": "^2.2.2", - "fast-fifo": "^1.3.2" - }, + "license": "MIT", "engines": { - "bare": ">=1.16.0" - }, - "peerDependencies": { - "bare-buffer": "*" - }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - } - } - }, - "node_modules/bare-path": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.1.1.tgz", - "integrity": "sha512-JprUlveX3QjApC1cTpsUOiscADftCGVWkzitbHsRqv84hzYwYHw2mbluddsq5TvI8mH/8Ov1f4BiMAdcB0oYnQ==", - "dev": true - }, - "node_modules/bare-stream": { - "version": "2.13.3", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.3.tgz", - "integrity": "sha512-Kc+brLqvEqGkjyfiwJmImAOqLZL7OsoLKuavx+hJjgVV3nLTOjloJyPMFxjUPerGGHrNH0fLU06jjykMLWrERQ==", - "dev": true, - "dependencies": { - "b4a": "^1.8.1", - "streamx": "^2.25.0", - "teex": "^1.0.1" - }, - "peerDependencies": { - "bare-abort-controller": "*", - "bare-buffer": "*", - "bare-events": "*" - }, - "peerDependenciesMeta": { - "bare-abort-controller": { - "optional": true - }, - "bare-buffer": { - "optional": true - }, - "bare-events": { - "optional": true - } - } - }, - "node_modules/bare-url": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.4.5.tgz", - "integrity": "sha512-K+y9xF1tN+CdPu4qWwr0QiK1Al07eFPGYK5M2pDXcmHdMdgC/tT/bpmMe1hrmRHaidKLkXrC+cRNYf3XVDUhSQ==", - "dev": true, - "dependencies": { - "bare-path": "^3.0.0" + "node": "18 || 20 || >=22" } }, "node_modules/base64-js": { @@ -1015,31 +895,12 @@ } ] }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "node_modules/bluebird-lst": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz", - "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==", "dev": true, - "dependencies": { - "bluebird": "^3.5.5" - } + "license": "MIT" }, "node_modules/boolean": { "version": "3.2.0", @@ -1047,97 +908,61 @@ "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", "dev": true, + "license": "MIT", "optional": true }, "node_modules/brace-expansion": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", - "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], + "license": "MIT", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/buffer-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", - "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", - "dev": true, - "engines": { - "node": ">=0.4" + "balanced-match": "^4.0.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "20 || >=22" } }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/builder-util": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-24.13.1.tgz", - "integrity": "sha512-NhbCSIntruNDTOVI9fdXz0dihaqX2YuE1D6zZMrwiErzH4ELZHE6mdiB40wEgZNprDia+FghRFgKoAqMZRRjSA==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.15.3.tgz", + "integrity": "sha512-q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==", "dev": true, + "license": "MIT", "dependencies": { "@types/debug": "^4.1.6", - "7zip-bin": "~5.2.0", - "app-builder-bin": "4.0.0", - "bluebird-lst": "^1.0.9", - "builder-util-runtime": "9.2.4", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", + "cross-spawn": "^7.0.6", "debug": "^4.3.4", "fs-extra": "^10.1.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-ci": "^3.0.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "js-yaml": "^4.1.0", + "sanitize-filename": "^1.6.3", "source-map-support": "^0.5.19", "stat-mode": "^1.0.0", - "temp-file": "^3.4.0" + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0" + }, + "engines": { + "node": ">=14.0.0" } }, "node_modules/builder-util-runtime": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.4.tgz", - "integrity": "sha512-upp+biKpN/XZMLim7aguUyW8s0FUpDvOtK6sbanMFDAMBzpHDqdhgVYm6zc9HJ6nWo7u2Lxk60i2M6Jd3aiNrA==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", + "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.3.4", "sax": "^1.2.4" @@ -1146,48 +971,24 @@ "node": ">=12.0.0" } }, - "node_modules/builder-util/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "node_modules/bytestreamjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz", + "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==", "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, + "license": "BSD-3-Clause", "engines": { - "node": ">=12" + "node": ">=6.0.0" } }, - "node_modules/builder-util/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/builder-util/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", - "dev": true, - "engines": { - "node": ">=10.6.0" + "license": "MIT", + "engines": { + "node": ">=10.6.0" } }, "node_modules/cacheable-request": { @@ -1195,6 +996,7 @@ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", "dev": true, + "license": "MIT", "dependencies": { "clone-response": "^1.0.2", "get-stream": "^5.1.0", @@ -1213,6 +1015,7 @@ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" @@ -1226,6 +1029,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1238,24 +1042,26 @@ } }, "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", "dev": true, + "license": "BlueOak-1.0.0", "engines": { - "node": ">=10" + "node": ">=18" } }, "node_modules/chromium-pickle-js": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", "dev": true, "funding": [ { @@ -1263,27 +1069,11 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "optional": true, - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -1303,6 +1093,7 @@ "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", "dev": true, + "license": "MIT", "dependencies": { "mimic-response": "^1.0.0" }, @@ -1310,19 +1101,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/color": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", - "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1", - "color-string": "^1.9.0" - }, - "engines": { - "node": ">=12.5.0" - } - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -1341,21 +1119,12 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/color-string": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", - "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "dev": true, - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -1368,6 +1137,7 @@ "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -1377,135 +1147,40 @@ "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/compress-commons": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz", - "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==", - "dev": true, - "peer": true, - "dependencies": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^4.0.2", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">= 10" - } - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/config-file-ts": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.6.tgz", - "integrity": "sha512-6boGVaglwblBgJqGyxm4+xCmEGcWgnWHSWHY5jad58awQhB6gftq0G8HbzU39YqCIYHMLAiL1yjwiZ36m/CL8w==", - "dev": true, - "dependencies": { - "glob": "^10.3.10", - "typescript": "^5.3.3" - } - }, - "node_modules/config-file-ts/node_modules/glob": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", - "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", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/config-file-ts/node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/config-file-ts/node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } + "license": "MIT" }, "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", - "dev": true - }, - "node_modules/crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", - "dev": true, - "optional": true, - "dependencies": { - "buffer": "^5.1.0" - } - }, - "node_modules/crc-32": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true, - "peer": true, - "bin": { - "crc32": "bin/crc32.njs" - }, - "engines": { - "node": ">=0.8" - } + "license": "MIT" }, - "node_modules/crc32-stream": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz", - "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==", + "node_modules/cross-dirname": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz", + "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==", "dev": true, - "peer": true, - "dependencies": { - "crc-32": "^1.2.0", - "readable-stream": "^3.4.0" - }, - "engines": { - "node": ">= 10" - } + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1515,11 +1190,35 @@ "node": ">= 8" } }, + "node_modules/cross-spawn/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -1559,20 +1258,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -1582,6 +1273,7 @@ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "es-define-property": "^1.0.0", @@ -1600,6 +1292,7 @@ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "define-data-property": "^1.0.1", @@ -1618,41 +1311,43 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", "dev": true, + "license": "MIT", "optional": true }, "node_modules/dir-compare": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz", - "integrity": "sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz", + "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==", "dev": true, + "license": "MIT", "dependencies": { - "buffer-equal": "^1.0.0", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5", + "p-limit": "^3.1.0 " } }, + "node_modules/dir-compare/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, "node_modules/dir-compare/node_modules/brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1663,6 +1358,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -1671,103 +1367,53 @@ } }, "node_modules/dmg-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-24.13.3.tgz", - "integrity": "sha512-rcJUkMfnJpfCboZoOOPf4L29TRtEieHNOeAbYPWPxlaBw/Z1RKrRA86dOI9rwaI4tQSc/RD82zTNHprfUHXsoQ==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.15.3.tgz", + "integrity": "sha512-O3zJUFUYHJKgzPqioHxfxzBzlSC1eXCSr79gMSBKBP5AgjjpmrydMsMLotEg9fAJF36vdUncb+4ndRNxoPdlSQ==", "dev": true, + "license": "MIT", "dependencies": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", "fs-extra": "^10.1.0", - "iconv-lite": "^0.6.2", "js-yaml": "^4.1.0" - }, - "optionalDependencies": { - "dmg-license": "^1.0.11" } }, - "node_modules/dmg-builder/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, + "license": "BSD-2-Clause", "engines": { "node": ">=12" - } - }, - "node_modules/dmg-builder/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/dmg-builder/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" + "funding": { + "url": "https://dotenvx.com" } }, - "node_modules/dmg-license": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz", - "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==", + "node_modules/dotenv-expand": { + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "license": "BSD-2-Clause", "dependencies": { - "@types/plist": "^3.0.1", - "@types/verror": "^1.10.3", - "ajv": "^6.10.0", - "crc": "^3.8.0", - "iconv-corefoundation": "^1.1.7", - "plist": "^3.0.4", - "smart-buffer": "^4.0.2", - "verror": "^1.10.0" - }, - "bin": { - "dmg-license": "bin/dmg-license.js" + "dotenv": "^16.4.5" }, "engines": { - "node": ">=8" - } - }, - "node_modules/dotenv": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", - "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", - "dev": true, - "engines": { - "node": ">=10" + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" } }, - "node_modules/dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", - "dev": true - }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dev": true, + "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", @@ -1777,17 +1423,55 @@ "node": ">= 0.4" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/duplexer2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/duplexer2/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/duplexer2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } }, "node_modules/ejs": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "jake": "^10.8.5" }, @@ -1799,38 +1483,39 @@ } }, "node_modules/electron": { - "version": "26.6.10", - "resolved": "https://registry.npmjs.org/electron/-/electron-26.6.10.tgz", - "integrity": "sha512-pV2SD0RXzAiNRb/2yZrsVmVkBOMrf+DVsPulIgRjlL0+My9BL5spFuhHVMQO9yHl9tFpWtuRpQv0ofM/i9P8xg==", + "version": "44.9.3", + "resolved": "https://registry.npmjs.org/electron/-/electron-44.9.3.tgz", + "integrity": "sha512-Cv9/yMnZxNWsMlIe8T4v//NKHdUvbeyoTJoXE3BIcRxus2meeFaO9h/P3zB5d4cBXum51IgAYrT2QjpIDWKpJA==", "dev": true, - "hasInstallScript": true, + "license": "MIT", "dependencies": { - "@electron/get": "^2.0.0", - "@types/node": "^18.11.18", - "extract-zip": "^2.0.1" + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" }, "bin": { - "electron": "cli.js" + "electron": "cli.js", + "install-electron": "install.js" }, "engines": { - "node": ">= 12.20.55" + "node": ">= 22.12.0" } }, "node_modules/electron-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-24.13.3.tgz", - "integrity": "sha512-yZSgVHft5dNVlo31qmJAe4BVKQfFdwpRw7sFp1iQglDRCDD6r22zfRJuZlhtB5gp9FHUxCMEoWGq10SkCnMAIg==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.15.3.tgz", + "integrity": "sha512-a1KM5heqS3gQCZzizXEI8RjJy3QVogULPdeSknt76uLDpBIW/HDGsMg/XgP0riP6PI9COsRvFITKKGDqA8fJxA==", "dev": true, + "license": "MIT", "dependencies": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", - "dmg-builder": "24.13.3", + "ci-info": "^4.2.0", + "dmg-builder": "26.15.3", "fs-extra": "^10.1.0", - "is-ci": "^3.0.0", "lazy-val": "^1.0.5", - "read-config-file": "6.3.2", "simple-update-notifier": "2.0.0", "yargs": "^17.6.2" }, @@ -1843,139 +1528,94 @@ } }, "node_modules/electron-builder-squirrel-windows": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-24.13.3.tgz", - "integrity": "sha512-oHkV0iogWfyK+ah9ZIvMDpei1m9ZRpdXcvde1wTpra2U8AFDNNpqJdnin5z+PM1GbQ5BoaKCWas2HSjtR0HwMg==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.15.3.tgz", + "integrity": "sha512-Jc19XPV9y9+2bAdZPkXuVNGNIEFBq9poHC61l8Kv6FdK7DRG3+Ic0rerC0DXOaeHNz8yW0fg/JnF8GQROOF5MA==", "dev": true, + "license": "MIT", "peer": true, "dependencies": { - "app-builder-lib": "24.13.3", - "archiver": "^5.3.1", - "builder-util": "24.13.1", - "fs-extra": "^10.1.0" + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "electron-winstaller": "5.4.0" } }, - "node_modules/electron-builder-squirrel-windows/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "node_modules/electron-publish": { + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.15.3.tgz", + "integrity": "sha512-g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" + "@types/fs-extra": "^9.0.11", + "aws4": "^1.13.2", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", + "chalk": "^4.1.2", + "form-data": "^4.0.5", + "fs-extra": "^10.1.0", + "lazy-val": "^1.0.5", + "mime": "^2.5.2" } }, - "node_modules/electron-builder-squirrel-windows/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/electron-winstaller": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz", + "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==", "dev": true, + "hasInstallScript": true, + "license": "MIT", "peer": true, "dependencies": { - "universalify": "^2.0.0" + "@electron/asar": "^3.2.1", + "debug": "^4.1.1", + "fs-extra": "^7.0.1", + "lodash": "^4.17.21", + "temp": "^0.9.0" + }, + "engines": { + "node": ">=8.0.0" }, "optionalDependencies": { - "graceful-fs": "^4.1.6" + "@electron/windows-sign": "^1.1.2" } }, - "node_modules/electron-builder-squirrel-windows/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/electron-winstaller/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "dev": true, + "license": "MIT", "peer": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-builder/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/electron-builder/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/electron-builder/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-publish": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-24.13.1.tgz", - "integrity": "sha512-2ZgdEqJ8e9D17Hwp5LEq5mLQPjqU3lv/IALvgp+4W8VeNhryfGhYEQC/PgDPMrnWUp+l60Ou5SJLsu+k4mhQ8A==", - "dev": true, - "dependencies": { - "@types/fs-extra": "^9.0.11", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", - "chalk": "^4.1.2", - "fs-extra": "^10.1.0", - "lazy-val": "^1.0.5", - "mime": "^2.5.2" - } - }, - "node_modules/electron-publish/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" }, "engines": { - "node": ">=12" + "node": ">=6 <7 || >=8" } }, - "node_modules/electron-publish/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/electron-winstaller/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, + "license": "MIT", + "peer": true, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, - "node_modules/electron-publish/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/electron-winstaller/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, + "license": "MIT", + "peer": true, "engines": { - "node": ">= 10.0.0" + "node": ">= 4.0.0" } }, "node_modules/emoji-regex": { @@ -1994,25 +1634,31 @@ } }, "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -2022,6 +1668,7 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -2031,6 +1678,7 @@ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -2043,6 +1691,7 @@ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", @@ -2058,6 +1707,7 @@ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "dev": true, + "license": "MIT", "optional": true }, "node_modules/escalade": { @@ -2074,6 +1724,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "optional": true, "engines": { "node": ">=10" @@ -2082,79 +1733,53 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/events-universal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", - "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", - "dev": true, - "dependencies": { - "bare-events": "^2.7.0" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extsprintf": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", - "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "node_modules/exponential-backoff": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", + "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", "dev": true, - "engines": [ - "node >=0.6.0" - ], - "optional": true + "license": "Apache-2.0" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, - "dependencies": { - "pend": "~1.2.0" + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, "node_modules/filelist": { @@ -2162,24 +1787,39 @@ "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz", "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "minimatch": "^5.0.1" } }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "node_modules/filelist/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", + "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", "dev": true, + "license": "ISC", "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=10" } }, "node_modules/form-data": { @@ -2187,6 +1827,7 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", "dev": true, + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -2198,61 +1839,34 @@ "node": ">= 6" } }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=12" } }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2271,6 +1885,7 @@ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", @@ -2295,6 +1910,7 @@ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, + "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" @@ -2308,6 +1924,7 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -2318,18 +1935,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "dev": true - }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "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", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2345,11 +1957,19 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/glob/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2360,6 +1980,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -2372,6 +1993,7 @@ "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", "dev": true, + "license": "BSD-3-Clause", "optional": true, "dependencies": { "boolean": "^3.0.1", @@ -2385,24 +2007,12 @@ "node": ">=10.0" } }, - "node_modules/global-agent/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "optional": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/globalthis": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "define-properties": "^1.2.1", @@ -2420,6 +2030,7 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2432,6 +2043,7 @@ "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", "dev": true, + "license": "MIT", "dependencies": { "@sindresorhus/is": "^4.0.0", "@szmarczak/http-timer": "^4.0.5", @@ -2463,6 +2075,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2472,6 +2085,7 @@ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "es-define-property": "^1.0.0" @@ -2485,6 +2099,7 @@ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2497,6 +2112,7 @@ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, + "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -2512,6 +2128,7 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -2524,6 +2141,7 @@ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -2532,23 +2150,24 @@ } }, "node_modules/http-cache-semantics": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", - "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", - "dev": true + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", + "dev": true, + "license": "BSD-2-Clause" }, "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, + "license": "MIT", "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "agent-base": "^7.1.0", + "debug": "^4.3.4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/http2-wrapper": { @@ -2556,6 +2175,7 @@ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", "dev": true, + "license": "MIT", "dependencies": { "quick-lru": "^5.1.1", "resolve-alpn": "^1.0.0" @@ -2565,73 +2185,26 @@ } }, "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dev": true, + "license": "MIT", "dependencies": { - "agent-base": "6", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { - "node": ">= 6" - } - }, - "node_modules/iconv-corefoundation": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz", - "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==", - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "cli-truncate": "^2.1.0", - "node-addon-api": "^1.6.3" - }, - "engines": { - "node": "^8.11.2 || >=10" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" + "node": ">= 14" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "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.", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -2643,30 +2216,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "node_modules/is-arrayish": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz", - "integrity": "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==", - "dev": true - }, - "node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", - "dev": true, - "dependencies": { - "ci-info": "^3.2.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -2681,13 +2230,14 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true, - "peer": true + "license": "MIT" }, "node_modules/isbinaryfile": { "version": "5.0.7", "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz", "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 18.0.0" }, @@ -2696,24 +2246,13 @@ } }, "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", + "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" } }, "node_modules/jake": { @@ -2721,6 +2260,7 @@ "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "async": "^3.2.6", "filelist": "^1.0.4", @@ -2733,10 +2273,20 @@ "node": ">=10" } }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", "dev": true, "funding": [ { @@ -2748,6 +2298,7 @@ "url": "https://github.com/sponsors/nodeca" } ], + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -2759,19 +2310,22 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", "dev": true, + "license": "ISC", "optional": true }, "node_modules/json5": { @@ -2779,6 +2333,7 @@ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -2787,10 +2342,14 @@ } }, "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -2800,6 +2359,7 @@ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } @@ -2808,100 +2368,22 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz", "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", - "dev": true - }, - "node_modules/lazystream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "dev": true, - "peer": true, - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/lazystream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, - "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/lazystream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - }, - "node_modules/lazystream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "peer": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } + "license": "MIT" }, "node_modules/lodash": { "version": "4.18.1", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", - "dev": true - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", - "dev": true, - "peer": true - }, - "node_modules/lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==", - "dev": true, - "peer": true - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", "dev": true, - "peer": true - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true, - "peer": true - }, - "node_modules/lodash.union": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", - "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", - "dev": true, - "peer": true + "license": "MIT" }, "node_modules/lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2911,6 +2393,7 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -2923,6 +2406,7 @@ "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "escape-string-regexp": "^4.0.0" @@ -2936,6 +2420,7 @@ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -2945,6 +2430,7 @@ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", "dev": true, + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -2957,6 +2443,7 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -2966,6 +2453,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -2978,20 +2466,25 @@ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^2.0.1" + "brace-expansion": "^5.0.8" }, "engines": { - "node": ">=10" + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/minimist": { @@ -3004,108 +2497,151 @@ } }, "node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", "dev": true, + "license": "BlueOak-1.0.0", "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" } }, "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", "dev": true, + "license": "MIT", "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" + "minipass": "^7.1.2" }, "engines": { - "node": ">= 8" + "node": ">= 18" } }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, + "license": "MIT", + "peer": true, "dependencies": { - "yallist": "^4.0.0" + "minimist": "^1.2.6" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, "bin": { "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" } }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/napi-build-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", - "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/node-abi": { - "version": "3.94.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.94.0.tgz", - "integrity": "sha512-W5ZNO5KRPB5TkYmGVD9F6YqhsglXJzE6etpbmT+f6EQElhiX/UTG551cnsRGvLG3fyZEg9HwaDmNmj5nwJ4z9g==", + "node_modules/node-api-version": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz", + "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^7.3.5" + } + }, + "node_modules/node-gyp": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "tar": "^7.5.4", + "tinyglobby": "^0.2.12", + "undici": "^6.25.0", + "which": "^6.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" }, "engines": { - "node": ">=10" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/node-abi/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "node_modules/node-gyp/node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/node-gyp/node_modules/isexe": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=20" + } + }, + "node_modules/node-gyp/node_modules/undici": { + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/node-gyp/node_modules/which": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^4.0.0" + }, "bin": { - "semver": "bin/semver.js" + "node-which": "bin/which.js" }, "engines": { - "node": ">=10" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/node-addon-api": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", - "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true, - "optional": true + "license": "MIT" }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "node_modules/nopt": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", "dev": true, - "peer": true, + "license": "ISC", + "dependencies": { + "abbrev": "^4.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, "engines": { - "node": ">=0.10.0" + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/normalize-url": { @@ -3113,6 +2649,7 @@ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3125,6 +2662,7 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, + "license": "MIT", "optional": true, "engines": { "node": ">= 0.4" @@ -3144,21 +2682,33 @@ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3168,133 +2718,133 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "node_modules/pe-library": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", + "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==", "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.18" + "node": ">=12", + "npm": ">=6" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "type": "github", + "url": "https://github.com/sponsors/jet2jet" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true + "dev": true, + "license": "ISC" }, - "node_modules/plist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz", - "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==", + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, - "dependencies": { - "@xmldom/xmldom": "^0.9.10", - "base64-js": "^1.5.1", - "xmlbuilder": "^15.1.1" - }, + "license": "MIT", "engines": { - "node": ">=10.4.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/png-to-ico": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/png-to-ico/-/png-to-ico-2.1.8.tgz", - "integrity": "sha512-Nf+IIn/cZ/DIZVdGveJp86NG5uNib1ZXMiDd/8x32HCTeKSvgpyg6D/6tUBn1QO/zybzoMK0/mc3QRgAyXdv9w==", + "node_modules/pkijs": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.3.tgz", + "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==", "dev": true, + "license": "BSD-3-Clause", + "workspaces": [ + "website" + ], "dependencies": { - "@types/node": "^17.0.36", - "minimist": "^1.2.6", - "pngjs": "^6.0.0" - }, - "bin": { - "png-to-ico": "bin/cli.js" + "@noble/hashes": "1.8.0", + "asn1js": "^3.0.6", + "bytestreamjs": "^2.0.1", + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/png-to-ico/node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", - "dev": true + "node_modules/pkijs/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, - "node_modules/pngjs": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", - "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", "dev": true, + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, "engines": { - "node": ">=12.13.0" + "node": ">=10.4.0" } }, - "node_modules/prebuild-install": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", - "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", - "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.", - "dev": true, - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^2.0.0", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" + "node_modules/postject": { + "version": "1.0.0-alpha.6", + "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz", + "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "commander": "^9.4.0" }, "bin": { - "prebuild-install": "bin.js" + "postject": "dist/cli.js" }, "engines": { - "node": ">=10" + "node": ">=14.0.0" } }, - "node_modules/prebuild-install/node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true + "node_modules/postject/node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": "^12.20.0 || >=14" + } }, - "node_modules/prebuild-install/node_modules/tar-fs": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.5.tgz", - "integrity": "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==", + "node_modules/proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", "dev": true, - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" } }, "node_modules/process-nextick-args": { @@ -3302,13 +2852,14 @@ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true, - "peer": true + "license": "MIT" }, "node_modules/progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -3318,6 +2869,7 @@ "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dev": true, + "license": "MIT", "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" @@ -3326,6 +2878,18 @@ "node": ">=10" } }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, "node_modules/pump": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", @@ -3336,13 +2900,24 @@ "once": "^1.3.1" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "node_modules/pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + } + }, + "node_modules/pvutils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz", + "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=16.0.0" } }, "node_modules/quick-lru": { @@ -3350,6 +2925,7 @@ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3357,82 +2933,69 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "node_modules/read-binary-file-arch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", + "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", "dev": true, + "license": "MIT", "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "debug": "^4.3.4" }, "bin": { - "rc": "cli.js" + "read-binary-file-arch": "cli.js" } }, - "node_modules/read-config-file": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-6.3.2.tgz", - "integrity": "sha512-M80lpCjnE6Wt6zb98DoW8WHR09nzMSpu8XHtPkiTHrJ5Az9CybfeQhTJ8D7saeBHpGhLPIVyA8lcL6ZmdKwY6Q==", + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "dependencies": { - "config-file-ts": "^0.2.4", - "dotenv": "^9.0.2", - "dotenv-expand": "^5.1.0", - "js-yaml": "^4.1.0", - "json5": "^2.2.0", - "lazy-val": "^1.0.4" - }, "engines": { - "node": ">=12.0.0" + "node": ">=0.10.0" } }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, + "license": "MIT", "engines": { - "node": ">= 6" + "node": ">=0.10.0" } }, - "node_modules/readdir-glob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", - "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "node_modules/resedit": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz", + "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==", "dev": true, - "peer": true, + "license": "MIT", "dependencies": { - "minimatch": "^5.1.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, + "pe-library": "^0.4.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=12", + "npm": ">=6" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jet2jet" } }, "node_modules/resolve-alpn": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/responselike": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", "dev": true, + "license": "MIT", "dependencies": { "lowercase-keys": "^2.0.0" }, @@ -3445,15 +3008,32 @@ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } }, + "node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, "node_modules/roarr": { "version": "2.15.4", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", "dev": true, + "license": "BSD-3-Clause", "optional": true, "dependencies": { "boolean": "^3.0.1", @@ -3467,227 +3047,32 @@ "node": ">=8.0" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, "node_modules/sanitize-filename": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz", "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==", "dev": true, + "license": "WTFPL OR ISC", "dependencies": { "truncate-utf8-bytes": "^1.0.0" } }, "node_modules/sax": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", - "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", "dev": true, + "license": "BlueOak-1.0.0", "engines": { - "node": ">=11.0.0" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", - "dev": true, - "optional": true - }, - "node_modules/serialize-error": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "dev": true, - "optional": true, - "dependencies": { - "type-fest": "^0.13.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sharp": { - "version": "0.32.6", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz", - "integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "color": "^4.2.3", - "detect-libc": "^2.0.2", - "node-addon-api": "^6.1.0", - "prebuild-install": "^7.1.1", - "semver": "^7.5.4", - "simple-get": "^4.0.1", - "tar-fs": "^3.0.4", - "tunnel-agent": "^0.6.0" - }, - "engines": { - "node": ">=14.15.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/sharp/node_modules/node-addon-api": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", - "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", - "dev": true - }, - "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/simple-swizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz", - "integrity": "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, - "node_modules/simple-update-notifier": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", - "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" + "node": ">=11.0.0" } }, - "node_modules/simple-update-notifier/node_modules/semver": { + "node_modules/semver": { "version": "7.8.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3695,30 +3080,71 @@ "node": ">=10" } }, - "node_modules/slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", + "node_modules/semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "optional": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" + "node": ">=10" } }, "node_modules/source-map": { @@ -3726,6 +3152,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -3735,6 +3162,7 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -3745,6 +3173,7 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "dev": true, + "license": "BSD-3-Clause", "optional": true }, "node_modules/stat-mode": { @@ -3752,30 +3181,11 @@ "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz", "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, - "node_modules/streamx": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.28.0.tgz", - "integrity": "sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==", - "dev": true, - "dependencies": { - "events-universal": "^1.0.0", - "fast-fifo": "^1.3.2", - "text-decoder": "^1.1.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -3790,21 +3200,6 @@ "node": ">=8" } }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -3817,33 +3212,12 @@ "node": ">=8" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/sumchecker": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "debug": "^4.1.0" }, @@ -3856,6 +3230,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -3864,72 +3239,45 @@ } }, "node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "deprecated": "Old versions of tar 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", + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" }, "engines": { - "node": ">=10" + "node": ">=18" } }, - "node_modules/tar-fs": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.3.tgz", - "integrity": "sha512-/hU4AXnIdZu+Gvl1pk0oI5f5HxWsCJRtY2aFaJdk9VvyL48DWU6iU5WAIPG+wIi1YvWA6eTJvIviP/tMAZZNwQ==", - "dev": true, - "dependencies": { - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - }, - "optionalDependencies": { - "bare-fs": "^4.0.1", - "bare-path": "^3.0.0" - } - }, - "node_modules/tar-fs/node_modules/tar-stream": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.0.tgz", - "integrity": "sha512-ojzvCvVaNp6aOTFmG7jaRD0meowIAuPc3cMMhSgKiVWws1GyHbGd/xvnyuRKcKlMpt3qvxx6r0hreCNITP9hIg==", + "node_modules/tar/node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", "dev": true, - "dependencies": { - "b4a": "^1.6.4", - "bare-fs": "^4.5.5", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" } }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "node_modules/temp": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", + "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", "dev": true, + "license": "MIT", + "peer": true, "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" + "mkdirp": "^0.5.1", + "rimraf": "~2.6.2" }, "engines": { - "node": ">=6" - } - }, - "node_modules/teex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", - "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", - "dev": true, - "dependencies": { - "streamx": "^2.12.5" + "node": ">=6.0.0" } }, "node_modules/temp-file": { @@ -3937,53 +3285,47 @@ "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==", "dev": true, + "license": "MIT", "dependencies": { "async-exit-hook": "^2.0.1", "fs-extra": "^10.0.0" } }, - "node_modules/temp-file/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/temp-file/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "node_modules/tiny-async-pool": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz", + "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==", "dev": true, + "license": "MIT", "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "semver": "^5.5.0" } }, - "node_modules/temp-file/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/tiny-async-pool/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "engines": { - "node": ">= 10.0.0" + "license": "ISC", + "bin": { + "semver": "bin/semver" } }, - "node_modules/text-decoder": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.7.tgz", - "integrity": "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==", + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, + "license": "MIT", "dependencies": { - "b4a": "^1.6.4" + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" } }, "node_modules/tmp": { @@ -3991,6 +3333,7 @@ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", "dev": true, + "license": "MIT", "engines": { "node": ">=14.14" } @@ -4000,6 +3343,7 @@ "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", "dev": true, + "license": "MIT", "dependencies": { "tmp": "^0.2.0" } @@ -4009,27 +3353,24 @@ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", "dev": true, + "license": "WTFPL", "dependencies": { "utf8-byte-length": "^1.0.1" } }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } + "license": "0BSD" }, "node_modules/type-fest": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", "dev": true, + "license": "(MIT OR CC0-1.0)", "optional": true, "engines": { "node": ">=10" @@ -4038,48 +3379,69 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "node_modules/undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, + "license": "MIT", + "optional": true, "engines": { - "node": ">=14.17" + "node": ">=20.18.1" } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "dev": true, + "license": "MIT" }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" + } + }, + "node_modules/unzipper": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz", + "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "~3.7.2", + "duplexer2": "~0.1.4", + "fs-extra": "11.3.1", + "graceful-fs": "^4.2.2", + "node-int64": "^0.4.0" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "node_modules/unzipper/node_modules/fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", "dev": true, + "license": "MIT", "dependencies": { - "punycode": "^2.1.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" } }, "node_modules/utf8-byte-length": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz", "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==", - "dev": true + "dev": true, + "license": "(WTFPL OR MIT)" }, "node_modules/util-deprecate": { "version": "1.0.2", @@ -4087,34 +3449,34 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, - "node_modules/verror": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", - "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", + "node_modules/webcrypto-core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz", + "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==", "dev": true, - "optional": true, + "license": "MIT", "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "engines": { - "node": ">=0.6.0" + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" } }, "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, + "license": "ISC", "dependencies": { - "isexe": "^2.0.0" + "isexe": "^3.1.1" }, "bin": { - "node-which": "bin/node-which" + "node-which": "bin/which.js" }, "engines": { - "node": ">= 8" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/wrap-ansi": { @@ -4134,24 +3496,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -4163,6 +3507,7 @@ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.0" } @@ -4180,7 +3525,8 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/yargs": { "version": "17.7.3", @@ -4209,64 +3555,26 @@ "node": ">=12" } }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "node_modules/zip-stream": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz", - "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "peer": true, - "dependencies": { - "archiver-utils": "^3.0.4", - "compress-commons": "^4.1.2", - "readable-stream": "^3.6.0" - }, + "license": "MIT", "engines": { - "node": ">= 10" - } - }, - "node_modules/zip-stream/node_modules/archiver-utils": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz", - "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==", - "dev": true, - "peer": true, - "dependencies": { - "glob": "^7.2.3", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" + "node": ">=10" }, - "engines": { - "node": ">= 10" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } } }, "dependencies": { - "@develar/schema-utils": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz", - "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==", - "dev": true, - "requires": { - "ajv": "^6.12.0", - "ajv-keywords": "^3.4.1" - } + "@electron-internal/extract-zip": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.5.tgz", + "integrity": "sha512-+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==", + "dev": true }, "@electron/asar": { "version": "3.4.1", @@ -4279,10 +3587,16 @@ "minimatch": "^3.0.4" }, "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, "brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -4300,26 +3614,50 @@ } } }, + "@electron/fuses": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz", + "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==", + "dev": true, + "requires": { + "chalk": "^4.1.1", + "fs-extra": "^9.0.1", + "minimist": "^1.2.5" + }, + "dependencies": { + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } + } + }, "@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz", + "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==", "dev": true, "requires": { - "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "global-agent": "^3.0.0", - "got": "^11.8.5", + "debug": "^4.1.1", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", "progress": "^2.0.3", - "semver": "^6.2.0", - "sumchecker": "^3.0.1" + "semver": "^7.6.3", + "sumchecker": "^3.0.1", + "undici": "^7.24.4" } }, "@electron/notarize": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.2.1.tgz", - "integrity": "sha512-aL+bFMIkpR0cmmj5Zgy0LMKEpgy43/hw5zadEArgmAMWWlKc5buwFvFT9G/o/YJkvXAJm5q3iuTuLaiaXW39sg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz", + "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==", "dev": true, "requires": { "debug": "^4.1.1", @@ -4338,29 +3676,13 @@ "jsonfile": "^6.0.1", "universalify": "^2.0.0" } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true } } }, "@electron/osx-sign": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.0.5.tgz", - "integrity": "sha512-k9ZzUQtamSoweGQDV2jILiRIHUu7lYlJ3c6IEmjv1hC17rclE+eb9U+f6UFlOOETo0JzY1HNlXy4YOlCvl+Lww==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz", + "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==", "dev": true, "requires": { "compare-version": "^0.1.2", @@ -4371,174 +3693,134 @@ "plist": "^3.0.5" }, "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, "isbinaryfile": { "version": "4.0.10", "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", "dev": true - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + } + } + }, + "@electron/rebuild": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz", + "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==", + "dev": true, + "requires": { + "@malept/cross-spawn-promise": "^2.0.0", + "debug": "^4.1.1", + "node-abi": "^4.2.0", + "node-api-version": "^0.2.1", + "node-gyp": "^12.2.0", + "read-binary-file-arch": "^1.0.6" + }, + "dependencies": { + "node-abi": { + "version": "4.39.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.39.0.tgz", + "integrity": "sha512-pULjI3qsVrn6K5DZz5tCpX2dL8IKM9/xBMRz29hBko8UFXZ/C3QxRMl/Z7wKaQwaxPmYU+7UPKbDf7EO+ASvfA==", "dev": true, "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" + "semver": "^7.6.3" } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true } } }, "@electron/universal": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-1.5.1.tgz", - "integrity": "sha512-kbgXxyEauPJiQQUNG2VgUeyfQNFk6hBF11ISN2PNI6agUgPl55pv4eQmaqHzTAzchBvqZ2tQuRVaPStGf0mxGw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz", + "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==", "dev": true, "requires": { - "@electron/asar": "^3.2.1", - "@malept/cross-spawn-promise": "^1.1.0", + "@electron/asar": "^3.3.1", + "@malept/cross-spawn-promise": "^2.0.0", "debug": "^4.3.1", - "dir-compare": "^3.0.0", - "fs-extra": "^9.0.1", - "minimatch": "^3.0.4", - "plist": "^3.0.4" + "dir-compare": "^4.2.0", + "fs-extra": "^11.1.1", + "minimatch": "^9.0.3", + "plist": "^3.1.0" }, "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, "brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", "dev": true, "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, "requires": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, "minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.2" } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true } } }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "@electron/windows-sign": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz", + "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==", "dev": true, + "optional": true, + "peer": true, "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true - }, - "ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", - "dev": true, - "requires": { - "ansi-regex": "^6.2.2" - } - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "cross-dirname": "^0.1.0", + "debug": "^4.3.4", + "fs-extra": "^11.1.1", + "minimist": "^1.2.8", + "postject": "^1.0.0-alpha.6" + }, + "dependencies": { + "fs-extra": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz", + "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==", "dev": true, + "optional": true, + "peer": true, "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" } } } }, + "@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, + "requires": { + "minipass": "^7.0.4" + } + }, "@malept/cross-spawn-promise": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", - "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", + "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", "dev": true, "requires": { "cross-spawn": "^7.0.1" @@ -4567,31 +3849,56 @@ "jsonfile": "^6.0.1", "universalify": "^2.0.0" } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true } } }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "@noble/hashes": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz", + "integrity": "sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==", + "dev": true + }, + "@peculiar/asn1-schema": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.0.tgz", + "integrity": "sha512-8xh4avo53/vXO6UEv9yaoJ83hY581geaLTygf61NPIXP5AeIZCPjJhpTaYU23IZkG+NpLN/C9FYzWp7hphIT9A==", "dev": true, - "optional": true + "requires": { + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" + } + }, + "@peculiar/json-schema": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", + "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", + "dev": true, + "requires": { + "tslib": "^2.0.0" + } + }, + "@peculiar/utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz", + "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==", + "dev": true, + "requires": { + "tslib": "^2.8.1" + } + }, + "@peculiar/webcrypto": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.1.tgz", + "integrity": "sha512-ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==", + "dev": true, + "requires": { + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "tslib": "^2.8.1", + "webcrypto-core": "^1.9.2" + } }, "@sindresorhus/is": { "version": "4.6.0", @@ -4608,12 +3915,6 @@ "defer-to-connect": "^2.0.0" } }, - "@tootallnate/once": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.1.tgz", - "integrity": "sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==", - "dev": true - }, "@types/cacheable-request": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", @@ -4666,23 +3967,12 @@ "dev": true }, "@types/node": { - "version": "18.19.130", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", - "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==", + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", "dev": true, "requires": { - "undici-types": "~5.26.4" - } - }, - "@types/plist": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz", - "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==", - "dev": true, - "optional": true, - "requires": { - "@types/node": "*", - "xmlbuilder": ">=11.0.1" + "undici-types": ">=7.24.0 <7.24.7" } }, "@types/responselike": { @@ -4694,63 +3984,36 @@ "@types/node": "*" } }, - "@types/verror": { - "version": "1.10.11", - "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz", - "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==", - "dev": true, - "optional": true - }, - "@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dev": true, - "optional": true, - "requires": { - "@types/node": "*" - } - }, "@xmldom/xmldom": { - "version": "0.9.10", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.10.tgz", - "integrity": "sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==", + "version": "0.8.15", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz", + "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==", "dev": true }, - "7zip-bin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz", - "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==", + "abbrev": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", "dev": true }, "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true }, "ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" } }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} - }, "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -4766,171 +4029,141 @@ "color-convert": "^2.0.1" } }, - "app-builder-bin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-4.0.0.tgz", - "integrity": "sha512-xwdG0FJPQMe0M0UA4Tz0zEB8rBJTRA5a476ZawAqiBkMv16GRK5xpXThOjMaEOFnZ6zabejjG4J3da0SXG63KA==", - "dev": true - }, "app-builder-lib": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-24.13.3.tgz", - "integrity": "sha512-FAzX6IBit2POXYGnTCT8YHFO/lr5AapAII6zzhQO3Rw4cEDOgK+t1xhLc5tNcKlicTHlo9zxIwnYCX9X2DLkig==", - "dev": true, - "requires": { - "@develar/schema-utils": "~2.6.5", - "@electron/notarize": "2.2.1", - "@electron/osx-sign": "1.0.5", - "@electron/universal": "1.5.1", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.15.3.tgz", + "integrity": "sha512-2VnyWkqsP5v5XbBhL3tD5Syx8iNPBYsoU7kY4S2fz7wg8Rj/nztWKCUzGKaFRTv0Xwf3/H058CR1Kvtd/3lRow==", + "dev": true, + "requires": { + "@electron/asar": "3.4.1", + "@electron/fuses": "^1.8.0", + "@electron/get": "^3.0.0", + "@electron/notarize": "2.5.0", + "@electron/osx-sign": "1.3.3", + "@electron/rebuild": "^4.0.4", + "@electron/universal": "2.0.3", "@malept/flatpak-bundler": "^0.4.0", + "@noble/hashes": "^2.2.0", + "@peculiar/webcrypto": "^1.7.1", "@types/fs-extra": "9.0.13", + "ajv": "^8.18.0", + "asn1js": "^3.0.10", "async-exit-hook": "^2.0.1", - "bluebird-lst": "^1.0.9", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", "chromium-pickle-js": "^0.2.0", + "ci-info": "4.3.1", "debug": "^4.3.4", + "dotenv": "^16.4.5", + "dotenv-expand": "^11.0.6", "ejs": "^3.1.8", - "electron-publish": "24.13.1", - "form-data": "^4.0.0", + "electron-publish": "26.15.3", "fs-extra": "^10.1.0", "hosted-git-info": "^4.1.0", - "is-ci": "^3.0.0", "isbinaryfile": "^5.0.0", + "jiti": "^2.4.2", "js-yaml": "^4.1.0", + "json5": "^2.2.3", "lazy-val": "^1.0.5", - "minimatch": "^5.1.1", - "read-config-file": "6.3.2", - "sanitize-filename": "^1.6.3", - "semver": "^7.3.8", - "tar": "^6.1.12", - "temp-file": "^3.4.0" - }, - "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "minimatch": "^10.2.5", + "pkijs": "^3.4.0", + "plist": "3.1.0", + "proper-lockfile": "^4.1.2", + "resedit": "^1.7.0", + "semver": "~7.7.3", + "tar": "^7.5.7", + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0", + "unzipper": "^0.12.3", + "which": "^5.0.0" + }, + "dependencies": { + "@electron/get": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz", + "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==", "dev": true, "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "debug": "^4.1.1", + "env-paths": "^2.2.0", + "fs-extra": "^8.1.0", + "global-agent": "^3.0.0", + "got": "^11.8.5", + "progress": "^2.0.3", + "semver": "^6.2.0", + "sumchecker": "^3.0.1" + }, + "dependencies": { + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, + "ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "dev": true + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true + }, "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" + "graceful-fs": "^4.1.6" } }, "semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true }, "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true } } }, - "archiver": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", - "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", - "dev": true, - "peer": true, - "requires": { - "archiver-utils": "^2.1.0", - "async": "^3.2.4", - "buffer-crc32": "^0.2.1", - "readable-stream": "^3.6.0", - "readdir-glob": "^1.1.2", - "tar-stream": "^2.2.0", - "zip-stream": "^4.1.0" - } - }, - "archiver-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", - "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", - "dev": true, - "peer": true, - "requires": { - "glob": "^7.1.4", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^2.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "peer": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "peer": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "dev": true, - "optional": true - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "asn1js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz", + "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==", "dev": true, - "optional": true + "requires": { + "pvtsutils": "^1.3.6", + "pvutils": "^1.2.0", + "tslib": "^2.8.1" + } }, "async": { "version": "3.2.6", @@ -4956,97 +4189,30 @@ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true }, - "b4a": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.1.tgz", - "integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==", - "dev": true, - "requires": {} - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", "dev": true }, - "bare-events": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.9.1.tgz", - "integrity": "sha512-Z0oHEHAFDZkffN8Qc39zNZjQlMDkPJRyyyZieU1VH7u8c5S+qHZ2S8ixdKIAxEjfHO7FJxXmJWgteOghVanIsg==", - "dev": true, - "requires": {} - }, - "bare-fs": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.7.4.tgz", - "integrity": "sha512-y1kC+ffIx/tPLdTE693uNjHfzTfr+ravR5tvWlMXe25nELbkqV400S71qHDwbkAQ1FVEZobB1NFRzFbCCcyBCQ==", - "dev": true, - "requires": { - "bare-events": "^2.5.4", - "bare-path": "^3.0.0", - "bare-stream": "^2.6.4", - "bare-url": "^2.2.2", - "fast-fifo": "^1.3.2" - } - }, - "bare-path": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.1.1.tgz", - "integrity": "sha512-JprUlveX3QjApC1cTpsUOiscADftCGVWkzitbHsRqv84hzYwYHw2mbluddsq5TvI8mH/8Ov1f4BiMAdcB0oYnQ==", + "balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true }, - "bare-stream": { - "version": "2.13.3", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.3.tgz", - "integrity": "sha512-Kc+brLqvEqGkjyfiwJmImAOqLZL7OsoLKuavx+hJjgVV3nLTOjloJyPMFxjUPerGGHrNH0fLU06jjykMLWrERQ==", - "dev": true, - "requires": { - "b4a": "^1.8.1", - "streamx": "^2.25.0", - "teex": "^1.0.1" - } - }, - "bare-url": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.4.5.tgz", - "integrity": "sha512-K+y9xF1tN+CdPu4qWwr0QiK1Al07eFPGYK5M2pDXcmHdMdgC/tT/bpmMe1hrmRHaidKLkXrC+cRNYf3XVDUhSQ==", - "dev": true, - "requires": { - "bare-path": "^3.0.0" - } - }, "base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true }, - "bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, - "bluebird-lst": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz", - "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==", - "dev": true, - "requires": { - "bluebird": "^3.5.5" - } - }, "boolean": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", @@ -5055,36 +4221,14 @@ "optional": true }, "brace-expansion": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", - "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "dev": true, "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "balanced-match": "^4.0.2" } }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true - }, - "buffer-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", - "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", - "dev": true - }, "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -5092,68 +4236,43 @@ "dev": true }, "builder-util": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-24.13.1.tgz", - "integrity": "sha512-NhbCSIntruNDTOVI9fdXz0dihaqX2YuE1D6zZMrwiErzH4ELZHE6mdiB40wEgZNprDia+FghRFgKoAqMZRRjSA==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.15.3.tgz", + "integrity": "sha512-q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==", "dev": true, "requires": { "@types/debug": "^4.1.6", - "7zip-bin": "~5.2.0", - "app-builder-bin": "4.0.0", - "bluebird-lst": "^1.0.9", - "builder-util-runtime": "9.2.4", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", + "cross-spawn": "^7.0.6", "debug": "^4.3.4", "fs-extra": "^10.1.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-ci": "^3.0.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "js-yaml": "^4.1.0", + "sanitize-filename": "^1.6.3", "source-map-support": "^0.5.19", "stat-mode": "^1.0.0", - "temp-file": "^3.4.0" - }, - "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true - } + "temp-file": "^3.4.0", + "tiny-async-pool": "1.3.0" } }, "builder-util-runtime": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.4.tgz", - "integrity": "sha512-upp+biKpN/XZMLim7aguUyW8s0FUpDvOtK6sbanMFDAMBzpHDqdhgVYm6zc9HJ6nWo7u2Lxk60i2M6Jd3aiNrA==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz", + "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==", "dev": true, "requires": { "debug": "^4.3.4", "sax": "^1.2.4" } }, + "bytestreamjs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz", + "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==", + "dev": true + }, "cacheable-lookup": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", @@ -5196,9 +4315,9 @@ } }, "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", "dev": true }, "chromium-pickle-js": { @@ -5208,22 +4327,11 @@ "dev": true }, "ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", "dev": true }, - "cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "optional": true, - "requires": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - } - }, "cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -5244,16 +4352,6 @@ "mimic-response": "^1.0.0" } }, - "color": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", - "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", - "dev": true, - "requires": { - "color-convert": "^2.0.1", - "color-string": "^1.9.0" - } - }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -5269,16 +4367,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "color-string": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", - "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "dev": true, - "requires": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" - } - }, "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -5300,100 +4388,26 @@ "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", "dev": true }, - "compress-commons": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz", - "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==", - "dev": true, - "peer": true, - "requires": { - "buffer-crc32": "^0.2.13", - "crc32-stream": "^4.0.2", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - } - }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, - "config-file-ts": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.6.tgz", - "integrity": "sha512-6boGVaglwblBgJqGyxm4+xCmEGcWgnWHSWHY5jad58awQhB6gftq0G8HbzU39YqCIYHMLAiL1yjwiZ36m/CL8w==", - "dev": true, - "requires": { - "glob": "^10.3.10", - "typescript": "^5.3.3" - }, - "dependencies": { - "glob": { - "version": "10.5.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", - "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - } - }, - "minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.2" - } - }, - "minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", - "dev": true - } - } - }, "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, - "crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "cross-dirname": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz", + "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==", "dev": true, "optional": true, - "requires": { - "buffer": "^5.1.0" - } - }, - "crc-32": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", - "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", - "dev": true, "peer": true }, - "crc32-stream": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz", - "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==", - "dev": true, - "peer": true, - "requires": { - "crc-32": "^1.2.0", - "readable-stream": "^3.4.0" - } - }, "cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -5403,6 +4417,23 @@ "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" + }, + "dependencies": { + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "debug": { @@ -5431,12 +4462,6 @@ } } }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, "defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", @@ -5473,12 +4498,6 @@ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true }, - "detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true - }, "detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", @@ -5487,19 +4506,25 @@ "optional": true }, "dir-compare": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz", - "integrity": "sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz", + "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==", "dev": true, "requires": { - "buffer-equal": "^1.0.0", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5", + "p-limit": "^3.1.0 " }, "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, "brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -5518,77 +4543,31 @@ } }, "dmg-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-24.13.3.tgz", - "integrity": "sha512-rcJUkMfnJpfCboZoOOPf4L29TRtEieHNOeAbYPWPxlaBw/Z1RKrRA86dOI9rwaI4tQSc/RD82zTNHprfUHXsoQ==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.15.3.tgz", + "integrity": "sha512-O3zJUFUYHJKgzPqioHxfxzBzlSC1eXCSr79gMSBKBP5AgjjpmrydMsMLotEg9fAJF36vdUncb+4ndRNxoPdlSQ==", "dev": true, "requires": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", - "dmg-license": "^1.0.11", + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", "fs-extra": "^10.1.0", - "iconv-lite": "^0.6.2", "js-yaml": "^4.1.0" - }, - "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true - } - } - }, - "dmg-license": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz", - "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==", - "dev": true, - "optional": true, - "requires": { - "@types/plist": "^3.0.1", - "@types/verror": "^1.10.3", - "ajv": "^6.10.0", - "crc": "^3.8.0", - "iconv-corefoundation": "^1.1.7", - "plist": "^3.0.4", - "smart-buffer": "^4.0.2", - "verror": "^1.10.0" } }, "dotenv": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", - "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", "dev": true }, "dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", - "dev": true + "version": "11.0.7", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz", + "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==", + "dev": true, + "requires": { + "dotenv": "^16.4.5" + } }, "dunder-proto": { "version": "1.0.1", @@ -5601,11 +4580,46 @@ "gopd": "^1.2.0" } }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } }, "ejs": { "version": "3.1.10", @@ -5617,150 +4631,106 @@ } }, "electron": { - "version": "26.6.10", - "resolved": "https://registry.npmjs.org/electron/-/electron-26.6.10.tgz", - "integrity": "sha512-pV2SD0RXzAiNRb/2yZrsVmVkBOMrf+DVsPulIgRjlL0+My9BL5spFuhHVMQO9yHl9tFpWtuRpQv0ofM/i9P8xg==", + "version": "44.9.3", + "resolved": "https://registry.npmjs.org/electron/-/electron-44.9.3.tgz", + "integrity": "sha512-Cv9/yMnZxNWsMlIe8T4v//NKHdUvbeyoTJoXE3BIcRxus2meeFaO9h/P3zB5d4cBXum51IgAYrT2QjpIDWKpJA==", "dev": true, "requires": { - "@electron/get": "^2.0.0", - "@types/node": "^18.11.18", - "extract-zip": "^2.0.1" + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" } }, "electron-builder": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-24.13.3.tgz", - "integrity": "sha512-yZSgVHft5dNVlo31qmJAe4BVKQfFdwpRw7sFp1iQglDRCDD6r22zfRJuZlhtB5gp9FHUxCMEoWGq10SkCnMAIg==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.15.3.tgz", + "integrity": "sha512-a1KM5heqS3gQCZzizXEI8RjJy3QVogULPdeSknt76uLDpBIW/HDGsMg/XgP0riP6PI9COsRvFITKKGDqA8fJxA==", "dev": true, "requires": { - "app-builder-lib": "24.13.3", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", - "dmg-builder": "24.13.3", + "ci-info": "^4.2.0", + "dmg-builder": "26.15.3", "fs-extra": "^10.1.0", - "is-ci": "^3.0.0", "lazy-val": "^1.0.5", - "read-config-file": "6.3.2", "simple-update-notifier": "2.0.0", "yargs": "^17.6.2" - }, - "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true - } } }, "electron-builder-squirrel-windows": { - "version": "24.13.3", - "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-24.13.3.tgz", - "integrity": "sha512-oHkV0iogWfyK+ah9ZIvMDpei1m9ZRpdXcvde1wTpra2U8AFDNNpqJdnin5z+PM1GbQ5BoaKCWas2HSjtR0HwMg==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.15.3.tgz", + "integrity": "sha512-Jc19XPV9y9+2bAdZPkXuVNGNIEFBq9poHC61l8Kv6FdK7DRG3+Ic0rerC0DXOaeHNz8yW0fg/JnF8GQROOF5MA==", "dev": true, "peer": true, "requires": { - "app-builder-lib": "24.13.3", - "archiver": "^5.3.1", - "builder-util": "24.13.1", - "fs-extra": "^10.1.0" - }, - "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "peer": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "peer": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "peer": true - } + "app-builder-lib": "26.15.3", + "builder-util": "26.15.3", + "electron-winstaller": "5.4.0" } }, "electron-publish": { - "version": "24.13.1", - "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-24.13.1.tgz", - "integrity": "sha512-2ZgdEqJ8e9D17Hwp5LEq5mLQPjqU3lv/IALvgp+4W8VeNhryfGhYEQC/PgDPMrnWUp+l60Ou5SJLsu+k4mhQ8A==", + "version": "26.15.3", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.15.3.tgz", + "integrity": "sha512-g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==", "dev": true, "requires": { "@types/fs-extra": "^9.0.11", - "builder-util": "24.13.1", - "builder-util-runtime": "9.2.4", + "aws4": "^1.13.2", + "builder-util": "26.15.3", + "builder-util-runtime": "9.7.0", "chalk": "^4.1.2", + "form-data": "^4.0.5", "fs-extra": "^10.1.0", "lazy-val": "^1.0.5", "mime": "^2.5.2" + } + }, + "electron-winstaller": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz", + "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==", + "dev": true, + "peer": true, + "requires": { + "@electron/asar": "^3.2.1", + "@electron/windows-sign": "^1.1.2", + "debug": "^4.1.1", + "fs-extra": "^7.0.1", + "lodash": "^4.17.21", + "temp": "^0.9.0" }, "dependencies": { "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "dev": true, + "peer": true, "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, + "peer": true, "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" + "graceful-fs": "^4.1.6" } }, "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "peer": true } } }, @@ -5780,9 +4750,9 @@ } }, "env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", "dev": true }, "err-code": { @@ -5833,77 +4803,41 @@ }, "escalade": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "optional": true - }, - "events-universal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", - "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", - "dev": true, - "requires": { - "bare-events": "^2.7.0" - } - }, - "expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true }, - "extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "requires": { - "@types/yauzl": "^2.9.1", - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - } - }, - "extsprintf": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", - "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "optional": true }, + "exponential-backoff": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", + "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", + "dev": true + }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, - "fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "dev": true }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, - "requires": { - "pend": "~1.2.0" - } + "requires": {} }, "filelist": { "version": "1.0.6", @@ -5912,16 +4846,32 @@ "dev": true, "requires": { "minimatch": "^5.0.1" - } - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", + "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } } }, "form-data": { @@ -5937,41 +4887,15 @@ "mime-types": "^2.1.35" } }, - "fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, "requires": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - }, - "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - } + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" } }, "fs.realpath": { @@ -6029,12 +4953,6 @@ "pump": "^3.0.0" } }, - "github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "dev": true - }, "glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -6049,10 +4967,16 @@ "path-is-absolute": "^1.0.0" }, "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, "brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -6083,15 +5007,6 @@ "roarr": "^2.15.3", "semver": "^7.3.2", "serialize-error": "^7.0.1" - }, - "dependencies": { - "semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "optional": true - } } }, "globalthis": { @@ -6186,20 +5101,19 @@ } }, "http-cache-semantics": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", - "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", "dev": true }, "http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dev": true, "requires": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" + "agent-base": "^7.1.0", + "debug": "^4.3.4" } }, "http2-wrapper": { @@ -6213,41 +5127,15 @@ } }, "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dev": true, "requires": { - "agent-base": "6", + "agent-base": "^7.1.2", "debug": "4" } }, - "iconv-corefoundation": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz", - "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==", - "dev": true, - "optional": true, - "requires": { - "cli-truncate": "^2.1.0", - "node-addon-api": "^1.6.3" - } - }, - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true - }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -6264,27 +5152,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - }, - "is-arrayish": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz", - "integrity": "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==", - "dev": true - }, - "is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", - "dev": true, - "requires": { - "ci-info": "^3.2.0" - } - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -6295,8 +5162,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, - "peer": true + "dev": true }, "isbinaryfile": { "version": "5.0.7", @@ -6305,21 +5171,11 @@ "dev": true }, "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz", + "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==", "dev": true }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, "jake": { "version": "10.9.4", "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", @@ -6331,10 +5187,16 @@ "picocolors": "^1.1.1" } }, + "jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true + }, "js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", "dev": true, "requires": { "argparse": "^2.0.1" @@ -6347,9 +5209,9 @@ "dev": true }, "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, "json-stringify-safe": { @@ -6366,12 +5228,13 @@ "dev": true }, "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", "dev": true, "requires": { - "graceful-fs": "^4.1.6" + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" } }, "keyv": { @@ -6389,92 +5252,12 @@ "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", "dev": true }, - "lazystream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "dev": true, - "peer": true, - "requires": { - "readable-stream": "^2.0.5" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "peer": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "peer": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "lodash": { "version": "4.18.1", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", "dev": true }, - "lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==", - "dev": true, - "peer": true - }, - "lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==", - "dev": true, - "peer": true - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==", - "dev": true, - "peer": true - }, - "lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true, - "peer": true - }, - "lodash.union": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", - "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", - "dev": true, - "peer": true - }, "lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", @@ -6534,12 +5317,12 @@ "dev": true }, "minimatch": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, "requires": { - "brace-expansion": "^2.0.1" + "brace-expansion": "^5.0.8" } }, "minimist": { @@ -6549,43 +5332,29 @@ "dev": true }, "minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", "dev": true }, "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", "dev": true, "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "dependencies": { - "minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - } + "minipass": "^7.1.2" } }, "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "peer": true, + "requires": { + "minimist": "^1.2.6" + } }, "ms": { "version": "2.1.3", @@ -6593,42 +5362,76 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, - "napi-build-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", - "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", - "dev": true - }, - "node-abi": { - "version": "3.94.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.94.0.tgz", - "integrity": "sha512-W5ZNO5KRPB5TkYmGVD9F6YqhsglXJzE6etpbmT+f6EQElhiX/UTG551cnsRGvLG3fyZEg9HwaDmNmj5nwJ4z9g==", + "node-api-version": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz", + "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==", "dev": true, "requires": { "semver": "^7.3.5" - }, - "dependencies": { - "semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + } + }, + "node-gyp": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "dev": true, + "requires": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "tar": "^7.5.4", + "tinyglobby": "^0.2.12", + "undici": "^6.25.0", + "which": "^6.0.0" + }, + "dependencies": { + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true + }, + "isexe": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true + }, + "undici": { + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", "dev": true + }, + "which": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, + "requires": { + "isexe": "^4.0.0" + } } } }, - "node-addon-api": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz", - "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==", - "dev": true, - "optional": true + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "nopt": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", "dev": true, - "peer": true + "requires": { + "abbrev": "^4.0.0" + } }, "normalize-url": { "version": "6.1.0", @@ -6658,11 +5461,14 @@ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", "dev": true }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } }, "path-is-absolute": { "version": "1.0.1", @@ -6670,124 +5476,95 @@ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "pe-library": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz", + "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "pkijs": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.3.tgz", + "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==", "dev": true, "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + "@noble/hashes": "1.8.0", + "asn1js": "^3.0.6", + "bytestreamjs": "^2.0.1", + "pvtsutils": "^1.3.6", + "pvutils": "^1.1.3", + "tslib": "^2.8.1" }, "dependencies": { - "lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", "dev": true } } }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true - }, - "picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true - }, "plist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz", - "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", "dev": true, "requires": { - "@xmldom/xmldom": "^0.9.10", + "@xmldom/xmldom": "^0.8.8", "base64-js": "^1.5.1", "xmlbuilder": "^15.1.1" } }, - "png-to-ico": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/png-to-ico/-/png-to-ico-2.1.8.tgz", - "integrity": "sha512-Nf+IIn/cZ/DIZVdGveJp86NG5uNib1ZXMiDd/8x32HCTeKSvgpyg6D/6tUBn1QO/zybzoMK0/mc3QRgAyXdv9w==", + "postject": { + "version": "1.0.0-alpha.6", + "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz", + "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==", "dev": true, + "optional": true, + "peer": true, "requires": { - "@types/node": "^17.0.36", - "minimist": "^1.2.6", - "pngjs": "^6.0.0" + "commander": "^9.4.0" }, "dependencies": { - "@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", - "dev": true + "commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "optional": true, + "peer": true } } }, - "pngjs": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", - "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", "dev": true }, - "prebuild-install": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", - "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", - "dev": true, - "requires": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^2.0.0", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "dependencies": { - "chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "tar-fs": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.5.tgz", - "integrity": "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==", - "dev": true, - "requires": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - } - } - }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "peer": true + "dev": true }, "progress": { "version": "2.0.3", @@ -6805,6 +5582,17 @@ "retry": "^0.12.0" } }, + "proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, "pump": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", @@ -6815,10 +5603,19 @@ "once": "^1.3.1" } }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "pvtsutils": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", + "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", + "dev": true, + "requires": { + "tslib": "^2.8.1" + } + }, + "pvutils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz", + "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==", "dev": true }, "quick-lru": { @@ -6827,51 +5624,13 @@ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", "dev": true }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "read-config-file": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-6.3.2.tgz", - "integrity": "sha512-M80lpCjnE6Wt6zb98DoW8WHR09nzMSpu8XHtPkiTHrJ5Az9CybfeQhTJ8D7saeBHpGhLPIVyA8lcL6ZmdKwY6Q==", - "dev": true, - "requires": { - "config-file-ts": "^0.2.4", - "dotenv": "^9.0.2", - "dotenv-expand": "^5.1.0", - "js-yaml": "^4.1.0", - "json5": "^2.2.0", - "lazy-val": "^1.0.4" - } - }, - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdir-glob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", - "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "read-binary-file-arch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", + "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", "dev": true, - "peer": true, "requires": { - "minimatch": "^5.1.0" + "debug": "^4.3.4" } }, "require-directory": { @@ -6880,6 +5639,21 @@ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true + }, + "resedit": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz", + "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==", + "dev": true, + "requires": { + "pe-library": "^0.4.1" + } + }, "resolve-alpn": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", @@ -6901,6 +5675,16 @@ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true }, + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "peer": true, + "requires": { + "glob": "^7.1.3" + } + }, "roarr": { "version": "2.15.4", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", @@ -6916,18 +5700,6 @@ "sprintf-js": "^1.1.2" } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, "sanitize-filename": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz", @@ -6938,15 +5710,15 @@ } }, "sax": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz", - "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", "dev": true }, "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", "dev": true }, "semver-compare": { @@ -6966,36 +5738,6 @@ "type-fest": "^0.13.1" } }, - "sharp": { - "version": "0.32.6", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz", - "integrity": "sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==", - "dev": true, - "requires": { - "color": "^4.2.3", - "detect-libc": "^2.0.2", - "node-addon-api": "^6.1.0", - "prebuild-install": "^7.1.1", - "semver": "^7.5.4", - "simple-get": "^4.0.1", - "tar-fs": "^3.0.4", - "tunnel-agent": "^0.6.0" - }, - "dependencies": { - "node-addon-api": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", - "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", - "dev": true - }, - "semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true - } - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -7012,37 +5754,11 @@ "dev": true }, "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true - }, - "simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, - "simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "dev": true, - "requires": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "simple-swizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz", - "integrity": "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==", - "dev": true, - "requires": { - "is-arrayish": "^0.3.1" - } - }, "simple-update-notifier": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", @@ -7050,35 +5766,8 @@ "dev": true, "requires": { "semver": "^7.5.3" - }, - "dependencies": { - "semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true - } - } - }, - "slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" } }, - "smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, - "optional": true - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -7108,26 +5797,6 @@ "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", "dev": true }, - "streamx": { - "version": "2.28.0", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.28.0.tgz", - "integrity": "sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==", - "dev": true, - "requires": { - "events-universal": "^1.0.0", - "fast-fifo": "^1.3.2", - "text-decoder": "^1.1.0" - } - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - } - }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -7139,17 +5808,6 @@ "strip-ansi": "^6.0.1" } }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -7159,21 +5817,6 @@ "ansi-regex": "^5.0.1" } }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true - }, "sumchecker": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", @@ -7193,65 +5836,35 @@ } }, "tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dev": true, - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - } - }, - "tar-fs": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.3.tgz", - "integrity": "sha512-/hU4AXnIdZu+Gvl1pk0oI5f5HxWsCJRtY2aFaJdk9VvyL48DWU6iU5WAIPG+wIi1YvWA6eTJvIviP/tMAZZNwQ==", + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", "dev": true, "requires": { - "bare-fs": "^4.0.1", - "bare-path": "^3.0.0", - "pump": "^3.0.0", - "tar-stream": "^3.1.5" + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" }, "dependencies": { - "tar-stream": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.0.tgz", - "integrity": "sha512-ojzvCvVaNp6aOTFmG7jaRD0meowIAuPc3cMMhSgKiVWws1GyHbGd/xvnyuRKcKlMpt3qvxx6r0hreCNITP9hIg==", - "dev": true, - "requires": { - "b4a": "^1.6.4", - "bare-fs": "^4.5.5", - "fast-fifo": "^1.2.0", - "streamx": "^2.15.0" - } + "yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true } } }, - "tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "requires": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - } - }, - "teex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", - "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", + "temp": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", + "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", "dev": true, + "peer": true, "requires": { - "streamx": "^2.12.5" + "mkdirp": "^0.5.1", + "rimraf": "~2.6.2" } }, "temp-file": { @@ -7262,44 +5875,33 @@ "requires": { "async-exit-hook": "^2.0.1", "fs-extra": "^10.0.0" + } + }, + "tiny-async-pool": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz", + "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==", + "dev": true, + "requires": { + "semver": "^5.5.0" }, "dependencies": { - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true } } }, - "text-decoder": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.7.tgz", - "integrity": "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==", + "tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "requires": { - "b4a": "^1.6.4" + "fdir": "^6.5.0", + "picomatch": "^4.0.4" } }, "tmp": { @@ -7326,14 +5928,11 @@ "utf8-byte-length": "^1.0.1" } }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } + "tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true }, "type-fest": { "version": "0.13.1", @@ -7342,31 +5941,49 @@ "dev": true, "optional": true }, - "typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true + "undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", + "dev": true, + "optional": true }, "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", "dev": true }, "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "unzipper": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz", + "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==", "dev": true, "requires": { - "punycode": "^2.1.0" + "bluebird": "~3.7.2", + "duplexer2": "~0.1.4", + "fs-extra": "11.3.1", + "graceful-fs": "^4.2.2", + "node-int64": "^0.4.0" + }, + "dependencies": { + "fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } } }, "utf8-byte-length": { @@ -7381,25 +5998,26 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, - "verror": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", - "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", + "webcrypto-core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz", + "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==", "dev": true, - "optional": true, "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "@peculiar/asn1-schema": "^2.7.0", + "@peculiar/json-schema": "^1.1.12", + "@peculiar/utils": "^2.0.2", + "asn1js": "^3.0.10", + "tslib": "^2.8.1" } }, "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", "dev": true, "requires": { - "isexe": "^2.0.0" + "isexe": "^3.1.1" } }, "wrap-ansi": { @@ -7413,17 +6031,6 @@ "strip-ansi": "^6.0.0" } }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -7469,48 +6076,11 @@ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true }, - "yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "zip-stream": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz", - "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==", - "dev": true, - "peer": true, - "requires": { - "archiver-utils": "^3.0.4", - "compress-commons": "^4.1.2", - "readable-stream": "^3.6.0" - }, - "dependencies": { - "archiver-utils": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz", - "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==", - "dev": true, - "peer": true, - "requires": { - "glob": "^7.2.3", - "graceful-fs": "^4.2.0", - "lazystream": "^1.0.0", - "lodash.defaults": "^4.2.0", - "lodash.difference": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.union": "^4.6.0", - "normalize-path": "^3.0.0", - "readable-stream": "^3.6.0" - } - } - } + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true } } } diff --git a/electron/package.json b/electron/package.json index a31eef4..5caa9c6 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,5 +1,5 @@ { - "name": "finance-mosaix-electron", + "name": "finance-mosaix", "version": "0.2.0", "private": true, "description": "Electron wrapper for the Finance Mosaix Streamlit dashboard.", @@ -8,85 +8,18 @@ "type": "git", "url": "https://github.com/Developer-Simon/finance-mosaix.git" }, - "main": "main.js", + "main": "src/main.js", "scripts": { - "start": "electron .", - "build-runtime": "node -e \"require('child_process').spawnSync('python', ['build_python_runtime.py'], {stdio:'inherit'})\"", - "generate-icon": "node generate-icon.js", + "start": "node scripts/start.js", + "test": "node --test \"test/**/*.test.js\"", + "build:requirements": "python3 scripts/write_requirements.py || python scripts/write_requirements.py", + "build:runtime": "npm run build:requirements && node runtime/build-runtime.js", "sync-version": "node sync_version.js", - "dist": "npm run build-runtime && npm run sync-version && electron-builder --publish never" + "dist:slim": "npm run build:requirements && electron-builder --config electron-builder.yml --publish never", + "dist:full": "electron-builder --config electron-builder.full.yml --publish never" }, "devDependencies": { - "electron": "^26.0.0", - "electron-builder": "^24.0.0", - "png-to-ico": "^2.0.0", - "sharp": "^0.32.0" - }, - "build": { - "appId": "com.finance.mosaix.dashboard", - "productName": "Finance Mosaix Dashboard", - "icon": "../docs/img/favicon-256.png", - "files": [ - "main.js", - "preload.js", - "package.json" - ], - "extraResources": [ - { - "from": "../dashboard", - "to": "dashboard", - "filter": [ - "**/*", - "!settings.json", - "!**/__pycache__/**", - "!**/*.py[cod]" - ] - }, - { - "from": "../src", - "to": "src", - "filter": [ - "**/*", - "!**/__pycache__/**", - "!**/*.py[cod]" - ] - }, - { - "from": "../pyproject.toml", - "to": "pyproject.toml" - }, - { - "from": "../start_dashboard.py", - "to": "start_dashboard.py" - }, - { - "from": "../electron/VERSION", - "to": "VERSION" - }, - { - "from": "python-runtime", - "to": "python-runtime", - "filter": [ - "**/*" - ] - } - ], - "directories": { - "buildResources": "build" - }, - "publish": null, - "win": { - "icon": "../docs/img/favicon.ico", - "target": [ - "nsis" - ] - }, - "linux": { - "icon": "../docs/img/favicon-256.png", - "target": [ - "AppImage" - ], - "category": "Utility" - } + "electron": "^44.9.0", + "electron-builder": "^26.15.3" } } diff --git a/electron/preload.js b/electron/preload.js deleted file mode 100644 index 299a9ce..0000000 --- a/electron/preload.js +++ /dev/null @@ -1,5 +0,0 @@ -const { contextBridge } = require('electron'); - -contextBridge.exposeInMainWorld('financeMosaix', { - platform: process.platform, -}); diff --git a/electron/runtime/build-runtime.js b/electron/runtime/build-runtime.js new file mode 100644 index 0000000..e2e3ac2 --- /dev/null +++ b/electron/runtime/build-runtime.js @@ -0,0 +1,181 @@ +'use strict'; + +// Builds the bundled Python interpreter into electron/build/python/. +// Downloads the python-build-standalone asset pinned in runtime.lock.json, +// checks its SHA-256 sum, unpacks it and installs the app requirements +// from electron/build/requirements.txt into it. +// +// CLI: node runtime/build-runtime.js [--target ] + +const crypto = require('node:crypto'); +const fs = require('node:fs'); +const path = require('node:path'); +const { Readable } = require('node:stream'); +const { pipeline } = require('node:stream/promises'); +const { spawnSync } = require('node:child_process'); + +const lock = require('./runtime.lock.json'); + +const ELECTRON_DIR = path.resolve(__dirname, '..'); +const BUILD_DIR = path.join(ELECTRON_DIR, 'build'); +const CACHE_DIR = path.join(BUILD_DIR, 'cache'); +const PYTHON_DIR = path.join(BUILD_DIR, 'python'); +const REQUIREMENTS = path.join(BUILD_DIR, 'requirements.txt'); + +const IMPORT_CHECK = + 'import streamlit, duckdb, pandas, numpy, openpyxl, altair, matplotlib, seaborn'; + +function targetKey(platform, arch) { + const key = `${platform}-${arch}`; + if (!Object.prototype.hasOwnProperty.call(lock.targets, key)) { + throw new Error( + `Unsupported platform: ${key}. Supported: ${Object.keys(lock.targets).join(', ')}`, + ); + } + return key; +} + +function pythonBinary(key) { + return key.startsWith('win32-') + ? path.join(PYTHON_DIR, 'python.exe') + : path.join(PYTHON_DIR, 'bin', 'python3'); +} + +function hashFile(file) { + return new Promise((resolve, reject) => { + const hash = crypto.createHash('sha256'); + const stream = fs.createReadStream(file); + stream.on('error', reject); + stream.on('data', (chunk) => hash.update(chunk)); + stream.on('end', () => resolve(hash.digest('hex'))); + }); +} + +async function verifySha256(file, expected) { + const actual = await hashFile(file); + if (actual !== expected.toLowerCase()) { + throw new Error(`SHA-256 mismatch for ${file}: expected ${expected}, computed ${actual}`); + } +} + +async function downloadTo(url, dest) { + const res = await fetch(url); + if (!res.ok || !res.body) { + throw new Error(`Download fehlgeschlagen (${res.status}): ${url}`); + } + const partial = `${dest}.part`; + await pipeline(Readable.fromWeb(res.body), fs.createWriteStream(partial)); + fs.renameSync(partial, dest); +} + +async function ensureArchive(entry, release) { + fs.mkdirSync(CACHE_DIR, { recursive: true }); + const archive = path.join(CACHE_DIR, entry.asset); + if (fs.existsSync(archive)) { + try { + await verifySha256(archive, entry.sha256); + return archive; + } catch { + fs.rmSync(archive, { force: true }); + } + } + const url = `https://github.com/astral-sh/python-build-standalone/releases/download/${release}/${encodeURIComponent(entry.asset)}`; + console.log(`Lade ${entry.asset} ...`); + await downloadTo(url, archive); + await verifySha256(archive, entry.sha256); + return archive; +} + +// On Windows, Windows' own tar (bsdtar): the GNU tar from Git Bash reads "D:\..." as a remote host "D". +function tarCommand(platform = process.platform, env = process.env) { + return platform === 'win32' ? path.win32.join(env.SystemRoot || 'C:\\Windows', 'System32', 'tar.exe') : 'tar'; +} + +function extractArchive(archive) { + fs.rmSync(PYTHON_DIR, { recursive: true, force: true }); + // The archive holds a top-level directory python/, which is unpacked into build/. + const res = spawnSync(tarCommand(), ['-xzf', archive, '-C', BUILD_DIR], { stdio: 'inherit' }); + if (res.error || res.status !== 0) { + throw new Error(`Entpacken fehlgeschlagen: ${archive}`); + } +} + +function isolatedEnv() { + const env = { ...process.env, PYTHONNOUSERSITE: '1' }; + delete env.PYTHONPATH; + delete env.PYTHONHOME; + return env; +} + +function run(python, args) { + return spawnSync(python, args, { stdio: 'inherit', env: isolatedEnv() }); +} + +function installRequirements(python) { + console.log('Installing requirements ...'); + const res = run(python, [ + '-m', + 'pip', + 'install', + '--disable-pip-version-check', + '--no-input', + '-r', + REQUIREMENTS, + ]); + if (res.error || res.status !== 0) { + throw new Error(`pip install fehlgeschlagen: ${REQUIREMENTS}`); + } +} + +function smokeTest(python) { + if (run(python, ['-c', 'import sys; print(sys.version)']).status !== 0) { + throw new Error(`Rauchtest fehlgeschlagen: ${python}`); + } + if (run(python, ['-c', IMPORT_CHECK]).status !== 0) { + throw new Error(`Import-Prüfung fehlgeschlagen: ${IMPORT_CHECK}`); + } +} + +function parseArgs(argv) { + const opts = { target: null }; + for (let i = 0; i < argv.length; i++) { + const arg = argv[i]; + if (arg === '--target') { + opts.target = argv[++i]; + if (!opts.target) throw new Error('--target braucht einen Wert, z. B. linux-x64'); + } else { + throw new Error(`Unbekanntes Argument: ${arg}`); + } + } + return opts; +} + +async function main(argv) { + const opts = parseArgs(argv); + const key = opts.target ? targetKey(...opts.target.split('-', 2)) : targetKey(process.platform, process.arch); + const entry = lock.targets[key]; + if (!fs.existsSync(REQUIREMENTS)) { + throw new Error(`Fehlt: ${REQUIREMENTS}. Zuerst "npm run build:requirements" ausführen.`); + } + + const archive = await ensureArchive(entry, lock.release); + extractArchive(archive); + + const python = pythonBinary(key); + if (!fs.existsSync(python)) { + throw new Error(`Interpreter not found after unpacking: ${python}`); + } + + installRequirements(python); + smokeTest(python); + console.log(`Fertig: ${python} (Python ${lock.python})`); +} + +module.exports = { targetKey, tarCommand, verifySha256 }; + +if (require.main === module) { + main(process.argv.slice(2)).catch((err) => { + console.error(err.message); + process.exit(1); + }); +} diff --git a/electron/runtime/runtime.lock.json b/electron/runtime/runtime.lock.json new file mode 100644 index 0000000..4878292 --- /dev/null +++ b/electron/runtime/runtime.lock.json @@ -0,0 +1,22 @@ +{ + "release": "20261013", + "python": "3.13.16", + "targets": { + "linux-x64": { + "asset": "cpython-3.13.16+20261013-x86_64-unknown-linux-gnu-install_only.tar.gz", + "sha256": "e588e50db882fa6a89f926d9a9ad64e445183af0eda5bda226a2c151b17db8a6" + }, + "darwin-arm64": { + "asset": "cpython-3.13.16+20261013-aarch64-apple-darwin-install_only.tar.gz", + "sha256": "ca0e6a70fb75a0984751bd75493e3de77680aef7fbd0fea9b903c299537b3423" + }, + "darwin-x64": { + "asset": "cpython-3.13.16+20261013-x86_64-apple-darwin-install_only.tar.gz", + "sha256": "d1f2e7b5f0cfa25fc856fea819890bbe722f47a692e5ce2552636b5240930b38" + }, + "win32-x64": { + "asset": "cpython-3.13.16+20261013-x86_64-pc-windows-msvc-install_only.tar.gz", + "sha256": "e1f9233e780fbe951e531b0eb207d794e1c3fb39d523a6f481f4fc01ef2b6ca5" + } + } +} diff --git a/electron/scripts/start.js b/electron/scripts/start.js new file mode 100644 index 0000000..17c1e6a --- /dev/null +++ b/electron/scripts/start.js @@ -0,0 +1,16 @@ +'use strict'; + +// Starts Electron from the project folder. ELECTRON_RUN_AS_NODE (set in some development +// environments, for example) would make Electron run as a plain Node script, so the +// variable is removed for the child process. +const { spawn } = require('node:child_process'); +const electron = require('electron'); + +const env = { ...process.env }; +delete env.ELECTRON_RUN_AS_NODE; + +// Further arguments (e.g. `npm start -- --smoke`) are passed through to the app. +const child = spawn(electron, ['.', ...process.argv.slice(2)], { stdio: 'inherit', env }); +child.on('exit', (code, signal) => { + process.exit(code ?? (signal ? 1 : 0)); +}); diff --git a/electron/scripts/write_requirements.py b/electron/scripts/write_requirements.py new file mode 100644 index 0000000..542e2d0 --- /dev/null +++ b/electron/scripts/write_requirements.py @@ -0,0 +1,33 @@ +"""Export [project].dependencies from pyproject.toml as a requirements.txt file.""" + +import argparse +import sys +import tomllib +from pathlib import Path + +REPO_ROOT = Path(__file__).resolve().parents[2] +DEFAULT_PYPROJECT = REPO_ROOT / "pyproject.toml" +DEFAULT_OUT = REPO_ROOT / "electron" / "build" / "requirements.txt" + + +def render_requirements(pyproject_text: str) -> str: + data = tomllib.loads(pyproject_text) + dependencies = data["project"]["dependencies"] + return "".join(f"{dependency}\n" for dependency in dependencies) + + +def main(argv=None) -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--pyproject", type=Path, default=DEFAULT_PYPROJECT) + parser.add_argument("--out", type=Path, default=DEFAULT_OUT) + args = parser.parse_args(argv) + + text = args.pyproject.read_text(encoding="utf-8") + args.out.parent.mkdir(parents=True, exist_ok=True) + args.out.write_text(render_requirements(text), encoding="utf-8") + print(f"Wrote {args.out}") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/electron/src/chrome.js b/electron/src/chrome.js new file mode 100644 index 0000000..f2f21de --- /dev/null +++ b/electron/src/chrome.js @@ -0,0 +1,88 @@ +'use strict'; + +const fs = require('fs'); +const path = require('path'); + +/** Height of the custom title bar (the traffic lights / overlay buttons sit in it). */ +const TITLEBAR_HEIGHT = 36; + +/** Logo with mark and wordmark; the wordmark uses currentColor. Generated by branding/build_logo.py. */ +const LOGO_SVG = fs.readFileSync(path.join(__dirname, '..', 'assets', 'logo.svg'), 'utf8').trim(); + +const LIGHT_CHROME = { color: '#f0f2f6', symbolColor: '#31333f' }; +const DARK_CHROME = { color: '#262730', symbolColor: '#fafafa' }; +const LIGHT_CONTENT = '#ffffff'; +const DARK_CONTENT = '#0e1117'; + +const DATA_URL_PREFIX = 'data:text/html;charset=utf-8,'; + +/** + * Title bar colours, based on Streamlit's default themes. + * @param {boolean} dark + * @returns {{ color: string, symbolColor: string }} + */ +function chromeColors(dark) { + return { ...(dark ? DARK_CHROME : LIGHT_CHROME) }; +} + +/** + * @param {boolean} dark + * @returns {'#ffffff' | '#0e1117'} + */ +function contentBackground(dark) { + return dark ? DARK_CONTENT : LIGHT_CONTENT; +} + +function escapeHtml(text) { + return String(text).replace(/[&<>"']/g, (c) => ({ + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + })[c]); +} + +/** + * A data: URL with a draggable title bar and an optional text below it. The colours follow + * prefers-color-scheme. Used by the loading window and the main window. + * @param {{ title: string, lang?: string, text?: string }} options + * @returns {string} + */ +function barPage({ title, lang = 'en', text = '' }) { + const light = chromeColors(false); + const dark = chromeColors(true); + const html = + '' + + '' + escapeHtml(title) + '
' + LOGO_SVG + '
' + + '

' + escapeHtml(text) + '

'; + return DATA_URL_PREFIX + encodeURIComponent(html); +} + +/** + * BrowserWindow options for the hidden title bar. macOS keeps the traffic lights, + * elsewhere the window controls are drawn as an overlay. + * @param {string} platform process.platform + * @param {boolean} dark + * @returns {object} + */ +function titleBarOptions(platform, dark) { + if (platform === 'darwin') { + return { titleBarStyle: 'hidden', trafficLightPosition: { x: 16, y: 11 } }; + } + return { titleBarStyle: 'hidden', titleBarOverlay: { ...chromeColors(dark), height: TITLEBAR_HEIGHT } }; +} + +module.exports = { TITLEBAR_HEIGHT, chromeColors, contentBackground, barPage, titleBarOptions }; diff --git a/electron/src/i18n.js b/electron/src/i18n.js new file mode 100644 index 0000000..fc6f8bf --- /dev/null +++ b/electron/src/i18n.js @@ -0,0 +1,74 @@ +'use strict'; + +const fs = require('node:fs'); +const path = require('node:path'); + +const PLACEHOLDER = /\{(\w+)\}/g; +const DEFAULT_DIR = path.resolve(__dirname, 'i18n'); +const LANGUAGES = ['de', 'en']; + +let lang = 'en'; +let messages = {}; +let fallback = null; + +function readJson(file) { + try { + return JSON.parse(fs.readFileSync(file, 'utf8')); + } catch { + return {}; + } +} + +/** + * Same rule as mailviewer.i18n.resolve_language: the base subtag of the first preferred + * system language if it is available, otherwise English. + * @param {string[]} preferred e.g. ["de-CH", "en-US"] + * @param {string[]} available e.g. ["de", "en"] + * @returns {string} + */ +function resolveLanguage(preferred, available) { + const first = Array.isArray(preferred) && typeof preferred[0] === 'string' ? preferred[0] : ''; + const base = first.toLowerCase().split(/[-_]/)[0]; + return available.includes(base) ? base : 'en'; +} + +function format(text, params) { + return String(text).replace(PLACEHOLDER, (whole, name) => + Object.prototype.hasOwnProperty.call(params, name) ? String(params[name]) : whole, + ); +} + +/** + * Loads en.json and the resolved language file. + * @param {{ dir?: string, preferred?: string[] }} [options] + */ +function init({ dir = DEFAULT_DIR, preferred = [] } = {}) { + lang = resolveLanguage(preferred, LANGUAGES); + fallback = readJson(path.join(dir, 'en.json')); + messages = lang === 'en' ? fallback : readJson(path.join(dir, `${lang}.json`)); +} + +function ensureLoaded() { + if (fallback === null) init(); +} + +/** + * Returns the text for `key` with `{name}` placeholders filled in. A missing key yields the key itself. + * @param {string} key + * @param {object} [params] + * @returns {string} + */ +function t(key, params = {}) { + ensureLoaded(); + if (Object.prototype.hasOwnProperty.call(messages, key)) return format(messages[key], params); + if (Object.prototype.hasOwnProperty.call(fallback, key)) return format(fallback[key], params); + return key; +} + +/** @returns {'de' | 'en'} */ +function currentLanguage() { + ensureLoaded(); + return lang; +} + +module.exports = { init, t, currentLanguage, resolveLanguage }; diff --git a/electron/src/i18n/de.json b/electron/src/i18n/de.json new file mode 100644 index 0000000..0ec1c01 --- /dev/null +++ b/electron/src/i18n/de.json @@ -0,0 +1,33 @@ +{ + "electron.python.not_found": "nicht gefunden", + "electron.python.start_failed": "Start fehlgeschlagen: {detail}", + "electron.python.timeout": "Zeitüberschreitung beim Start von Python", + "electron.python.too_old": "Python {version} ist zu alt (mindestens {min} erforderlich)", + "electron.python.no_venv": "venv/ensurepip fehlt (unter Debian/Ubuntu das Paket python3-venv installieren)", + "electron.python.bad_output": "Ungültige Ausgabe des Python-Tests", + "electron.python.bad_version": "Ungültige Version aus dem Python-Test", + "electron.venv.no_interpreter": "venv ohne Interpreter erstellt: {python}", + "electron.loading.find_python": "Python-Umgebung wird gesucht …", + "electron.loading.create_venv": "Python-Umgebung wird erstellt …", + "electron.loading.install_deps": "Abhängigkeiten werden installiert …", + "electron.loading.start_dashboard": "Dashboard wird gestartet …", + "electron.runtime.unavailable": "Kein nutzbares Python gefunden.\nGeprüft:\n{details}\nBitte Python 3.11 oder neuer mit venv installieren. {hint}", + "electron.runtime.none_found": "(keine Kandidaten gefunden)", + "electron.runtime.full_hint": "Die „full“-Variante der App bringt Python mit.", + "electron.server.timeout": "Das Dashboard war nach {ms} ms nicht bereit", + "electron.server.start_failed": "Das Dashboard konnte nicht gestartet werden: {detail}", + "electron.server.exited": "Der Dashboard-Prozess wurde beendet (Code {code})", + "electron.error.server_output": "Letzte Ausgabe des Servers:", + "electron.dialog.start_failed": "Start fehlgeschlagen", + "electron.dialog.server_stopped": "Das Dashboard wurde unerwartet beendet.", + "electron.dialog.restart": "Neu starten", + "electron.dialog.quit": "Beenden", + "electron.dialog.legacy_title": "Daten einer früheren Version gefunden", + "electron.dialog.legacy_body": "Eine frühere Windows-Version hat deine Datenbank hier abgelegt:\n{dbPath}\n\nDiese Version verwendet einen anderen Ordner:\n{userData}\n\nUm deine Daten zu behalten, kopiere finance.duckdb in diesen Ordner.", + "electron.dialog.open_folder": "Datei anzeigen", + "electron.dialog.ok": "OK", + "electron.menu.reload": "Neu laden", + "electron.menu.tools": "Werkzeuge", + "electron.menu.reinstall_python": "Python-Umgebung neu installieren", + "electron.menu.open_data_folder": "Datenordner öffnen" +} diff --git a/electron/src/i18n/en.json b/electron/src/i18n/en.json new file mode 100644 index 0000000..13573cf --- /dev/null +++ b/electron/src/i18n/en.json @@ -0,0 +1,33 @@ +{ + "electron.python.not_found": "not found", + "electron.python.start_failed": "Start failed: {detail}", + "electron.python.timeout": "Timed out starting Python", + "electron.python.too_old": "Python {version} is too old (at least {min} required)", + "electron.python.no_venv": "venv/ensurepip is missing (on Debian/Ubuntu: install the python3-venv package)", + "electron.python.bad_output": "Invalid output from the Python test", + "electron.python.bad_version": "Invalid version from the Python test", + "electron.venv.no_interpreter": "venv created without an interpreter: {python}", + "electron.loading.find_python": "Looking for a Python environment …", + "electron.loading.create_venv": "Creating Python environment …", + "electron.loading.install_deps": "Installing dependencies …", + "electron.loading.start_dashboard": "Starting dashboard …", + "electron.runtime.unavailable": "No usable Python found.\nChecked:\n{details}\nPlease install Python 3.11 or newer with venv. {hint}", + "electron.runtime.none_found": "(no candidates found)", + "electron.runtime.full_hint": "The “full” variant of the app ships with Python.", + "electron.server.timeout": "The dashboard did not become ready within {ms} ms", + "electron.server.start_failed": "The dashboard could not be started: {detail}", + "electron.server.exited": "The dashboard process exited (code {code})", + "electron.error.server_output": "Last output of the server:", + "electron.dialog.start_failed": "Start failed", + "electron.dialog.server_stopped": "The dashboard has stopped unexpectedly.", + "electron.dialog.restart": "Restart", + "electron.dialog.quit": "Quit", + "electron.dialog.legacy_title": "Data from an earlier version found", + "electron.dialog.legacy_body": "An earlier Windows version stored your database at:\n{dbPath}\n\nThis version uses a different folder:\n{userData}\n\nTo keep your data, copy finance.duckdb into that folder.", + "electron.dialog.open_folder": "Show file", + "electron.dialog.ok": "OK", + "electron.menu.reload": "Reload", + "electron.menu.tools": "Tools", + "electron.menu.reinstall_python": "Reinstall Python environment", + "electron.menu.open_data_folder": "Open data folder" +} diff --git a/electron/src/legacy-notice.js b/electron/src/legacy-notice.js new file mode 100644 index 0000000..dcab443 --- /dev/null +++ b/electron/src/legacy-notice.js @@ -0,0 +1,111 @@ +'use strict'; + +const path = require('node:path'); +const fs = require('node:fs/promises'); + +/** + * Install folder names of the former Windows build (NSIS, electron-builder 24/26 defaults). + * The old config set no nsis options, so the one-click per-user installer used the package + * name (`finance-mosaix-electron`) as folder under %LOCALAPPDATA%\Programs. The productName + * "Finance Mosaix Dashboard" only applies to perMachine or assisted installs, which the old + * config never enabled, so it is not listed. + */ +const LEGACY_DIR_NAMES = ['finance-mosaix-electron']; + +const DB_NAME = 'finance.duckdb'; +const STATE_NAME = 'shell-state.json'; + +/** + * @param {string} file + * @returns {Promise} true only for an existing regular file; errors count as false. + */ +async function defaultExists(file) { + try { + return (await fs.stat(file)).isFile(); + } catch { + return false; + } +} + +/** + * Candidate database paths of the former Windows build, in lookup order. + * @param {Record} env + * @returns {string[]} + */ +function legacyCandidates(env = {}) { + const dirs = []; + for (const name of LEGACY_DIR_NAMES) { + if (env.LOCALAPPDATA) dirs.push(path.win32.join(env.LOCALAPPDATA, 'Programs', name)); + if (env.ProgramFiles) dirs.push(path.win32.join(env.ProgramFiles, name)); + } + return dirs.map((dir) => path.win32.join(dir, 'resources', DB_NAME)); +} + +/** + * Looks for a database of the former Windows build. Only on win32. + * @param {{ platform: string, env?: object, exists?: (file: string) => Promise }} options + * @returns {Promise<{ dbPath: string, dir: string } | null>} dir is the former install folder. + */ +async function findLegacyData({ platform, env = {}, exists = defaultExists } = {}) { + if (platform !== 'win32') return null; + for (const dbPath of legacyCandidates(env)) { + if (await exists(dbPath)) { + return { dbPath, dir: path.win32.dirname(path.win32.dirname(dbPath)) }; + } + } + return null; +} + +/** + * Reads shell-state.json. A missing or unreadable file yields {}. + * @param {string} userDataDir + * @returns {Promise} + */ +async function readShellState(userDataDir) { + try { + const parsed = JSON.parse(await fs.readFile(path.join(userDataDir, STATE_NAME), 'utf8')); + return parsed && typeof parsed === 'object' && !Array.isArray(parsed) ? parsed : {}; + } catch { + return {}; + } +} + +/** + * Writes shell-state.json atomically (temp file, then rename). + * @param {string} userDataDir + * @param {object} state + * @returns {Promise} + */ +async function writeShellState(userDataDir, state) { + await fs.mkdir(userDataDir, { recursive: true }); + const target = path.join(userDataDir, STATE_NAME); + const tmp = `${target}.${process.pid}.tmp`; + try { + await fs.writeFile(tmp, JSON.stringify(state, null, 2), 'utf8'); + await fs.rename(tmp, target); + } catch (err) { + await fs.rm(tmp, { force: true }); + throw err; + } +} + +/** + * Decides whether the one-time notice about legacy data should be shown. + * @param {{ userDataDir: string, platform: string, env?: object, exists?: (file: string) => Promise }} options + * @returns {Promise<{ dbPath: string, dir: string } | null>} the legacy data to point to, or null. + */ +async function shouldShowLegacyNotice({ userDataDir, platform, env = {}, exists = defaultExists } = {}) { + if (await exists(path.join(userDataDir, DB_NAME))) return null; + const state = await readShellState(userDataDir); + if (state.legacyNoticeShown) return null; + return findLegacyData({ platform, env, exists }); +} + +module.exports = { + LEGACY_DIR_NAMES, + legacyCandidates, + findLegacyData, + readShellState, + writeShellState, + shouldShowLegacyNotice, +}; diff --git a/electron/src/main.js b/electron/src/main.js new file mode 100644 index 0000000..ec1e9a6 --- /dev/null +++ b/electron/src/main.js @@ -0,0 +1,451 @@ +'use strict'; + +const path = require('node:path'); +const { app, BrowserWindow, Menu, WebContentsView, dialog, nativeTheme, shell } = require('electron'); +const { resolveRuntime } = require('./resolve-runtime'); +const { startServer, ServerStartError } = require('./server-process'); +const { runSmoke } = require('./smoke'); +const i18n = require('./i18n'); +const { t } = i18n; +const { TITLEBAR_HEIGHT, barPage, chromeColors, contentBackground, titleBarOptions } = require('./chrome'); +const { shouldShowLegacyNotice, readShellState, writeShellState } = require('./legacy-notice'); + +const WEB_PREFERENCES = { contextIsolation: true, nodeIntegration: false, sandbox: true }; +const TITLE = 'Finance Mosaix'; +const ICON_PATH = path.join(__dirname, '..', 'assets', 'icon.png'); +/** `--smoke`: start the server, check GET /, quit without dialogs with exit code 0 or 1. */ +const SMOKE = process.argv.includes('--smoke'); + +// Set the name before the first start: matches the packages' productName. +app.setName(TITLE); +// In the Flatpak the Wayland app_id must match the Flatpak ID, otherwise the shell doesn't match the window +// to its desktop file (icon, name). +if (process.env.FLATPAK_ID) app.setDesktopName(`${process.env.FLATPAK_ID}.desktop`); + +function getAppRoot() { + return app.isPackaged ? process.resourcesPath : path.resolve(__dirname, '..', '..'); +} + +function getRequirementsPath() { + return app.isPackaged + ? path.join(process.resourcesPath, 'requirements.txt') + : path.join(__dirname, '..', 'build', 'requirements.txt'); +} + +/** Packaged: the database lives in userData. Development: null, the repo root is used (or the inherited env var). */ +function getDataDir() { + return app.isPackaged ? app.getPath('userData') : null; +} + +function runtimeOptions() { + return { + isPackaged: app.isPackaged, + appRoot: getAppRoot(), + bundledDir: app.isPackaged + ? path.join(process.resourcesPath, 'python') + : path.join(__dirname, '..', 'build', 'python'), + userDataDir: app.getPath('userData'), + requirementsPath: getRequirementsPath(), + appVersion: app.getVersion(), + onProgress: showLoading, + }; +} + +function messageOf(err) { + return err && err.message ? err.message : String(err); +} + +/** Error text for the dialog; for a ServerStartError including the server's output. */ +function describeError(err) { + if (err instanceof ServerStartError && err.stderrTail) { + return `${err.message}\n\n${t('electron.error.server_output')}\n${err.stderrTail}`; + } + return messageOf(err); +} + +/** Updates the title bar overlay and window background of open windows when the system theme changes. */ +function applyChromeColors() { + const dark = nativeTheme.shouldUseDarkColors; + for (const win of [mainWindow, loadingWindow]) { + if (!win || win.isDestroyed()) continue; + win.setBackgroundColor(contentBackground(dark)); + if (process.platform === 'darwin') continue; + try { + win.setTitleBarOverlay({ ...chromeColors(dark), height: TITLEBAR_HEIGHT }); + } catch { + // No overlay on this platform/version; the bar then keeps its colours. + } + } + if (mainView && !mainView.webContents.isDestroyed()) mainView.setBackgroundColor(contentBackground(dark)); +} + +/** @type {BrowserWindow | null} */ +let loadingWindow = null; +/** @type {BrowserWindow | null} */ +let mainWindow = null; +/** Streamlit view below the title bar of mainWindow. */ +/** @type {WebContentsView | null} */ +let mainView = null; +/** @type {{ url: string, port: number, pid: number | undefined, stop: () => Promise, onExit: (cb: Function) => void } | null} */ +let server = null; +let serverUrl = null; +/** @type {{ python: string[], mode: string } | null} */ +let runtime = null; +let quitting = false; +/** Running start/restart operation; onBeforeQuit waits for it. */ +let backendOp = null; + +function showLoading(text) { + if (quitting) return; + const dark = nativeTheme.shouldUseDarkColors; + if (!loadingWindow) { + loadingWindow = new BrowserWindow({ + width: 420, + height: 200, + resizable: false, + autoHideMenuBar: true, + title: TITLE, + icon: ICON_PATH, + backgroundColor: contentBackground(dark), + ...titleBarOptions(process.platform, dark), + webPreferences: WEB_PREFERENCES, + }); + loadingWindow.on('closed', () => { + loadingWindow = null; + }); + } + // A new loadURL aborts the previous one; that is deliberately ignored here. + loadingWindow.loadURL(barPage({ title: TITLE, lang: i18n.currentLanguage(), text: text })).catch(() => {}); +} + +function closeLoading() { + if (!loadingWindow) return; + const win = loadingWindow; + loadingWindow = null; + win.destroy(); +} + +function isSameOrigin(url) { + try { + return new URL(url).origin === new URL(serverUrl).origin; + } catch { + return false; + } +} + +function isWebUrl(url) { + try { + const { protocol } = new URL(url); + return protocol === 'http:' || protocol === 'https:'; + } catch { + return false; + } +} + +/** Opens external web links in the system browser; everything else is refused. */ +function openInSystemBrowser(url) { + if (isWebUrl(url)) shell.openExternal(url); +} + +function guardNavigation(event, url) { + if (isSameOrigin(url)) return; + event.preventDefault(); + openInSystemBrowser(url); +} + +/** The Streamlit view sits below the title bar; it is resized with the window. */ +function layoutView() { + if (!mainWindow || mainWindow.isDestroyed() || !mainView) return; + const [width, height] = mainWindow.getContentSize(); + mainView.setBounds({ x: 0, y: TITLEBAR_HEIGHT, width, height: Math.max(0, height - TITLEBAR_HEIGHT) }); +} + +/** Main window: title bar page with the Streamlit view below; navigation is limited to the server origin. */ +function openMainWindow(url) { + if (quitting) return; + const dark = nativeTheme.shouldUseDarkColors; + const win = new BrowserWindow({ + width: 1280, + height: 840, + show: false, + title: TITLE, + icon: ICON_PATH, + backgroundColor: contentBackground(dark), + // The menu stays hidden; the Alt key shows it (it holds Tools and the reload entry). + autoHideMenuBar: true, + ...titleBarOptions(process.platform, dark), + webPreferences: WEB_PREFERENCES, + }); + mainWindow = win; + + const view = new WebContentsView({ webPreferences: WEB_PREFERENCES, backgroundColor: contentBackground(dark) }); + mainView = view; + win.contentView.addChildView(view); + layoutView(); + win.on('resize', layoutView); + + const contents = view.webContents; + contents.on('will-navigate', guardNavigation); + contents.on('will-redirect', guardNavigation); + // Attachments open via target=_blank; they go to the system browser, not a new Electron window. + contents.setWindowOpenHandler(({ url: target }) => { + openInSystemBrowser(target); + return { action: 'deny' }; + }); + win.once('ready-to-show', () => { + if (!win.isDestroyed()) win.show(); + }); + win.on('closed', () => { + if (mainWindow === win) { + mainWindow = null; + mainView = null; + } + }); + win.loadURL(barPage({ title: TITLE, lang: i18n.currentLanguage() })).catch((err) => console.error('Could not load the title bar:', err)); + contents.loadURL(url).catch((err) => console.error('Could not load the viewer:', err)); +} + +/** Parent for dialogs: the main window, else the loading window, else none. */ +function showDialog(options) { + const parent = mainWindow ?? loadingWindow; + return parent && !parent.isDestroyed() ? dialog.showMessageBox(parent, options) : dialog.showMessageBox(options); +} + +function focusWindow() { + const win = mainWindow ?? loadingWindow; + if (!win) return; + if (win.isMinimized()) win.restore(); + win.focus(); +} + +async function stopServer() { + const current = server; + server = null; + if (current) await current.stop(); +} + +/** stopServer for exit paths: logs errors instead of throwing. */ +async function stopServerQuietly() { + try { + await stopServer(); + } catch (err) { + console.error('Could not stop the server:', err); + } +} + +/** + * Runs a start/restart operation. While one is running (or the app is quitting), + * every further call is ignored and returns null. + * @param {() => Promise} fn + * @returns {Promise | null} + */ +function runExclusive(fn) { + if (backendOp || quitting) return null; + backendOp = (async () => { + try { + await fn(); + } finally { + backendOp = null; + } + })(); + return backendOp; +} + +/** The dashboard process died while the app is running: offer a restart or quit. */ +function onServerExit({ tail }) { + if (quitting) return; + showDialog({ + type: 'error', + title: TITLE, + message: t('electron.dialog.server_stopped'), + detail: tail || undefined, + buttons: [t('electron.dialog.restart'), t('electron.dialog.quit')], + defaultId: 0, + cancelId: 1, + }).then(({ response }) => { + if (response === 0) { + runExclusive(() => + restartBackend().catch((err) => { + closeLoading(); + dialog.showErrorBox(t('electron.dialog.start_failed'), describeError(err)); + app.quit(); + }), + ); + } else { + app.quit(); + } + }); +} + +/** Starts the server with the chosen runtime. Stops it right away if the app is quitting in the meantime. */ +async function startBackend() { + const handle = await startServer({ + python: runtime.python, + appRoot: getAppRoot(), + dataDir: getDataDir(), + }); + server = handle; + serverUrl = handle.url; + handle.onExit(onServerExit); + if (quitting) await stopServer(); + return handle; +} + +/** Restarts the server and reloads the viewer. */ +async function restartBackend() { + await stopServer(); + showLoading(t('electron.loading.start_dashboard')); + await startBackend(); + if (quitting) return; + if (mainView) { + mainView.webContents.loadURL(serverUrl).catch((err) => console.error('Could not load the viewer:', err)); + } else { + openMainWindow(serverUrl); + } + closeLoading(); +} + +/** Tools menu: rebuild the Python environment (system Python only), then restart the server. */ +async function reinstallPython() { + try { + runtime = await resolveRuntime({ ...runtimeOptions(), force: true }); + await restartBackend(); + } catch (err) { + closeLoading(); + dialog.showErrorBox(t('electron.dialog.start_failed'), describeError(err)); + // Without a running server the viewer is no longer usable. + if (!server) app.quit(); + } +} + +function buildMenu() { + const isMac = process.platform === 'darwin'; + const template = [ + ...(isMac ? [{ role: 'appMenu' }] : []), + { role: 'fileMenu' }, + { role: 'editMenu' }, + { + // Own reload entry: the reload role would reload the title bar page, not the dashboard. + role: 'viewMenu', + submenu: [ + { label: t('electron.menu.reload'), accelerator: 'CmdOrCtrl+R', click: () => mainView && mainView.webContents.reload() }, + { role: 'toggleDevTools' }, + { type: 'separator' }, + { role: 'resetZoom' }, + { role: 'zoomIn' }, + { role: 'zoomOut' }, + { type: 'separator' }, + { role: 'togglefullscreen' }, + ], + }, + { role: 'windowMenu' }, + { + label: t('electron.menu.tools'), + submenu: [ + { + label: t('electron.menu.reinstall_python'), + enabled: runtime !== null && runtime.mode === 'system', + click: () => runExclusive(reinstallPython), + }, + { + label: t('electron.menu.open_data_folder'), + click: () => shell.openPath(getDataDir() ?? getAppRoot()), + }, + ], + }, + ]; + return Menu.buildFromTemplate(template); +} + +/** One-time notice when data of the former Windows build was found next to the new data folder. */ +async function showLegacyNoticeOnce() { + const userDataDir = app.getPath('userData'); + const legacy = await shouldShowLegacyNotice({ userDataDir, platform: process.platform, env: process.env }); + if (!legacy) return; + const { response } = await showDialog({ + type: 'info', + title: TITLE, + message: t('electron.dialog.legacy_title'), + detail: t('electron.dialog.legacy_body', { dbPath: legacy.dbPath, userData: userDataDir }), + buttons: [t('electron.dialog.open_folder'), t('electron.dialog.ok')], + defaultId: 1, + cancelId: 1, + }); + if (response === 0) shell.showItemInFolder(legacy.dbPath); + await writeShellState(userDataDir, { ...(await readShellState(userDataDir)), legacyNoticeShown: true }); +} + +async function startup() { + i18n.init({ preferred: app.getPreferredSystemLanguages() }); + showLoading(t('electron.loading.find_python')); + runtime = await resolveRuntime(runtimeOptions()); + Menu.setApplicationMenu(buildMenu()); + showLoading(t('electron.loading.start_dashboard')); + await startBackend(); + if (quitting) return; + if (SMOKE) { + await finishSmoke(); + return; + } + openMainWindow(serverUrl); + closeLoading(); + showLegacyNoticeOnce().catch((err) => console.error('Could not show the legacy notice:', err)); +} + +/** Smoke test: GET / against the running server, then stop the server and quit with 0 or 1. */ +async function finishSmoke() { + const ok = await runSmoke(serverUrl); + console.log(ok ? `Smoke test passed: ${serverUrl}` : `Smoke test failed: ${serverUrl}`); + await stopServer(); + // The loading window stays open until app.exit, so no window-all-closed quit gets in between. + app.exit(ok ? 0 : 1); +} + +function onBeforeQuit(event) { + if (quitting) return; + quitting = true; + event.preventDefault(); + // Wait for a running start/restart operation first (ignoring errors), so no server is left behind. + const pending = backendOp ? backendOp.catch(() => {}) : Promise.resolve(); + pending + .then(() => stopServer()) + .catch((err) => console.error('Could not stop the server:', err)) + .finally(() => app.quit()); +} + +async function run() { + await app.whenReady(); + nativeTheme.on('updated', applyChromeColors); + try { + await runExclusive(startup); + } catch (err) { + if (SMOKE) { + console.error(describeError(err)); + // app.exit skips before-quit, so a server started before the error is stopped explicitly. + await stopServerQuietly(); + app.exit(1); + return; + } + closeLoading(); + // No error dialog while quitting; onBeforeQuit quits the app anyway. + if (quitting) return; + dialog.showErrorBox(t('electron.dialog.start_failed'), describeError(err)); + // app.exit skips before-quit, so a server started before the error is stopped explicitly. + await stopServerQuietly(); + app.exit(1); + } +} + +if (!app.requestSingleInstanceLock()) { + if (SMOKE) { + console.error('Another instance is already running.'); + app.exit(1); + } else { + app.quit(); + } +} else { + app.on('second-instance', focusWindow); + app.on('before-quit', onBeforeQuit); + app.on('window-all-closed', () => app.quit()); + run(); +} diff --git a/electron/src/python-locator.js b/electron/src/python-locator.js new file mode 100644 index 0000000..ef36c0b --- /dev/null +++ b/electron/src/python-locator.js @@ -0,0 +1,86 @@ +'use strict'; + +const { t } = require('./i18n'); +const { execFile } = require('node:child_process'); +const { promisify } = require('node:util'); + +const MIN_PYTHON = [3, 11]; +const PROBE_TIMEOUT_MS = 10000; + +// One-liner: prints the version and whether ensurepip/venv are available, as JSON. +const PROBE_SCRIPT = + 'import json,sys,importlib.util as u;' + + 'print(json.dumps({"v":list(sys.version_info[:3]),' + + '"venv":all(u.find_spec(m) is not None for m in ("ensurepip","venv"))}))'; + +const execFileAsync = promisify(execFile); + +/** @type {(file: string, args: string[], opts: { timeout: number }) => Promise<{ stdout: string, stderr: string }>} */ +const defaultRun = (file, args, opts) => execFileAsync(file, args, { ...opts, windowsHide: true }); + +function isAtLeast(version, min) { + for (let i = 0; i < min.length; i++) { + if (version[i] !== min[i]) return version[i] > min[i]; + } + return true; +} + +/** + * Checks whether `cmd` is a usable Python (>= MIN_PYTHON with venv/ensurepip). + * @param {string[]} cmd e.g. ["python3"] or ["py", "-3"] + * @param {Function} [run] + * @returns {Promise<{ ok: true, cmd: string[], version: number[] } | { ok: false, cmd: string[], reason: string }>} + */ +async function probePython(cmd, run = defaultRun) { + const [file, ...prefix] = cmd; + const fail = (reason) => ({ ok: false, cmd, reason }); + + let stdout; + try { + ({ stdout } = await run(file, [...prefix, '-c', PROBE_SCRIPT], { timeout: PROBE_TIMEOUT_MS })); + } catch (err) { + if (err && err.killed) return fail(t('electron.python.timeout')); + if (err && err.code === 'ENOENT') return fail(t('electron.python.not_found')); + return fail(t('electron.python.start_failed', { detail: err && err.message ? err.message : String(err) })); + } + + let info; + try { + info = JSON.parse(String(stdout).trim()); + } catch { + return fail(t('electron.python.bad_output')); + } + + const version = Array.isArray(info && info.v) ? info.v : null; + if (!version || version.length < 3) return fail(t('electron.python.bad_version')); + if (!isAtLeast(version, MIN_PYTHON)) { + return fail(t('electron.python.too_old', { version: version.join('.'), min: MIN_PYTHON.join('.') })); + } + if (!info.venv) return fail(t('electron.python.no_venv')); + return { ok: true, cmd, version }; +} + +/** + * Finds the first suitable system Python for the platform. + * @param {string} [platform] + * @param {Function} [run] + * @returns {Promise<{ python: { cmd: string[], version: number[] } | null, rejected: { cmd: string[], reason: string }[] }>} + */ +async function findSystemPython(platform = process.platform, run = defaultRun) { + const candidates = + platform === 'win32' + ? [['py', '-3'], ['python'], ['python3']] + : [['python3'], ['python']]; + + const rejected = []; + for (const cmd of candidates) { + const result = await probePython(cmd, run); + if (result.ok) { + return { python: { cmd: result.cmd, version: result.version }, rejected }; + } + rejected.push({ cmd, reason: result.reason }); + } + return { python: null, rejected }; +} + +module.exports = { MIN_PYTHON, probePython, findSystemPython }; diff --git a/electron/src/resolve-runtime.js b/electron/src/resolve-runtime.js new file mode 100644 index 0000000..04acfa2 --- /dev/null +++ b/electron/src/resolve-runtime.js @@ -0,0 +1,118 @@ +'use strict'; + +const { t } = require('./i18n'); +const path = require('node:path'); +const nodeFs = require('node:fs/promises'); +const { findSystemPython } = require('./python-locator'); +const { ensureVenv } = require('./venv-manager'); + +async function defaultExists(p) { + try { + await nodeFs.access(p); + return true; + } catch { + return false; + } +} + +/** + * Path to the bundled Python. + * @param {string} bundledDir the folder that holds the bundled runtime (e.g. /python) + * @param {string} [platform] + * @returns {string} + */ +function bundledPython(bundledDir, platform = process.platform) { + return platform === 'win32' + ? path.win32.join(bundledDir, 'python.exe') + : path.posix.join(bundledDir, 'bin', 'python3'); +} + +/** + * Path to the interpreter of the development venv in the project root. + * @param {string} appRoot + * @param {string} [platform] + * @returns {string} + */ +function devVenvPython(appRoot, platform = process.platform) { + return platform === 'win32' + ? path.win32.join(appRoot, '.venv', 'Scripts', 'python.exe') + : path.posix.join(appRoot, '.venv', 'bin', 'python'); +} + +class RuntimeUnavailableError extends Error { + /** + * @param {{ cmd: string[], reason: string }[]} rejected all rejection reasons + */ + constructor(rejected) { + const lines = rejected.map((r) => ` - ${r.cmd.join(' ')}: ${r.reason}`); + const details = lines.length > 0 ? lines.join('\n') : ` ${t('electron.runtime.none_found')}`; + super(t('electron.runtime.unavailable', { details, hint: t('electron.runtime.full_hint') })); + this.name = 'RuntimeUnavailableError'; + this.rejected = rejected; + } +} + +/** + * Picks the Python interpreter. Order: FINANCE_MOSAIX_PYTHON override, dev venv (not packaged), + * bundled runtime, system Python with a managed venv in userDataDir. + * `force` skips the first three steps and reinstalls the system venv. + * + * @param {{ isPackaged: boolean, appRoot: string, bundledDir: string, userDataDir: string, + * requirementsPath: string, appVersion: string, onProgress?: (m: string) => void, + * force?: boolean, + * deps?: { find?: Function, ensure?: Function, exists?: Function, env?: object, + * platform?: string } }} opts + * @returns {Promise<{ python: string[], mode: 'override' | 'dev' | 'bundled' | 'system' }>} + */ +async function resolveRuntime({ + isPackaged, + appRoot, + bundledDir, + userDataDir, + requirementsPath, + appVersion, + onProgress, + force = false, + deps = {}, +}) { + const find = deps.find ?? (() => findSystemPython()); + const ensure = deps.ensure ?? ensureVenv; + const exists = deps.exists ?? defaultExists; + const env = deps.env ?? process.env; + const platform = deps.platform ?? process.platform; + + if (!force) { + if (env.FINANCE_MOSAIX_PYTHON) { + return { python: [env.FINANCE_MOSAIX_PYTHON], mode: 'override' }; + } + + const devPython = devVenvPython(appRoot, platform); + if (!isPackaged && (await exists(devPython))) { + return { python: [devPython], mode: 'dev' }; + } + + const bundled = bundledPython(bundledDir, platform); + if (await exists(bundled)) { + return { python: [bundled], mode: 'bundled' }; + } + } + + const rejected = []; + const found = await find(); + if (found.python) { + const venv = await ensure({ + probe: found.python, + venvDir: path.join(userDataDir, 'venv'), + requirementsPath, + appVersion, + onProgress, + force, + }); + return { python: [venv.python], mode: 'system' }; + } + rejected.push(...(found.rejected ?? [])); + + throw new RuntimeUnavailableError(rejected); +} + +module.exports = { bundledPython, devVenvPython, resolveRuntime, RuntimeUnavailableError }; diff --git a/electron/src/server-process.js b/electron/src/server-process.js new file mode 100644 index 0000000..5c3a196 --- /dev/null +++ b/electron/src/server-process.js @@ -0,0 +1,291 @@ +'use strict'; + +const { t } = require('./i18n'); +const { spawn, execFile } = require('node:child_process'); +const net = require('node:net'); +const path = require('node:path'); +const readline = require('node:readline'); + +const DEFAULT_TIMEOUT_MS = 60000; +const STOP_GRACE_MS = 3000; +const TAIL_LINES = 20; +const HEALTH_INTERVAL_MS = 250; +const HEALTH_REQUEST_TIMEOUT_MS = 2000; +const MAX_ATTEMPTS = 3; +const ADDR_IN_USE_RE = /Port \d+ is already in use|Address already in use|WinError 10048|EADDRINUSE/; + +class ServerStartError extends Error { + /** + * @param {string} message + * @param {string} stderrTail last lines of the server output + */ + constructor(message, stderrTail) { + super(message); + this.name = 'ServerStartError'; + this.stderrTail = stderrTail; + } +} + +/** + * Asks the OS for a free TCP port by binding to port 0 and closing again. + * @param {string} [host] + * @returns {Promise} + */ +function findFreePort(host = '127.0.0.1') { + return new Promise((resolve, reject) => { + const server = net.createServer(); + server.once('error', reject); + server.listen(0, host, () => { + const { port } = server.address(); + server.close((err) => (err ? reject(err) : resolve(port))); + }); + }); +} + +/** + * Streamlit arguments for the dashboard app. + * @param {string} appRoot + * @param {number} port + * @returns {string[]} + */ +function buildArgs(appRoot, port) { + return [ + '-m', + 'streamlit', + 'run', + path.join(appRoot, 'src', 'finance_mosaix', 'dashboard', 'app.py'), + '--server.headless', + 'true', + '--server.address', + '127.0.0.1', + '--server.port', + String(port), + '--browser.gatherUsageStats', + 'false', + '--server.fileWatcherType', + 'none', + '--global.developmentMode', + 'false', + ]; +} + +/** + * Child environment: isolated from the user's Python, PYTHONHOME removed (case-insensitive). + * An inherited FINANCE_MOSAIX_DATA_DIR is kept when dataDir is null. + * @param {object} baseEnv + * @param {{ appRoot: string, dataDir: string | null }} options + * @returns {object} + */ +function buildEnv(baseEnv, { appRoot, dataDir }) { + const env = { + ...baseEnv, + PYTHONPATH: path.join(appRoot, 'src'), + PYTHONNOUSERSITE: '1', + PYTHONUNBUFFERED: '1', + PYTHONUTF8: '1', + }; + for (const key of Object.keys(env)) { + if (key.toUpperCase() === 'PYTHONHOME') delete env[key]; + } + if (dataDir) env.FINANCE_MOSAIX_DATA_DIR = dataDir; + return env; +} + +function killGroup(pid, signal) { + try { + process.kill(-pid, signal); + } catch { + // group already gone + } +} + +/** + * Stops the process tree: SIGTERM to the process group, SIGKILL after STOP_GRACE_MS (POSIX); + * taskkill /T /F on Windows. + * @param {import('node:child_process').ChildProcess} child + * @param {Promise} exited resolves on the child's 'close' + */ +async function terminate(child, exited) { + if (process.platform === 'win32') { + await new Promise((resolve) => { + execFile('taskkill', ['/pid', String(child.pid), '/T', '/F'], { windowsHide: true }, () => resolve()); + }); + child.kill(); + await exited; + return; + } + killGroup(child.pid, 'SIGTERM'); + const forceTimer = setTimeout(() => killGroup(child.pid, 'SIGKILL'), STOP_GRACE_MS); + await exited; + clearTimeout(forceTimer); +} + +async function probeHealth(url, fetchFn) { + try { + const response = await fetchFn(`${url}_stcore/health`, { + signal: AbortSignal.timeout(HEALTH_REQUEST_TIMEOUT_MS), + }); + await response.arrayBuffer().catch(() => {}); + return response.status === 200; + } catch { + return false; + } +} + +/** + * One start attempt on `port`. Always resolves, never throws. + * @returns {Promise< + * { ok: true, child: import('node:child_process').ChildProcess, exited: Promise, + * port: number, url: string, lifecycle: object } | + * { ok: false, tail: string, code: number | null, signal: string | null, timedOut: boolean, error: Error | null } + * >} + */ +function runAttempt(opts, port) { + const { file, prefix, appRoot, dataDir, buildArgsFn, timeoutMs, fetchFn } = opts; + const url = `http://127.0.0.1:${port}/`; + const child = spawn(file, [...prefix, ...buildArgsFn(appRoot, port)], { + cwd: appRoot, + env: buildEnv(process.env, { appRoot, dataDir }), + stdio: ['ignore', 'pipe', 'pipe'], + windowsHide: true, + detached: process.platform !== 'win32', + }); + + const tail = []; + const tailText = () => tail.join('\n'); + const pushLine = (line) => { + tail.push(line); + if (tail.length > TAIL_LINES) tail.shift(); + }; + readline.createInterface({ input: child.stdout }).on('line', pushLine); + readline.createInterface({ input: child.stderr }).on('line', pushLine); + + const lifecycle = { ready: false, stopRequested: false, exitListeners: [] }; + let exitInfo = { code: null, signal: null }; + const exited = new Promise((resolve) => { + child.once('close', (code, signal) => { + exitInfo = { code, signal }; + if (lifecycle.ready && !lifecycle.stopRequested) { + for (const cb of lifecycle.exitListeners) cb({ code, signal, tail: tailText() }); + } + resolve(); + }); + }); + + return new Promise((resolve) => { + let settled = false; + let polling = false; + let timer = null; + let poll = null; + + const settle = (result) => { + if (settled) return; + settled = true; + clearTimeout(timer); + clearInterval(poll); + resolve(result); + }; + + child.once('error', (error) => { + settle({ ok: false, tail: tailText(), code: null, signal: null, timedOut: false, error }); + }); + exited.then(() => { + settle({ ok: false, tail: tailText(), code: exitInfo.code, signal: exitInfo.signal, timedOut: false, error: null }); + }); + + timer = setTimeout(async () => { + if (settled) return; + settled = true; + clearInterval(poll); + await terminate(child, exited); + resolve({ ok: false, tail: tailText(), code: exitInfo.code, signal: exitInfo.signal, timedOut: true, error: null }); + }, timeoutMs); + + poll = setInterval(async () => { + if (settled || polling) return; + polling = true; + const healthy = await probeHealth(url, fetchFn); + polling = false; + if (healthy && !settled) { + lifecycle.ready = true; + settle({ ok: true, child, exited, port, url, lifecycle }); + } + }, HEALTH_INTERVAL_MS); + }); +} + +function startError(result, timeoutMs) { + let message; + if (result.timedOut) { + message = t('electron.server.timeout', { ms: timeoutMs }); + } else if (result.error) { + message = t('electron.server.start_failed', { detail: result.error.message }); + } else { + message = t('electron.server.exited', { code: result.code ?? result.signal }); + } + return new ServerStartError(message, result.tail); +} + +function makeHandle(ready) { + const { child, exited, port, url, lifecycle } = ready; + let stopping = null; + return { + port, + url, + pid: child.pid, + stop() { + if (!stopping) { + lifecycle.stopRequested = true; + stopping = terminate(child, exited); + } + return stopping; + }, + onExit(cb) { + lifecycle.exitListeners.push(cb); + }, + }; +} + +/** + * Starts the Streamlit dashboard on a free port and waits until /_stcore/health answers 200. + * Up to MAX_ATTEMPTS tries with a new port while the output reports "address already in use". + * @param {{ python: string[], appRoot: string, dataDir: string | null, timeoutMs?: number, + * buildArgsFn?: (appRoot: string, port: number) => string[], + * deps?: { findFreePort?: () => Promise, fetch?: typeof fetch } }} opts + * @returns {Promise<{ port: number, url: string, pid: number | undefined, + * stop: () => Promise, onExit: (cb: Function) => void }>} + */ +async function startServer({ + python, + appRoot, + dataDir, + timeoutMs = DEFAULT_TIMEOUT_MS, + buildArgsFn = buildArgs, + deps = {}, +}) { + const findPort = deps.findFreePort ?? (() => findFreePort()); + const fetchFn = deps.fetch ?? fetch; + const [file, ...prefix] = python; + let last = null; + + for (let attempt = 0; attempt < MAX_ATTEMPTS; attempt += 1) { + const port = await findPort(); + const result = await runAttempt({ file, prefix, appRoot, dataDir, buildArgsFn, timeoutMs, fetchFn }, port); + if (result.ok) return makeHandle(result); + last = result; + if (result.timedOut || result.error || !ADDR_IN_USE_RE.test(result.tail)) break; + } + throw startError(last, timeoutMs); +} + +module.exports = { + DEFAULT_TIMEOUT_MS, + STOP_GRACE_MS, + TAIL_LINES, + ADDR_IN_USE_RE, + ServerStartError, + findFreePort, + buildArgs, + buildEnv, + startServer, +}; diff --git a/electron/src/smoke.js b/electron/src/smoke.js new file mode 100644 index 0000000..ad2787b --- /dev/null +++ b/electron/src/smoke.js @@ -0,0 +1,55 @@ +'use strict'; + +const http = require('node:http'); + +const DEFAULT_TIMEOUT_MS = 10 * 1000; + +/** + * GET with a timeout. Resolves to { status, body }, or null on network error or timeout. + * @param {string} url + * @param {number} timeoutMs + * @returns {Promise<{ status: number, body: string } | null>} + */ +function get(url, timeoutMs) { + return new Promise((resolve) => { + let settled = false; + const done = (value) => { + if (!settled) { + settled = true; + resolve(value); + } + }; + + const req = http.get(url, (res) => { + let body = ''; + res.setEncoding('utf8'); + res.on('data', (chunk) => { + body += chunk; + }); + res.on('end', () => done({ status: res.statusCode, body })); + res.on('error', () => done(null)); + }); + req.setTimeout(timeoutMs, () => { + req.destroy(); + done(null); + }); + req.on('error', () => done(null)); + }); +} + +/** + * Checks that the Streamlit server is up: GET _stcore/health answers 200, and GET + * answers 200 with an HTML document containing } + */ +async function runSmoke(url, { timeoutMs = DEFAULT_TIMEOUT_MS } = {}) { + const base = url.endsWith('/') ? url : `${url}/`; + const health = await get(`${base}_stcore/health`, timeoutMs); + if (!health || health.status !== 200) return false; + const page = await get(base, timeoutMs); + return Boolean(page && page.status === 200 && / Promise<{ stdout: string, stderr: string }>} */ +const defaultRun = (file, args, opts) => execFileAsync(file, args, { ...opts, windowsHide: true }); + +/** + * Runs a process and reports each stdout/stderr line. Rejects on a non-zero exit code; + * the message then carries the last lines of output. + * @param {string} file + * @param {string[]} args + * @param {{ timeout: number, onLine?: (line: string) => void }} opts + * @returns {Promise<void>} + */ +function defaultRunLines(file, args, { timeout, onLine } = {}) { + return new Promise((resolve, reject) => { + const child = spawn(file, args, { windowsHide: true, stdio: ['ignore', 'pipe', 'pipe'] }); + const tail = []; + let timer = null; + let settled = false; + + const finish = (err) => { + if (settled) return; + settled = true; + clearTimeout(timer); + if (err) reject(err); + else resolve(); + }; + + const handle = (line) => { + tail.push(line); + if (tail.length > TAIL_LINES) tail.shift(); + if (onLine) onLine(line); + }; + + for (const stream of [child.stdout, child.stderr]) { + readline.createInterface({ input: stream }).on('line', handle); + } + + if (timeout) { + timer = setTimeout(() => { + child.kill(); + finish(new Error(`${file} timed out after ${timeout} ms`)); + }, timeout); + } + + child.on('error', finish); + child.on('close', (code) => { + if (code === 0) finish(); + else finish(new Error(`${file} exited with code ${code}\n${tail.join('\n')}`)); + }); + }); +} + +/** + * Path to the interpreter in a venv. + * @param {string} venvDir + * @param {string} [platform] + */ +function venvPython(venvDir, platform = process.platform) { + return platform === 'win32' + ? path.win32.join(venvDir, 'Scripts', 'python.exe') + : path.posix.join(venvDir, 'bin', 'python'); +} + +/** + * @param {string} text + * @returns {string} sha256 as hex + */ +function requirementsHash(text) { + return createHash('sha256').update(text, 'utf8').digest('hex'); +} + +async function readStamp(fs, stampPath) { + try { + const data = JSON.parse(await fs.readFile(stampPath, 'utf8')); + return data && typeof data === 'object' ? data : null; + } catch { + return null; + } +} + +// Writes through a temp file, so an abort doesn't leave half a stamp behind. +async function writeStamp(fs, stampPath, stamp) { + const tmp = `${stampPath}.tmp`; + await fs.writeFile(tmp, JSON.stringify(stamp, null, 2) + '\n', 'utf8'); + await fs.rename(tmp, stampPath); +} + +async function exists(fs, p) { + try { + await fs.access(p); + return true; + } catch { + return false; + } +} + +/** + * Makes sure a venv in `venvDir` exists and has the requirements installed. + * Reinstalls when forced, when the stamp is missing or incomplete, when appVersion + * or the requirements hash changed, or when the interpreter is gone. A different + * Python minor version recreates the venv folder. + * + * @param {{ probe: { cmd: string[], version: number[] }, venvDir: string, + * requirementsPath: string, appVersion: string, + * onProgress?: (msg: string) => void, force?: boolean, + * deps?: { run?: Function, runLines?: Function, fs?: typeof import("node:fs/promises"), + * platform?: string } }} opts + * @returns {Promise<{ python: string, installed: boolean }>} + */ +async function ensureVenv({ + probe, + venvDir, + requirementsPath, + appVersion, + onProgress, + force = false, + deps = {}, +}) { + const { run = defaultRun, runLines = defaultRunLines, fs = nodeFs, platform = process.platform } = deps; + const python = venvPython(venvDir, platform); + const stampPath = path.join(venvDir, STAMP_NAME); + const wantedPython = `${probe.version[0]}.${probe.version[1]}`; + const hash = requirementsHash(await fs.readFile(requirementsPath, 'utf8')); + + const stamp = await readStamp(fs, stampPath); + const upToDate = + stamp !== null && + stamp.complete === true && + stamp.python === wantedPython && + stamp.appVersion === appVersion && + stamp.requirementsHash === hash && + (await exists(fs, python)); + + if (!force && upToDate) return { python, installed: false }; + + if (stamp !== null && stamp.python !== wantedPython) { + await fs.rm(venvDir, { recursive: true, force: true }); + } + + // complete stays false until the install has finished; that way an abort is recognised. + await fs.mkdir(venvDir, { recursive: true }); + await writeStamp(fs, stampPath, { + python: wantedPython, + appVersion, + requirementsHash: hash, + complete: false, + }); + + if (!(await exists(fs, python))) { + onProgress?.(t('electron.loading.create_venv')); + await run(probe.cmd[0], [...probe.cmd.slice(1), '-m', 'venv', venvDir], { + timeout: VENV_TIMEOUT_MS, + }); + if (!(await exists(fs, python))) { + throw new Error(t('electron.venv.no_interpreter', { python })); + } + } + + await runLines( + python, + ['-m', 'pip', 'install', '--disable-pip-version-check', '--no-input', '-r', requirementsPath], + { + timeout: PIP_TIMEOUT_MS, + onLine: (line) => { + if (onProgress && PROGRESS_PREFIXES.some((prefix) => line.startsWith(prefix))) { + onProgress(t('electron.loading.install_deps') + '\n' + line); + } + }, + }, + ); + + await writeStamp(fs, stampPath, { + python: wantedPython, + appVersion, + requirementsHash: hash, + complete: true, + }); + return { python, installed: true }; +} + +module.exports = { STAMP_NAME, venvPython, requirementsHash, ensureVenv }; diff --git a/electron/sync_version.js b/electron/sync_version.js index 5e0f2be..95af049 100644 --- a/electron/sync_version.js +++ b/electron/sync_version.js @@ -15,10 +15,8 @@ function fetchVersionFromPython() { const script = [ 'import sys', 'from pathlib import Path', - 'root = Path(\'.\').resolve()', - 'sys.path.insert(0, str(root / \"src\"))', - 'sys.path.insert(0, str(root))', - 'from src.version import get_canonical_version', + 'sys.path.insert(0, str(Path(\'.\').resolve() / \"src\"))', + 'from finance_mosaix.core.version import get_canonical_version', 'print(get_canonical_version())', ].join('; '); diff --git a/electron/test/build-runtime.test.js b/electron/test/build-runtime.test.js new file mode 100644 index 0000000..9ddd186 --- /dev/null +++ b/electron/test/build-runtime.test.js @@ -0,0 +1,50 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); +const crypto = require('node:crypto'); +const { targetKey, tarCommand, verifySha256 } = require('../runtime/build-runtime'); +const lock = require('../runtime/runtime.lock.json'); + +test('targetKey maps all four targets and rejects linux-arm64', () => { + assert.equal(targetKey('linux', 'x64'), 'linux-x64'); + assert.equal(targetKey('darwin', 'arm64'), 'darwin-arm64'); + assert.equal(targetKey('darwin', 'x64'), 'darwin-x64'); + assert.equal(targetKey('win32', 'x64'), 'win32-x64'); + assert.throws(() => targetKey('linux', 'arm64'), /Unsupported platform: linux-arm64/); +}); + +test('verifySha256 rejects a wrong hash', async () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'runtime-sha-')); + try { + const file = path.join(dir, 'payload.bin'); + fs.writeFileSync(file, 'hello runtime'); + const good = crypto.createHash('sha256').update('hello runtime').digest('hex'); + await verifySha256(file, good); + await assert.rejects(verifySha256(file, '0'.repeat(64)), /SHA-256 mismatch/); + } finally { + fs.rmSync(dir, { recursive: true, force: true }); + } +}); + +test('lock file has entries for all targets with python 3.13.16', () => { + assert.equal(lock.python, '3.13.16'); + assert.equal(lock.release, '20261013'); + for (const key of ['linux-x64', 'darwin-arm64', 'darwin-x64', 'win32-x64']) { + const entry = lock.targets[key]; + assert.ok(entry, `missing target ${key}`); + assert.match(entry.asset, /^cpython-3\.13\.16\+20261013-.*install_only\.tar\.gz$/); + assert.match(entry.sha256, /^[0-9a-f]{64}$/); + } +}); + +test('tarCommand uses the Windows system tar on win32', () => { + assert.equal(tarCommand('linux', {}), 'tar'); + assert.equal( + tarCommand('win32', { SystemRoot: 'C:\\Windows' }), + path.win32.join('C:\\Windows', 'System32', 'tar.exe'), + ); +}); diff --git a/electron/test/chrome.test.js b/electron/test/chrome.test.js new file mode 100644 index 0000000..c53b527 --- /dev/null +++ b/electron/test/chrome.test.js @@ -0,0 +1,48 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const { TITLEBAR_HEIGHT, chromeColors, contentBackground, barPage, titleBarOptions } = require('../src/chrome'); + +const PREFIX = 'data:text/html;charset=utf-8,'; + +function decodePage(url) { + assert.ok(url.startsWith(PREFIX), 'barPage returns a data:text/html URL'); + return decodeURIComponent(url.slice(PREFIX.length)); +} + +test('barPage escapes text and contains drag region', () => { + const html = decodePage(barPage({ title: 'Finance', lang: 'de', text: '<img src=x onerror="a">' })); + assert.ok(html.includes('-webkit-app-region:drag')); + assert.ok(html.includes('<img src=x onerror="a">')); + assert.ok(!html.includes('<img src=x')); + assert.ok(html.includes('prefers-color-scheme: dark')); +}); + +test('barPage shows the logo in the title bar and keeps the window title', () => { + const html = decodePage(barPage({ title: 'Finance Mosaix' })); + assert.match(html, /<header class="bar"[^>]*><svg [^>]*aria-label="finance mosaix"/); + assert.ok(html.includes('<title>Finance Mosaix')); +}); + +test('titleBarOptions darwin uses traffic lights', () => { + assert.deepEqual(titleBarOptions('darwin', false), { + titleBarStyle: 'hidden', + trafficLightPosition: { x: 16, y: 11 }, + }); +}); + +test('titleBarOptions elsewhere uses a colour overlay of the title bar height', () => { + assert.deepEqual(titleBarOptions('win32', true), { + titleBarStyle: 'hidden', + titleBarOverlay: { color: '#262730', symbolColor: '#fafafa', height: TITLEBAR_HEIGHT }, + }); +}); + +test('chrome colours and content background match the spec', () => { + assert.equal(TITLEBAR_HEIGHT, 36); + assert.deepEqual(chromeColors(false), { color: '#f0f2f6', symbolColor: '#31333f' }); + assert.deepEqual(chromeColors(true), { color: '#262730', symbolColor: '#fafafa' }); + assert.equal(contentBackground(false), '#ffffff'); + assert.equal(contentBackground(true), '#0e1117'); +}); diff --git a/electron/test/i18n.test.js b/electron/test/i18n.test.js new file mode 100644 index 0000000..54f660d --- /dev/null +++ b/electron/test/i18n.test.js @@ -0,0 +1,50 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); +const { resolveLanguage, init, t, currentLanguage } = require('../src/i18n'); + +const SRC_I18N = path.join(__dirname, '..', 'src', 'i18n'); + +function tmpDir() { + return fs.mkdtempSync(path.join(os.tmpdir(), 'fm-i18n-')); +} + +test('resolveLanguage uses the base subtag of the first preferred language', () => { + const av = ['en', 'de']; + assert.equal(resolveLanguage(['de-CH'], av), 'de'); + assert.equal(resolveLanguage(['de_AT', 'en-US'], av), 'de'); + assert.equal(resolveLanguage(['fr-FR', 'de-DE'], av), 'en'); + assert.equal(resolveLanguage([], av), 'en'); +}); + +test('t fills in placeholders, loads the resolved language and falls back to en', () => { + const dir = tmpDir(); + fs.writeFileSync(path.join(dir, 'en.json'), JSON.stringify({ a: 'A {x}', only_en: 'Only English' })); + fs.writeFileSync(path.join(dir, 'de.json'), JSON.stringify({ a: 'Ä {x}' })); + init({ dir, preferred: ['de-DE'] }); + assert.equal(currentLanguage(), 'de'); + assert.equal(t('a', { x: '{x}' }), 'Ä {x}'); // values are not expanded again + assert.equal(t('only_en'), 'Only English'); + assert.equal(t('a'), 'Ä {x}'); // unknown placeholder stays + assert.equal(t('unknown_key'), 'unknown_key'); + init({ dir, preferred: ['fr'] }); + assert.equal(currentLanguage(), 'en'); +}); + +test('t falls back to en and returns the key when missing', () => { + init({ dir: SRC_I18N, preferred: ['de'] }); + assert.equal(t('electron.dialog.ok'), 'OK'); + assert.equal(t('electron.does.not.exist'), 'electron.does.not.exist'); + init({ dir: SRC_I18N, preferred: [] }); + assert.equal(t('electron.menu.tools'), 'Tools'); +}); + +test('de.json and en.json have identical key sets', () => { + const en = JSON.parse(fs.readFileSync(path.join(SRC_I18N, 'en.json'), 'utf8')); + const de = JSON.parse(fs.readFileSync(path.join(SRC_I18N, 'de.json'), 'utf8')); + assert.deepEqual(Object.keys(de).sort(), Object.keys(en).sort()); +}); diff --git a/electron/test/legacy-notice.test.js b/electron/test/legacy-notice.test.js new file mode 100644 index 0000000..a879bde --- /dev/null +++ b/electron/test/legacy-notice.test.js @@ -0,0 +1,94 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const path = require('node:path'); +const os = require('node:os'); +const fs = require('node:fs/promises'); +const { + LEGACY_DIR_NAMES, + legacyCandidates, + findLegacyData, + readShellState, + writeShellState, + shouldShowLegacyNotice, +} = require('../src/legacy-notice'); + +const ENV = { + LOCALAPPDATA: 'C:\\Users\\tester\\AppData\\Local', + ProgramFiles: 'C:\\Program Files', +}; +const NAME = LEGACY_DIR_NAMES[0]; +const LEGACY_DB = path.win32.join(ENV.LOCALAPPDATA, 'Programs', NAME, 'resources', 'finance.duckdb'); + +async function tempDir(t) { + const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'legacy-notice-test-')); + t.after(() => fs.rm(dir, { recursive: true, force: true })); + return dir; +} + +test('findLegacyData returns null off win32', async () => { + const result = await findLegacyData({ platform: 'linux', env: ENV, exists: async () => true }); + assert.equal(result, null); +}); + +test('findLegacyData finds db under LOCALAPPDATA Programs', async () => { + const seen = []; + const exists = async (file) => { + seen.push(file); + return file === LEGACY_DB; + }; + const result = await findLegacyData({ platform: 'win32', env: ENV, exists }); + assert.deepEqual(result, { + dbPath: LEGACY_DB, + dir: path.win32.join(ENV.LOCALAPPDATA, 'Programs', NAME), + }); + assert.equal(seen[0], LEGACY_DB); +}); + +test('legacyCandidates covers LOCALAPPDATA and ProgramFiles per name', () => { + assert.deepEqual(legacyCandidates(ENV), [ + LEGACY_DB, + path.win32.join(ENV.ProgramFiles, NAME, 'resources', 'finance.duckdb'), + ]); +}); + +test('readShellState returns {} for a missing or broken file', async (t) => { + const dir = await tempDir(t); + assert.deepEqual(await readShellState(dir), {}); + await fs.writeFile(path.join(dir, 'shell-state.json'), '{ broken', 'utf8'); + assert.deepEqual(await readShellState(dir), {}); +}); + +test('shouldShowLegacyNotice null once shown or when userData db exists', async (t) => { + const dir = await tempDir(t); + const existsLegacy = async (file) => file === LEGACY_DB; + const found = { dbPath: LEGACY_DB, dir: path.win32.join(ENV.LOCALAPPDATA, 'Programs', NAME) }; + + // Legacy data present and nothing shown yet: notice is due. + assert.deepEqual( + await shouldShowLegacyNotice({ userDataDir: dir, platform: 'win32', env: ENV, exists: existsLegacy }), + found, + ); + + // Already shown once. + await writeShellState(dir, { legacyNoticeShown: true }); + assert.equal( + await shouldShowLegacyNotice({ userDataDir: dir, platform: 'win32', env: ENV, exists: existsLegacy }), + null, + ); + + // Current userData database exists: no notice. + const dir2 = await tempDir(t); + const existsBoth = async (file) => file === LEGACY_DB || file === path.join(dir2, 'finance.duckdb'); + assert.equal( + await shouldShowLegacyNotice({ userDataDir: dir2, platform: 'win32', env: ENV, exists: existsBoth }), + null, + ); +}); + +test('writeShellState round-trips through readShellState', async (t) => { + const dir = await tempDir(t); + await writeShellState(dir, { legacyNoticeShown: true }); + assert.deepEqual(await readShellState(dir), { legacyNoticeShown: true }); +}); diff --git a/electron/test/python-locator.test.js b/electron/test/python-locator.test.js new file mode 100644 index 0000000..01dd2ff --- /dev/null +++ b/electron/test/python-locator.test.js @@ -0,0 +1,119 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const { init } = require('../src/i18n'); +const { MIN_PYTHON, probePython, findSystemPython } = require('../src/python-locator'); + +init({ preferred: ['en'] }); + +const okOutput = (v, venv = true) => ({ + stdout: JSON.stringify({ v, venv }) + '\n', + stderr: '', +}); + +const enoent = (file) => Object.assign(new Error(`spawn ${file} ENOENT`), { code: 'ENOENT' }); + +// Fake runner: records each call as [file, ...cmdArgs] (without the probe script after `-c`). +function fakeRun(respond) { + const calls = []; + const run = async (file, args, opts) => { + const cmdArgs = args.slice(0, args.indexOf('-c')); + calls.push([file, ...cmdArgs]); + return respond(file, cmdArgs, opts); + }; + return { run, calls }; +} + +test('MIN_PYTHON is 3.11', () => { + assert.deepEqual(MIN_PYTHON, [3, 11]); +}); + +test('probePython accepts Python 3.12.4', async () => { + const { run } = fakeRun(() => okOutput([3, 12, 4])); + const result = await probePython(['python3'], run); + assert.equal(result.ok, true); + assert.deepEqual(result.version, [3, 12, 4]); + assert.deepEqual(result.cmd, ['python3']); +}); + +test('probePython rejects 3.10 with too_old', async () => { + const { run } = fakeRun(() => okOutput([3, 10, 12])); + const result = await probePython(['python3'], run); + assert.equal(result.ok, false); + assert.deepEqual(result.cmd, ['python3']); + assert.match(result.reason, /3\.10/); + assert.match(result.reason, /3\.11/); +}); + +test('probePython reports ENOENT as not_found', async () => { + const { run } = fakeRun((file) => { + throw enoent(file); + }); + const result = await probePython(['python3'], run); + assert.equal(result.ok, false); + assert.equal(result.reason, 'not found'); +}); + +test('probePython reports a killed process as timeout', async () => { + const { run } = fakeRun(() => { + throw Object.assign(new Error('Command failed'), { killed: true }); + }); + const result = await probePython(['python3'], run); + assert.equal(result.ok, false); + assert.equal(result.reason, 'Timed out starting Python'); +}); + +test('probePython reports missing ensurepip and mentions python3-venv', async () => { + const { run } = fakeRun(() => okOutput([3, 12, 4], false)); + const result = await probePython(['python3'], run); + assert.equal(result.ok, false); + assert.match(result.reason, /python3-venv/); +}); + +test('probePython runs cmd with -c and a 10 s timeout', async () => { + let seen; + const { run } = fakeRun((file, cmdArgs, opts) => { + seen = { file, args: cmdArgs, opts }; + return okOutput([3, 12, 4]); + }); + await probePython(['py', '-3'], run); + assert.equal(seen.file, 'py'); + assert.deepEqual(seen.args, ['-3']); + assert.equal(seen.opts.timeout, 10000); +}); + +test('findSystemPython tries py -3 first on win32', async () => { + const { run, calls } = fakeRun((file) => { + if (file === 'py' || file === 'python') throw enoent(file); + return okOutput([3, 11, 0]); + }); + const result = await findSystemPython('win32', run); + assert.deepEqual(calls, [['py', '-3'], ['python'], ['python3']]); + assert.deepEqual(result.python, { cmd: ['python3'], version: [3, 11, 0] }); + assert.deepEqual( + result.rejected.map((r) => r.cmd), + [['py', '-3'], ['python']], + ); +}); + +test('findSystemPython tries python3, then python on linux', async () => { + const { run, calls } = fakeRun((file) => { + if (file === 'python3') throw enoent(file); + return okOutput([3, 12, 4]); + }); + const result = await findSystemPython('linux', run); + assert.deepEqual(calls, [['python3'], ['python']]); + assert.deepEqual(result.python.cmd, ['python']); + assert.equal(result.rejected.length, 1); + assert.deepEqual(result.rejected[0].cmd, ['python3']); +}); + +test('findSystemPython returns null when nothing suitable is found', async () => { + const { run } = fakeRun((file) => { + throw enoent(file); + }); + const result = await findSystemPython('linux', run); + assert.equal(result.python, null); + assert.equal(result.rejected.length, 2); +}); diff --git a/electron/test/resolve-runtime.test.js b/electron/test/resolve-runtime.test.js new file mode 100644 index 0000000..7781c0b --- /dev/null +++ b/electron/test/resolve-runtime.test.js @@ -0,0 +1,122 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const path = require('node:path'); +const { init } = require('../src/i18n'); +const { + bundledPython, + devVenvPython, + resolveRuntime, + RuntimeUnavailableError, +} = require('../src/resolve-runtime'); + +init({ preferred: ['en'] }); + +const APP_ROOT = '/home/u/dev/finance-mosaix'; +const BUNDLED_DIR = '/opt/app/resources/python'; +const USER_DATA = '/home/u/.config/finance-mosaix'; +const REQ = '/opt/app/requirements.txt'; +const SYS_PROBE = { cmd: ['python3'], version: [3, 12, 1] }; +const DEV_PY = path.posix.join(APP_ROOT, '.venv', 'bin', 'python'); +const BUNDLED = path.posix.join(BUNDLED_DIR, 'bin', 'python3'); +const VENV_PY = path.posix.join(USER_DATA, 'venv', 'bin', 'python'); + +// Fakes: no real Python, no filesystem access. +function fakes({ found = SYS_PROBE, existing = [], ensureError = null } = {}) { + const calls = { find: 0, ensure: [], exists: [] }; + const deps = { + platform: 'linux', + env: {}, + find: async () => { + calls.find++; + return { + python: found ? { cmd: found.cmd, version: found.version } : null, + rejected: found ? [] : [{ cmd: ['python3'], reason: 'not found' }], + }; + }, + ensure: async (opts) => { + calls.ensure.push(opts); + if (ensureError) throw ensureError; + return { python: VENV_PY, installed: true }; + }, + exists: async (p) => { + calls.exists.push(p); + return existing.includes(p); + }, + }; + return { deps, calls }; +} + +const base = { isPackaged: false, appRoot: APP_ROOT, bundledDir: BUNDLED_DIR, userDataDir: USER_DATA, requirementsPath: REQ, appVersion: '0.2.0' }; +const resolve = (deps, extra = {}) => resolveRuntime({ ...base, deps, ...extra }); + +test('bundledPython and devVenvPython return the path per platform', () => { + assert.equal(bundledPython(BUNDLED_DIR, 'linux'), path.posix.join(BUNDLED_DIR, 'bin', 'python3')); + assert.equal(bundledPython('C:\\app\\resources\\python', 'win32'), path.win32.join('C:\\app\\resources\\python', 'python.exe')); + assert.equal(devVenvPython(APP_ROOT, 'linux'), DEV_PY); + assert.equal(devVenvPython('C:\\dev\\fm', 'win32'), path.win32.join('C:\\dev\\fm', '.venv', 'Scripts', 'python.exe')); +}); + +test('override wins over everything', async () => { + const { deps, calls } = fakes({ existing: [DEV_PY, BUNDLED] }); + deps.env = { FINANCE_MOSAIX_PYTHON: '/custom/python' }; + assert.deepEqual(await resolve(deps), { python: ['/custom/python'], mode: 'override' }); + assert.equal(calls.find, 0); + assert.equal(calls.ensure.length, 0); +}); + +test('dev venv is used only when not packaged', async () => { + const { deps } = fakes({ existing: [DEV_PY, BUNDLED] }); + assert.deepEqual(await resolve(deps), { python: [DEV_PY], mode: 'dev' }); + + const packaged = fakes({ existing: [DEV_PY, BUNDLED] }); + assert.deepEqual(await resolve(packaged.deps, { isPackaged: true }), { python: [BUNDLED], mode: 'bundled' }); + assert.ok(!packaged.calls.exists.includes(DEV_PY), 'dev venv must not even be probed when packaged'); +}); + +test('bundled wins over system python', async () => { + const { deps, calls } = fakes({ existing: [BUNDLED] }); + assert.deepEqual(await resolve(deps), { python: [BUNDLED], mode: 'bundled' }); + assert.equal(calls.find, 0, 'find must not be called'); + assert.equal(calls.ensure.length, 0); +}); + +test('falls back to system venv when nothing is bundled', async () => { + const { deps, calls } = fakes(); + assert.deepEqual(await resolve(deps), { python: [VENV_PY], mode: 'system' }); + assert.equal(calls.ensure.length, 1); + assert.equal(calls.ensure[0].venvDir, path.join(USER_DATA, 'venv')); + assert.deepEqual(calls.ensure[0].probe, SYS_PROBE); + assert.equal(calls.ensure[0].requirementsPath, REQ); + assert.equal(calls.ensure[0].appVersion, '0.2.0'); + assert.equal(calls.ensure[0].force, false); +}); + +test('force skips steps 1-3 and passes force to ensure', async () => { + const { deps, calls } = fakes({ existing: [DEV_PY, BUNDLED] }); + deps.env = { FINANCE_MOSAIX_PYTHON: '/custom/python' }; + assert.deepEqual(await resolve(deps, { force: true }), { python: [VENV_PY], mode: 'system' }); + assert.equal(calls.exists.length, 0); + assert.equal(calls.ensure[0].force, true); +}); + +test('throws RuntimeUnavailableError listing rejected candidates', async () => { + const { deps } = fakes({ found: null }); + await assert.rejects(resolve(deps), (err) => { + assert.ok(err instanceof RuntimeUnavailableError); + assert.equal(err.name, 'RuntimeUnavailableError'); + assert.deepEqual(err.rejected, [{ cmd: ['python3'], reason: 'not found' }]); + assert.match(err.message, /python3: not found/); + assert.match(err.message, /3\.11/); + return true; + }); +}); + +test('win32 bundled path is python.exe in bundledDir', async () => { + const winDir = 'C:\\app\\resources\\python'; + const winBundled = path.win32.join(winDir, 'python.exe'); + const { deps } = fakes({ existing: [winBundled] }); + deps.platform = 'win32'; + assert.deepEqual(await resolve(deps, { bundledDir: winDir }), { python: [winBundled], mode: 'bundled' }); +}); diff --git a/electron/test/server-process.test.js b/electron/test/server-process.test.js new file mode 100644 index 0000000..445182c --- /dev/null +++ b/electron/test/server-process.test.js @@ -0,0 +1,186 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); +const { + ServerStartError, + buildArgs, + buildEnv, + findFreePort, + startServer, +} = require('../src/server-process'); + +const APP_ROOT = path.resolve(__dirname, '..', '..'); +const APP_PY = path.join(APP_ROOT, 'src', 'finance_mosaix', 'dashboard', 'app.py'); +const TIMEOUT_MS = 10000; +const KEEP_ALIVE = 'setInterval(() => {}, 1000);'; + +// Fake "python": `node -e --`. The arguments after `--` (the buildArgsFn result) end up in +// process.argv from index 1 on and are read by the script as `args`. +const fake = (body) => [process.execPath, '-e', `const args = process.argv.slice(1);\n${body}`, '--']; +const PORT = "const port = Number(args[args.indexOf('--server.port') + 1]);"; +const argsFor = (_root, port) => ['--server.port', String(port)]; + +// HTTP server on `port` that answers 200 on /_stcore/health when `condition` (JS expression) holds, else 503. +const healthServer = (condition) => `const http = require('node:http'); +const started = Date.now(); +http.createServer((req, res) => { + const ready = req.url === '/_stcore/health' && (${condition}); + res.writeHead(ready ? 200 : 503); + res.end(); +}).listen(port, '127.0.0.1');`; + +function tmpDir(t) { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'server-process-test-')); + t.after(() => fs.rmSync(dir, { recursive: true, force: true })); + return dir; +} + +async function assertDead(pid) { + const deadline = Date.now() + 2000; + for (;;) { + try { + process.kill(pid, 0); + } catch { + return; + } + if (Date.now() > deadline) assert.fail(`process ${pid} is still alive`); + await new Promise((resolve) => setTimeout(resolve, 50)); + } +} + +test('buildArgs contains app.py path and port', () => { + const args = buildArgs(APP_ROOT, 8123); + assert.deepEqual(args.slice(0, 4), ['-m', 'streamlit', 'run', APP_PY]); + assert.equal(args[args.indexOf('--server.port') + 1], '8123'); + assert.equal(args[args.indexOf('--server.address') + 1], '127.0.0.1'); + assert.equal(args[args.indexOf('--server.headless') + 1], 'true'); + assert.equal(args[args.indexOf('--server.fileWatcherType') + 1], 'none'); +}); + +test('buildEnv sets PYTHONPATH to src, drops PYTHONHOME case-insensitively, sets data dir', () => { + const env = buildEnv({ PythonHome: '/x', PYTHONHOME: '/y', PATH: '/bin' }, { appRoot: APP_ROOT, dataDir: '/data' }); + assert.equal(env.PYTHONPATH, path.join(APP_ROOT, 'src')); + assert.equal(env.PYTHONNOUSERSITE, '1'); + assert.equal(env.PYTHONUNBUFFERED, '1'); + assert.equal(env.PYTHONUTF8, '1'); + assert.equal(env.PATH, '/bin'); + assert.equal(Object.keys(env).some((key) => key.toUpperCase() === 'PYTHONHOME'), false); + assert.equal(env.FINANCE_MOSAIX_DATA_DIR, '/data'); +}); + +test('buildEnv keeps an inherited FINANCE_MOSAIX_DATA_DIR when dataDir is null', () => { + const env = buildEnv({ FINANCE_MOSAIX_DATA_DIR: '/inherited' }, { appRoot: APP_ROOT, dataDir: null }); + assert.equal(env.FINANCE_MOSAIX_DATA_DIR, '/inherited'); +}); + +test('findFreePort returns a port that can be bound', async () => { + const port = await findFreePort(); + assert.equal(typeof port, 'number'); + assert.ok(port > 0 && port < 65536); +}); + +test('startServer resolves once health returns 200', async (t) => { + const python = fake(`${PORT}\n${healthServer('true')}\n${KEEP_ALIVE}`); + const server = await startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }); + t.after(() => server.stop()); + assert.equal(server.url, `http://127.0.0.1:${server.port}/`); + assert.equal(typeof server.pid, 'number'); +}); + +test('startServer keeps polling until health turns 200', async (t) => { + const python = fake(`${PORT}\n${healthServer('Date.now() - started >= 2000')}\n${KEEP_ALIVE}`); + const began = Date.now(); + const server = await startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }); + t.after(() => server.stop()); + assert.ok(Date.now() - began >= 1500, 'must wait while health answers 503'); +}); + +test("startServer retries with a new port on 'Port 8501 is already in use'", async (t) => { + const python = fake(`${PORT} +if (port === 8501) { + process.stderr.write('Port 8501 is already in use\\n'); + process.exit(1); +} +${healthServer('true')} +${KEEP_ALIVE}`); + const ports = [8501, 4321]; + const server = await startServer({ + python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor, + deps: { findFreePort: async () => ports.shift() }, + }); + t.after(() => server.stop()); + assert.equal(server.port, 4321); + assert.equal(server.url, 'http://127.0.0.1:4321/'); +}); + +test('startServer rejects with ServerStartError and tail on early exit', async () => { + const python = fake(`process.stderr.write('boom\\n'); process.exit(1);`); + const started = Date.now(); + await assert.rejects( + startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }), + (err) => { + assert.ok(err instanceof ServerStartError); + assert.ok(err instanceof Error); + assert.match(err.stderrTail, /boom/); + return true; + }, + ); + assert.ok(Date.now() - started < 5000, 'must not wait until timeoutMs'); +}); + +test('startServer rejects on timeout and kills the process', async (t) => { + const pidFile = path.join(tmpDir(t), 'pid'); + const python = fake(`require('node:fs').writeFileSync(${JSON.stringify(pidFile)}, String(process.pid)); +${KEEP_ALIVE}`); + await assert.rejects( + startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: 500, buildArgsFn: argsFor }), + (err) => err instanceof ServerStartError, + ); + const pid = Number(fs.readFileSync(pidFile, 'utf8')); + assert.throws(() => process.kill(pid, 0)); +}); + +test('stop terminates the process and its children', { skip: process.platform === 'win32' }, async (t) => { + const pidFile = path.join(tmpDir(t), 'kid-pid'); + const python = fake(`${PORT} +const kid = require('node:child_process').spawn(process.execPath, ['-e', 'setInterval(() => {}, 1000)'], { stdio: 'ignore' }); +require('node:fs').writeFileSync(${JSON.stringify(pidFile)}, String(kid.pid)); +${healthServer('true')} +${KEEP_ALIVE}`); + const server = await startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }); + t.after(() => server.stop()); + const kidPid = Number(fs.readFileSync(pidFile, 'utf8')); + await server.stop(); + await assertDead(kidPid); + await server.stop(); +}); + +test('handle.onExit fires with code and tail when the process dies after ready', async (t) => { + const python = fake(`${PORT} +setTimeout(() => { + process.stderr.write('fatal error\\n'); + process.exit(7); +}, 1000); +${healthServer('true')}`); + const server = await startServer({ python, appRoot: APP_ROOT, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }); + t.after(() => server.stop()); + const info = await new Promise((resolve) => server.onExit(resolve)); + assert.equal(info.code, 7); + assert.match(info.tail, /fatal error/); +}); + +test('startServer works with an appRoot containing spaces and umlauts', async (t) => { + const appRoot = path.join(tmpDir(t), 'Finance Mosaix Größe Ä'); + fs.mkdirSync(appRoot); + const python = fake(`${PORT} +if (process.env.PYTHONPATH !== ${JSON.stringify(path.join(appRoot, 'src'))}) process.exit(4); +${healthServer('true')} +${KEEP_ALIVE}`); + const server = await startServer({ python, appRoot, dataDir: null, timeoutMs: TIMEOUT_MS, buildArgsFn: argsFor }); + t.after(() => server.stop()); + assert.equal(typeof server.port, 'number'); +}); diff --git a/electron/test/smoke.test.js b/electron/test/smoke.test.js new file mode 100644 index 0000000..62b117e --- /dev/null +++ b/electron/test/smoke.test.js @@ -0,0 +1,49 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const http = require('node:http'); +const { runSmoke } = require('../src/smoke'); + +function startServer(routes) { + return new Promise((resolve) => { + const server = http.createServer((req, res) => { + const route = routes[req.url]; + if (!route) { + res.writeHead(404); + res.end(); + return; + } + res.writeHead(route.status, { 'content-type': 'text/html' }); + res.end(route.body); + }); + server.listen(0, '127.0.0.1', () => resolve(server)); + }); +} + +test('runSmoke true for health 200 + title page', async (t) => { + const server = await startServer({ + '/_stcore/health': { status: 200, body: 'ok' }, + '/': { status: 200, body: 'Finance' }, + }); + t.after(() => server.close()); + const { port } = server.address(); + assert.equal(await runSmoke(`http://127.0.0.1:${port}/`), true); +}); + +test('runSmoke false when / lacks { + const server = await startServer({ + '/_stcore/health': { status: 200, body: 'ok' }, + '/': { status: 200, body: 'no title here' }, + }); + t.after(() => server.close()); + const { port } = server.address(); + assert.equal(await runSmoke(`http://127.0.0.1:${port}/`), false); +}); + +test('runSmoke false on connection refused', async (t) => { + const server = await startServer({}); + const { port } = server.address(); + await new Promise((resolve) => server.close(resolve)); + assert.equal(await runSmoke(`http://127.0.0.1:${port}/`, { timeoutMs: 2000 }), false); +}); diff --git a/electron/test/venv-manager.test.js b/electron/test/venv-manager.test.js new file mode 100644 index 0000000..09b7e85 --- /dev/null +++ b/electron/test/venv-manager.test.js @@ -0,0 +1,235 @@ +'use strict'; + +const { test } = require('node:test'); +const assert = require('node:assert/strict'); +const path = require('node:path'); +const os = require('node:os'); +const fs = require('node:fs/promises'); +const { t: translate } = require('../src/i18n'); +const { STAMP_NAME, venvPython, requirementsHash, ensureVenv } = require('../src/venv-manager'); + +const PLATFORM = 'linux'; +const PROBE = { cmd: ['python3'], version: [3, 12, 4] }; +const APP_VERSION = '1.0.0'; +const REQUIREMENTS_TEXT = 'numpy==2.1.0\n'; +const PIP_ARGS = (requirementsPath) => [ + '-m', + 'pip', + 'install', + '--disable-pip-version-check', + '--no-input', + '-r', + requirementsPath, +]; + +async function setup(t) { + const root = await fs.mkdtemp(path.join(os.tmpdir(), 'venv-manager-test-')); + t.after(() => fs.rm(root, { recursive: true, force: true })); + const requirementsPath = path.join(root, 'requirements.txt'); + await fs.writeFile(requirementsPath, REQUIREMENTS_TEXT, 'utf8'); + return { venvDir: path.join(root, 'venv'), requirementsPath }; +} + +// Fake runner: `-m venv` creates the interpreter file in the venv folder, the pip +// call goes through runLines and can emit lines or fail as configured. +function makeDeps({ pipFails = false, pipLines = [] } = {}) { + const calls = []; + const run = async (file, args) => { + calls.push({ kind: 'run', file, args }); + const dir = args[args.length - 1]; + await fs.mkdir(path.dirname(venvPython(dir, PLATFORM)), { recursive: true }); + await fs.writeFile(venvPython(dir, PLATFORM), ''); + return { stdout: '', stderr: '' }; + }; + const runLines = async (file, args, opts) => { + calls.push({ kind: 'runLines', file, args, timeout: opts.timeout }); + for (const line of pipLines) opts.onLine(line); + if (pipFails) throw new Error('pip failed'); + }; + return { deps: { run, runLines, platform: PLATFORM }, calls }; +} + +async function readStamp(venvDir) { + return JSON.parse(await fs.readFile(path.join(venvDir, STAMP_NAME), 'utf8')); +} + +async function writeStamp(venvDir, stamp) { + await fs.mkdir(venvDir, { recursive: true }); + await fs.writeFile(path.join(venvDir, STAMP_NAME), JSON.stringify(stamp)); +} + +async function makeInterpreter(venvDir) { + await fs.mkdir(path.dirname(venvPython(venvDir, PLATFORM)), { recursive: true }); + await fs.writeFile(venvPython(venvDir, PLATFORM), ''); +} + +async function exists(p) { + try { + await fs.access(p); + return true; + } catch { + return false; + } +} + +test('venvPython on win32 uses Scripts\\python.exe', () => { + assert.equal(venvPython('/x/venv', 'linux'), path.posix.join('/x/venv', 'bin', 'python')); + assert.equal(venvPython('C:\\v', 'win32'), path.win32.join('C:\\v', 'Scripts', 'python.exe')); +}); + +test('ensureVenv creates venv and installs requirements on first run', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps, calls } = makeDeps(); + + const result = await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + + assert.deepEqual(result, { python: venvPython(venvDir, PLATFORM), installed: true }); + assert.deepEqual( + calls.map((c) => c.kind), + ['run', 'runLines'], + ); + assert.equal(calls[0].file, 'python3'); + assert.deepEqual(calls[0].args, ['-m', 'venv', venvDir]); + assert.equal(calls[1].file, venvPython(venvDir, PLATFORM)); + assert.deepEqual(calls[1].args, PIP_ARGS(requirementsPath)); + assert.deepEqual(await readStamp(venvDir), { + python: '3.12', + appVersion: APP_VERSION, + requirementsHash: requirementsHash(REQUIREMENTS_TEXT), + complete: true, + }); +}); + +test('ensureVenv skips install when stamp matches', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps, calls } = makeDeps(); + await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + calls.length = 0; + + const result = await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + + assert.deepEqual(result, { python: venvPython(venvDir, PLATFORM), installed: false }); + assert.equal(calls.length, 0); +}); + +test('ensureVenv reinstalls when the stamp is incomplete', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + await makeInterpreter(venvDir); + await writeStamp(venvDir, { + python: '3.12', + appVersion: APP_VERSION, + requirementsHash: requirementsHash(REQUIREMENTS_TEXT), + complete: false, + }); + const { deps, calls } = makeDeps(); + + const result = await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + + assert.deepEqual(result, { python: venvPython(venvDir, PLATFORM), installed: true }); + assert.deepEqual(calls.map((c) => c.kind), ['runLines']); + assert.equal((await readStamp(venvDir)).complete, true); +}); + +test('ensureVenv reinstalls when appVersion or requirements hash changes', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps, calls } = makeDeps(); + await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + + calls.length = 0; + const byVersion = await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: '1.0.1', deps }); + assert.equal(byVersion.installed, true); + assert.deepEqual(calls.map((c) => c.kind), ['runLines']); + + calls.length = 0; + await fs.writeFile(requirementsPath, 'numpy==2.2.0\n', 'utf8'); + const byHash = await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: '1.0.1', deps }); + assert.equal(byHash.installed, true); + assert.deepEqual(calls.map((c) => c.kind), ['runLines']); + assert.equal((await readStamp(venvDir)).requirementsHash, requirementsHash('numpy==2.2.0\n')); +}); + +test('ensureVenv recreates the venv when the python minor version changes', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + await makeInterpreter(venvDir); + await fs.writeFile(path.join(venvDir, 'stale.txt'), 'old'); + await writeStamp(venvDir, { + python: '3.11', + appVersion: APP_VERSION, + requirementsHash: requirementsHash(REQUIREMENTS_TEXT), + complete: true, + }); + const { deps, calls } = makeDeps(); + + const result = await ensureVenv({ + probe: { cmd: ['python3'], version: [3, 13, 0] }, + venvDir, + requirementsPath, + appVersion: APP_VERSION, + deps, + }); + + assert.equal(result.installed, true); + assert.equal(await exists(path.join(venvDir, 'stale.txt')), false); + assert.deepEqual(calls[0].args, ['-m', 'venv', venvDir]); + assert.equal((await readStamp(venvDir)).python, '3.13'); +}); + +test('ensureVenv with force reinstalls', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps } = makeDeps(); + await ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }); + const { deps: forced, calls } = makeDeps(); + + const result = await ensureVenv({ + probe: PROBE, + venvDir, + requirementsPath, + appVersion: APP_VERSION, + force: true, + deps: forced, + }); + + assert.equal(result.installed, true); + assert.deepEqual(calls.map((c) => c.kind), ['runLines']); +}); + +test('ensureVenv rejects and leaves complete=false when pip fails', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps } = makeDeps({ pipFails: true }); + + await assert.rejects( + ensureVenv({ probe: PROBE, venvDir, requirementsPath, appVersion: APP_VERSION, deps }), + /pip failed/, + ); + assert.equal((await readStamp(venvDir)).complete, false); +}); + +test('progress lines are forwarded', async (t) => { + const { venvDir, requirementsPath } = await setup(t); + const { deps } = makeDeps({ + pipLines: [ + 'Collecting numpy==2.1.0', + 'Requirement already satisfied: six', + 'Downloading numpy-2.1.0.whl', + 'Installing collected packages: numpy', + ], + }); + const messages = []; + + await ensureVenv({ + probe: PROBE, + venvDir, + requirementsPath, + appVersion: APP_VERSION, + deps, + onProgress: (m) => messages.push(m), + }); + + const install = translate('electron.loading.install_deps'); + assert.deepEqual(messages, [ + translate('electron.loading.create_venv'), + `${install}\nCollecting numpy==2.1.0`, + `${install}\nDownloading numpy-2.1.0.whl`, + `${install}\nInstalling collected packages: numpy`, + ]); +}); diff --git a/pyproject.toml b/pyproject.toml index 1602abd..20e357f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,30 +17,31 @@ classifiers = [ "Intended Audience :: Developers", "Topic :: Office/Business :: Financial", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.13", "Environment :: Console", "Framework :: Streamlit", ] -urls = { Homepage = "https://github.com/Developer-Simon/finance-mosaix", Repository = "https://github.com/Developer-Simon/finance-mosaix", Documentation = "https://github.com/Developer-Simon/finance-mosaix/tree/main/docs", "Bug Tracker" = "https://github.com/Developer-Simon/finance-mosaix/issues" } +urls = { Homepage = "https://github.com/Developer-Simon/finance-mosaix", Repository = "https://github.com/Developer-Simon/finance-mosaix", Documentation = "https://github.com/Developer-Simon/finance-mosaix/tree/master/docs", "Bug Tracker" = "https://github.com/Developer-Simon/finance-mosaix/issues" } dependencies = [ - "pandas>=2.0,<3.0", + "pandas>=2.0,<4.0", "openpyxl>=3.1,<4.0", "duckdb>=1.0,<2.0", - "streamlit>=1.20,<2.0", + "streamlit>=1.46,<2.0", "altair>=5.0,<6.0", "matplotlib>=3.7,<4.0", "seaborn>=0.12,<1.0", - "numpy>=1.25,<2.0", + "numpy>=1.25,<3", ] optional-dependencies = { test = ["pytest>=7.0,<9.0"], dev = ["pytest>=7.0,<9.0", "setuptools_scm>=7.1"], docs = [] } [project.scripts] -finance-mosaix = "src.finance_cli:main" +finance-mosaix = "finance_mosaix.core.finance_cli:main" [tool.setuptools.packages.find] -where = ["."] -include = ["src*", "dashboard*"] +where = ["src"] +include = ["finance_mosaix*"] [tool.setuptools_scm] fallback_version = "0.2.0" diff --git a/scripts/dev/create-pr.sh b/scripts/dev/create-pr.sh new file mode 100755 index 0000000..ff2678b --- /dev/null +++ b/scripts/dev/create-pr.sh @@ -0,0 +1,207 @@ +#!/usr/bin/env bash +# +# Opens a pull request for a change to finance-mosaix. +# +# `master` takes changes through squash-merged PRs only. This script takes the +# current work, pushes it onto a branch and opens the PR. +# +# The PR body comes from `.github/PULL_REQUEST_TEMPLATE/pull_request_template.md`. +# The script fills every placeholder itself, nothing is left to be maintained by +# hand later. The fenced block is the squash-merge commit BODY: the subject is +# the PR title (release-please builds CHANGELOG.md from it), so the block never +# repeats it, and it always ends with a +# `Co-authored-by: Claude x.y ` trailer +# (Haiku is rejected). `scripts/dev/merge-pr.sh` merges with exactly that block. +# +# Usage: +# scripts/dev/create-pr.sh [] ["PR title"] +# +# Target branch. If you are already on a branch != master it is +# used and the argument is only checked for consistency. +# Without an argument the current branch is used - after a +# confirmation prompt (non-interactive: needs PR_ASSUME_YES=1). +# "PR title" Conventional Commits subject (or PR_TITLE). Without it the +# subject of the last commit is used. +# +# Environment variables (all optional except PR_AI_MODEL when no commit or +# message file carries a valid Claude trailer): +# PR_AI_MODEL=… Model that did the work, e.g. "Sonnet 5.5" or "Opus 5.5". +# Becomes the trailer and the AI disclosure line. +# PR_MESSAGE_FILE=… Squash-merge body without the title ("-" = stdin). Replaces +# the pre-fill from the branch commits and skips the editor. +# PR_SUMMARY=… 1-3 sentences for the reviewer. Default: first paragraph +# of the message. +# PR_SUITES=… Test suites that were run, e.g. "pytest, electron npm test". +# Without it that checkbox stays unchecked. +# PR_ISSUE=… Linked issue, e.g. "#42". Default: from `Closes #N`. +# PR_SKIP_EDIT=1 Skip the editor step (non-interactive / CI). +# PR_ASSUME_YES=1 Confirm the "use current branch" prompt without a TTY. +# +# Prerequisite: commit your work before calling the script - it moves branches +# around but does not commit anything for you. + +set -euo pipefail + +source "$(dirname "${BASH_SOURCE[0]}")/pr-message-lib.sh" + +BASE="master" + +branch="${1:-}" +title="${2:-${PR_TITLE:-}}" + +if [[ -n "${PR_MESSAGE_FILE:-}" && "${PR_MESSAGE_FILE}" != "-" && ! -f "${PR_MESSAGE_FILE}" ]]; then + echo "PR_MESSAGE_FILE does not point at a file: ${PR_MESSAGE_FILE}" >&2 + exit 2 +fi + +REPO_ROOT="$(git rev-parse --show-toplevel)" +cd "${REPO_ROOT}" + +current="$(git branch --show-current)" + +# No branch name given: fall back to the current branch, but confirm first. +if [[ -z "${branch}" ]]; then + if [[ -z "${current}" || "${current}" == "${BASE}" ]]; then + echo "usage: $0 [] [\"PR title\"]" >&2 + echo "(no branch name given and HEAD is '${current:-detached}')" >&2 + exit 2 + fi + if [[ -t 0 && -t 1 ]]; then + read -r -p "No branch name given. Open a PR for the current branch '${current}'? [y/N] " reply + case "${reply}" in + [yY] | [yY][eE][sS]) ;; + *) echo "Aborted." >&2; exit 1 ;; + esac + elif [[ -z "${PR_ASSUME_YES:-}" ]]; then + echo "No branch name given and no TTY to confirm." >&2 + echo "Set PR_ASSUME_YES=1 to use the current branch '${current}'." >&2 + exit 2 + fi + branch="${current}" +fi + +if [[ "${branch}" == "${BASE}" ]]; then + echo "Target branch must not be '${BASE}'." >&2 + exit 2 +fi + +if [[ "${current}" == "${BASE}" ]]; then + # Uncommitted changes move onto the new branch, commits already on master do + # too (master is not reset here - the PR merge or a later manual `git reset` + # takes care of that). + git switch -c "${branch}" +elif [[ "${current}" != "${branch}" ]]; then + echo "You are on '${current}', but '${branch}' was requested." >&2 + echo "Switch to the right branch yourself or call again without a name." >&2 + exit 1 +fi + +git fetch origin "${BASE}" --quiet + +if git diff --quiet "origin/${BASE}...HEAD"; then + echo "No commits against origin/${BASE} on '${branch}'." >&2 + echo "Commit your work and start the script again." >&2 + exit 1 +fi + +TEMPLATE="${REPO_ROOT}/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md" + +msg_file="$(mktemp)" +body_file="$(mktemp)" +trap 'rm -f "${msg_file}" "${body_file}" "${msg_file}.raw"' EXIT + +# --- Title --------------------------------------------------------------- + +[[ -n "${title}" ]] || title="$(git log -1 --format='%s' "origin/${BASE}..HEAD")" + +# --- Squash-merge body (no title, Claude trailer last) --------------------- + +if [[ -n "${PR_MESSAGE_FILE:-}" ]]; then + if [[ "${PR_MESSAGE_FILE}" == "-" ]]; then + cat > "${msg_file}.raw" + else + cat "${PR_MESSAGE_FILE}" > "${msg_file}.raw" + fi + if [[ ! -s "${msg_file}.raw" ]]; then + echo "PR_MESSAGE_FILE is empty." >&2 + exit 2 + fi +else + mapfile -t commits < <(git log --reverse --format='%H' "origin/${BASE}..HEAD") + if [[ "${#commits[@]}" -eq 1 ]]; then + git log -1 --format='%b' "${commits[0]}" > "${msg_file}.raw" + else + git log --reverse --format='- %s' "origin/${BASE}..HEAD" > "${msg_file}.raw" + fi +fi + +pr_normalize_message "${title}" "${PR_AI_MODEL:-}" < "${msg_file}.raw" > "${msg_file}" + +if ! grep -q -E "${PR_TRAILER_RE}" "${msg_file}"; then + echo "No Claude trailer: set PR_AI_MODEL=\"Sonnet 5.5\" (or Opus x.y)." >&2 + exit 2 +fi + +# --- Derived fields ---------------------------------------------------------- + +ai_model="$(grep -E "${PR_TRAILER_RE}" "${msg_file}" | sed -E 's/^Co-[Aa]uthored-[Bb]y: (Claude [^<]+) <.*/\1/')" + +summary="${PR_SUMMARY:-}" +if [[ -z "${summary}" ]]; then + summary="$(awk 'NF { p = 1; print; next } p { exit }' "${msg_file}" | grep -v -i -E '^Co-authored-by:' || true)" +fi +[[ -n "${summary}" ]] || summary="${title}" + +issue="${PR_ISSUE:-}" +if [[ -z "${issue}" ]]; then + issue="$(grep -o -i -E '(closes|fixes|resolves) #[0-9]+' "${msg_file}" | head -n 1 | sed -E 's/.* //' || true)" +fi +[[ -n "${issue}" ]] || issue="none" + +check_title=" " +[[ "${title}" =~ ${PR_CC_RE} ]] && check_title="x" + +# Database files and the local settings never belong in the repository. +check_files=" " +if [[ -z "$(git ls-files -- '*.duckdb' '**/settings.json')" ]]; then + check_files="x" +fi + +check_suites=" " +suites="${PR_SUITES:-}" +if [[ -n "${suites}" ]]; then check_suites="x"; else suites="not stated"; fi + +# --- Fill the template ------------------------------------------------------- + +if [[ ! -f "${TEMPLATE}" ]]; then + cp "${msg_file}" "${body_file}" +else + MESSAGE="$(cat "${msg_file}")" SUMMARY="${summary}" SUITES="${suites}" ISSUE="${issue}" \ + AI_MODEL="${ai_model}" CHECK_TITLE="${check_title}" CHECK_FILES="${check_files}" \ + CHECK_AI="x" CHECK_SUITES="${check_suites}" \ + awk ' + { + line = $0 + while (match(line, /\{\{[A-Z_]+\}\}/)) { + key = substr(line, RSTART + 2, RLENGTH - 4) + line = substr(line, 1, RSTART - 1) ENVIRON[key] substr(line, RSTART + RLENGTH) + } + print line + } + ' "${TEMPLATE}" > "${body_file}" +fi + +# --- Editor step ---------------------------------------------------------- + +if [[ -z "${PR_SKIP_EDIT:-}" && -z "${PR_MESSAGE_FILE:-}" && -t 0 && -t 1 ]]; then + editor="$(git var GIT_EDITOR)" + eval "${editor} \"${body_file}\"" +fi + +# The edited block must still satisfy the rules, otherwise stop before opening. +pr_extract_block "${body_file}" > "${msg_file}" +pr_validate_message "${title}" "${msg_file}" || exit 2 + +git push -u origin "${branch}" +gh pr create --base "${BASE}" --head "${branch}" --title "${title}" --body-file "${body_file}" +gh pr view --web diff --git a/scripts/dev/merge-pr.sh b/scripts/dev/merge-pr.sh new file mode 100755 index 0000000..450c617 --- /dev/null +++ b/scripts/dev/merge-pr.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +# +# Squash-merges a PR with the commit message from its description. +# +# The fenced block of the PR description is the commit BODY, the PR title is +# the SUBJECT (GitHub's merge button would use the commit list instead). Before +# merging, the message is checked: no title line in the body, last line is a +# `Co-authored-by: Claude Sonnet|Opus|Fable x.y ` +# trailer, never Haiku. +# +# Usage: +# scripts/dev/merge-pr.sh [] default: the PR of the current branch +# scripts/dev/merge-pr.sh --check [] only validate, do not merge +# +# Environment: PR_MERGE_AUTO=1 uses `gh pr merge --auto` (waits for checks). + +set -euo pipefail + +source "$(dirname "${BASH_SOURCE[0]}")/pr-message-lib.sh" + +check_only=0 +if [[ "${1:-}" == "--check" ]]; then check_only=1; shift; fi +pr="${1:-}" + +tmp="$(mktemp -d)" +trap 'rm -rf "${tmp}"' EXIT + +view=(gh pr view) +[[ -n "${pr}" ]] && view+=("${pr}") +"${view[@]}" --json number --jq '.number' > "${tmp}/number" +"${view[@]}" --json title --jq '.title' > "${tmp}/title" +"${view[@]}" --json body --jq '.body' > "${tmp}/body" +pr="$(cat "${tmp}/number")" +title="$(cat "${tmp}/title")" + +pr_extract_block "${tmp}/body" > "${tmp}/message" +if [[ ! -s "${tmp}/message" ]]; then + echo "PR #${pr} has no fenced commit message block in its description." >&2 + exit 2 +fi + +if ! pr_validate_message "${title}" "${tmp}/message"; then + echo "PR #${pr}: fix the description (or the title) and run again." >&2 + exit 2 +fi + +echo "PR #${pr}: ${title} (#${pr})" +echo "----" +cat "${tmp}/message" +echo "----" +[[ "${check_only}" -eq 1 ]] && { echo "Message is valid."; exit 0; } + +args=(--squash --subject "${title} (#${pr})" --body-file "${tmp}/message") +[[ -n "${PR_MERGE_AUTO:-}" ]] && args+=(--auto) +gh pr merge "${pr}" "${args[@]}" diff --git a/scripts/dev/pr-message-lib.sh b/scripts/dev/pr-message-lib.sh new file mode 100755 index 0000000..f96344d --- /dev/null +++ b/scripts/dev/pr-message-lib.sh @@ -0,0 +1,95 @@ +#!/usr/bin/env bash +# +# Shared helpers for scripts/dev/create-pr.sh and scripts/dev/merge-pr.sh. +# +# The squash-merge commit message of this repo has a fixed shape: +# +# - the subject is the PR title, so the message itself does NOT repeat it; +# release-please reads that subject for CHANGELOG.md, so it is a +# Conventional Commits subject; +# - the body explains the change; +# - the last line is a `Co-authored-by: Claude ` +# trailer naming the model that did the work. Sonnet, Opus and Fable are +# accepted, Haiku never lands on `master`. +# +# Source this file, it defines functions only. + +PR_TRAILER_RE='^Co-[Aa]uthored-[Bb]y: Claude (Sonnet|Opus|Fable) [0-9]+(\.[0-9]+)? $' +PR_CC_RE='^[a-z]+(\([a-z0-9._:/-]+\))?!?: .+' + +# pr_trailer - "Sonnet 5.5" (or "Claude Sonnet 5.5") -> trailer line. +pr_trailer() { + local model="${1#Claude }" + printf 'Co-authored-by: Claude %s \n' "${model}" +} + +# pr_normalize_message [<model>] +# stdin: message. stdout: the message without a leading title line, without +# duplicate Claude trailers, ending in exactly one Claude trailer. <model> is +# used when the message carries no valid trailer itself. +pr_normalize_message() { + local title="${1:-}" model="${2:-}" tmp trailer first + tmp="$(mktemp)" + cat > "${tmp}" + + # Drop a leading title line (and the blank line after it). + first="$(awk 'NF { print; exit }' "${tmp}")" + if [[ -n "${first}" && ( "${first}" == "${title}" || "${first}" =~ ${PR_CC_RE} ) ]]; then + awk '!done && NF { done = 1; skip = 1; next } skip && !NF { skip = 0; next } { skip = 0; print }' \ + "${tmp}" > "${tmp}.2" && mv "${tmp}.2" "${tmp}" + fi + + # A valid Claude trailer already present wins over <model>. + trailer="$(grep -E "${PR_TRAILER_RE}" "${tmp}" | tail -n 1 || true)" + if [[ -z "${trailer}" && -n "${model}" ]]; then + trailer="$(pr_trailer "${model}")" + trailer="${trailer%$'\n'}" + fi + + # Remove every Claude trailer and the "---------" squash separator, + # then trim trailing blank lines. + grep -v -i -E '^Co-authored-by: Claude|^-{5,}$' "${tmp}" \ + | awk '{ lines[NR] = $0 } END { n = NR; while (n > 0 && lines[n] ~ /^[[:space:]]*$/) n--; for (i = 1; i <= n; i++) print lines[i] }' \ + > "${tmp}.2" || true + + if [[ -s "${tmp}.2" ]]; then + cat "${tmp}.2" + printf '\n' + fi + [[ -n "${trailer}" ]] && printf '%s\n' "${trailer}" + rm -f "${tmp}" "${tmp}.2" +} + +# pr_validate_message <title> <message-file> +# Prints one problem per line to stderr, returns 1 if there is any. +pr_validate_message() { + local title="$1" file="$2" rc=0 last first + if [[ ! "${title}" =~ ${PR_CC_RE} ]]; then + echo "title is not a Conventional Commits subject: ${title}" >&2 + rc=1 + fi + first="$(awk 'NF { print; exit }' "${file}")" + if [[ "${first}" == "${title}" ]]; then + echo "message repeats the title as its first line" >&2 + rc=1 + fi + if grep -q -i -E '^Co-authored-by:.*haiku' "${file}"; then + echo "message carries a Haiku trailer, only Sonnet, Opus or Fable may be named" >&2 + rc=1 + fi + last="$(awk 'NF { l = $0 } END { print l }' "${file}")" + if [[ ! "${last}" =~ ${PR_TRAILER_RE} ]]; then + echo "last line must be 'Co-authored-by: Claude Sonnet|Opus|Fable x.y <noreply@anthropic.com>', got: ${last}" >&2 + rc=1 + fi + if [[ "$(grep -c -E "${PR_TRAILER_RE}" "${file}")" -gt 1 ]]; then + echo "more than one Claude trailer" >&2 + rc=1 + fi + return "${rc}" +} + +# pr_extract_block <pr-body-file> - first fenced block, without the fences. +pr_extract_block() { + awk '/^```/ { c++; next } c == 1 { print }' "$1" +} diff --git a/src/finance_mosaix/__init__.py b/src/finance_mosaix/__init__.py new file mode 100644 index 0000000..c3ca912 --- /dev/null +++ b/src/finance_mosaix/__init__.py @@ -0,0 +1,11 @@ +"""Finance Mosaix – DuckDB-backed personal finance toolkit. + +Public sub-packages: + +- :mod:`finance_mosaix.core` – database schema, migrations, importer, query layer, CLI +- :mod:`finance_mosaix.dashboard` – Streamlit application surface +""" + +from __future__ import annotations + +__all__ = ["core", "dashboard"] diff --git a/src/__init__.py b/src/finance_mosaix/core/__init__.py similarity index 100% rename from src/__init__.py rename to src/finance_mosaix/core/__init__.py diff --git a/src/account_balance_queries.py b/src/finance_mosaix/core/account_balance_queries.py similarity index 98% rename from src/account_balance_queries.py rename to src/finance_mosaix/core/account_balance_queries.py index 047568d..9df3fb6 100644 --- a/src/account_balance_queries.py +++ b/src/finance_mosaix/core/account_balance_queries.py @@ -3,23 +3,16 @@ """ import calendar from datetime import datetime, timedelta -from pathlib import Path -try: - from .db_schema import get_connection -except ImportError: - from db_schema import get_connection - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.paths import default_db_path class AccountBalanceQueries: def __init__(self, conn=None, db_path=None): if conn is None: if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.conn = get_connection(str(db_path)) else: self.conn = conn diff --git a/src/cash_queries.py b/src/finance_mosaix/core/cash_queries.py similarity index 99% rename from src/cash_queries.py rename to src/finance_mosaix/core/cash_queries.py index 082e783..c43158a 100644 --- a/src/cash_queries.py +++ b/src/finance_mosaix/core/cash_queries.py @@ -2,23 +2,16 @@ Cash pool queries for the Finance database. """ from datetime import datetime, timedelta -from pathlib import Path -try: - from .db_schema import get_connection -except ImportError: - from db_schema import get_connection - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.paths import default_db_path class CashQueries: def __init__(self, conn=None, db_path=None): if conn is None: if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.conn = get_connection(str(db_path)) else: self.conn = conn diff --git a/src/db_migrate.py b/src/finance_mosaix/core/db_migrate.py similarity index 100% rename from src/db_migrate.py rename to src/finance_mosaix/core/db_migrate.py diff --git a/src/db_schema.py b/src/finance_mosaix/core/db_schema.py similarity index 97% rename from src/db_schema.py rename to src/finance_mosaix/core/db_schema.py index ee58f55..32e8241 100644 --- a/src/db_schema.py +++ b/src/finance_mosaix/core/db_schema.py @@ -9,10 +9,7 @@ import os from pathlib import Path -try: - from .db_migrate import migrate_database, get_db_version, set_db_version, CURRENT_DB_VERSION -except ImportError: - from db_migrate import migrate_database, get_db_version, set_db_version, CURRENT_DB_VERSION +from finance_mosaix.core.db_migrate import migrate_database, get_db_version, set_db_version, CURRENT_DB_VERSION class DuckDBConnectionProxy: diff --git a/src/finance_cli.py b/src/finance_mosaix/core/finance_cli.py similarity index 83% rename from src/finance_cli.py rename to src/finance_mosaix/core/finance_cli.py index 476084b..f875366 100644 --- a/src/finance_cli.py +++ b/src/finance_mosaix/core/finance_cli.py @@ -7,18 +7,10 @@ import argparse from pathlib import Path -try: - from .db_schema import init_database, show_schema, get_connection - from .import_transactions import FinanceImporter - from .query_finance import print_balance_summary, print_category_summary, FinanceQueries -except ImportError: - from db_schema import init_database, show_schema, get_connection - from import_transactions import FinanceImporter - from query_finance import print_balance_summary, print_category_summary, FinanceQueries - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import init_database, show_schema, get_connection +from finance_mosaix.core.import_transactions import FinanceImporter +from finance_mosaix.core.paths import default_db_path +from finance_mosaix.core.query_finance import print_balance_summary, print_category_summary, FinanceQueries def main(): @@ -27,11 +19,11 @@ def main(): formatter_class=argparse.RawDescriptionHelpFormatter, epilog=""" Examples: - python src/finance_cli.py --init # Initialize database - python src/finance_cli.py --import Sample.xlsx # Import from Excel - python src/finance_cli.py --balance # Show account balances - python src/finance_cli.py --spending 30 # Show last 30 days spending - python src/finance_cli.py --schema # Show database schema + finance-mosaix --init # Initialize database + finance-mosaix --import Sample.xlsx # Import from Excel + finance-mosaix --balance # Show account balances + finance-mosaix --spending 30 # Show last 30 days spending + finance-mosaix --schema # Show database schema """ ) @@ -45,7 +37,7 @@ def main(): parser.add_argument('--item-name', help='Optional goods item name to limit normalization') parser.add_argument('--valuation-date', help='Optional goods valuation date to limit normalization (YYYY-MM-DD)') parser.add_argument('--what-if', action='store_true', help='Preview normalization without writing changes') - parser.add_argument('--db', default=default_db_path(), help='Database path (default: finance.duckdb)') + parser.add_argument('--db', default=str(default_db_path()), help='Database path (default: finance.duckdb)') args = parser.parse_args() diff --git a/src/goods_depreciation.py b/src/finance_mosaix/core/goods_depreciation.py similarity index 100% rename from src/goods_depreciation.py rename to src/finance_mosaix/core/goods_depreciation.py diff --git a/src/goods_queries.py b/src/finance_mosaix/core/goods_queries.py similarity index 97% rename from src/goods_queries.py rename to src/finance_mosaix/core/goods_queries.py index bacf4c3..9a52d25 100644 --- a/src/goods_queries.py +++ b/src/finance_mosaix/core/goods_queries.py @@ -1,26 +1,18 @@ """ Goods pool queries for the Finance database. """ -from pathlib import Path from datetime import date -try: - from .db_schema import get_connection - from .goods_depreciation import calculate_goods_current_value -except ImportError: - from db_schema import get_connection - from goods_depreciation import calculate_goods_current_value - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.goods_depreciation import calculate_goods_current_value +from finance_mosaix.core.paths import default_db_path class GoodsQueries: def __init__(self, conn=None, db_path=None): if conn is None: if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.conn = get_connection(str(db_path)) else: self.conn = conn diff --git a/src/import_transactions.py b/src/finance_mosaix/core/import_transactions.py similarity index 99% rename from src/import_transactions.py rename to src/finance_mosaix/core/import_transactions.py index f22eae7..41dd807 100644 --- a/src/import_transactions.py +++ b/src/finance_mosaix/core/import_transactions.py @@ -15,10 +15,7 @@ import pandas as pd from openpyxl import load_workbook -try: - from .db_schema import init_database, get_connection -except ImportError: - from db_schema import init_database, get_connection +from finance_mosaix.core.db_schema import init_database, get_connection SUMMARY_TOKENS = ["bilanz", "summe", "gesamt", "subtotal", "total", "difference", "differenz", "kaufwert", "balance"] diff --git a/src/interest_queries.py b/src/finance_mosaix/core/interest_queries.py similarity index 96% rename from src/interest_queries.py rename to src/finance_mosaix/core/interest_queries.py index d528531..7458395 100644 --- a/src/interest_queries.py +++ b/src/finance_mosaix/core/interest_queries.py @@ -1,23 +1,16 @@ """ Interest pool queries for the Finance database. """ -from pathlib import Path -try: - from .db_schema import get_connection -except ImportError: - from db_schema import get_connection - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.paths import default_db_path class InterestQueries: def __init__(self, conn=None, db_path=None): if conn is None: if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.conn = get_connection(str(db_path)) else: self.conn = conn diff --git a/src/finance_mosaix/core/paths.py b/src/finance_mosaix/core/paths.py new file mode 100644 index 0000000..63d4cce --- /dev/null +++ b/src/finance_mosaix/core/paths.py @@ -0,0 +1,48 @@ +"""Central resolution of data locations (database, sample database, settings). + +If the environment variable FINANCE_MOSAIX_DATA_DIR is set, all data files live in +that directory. Otherwise the historical locations inside the repository are used. +""" + +import os +from pathlib import Path + +DATA_DIR_ENV = "FINANCE_MOSAIX_DATA_DIR" + +_PACKAGE_DIR = Path(__file__).resolve().parents[1] + + +def repo_root() -> Path: + return Path(__file__).resolve().parents[3] + + +def data_dir() -> Path: + value = os.environ.get(DATA_DIR_ENV) + if value: + path = Path(value) + path.mkdir(parents=True, exist_ok=True) + return path + return repo_root() + + +def settings_path() -> Path: + if os.environ.get(DATA_DIR_ENV): + return data_dir() / "settings.json" + return _PACKAGE_DIR / "dashboard" / "settings.json" + + +def default_db_path() -> Path: + return data_dir() / "finance.duckdb" + + +def sample_db_path() -> Path: + return data_dir() / "finance_sample.duckdb" + + +def resolve_db_path(value: str | None) -> Path: + if not value or not value.strip(): + return default_db_path().resolve() + path = Path(value) + if path.is_absolute(): + return path.resolve() + return (data_dir() / path).resolve() diff --git a/src/query_finance.py b/src/finance_mosaix/core/query_finance.py similarity index 93% rename from src/query_finance.py rename to src/finance_mosaix/core/query_finance.py index 9ba7444..35495b3 100644 --- a/src/query_finance.py +++ b/src/finance_mosaix/core/query_finance.py @@ -6,24 +6,13 @@ from datetime import datetime, timedelta from pathlib import Path -try: - from .cash_queries import CashQueries - from .goods_queries import GoodsQueries - from .interest_queries import InterestQueries - from .stock_queries import StockQueries - from .account_balance_queries import AccountBalanceQueries - from .db_schema import get_connection -except ImportError: - from cash_queries import CashQueries - from goods_queries import GoodsQueries - from interest_queries import InterestQueries - from stock_queries import StockQueries - from account_balance_queries import AccountBalanceQueries - from db_schema import get_connection - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.cash_queries import CashQueries +from finance_mosaix.core.goods_queries import GoodsQueries +from finance_mosaix.core.interest_queries import InterestQueries +from finance_mosaix.core.stock_queries import StockQueries +from finance_mosaix.core.account_balance_queries import AccountBalanceQueries +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.paths import default_db_path class FinanceQueries: @@ -31,7 +20,7 @@ class FinanceQueries: def __init__(self, db_path: str | Path | None = None): if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.cash = CashQueries(db_path=db_path) self.stock = StockQueries(conn=self.cash.conn) diff --git a/src/stock_queries.py b/src/finance_mosaix/core/stock_queries.py similarity index 97% rename from src/stock_queries.py rename to src/finance_mosaix/core/stock_queries.py index 3e1df01..02027a9 100644 --- a/src/stock_queries.py +++ b/src/finance_mosaix/core/stock_queries.py @@ -1,23 +1,16 @@ """ Stock pool queries for the Finance database. """ -from pathlib import Path -try: - from .db_schema import get_connection -except ImportError: - from db_schema import get_connection - - -def default_db_path() -> str: - return str(Path(__file__).resolve().parents[1] / "finance.duckdb") +from finance_mosaix.core.db_schema import get_connection +from finance_mosaix.core.paths import default_db_path class StockQueries: def __init__(self, conn=None, db_path=None): if conn is None: if db_path is None: - db_path = default_db_path() + db_path = str(default_db_path()) self.conn = get_connection(str(db_path)) else: self.conn = conn diff --git a/src/version.py b/src/finance_mosaix/core/version.py similarity index 99% rename from src/version.py rename to src/finance_mosaix/core/version.py index 292b875..c9d34c6 100644 --- a/src/version.py +++ b/src/finance_mosaix/core/version.py @@ -10,7 +10,7 @@ except ImportError: # allow module import without setuptools_scm installed ScmVersion = Any -ROOT_DIR = Path(__file__).resolve().parents[1] +ROOT_DIR = Path(__file__).resolve().parents[3] VERSION_FILE = ROOT_DIR / "VERSION" PACKAGED_VERSION_FILE = ROOT_DIR / "electron" / "VERSION" PYPROJECT_FILE = ROOT_DIR / "pyproject.toml" diff --git a/dashboard/__init__.py b/src/finance_mosaix/dashboard/__init__.py similarity index 92% rename from dashboard/__init__.py rename to src/finance_mosaix/dashboard/__init__.py index 75c4b53..adf10ca 100644 --- a/dashboard/__init__.py +++ b/src/finance_mosaix/dashboard/__init__.py @@ -2,8 +2,6 @@ Finance dashboard package. """ -import importlib - from .charts import ( timeline_line_chart, latest_timeline_distribution_pie, @@ -23,8 +21,7 @@ goods_valuation_chart, balance_delta_chart, ) -_import_module = importlib.import_module(__name__ + ".import") -render_import_view = _import_module.render_import_view +from .import_view import render_import_view from .metrics import render_metrics_page from .data_creator import render_data_creator_view from .data_editor import render_data_editor_view diff --git a/dashboard/app.py b/src/finance_mosaix/dashboard/app.py similarity index 91% rename from dashboard/app.py rename to src/finance_mosaix/dashboard/app.py index c09f7a8..292a400 100644 --- a/dashboard/app.py +++ b/src/finance_mosaix/dashboard/app.py @@ -1,17 +1,22 @@ import calendar import sys from datetime import date, timedelta -from importlib import import_module from pathlib import Path import pandas as pd import streamlit as st -ROOT_DIR = Path(__file__).resolve().parents[1] -sys.path.insert(0, str(ROOT_DIR)) +# Streamlit runs this file by path (`streamlit run .../app.py`), not as a module, +# so the package root under src/ must be on sys.path. This is the single deliberate +# path insertion in the codebase; every other module uses absolute imports. +_SRC_DIR = Path(__file__).resolve().parents[2] +if str(_SRC_DIR) not in sys.path: + sys.path.insert(0, str(_SRC_DIR)) -import dashboard.charts_pyplot as charts_pyplot -from dashboard.charts import ( +from finance_mosaix.core.paths import resolve_db_path, sample_db_path + +from finance_mosaix.dashboard import charts_pyplot +from finance_mosaix.dashboard.charts import ( timeline_line_chart, latest_timeline_distribution_pie, spending_chart, @@ -30,19 +35,18 @@ goods_valuation_chart, balance_delta_chart, ) -from dashboard.metrics import render_metrics_page -from dashboard.data import * -from src.db_schema import init_database -from src.query_finance import FinanceQueries +from finance_mosaix.dashboard.metrics import render_metrics_page +from finance_mosaix.dashboard.data import * +from finance_mosaix.core.db_schema import init_database +from finance_mosaix.core.query_finance import FinanceQueries -import_module("dashboard.import") -render_import_view = import_module("dashboard.import").render_import_view +from finance_mosaix.dashboard.import_view import render_import_view -from dashboard.data_creator import render_data_creator_view -from dashboard.data_editor import render_data_editor_view -from dashboard.data_organizer import render_data_organizer_view -from dashboard.onboarding import render_onboarding_view -from dashboard.settings import CHART_OPTIONS, SAMPLE_DATABASE_PATH, render_settings_view, load_settings, save_settings +from finance_mosaix.dashboard.data_creator import render_data_creator_view +from finance_mosaix.dashboard.data_editor import render_data_editor_view +from finance_mosaix.dashboard.data_organizer import render_data_organizer_view +from finance_mosaix.dashboard.onboarding import render_onboarding_view +from finance_mosaix.dashboard.settings import CHART_OPTIONS, SAMPLE_DATABASE_PATH, render_settings_view, load_settings, save_settings CHART_POOL_REQUIREMENTS = { "Timeline": {"Cash", "Stocks", "Goods", "Interest"}, @@ -63,19 +67,29 @@ "Balance with Delta": {"Cash", "Interest"}, } +_ASSETS_DIR = Path(__file__).resolve().parent / "assets" + st.set_page_config( page_title="Finance Dashboard", - page_icon="💰", + page_icon=str(_ASSETS_DIR / "logo-mark.svg"), layout="wide", menu_items={ "About": "Finance Dashboard - Streamlit App for Personal Finance Database", } ) +# Top of the sidebar; the mark alone is shown while the sidebar is collapsed. +_logo_theme = "dark" if st.context.theme.type == "dark" else "light" +st.logo( + str(_ASSETS_DIR / f"logo-{_logo_theme}.svg"), + size="large", + icon_image=str(_ASSETS_DIR / "logo-mark.svg"), +) + settings = load_settings() base_db_path = settings.get("database", {}).get("database_path", "finance.duckdb") demo_mode = settings.get("database", {}).get("demo_mode", False) -db_path = str((ROOT_DIR / (SAMPLE_DATABASE_PATH if demo_mode else base_db_path)).resolve()) +db_path = str(sample_db_path() if demo_mode else resolve_db_path(base_db_path)) db_exists = Path(db_path).exists() if "onboarding_completed" not in st.session_state: @@ -103,7 +117,7 @@ def get_cached_queries(db_path: str): return FinanceQueries(db_path) if not st.session_state["onboarding_completed"]: - render_onboarding_view(settings, ROOT_DIR) + render_onboarding_view(settings) st.stop() queries = get_cached_queries(db_path) @@ -566,7 +580,7 @@ def _render_pyplot_legacy_page(): def _render_data_editor_page(): - from dashboard.data_editor import render_data_editor_sidebar + from finance_mosaix.dashboard.data_editor import render_data_editor_sidebar pool = render_data_editor_sidebar(application_mode=application_mode, expert_mode=is_expert_mode) effective_start_date, effective_end_date = _get_date_range() diff --git a/src/finance_mosaix/dashboard/assets/logo-dark.svg b/src/finance_mosaix/dashboard/assets/logo-dark.svg new file mode 100644 index 0000000..f496ba0 --- /dev/null +++ b/src/finance_mosaix/dashboard/assets/logo-dark.svg @@ -0,0 +1,10 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309 64" width="309" height="64" role="img" aria-label="finance mosaix"> +<rect x="4" y="4" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="4" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="4" y="44" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="44" y="4" width="16" height="16" rx="2" fill="#818CF8"/> +<rect x="44" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="44" y="44" width="16" height="16" rx="2" fill="#818CF8"/> +<path d="M24 4H40L32 30Z" fill="#EC4899"/> +<g fill="#FAFAFA"><path d="M83.4 40.12V22.79Q83.4 20.26 84.72 19.05Q86.03 17.84 88.63 17.84H90.68V19.77H88.21Q86.94 19.77 86.27 20.45Q85.59 21.13 85.59 22.34V40.12ZM81.05 25.91V24.17H91V25.91ZM95.19 40.12V24.03H97.46V40.12ZM92.62 25.87V24.03H97.46V25.87ZM95.68 21.05Q94.87 21.05 94.46 20.61Q94.05 20.17 94.05 19.5Q94.05 18.83 94.46 18.39Q94.87 17.95 95.68 17.95Q96.5 17.95 96.9 18.39Q97.3 18.83 97.3 19.5Q97.3 20.17 96.9 20.61Q96.5 21.05 95.68 21.05ZM103.45 40.12V24.03H105.25V30.77H104.89Q104.89 28.52 105.56 26.91Q106.23 25.3 107.57 24.43Q108.91 23.56 110.94 23.56H111.04Q114.08 23.56 115.57 25.45Q117.07 27.35 117.07 30.77V40.12H114.8V30.29Q114.8 28.2 113.65 26.92Q112.5 25.65 110.42 25.65Q108.29 25.65 107.01 26.96Q105.72 28.28 105.72 30.45V40.12ZM132.54 40.12V35.29H132.16V29.56Q132.16 27.76 131.22 26.81Q130.28 25.86 128.3 25.86Q127.4 25.86 126.48 25.89Q125.55 25.93 124.71 25.97Q123.88 26.01 123.24 26.08V24.08Q123.89 24 124.6 23.95Q125.31 23.89 126.05 23.87Q126.8 23.85 127.48 23.85Q129.94 23.85 131.44 24.46Q132.95 25.07 133.65 26.37Q134.35 27.66 134.35 29.78V40.12ZM127.1 40.54Q125.39 40.54 124.09 39.94Q122.78 39.34 122.06 38.18Q121.33 37.03 121.33 35.38Q121.33 33.75 122.08 32.63Q122.82 31.5 124.24 30.92Q125.66 30.33 127.67 30.33H132.38V32.07H127.53Q125.61 32.07 124.59 32.99Q123.56 33.92 123.56 35.39Q123.56 36.91 124.63 37.82Q125.69 38.72 127.53 38.72Q128.64 38.72 129.67 38.3Q130.71 37.89 131.4 36.9Q132.1 35.91 132.16 34.2L132.85 35.13Q132.72 36.92 131.98 38.13Q131.24 39.33 130 39.93Q128.76 40.54 127.1 40.54ZM140.05 40.12V24.03H141.85V30.77H141.49Q141.49 28.52 142.16 26.91Q142.83 25.3 144.17 24.43Q145.51 23.56 147.54 23.56H147.64Q150.68 23.56 152.17 25.45Q153.67 27.35 153.67 30.77V40.12H151.4V30.29Q151.4 28.2 150.25 26.92Q149.1 25.65 147.02 25.65Q144.89 25.65 143.61 26.96Q142.32 28.28 142.32 30.45V40.12ZM166.11 40.64Q164.08 40.64 162.57 39.92Q161.07 39.19 160.07 37.97Q159.07 36.74 158.57 35.25Q158.08 33.76 158.08 32.25V31.83Q158.08 30.28 158.57 28.79Q159.07 27.31 160.07 26.12Q161.08 24.93 162.58 24.21Q164.08 23.5 166.07 23.5Q168.06 23.5 169.62 24.23Q171.19 24.96 172.16 26.28Q173.14 27.61 173.32 29.44H171.13Q170.88 27.76 169.57 26.65Q168.27 25.55 166.07 25.55Q164.16 25.55 162.89 26.41Q161.61 27.28 160.98 28.75Q160.35 30.23 160.35 32.04Q160.35 33.8 160.99 35.3Q161.62 36.8 162.91 37.7Q164.19 38.6 166.11 38.6Q167.6 38.6 168.72 38.06Q169.83 37.52 170.52 36.62Q171.2 35.71 171.33 34.6H173.52Q173.38 36.44 172.37 37.79Q171.35 39.13 169.74 39.89Q168.12 40.64 166.11 40.64ZM184.42 40.64Q182.35 40.64 180.83 39.92Q179.31 39.2 178.34 38Q177.38 36.8 176.91 35.31Q176.44 33.81 176.44 32.25V31.83Q176.44 30.26 176.91 28.78Q177.38 27.3 178.35 26.1Q179.32 24.91 180.79 24.2Q182.27 23.5 184.24 23.5Q186.77 23.5 188.46 24.61Q190.15 25.73 191 27.49Q191.84 29.24 191.84 31.23V32.43H177.46V30.66H190.25L189.67 31.55Q189.67 29.76 189.05 28.4Q188.44 27.04 187.23 26.27Q186.03 25.5 184.24 25.5Q182.36 25.5 181.11 26.38Q179.85 27.25 179.23 28.72Q178.61 30.19 178.61 32.04Q178.61 33.86 179.23 35.36Q179.85 36.85 181.15 37.75Q182.44 38.64 184.42 38.64Q186.53 38.64 187.84 37.68Q189.15 36.72 189.43 35.41H191.58Q191.25 37.01 190.28 38.19Q189.31 39.37 187.82 40.01Q186.34 40.64 184.42 40.64Z"/><path d="M195.47 40.12V23.47H199.34V30.64H199.06Q199.06 28.09 199.71 26.38Q200.35 24.68 201.62 23.81Q202.89 22.94 204.76 22.94H204.97Q206.87 22.94 208.13 23.81Q209.39 24.68 210.03 26.38Q210.67 28.09 210.67 30.64H209.5Q209.5 28.09 210.15 26.38Q210.8 24.68 212.08 23.81Q213.35 22.94 215.22 22.94H215.43Q217.32 22.94 218.61 23.81Q219.9 24.68 220.57 26.38Q221.24 28.09 221.24 30.64V40.12H216.36V30.37Q216.36 29.01 215.65 28.15Q214.94 27.3 213.64 27.3Q212.32 27.3 211.56 28.17Q210.8 29.04 210.8 30.46V40.12H205.92V30.37Q205.92 29.01 205.21 28.15Q204.5 27.3 203.2 27.3Q201.88 27.3 201.12 28.17Q200.35 29.04 200.35 30.46V40.12ZM233.5 40.71Q231.3 40.71 229.6 40.03Q227.9 39.34 226.72 38.15Q225.54 36.96 224.93 35.43Q224.32 33.89 224.32 32.18V31.5Q224.32 29.74 224.96 28.18Q225.59 26.62 226.79 25.43Q227.98 24.24 229.68 23.56Q231.38 22.88 233.5 22.88Q235.63 22.88 237.32 23.56Q239.01 24.24 240.21 25.43Q241.4 26.62 242.04 28.18Q242.67 29.74 242.67 31.5V32.18Q242.67 33.89 242.06 35.43Q241.45 36.96 240.28 38.15Q239.1 39.34 237.4 40.03Q235.69 40.71 233.5 40.71ZM233.5 36.59Q234.91 36.59 235.86 35.98Q236.81 35.37 237.3 34.28Q237.79 33.2 237.79 31.84Q237.79 30.43 237.29 29.34Q236.78 28.26 235.82 27.63Q234.86 27 233.5 27Q232.14 27 231.18 27.63Q230.21 28.26 229.71 29.34Q229.2 30.43 229.2 31.84Q229.2 33.2 229.69 34.28Q230.18 35.37 231.15 35.98Q232.11 36.59 233.5 36.59ZM252.38 40.65Q248.85 40.65 246.84 39.18Q244.83 37.71 244.7 35.06H249.03Q249.14 35.87 249.98 36.49Q250.82 37.11 252.47 37.11Q253.76 37.11 254.6 36.67Q255.44 36.24 255.44 35.41Q255.44 34.68 254.79 34.23Q254.15 33.79 252.51 33.63L251.21 33.49Q248.21 33.18 246.71 31.82Q245.2 30.46 245.2 28.33Q245.2 26.55 246.08 25.37Q246.96 24.19 248.52 23.59Q250.08 22.99 252.09 22.99Q255.3 22.99 257.28 24.4Q259.25 25.81 259.36 28.48H255.03Q254.93 27.67 254.19 27.1Q253.45 26.53 252.04 26.53Q250.91 26.53 250.24 26.95Q249.58 27.38 249.58 28.1Q249.58 28.81 250.16 29.17Q250.73 29.54 252.03 29.69L253.33 29.83Q256.4 30.15 258.11 31.52Q259.82 32.9 259.82 35.18Q259.82 36.86 258.9 38.09Q257.99 39.32 256.32 39.98Q254.66 40.65 252.38 40.65ZM273.03 40.12V35.21H272.23V29.86Q272.23 28.57 271.61 27.94Q271 27.3 269.67 27.3Q269 27.3 267.9 27.33Q266.81 27.36 265.65 27.42Q264.48 27.47 263.54 27.53V23.43Q264.25 23.37 265.19 23.31Q266.13 23.25 267.14 23.23Q268.15 23.2 269.01 23.2Q271.57 23.2 273.33 23.92Q275.08 24.64 275.99 26.11Q276.89 27.58 276.89 29.91V40.12ZM267.71 40.54Q265.93 40.54 264.58 39.91Q263.22 39.27 262.46 38.08Q261.7 36.88 261.7 35.21Q261.7 33.36 262.65 32.19Q263.59 31.03 265.29 30.47Q266.98 29.91 269.22 29.91H272.76V32.6H269.19Q267.9 32.6 267.21 33.23Q266.52 33.87 266.52 34.91Q266.52 35.93 267.21 36.56Q267.9 37.18 269.19 37.18Q269.99 37.18 270.65 36.89Q271.31 36.61 271.74 35.9Q272.17 35.2 272.23 33.96L273.38 35.16Q273.23 36.89 272.55 38.09Q271.86 39.28 270.66 39.91Q269.46 40.54 267.71 40.54ZM281.81 40.12V23.47H286.69V40.12ZM279.59 27.06V23.47H286.69V27.06ZM283.71 21.82Q282.34 21.82 281.69 21.11Q281.04 20.39 281.04 19.29Q281.04 18.18 281.69 17.46Q282.35 16.75 283.7 16.75Q285.09 16.75 285.73 17.46Q286.37 18.18 286.37 19.29Q286.37 20.39 285.73 21.11Q285.09 21.82 283.71 21.82ZM289.32 40.12 294.49 31.19 294.37 31.93 289.5 23.47H294.78L297.79 29.13H298.26L301.1 23.47H306.05L301.41 31.99L301.52 31.35L306.99 40.12H301.71L298.11 34.07H297.64L294.27 40.12Z"/></g> +</svg> diff --git a/src/finance_mosaix/dashboard/assets/logo-light.svg b/src/finance_mosaix/dashboard/assets/logo-light.svg new file mode 100644 index 0000000..3ccbc4c --- /dev/null +++ b/src/finance_mosaix/dashboard/assets/logo-light.svg @@ -0,0 +1,10 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309 64" width="309" height="64" role="img" aria-label="finance mosaix"> +<rect x="4" y="4" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="4" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="4" y="44" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="44" y="4" width="16" height="16" rx="2" fill="#818CF8"/> +<rect x="44" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="44" y="44" width="16" height="16" rx="2" fill="#818CF8"/> +<path d="M24 4H40L32 30Z" fill="#EC4899"/> +<g fill="#31333F"><path d="M83.4 40.12V22.79Q83.4 20.26 84.72 19.05Q86.03 17.84 88.63 17.84H90.68V19.77H88.21Q86.94 19.77 86.27 20.45Q85.59 21.13 85.59 22.34V40.12ZM81.05 25.91V24.17H91V25.91ZM95.19 40.12V24.03H97.46V40.12ZM92.62 25.87V24.03H97.46V25.87ZM95.68 21.05Q94.87 21.05 94.46 20.61Q94.05 20.17 94.05 19.5Q94.05 18.83 94.46 18.39Q94.87 17.95 95.68 17.95Q96.5 17.95 96.9 18.39Q97.3 18.83 97.3 19.5Q97.3 20.17 96.9 20.61Q96.5 21.05 95.68 21.05ZM103.45 40.12V24.03H105.25V30.77H104.89Q104.89 28.52 105.56 26.91Q106.23 25.3 107.57 24.43Q108.91 23.56 110.94 23.56H111.04Q114.08 23.56 115.57 25.45Q117.07 27.35 117.07 30.77V40.12H114.8V30.29Q114.8 28.2 113.65 26.92Q112.5 25.65 110.42 25.65Q108.29 25.65 107.01 26.96Q105.72 28.28 105.72 30.45V40.12ZM132.54 40.12V35.29H132.16V29.56Q132.16 27.76 131.22 26.81Q130.28 25.86 128.3 25.86Q127.4 25.86 126.48 25.89Q125.55 25.93 124.71 25.97Q123.88 26.01 123.24 26.08V24.08Q123.89 24 124.6 23.95Q125.31 23.89 126.05 23.87Q126.8 23.85 127.48 23.85Q129.94 23.85 131.44 24.46Q132.95 25.07 133.65 26.37Q134.35 27.66 134.35 29.78V40.12ZM127.1 40.54Q125.39 40.54 124.09 39.94Q122.78 39.34 122.06 38.18Q121.33 37.03 121.33 35.38Q121.33 33.75 122.08 32.63Q122.82 31.5 124.24 30.92Q125.66 30.33 127.67 30.33H132.38V32.07H127.53Q125.61 32.07 124.59 32.99Q123.56 33.92 123.56 35.39Q123.56 36.91 124.63 37.82Q125.69 38.72 127.53 38.72Q128.64 38.72 129.67 38.3Q130.71 37.89 131.4 36.9Q132.1 35.91 132.16 34.2L132.85 35.13Q132.72 36.92 131.98 38.13Q131.24 39.33 130 39.93Q128.76 40.54 127.1 40.54ZM140.05 40.12V24.03H141.85V30.77H141.49Q141.49 28.52 142.16 26.91Q142.83 25.3 144.17 24.43Q145.51 23.56 147.54 23.56H147.64Q150.68 23.56 152.17 25.45Q153.67 27.35 153.67 30.77V40.12H151.4V30.29Q151.4 28.2 150.25 26.92Q149.1 25.65 147.02 25.65Q144.89 25.65 143.61 26.96Q142.32 28.28 142.32 30.45V40.12ZM166.11 40.64Q164.08 40.64 162.57 39.92Q161.07 39.19 160.07 37.97Q159.07 36.74 158.57 35.25Q158.08 33.76 158.08 32.25V31.83Q158.08 30.28 158.57 28.79Q159.07 27.31 160.07 26.12Q161.08 24.93 162.58 24.21Q164.08 23.5 166.07 23.5Q168.06 23.5 169.62 24.23Q171.19 24.96 172.16 26.28Q173.14 27.61 173.32 29.44H171.13Q170.88 27.76 169.57 26.65Q168.27 25.55 166.07 25.55Q164.16 25.55 162.89 26.41Q161.61 27.28 160.98 28.75Q160.35 30.23 160.35 32.04Q160.35 33.8 160.99 35.3Q161.62 36.8 162.91 37.7Q164.19 38.6 166.11 38.6Q167.6 38.6 168.72 38.06Q169.83 37.52 170.52 36.62Q171.2 35.71 171.33 34.6H173.52Q173.38 36.44 172.37 37.79Q171.35 39.13 169.74 39.89Q168.12 40.64 166.11 40.64ZM184.42 40.64Q182.35 40.64 180.83 39.92Q179.31 39.2 178.34 38Q177.38 36.8 176.91 35.31Q176.44 33.81 176.44 32.25V31.83Q176.44 30.26 176.91 28.78Q177.38 27.3 178.35 26.1Q179.32 24.91 180.79 24.2Q182.27 23.5 184.24 23.5Q186.77 23.5 188.46 24.61Q190.15 25.73 191 27.49Q191.84 29.24 191.84 31.23V32.43H177.46V30.66H190.25L189.67 31.55Q189.67 29.76 189.05 28.4Q188.44 27.04 187.23 26.27Q186.03 25.5 184.24 25.5Q182.36 25.5 181.11 26.38Q179.85 27.25 179.23 28.72Q178.61 30.19 178.61 32.04Q178.61 33.86 179.23 35.36Q179.85 36.85 181.15 37.75Q182.44 38.64 184.42 38.64Q186.53 38.64 187.84 37.68Q189.15 36.72 189.43 35.41H191.58Q191.25 37.01 190.28 38.19Q189.31 39.37 187.82 40.01Q186.34 40.64 184.42 40.64Z"/><path d="M195.47 40.12V23.47H199.34V30.64H199.06Q199.06 28.09 199.71 26.38Q200.35 24.68 201.62 23.81Q202.89 22.94 204.76 22.94H204.97Q206.87 22.94 208.13 23.81Q209.39 24.68 210.03 26.38Q210.67 28.09 210.67 30.64H209.5Q209.5 28.09 210.15 26.38Q210.8 24.68 212.08 23.81Q213.35 22.94 215.22 22.94H215.43Q217.32 22.94 218.61 23.81Q219.9 24.68 220.57 26.38Q221.24 28.09 221.24 30.64V40.12H216.36V30.37Q216.36 29.01 215.65 28.15Q214.94 27.3 213.64 27.3Q212.32 27.3 211.56 28.17Q210.8 29.04 210.8 30.46V40.12H205.92V30.37Q205.92 29.01 205.21 28.15Q204.5 27.3 203.2 27.3Q201.88 27.3 201.12 28.17Q200.35 29.04 200.35 30.46V40.12ZM233.5 40.71Q231.3 40.71 229.6 40.03Q227.9 39.34 226.72 38.15Q225.54 36.96 224.93 35.43Q224.32 33.89 224.32 32.18V31.5Q224.32 29.74 224.96 28.18Q225.59 26.62 226.79 25.43Q227.98 24.24 229.68 23.56Q231.38 22.88 233.5 22.88Q235.63 22.88 237.32 23.56Q239.01 24.24 240.21 25.43Q241.4 26.62 242.04 28.18Q242.67 29.74 242.67 31.5V32.18Q242.67 33.89 242.06 35.43Q241.45 36.96 240.28 38.15Q239.1 39.34 237.4 40.03Q235.69 40.71 233.5 40.71ZM233.5 36.59Q234.91 36.59 235.86 35.98Q236.81 35.37 237.3 34.28Q237.79 33.2 237.79 31.84Q237.79 30.43 237.29 29.34Q236.78 28.26 235.82 27.63Q234.86 27 233.5 27Q232.14 27 231.18 27.63Q230.21 28.26 229.71 29.34Q229.2 30.43 229.2 31.84Q229.2 33.2 229.69 34.28Q230.18 35.37 231.15 35.98Q232.11 36.59 233.5 36.59ZM252.38 40.65Q248.85 40.65 246.84 39.18Q244.83 37.71 244.7 35.06H249.03Q249.14 35.87 249.98 36.49Q250.82 37.11 252.47 37.11Q253.76 37.11 254.6 36.67Q255.44 36.24 255.44 35.41Q255.44 34.68 254.79 34.23Q254.15 33.79 252.51 33.63L251.21 33.49Q248.21 33.18 246.71 31.82Q245.2 30.46 245.2 28.33Q245.2 26.55 246.08 25.37Q246.96 24.19 248.52 23.59Q250.08 22.99 252.09 22.99Q255.3 22.99 257.28 24.4Q259.25 25.81 259.36 28.48H255.03Q254.93 27.67 254.19 27.1Q253.45 26.53 252.04 26.53Q250.91 26.53 250.24 26.95Q249.58 27.38 249.58 28.1Q249.58 28.81 250.16 29.17Q250.73 29.54 252.03 29.69L253.33 29.83Q256.4 30.15 258.11 31.52Q259.82 32.9 259.82 35.18Q259.82 36.86 258.9 38.09Q257.99 39.32 256.32 39.98Q254.66 40.65 252.38 40.65ZM273.03 40.12V35.21H272.23V29.86Q272.23 28.57 271.61 27.94Q271 27.3 269.67 27.3Q269 27.3 267.9 27.33Q266.81 27.36 265.65 27.42Q264.48 27.47 263.54 27.53V23.43Q264.25 23.37 265.19 23.31Q266.13 23.25 267.14 23.23Q268.15 23.2 269.01 23.2Q271.57 23.2 273.33 23.92Q275.08 24.64 275.99 26.11Q276.89 27.58 276.89 29.91V40.12ZM267.71 40.54Q265.93 40.54 264.58 39.91Q263.22 39.27 262.46 38.08Q261.7 36.88 261.7 35.21Q261.7 33.36 262.65 32.19Q263.59 31.03 265.29 30.47Q266.98 29.91 269.22 29.91H272.76V32.6H269.19Q267.9 32.6 267.21 33.23Q266.52 33.87 266.52 34.91Q266.52 35.93 267.21 36.56Q267.9 37.18 269.19 37.18Q269.99 37.18 270.65 36.89Q271.31 36.61 271.74 35.9Q272.17 35.2 272.23 33.96L273.38 35.16Q273.23 36.89 272.55 38.09Q271.86 39.28 270.66 39.91Q269.46 40.54 267.71 40.54ZM281.81 40.12V23.47H286.69V40.12ZM279.59 27.06V23.47H286.69V27.06ZM283.71 21.82Q282.34 21.82 281.69 21.11Q281.04 20.39 281.04 19.29Q281.04 18.18 281.69 17.46Q282.35 16.75 283.7 16.75Q285.09 16.75 285.73 17.46Q286.37 18.18 286.37 19.29Q286.37 20.39 285.73 21.11Q285.09 21.82 283.71 21.82ZM289.32 40.12 294.49 31.19 294.37 31.93 289.5 23.47H294.78L297.79 29.13H298.26L301.1 23.47H306.05L301.41 31.99L301.52 31.35L306.99 40.12H301.71L298.11 34.07H297.64L294.27 40.12Z"/></g> +</svg> diff --git a/src/finance_mosaix/dashboard/assets/logo-mark.svg b/src/finance_mosaix/dashboard/assets/logo-mark.svg new file mode 100644 index 0000000..5794925 --- /dev/null +++ b/src/finance_mosaix/dashboard/assets/logo-mark.svg @@ -0,0 +1,9 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="finance mosaix"> +<rect x="4" y="4" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="4" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="4" y="44" width="16" height="16" rx="2" fill="#4F46E5"/> +<rect x="44" y="4" width="16" height="16" rx="2" fill="#818CF8"/> +<rect x="44" y="24" width="16" height="16" rx="2" fill="#6366F1"/> +<rect x="44" y="44" width="16" height="16" rx="2" fill="#818CF8"/> +<path d="M24 4H40L32 30Z" fill="#EC4899"/> +</svg> diff --git a/dashboard/charts.py b/src/finance_mosaix/dashboard/charts.py similarity index 100% rename from dashboard/charts.py rename to src/finance_mosaix/dashboard/charts.py diff --git a/dashboard/charts_pyplot.py b/src/finance_mosaix/dashboard/charts_pyplot.py similarity index 100% rename from dashboard/charts_pyplot.py rename to src/finance_mosaix/dashboard/charts_pyplot.py diff --git a/dashboard/create_sample_database.py b/src/finance_mosaix/dashboard/create_sample_database.py similarity index 99% rename from dashboard/create_sample_database.py rename to src/finance_mosaix/dashboard/create_sample_database.py index 8976678..1f5556d 100644 --- a/dashboard/create_sample_database.py +++ b/src/finance_mosaix/dashboard/create_sample_database.py @@ -1,9 +1,9 @@ -from pathlib import Path from datetime import date import duckdb -from src.db_schema import init_database +from finance_mosaix.core.db_schema import init_database +from finance_mosaix.core.paths import sample_db_path def seed_sample_data(conn: duckdb.DuckDBPyConnection) -> None: @@ -85,7 +85,7 @@ def seed_sample_data(conn: duckdb.DuckDBPyConnection) -> None: def main() -> None: - db_path = Path(__file__).resolve().parent / "finance_sample.duckdb" + db_path = sample_db_path() init_database(str(db_path)) conn = duckdb.connect(str(db_path)) seed_sample_data(conn) diff --git a/dashboard/data.py b/src/finance_mosaix/dashboard/data.py similarity index 100% rename from dashboard/data.py rename to src/finance_mosaix/dashboard/data.py diff --git a/dashboard/data_creator.py b/src/finance_mosaix/dashboard/data_creator.py similarity index 99% rename from dashboard/data_creator.py rename to src/finance_mosaix/dashboard/data_creator.py index c32ceb1..a8a6f7f 100644 --- a/dashboard/data_creator.py +++ b/src/finance_mosaix/dashboard/data_creator.py @@ -1,7 +1,7 @@ import pandas as pd import streamlit as st -from src.goods_depreciation import calculate_goods_current_value +from finance_mosaix.core.goods_depreciation import calculate_goods_current_value POOL_COLUMN_CONFIG = { "Cash": [ diff --git a/dashboard/data_editor.py b/src/finance_mosaix/dashboard/data_editor.py similarity index 99% rename from dashboard/data_editor.py rename to src/finance_mosaix/dashboard/data_editor.py index 5cc1320..752bf48 100644 --- a/dashboard/data_editor.py +++ b/src/finance_mosaix/dashboard/data_editor.py @@ -1,7 +1,7 @@ import pandas as pd import streamlit as st -from dashboard.sheets import ( +from finance_mosaix.dashboard.sheets import ( build_pool_diff, build_pool_sheet, build_transaction_diff, diff --git a/dashboard/data_organizer.py b/src/finance_mosaix/dashboard/data_organizer.py similarity index 99% rename from dashboard/data_organizer.py rename to src/finance_mosaix/dashboard/data_organizer.py index 76ba9f8..4883527 100644 --- a/dashboard/data_organizer.py +++ b/src/finance_mosaix/dashboard/data_organizer.py @@ -2,7 +2,7 @@ import pandas as pd import streamlit as st -from dashboard.sheets import ( +from finance_mosaix.dashboard.sheets import ( build_pool_diff, build_pool_sheet, build_transaction_diff, diff --git a/dashboard/import.py b/src/finance_mosaix/dashboard/import_view.py similarity index 98% rename from dashboard/import.py rename to src/finance_mosaix/dashboard/import_view.py index 53ddf51..2815c5a 100644 --- a/dashboard/import.py +++ b/src/finance_mosaix/dashboard/import_view.py @@ -7,7 +7,7 @@ import streamlit as st -from src.import_transactions import FinanceImporter +from finance_mosaix.core.import_transactions import FinanceImporter def _save_uploaded_file(uploaded_file): diff --git a/dashboard/metrics.py b/src/finance_mosaix/dashboard/metrics.py similarity index 100% rename from dashboard/metrics.py rename to src/finance_mosaix/dashboard/metrics.py diff --git a/dashboard/onboarding.py b/src/finance_mosaix/dashboard/onboarding.py similarity index 78% rename from dashboard/onboarding.py rename to src/finance_mosaix/dashboard/onboarding.py index 24f77ff..3b694f5 100644 --- a/dashboard/onboarding.py +++ b/src/finance_mosaix/dashboard/onboarding.py @@ -1,27 +1,18 @@ -from pathlib import Path - import duckdb import streamlit as st -from src.db_schema import init_database -from dashboard.create_sample_database import seed_sample_data -from dashboard.settings import DEFAULT_SETTINGS, SAMPLE_DATABASE_PATH, save_settings +from finance_mosaix.core.db_schema import init_database +from finance_mosaix.core.paths import resolve_db_path, sample_db_path +from finance_mosaix.dashboard.create_sample_database import seed_sample_data +from finance_mosaix.dashboard.settings import DEFAULT_SETTINGS, SAMPLE_DATABASE_PATH, save_settings POOL_OPTIONS = ["Cash", "Stocks", "Goods", "Interest"] -def _resolve_database_path(root_dir: Path, path_value: str, demo_mode: bool = False) -> str: +def _resolve_database_path(path_value: str, demo_mode: bool = False) -> str: if demo_mode: - selected_path = root_dir / SAMPLE_DATABASE_PATH - else: - if not path_value or not path_value.strip(): - path_value = DEFAULT_SETTINGS["database"]["database_path"] - - selected_path = Path(path_value) - if not selected_path.is_absolute(): - selected_path = root_dir / selected_path - - return str(selected_path.resolve()) + return str(sample_db_path().resolve()) + return str(resolve_db_path(path_value)) def _ensure_database(path: str, demo_mode: bool) -> None: @@ -35,7 +26,7 @@ def _ensure_database(path: str, demo_mode: bool) -> None: conn.close() -def render_onboarding_view(settings: dict, root_dir: Path) -> None: +def render_onboarding_view(settings: dict) -> None: database_settings = settings.setdefault("database", {}) general_settings = settings.setdefault("general", {}) current_demo_mode = database_settings.get("demo_mode", DEFAULT_SETTINGS["database"]["demo_mode"]) @@ -71,7 +62,7 @@ def render_onboarding_view(settings: dict, root_dir: Path) -> None: help="Enter a local DuckDB file path. Relative paths are stored relative to the project root.", ) - resolved_database_path = _resolve_database_path(root_dir, database_path, demo_mode=demo_mode) + resolved_database_path = _resolve_database_path(database_path, demo_mode=demo_mode) st.caption(f"Database will be created at: {resolved_database_path}") selected_pools = st.multiselect( diff --git a/dashboard/settings.py b/src/finance_mosaix/dashboard/settings.py similarity index 96% rename from dashboard/settings.py rename to src/finance_mosaix/dashboard/settings.py index 533c0a8..a867a82 100644 --- a/dashboard/settings.py +++ b/src/finance_mosaix/dashboard/settings.py @@ -5,17 +5,10 @@ import streamlit as st -try: - from src.db_migrate import get_db_version, CURRENT_DB_VERSION -except ImportError: - from db_migrate import get_db_version, CURRENT_DB_VERSION +from finance_mosaix.core.db_migrate import get_db_version, CURRENT_DB_VERSION +from finance_mosaix.core.paths import settings_path +from finance_mosaix.core.version import get_canonical_version -try: - from src.version import get_canonical_version -except ImportError: - from version import get_canonical_version - -SETTINGS_FILE_NAME = "settings.json" SAMPLE_DATABASE_PATH = "finance_sample.duckdb" PROJECT_VERSION = get_canonical_version() @@ -76,9 +69,9 @@ def get_settings_file_path() -> Path: - settings_path = Path(__file__).resolve().parent / SETTINGS_FILE_NAME - settings_path.parent.mkdir(parents=True, exist_ok=True) - return settings_path + path = settings_path() + path.parent.mkdir(parents=True, exist_ok=True) + return path def _normalize_settings(raw: dict) -> dict: diff --git a/dashboard/sheets.py b/src/finance_mosaix/dashboard/sheets.py similarity index 100% rename from dashboard/sheets.py rename to src/finance_mosaix/dashboard/sheets.py diff --git a/start_dashboard.py b/start_dashboard.py index 9c7ef56..8721307 100644 --- a/start_dashboard.py +++ b/start_dashboard.py @@ -43,7 +43,7 @@ def get_workspace_root() -> Path: def get_app_path() -> Path: - return get_workspace_root() / "dashboard" / "app.py" + return get_workspace_root() / "src" / "finance_mosaix" / "dashboard" / "app.py" def get_pid_path() -> Path: diff --git a/test/test_helpers.py b/test/test_helpers.py index 9ac6817..2bddeea 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -1,20 +1,12 @@ -import sys import tempfile import unittest from pathlib import Path import duckdb -ROOT_DIR = Path(__file__).resolve().parents[1] -SRC_DIR = ROOT_DIR / "src" -DASHBOARD_DIR = ROOT_DIR - -if str(SRC_DIR) not in sys.path: - sys.path.insert(0, str(SRC_DIR)) -if str(DASHBOARD_DIR) not in sys.path: - sys.path.insert(0, str(DASHBOARD_DIR)) +from finance_mosaix.core.db_schema import init_database -from db_schema import init_database +ROOT_DIR = Path(__file__).resolve().parents[1] def sample_excel_path(sample_name: str = "Sample.xlsx") -> Path: diff --git a/test/test_importer.py b/test/test_importer.py index 8a0f331..79bc77a 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -1,16 +1,11 @@ import contextlib import io -import sys import unittest from datetime import date -from pathlib import Path import pandas as pd -ROOT_DIR = Path(__file__).resolve().parents[1] -sys.path.insert(0, str(ROOT_DIR)) - -from src.import_transactions import FinanceImporter +from finance_mosaix.core.import_transactions import FinanceImporter from .test_helpers import sample_excel_path SAMPLE_FILES = [ diff --git a/test/test_paths.py b/test/test_paths.py new file mode 100644 index 0000000..32244c9 --- /dev/null +++ b/test/test_paths.py @@ -0,0 +1,72 @@ +import os +import tempfile +import unittest +from pathlib import Path +from unittest import mock + +from finance_mosaix.core.paths import ( + DATA_DIR_ENV, + data_dir, + default_db_path, + repo_root, + resolve_db_path, + sample_db_path, + settings_path, +) +from finance_mosaix.dashboard.onboarding import _resolve_database_path + + +class DataPathsWithoutEnvTest(unittest.TestCase): + def setUp(self): + patcher = mock.patch.dict(os.environ, {}, clear=False) + patcher.start() + self.addCleanup(patcher.stop) + os.environ.pop(DATA_DIR_ENV, None) + + def test_without_env_uses_repo_root(self): + self.assertEqual(data_dir(), repo_root()) + self.assertEqual(default_db_path(), repo_root() / "finance.duckdb") + self.assertEqual(settings_path(), repo_root() / "src/finance_mosaix/dashboard/settings.json") + + +class DataPathsWithEnvTest(unittest.TestCase): + def setUp(self): + self._tmp = tempfile.TemporaryDirectory(prefix="finance-paths-test-") + self.addCleanup(self._tmp.cleanup) + self.tmp = Path(self._tmp.name).resolve() + patcher = mock.patch.dict(os.environ, {DATA_DIR_ENV: str(self.tmp)}) + patcher.start() + self.addCleanup(patcher.stop) + + def test_with_env_uses_data_dir(self): + self.assertEqual(default_db_path(), self.tmp / "finance.duckdb") + self.assertEqual(settings_path(), self.tmp / "settings.json") + self.assertEqual(sample_db_path(), self.tmp / "finance_sample.duckdb") + + def test_with_env_creates_missing_dir(self): + target = self.tmp / "a" / "b" + os.environ[DATA_DIR_ENV] = str(target) + self.assertTrue(data_dir().is_dir()) + + def test_resolve_db_path_relative_absolute_empty(self): + self.assertEqual(resolve_db_path("x.duckdb"), self.tmp / "x.duckdb") + absolute = self.tmp / "elsewhere" / "y.duckdb" + self.assertEqual(resolve_db_path(str(absolute)), absolute.resolve()) + self.assertEqual(resolve_db_path(""), default_db_path()) + self.assertEqual(resolve_db_path(None), default_db_path()) + + def test_resolve_db_path_handles_spaces(self): + self.assertEqual( + resolve_db_path("Meine Daten/ö.duckdb"), + self.tmp / "Meine Daten" / "ö.duckdb", + ) + + def test_onboarding_resolve_uses_data_dir(self): + self.assertEqual( + _resolve_database_path("", demo_mode=True), + str(self.tmp / "finance_sample.duckdb"), + ) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/test_queries.py b/test/test_queries.py index 9f72414..4e9c04f 100644 --- a/test/test_queries.py +++ b/test/test_queries.py @@ -4,9 +4,9 @@ import duckdb from .test_helpers import FinanceDatabaseTestCase -from query_finance import FinanceQueries -from stock_queries import StockQueries -from dashboard.data_creator import _get_stock_snapshot_prefill_for_date +from finance_mosaix.core.query_finance import FinanceQueries +from finance_mosaix.core.stock_queries import StockQueries +from finance_mosaix.dashboard.data_creator import _get_stock_snapshot_prefill_for_date class TestFinanceQueries(FinanceDatabaseTestCase): diff --git a/test/test_schema.py b/test/test_schema.py index 0b83648..ca6c4e8 100644 --- a/test/test_schema.py +++ b/test/test_schema.py @@ -65,7 +65,7 @@ def test_legacy_migration_updates_category_structure(self): legacy_conn.commit() legacy_conn.close() - from query_finance import FinanceQueries + from finance_mosaix.core.query_finance import FinanceQueries queries = FinanceQueries(str(legacy_db_path)) diff --git a/test/test_version_sync.py b/test/test_version_sync.py index ab9a299..c83b283 100644 --- a/test/test_version_sync.py +++ b/test/test_version_sync.py @@ -10,11 +10,8 @@ ROOT_DIR = Path(__file__).resolve().parents[1] ELECTRON_DIR = ROOT_DIR / "electron" -if str(ROOT_DIR / "src") not in sys.path: - sys.path.insert(0, str(ROOT_DIR / "src")) - -import version -from version import get_canonical_version +from finance_mosaix.core import version +from finance_mosaix.core.version import get_canonical_version def normalize_electron_package_version(version: str) -> str: diff --git a/test/test_write_requirements.py b/test/test_write_requirements.py new file mode 100644 index 0000000..b538f6f --- /dev/null +++ b/test/test_write_requirements.py @@ -0,0 +1,26 @@ +import importlib.util +from pathlib import Path + +REPO_ROOT = Path(__file__).resolve().parents[1] +SCRIPT = REPO_ROOT / "electron" / "scripts" / "write_requirements.py" + + +def _load_script(): + spec = importlib.util.spec_from_file_location("write_requirements", SCRIPT) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + + +def test_render_requirements_lists_dependencies_in_order(): + module = _load_script() + text = '[project]\nname = "x"\ndependencies = ["a>=1", "b<2"]\n' + assert module.render_requirements(text) == "a>=1\nb<2\n" + + +def test_real_pyproject_contains_streamlit(): + module = _load_script() + text = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8") + output = module.render_requirements(text) + assert "numpy>=1.25,<3" in output + assert "streamlit>=1.46,<2.0" in output